bootstrap-table-vue.js 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
  3. typeof define === 'function' && define.amd ? define(factory) :
  4. (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BootstrapTable = factory());
  5. })(this, (function () { 'use strict';
  6. function ownKeys$1(object, enumerableOnly) {
  7. var keys = Object.keys(object);
  8. if (Object.getOwnPropertySymbols) {
  9. var symbols = Object.getOwnPropertySymbols(object);
  10. enumerableOnly && (symbols = symbols.filter(function (sym) {
  11. return Object.getOwnPropertyDescriptor(object, sym).enumerable;
  12. })), keys.push.apply(keys, symbols);
  13. }
  14. return keys;
  15. }
  16. function _objectSpread2(target) {
  17. for (var i = 1; i < arguments.length; i++) {
  18. var source = null != arguments[i] ? arguments[i] : {};
  19. i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
  20. _defineProperty(target, key, source[key]);
  21. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
  22. Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
  23. });
  24. }
  25. return target;
  26. }
  27. function _defineProperty(obj, key, value) {
  28. if (key in obj) {
  29. Object.defineProperty(obj, key, {
  30. value: value,
  31. enumerable: true,
  32. configurable: true,
  33. writable: true
  34. });
  35. } else {
  36. obj[key] = value;
  37. }
  38. return obj;
  39. }
  40. function _toConsumableArray(arr) {
  41. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
  42. }
  43. function _arrayWithoutHoles(arr) {
  44. if (Array.isArray(arr)) return _arrayLikeToArray(arr);
  45. }
  46. function _iterableToArray(iter) {
  47. if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
  48. }
  49. function _unsupportedIterableToArray(o, minLen) {
  50. if (!o) return;
  51. if (typeof o === "string") return _arrayLikeToArray(o, minLen);
  52. var n = Object.prototype.toString.call(o).slice(8, -1);
  53. if (n === "Object" && o.constructor) n = o.constructor.name;
  54. if (n === "Map" || n === "Set") return Array.from(o);
  55. if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
  56. }
  57. function _arrayLikeToArray(arr, len) {
  58. if (len == null || len > arr.length) len = arr.length;
  59. for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
  60. return arr2;
  61. }
  62. function _nonIterableSpread() {
  63. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  64. }
  65. function _createForOfIteratorHelper(o, allowArrayLike) {
  66. var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
  67. if (!it) {
  68. if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
  69. if (it) o = it;
  70. var i = 0;
  71. var F = function () {};
  72. return {
  73. s: F,
  74. n: function () {
  75. if (i >= o.length) return {
  76. done: true
  77. };
  78. return {
  79. done: false,
  80. value: o[i++]
  81. };
  82. },
  83. e: function (e) {
  84. throw e;
  85. },
  86. f: F
  87. };
  88. }
  89. throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  90. }
  91. var normalCompletion = true,
  92. didErr = false,
  93. err;
  94. return {
  95. s: function () {
  96. it = it.call(o);
  97. },
  98. n: function () {
  99. var step = it.next();
  100. normalCompletion = step.done;
  101. return step;
  102. },
  103. e: function (e) {
  104. didErr = true;
  105. err = e;
  106. },
  107. f: function () {
  108. try {
  109. if (!normalCompletion && it.return != null) it.return();
  110. } finally {
  111. if (didErr) throw err;
  112. }
  113. }
  114. };
  115. }
  116. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  117. function createCommonjsModule(fn, module) {
  118. return module = { exports: {} }, fn(module, module.exports), module.exports;
  119. }
  120. var check = function (it) {
  121. return it && it.Math == Math && it;
  122. };
  123. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  124. var global_1 =
  125. // eslint-disable-next-line es-x/no-global-this -- safe
  126. check(typeof globalThis == 'object' && globalThis) ||
  127. check(typeof window == 'object' && window) ||
  128. // eslint-disable-next-line no-restricted-globals -- safe
  129. check(typeof self == 'object' && self) ||
  130. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  131. // eslint-disable-next-line no-new-func -- fallback
  132. (function () { return this; })() || Function('return this')();
  133. var fails = function (exec) {
  134. try {
  135. return !!exec();
  136. } catch (error) {
  137. return true;
  138. }
  139. };
  140. // Detect IE8's incomplete defineProperty implementation
  141. var descriptors = !fails(function () {
  142. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  143. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
  144. });
  145. var functionBindNative = !fails(function () {
  146. // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
  147. var test = (function () { /* empty */ }).bind();
  148. // eslint-disable-next-line no-prototype-builtins -- safe
  149. return typeof test != 'function' || test.hasOwnProperty('prototype');
  150. });
  151. var call$2 = Function.prototype.call;
  152. var functionCall = functionBindNative ? call$2.bind(call$2) : function () {
  153. return call$2.apply(call$2, arguments);
  154. };
  155. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  156. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  157. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  158. // Nashorn ~ JDK8 bug
  159. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  160. // `Object.prototype.propertyIsEnumerable` method implementation
  161. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  162. var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
  163. var descriptor = getOwnPropertyDescriptor$1(this, V);
  164. return !!descriptor && descriptor.enumerable;
  165. } : $propertyIsEnumerable;
  166. var objectPropertyIsEnumerable = {
  167. f: f$5
  168. };
  169. var createPropertyDescriptor = function (bitmap, value) {
  170. return {
  171. enumerable: !(bitmap & 1),
  172. configurable: !(bitmap & 2),
  173. writable: !(bitmap & 4),
  174. value: value
  175. };
  176. };
  177. var FunctionPrototype$2 = Function.prototype;
  178. var bind = FunctionPrototype$2.bind;
  179. var call$1 = FunctionPrototype$2.call;
  180. var uncurryThis = functionBindNative && bind.bind(call$1, call$1);
  181. var functionUncurryThis = functionBindNative ? function (fn) {
  182. return fn && uncurryThis(fn);
  183. } : function (fn) {
  184. return fn && function () {
  185. return call$1.apply(fn, arguments);
  186. };
  187. };
  188. var toString$1 = functionUncurryThis({}.toString);
  189. var stringSlice$4 = functionUncurryThis(''.slice);
  190. var classofRaw = function (it) {
  191. return stringSlice$4(toString$1(it), 8, -1);
  192. };
  193. var Object$4 = global_1.Object;
  194. var split = functionUncurryThis(''.split);
  195. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  196. var indexedObject = fails(function () {
  197. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  198. // eslint-disable-next-line no-prototype-builtins -- safe
  199. return !Object$4('z').propertyIsEnumerable(0);
  200. }) ? function (it) {
  201. return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
  202. } : Object$4;
  203. var TypeError$9 = global_1.TypeError;
  204. // `RequireObjectCoercible` abstract operation
  205. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  206. var requireObjectCoercible = function (it) {
  207. if (it == undefined) throw TypeError$9("Can't call method on " + it);
  208. return it;
  209. };
  210. // toObject with fallback for non-array-like ES3 strings
  211. var toIndexedObject = function (it) {
  212. return indexedObject(requireObjectCoercible(it));
  213. };
  214. // `IsCallable` abstract operation
  215. // https://tc39.es/ecma262/#sec-iscallable
  216. var isCallable = function (argument) {
  217. return typeof argument == 'function';
  218. };
  219. var isObject = function (it) {
  220. return typeof it == 'object' ? it !== null : isCallable(it);
  221. };
  222. var aFunction = function (argument) {
  223. return isCallable(argument) ? argument : undefined;
  224. };
  225. var getBuiltIn = function (namespace, method) {
  226. return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
  227. };
  228. var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
  229. var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
  230. var process = global_1.process;
  231. var Deno = global_1.Deno;
  232. var versions = process && process.versions || Deno && Deno.version;
  233. var v8 = versions && versions.v8;
  234. var match, version;
  235. if (v8) {
  236. match = v8.split('.');
  237. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  238. // but their correct versions are not interesting for us
  239. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  240. }
  241. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  242. // so check `userAgent` even if `.v8` exists, but 0
  243. if (!version && engineUserAgent) {
  244. match = engineUserAgent.match(/Edge\/(\d+)/);
  245. if (!match || match[1] >= 74) {
  246. match = engineUserAgent.match(/Chrome\/(\d+)/);
  247. if (match) version = +match[1];
  248. }
  249. }
  250. var engineV8Version = version;
  251. /* eslint-disable es-x/no-symbol -- required for testing */
  252. // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
  253. var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
  254. var symbol = Symbol();
  255. // Chrome 38 Symbol has incorrect toString conversion
  256. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  257. return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
  258. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  259. !Symbol.sham && engineV8Version && engineV8Version < 41;
  260. });
  261. /* eslint-disable es-x/no-symbol -- required for testing */
  262. var useSymbolAsUid = nativeSymbol
  263. && !Symbol.sham
  264. && typeof Symbol.iterator == 'symbol';
  265. var Object$3 = global_1.Object;
  266. var isSymbol = useSymbolAsUid ? function (it) {
  267. return typeof it == 'symbol';
  268. } : function (it) {
  269. var $Symbol = getBuiltIn('Symbol');
  270. return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
  271. };
  272. var String$3 = global_1.String;
  273. var tryToString = function (argument) {
  274. try {
  275. return String$3(argument);
  276. } catch (error) {
  277. return 'Object';
  278. }
  279. };
  280. var TypeError$8 = global_1.TypeError;
  281. // `Assert: IsCallable(argument) is true`
  282. var aCallable = function (argument) {
  283. if (isCallable(argument)) return argument;
  284. throw TypeError$8(tryToString(argument) + ' is not a function');
  285. };
  286. // `GetMethod` abstract operation
  287. // https://tc39.es/ecma262/#sec-getmethod
  288. var getMethod = function (V, P) {
  289. var func = V[P];
  290. return func == null ? undefined : aCallable(func);
  291. };
  292. var TypeError$7 = global_1.TypeError;
  293. // `OrdinaryToPrimitive` abstract operation
  294. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  295. var ordinaryToPrimitive = function (input, pref) {
  296. var fn, val;
  297. if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
  298. if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
  299. if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
  300. throw TypeError$7("Can't convert object to primitive value");
  301. };
  302. // eslint-disable-next-line es-x/no-object-defineproperty -- safe
  303. var defineProperty = Object.defineProperty;
  304. var setGlobal = function (key, value) {
  305. try {
  306. defineProperty(global_1, key, { value: value, configurable: true, writable: true });
  307. } catch (error) {
  308. global_1[key] = value;
  309. } return value;
  310. };
  311. var SHARED = '__core-js_shared__';
  312. var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
  313. var sharedStore = store$1;
  314. var shared = createCommonjsModule(function (module) {
  315. (module.exports = function (key, value) {
  316. return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
  317. })('versions', []).push({
  318. version: '3.22.4',
  319. mode: 'global',
  320. copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
  321. license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
  322. source: 'https://github.com/zloirock/core-js'
  323. });
  324. });
  325. var Object$2 = global_1.Object;
  326. // `ToObject` abstract operation
  327. // https://tc39.es/ecma262/#sec-toobject
  328. var toObject = function (argument) {
  329. return Object$2(requireObjectCoercible(argument));
  330. };
  331. var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
  332. // `HasOwnProperty` abstract operation
  333. // https://tc39.es/ecma262/#sec-hasownproperty
  334. // eslint-disable-next-line es-x/no-object-hasown -- safe
  335. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  336. return hasOwnProperty(toObject(it), key);
  337. };
  338. var id = 0;
  339. var postfix = Math.random();
  340. var toString = functionUncurryThis(1.0.toString);
  341. var uid = function (key) {
  342. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
  343. };
  344. var WellKnownSymbolsStore = shared('wks');
  345. var Symbol$1 = global_1.Symbol;
  346. var symbolFor = Symbol$1 && Symbol$1['for'];
  347. var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
  348. var wellKnownSymbol = function (name) {
  349. if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
  350. var description = 'Symbol.' + name;
  351. if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
  352. WellKnownSymbolsStore[name] = Symbol$1[name];
  353. } else if (useSymbolAsUid && symbolFor) {
  354. WellKnownSymbolsStore[name] = symbolFor(description);
  355. } else {
  356. WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
  357. }
  358. } return WellKnownSymbolsStore[name];
  359. };
  360. var TypeError$6 = global_1.TypeError;
  361. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  362. // `ToPrimitive` abstract operation
  363. // https://tc39.es/ecma262/#sec-toprimitive
  364. var toPrimitive = function (input, pref) {
  365. if (!isObject(input) || isSymbol(input)) return input;
  366. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  367. var result;
  368. if (exoticToPrim) {
  369. if (pref === undefined) pref = 'default';
  370. result = functionCall(exoticToPrim, input, pref);
  371. if (!isObject(result) || isSymbol(result)) return result;
  372. throw TypeError$6("Can't convert object to primitive value");
  373. }
  374. if (pref === undefined) pref = 'number';
  375. return ordinaryToPrimitive(input, pref);
  376. };
  377. // `ToPropertyKey` abstract operation
  378. // https://tc39.es/ecma262/#sec-topropertykey
  379. var toPropertyKey = function (argument) {
  380. var key = toPrimitive(argument, 'string');
  381. return isSymbol(key) ? key : key + '';
  382. };
  383. var document$1 = global_1.document;
  384. // typeof document.createElement is 'object' in old IE
  385. var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
  386. var documentCreateElement = function (it) {
  387. return EXISTS$1 ? document$1.createElement(it) : {};
  388. };
  389. // Thanks to IE8 for its funny defineProperty
  390. var ie8DomDefine = !descriptors && !fails(function () {
  391. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  392. return Object.defineProperty(documentCreateElement('div'), 'a', {
  393. get: function () { return 7; }
  394. }).a != 7;
  395. });
  396. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  397. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  398. // `Object.getOwnPropertyDescriptor` method
  399. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  400. var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  401. O = toIndexedObject(O);
  402. P = toPropertyKey(P);
  403. if (ie8DomDefine) try {
  404. return $getOwnPropertyDescriptor$1(O, P);
  405. } catch (error) { /* empty */ }
  406. if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
  407. };
  408. var objectGetOwnPropertyDescriptor = {
  409. f: f$4
  410. };
  411. // V8 ~ Chrome 36-
  412. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  413. var v8PrototypeDefineBug = descriptors && fails(function () {
  414. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  415. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  416. value: 42,
  417. writable: false
  418. }).prototype != 42;
  419. });
  420. var String$2 = global_1.String;
  421. var TypeError$5 = global_1.TypeError;
  422. // `Assert: Type(argument) is Object`
  423. var anObject = function (argument) {
  424. if (isObject(argument)) return argument;
  425. throw TypeError$5(String$2(argument) + ' is not an object');
  426. };
  427. var TypeError$4 = global_1.TypeError;
  428. // eslint-disable-next-line es-x/no-object-defineproperty -- safe
  429. var $defineProperty = Object.defineProperty;
  430. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  431. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  432. var ENUMERABLE = 'enumerable';
  433. var CONFIGURABLE$1 = 'configurable';
  434. var WRITABLE = 'writable';
  435. // `Object.defineProperty` method
  436. // https://tc39.es/ecma262/#sec-object.defineproperty
  437. var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
  438. anObject(O);
  439. P = toPropertyKey(P);
  440. anObject(Attributes);
  441. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  442. var current = $getOwnPropertyDescriptor(O, P);
  443. if (current && current[WRITABLE]) {
  444. O[P] = Attributes.value;
  445. Attributes = {
  446. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  447. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  448. writable: false
  449. };
  450. }
  451. } return $defineProperty(O, P, Attributes);
  452. } : $defineProperty : function defineProperty(O, P, Attributes) {
  453. anObject(O);
  454. P = toPropertyKey(P);
  455. anObject(Attributes);
  456. if (ie8DomDefine) try {
  457. return $defineProperty(O, P, Attributes);
  458. } catch (error) { /* empty */ }
  459. if ('get' in Attributes || 'set' in Attributes) throw TypeError$4('Accessors not supported');
  460. if ('value' in Attributes) O[P] = Attributes.value;
  461. return O;
  462. };
  463. var objectDefineProperty = {
  464. f: f$3
  465. };
  466. var createNonEnumerableProperty = descriptors ? function (object, key, value) {
  467. return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
  468. } : function (object, key, value) {
  469. object[key] = value;
  470. return object;
  471. };
  472. var FunctionPrototype$1 = Function.prototype;
  473. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  474. var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
  475. var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
  476. // additional protection from minified / mangled / dropped function names
  477. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  478. var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
  479. var functionName = {
  480. EXISTS: EXISTS,
  481. PROPER: PROPER,
  482. CONFIGURABLE: CONFIGURABLE
  483. };
  484. var functionToString = functionUncurryThis(Function.toString);
  485. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  486. if (!isCallable(sharedStore.inspectSource)) {
  487. sharedStore.inspectSource = function (it) {
  488. return functionToString(it);
  489. };
  490. }
  491. var inspectSource = sharedStore.inspectSource;
  492. var WeakMap$1 = global_1.WeakMap;
  493. var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
  494. var keys = shared('keys');
  495. var sharedKey = function (key) {
  496. return keys[key] || (keys[key] = uid(key));
  497. };
  498. var hiddenKeys$1 = {};
  499. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  500. var TypeError$3 = global_1.TypeError;
  501. var WeakMap = global_1.WeakMap;
  502. var set, get, has;
  503. var enforce = function (it) {
  504. return has(it) ? get(it) : set(it, {});
  505. };
  506. var getterFor = function (TYPE) {
  507. return function (it) {
  508. var state;
  509. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  510. throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');
  511. } return state;
  512. };
  513. };
  514. if (nativeWeakMap || sharedStore.state) {
  515. var store = sharedStore.state || (sharedStore.state = new WeakMap());
  516. var wmget = functionUncurryThis(store.get);
  517. var wmhas = functionUncurryThis(store.has);
  518. var wmset = functionUncurryThis(store.set);
  519. set = function (it, metadata) {
  520. if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
  521. metadata.facade = it;
  522. wmset(store, it, metadata);
  523. return metadata;
  524. };
  525. get = function (it) {
  526. return wmget(store, it) || {};
  527. };
  528. has = function (it) {
  529. return wmhas(store, it);
  530. };
  531. } else {
  532. var STATE = sharedKey('state');
  533. hiddenKeys$1[STATE] = true;
  534. set = function (it, metadata) {
  535. if (hasOwnProperty_1(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
  536. metadata.facade = it;
  537. createNonEnumerableProperty(it, STATE, metadata);
  538. return metadata;
  539. };
  540. get = function (it) {
  541. return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
  542. };
  543. has = function (it) {
  544. return hasOwnProperty_1(it, STATE);
  545. };
  546. }
  547. var internalState = {
  548. set: set,
  549. get: get,
  550. has: has,
  551. enforce: enforce,
  552. getterFor: getterFor
  553. };
  554. var makeBuiltIn_1 = createCommonjsModule(function (module) {
  555. var defineProperty = objectDefineProperty.f;
  556. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  557. var enforceInternalState = internalState.enforce;
  558. var getInternalState = internalState.get;
  559. var CONFIGURABLE_LENGTH = !fails(function () {
  560. return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  561. });
  562. var TEMPLATE = String(String).split('String');
  563. var makeBuiltIn = module.exports = function (value, name, options) {
  564. if (String(name).slice(0, 7) === 'Symbol(') {
  565. name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
  566. }
  567. if (options && options.getter) name = 'get ' + name;
  568. if (options && options.setter) name = 'set ' + name;
  569. if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  570. defineProperty(value, 'name', { value: name, configurable: true });
  571. }
  572. if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
  573. defineProperty(value, 'length', { value: options.arity });
  574. }
  575. var state = enforceInternalState(value);
  576. if (!hasOwnProperty_1(state, 'source')) {
  577. state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
  578. } return value;
  579. };
  580. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  581. // eslint-disable-next-line no-extend-native -- required
  582. Function.prototype.toString = makeBuiltIn(function toString() {
  583. return isCallable(this) && getInternalState(this).source || inspectSource(this);
  584. }, 'toString');
  585. });
  586. var defineBuiltIn = function (O, key, value, options) {
  587. var unsafe = options ? !!options.unsafe : false;
  588. var simple = options ? !!options.enumerable : false;
  589. var noTargetGet = options ? !!options.noTargetGet : false;
  590. var name = options && options.name !== undefined ? options.name : key;
  591. if (isCallable(value)) makeBuiltIn_1(value, name, options);
  592. if (O === global_1) {
  593. if (simple) O[key] = value;
  594. else setGlobal(key, value);
  595. return O;
  596. } else if (!unsafe) {
  597. delete O[key];
  598. } else if (!noTargetGet && O[key]) {
  599. simple = true;
  600. }
  601. if (simple) O[key] = value;
  602. else createNonEnumerableProperty(O, key, value);
  603. return O;
  604. };
  605. var ceil = Math.ceil;
  606. var floor$1 = Math.floor;
  607. // `ToIntegerOrInfinity` abstract operation
  608. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  609. var toIntegerOrInfinity = function (argument) {
  610. var number = +argument;
  611. // eslint-disable-next-line no-self-compare -- safe
  612. return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
  613. };
  614. var max$1 = Math.max;
  615. var min$2 = Math.min;
  616. // Helper for a popular repeating case of the spec:
  617. // Let integer be ? ToInteger(index).
  618. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  619. var toAbsoluteIndex = function (index, length) {
  620. var integer = toIntegerOrInfinity(index);
  621. return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
  622. };
  623. var min$1 = Math.min;
  624. // `ToLength` abstract operation
  625. // https://tc39.es/ecma262/#sec-tolength
  626. var toLength = function (argument) {
  627. return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  628. };
  629. // `LengthOfArrayLike` abstract operation
  630. // https://tc39.es/ecma262/#sec-lengthofarraylike
  631. var lengthOfArrayLike = function (obj) {
  632. return toLength(obj.length);
  633. };
  634. // `Array.prototype.{ indexOf, includes }` methods implementation
  635. var createMethod$1 = function (IS_INCLUDES) {
  636. return function ($this, el, fromIndex) {
  637. var O = toIndexedObject($this);
  638. var length = lengthOfArrayLike(O);
  639. var index = toAbsoluteIndex(fromIndex, length);
  640. var value;
  641. // Array#includes uses SameValueZero equality algorithm
  642. // eslint-disable-next-line no-self-compare -- NaN check
  643. if (IS_INCLUDES && el != el) while (length > index) {
  644. value = O[index++];
  645. // eslint-disable-next-line no-self-compare -- NaN check
  646. if (value != value) return true;
  647. // Array#indexOf ignores holes, Array#includes - not
  648. } else for (;length > index; index++) {
  649. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  650. } return !IS_INCLUDES && -1;
  651. };
  652. };
  653. var arrayIncludes = {
  654. // `Array.prototype.includes` method
  655. // https://tc39.es/ecma262/#sec-array.prototype.includes
  656. includes: createMethod$1(true),
  657. // `Array.prototype.indexOf` method
  658. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  659. indexOf: createMethod$1(false)
  660. };
  661. var indexOf$1 = arrayIncludes.indexOf;
  662. var push$1 = functionUncurryThis([].push);
  663. var objectKeysInternal = function (object, names) {
  664. var O = toIndexedObject(object);
  665. var i = 0;
  666. var result = [];
  667. var key;
  668. for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$1(result, key);
  669. // Don't enum bug & hidden keys
  670. while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
  671. ~indexOf$1(result, key) || push$1(result, key);
  672. }
  673. return result;
  674. };
  675. // IE8- don't enum bug keys
  676. var enumBugKeys = [
  677. 'constructor',
  678. 'hasOwnProperty',
  679. 'isPrototypeOf',
  680. 'propertyIsEnumerable',
  681. 'toLocaleString',
  682. 'toString',
  683. 'valueOf'
  684. ];
  685. var hiddenKeys = enumBugKeys.concat('length', 'prototype');
  686. // `Object.getOwnPropertyNames` method
  687. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  688. // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
  689. var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  690. return objectKeysInternal(O, hiddenKeys);
  691. };
  692. var objectGetOwnPropertyNames = {
  693. f: f$2
  694. };
  695. // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
  696. var f$1 = Object.getOwnPropertySymbols;
  697. var objectGetOwnPropertySymbols = {
  698. f: f$1
  699. };
  700. var concat$1 = functionUncurryThis([].concat);
  701. // all object keys, includes non-enumerable and symbols
  702. var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  703. var keys = objectGetOwnPropertyNames.f(anObject(it));
  704. var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
  705. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  706. };
  707. var copyConstructorProperties = function (target, source, exceptions) {
  708. var keys = ownKeys(source);
  709. var defineProperty = objectDefineProperty.f;
  710. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  711. for (var i = 0; i < keys.length; i++) {
  712. var key = keys[i];
  713. if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
  714. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  715. }
  716. }
  717. };
  718. var replacement = /#|\.prototype\./;
  719. var isForced = function (feature, detection) {
  720. var value = data[normalize(feature)];
  721. return value == POLYFILL ? true
  722. : value == NATIVE ? false
  723. : isCallable(detection) ? fails(detection)
  724. : !!detection;
  725. };
  726. var normalize = isForced.normalize = function (string) {
  727. return String(string).replace(replacement, '.').toLowerCase();
  728. };
  729. var data = isForced.data = {};
  730. var NATIVE = isForced.NATIVE = 'N';
  731. var POLYFILL = isForced.POLYFILL = 'P';
  732. var isForced_1 = isForced;
  733. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  734. /*
  735. options.target - name of the target object
  736. options.global - target is the global object
  737. options.stat - export as static methods of target
  738. options.proto - export as prototype methods of target
  739. options.real - real prototype method for the `pure` version
  740. options.forced - export even if the native feature is available
  741. options.bind - bind methods to the target, required for the `pure` version
  742. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  743. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  744. options.sham - add a flag to not completely full polyfills
  745. options.enumerable - export as enumerable property
  746. options.noTargetGet - prevent calling a getter on target
  747. options.name - the .name of the function if it does not match the key
  748. */
  749. var _export = function (options, source) {
  750. var TARGET = options.target;
  751. var GLOBAL = options.global;
  752. var STATIC = options.stat;
  753. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  754. if (GLOBAL) {
  755. target = global_1;
  756. } else if (STATIC) {
  757. target = global_1[TARGET] || setGlobal(TARGET, {});
  758. } else {
  759. target = (global_1[TARGET] || {}).prototype;
  760. }
  761. if (target) for (key in source) {
  762. sourceProperty = source[key];
  763. if (options.noTargetGet) {
  764. descriptor = getOwnPropertyDescriptor(target, key);
  765. targetProperty = descriptor && descriptor.value;
  766. } else targetProperty = target[key];
  767. FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  768. // contained in target
  769. if (!FORCED && targetProperty !== undefined) {
  770. if (typeof sourceProperty == typeof targetProperty) continue;
  771. copyConstructorProperties(sourceProperty, targetProperty);
  772. }
  773. // add a flag to not completely full polyfills
  774. if (options.sham || (targetProperty && targetProperty.sham)) {
  775. createNonEnumerableProperty(sourceProperty, 'sham', true);
  776. }
  777. defineBuiltIn(target, key, sourceProperty, options);
  778. }
  779. };
  780. var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
  781. var test = {};
  782. test[TO_STRING_TAG$1] = 'z';
  783. var toStringTagSupport = String(test) === '[object z]';
  784. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  785. var Object$1 = global_1.Object;
  786. // ES3 wrong here
  787. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  788. // fallback for IE11 Script Access Denied error
  789. var tryGet = function (it, key) {
  790. try {
  791. return it[key];
  792. } catch (error) { /* empty */ }
  793. };
  794. // getting tag from ES6+ `Object.prototype.toString`
  795. var classof = toStringTagSupport ? classofRaw : function (it) {
  796. var O, tag, result;
  797. return it === undefined ? 'Undefined' : it === null ? 'Null'
  798. // @@toStringTag case
  799. : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
  800. // builtinTag case
  801. : CORRECT_ARGUMENTS ? classofRaw(O)
  802. // ES3 arguments fallback
  803. : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
  804. };
  805. var String$1 = global_1.String;
  806. var toString_1 = function (argument) {
  807. if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
  808. return String$1(argument);
  809. };
  810. // `RegExp.prototype.flags` getter implementation
  811. // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
  812. var regexpFlags = function () {
  813. var that = anObject(this);
  814. var result = '';
  815. if (that.hasIndices) result += 'd';
  816. if (that.global) result += 'g';
  817. if (that.ignoreCase) result += 'i';
  818. if (that.multiline) result += 'm';
  819. if (that.dotAll) result += 's';
  820. if (that.unicode) result += 'u';
  821. if (that.sticky) result += 'y';
  822. return result;
  823. };
  824. // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  825. var $RegExp$2 = global_1.RegExp;
  826. var UNSUPPORTED_Y$1 = fails(function () {
  827. var re = $RegExp$2('a', 'y');
  828. re.lastIndex = 2;
  829. return re.exec('abcd') != null;
  830. });
  831. // UC Browser bug
  832. // https://github.com/zloirock/core-js/issues/1008
  833. var MISSED_STICKY = UNSUPPORTED_Y$1 || fails(function () {
  834. return !$RegExp$2('a', 'y').sticky;
  835. });
  836. var BROKEN_CARET = UNSUPPORTED_Y$1 || fails(function () {
  837. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  838. var re = $RegExp$2('^r', 'gy');
  839. re.lastIndex = 2;
  840. return re.exec('str') != null;
  841. });
  842. var regexpStickyHelpers = {
  843. BROKEN_CARET: BROKEN_CARET,
  844. MISSED_STICKY: MISSED_STICKY,
  845. UNSUPPORTED_Y: UNSUPPORTED_Y$1
  846. };
  847. // `Object.keys` method
  848. // https://tc39.es/ecma262/#sec-object.keys
  849. // eslint-disable-next-line es-x/no-object-keys -- safe
  850. var objectKeys = Object.keys || function keys(O) {
  851. return objectKeysInternal(O, enumBugKeys);
  852. };
  853. // `Object.defineProperties` method
  854. // https://tc39.es/ecma262/#sec-object.defineproperties
  855. // eslint-disable-next-line es-x/no-object-defineproperties -- safe
  856. var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
  857. anObject(O);
  858. var props = toIndexedObject(Properties);
  859. var keys = objectKeys(Properties);
  860. var length = keys.length;
  861. var index = 0;
  862. var key;
  863. while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
  864. return O;
  865. };
  866. var objectDefineProperties = {
  867. f: f
  868. };
  869. var html = getBuiltIn('document', 'documentElement');
  870. /* global ActiveXObject -- old IE, WSH */
  871. var GT = '>';
  872. var LT = '<';
  873. var PROTOTYPE = 'prototype';
  874. var SCRIPT = 'script';
  875. var IE_PROTO = sharedKey('IE_PROTO');
  876. var EmptyConstructor = function () { /* empty */ };
  877. var scriptTag = function (content) {
  878. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  879. };
  880. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  881. var NullProtoObjectViaActiveX = function (activeXDocument) {
  882. activeXDocument.write(scriptTag(''));
  883. activeXDocument.close();
  884. var temp = activeXDocument.parentWindow.Object;
  885. activeXDocument = null; // avoid memory leak
  886. return temp;
  887. };
  888. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  889. var NullProtoObjectViaIFrame = function () {
  890. // Thrash, waste and sodomy: IE GC bug
  891. var iframe = documentCreateElement('iframe');
  892. var JS = 'java' + SCRIPT + ':';
  893. var iframeDocument;
  894. iframe.style.display = 'none';
  895. html.appendChild(iframe);
  896. // https://github.com/zloirock/core-js/issues/475
  897. iframe.src = String(JS);
  898. iframeDocument = iframe.contentWindow.document;
  899. iframeDocument.open();
  900. iframeDocument.write(scriptTag('document.F=Object'));
  901. iframeDocument.close();
  902. return iframeDocument.F;
  903. };
  904. // Check for document.domain and active x support
  905. // No need to use active x approach when document.domain is not set
  906. // see https://github.com/es-shims/es5-shim/issues/150
  907. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  908. // avoid IE GC bug
  909. var activeXDocument;
  910. var NullProtoObject = function () {
  911. try {
  912. activeXDocument = new ActiveXObject('htmlfile');
  913. } catch (error) { /* ignore */ }
  914. NullProtoObject = typeof document != 'undefined'
  915. ? document.domain && activeXDocument
  916. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  917. : NullProtoObjectViaIFrame()
  918. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  919. var length = enumBugKeys.length;
  920. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  921. return NullProtoObject();
  922. };
  923. hiddenKeys$1[IE_PROTO] = true;
  924. // `Object.create` method
  925. // https://tc39.es/ecma262/#sec-object.create
  926. // eslint-disable-next-line es-x/no-object-create -- safe
  927. var objectCreate = Object.create || function create(O, Properties) {
  928. var result;
  929. if (O !== null) {
  930. EmptyConstructor[PROTOTYPE] = anObject(O);
  931. result = new EmptyConstructor();
  932. EmptyConstructor[PROTOTYPE] = null;
  933. // add "__proto__" for Object.getPrototypeOf polyfill
  934. result[IE_PROTO] = O;
  935. } else result = NullProtoObject();
  936. return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
  937. };
  938. // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
  939. var $RegExp$1 = global_1.RegExp;
  940. var regexpUnsupportedDotAll = fails(function () {
  941. var re = $RegExp$1('.', 's');
  942. return !(re.dotAll && re.exec('\n') && re.flags === 's');
  943. });
  944. // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
  945. var $RegExp = global_1.RegExp;
  946. var regexpUnsupportedNcg = fails(function () {
  947. var re = $RegExp('(?<a>b)', 'g');
  948. return re.exec('b').groups.a !== 'b' ||
  949. 'b'.replace(re, '$<a>c') !== 'bc';
  950. });
  951. /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
  952. /* eslint-disable regexp/no-useless-quantifier -- testing */
  953. var getInternalState = internalState.get;
  954. var nativeReplace = shared('native-string-replace', String.prototype.replace);
  955. var nativeExec = RegExp.prototype.exec;
  956. var patchedExec = nativeExec;
  957. var charAt$3 = functionUncurryThis(''.charAt);
  958. var indexOf = functionUncurryThis(''.indexOf);
  959. var replace$1 = functionUncurryThis(''.replace);
  960. var stringSlice$3 = functionUncurryThis(''.slice);
  961. var UPDATES_LAST_INDEX_WRONG = (function () {
  962. var re1 = /a/;
  963. var re2 = /b*/g;
  964. functionCall(nativeExec, re1, 'a');
  965. functionCall(nativeExec, re2, 'a');
  966. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  967. })();
  968. var UNSUPPORTED_Y = regexpStickyHelpers.BROKEN_CARET;
  969. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  970. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  971. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || regexpUnsupportedDotAll || regexpUnsupportedNcg;
  972. if (PATCH) {
  973. patchedExec = function exec(string) {
  974. var re = this;
  975. var state = getInternalState(re);
  976. var str = toString_1(string);
  977. var raw = state.raw;
  978. var result, reCopy, lastIndex, match, i, object, group;
  979. if (raw) {
  980. raw.lastIndex = re.lastIndex;
  981. result = functionCall(patchedExec, raw, str);
  982. re.lastIndex = raw.lastIndex;
  983. return result;
  984. }
  985. var groups = state.groups;
  986. var sticky = UNSUPPORTED_Y && re.sticky;
  987. var flags = functionCall(regexpFlags, re);
  988. var source = re.source;
  989. var charsAdded = 0;
  990. var strCopy = str;
  991. if (sticky) {
  992. flags = replace$1(flags, 'y', '');
  993. if (indexOf(flags, 'g') === -1) {
  994. flags += 'g';
  995. }
  996. strCopy = stringSlice$3(str, re.lastIndex);
  997. // Support anchored sticky behavior.
  998. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
  999. source = '(?: ' + source + ')';
  1000. strCopy = ' ' + strCopy;
  1001. charsAdded++;
  1002. }
  1003. // ^(? + rx + ) is needed, in combination with some str slicing, to
  1004. // simulate the 'y' flag.
  1005. reCopy = new RegExp('^(?:' + source + ')', flags);
  1006. }
  1007. if (NPCG_INCLUDED) {
  1008. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  1009. }
  1010. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  1011. match = functionCall(nativeExec, sticky ? reCopy : re, strCopy);
  1012. if (sticky) {
  1013. if (match) {
  1014. match.input = stringSlice$3(match.input, charsAdded);
  1015. match[0] = stringSlice$3(match[0], charsAdded);
  1016. match.index = re.lastIndex;
  1017. re.lastIndex += match[0].length;
  1018. } else re.lastIndex = 0;
  1019. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  1020. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  1021. }
  1022. if (NPCG_INCLUDED && match && match.length > 1) {
  1023. // Fix browsers whose `exec` methods don't consistently return `undefined`
  1024. // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
  1025. functionCall(nativeReplace, match[0], reCopy, function () {
  1026. for (i = 1; i < arguments.length - 2; i++) {
  1027. if (arguments[i] === undefined) match[i] = undefined;
  1028. }
  1029. });
  1030. }
  1031. if (match && groups) {
  1032. match.groups = object = objectCreate(null);
  1033. for (i = 0; i < groups.length; i++) {
  1034. group = groups[i];
  1035. object[group[0]] = match[group[1]];
  1036. }
  1037. }
  1038. return match;
  1039. };
  1040. }
  1041. var regexpExec = patchedExec;
  1042. // `RegExp.prototype.exec` method
  1043. // https://tc39.es/ecma262/#sec-regexp.prototype.exec
  1044. _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
  1045. exec: regexpExec
  1046. });
  1047. var FunctionPrototype = Function.prototype;
  1048. var apply = FunctionPrototype.apply;
  1049. var call = FunctionPrototype.call;
  1050. // eslint-disable-next-line es-x/no-reflect -- safe
  1051. var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
  1052. return call.apply(apply, arguments);
  1053. });
  1054. // TODO: Remove from `core-js@4` since it's moved to entry points
  1055. var SPECIES$2 = wellKnownSymbol('species');
  1056. var RegExpPrototype = RegExp.prototype;
  1057. var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
  1058. var SYMBOL = wellKnownSymbol(KEY);
  1059. var DELEGATES_TO_SYMBOL = !fails(function () {
  1060. // String methods call symbol-named RegEp methods
  1061. var O = {};
  1062. O[SYMBOL] = function () { return 7; };
  1063. return ''[KEY](O) != 7;
  1064. });
  1065. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
  1066. // Symbol-named RegExp methods call .exec
  1067. var execCalled = false;
  1068. var re = /a/;
  1069. if (KEY === 'split') {
  1070. // We can't use real regex here since it causes deoptimization
  1071. // and serious performance degradation in V8
  1072. // https://github.com/zloirock/core-js/issues/306
  1073. re = {};
  1074. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  1075. // a new one. We need to return the patched regex when creating the new one.
  1076. re.constructor = {};
  1077. re.constructor[SPECIES$2] = function () { return re; };
  1078. re.flags = '';
  1079. re[SYMBOL] = /./[SYMBOL];
  1080. }
  1081. re.exec = function () { execCalled = true; return null; };
  1082. re[SYMBOL]('');
  1083. return !execCalled;
  1084. });
  1085. if (
  1086. !DELEGATES_TO_SYMBOL ||
  1087. !DELEGATES_TO_EXEC ||
  1088. FORCED
  1089. ) {
  1090. var uncurriedNativeRegExpMethod = functionUncurryThis(/./[SYMBOL]);
  1091. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  1092. var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
  1093. var $exec = regexp.exec;
  1094. if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
  1095. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  1096. // The native String method already delegates to @@method (this
  1097. // polyfilled function), leasing to infinite recursion.
  1098. // We avoid it by directly calling the native @@method method.
  1099. return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
  1100. }
  1101. return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
  1102. }
  1103. return { done: false };
  1104. });
  1105. defineBuiltIn(String.prototype, KEY, methods[0]);
  1106. defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
  1107. }
  1108. if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
  1109. };
  1110. var charAt$2 = functionUncurryThis(''.charAt);
  1111. var charCodeAt = functionUncurryThis(''.charCodeAt);
  1112. var stringSlice$2 = functionUncurryThis(''.slice);
  1113. var createMethod = function (CONVERT_TO_STRING) {
  1114. return function ($this, pos) {
  1115. var S = toString_1(requireObjectCoercible($this));
  1116. var position = toIntegerOrInfinity(pos);
  1117. var size = S.length;
  1118. var first, second;
  1119. if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
  1120. first = charCodeAt(S, position);
  1121. return first < 0xD800 || first > 0xDBFF || position + 1 === size
  1122. || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
  1123. ? CONVERT_TO_STRING
  1124. ? charAt$2(S, position)
  1125. : first
  1126. : CONVERT_TO_STRING
  1127. ? stringSlice$2(S, position, position + 2)
  1128. : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
  1129. };
  1130. };
  1131. var stringMultibyte = {
  1132. // `String.prototype.codePointAt` method
  1133. // https://tc39.es/ecma262/#sec-string.prototype.codepointat
  1134. codeAt: createMethod(false),
  1135. // `String.prototype.at` method
  1136. // https://github.com/mathiasbynens/String.prototype.at
  1137. charAt: createMethod(true)
  1138. };
  1139. var charAt$1 = stringMultibyte.charAt;
  1140. // `AdvanceStringIndex` abstract operation
  1141. // https://tc39.es/ecma262/#sec-advancestringindex
  1142. var advanceStringIndex = function (S, index, unicode) {
  1143. return index + (unicode ? charAt$1(S, index).length : 1);
  1144. };
  1145. var floor = Math.floor;
  1146. var charAt = functionUncurryThis(''.charAt);
  1147. var replace = functionUncurryThis(''.replace);
  1148. var stringSlice$1 = functionUncurryThis(''.slice);
  1149. var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
  1150. var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
  1151. // `GetSubstitution` abstract operation
  1152. // https://tc39.es/ecma262/#sec-getsubstitution
  1153. var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
  1154. var tailPos = position + matched.length;
  1155. var m = captures.length;
  1156. var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
  1157. if (namedCaptures !== undefined) {
  1158. namedCaptures = toObject(namedCaptures);
  1159. symbols = SUBSTITUTION_SYMBOLS;
  1160. }
  1161. return replace(replacement, symbols, function (match, ch) {
  1162. var capture;
  1163. switch (charAt(ch, 0)) {
  1164. case '$': return '$';
  1165. case '&': return matched;
  1166. case '`': return stringSlice$1(str, 0, position);
  1167. case "'": return stringSlice$1(str, tailPos);
  1168. case '<':
  1169. capture = namedCaptures[stringSlice$1(ch, 1, -1)];
  1170. break;
  1171. default: // \d\d?
  1172. var n = +ch;
  1173. if (n === 0) return match;
  1174. if (n > m) {
  1175. var f = floor(n / 10);
  1176. if (f === 0) return match;
  1177. if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
  1178. return match;
  1179. }
  1180. capture = captures[n - 1];
  1181. }
  1182. return capture === undefined ? '' : capture;
  1183. });
  1184. };
  1185. var TypeError$2 = global_1.TypeError;
  1186. // `RegExpExec` abstract operation
  1187. // https://tc39.es/ecma262/#sec-regexpexec
  1188. var regexpExecAbstract = function (R, S) {
  1189. var exec = R.exec;
  1190. if (isCallable(exec)) {
  1191. var result = functionCall(exec, R, S);
  1192. if (result !== null) anObject(result);
  1193. return result;
  1194. }
  1195. if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
  1196. throw TypeError$2('RegExp#exec called on incompatible receiver');
  1197. };
  1198. var REPLACE = wellKnownSymbol('replace');
  1199. var max = Math.max;
  1200. var min = Math.min;
  1201. var concat = functionUncurryThis([].concat);
  1202. var push = functionUncurryThis([].push);
  1203. var stringIndexOf = functionUncurryThis(''.indexOf);
  1204. var stringSlice = functionUncurryThis(''.slice);
  1205. var maybeToString = function (it) {
  1206. return it === undefined ? it : String(it);
  1207. };
  1208. // IE <= 11 replaces $0 with the whole match, as if it was $&
  1209. // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
  1210. var REPLACE_KEEPS_$0 = (function () {
  1211. // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
  1212. return 'a'.replace(/./, '$0') === '$0';
  1213. })();
  1214. // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
  1215. var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
  1216. if (/./[REPLACE]) {
  1217. return /./[REPLACE]('a', '$0') === '';
  1218. }
  1219. return false;
  1220. })();
  1221. var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
  1222. var re = /./;
  1223. re.exec = function () {
  1224. var result = [];
  1225. result.groups = { a: '7' };
  1226. return result;
  1227. };
  1228. // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
  1229. return ''.replace(re, '$<a>') !== '7';
  1230. });
  1231. // @@replace logic
  1232. fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
  1233. var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
  1234. return [
  1235. // `String.prototype.replace` method
  1236. // https://tc39.es/ecma262/#sec-string.prototype.replace
  1237. function replace(searchValue, replaceValue) {
  1238. var O = requireObjectCoercible(this);
  1239. var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
  1240. return replacer
  1241. ? functionCall(replacer, searchValue, O, replaceValue)
  1242. : functionCall(nativeReplace, toString_1(O), searchValue, replaceValue);
  1243. },
  1244. // `RegExp.prototype[@@replace]` method
  1245. // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
  1246. function (string, replaceValue) {
  1247. var rx = anObject(this);
  1248. var S = toString_1(string);
  1249. if (
  1250. typeof replaceValue == 'string' &&
  1251. stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
  1252. stringIndexOf(replaceValue, '$<') === -1
  1253. ) {
  1254. var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
  1255. if (res.done) return res.value;
  1256. }
  1257. var functionalReplace = isCallable(replaceValue);
  1258. if (!functionalReplace) replaceValue = toString_1(replaceValue);
  1259. var global = rx.global;
  1260. if (global) {
  1261. var fullUnicode = rx.unicode;
  1262. rx.lastIndex = 0;
  1263. }
  1264. var results = [];
  1265. while (true) {
  1266. var result = regexpExecAbstract(rx, S);
  1267. if (result === null) break;
  1268. push(results, result);
  1269. if (!global) break;
  1270. var matchStr = toString_1(result[0]);
  1271. if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
  1272. }
  1273. var accumulatedResult = '';
  1274. var nextSourcePosition = 0;
  1275. for (var i = 0; i < results.length; i++) {
  1276. result = results[i];
  1277. var matched = toString_1(result[0]);
  1278. var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
  1279. var captures = [];
  1280. // NOTE: This is equivalent to
  1281. // captures = result.slice(1).map(maybeToString)
  1282. // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
  1283. // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
  1284. // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
  1285. for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
  1286. var namedCaptures = result.groups;
  1287. if (functionalReplace) {
  1288. var replacerArgs = concat([matched], captures, position, S);
  1289. if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
  1290. var replacement = toString_1(functionApply(replaceValue, undefined, replacerArgs));
  1291. } else {
  1292. replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
  1293. }
  1294. if (position >= nextSourcePosition) {
  1295. accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
  1296. nextSourcePosition = position + matched.length;
  1297. }
  1298. }
  1299. return accumulatedResult + stringSlice(S, nextSourcePosition);
  1300. }
  1301. ];
  1302. }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
  1303. // `IsArray` abstract operation
  1304. // https://tc39.es/ecma262/#sec-isarray
  1305. // eslint-disable-next-line es-x/no-array-isarray -- safe
  1306. var isArray = Array.isArray || function isArray(argument) {
  1307. return classofRaw(argument) == 'Array';
  1308. };
  1309. var createProperty = function (object, key, value) {
  1310. var propertyKey = toPropertyKey(key);
  1311. if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
  1312. else object[propertyKey] = value;
  1313. };
  1314. var noop = function () { /* empty */ };
  1315. var empty = [];
  1316. var construct = getBuiltIn('Reflect', 'construct');
  1317. var constructorRegExp = /^\s*(?:class|function)\b/;
  1318. var exec = functionUncurryThis(constructorRegExp.exec);
  1319. var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
  1320. var isConstructorModern = function isConstructor(argument) {
  1321. if (!isCallable(argument)) return false;
  1322. try {
  1323. construct(noop, empty, argument);
  1324. return true;
  1325. } catch (error) {
  1326. return false;
  1327. }
  1328. };
  1329. var isConstructorLegacy = function isConstructor(argument) {
  1330. if (!isCallable(argument)) return false;
  1331. switch (classof(argument)) {
  1332. case 'AsyncFunction':
  1333. case 'GeneratorFunction':
  1334. case 'AsyncGeneratorFunction': return false;
  1335. }
  1336. try {
  1337. // we can't check .prototype since constructors produced by .bind haven't it
  1338. // `Function#toString` throws on some built-it function in some legacy engines
  1339. // (for example, `DOMQuad` and similar in FF41-)
  1340. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1341. } catch (error) {
  1342. return true;
  1343. }
  1344. };
  1345. isConstructorLegacy.sham = true;
  1346. // `IsConstructor` abstract operation
  1347. // https://tc39.es/ecma262/#sec-isconstructor
  1348. var isConstructor = !construct || fails(function () {
  1349. var called;
  1350. return isConstructorModern(isConstructorModern.call)
  1351. || !isConstructorModern(Object)
  1352. || !isConstructorModern(function () { called = true; })
  1353. || called;
  1354. }) ? isConstructorLegacy : isConstructorModern;
  1355. var SPECIES$1 = wellKnownSymbol('species');
  1356. var Array$1 = global_1.Array;
  1357. // a part of `ArraySpeciesCreate` abstract operation
  1358. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1359. var arraySpeciesConstructor = function (originalArray) {
  1360. var C;
  1361. if (isArray(originalArray)) {
  1362. C = originalArray.constructor;
  1363. // cross-realm fallback
  1364. if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
  1365. else if (isObject(C)) {
  1366. C = C[SPECIES$1];
  1367. if (C === null) C = undefined;
  1368. }
  1369. } return C === undefined ? Array$1 : C;
  1370. };
  1371. // `ArraySpeciesCreate` abstract operation
  1372. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1373. var arraySpeciesCreate = function (originalArray, length) {
  1374. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1375. };
  1376. var SPECIES = wellKnownSymbol('species');
  1377. var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
  1378. // We can't use this feature detection in V8 since it causes
  1379. // deoptimization and serious performance degradation
  1380. // https://github.com/zloirock/core-js/issues/677
  1381. return engineV8Version >= 51 || !fails(function () {
  1382. var array = [];
  1383. var constructor = array.constructor = {};
  1384. constructor[SPECIES] = function () {
  1385. return { foo: 1 };
  1386. };
  1387. return array[METHOD_NAME](Boolean).foo !== 1;
  1388. });
  1389. };
  1390. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  1391. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
  1392. var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
  1393. var TypeError$1 = global_1.TypeError;
  1394. // We can't use this feature detection in V8 since it causes
  1395. // deoptimization and serious performance degradation
  1396. // https://github.com/zloirock/core-js/issues/679
  1397. var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
  1398. var array = [];
  1399. array[IS_CONCAT_SPREADABLE] = false;
  1400. return array.concat()[0] !== array;
  1401. });
  1402. var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
  1403. var isConcatSpreadable = function (O) {
  1404. if (!isObject(O)) return false;
  1405. var spreadable = O[IS_CONCAT_SPREADABLE];
  1406. return spreadable !== undefined ? !!spreadable : isArray(O);
  1407. };
  1408. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
  1409. // `Array.prototype.concat` method
  1410. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1411. // with adding support of @@isConcatSpreadable and @@species
  1412. _export({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1413. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1414. concat: function concat(arg) {
  1415. var O = toObject(this);
  1416. var A = arraySpeciesCreate(O, 0);
  1417. var n = 0;
  1418. var i, k, length, len, E;
  1419. for (i = -1, length = arguments.length; i < length; i++) {
  1420. E = i === -1 ? O : arguments[i];
  1421. if (isConcatSpreadable(E)) {
  1422. len = lengthOfArrayLike(E);
  1423. if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  1424. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1425. } else {
  1426. if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  1427. createProperty(A, n++, E);
  1428. }
  1429. }
  1430. A.length = n;
  1431. return A;
  1432. }
  1433. });
  1434. //
  1435. //
  1436. //
  1437. //
  1438. var $ = window.jQuery;
  1439. var deepCopy = function deepCopy(arg) {
  1440. if (arg === undefined) {
  1441. return arg;
  1442. }
  1443. return $.extend(true, Array.isArray(arg) ? [] : {}, arg);
  1444. };
  1445. var script = {
  1446. name: 'BootstrapTable',
  1447. props: {
  1448. columns: {
  1449. type: Array,
  1450. require: true
  1451. },
  1452. data: {
  1453. type: [Array, Object],
  1454. default: function _default() {
  1455. return undefined;
  1456. }
  1457. },
  1458. options: {
  1459. type: Object,
  1460. default: function _default() {
  1461. return {};
  1462. }
  1463. }
  1464. },
  1465. mounted: function mounted() {
  1466. var _this = this;
  1467. this.$table = $(this.$el);
  1468. this.$table.on('all.bs.table', function (e, name, args) {
  1469. var eventName = $.fn.bootstrapTable.events[name];
  1470. eventName = eventName.replace(/([A-Z])/g, '-$1').toLowerCase();
  1471. _this.$emit.apply(_this, ['on-all'].concat(_toConsumableArray(args)));
  1472. _this.$emit.apply(_this, [eventName].concat(_toConsumableArray(args)));
  1473. });
  1474. this._initTable();
  1475. },
  1476. methods: _objectSpread2({
  1477. _initTable: function _initTable() {
  1478. var options = _objectSpread2(_objectSpread2({}, deepCopy(this.options)), {}, {
  1479. columns: deepCopy(this.columns),
  1480. data: deepCopy(this.data)
  1481. });
  1482. if (!this._hasInit) {
  1483. this.$table.bootstrapTable(options);
  1484. this._hasInit = true;
  1485. } else {
  1486. this.refreshOptions(options);
  1487. }
  1488. }
  1489. }, function () {
  1490. var res = {};
  1491. var _iterator = _createForOfIteratorHelper($.fn.bootstrapTable.methods),
  1492. _step;
  1493. try {
  1494. var _loop = function _loop() {
  1495. var method = _step.value;
  1496. res[method] = function () {
  1497. var _this$$table;
  1498. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1499. args[_key] = arguments[_key];
  1500. }
  1501. return (_this$$table = this.$table).bootstrapTable.apply(_this$$table, [method].concat(args));
  1502. };
  1503. };
  1504. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  1505. _loop();
  1506. }
  1507. } catch (err) {
  1508. _iterator.e(err);
  1509. } finally {
  1510. _iterator.f();
  1511. }
  1512. return res;
  1513. }()),
  1514. watch: {
  1515. options: {
  1516. handler: function handler() {
  1517. this._initTable();
  1518. },
  1519. deep: true
  1520. },
  1521. columns: {
  1522. handler: function handler() {
  1523. this._initTable();
  1524. },
  1525. deep: true
  1526. },
  1527. data: {
  1528. handler: function handler() {
  1529. this.load(deepCopy(this.data));
  1530. },
  1531. deep: true
  1532. }
  1533. }
  1534. };
  1535. function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
  1536. if (typeof shadowMode !== 'boolean') {
  1537. createInjectorSSR = createInjector;
  1538. createInjector = shadowMode;
  1539. shadowMode = false;
  1540. }
  1541. // Vue.extend constructor export interop.
  1542. const options = typeof script === 'function' ? script.options : script;
  1543. // render functions
  1544. if (template && template.render) {
  1545. options.render = template.render;
  1546. options.staticRenderFns = template.staticRenderFns;
  1547. options._compiled = true;
  1548. // functional template
  1549. if (isFunctionalTemplate) {
  1550. options.functional = true;
  1551. }
  1552. }
  1553. // scopedId
  1554. if (scopeId) {
  1555. options._scopeId = scopeId;
  1556. }
  1557. let hook;
  1558. if (moduleIdentifier) {
  1559. // server build
  1560. hook = function (context) {
  1561. // 2.3 injection
  1562. context =
  1563. context || // cached call
  1564. (this.$vnode && this.$vnode.ssrContext) || // stateful
  1565. (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
  1566. // 2.2 with runInNewContext: true
  1567. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  1568. context = __VUE_SSR_CONTEXT__;
  1569. }
  1570. // inject component styles
  1571. if (style) {
  1572. style.call(this, createInjectorSSR(context));
  1573. }
  1574. // register component module identifier for async chunk inference
  1575. if (context && context._registeredComponents) {
  1576. context._registeredComponents.add(moduleIdentifier);
  1577. }
  1578. };
  1579. // used by ssr in case component is cached and beforeCreate
  1580. // never gets called
  1581. options._ssrRegister = hook;
  1582. }
  1583. else if (style) {
  1584. hook = shadowMode
  1585. ? function (context) {
  1586. style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
  1587. }
  1588. : function (context) {
  1589. style.call(this, createInjector(context));
  1590. };
  1591. }
  1592. if (hook) {
  1593. if (options.functional) {
  1594. // register for functional component in vue file
  1595. const originalRender = options.render;
  1596. options.render = function renderWithStyleInjection(h, context) {
  1597. hook.call(context);
  1598. return originalRender(h, context);
  1599. };
  1600. }
  1601. else {
  1602. // inject component registration as beforeCreate hook
  1603. const existing = options.beforeCreate;
  1604. options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
  1605. }
  1606. }
  1607. return script;
  1608. }
  1609. /* script */
  1610. const __vue_script__ = script;
  1611. /* template */
  1612. var __vue_render__ = function () {
  1613. var _vm = this;
  1614. var _h = _vm.$createElement;
  1615. var _c = _vm._self._c || _h;
  1616. return _c("table")
  1617. };
  1618. var __vue_staticRenderFns__ = [];
  1619. __vue_render__._withStripped = true;
  1620. /* style */
  1621. const __vue_inject_styles__ = undefined;
  1622. /* scoped */
  1623. const __vue_scope_id__ = undefined;
  1624. /* module identifier */
  1625. const __vue_module_identifier__ = undefined;
  1626. /* functional template */
  1627. const __vue_is_functional_template__ = false;
  1628. /* style inject */
  1629. /* style inject SSR */
  1630. /* style inject shadow dom */
  1631. const __vue_component__ = /*#__PURE__*/normalizeComponent(
  1632. { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
  1633. __vue_inject_styles__,
  1634. __vue_script__,
  1635. __vue_scope_id__,
  1636. __vue_is_functional_template__,
  1637. __vue_module_identifier__,
  1638. false,
  1639. undefined,
  1640. undefined,
  1641. undefined
  1642. );
  1643. return __vue_component__;
  1644. }));