bootstrap-table-i18n-enhance.js 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746
  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 ($) { 'use strict';
  6. function _assertThisInitialized(e) {
  7. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  8. return e;
  9. }
  10. function _callSuper(t, o, e) {
  11. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  12. }
  13. function _classCallCheck(a, n) {
  14. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  15. }
  16. function _defineProperties(e, r) {
  17. for (var t = 0; t < r.length; t++) {
  18. var o = r[t];
  19. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  20. }
  21. }
  22. function _createClass(e, r, t) {
  23. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  24. writable: !1
  25. }), e;
  26. }
  27. function _getPrototypeOf(t) {
  28. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
  29. return t.__proto__ || Object.getPrototypeOf(t);
  30. }, _getPrototypeOf(t);
  31. }
  32. function _inherits(t, e) {
  33. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  34. t.prototype = Object.create(e && e.prototype, {
  35. constructor: {
  36. value: t,
  37. writable: !0,
  38. configurable: !0
  39. }
  40. }), Object.defineProperty(t, "prototype", {
  41. writable: !1
  42. }), e && _setPrototypeOf(t, e);
  43. }
  44. function _isNativeReflectConstruct() {
  45. try {
  46. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  47. } catch (t) {}
  48. return (_isNativeReflectConstruct = function () {
  49. return !!t;
  50. })();
  51. }
  52. function _possibleConstructorReturn(t, e) {
  53. if (e && ("object" == typeof e || "function" == typeof e)) return e;
  54. if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
  55. return _assertThisInitialized(t);
  56. }
  57. function _setPrototypeOf(t, e) {
  58. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
  59. return t.__proto__ = e, t;
  60. }, _setPrototypeOf(t, e);
  61. }
  62. function _toPrimitive(t, r) {
  63. if ("object" != typeof t || !t) return t;
  64. var e = t[Symbol.toPrimitive];
  65. if (void 0 !== e) {
  66. var i = e.call(t, r);
  67. if ("object" != typeof i) return i;
  68. throw new TypeError("@@toPrimitive must return a primitive value.");
  69. }
  70. return (String )(t);
  71. }
  72. function _toPropertyKey(t) {
  73. var i = _toPrimitive(t, "string");
  74. return "symbol" == typeof i ? i : i + "";
  75. }
  76. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  77. var es_object_toString = {};
  78. var globalThis_1;
  79. var hasRequiredGlobalThis;
  80. function requireGlobalThis () {
  81. if (hasRequiredGlobalThis) return globalThis_1;
  82. hasRequiredGlobalThis = 1;
  83. var check = function (it) {
  84. return it && it.Math === Math && it;
  85. };
  86. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  87. globalThis_1 =
  88. // eslint-disable-next-line es/no-global-this -- safe
  89. check(typeof globalThis == 'object' && globalThis) ||
  90. check(typeof window == 'object' && window) ||
  91. // eslint-disable-next-line no-restricted-globals -- safe
  92. check(typeof self == 'object' && self) ||
  93. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  94. check(typeof globalThis_1 == 'object' && globalThis_1) ||
  95. // eslint-disable-next-line no-new-func -- fallback
  96. (function () { return this; })() || Function('return this')();
  97. return globalThis_1;
  98. }
  99. var sharedStore = {exports: {}};
  100. var isPure;
  101. var hasRequiredIsPure;
  102. function requireIsPure () {
  103. if (hasRequiredIsPure) return isPure;
  104. hasRequiredIsPure = 1;
  105. isPure = false;
  106. return isPure;
  107. }
  108. var defineGlobalProperty;
  109. var hasRequiredDefineGlobalProperty;
  110. function requireDefineGlobalProperty () {
  111. if (hasRequiredDefineGlobalProperty) return defineGlobalProperty;
  112. hasRequiredDefineGlobalProperty = 1;
  113. var globalThis = requireGlobalThis();
  114. // eslint-disable-next-line es/no-object-defineproperty -- safe
  115. var defineProperty = Object.defineProperty;
  116. defineGlobalProperty = function (key, value) {
  117. try {
  118. defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
  119. } catch (error) {
  120. globalThis[key] = value;
  121. } return value;
  122. };
  123. return defineGlobalProperty;
  124. }
  125. var hasRequiredSharedStore;
  126. function requireSharedStore () {
  127. if (hasRequiredSharedStore) return sharedStore.exports;
  128. hasRequiredSharedStore = 1;
  129. var IS_PURE = requireIsPure();
  130. var globalThis = requireGlobalThis();
  131. var defineGlobalProperty = requireDefineGlobalProperty();
  132. var SHARED = '__core-js_shared__';
  133. var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
  134. (store.versions || (store.versions = [])).push({
  135. version: '3.38.1',
  136. mode: IS_PURE ? 'pure' : 'global',
  137. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  138. license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
  139. source: 'https://github.com/zloirock/core-js'
  140. });
  141. return sharedStore.exports;
  142. }
  143. var shared;
  144. var hasRequiredShared;
  145. function requireShared () {
  146. if (hasRequiredShared) return shared;
  147. hasRequiredShared = 1;
  148. var store = requireSharedStore();
  149. shared = function (key, value) {
  150. return store[key] || (store[key] = value || {});
  151. };
  152. return shared;
  153. }
  154. var fails;
  155. var hasRequiredFails;
  156. function requireFails () {
  157. if (hasRequiredFails) return fails;
  158. hasRequiredFails = 1;
  159. fails = function (exec) {
  160. try {
  161. return !!exec();
  162. } catch (error) {
  163. return true;
  164. }
  165. };
  166. return fails;
  167. }
  168. var functionBindNative;
  169. var hasRequiredFunctionBindNative;
  170. function requireFunctionBindNative () {
  171. if (hasRequiredFunctionBindNative) return functionBindNative;
  172. hasRequiredFunctionBindNative = 1;
  173. var fails = requireFails();
  174. functionBindNative = !fails(function () {
  175. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  176. var test = (function () { /* empty */ }).bind();
  177. // eslint-disable-next-line no-prototype-builtins -- safe
  178. return typeof test != 'function' || test.hasOwnProperty('prototype');
  179. });
  180. return functionBindNative;
  181. }
  182. var functionUncurryThis;
  183. var hasRequiredFunctionUncurryThis;
  184. function requireFunctionUncurryThis () {
  185. if (hasRequiredFunctionUncurryThis) return functionUncurryThis;
  186. hasRequiredFunctionUncurryThis = 1;
  187. var NATIVE_BIND = requireFunctionBindNative();
  188. var FunctionPrototype = Function.prototype;
  189. var call = FunctionPrototype.call;
  190. var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
  191. functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
  192. return function () {
  193. return call.apply(fn, arguments);
  194. };
  195. };
  196. return functionUncurryThis;
  197. }
  198. var isNullOrUndefined;
  199. var hasRequiredIsNullOrUndefined;
  200. function requireIsNullOrUndefined () {
  201. if (hasRequiredIsNullOrUndefined) return isNullOrUndefined;
  202. hasRequiredIsNullOrUndefined = 1;
  203. // we can't use just `it == null` since of `document.all` special case
  204. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  205. isNullOrUndefined = function (it) {
  206. return it === null || it === undefined;
  207. };
  208. return isNullOrUndefined;
  209. }
  210. var requireObjectCoercible;
  211. var hasRequiredRequireObjectCoercible;
  212. function requireRequireObjectCoercible () {
  213. if (hasRequiredRequireObjectCoercible) return requireObjectCoercible;
  214. hasRequiredRequireObjectCoercible = 1;
  215. var isNullOrUndefined = requireIsNullOrUndefined();
  216. var $TypeError = TypeError;
  217. // `RequireObjectCoercible` abstract operation
  218. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  219. requireObjectCoercible = function (it) {
  220. if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
  221. return it;
  222. };
  223. return requireObjectCoercible;
  224. }
  225. var toObject;
  226. var hasRequiredToObject;
  227. function requireToObject () {
  228. if (hasRequiredToObject) return toObject;
  229. hasRequiredToObject = 1;
  230. var requireObjectCoercible = requireRequireObjectCoercible();
  231. var $Object = Object;
  232. // `ToObject` abstract operation
  233. // https://tc39.es/ecma262/#sec-toobject
  234. toObject = function (argument) {
  235. return $Object(requireObjectCoercible(argument));
  236. };
  237. return toObject;
  238. }
  239. var hasOwnProperty_1;
  240. var hasRequiredHasOwnProperty;
  241. function requireHasOwnProperty () {
  242. if (hasRequiredHasOwnProperty) return hasOwnProperty_1;
  243. hasRequiredHasOwnProperty = 1;
  244. var uncurryThis = requireFunctionUncurryThis();
  245. var toObject = requireToObject();
  246. var hasOwnProperty = uncurryThis({}.hasOwnProperty);
  247. // `HasOwnProperty` abstract operation
  248. // https://tc39.es/ecma262/#sec-hasownproperty
  249. // eslint-disable-next-line es/no-object-hasown -- safe
  250. hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  251. return hasOwnProperty(toObject(it), key);
  252. };
  253. return hasOwnProperty_1;
  254. }
  255. var uid;
  256. var hasRequiredUid;
  257. function requireUid () {
  258. if (hasRequiredUid) return uid;
  259. hasRequiredUid = 1;
  260. var uncurryThis = requireFunctionUncurryThis();
  261. var id = 0;
  262. var postfix = Math.random();
  263. var toString = uncurryThis(1.0.toString);
  264. uid = function (key) {
  265. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
  266. };
  267. return uid;
  268. }
  269. var environmentUserAgent;
  270. var hasRequiredEnvironmentUserAgent;
  271. function requireEnvironmentUserAgent () {
  272. if (hasRequiredEnvironmentUserAgent) return environmentUserAgent;
  273. hasRequiredEnvironmentUserAgent = 1;
  274. var globalThis = requireGlobalThis();
  275. var navigator = globalThis.navigator;
  276. var userAgent = navigator && navigator.userAgent;
  277. environmentUserAgent = userAgent ? String(userAgent) : '';
  278. return environmentUserAgent;
  279. }
  280. var environmentV8Version;
  281. var hasRequiredEnvironmentV8Version;
  282. function requireEnvironmentV8Version () {
  283. if (hasRequiredEnvironmentV8Version) return environmentV8Version;
  284. hasRequiredEnvironmentV8Version = 1;
  285. var globalThis = requireGlobalThis();
  286. var userAgent = requireEnvironmentUserAgent();
  287. var process = globalThis.process;
  288. var Deno = globalThis.Deno;
  289. var versions = process && process.versions || Deno && Deno.version;
  290. var v8 = versions && versions.v8;
  291. var match, version;
  292. if (v8) {
  293. match = v8.split('.');
  294. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  295. // but their correct versions are not interesting for us
  296. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  297. }
  298. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  299. // so check `userAgent` even if `.v8` exists, but 0
  300. if (!version && userAgent) {
  301. match = userAgent.match(/Edge\/(\d+)/);
  302. if (!match || match[1] >= 74) {
  303. match = userAgent.match(/Chrome\/(\d+)/);
  304. if (match) version = +match[1];
  305. }
  306. }
  307. environmentV8Version = version;
  308. return environmentV8Version;
  309. }
  310. var symbolConstructorDetection;
  311. var hasRequiredSymbolConstructorDetection;
  312. function requireSymbolConstructorDetection () {
  313. if (hasRequiredSymbolConstructorDetection) return symbolConstructorDetection;
  314. hasRequiredSymbolConstructorDetection = 1;
  315. /* eslint-disable es/no-symbol -- required for testing */
  316. var V8_VERSION = requireEnvironmentV8Version();
  317. var fails = requireFails();
  318. var globalThis = requireGlobalThis();
  319. var $String = globalThis.String;
  320. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  321. symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
  322. var symbol = Symbol('symbol detection');
  323. // Chrome 38 Symbol has incorrect toString conversion
  324. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  325. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  326. // of course, fail.
  327. return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
  328. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  329. !Symbol.sham && V8_VERSION && V8_VERSION < 41;
  330. });
  331. return symbolConstructorDetection;
  332. }
  333. var useSymbolAsUid;
  334. var hasRequiredUseSymbolAsUid;
  335. function requireUseSymbolAsUid () {
  336. if (hasRequiredUseSymbolAsUid) return useSymbolAsUid;
  337. hasRequiredUseSymbolAsUid = 1;
  338. /* eslint-disable es/no-symbol -- required for testing */
  339. var NATIVE_SYMBOL = requireSymbolConstructorDetection();
  340. useSymbolAsUid = NATIVE_SYMBOL
  341. && !Symbol.sham
  342. && typeof Symbol.iterator == 'symbol';
  343. return useSymbolAsUid;
  344. }
  345. var wellKnownSymbol;
  346. var hasRequiredWellKnownSymbol;
  347. function requireWellKnownSymbol () {
  348. if (hasRequiredWellKnownSymbol) return wellKnownSymbol;
  349. hasRequiredWellKnownSymbol = 1;
  350. var globalThis = requireGlobalThis();
  351. var shared = requireShared();
  352. var hasOwn = requireHasOwnProperty();
  353. var uid = requireUid();
  354. var NATIVE_SYMBOL = requireSymbolConstructorDetection();
  355. var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
  356. var Symbol = globalThis.Symbol;
  357. var WellKnownSymbolsStore = shared('wks');
  358. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
  359. wellKnownSymbol = function (name) {
  360. if (!hasOwn(WellKnownSymbolsStore, name)) {
  361. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
  362. ? Symbol[name]
  363. : createWellKnownSymbol('Symbol.' + name);
  364. } return WellKnownSymbolsStore[name];
  365. };
  366. return wellKnownSymbol;
  367. }
  368. var toStringTagSupport;
  369. var hasRequiredToStringTagSupport;
  370. function requireToStringTagSupport () {
  371. if (hasRequiredToStringTagSupport) return toStringTagSupport;
  372. hasRequiredToStringTagSupport = 1;
  373. var wellKnownSymbol = requireWellKnownSymbol();
  374. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  375. var test = {};
  376. test[TO_STRING_TAG] = 'z';
  377. toStringTagSupport = String(test) === '[object z]';
  378. return toStringTagSupport;
  379. }
  380. var isCallable;
  381. var hasRequiredIsCallable;
  382. function requireIsCallable () {
  383. if (hasRequiredIsCallable) return isCallable;
  384. hasRequiredIsCallable = 1;
  385. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  386. var documentAll = typeof document == 'object' && document.all;
  387. // `IsCallable` abstract operation
  388. // https://tc39.es/ecma262/#sec-iscallable
  389. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  390. isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  391. return typeof argument == 'function' || argument === documentAll;
  392. } : function (argument) {
  393. return typeof argument == 'function';
  394. };
  395. return isCallable;
  396. }
  397. var objectDefineProperty = {};
  398. var descriptors;
  399. var hasRequiredDescriptors;
  400. function requireDescriptors () {
  401. if (hasRequiredDescriptors) return descriptors;
  402. hasRequiredDescriptors = 1;
  403. var fails = requireFails();
  404. // Detect IE8's incomplete defineProperty implementation
  405. descriptors = !fails(function () {
  406. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  407. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  408. });
  409. return descriptors;
  410. }
  411. var isObject;
  412. var hasRequiredIsObject;
  413. function requireIsObject () {
  414. if (hasRequiredIsObject) return isObject;
  415. hasRequiredIsObject = 1;
  416. var isCallable = requireIsCallable();
  417. isObject = function (it) {
  418. return typeof it == 'object' ? it !== null : isCallable(it);
  419. };
  420. return isObject;
  421. }
  422. var documentCreateElement;
  423. var hasRequiredDocumentCreateElement;
  424. function requireDocumentCreateElement () {
  425. if (hasRequiredDocumentCreateElement) return documentCreateElement;
  426. hasRequiredDocumentCreateElement = 1;
  427. var globalThis = requireGlobalThis();
  428. var isObject = requireIsObject();
  429. var document = globalThis.document;
  430. // typeof document.createElement is 'object' in old IE
  431. var EXISTS = isObject(document) && isObject(document.createElement);
  432. documentCreateElement = function (it) {
  433. return EXISTS ? document.createElement(it) : {};
  434. };
  435. return documentCreateElement;
  436. }
  437. var ie8DomDefine;
  438. var hasRequiredIe8DomDefine;
  439. function requireIe8DomDefine () {
  440. if (hasRequiredIe8DomDefine) return ie8DomDefine;
  441. hasRequiredIe8DomDefine = 1;
  442. var DESCRIPTORS = requireDescriptors();
  443. var fails = requireFails();
  444. var createElement = requireDocumentCreateElement();
  445. // Thanks to IE8 for its funny defineProperty
  446. ie8DomDefine = !DESCRIPTORS && !fails(function () {
  447. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  448. return Object.defineProperty(createElement('div'), 'a', {
  449. get: function () { return 7; }
  450. }).a !== 7;
  451. });
  452. return ie8DomDefine;
  453. }
  454. var v8PrototypeDefineBug;
  455. var hasRequiredV8PrototypeDefineBug;
  456. function requireV8PrototypeDefineBug () {
  457. if (hasRequiredV8PrototypeDefineBug) return v8PrototypeDefineBug;
  458. hasRequiredV8PrototypeDefineBug = 1;
  459. var DESCRIPTORS = requireDescriptors();
  460. var fails = requireFails();
  461. // V8 ~ Chrome 36-
  462. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  463. v8PrototypeDefineBug = DESCRIPTORS && fails(function () {
  464. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  465. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  466. value: 42,
  467. writable: false
  468. }).prototype !== 42;
  469. });
  470. return v8PrototypeDefineBug;
  471. }
  472. var anObject;
  473. var hasRequiredAnObject;
  474. function requireAnObject () {
  475. if (hasRequiredAnObject) return anObject;
  476. hasRequiredAnObject = 1;
  477. var isObject = requireIsObject();
  478. var $String = String;
  479. var $TypeError = TypeError;
  480. // `Assert: Type(argument) is Object`
  481. anObject = function (argument) {
  482. if (isObject(argument)) return argument;
  483. throw new $TypeError($String(argument) + ' is not an object');
  484. };
  485. return anObject;
  486. }
  487. var functionCall;
  488. var hasRequiredFunctionCall;
  489. function requireFunctionCall () {
  490. if (hasRequiredFunctionCall) return functionCall;
  491. hasRequiredFunctionCall = 1;
  492. var NATIVE_BIND = requireFunctionBindNative();
  493. var call = Function.prototype.call;
  494. functionCall = NATIVE_BIND ? call.bind(call) : function () {
  495. return call.apply(call, arguments);
  496. };
  497. return functionCall;
  498. }
  499. var getBuiltIn;
  500. var hasRequiredGetBuiltIn;
  501. function requireGetBuiltIn () {
  502. if (hasRequiredGetBuiltIn) return getBuiltIn;
  503. hasRequiredGetBuiltIn = 1;
  504. var globalThis = requireGlobalThis();
  505. var isCallable = requireIsCallable();
  506. var aFunction = function (argument) {
  507. return isCallable(argument) ? argument : undefined;
  508. };
  509. getBuiltIn = function (namespace, method) {
  510. return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
  511. };
  512. return getBuiltIn;
  513. }
  514. var objectIsPrototypeOf;
  515. var hasRequiredObjectIsPrototypeOf;
  516. function requireObjectIsPrototypeOf () {
  517. if (hasRequiredObjectIsPrototypeOf) return objectIsPrototypeOf;
  518. hasRequiredObjectIsPrototypeOf = 1;
  519. var uncurryThis = requireFunctionUncurryThis();
  520. objectIsPrototypeOf = uncurryThis({}.isPrototypeOf);
  521. return objectIsPrototypeOf;
  522. }
  523. var isSymbol;
  524. var hasRequiredIsSymbol;
  525. function requireIsSymbol () {
  526. if (hasRequiredIsSymbol) return isSymbol;
  527. hasRequiredIsSymbol = 1;
  528. var getBuiltIn = requireGetBuiltIn();
  529. var isCallable = requireIsCallable();
  530. var isPrototypeOf = requireObjectIsPrototypeOf();
  531. var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
  532. var $Object = Object;
  533. isSymbol = USE_SYMBOL_AS_UID ? function (it) {
  534. return typeof it == 'symbol';
  535. } : function (it) {
  536. var $Symbol = getBuiltIn('Symbol');
  537. return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
  538. };
  539. return isSymbol;
  540. }
  541. var tryToString;
  542. var hasRequiredTryToString;
  543. function requireTryToString () {
  544. if (hasRequiredTryToString) return tryToString;
  545. hasRequiredTryToString = 1;
  546. var $String = String;
  547. tryToString = function (argument) {
  548. try {
  549. return $String(argument);
  550. } catch (error) {
  551. return 'Object';
  552. }
  553. };
  554. return tryToString;
  555. }
  556. var aCallable;
  557. var hasRequiredACallable;
  558. function requireACallable () {
  559. if (hasRequiredACallable) return aCallable;
  560. hasRequiredACallable = 1;
  561. var isCallable = requireIsCallable();
  562. var tryToString = requireTryToString();
  563. var $TypeError = TypeError;
  564. // `Assert: IsCallable(argument) is true`
  565. aCallable = function (argument) {
  566. if (isCallable(argument)) return argument;
  567. throw new $TypeError(tryToString(argument) + ' is not a function');
  568. };
  569. return aCallable;
  570. }
  571. var getMethod;
  572. var hasRequiredGetMethod;
  573. function requireGetMethod () {
  574. if (hasRequiredGetMethod) return getMethod;
  575. hasRequiredGetMethod = 1;
  576. var aCallable = requireACallable();
  577. var isNullOrUndefined = requireIsNullOrUndefined();
  578. // `GetMethod` abstract operation
  579. // https://tc39.es/ecma262/#sec-getmethod
  580. getMethod = function (V, P) {
  581. var func = V[P];
  582. return isNullOrUndefined(func) ? undefined : aCallable(func);
  583. };
  584. return getMethod;
  585. }
  586. var ordinaryToPrimitive;
  587. var hasRequiredOrdinaryToPrimitive;
  588. function requireOrdinaryToPrimitive () {
  589. if (hasRequiredOrdinaryToPrimitive) return ordinaryToPrimitive;
  590. hasRequiredOrdinaryToPrimitive = 1;
  591. var call = requireFunctionCall();
  592. var isCallable = requireIsCallable();
  593. var isObject = requireIsObject();
  594. var $TypeError = TypeError;
  595. // `OrdinaryToPrimitive` abstract operation
  596. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  597. ordinaryToPrimitive = function (input, pref) {
  598. var fn, val;
  599. if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  600. if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
  601. if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  602. throw new $TypeError("Can't convert object to primitive value");
  603. };
  604. return ordinaryToPrimitive;
  605. }
  606. var toPrimitive;
  607. var hasRequiredToPrimitive;
  608. function requireToPrimitive () {
  609. if (hasRequiredToPrimitive) return toPrimitive;
  610. hasRequiredToPrimitive = 1;
  611. var call = requireFunctionCall();
  612. var isObject = requireIsObject();
  613. var isSymbol = requireIsSymbol();
  614. var getMethod = requireGetMethod();
  615. var ordinaryToPrimitive = requireOrdinaryToPrimitive();
  616. var wellKnownSymbol = requireWellKnownSymbol();
  617. var $TypeError = TypeError;
  618. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  619. // `ToPrimitive` abstract operation
  620. // https://tc39.es/ecma262/#sec-toprimitive
  621. toPrimitive = function (input, pref) {
  622. if (!isObject(input) || isSymbol(input)) return input;
  623. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  624. var result;
  625. if (exoticToPrim) {
  626. if (pref === undefined) pref = 'default';
  627. result = call(exoticToPrim, input, pref);
  628. if (!isObject(result) || isSymbol(result)) return result;
  629. throw new $TypeError("Can't convert object to primitive value");
  630. }
  631. if (pref === undefined) pref = 'number';
  632. return ordinaryToPrimitive(input, pref);
  633. };
  634. return toPrimitive;
  635. }
  636. var toPropertyKey;
  637. var hasRequiredToPropertyKey;
  638. function requireToPropertyKey () {
  639. if (hasRequiredToPropertyKey) return toPropertyKey;
  640. hasRequiredToPropertyKey = 1;
  641. var toPrimitive = requireToPrimitive();
  642. var isSymbol = requireIsSymbol();
  643. // `ToPropertyKey` abstract operation
  644. // https://tc39.es/ecma262/#sec-topropertykey
  645. toPropertyKey = function (argument) {
  646. var key = toPrimitive(argument, 'string');
  647. return isSymbol(key) ? key : key + '';
  648. };
  649. return toPropertyKey;
  650. }
  651. var hasRequiredObjectDefineProperty;
  652. function requireObjectDefineProperty () {
  653. if (hasRequiredObjectDefineProperty) return objectDefineProperty;
  654. hasRequiredObjectDefineProperty = 1;
  655. var DESCRIPTORS = requireDescriptors();
  656. var IE8_DOM_DEFINE = requireIe8DomDefine();
  657. var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
  658. var anObject = requireAnObject();
  659. var toPropertyKey = requireToPropertyKey();
  660. var $TypeError = TypeError;
  661. // eslint-disable-next-line es/no-object-defineproperty -- safe
  662. var $defineProperty = Object.defineProperty;
  663. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  664. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  665. var ENUMERABLE = 'enumerable';
  666. var CONFIGURABLE = 'configurable';
  667. var WRITABLE = 'writable';
  668. // `Object.defineProperty` method
  669. // https://tc39.es/ecma262/#sec-object.defineproperty
  670. objectDefineProperty.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  671. anObject(O);
  672. P = toPropertyKey(P);
  673. anObject(Attributes);
  674. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  675. var current = $getOwnPropertyDescriptor(O, P);
  676. if (current && current[WRITABLE]) {
  677. O[P] = Attributes.value;
  678. Attributes = {
  679. configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
  680. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  681. writable: false
  682. };
  683. }
  684. } return $defineProperty(O, P, Attributes);
  685. } : $defineProperty : function defineProperty(O, P, Attributes) {
  686. anObject(O);
  687. P = toPropertyKey(P);
  688. anObject(Attributes);
  689. if (IE8_DOM_DEFINE) try {
  690. return $defineProperty(O, P, Attributes);
  691. } catch (error) { /* empty */ }
  692. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
  693. if ('value' in Attributes) O[P] = Attributes.value;
  694. return O;
  695. };
  696. return objectDefineProperty;
  697. }
  698. var makeBuiltIn = {exports: {}};
  699. var functionName;
  700. var hasRequiredFunctionName;
  701. function requireFunctionName () {
  702. if (hasRequiredFunctionName) return functionName;
  703. hasRequiredFunctionName = 1;
  704. var DESCRIPTORS = requireDescriptors();
  705. var hasOwn = requireHasOwnProperty();
  706. var FunctionPrototype = Function.prototype;
  707. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  708. var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
  709. var EXISTS = hasOwn(FunctionPrototype, 'name');
  710. // additional protection from minified / mangled / dropped function names
  711. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  712. var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
  713. functionName = {
  714. EXISTS: EXISTS,
  715. PROPER: PROPER,
  716. CONFIGURABLE: CONFIGURABLE
  717. };
  718. return functionName;
  719. }
  720. var inspectSource;
  721. var hasRequiredInspectSource;
  722. function requireInspectSource () {
  723. if (hasRequiredInspectSource) return inspectSource;
  724. hasRequiredInspectSource = 1;
  725. var uncurryThis = requireFunctionUncurryThis();
  726. var isCallable = requireIsCallable();
  727. var store = requireSharedStore();
  728. var functionToString = uncurryThis(Function.toString);
  729. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  730. if (!isCallable(store.inspectSource)) {
  731. store.inspectSource = function (it) {
  732. return functionToString(it);
  733. };
  734. }
  735. inspectSource = store.inspectSource;
  736. return inspectSource;
  737. }
  738. var weakMapBasicDetection;
  739. var hasRequiredWeakMapBasicDetection;
  740. function requireWeakMapBasicDetection () {
  741. if (hasRequiredWeakMapBasicDetection) return weakMapBasicDetection;
  742. hasRequiredWeakMapBasicDetection = 1;
  743. var globalThis = requireGlobalThis();
  744. var isCallable = requireIsCallable();
  745. var WeakMap = globalThis.WeakMap;
  746. weakMapBasicDetection = isCallable(WeakMap) && /native code/.test(String(WeakMap));
  747. return weakMapBasicDetection;
  748. }
  749. var createPropertyDescriptor;
  750. var hasRequiredCreatePropertyDescriptor;
  751. function requireCreatePropertyDescriptor () {
  752. if (hasRequiredCreatePropertyDescriptor) return createPropertyDescriptor;
  753. hasRequiredCreatePropertyDescriptor = 1;
  754. createPropertyDescriptor = function (bitmap, value) {
  755. return {
  756. enumerable: !(bitmap & 1),
  757. configurable: !(bitmap & 2),
  758. writable: !(bitmap & 4),
  759. value: value
  760. };
  761. };
  762. return createPropertyDescriptor;
  763. }
  764. var createNonEnumerableProperty;
  765. var hasRequiredCreateNonEnumerableProperty;
  766. function requireCreateNonEnumerableProperty () {
  767. if (hasRequiredCreateNonEnumerableProperty) return createNonEnumerableProperty;
  768. hasRequiredCreateNonEnumerableProperty = 1;
  769. var DESCRIPTORS = requireDescriptors();
  770. var definePropertyModule = requireObjectDefineProperty();
  771. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  772. createNonEnumerableProperty = DESCRIPTORS ? function (object, key, value) {
  773. return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
  774. } : function (object, key, value) {
  775. object[key] = value;
  776. return object;
  777. };
  778. return createNonEnumerableProperty;
  779. }
  780. var sharedKey;
  781. var hasRequiredSharedKey;
  782. function requireSharedKey () {
  783. if (hasRequiredSharedKey) return sharedKey;
  784. hasRequiredSharedKey = 1;
  785. var shared = requireShared();
  786. var uid = requireUid();
  787. var keys = shared('keys');
  788. sharedKey = function (key) {
  789. return keys[key] || (keys[key] = uid(key));
  790. };
  791. return sharedKey;
  792. }
  793. var hiddenKeys;
  794. var hasRequiredHiddenKeys;
  795. function requireHiddenKeys () {
  796. if (hasRequiredHiddenKeys) return hiddenKeys;
  797. hasRequiredHiddenKeys = 1;
  798. hiddenKeys = {};
  799. return hiddenKeys;
  800. }
  801. var internalState;
  802. var hasRequiredInternalState;
  803. function requireInternalState () {
  804. if (hasRequiredInternalState) return internalState;
  805. hasRequiredInternalState = 1;
  806. var NATIVE_WEAK_MAP = requireWeakMapBasicDetection();
  807. var globalThis = requireGlobalThis();
  808. var isObject = requireIsObject();
  809. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  810. var hasOwn = requireHasOwnProperty();
  811. var shared = requireSharedStore();
  812. var sharedKey = requireSharedKey();
  813. var hiddenKeys = requireHiddenKeys();
  814. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  815. var TypeError = globalThis.TypeError;
  816. var WeakMap = globalThis.WeakMap;
  817. var set, get, has;
  818. var enforce = function (it) {
  819. return has(it) ? get(it) : set(it, {});
  820. };
  821. var getterFor = function (TYPE) {
  822. return function (it) {
  823. var state;
  824. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  825. throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
  826. } return state;
  827. };
  828. };
  829. if (NATIVE_WEAK_MAP || shared.state) {
  830. var store = shared.state || (shared.state = new WeakMap());
  831. /* eslint-disable no-self-assign -- prototype methods protection */
  832. store.get = store.get;
  833. store.has = store.has;
  834. store.set = store.set;
  835. /* eslint-enable no-self-assign -- prototype methods protection */
  836. set = function (it, metadata) {
  837. if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  838. metadata.facade = it;
  839. store.set(it, metadata);
  840. return metadata;
  841. };
  842. get = function (it) {
  843. return store.get(it) || {};
  844. };
  845. has = function (it) {
  846. return store.has(it);
  847. };
  848. } else {
  849. var STATE = sharedKey('state');
  850. hiddenKeys[STATE] = true;
  851. set = function (it, metadata) {
  852. if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  853. metadata.facade = it;
  854. createNonEnumerableProperty(it, STATE, metadata);
  855. return metadata;
  856. };
  857. get = function (it) {
  858. return hasOwn(it, STATE) ? it[STATE] : {};
  859. };
  860. has = function (it) {
  861. return hasOwn(it, STATE);
  862. };
  863. }
  864. internalState = {
  865. set: set,
  866. get: get,
  867. has: has,
  868. enforce: enforce,
  869. getterFor: getterFor
  870. };
  871. return internalState;
  872. }
  873. var hasRequiredMakeBuiltIn;
  874. function requireMakeBuiltIn () {
  875. if (hasRequiredMakeBuiltIn) return makeBuiltIn.exports;
  876. hasRequiredMakeBuiltIn = 1;
  877. var uncurryThis = requireFunctionUncurryThis();
  878. var fails = requireFails();
  879. var isCallable = requireIsCallable();
  880. var hasOwn = requireHasOwnProperty();
  881. var DESCRIPTORS = requireDescriptors();
  882. var CONFIGURABLE_FUNCTION_NAME = requireFunctionName().CONFIGURABLE;
  883. var inspectSource = requireInspectSource();
  884. var InternalStateModule = requireInternalState();
  885. var enforceInternalState = InternalStateModule.enforce;
  886. var getInternalState = InternalStateModule.get;
  887. var $String = String;
  888. // eslint-disable-next-line es/no-object-defineproperty -- safe
  889. var defineProperty = Object.defineProperty;
  890. var stringSlice = uncurryThis(''.slice);
  891. var replace = uncurryThis(''.replace);
  892. var join = uncurryThis([].join);
  893. var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
  894. return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  895. });
  896. var TEMPLATE = String(String).split('String');
  897. var makeBuiltIn$1 = makeBuiltIn.exports = function (value, name, options) {
  898. if (stringSlice($String(name), 0, 7) === 'Symbol(') {
  899. name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  900. }
  901. if (options && options.getter) name = 'get ' + name;
  902. if (options && options.setter) name = 'set ' + name;
  903. if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  904. if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
  905. else value.name = name;
  906. }
  907. if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
  908. defineProperty(value, 'length', { value: options.arity });
  909. }
  910. try {
  911. if (options && hasOwn(options, 'constructor') && options.constructor) {
  912. if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
  913. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  914. } else if (value.prototype) value.prototype = undefined;
  915. } catch (error) { /* empty */ }
  916. var state = enforceInternalState(value);
  917. if (!hasOwn(state, 'source')) {
  918. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  919. } return value;
  920. };
  921. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  922. // eslint-disable-next-line no-extend-native -- required
  923. Function.prototype.toString = makeBuiltIn$1(function toString() {
  924. return isCallable(this) && getInternalState(this).source || inspectSource(this);
  925. }, 'toString');
  926. return makeBuiltIn.exports;
  927. }
  928. var defineBuiltIn;
  929. var hasRequiredDefineBuiltIn;
  930. function requireDefineBuiltIn () {
  931. if (hasRequiredDefineBuiltIn) return defineBuiltIn;
  932. hasRequiredDefineBuiltIn = 1;
  933. var isCallable = requireIsCallable();
  934. var definePropertyModule = requireObjectDefineProperty();
  935. var makeBuiltIn = requireMakeBuiltIn();
  936. var defineGlobalProperty = requireDefineGlobalProperty();
  937. defineBuiltIn = function (O, key, value, options) {
  938. if (!options) options = {};
  939. var simple = options.enumerable;
  940. var name = options.name !== undefined ? options.name : key;
  941. if (isCallable(value)) makeBuiltIn(value, name, options);
  942. if (options.global) {
  943. if (simple) O[key] = value;
  944. else defineGlobalProperty(key, value);
  945. } else {
  946. try {
  947. if (!options.unsafe) delete O[key];
  948. else if (O[key]) simple = true;
  949. } catch (error) { /* empty */ }
  950. if (simple) O[key] = value;
  951. else definePropertyModule.f(O, key, {
  952. value: value,
  953. enumerable: false,
  954. configurable: !options.nonConfigurable,
  955. writable: !options.nonWritable
  956. });
  957. } return O;
  958. };
  959. return defineBuiltIn;
  960. }
  961. var classofRaw;
  962. var hasRequiredClassofRaw;
  963. function requireClassofRaw () {
  964. if (hasRequiredClassofRaw) return classofRaw;
  965. hasRequiredClassofRaw = 1;
  966. var uncurryThis = requireFunctionUncurryThis();
  967. var toString = uncurryThis({}.toString);
  968. var stringSlice = uncurryThis(''.slice);
  969. classofRaw = function (it) {
  970. return stringSlice(toString(it), 8, -1);
  971. };
  972. return classofRaw;
  973. }
  974. var classof;
  975. var hasRequiredClassof;
  976. function requireClassof () {
  977. if (hasRequiredClassof) return classof;
  978. hasRequiredClassof = 1;
  979. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  980. var isCallable = requireIsCallable();
  981. var classofRaw = requireClassofRaw();
  982. var wellKnownSymbol = requireWellKnownSymbol();
  983. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  984. var $Object = Object;
  985. // ES3 wrong here
  986. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
  987. // fallback for IE11 Script Access Denied error
  988. var tryGet = function (it, key) {
  989. try {
  990. return it[key];
  991. } catch (error) { /* empty */ }
  992. };
  993. // getting tag from ES6+ `Object.prototype.toString`
  994. classof = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
  995. var O, tag, result;
  996. return it === undefined ? 'Undefined' : it === null ? 'Null'
  997. // @@toStringTag case
  998. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  999. // builtinTag case
  1000. : CORRECT_ARGUMENTS ? classofRaw(O)
  1001. // ES3 arguments fallback
  1002. : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
  1003. };
  1004. return classof;
  1005. }
  1006. var objectToString;
  1007. var hasRequiredObjectToString;
  1008. function requireObjectToString () {
  1009. if (hasRequiredObjectToString) return objectToString;
  1010. hasRequiredObjectToString = 1;
  1011. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  1012. var classof = requireClassof();
  1013. // `Object.prototype.toString` method implementation
  1014. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1015. objectToString = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
  1016. return '[object ' + classof(this) + ']';
  1017. };
  1018. return objectToString;
  1019. }
  1020. var hasRequiredEs_object_toString;
  1021. function requireEs_object_toString () {
  1022. if (hasRequiredEs_object_toString) return es_object_toString;
  1023. hasRequiredEs_object_toString = 1;
  1024. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  1025. var defineBuiltIn = requireDefineBuiltIn();
  1026. var toString = requireObjectToString();
  1027. // `Object.prototype.toString` method
  1028. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1029. if (!TO_STRING_TAG_SUPPORT) {
  1030. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  1031. }
  1032. return es_object_toString;
  1033. }
  1034. requireEs_object_toString();
  1035. var web_domCollections_forEach = {};
  1036. var domIterables;
  1037. var hasRequiredDomIterables;
  1038. function requireDomIterables () {
  1039. if (hasRequiredDomIterables) return domIterables;
  1040. hasRequiredDomIterables = 1;
  1041. // iterable DOM collections
  1042. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  1043. domIterables = {
  1044. CSSRuleList: 0,
  1045. CSSStyleDeclaration: 0,
  1046. CSSValueList: 0,
  1047. ClientRectList: 0,
  1048. DOMRectList: 0,
  1049. DOMStringList: 0,
  1050. DOMTokenList: 1,
  1051. DataTransferItemList: 0,
  1052. FileList: 0,
  1053. HTMLAllCollection: 0,
  1054. HTMLCollection: 0,
  1055. HTMLFormElement: 0,
  1056. HTMLSelectElement: 0,
  1057. MediaList: 0,
  1058. MimeTypeArray: 0,
  1059. NamedNodeMap: 0,
  1060. NodeList: 1,
  1061. PaintRequestList: 0,
  1062. Plugin: 0,
  1063. PluginArray: 0,
  1064. SVGLengthList: 0,
  1065. SVGNumberList: 0,
  1066. SVGPathSegList: 0,
  1067. SVGPointList: 0,
  1068. SVGStringList: 0,
  1069. SVGTransformList: 0,
  1070. SourceBufferList: 0,
  1071. StyleSheetList: 0,
  1072. TextTrackCueList: 0,
  1073. TextTrackList: 0,
  1074. TouchList: 0
  1075. };
  1076. return domIterables;
  1077. }
  1078. var domTokenListPrototype;
  1079. var hasRequiredDomTokenListPrototype;
  1080. function requireDomTokenListPrototype () {
  1081. if (hasRequiredDomTokenListPrototype) return domTokenListPrototype;
  1082. hasRequiredDomTokenListPrototype = 1;
  1083. // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
  1084. var documentCreateElement = requireDocumentCreateElement();
  1085. var classList = documentCreateElement('span').classList;
  1086. var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
  1087. domTokenListPrototype = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
  1088. return domTokenListPrototype;
  1089. }
  1090. var functionUncurryThisClause;
  1091. var hasRequiredFunctionUncurryThisClause;
  1092. function requireFunctionUncurryThisClause () {
  1093. if (hasRequiredFunctionUncurryThisClause) return functionUncurryThisClause;
  1094. hasRequiredFunctionUncurryThisClause = 1;
  1095. var classofRaw = requireClassofRaw();
  1096. var uncurryThis = requireFunctionUncurryThis();
  1097. functionUncurryThisClause = function (fn) {
  1098. // Nashorn bug:
  1099. // https://github.com/zloirock/core-js/issues/1128
  1100. // https://github.com/zloirock/core-js/issues/1130
  1101. if (classofRaw(fn) === 'Function') return uncurryThis(fn);
  1102. };
  1103. return functionUncurryThisClause;
  1104. }
  1105. var functionBindContext;
  1106. var hasRequiredFunctionBindContext;
  1107. function requireFunctionBindContext () {
  1108. if (hasRequiredFunctionBindContext) return functionBindContext;
  1109. hasRequiredFunctionBindContext = 1;
  1110. var uncurryThis = requireFunctionUncurryThisClause();
  1111. var aCallable = requireACallable();
  1112. var NATIVE_BIND = requireFunctionBindNative();
  1113. var bind = uncurryThis(uncurryThis.bind);
  1114. // optional / simple context binding
  1115. functionBindContext = function (fn, that) {
  1116. aCallable(fn);
  1117. return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
  1118. return fn.apply(that, arguments);
  1119. };
  1120. };
  1121. return functionBindContext;
  1122. }
  1123. var indexedObject;
  1124. var hasRequiredIndexedObject;
  1125. function requireIndexedObject () {
  1126. if (hasRequiredIndexedObject) return indexedObject;
  1127. hasRequiredIndexedObject = 1;
  1128. var uncurryThis = requireFunctionUncurryThis();
  1129. var fails = requireFails();
  1130. var classof = requireClassofRaw();
  1131. var $Object = Object;
  1132. var split = uncurryThis(''.split);
  1133. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  1134. indexedObject = fails(function () {
  1135. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  1136. // eslint-disable-next-line no-prototype-builtins -- safe
  1137. return !$Object('z').propertyIsEnumerable(0);
  1138. }) ? function (it) {
  1139. return classof(it) === 'String' ? split(it, '') : $Object(it);
  1140. } : $Object;
  1141. return indexedObject;
  1142. }
  1143. var mathTrunc;
  1144. var hasRequiredMathTrunc;
  1145. function requireMathTrunc () {
  1146. if (hasRequiredMathTrunc) return mathTrunc;
  1147. hasRequiredMathTrunc = 1;
  1148. var ceil = Math.ceil;
  1149. var floor = Math.floor;
  1150. // `Math.trunc` method
  1151. // https://tc39.es/ecma262/#sec-math.trunc
  1152. // eslint-disable-next-line es/no-math-trunc -- safe
  1153. mathTrunc = Math.trunc || function trunc(x) {
  1154. var n = +x;
  1155. return (n > 0 ? floor : ceil)(n);
  1156. };
  1157. return mathTrunc;
  1158. }
  1159. var toIntegerOrInfinity;
  1160. var hasRequiredToIntegerOrInfinity;
  1161. function requireToIntegerOrInfinity () {
  1162. if (hasRequiredToIntegerOrInfinity) return toIntegerOrInfinity;
  1163. hasRequiredToIntegerOrInfinity = 1;
  1164. var trunc = requireMathTrunc();
  1165. // `ToIntegerOrInfinity` abstract operation
  1166. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  1167. toIntegerOrInfinity = function (argument) {
  1168. var number = +argument;
  1169. // eslint-disable-next-line no-self-compare -- NaN check
  1170. return number !== number || number === 0 ? 0 : trunc(number);
  1171. };
  1172. return toIntegerOrInfinity;
  1173. }
  1174. var toLength;
  1175. var hasRequiredToLength;
  1176. function requireToLength () {
  1177. if (hasRequiredToLength) return toLength;
  1178. hasRequiredToLength = 1;
  1179. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  1180. var min = Math.min;
  1181. // `ToLength` abstract operation
  1182. // https://tc39.es/ecma262/#sec-tolength
  1183. toLength = function (argument) {
  1184. var len = toIntegerOrInfinity(argument);
  1185. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  1186. };
  1187. return toLength;
  1188. }
  1189. var lengthOfArrayLike;
  1190. var hasRequiredLengthOfArrayLike;
  1191. function requireLengthOfArrayLike () {
  1192. if (hasRequiredLengthOfArrayLike) return lengthOfArrayLike;
  1193. hasRequiredLengthOfArrayLike = 1;
  1194. var toLength = requireToLength();
  1195. // `LengthOfArrayLike` abstract operation
  1196. // https://tc39.es/ecma262/#sec-lengthofarraylike
  1197. lengthOfArrayLike = function (obj) {
  1198. return toLength(obj.length);
  1199. };
  1200. return lengthOfArrayLike;
  1201. }
  1202. var isArray;
  1203. var hasRequiredIsArray;
  1204. function requireIsArray () {
  1205. if (hasRequiredIsArray) return isArray;
  1206. hasRequiredIsArray = 1;
  1207. var classof = requireClassofRaw();
  1208. // `IsArray` abstract operation
  1209. // https://tc39.es/ecma262/#sec-isarray
  1210. // eslint-disable-next-line es/no-array-isarray -- safe
  1211. isArray = Array.isArray || function isArray(argument) {
  1212. return classof(argument) === 'Array';
  1213. };
  1214. return isArray;
  1215. }
  1216. var isConstructor;
  1217. var hasRequiredIsConstructor;
  1218. function requireIsConstructor () {
  1219. if (hasRequiredIsConstructor) return isConstructor;
  1220. hasRequiredIsConstructor = 1;
  1221. var uncurryThis = requireFunctionUncurryThis();
  1222. var fails = requireFails();
  1223. var isCallable = requireIsCallable();
  1224. var classof = requireClassof();
  1225. var getBuiltIn = requireGetBuiltIn();
  1226. var inspectSource = requireInspectSource();
  1227. var noop = function () { /* empty */ };
  1228. var construct = getBuiltIn('Reflect', 'construct');
  1229. var constructorRegExp = /^\s*(?:class|function)\b/;
  1230. var exec = uncurryThis(constructorRegExp.exec);
  1231. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1232. var isConstructorModern = function isConstructor(argument) {
  1233. if (!isCallable(argument)) return false;
  1234. try {
  1235. construct(noop, [], argument);
  1236. return true;
  1237. } catch (error) {
  1238. return false;
  1239. }
  1240. };
  1241. var isConstructorLegacy = function isConstructor(argument) {
  1242. if (!isCallable(argument)) return false;
  1243. switch (classof(argument)) {
  1244. case 'AsyncFunction':
  1245. case 'GeneratorFunction':
  1246. case 'AsyncGeneratorFunction': return false;
  1247. }
  1248. try {
  1249. // we can't check .prototype since constructors produced by .bind haven't it
  1250. // `Function#toString` throws on some built-it function in some legacy engines
  1251. // (for example, `DOMQuad` and similar in FF41-)
  1252. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1253. } catch (error) {
  1254. return true;
  1255. }
  1256. };
  1257. isConstructorLegacy.sham = true;
  1258. // `IsConstructor` abstract operation
  1259. // https://tc39.es/ecma262/#sec-isconstructor
  1260. isConstructor = !construct || fails(function () {
  1261. var called;
  1262. return isConstructorModern(isConstructorModern.call)
  1263. || !isConstructorModern(Object)
  1264. || !isConstructorModern(function () { called = true; })
  1265. || called;
  1266. }) ? isConstructorLegacy : isConstructorModern;
  1267. return isConstructor;
  1268. }
  1269. var arraySpeciesConstructor;
  1270. var hasRequiredArraySpeciesConstructor;
  1271. function requireArraySpeciesConstructor () {
  1272. if (hasRequiredArraySpeciesConstructor) return arraySpeciesConstructor;
  1273. hasRequiredArraySpeciesConstructor = 1;
  1274. var isArray = requireIsArray();
  1275. var isConstructor = requireIsConstructor();
  1276. var isObject = requireIsObject();
  1277. var wellKnownSymbol = requireWellKnownSymbol();
  1278. var SPECIES = wellKnownSymbol('species');
  1279. var $Array = Array;
  1280. // a part of `ArraySpeciesCreate` abstract operation
  1281. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1282. arraySpeciesConstructor = function (originalArray) {
  1283. var C;
  1284. if (isArray(originalArray)) {
  1285. C = originalArray.constructor;
  1286. // cross-realm fallback
  1287. if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
  1288. else if (isObject(C)) {
  1289. C = C[SPECIES];
  1290. if (C === null) C = undefined;
  1291. }
  1292. } return C === undefined ? $Array : C;
  1293. };
  1294. return arraySpeciesConstructor;
  1295. }
  1296. var arraySpeciesCreate;
  1297. var hasRequiredArraySpeciesCreate;
  1298. function requireArraySpeciesCreate () {
  1299. if (hasRequiredArraySpeciesCreate) return arraySpeciesCreate;
  1300. hasRequiredArraySpeciesCreate = 1;
  1301. var arraySpeciesConstructor = requireArraySpeciesConstructor();
  1302. // `ArraySpeciesCreate` abstract operation
  1303. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1304. arraySpeciesCreate = function (originalArray, length) {
  1305. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1306. };
  1307. return arraySpeciesCreate;
  1308. }
  1309. var arrayIteration;
  1310. var hasRequiredArrayIteration;
  1311. function requireArrayIteration () {
  1312. if (hasRequiredArrayIteration) return arrayIteration;
  1313. hasRequiredArrayIteration = 1;
  1314. var bind = requireFunctionBindContext();
  1315. var uncurryThis = requireFunctionUncurryThis();
  1316. var IndexedObject = requireIndexedObject();
  1317. var toObject = requireToObject();
  1318. var lengthOfArrayLike = requireLengthOfArrayLike();
  1319. var arraySpeciesCreate = requireArraySpeciesCreate();
  1320. var push = uncurryThis([].push);
  1321. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1322. var createMethod = function (TYPE) {
  1323. var IS_MAP = TYPE === 1;
  1324. var IS_FILTER = TYPE === 2;
  1325. var IS_SOME = TYPE === 3;
  1326. var IS_EVERY = TYPE === 4;
  1327. var IS_FIND_INDEX = TYPE === 6;
  1328. var IS_FILTER_REJECT = TYPE === 7;
  1329. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1330. return function ($this, callbackfn, that, specificCreate) {
  1331. var O = toObject($this);
  1332. var self = IndexedObject(O);
  1333. var length = lengthOfArrayLike(self);
  1334. var boundFunction = bind(callbackfn, that);
  1335. var index = 0;
  1336. var create = specificCreate || arraySpeciesCreate;
  1337. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1338. var value, result;
  1339. for (;length > index; index++) if (NO_HOLES || index in self) {
  1340. value = self[index];
  1341. result = boundFunction(value, index, O);
  1342. if (TYPE) {
  1343. if (IS_MAP) target[index] = result; // map
  1344. else if (result) switch (TYPE) {
  1345. case 3: return true; // some
  1346. case 5: return value; // find
  1347. case 6: return index; // findIndex
  1348. case 2: push(target, value); // filter
  1349. } else switch (TYPE) {
  1350. case 4: return false; // every
  1351. case 7: push(target, value); // filterReject
  1352. }
  1353. }
  1354. }
  1355. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1356. };
  1357. };
  1358. arrayIteration = {
  1359. // `Array.prototype.forEach` method
  1360. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1361. forEach: createMethod(0),
  1362. // `Array.prototype.map` method
  1363. // https://tc39.es/ecma262/#sec-array.prototype.map
  1364. map: createMethod(1),
  1365. // `Array.prototype.filter` method
  1366. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1367. filter: createMethod(2),
  1368. // `Array.prototype.some` method
  1369. // https://tc39.es/ecma262/#sec-array.prototype.some
  1370. some: createMethod(3),
  1371. // `Array.prototype.every` method
  1372. // https://tc39.es/ecma262/#sec-array.prototype.every
  1373. every: createMethod(4),
  1374. // `Array.prototype.find` method
  1375. // https://tc39.es/ecma262/#sec-array.prototype.find
  1376. find: createMethod(5),
  1377. // `Array.prototype.findIndex` method
  1378. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1379. findIndex: createMethod(6),
  1380. // `Array.prototype.filterReject` method
  1381. // https://github.com/tc39/proposal-array-filtering
  1382. filterReject: createMethod(7)
  1383. };
  1384. return arrayIteration;
  1385. }
  1386. var arrayMethodIsStrict;
  1387. var hasRequiredArrayMethodIsStrict;
  1388. function requireArrayMethodIsStrict () {
  1389. if (hasRequiredArrayMethodIsStrict) return arrayMethodIsStrict;
  1390. hasRequiredArrayMethodIsStrict = 1;
  1391. var fails = requireFails();
  1392. arrayMethodIsStrict = function (METHOD_NAME, argument) {
  1393. var method = [][METHOD_NAME];
  1394. return !!method && fails(function () {
  1395. // eslint-disable-next-line no-useless-call -- required for testing
  1396. method.call(null, argument || function () { return 1; }, 1);
  1397. });
  1398. };
  1399. return arrayMethodIsStrict;
  1400. }
  1401. var arrayForEach;
  1402. var hasRequiredArrayForEach;
  1403. function requireArrayForEach () {
  1404. if (hasRequiredArrayForEach) return arrayForEach;
  1405. hasRequiredArrayForEach = 1;
  1406. var $forEach = requireArrayIteration().forEach;
  1407. var arrayMethodIsStrict = requireArrayMethodIsStrict();
  1408. var STRICT_METHOD = arrayMethodIsStrict('forEach');
  1409. // `Array.prototype.forEach` method implementation
  1410. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1411. arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
  1412. return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1413. // eslint-disable-next-line es/no-array-prototype-foreach -- safe
  1414. } : [].forEach;
  1415. return arrayForEach;
  1416. }
  1417. var hasRequiredWeb_domCollections_forEach;
  1418. function requireWeb_domCollections_forEach () {
  1419. if (hasRequiredWeb_domCollections_forEach) return web_domCollections_forEach;
  1420. hasRequiredWeb_domCollections_forEach = 1;
  1421. var globalThis = requireGlobalThis();
  1422. var DOMIterables = requireDomIterables();
  1423. var DOMTokenListPrototype = requireDomTokenListPrototype();
  1424. var forEach = requireArrayForEach();
  1425. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  1426. var handlePrototype = function (CollectionPrototype) {
  1427. // some Chrome versions have non-configurable methods on DOMTokenList
  1428. if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
  1429. createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
  1430. } catch (error) {
  1431. CollectionPrototype.forEach = forEach;
  1432. }
  1433. };
  1434. for (var COLLECTION_NAME in DOMIterables) {
  1435. if (DOMIterables[COLLECTION_NAME]) {
  1436. handlePrototype(globalThis[COLLECTION_NAME] && globalThis[COLLECTION_NAME].prototype);
  1437. }
  1438. }
  1439. handlePrototype(DOMTokenListPrototype);
  1440. return web_domCollections_forEach;
  1441. }
  1442. requireWeb_domCollections_forEach();
  1443. /**
  1444. * @author: Jewway
  1445. * @update zhixin wen <wenzhixin2010@gmail.com>
  1446. */
  1447. $.fn.bootstrapTable.methods.push('changeTitle');
  1448. $.fn.bootstrapTable.methods.push('changeLocale');
  1449. $.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1450. function _class() {
  1451. _classCallCheck(this, _class);
  1452. return _callSuper(this, _class, arguments);
  1453. }
  1454. _inherits(_class, _$$BootstrapTable);
  1455. return _createClass(_class, [{
  1456. key: "changeTitle",
  1457. value: function changeTitle(locale) {
  1458. this.options.columns.forEach(function (columnList) {
  1459. columnList.forEach(function (column) {
  1460. if (column.field) {
  1461. column.title = locale[column.field];
  1462. }
  1463. });
  1464. });
  1465. this.initHeader();
  1466. this.initBody();
  1467. this.initToolbar();
  1468. }
  1469. }, {
  1470. key: "changeLocale",
  1471. value: function changeLocale(localeId) {
  1472. this.options.locale = localeId;
  1473. this.initLocale();
  1474. this.initPagination();
  1475. this.initBody();
  1476. this.initToolbar();
  1477. }
  1478. }]);
  1479. }($.BootstrapTable);
  1480. }));