bootstrap-table-vue.esm.js 62 KB

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