bootstrap-table-vue.esm.js 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710
  1. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  2. var global = typeof window == 'object' && window && window.Math == Math ? window
  3. : typeof self == 'object' && self && self.Math == Math ? self
  4. // eslint-disable-next-line no-new-func
  5. : Function('return this')();
  6. var hasOwnProperty = {}.hasOwnProperty;
  7. var has = function (it, key) {
  8. return hasOwnProperty.call(it, key);
  9. };
  10. var fails = function (exec) {
  11. try {
  12. return !!exec();
  13. } catch (e) {
  14. return true;
  15. }
  16. };
  17. // Thank's IE8 for his funny defineProperty
  18. var descriptors = !fails(function () {
  19. return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
  20. });
  21. var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
  22. var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  23. // Nashorn ~ JDK8 bug
  24. var NASHORN_BUG = nativeGetOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
  25. var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  26. var descriptor = nativeGetOwnPropertyDescriptor(this, V);
  27. return !!descriptor && descriptor.enumerable;
  28. } : nativePropertyIsEnumerable;
  29. var objectPropertyIsEnumerable = {
  30. f: f
  31. };
  32. var createPropertyDescriptor = function (bitmap, value) {
  33. return {
  34. enumerable: !(bitmap & 1),
  35. configurable: !(bitmap & 2),
  36. writable: !(bitmap & 4),
  37. value: value
  38. };
  39. };
  40. var toString = {}.toString;
  41. var classofRaw = function (it) {
  42. return toString.call(it).slice(8, -1);
  43. };
  44. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  45. var split = ''.split;
  46. var indexedObject = fails(function () {
  47. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  48. // eslint-disable-next-line no-prototype-builtins
  49. return !Object('z').propertyIsEnumerable(0);
  50. }) ? function (it) {
  51. return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
  52. } : Object;
  53. // `RequireObjectCoercible` abstract operation
  54. // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
  55. var requireObjectCoercible = function (it) {
  56. if (it == undefined) throw TypeError("Can't call method on " + it);
  57. return it;
  58. };
  59. // toObject with fallback for non-array-like ES3 strings
  60. var toIndexedObject = function (it) {
  61. return indexedObject(requireObjectCoercible(it));
  62. };
  63. var isObject = function (it) {
  64. return typeof it === 'object' ? it !== null : typeof it === 'function';
  65. };
  66. // 7.1.1 ToPrimitive(input [, PreferredType])
  67. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  68. // and the second argument - flag - preferred type is a string
  69. var toPrimitive = function (it, S) {
  70. if (!isObject(it)) return it;
  71. var fn, val;
  72. if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  73. if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
  74. if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
  75. throw TypeError("Can't convert object to primitive value");
  76. };
  77. var document = global.document;
  78. // typeof document.createElement is 'object' in old IE
  79. var exist = isObject(document) && isObject(document.createElement);
  80. var documentCreateElement = function (it) {
  81. return exist ? document.createElement(it) : {};
  82. };
  83. // Thank's IE8 for his funny defineProperty
  84. var ie8DomDefine = !descriptors && !fails(function () {
  85. return Object.defineProperty(documentCreateElement('div'), 'a', {
  86. get: function () { return 7; }
  87. }).a != 7;
  88. });
  89. var nativeGetOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  90. var f$1 = descriptors ? nativeGetOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  91. O = toIndexedObject(O);
  92. P = toPrimitive(P, true);
  93. if (ie8DomDefine) try {
  94. return nativeGetOwnPropertyDescriptor$1(O, P);
  95. } catch (e) { /* empty */ }
  96. if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
  97. };
  98. var objectGetOwnPropertyDescriptor = {
  99. f: f$1
  100. };
  101. var anObject = function (it) {
  102. if (!isObject(it)) {
  103. throw TypeError(String(it) + ' is not an object');
  104. } return it;
  105. };
  106. var nativeDefineProperty = Object.defineProperty;
  107. var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
  108. anObject(O);
  109. P = toPrimitive(P, true);
  110. anObject(Attributes);
  111. if (ie8DomDefine) try {
  112. return nativeDefineProperty(O, P, Attributes);
  113. } catch (e) { /* empty */ }
  114. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
  115. if ('value' in Attributes) O[P] = Attributes.value;
  116. return O;
  117. };
  118. var objectDefineProperty = {
  119. f: f$2
  120. };
  121. var hide = descriptors ? function (object, key, value) {
  122. return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
  123. } : function (object, key, value) {
  124. object[key] = value;
  125. return object;
  126. };
  127. function createCommonjsModule(fn, module) {
  128. return module = { exports: {} }, fn(module, module.exports), module.exports;
  129. }
  130. var setGlobal = function (key, value) {
  131. try {
  132. hide(global, key, value);
  133. } catch (e) {
  134. global[key] = value;
  135. } return value;
  136. };
  137. var shared = createCommonjsModule(function (module) {
  138. var SHARED = '__core-js_shared__';
  139. var store = global[SHARED] || setGlobal(SHARED, {});
  140. (module.exports = function (key, value) {
  141. return store[key] || (store[key] = value !== undefined ? value : {});
  142. })('versions', []).push({
  143. version: '3.0.0',
  144. mode: 'global',
  145. copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
  146. });
  147. });
  148. var functionToString = shared('native-function-to-string', Function.toString);
  149. var WeakMap = global.WeakMap;
  150. var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(functionToString.call(WeakMap));
  151. var id = 0;
  152. var postfix = Math.random();
  153. var uid = function (key) {
  154. return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + postfix).toString(36));
  155. };
  156. var shared$1 = shared('keys');
  157. var sharedKey = function (key) {
  158. return shared$1[key] || (shared$1[key] = uid(key));
  159. };
  160. var hiddenKeys = {};
  161. var WeakMap$1 = global.WeakMap;
  162. var set, get, has$1;
  163. var enforce = function (it) {
  164. return has$1(it) ? get(it) : set(it, {});
  165. };
  166. var getterFor = function (TYPE) {
  167. return function (it) {
  168. var state;
  169. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  170. throw TypeError('Incompatible receiver, ' + TYPE + ' required');
  171. } return state;
  172. };
  173. };
  174. if (nativeWeakMap) {
  175. var store = new WeakMap$1();
  176. var wmget = store.get;
  177. var wmhas = store.has;
  178. var wmset = store.set;
  179. set = function (it, metadata) {
  180. wmset.call(store, it, metadata);
  181. return metadata;
  182. };
  183. get = function (it) {
  184. return wmget.call(store, it) || {};
  185. };
  186. has$1 = function (it) {
  187. return wmhas.call(store, it);
  188. };
  189. } else {
  190. var STATE = sharedKey('state');
  191. hiddenKeys[STATE] = true;
  192. set = function (it, metadata) {
  193. hide(it, STATE, metadata);
  194. return metadata;
  195. };
  196. get = function (it) {
  197. return has(it, STATE) ? it[STATE] : {};
  198. };
  199. has$1 = function (it) {
  200. return has(it, STATE);
  201. };
  202. }
  203. var internalState = {
  204. set: set,
  205. get: get,
  206. has: has$1,
  207. enforce: enforce,
  208. getterFor: getterFor
  209. };
  210. var redefine = createCommonjsModule(function (module) {
  211. var getInternalState = internalState.get;
  212. var enforceInternalState = internalState.enforce;
  213. var TEMPLATE = String(functionToString).split('toString');
  214. shared('inspectSource', function (it) {
  215. return functionToString.call(it);
  216. });
  217. (module.exports = function (O, key, value, options) {
  218. var unsafe = options ? !!options.unsafe : false;
  219. var simple = options ? !!options.enumerable : false;
  220. var noTargetGet = options ? !!options.noTargetGet : false;
  221. if (typeof value == 'function') {
  222. if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
  223. enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
  224. }
  225. if (O === global) {
  226. if (simple) O[key] = value;
  227. else setGlobal(key, value);
  228. return;
  229. } else if (!unsafe) {
  230. delete O[key];
  231. } else if (!noTargetGet && O[key]) {
  232. simple = true;
  233. }
  234. if (simple) O[key] = value;
  235. else hide(O, key, value);
  236. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  237. })(Function.prototype, 'toString', function toString() {
  238. return typeof this == 'function' && getInternalState(this).source || functionToString.call(this);
  239. });
  240. });
  241. var ceil = Math.ceil;
  242. var floor = Math.floor;
  243. // `ToInteger` abstract operation
  244. // https://tc39.github.io/ecma262/#sec-tointeger
  245. var toInteger = function (argument) {
  246. return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
  247. };
  248. var min = Math.min;
  249. // `ToLength` abstract operation
  250. // https://tc39.github.io/ecma262/#sec-tolength
  251. var toLength = function (argument) {
  252. return argument > 0 ? min(toInteger(argument), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
  253. };
  254. var max = Math.max;
  255. var min$1 = Math.min;
  256. // Helper for a popular repeating case of the spec:
  257. // Let integer be ? ToInteger(index).
  258. // If integer < 0, let result be max((length + integer), 0); else let result be min(length, length).
  259. var toAbsoluteIndex = function (index, length) {
  260. var integer = toInteger(index);
  261. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  262. };
  263. // `Array.prototype.{ indexOf, includes }` methods implementation
  264. // false -> Array#indexOf
  265. // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
  266. // true -> Array#includes
  267. // https://tc39.github.io/ecma262/#sec-array.prototype.includes
  268. var arrayIncludes = function (IS_INCLUDES) {
  269. return function ($this, el, fromIndex) {
  270. var O = toIndexedObject($this);
  271. var length = toLength(O.length);
  272. var index = toAbsoluteIndex(fromIndex, length);
  273. var value;
  274. // Array#includes uses SameValueZero equality algorithm
  275. // eslint-disable-next-line no-self-compare
  276. if (IS_INCLUDES && el != el) while (length > index) {
  277. value = O[index++];
  278. // eslint-disable-next-line no-self-compare
  279. if (value != value) return true;
  280. // Array#indexOf ignores holes, Array#includes - not
  281. } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
  282. if (O[index] === el) return IS_INCLUDES || index || 0;
  283. } return !IS_INCLUDES && -1;
  284. };
  285. };
  286. var arrayIndexOf = arrayIncludes(false);
  287. var objectKeysInternal = function (object, names) {
  288. var O = toIndexedObject(object);
  289. var i = 0;
  290. var result = [];
  291. var key;
  292. for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
  293. // Don't enum bug & hidden keys
  294. while (names.length > i) if (has(O, key = names[i++])) {
  295. ~arrayIndexOf(result, key) || result.push(key);
  296. }
  297. return result;
  298. };
  299. // IE8- don't enum bug keys
  300. var enumBugKeys = [
  301. 'constructor',
  302. 'hasOwnProperty',
  303. 'isPrototypeOf',
  304. 'propertyIsEnumerable',
  305. 'toLocaleString',
  306. 'toString',
  307. 'valueOf'
  308. ];
  309. // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
  310. var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
  311. var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  312. return objectKeysInternal(O, hiddenKeys$1);
  313. };
  314. var objectGetOwnPropertyNames = {
  315. f: f$3
  316. };
  317. var f$4 = Object.getOwnPropertySymbols;
  318. var objectGetOwnPropertySymbols = {
  319. f: f$4
  320. };
  321. var Reflect = global.Reflect;
  322. // all object keys, includes non-enumerable and symbols
  323. var ownKeys = Reflect && Reflect.ownKeys || function ownKeys(it) {
  324. var keys = objectGetOwnPropertyNames.f(anObject(it));
  325. var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
  326. return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
  327. };
  328. var copyConstructorProperties = function (target, source) {
  329. var keys = ownKeys(source);
  330. var defineProperty = objectDefineProperty.f;
  331. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  332. for (var i = 0; i < keys.length; i++) {
  333. var key = keys[i];
  334. if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  335. }
  336. };
  337. var replacement = /#|\.prototype\./;
  338. var isForced = function (feature, detection) {
  339. var value = data[normalize(feature)];
  340. return value == POLYFILL ? true
  341. : value == NATIVE ? false
  342. : typeof detection == 'function' ? fails(detection)
  343. : !!detection;
  344. };
  345. var normalize = isForced.normalize = function (string) {
  346. return String(string).replace(replacement, '.').toLowerCase();
  347. };
  348. var data = isForced.data = {};
  349. var NATIVE = isForced.NATIVE = 'N';
  350. var POLYFILL = isForced.POLYFILL = 'P';
  351. var isForced_1 = isForced;
  352. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  353. /*
  354. options.target - name of the target object
  355. options.global - target is the global object
  356. options.stat - export as static methods of target
  357. options.proto - export as prototype methods of target
  358. options.real - real prototype method for the `pure` version
  359. options.forced - export even if the native feature is available
  360. options.bind - bind methods to the target, required for the `pure` version
  361. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  362. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  363. options.sham - add a flag to not completely full polyfills
  364. options.enumerable - export as enumerable property
  365. options.noTargetGet - prevent calling a getter on target
  366. */
  367. var _export = function (options, source) {
  368. var TARGET = options.target;
  369. var GLOBAL = options.global;
  370. var STATIC = options.stat;
  371. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  372. if (GLOBAL) {
  373. target = global;
  374. } else if (STATIC) {
  375. target = global[TARGET] || setGlobal(TARGET, {});
  376. } else {
  377. target = (global[TARGET] || {}).prototype;
  378. }
  379. if (target) for (key in source) {
  380. sourceProperty = source[key];
  381. if (options.noTargetGet) {
  382. descriptor = getOwnPropertyDescriptor(target, key);
  383. targetProperty = descriptor && descriptor.value;
  384. } else targetProperty = target[key];
  385. FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  386. // contained in target
  387. if (!FORCED && targetProperty !== undefined) {
  388. if (typeof sourceProperty === typeof targetProperty) continue;
  389. copyConstructorProperties(sourceProperty, targetProperty);
  390. }
  391. // add a flag to not completely full polyfills
  392. if (options.sham || (targetProperty && targetProperty.sham)) {
  393. hide(sourceProperty, 'sham', true);
  394. }
  395. // extend global
  396. redefine(target, key, sourceProperty, options);
  397. }
  398. };
  399. // Chrome 38 Symbol has incorrect toString conversion
  400. var nativeSymbol = !fails(function () {
  401. });
  402. var store$1 = shared('wks');
  403. var Symbol$1 = global.Symbol;
  404. var wellKnownSymbol = function (name) {
  405. return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
  406. || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
  407. };
  408. var defineProperty = objectDefineProperty.f;
  409. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  410. var setToStringTag = function (it, TAG, STATIC) {
  411. if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
  412. defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
  413. }
  414. };
  415. var f$5 = wellKnownSymbol;
  416. var wrappedWellKnownSymbol = {
  417. f: f$5
  418. };
  419. var path = global;
  420. var defineProperty$1 = objectDefineProperty.f;
  421. var defineWellKnownSymbol = function (NAME) {
  422. var Symbol = path.Symbol || (path.Symbol = {});
  423. if (!has(Symbol, NAME)) defineProperty$1(Symbol, NAME, {
  424. value: wrappedWellKnownSymbol.f(NAME)
  425. });
  426. };
  427. // 19.1.2.14 / 15.2.3.14 Object.keys(O)
  428. var objectKeys = Object.keys || function keys(O) {
  429. return objectKeysInternal(O, enumBugKeys);
  430. };
  431. // all enumerable object keys, includes symbols
  432. var enumKeys = function (it) {
  433. var result = objectKeys(it);
  434. var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
  435. if (getOwnPropertySymbols) {
  436. var symbols = getOwnPropertySymbols(it);
  437. var propertyIsEnumerable = objectPropertyIsEnumerable.f;
  438. var i = 0;
  439. var key;
  440. while (symbols.length > i) if (propertyIsEnumerable.call(it, key = symbols[i++])) result.push(key);
  441. } return result;
  442. };
  443. // `IsArray` abstract operation
  444. // https://tc39.github.io/ecma262/#sec-isarray
  445. var isArray = Array.isArray || function isArray(arg) {
  446. return classofRaw(arg) == 'Array';
  447. };
  448. var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
  449. anObject(O);
  450. var keys = objectKeys(Properties);
  451. var length = keys.length;
  452. var i = 0;
  453. var key;
  454. while (length > i) objectDefineProperty.f(O, key = keys[i++], Properties[key]);
  455. return O;
  456. };
  457. var document$1 = global.document;
  458. var html = document$1 && document$1.documentElement;
  459. // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
  460. var IE_PROTO = sharedKey('IE_PROTO');
  461. var PROTOTYPE = 'prototype';
  462. var Empty = function () { /* empty */ };
  463. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  464. var createDict = function () {
  465. // Thrash, waste and sodomy: IE GC bug
  466. var iframe = documentCreateElement('iframe');
  467. var length = enumBugKeys.length;
  468. var lt = '<';
  469. var script = 'script';
  470. var gt = '>';
  471. var js = 'java' + script + ':';
  472. var iframeDocument;
  473. iframe.style.display = 'none';
  474. html.appendChild(iframe);
  475. iframe.src = String(js);
  476. iframeDocument = iframe.contentWindow.document;
  477. iframeDocument.open();
  478. iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt);
  479. iframeDocument.close();
  480. createDict = iframeDocument.F;
  481. while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
  482. return createDict();
  483. };
  484. var objectCreate = Object.create || function create(O, Properties) {
  485. var result;
  486. if (O !== null) {
  487. Empty[PROTOTYPE] = anObject(O);
  488. result = new Empty();
  489. Empty[PROTOTYPE] = null;
  490. // add "__proto__" for Object.getPrototypeOf polyfill
  491. result[IE_PROTO] = O;
  492. } else result = createDict();
  493. return Properties === undefined ? result : objectDefineProperties(result, Properties);
  494. };
  495. hiddenKeys[IE_PROTO] = true;
  496. // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
  497. var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
  498. var toString$1 = {}.toString;
  499. var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
  500. ? Object.getOwnPropertyNames(window) : [];
  501. var getWindowNames = function (it) {
  502. try {
  503. return nativeGetOwnPropertyNames(it);
  504. } catch (e) {
  505. return windowNames.slice();
  506. }
  507. };
  508. var f$6 = function getOwnPropertyNames(it) {
  509. return windowNames && toString$1.call(it) == '[object Window]'
  510. ? getWindowNames(it)
  511. : nativeGetOwnPropertyNames(toIndexedObject(it));
  512. };
  513. var objectGetOwnPropertyNamesExternal = {
  514. f: f$6
  515. };
  516. // ECMAScript 6 symbols shim
  517. var HIDDEN = sharedKey('hidden');
  518. var SYMBOL = 'Symbol';
  519. var setInternalState = internalState.set;
  520. var getInternalState = internalState.getterFor(SYMBOL);
  521. var nativeGetOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
  522. var nativeDefineProperty$1 = objectDefineProperty.f;
  523. var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
  524. var $Symbol = global.Symbol;
  525. var JSON = global.JSON;
  526. var nativeJSONStringify = JSON && JSON.stringify;
  527. var PROTOTYPE$1 = 'prototype';
  528. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  529. var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;
  530. var SymbolRegistry = shared('symbol-registry');
  531. var AllSymbols = shared('symbols');
  532. var ObjectPrototypeSymbols = shared('op-symbols');
  533. var WellKnownSymbolsStore = shared('wks');
  534. var ObjectPrototype = Object[PROTOTYPE$1];
  535. var QObject = global.QObject;
  536. // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
  537. var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
  538. // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
  539. var setSymbolDescriptor = descriptors && fails(function () {
  540. return objectCreate(nativeDefineProperty$1({}, 'a', {
  541. get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
  542. })).a != 7;
  543. }) ? function (it, key, D) {
  544. var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$2(ObjectPrototype, key);
  545. if (ObjectPrototypeDescriptor) delete ObjectPrototype[key];
  546. nativeDefineProperty$1(it, key, D);
  547. if (ObjectPrototypeDescriptor && it !== ObjectPrototype) {
  548. nativeDefineProperty$1(ObjectPrototype, key, ObjectPrototypeDescriptor);
  549. }
  550. } : nativeDefineProperty$1;
  551. var wrap = function (tag, description) {
  552. var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);
  553. setInternalState(symbol, {
  554. type: SYMBOL,
  555. tag: tag,
  556. description: description
  557. });
  558. if (!descriptors) symbol.description = description;
  559. return symbol;
  560. };
  561. var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {
  562. return typeof it == 'symbol';
  563. } : function (it) {
  564. return Object(it) instanceof $Symbol;
  565. };
  566. var $defineProperty = function defineProperty(it, key, D) {
  567. if (it === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, key, D);
  568. anObject(it);
  569. key = toPrimitive(key, true);
  570. anObject(D);
  571. if (has(AllSymbols, key)) {
  572. if (!D.enumerable) {
  573. if (!has(it, HIDDEN)) nativeDefineProperty$1(it, HIDDEN, createPropertyDescriptor(1, {}));
  574. it[HIDDEN][key] = true;
  575. } else {
  576. if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
  577. D = objectCreate(D, { enumerable: createPropertyDescriptor(0, false) });
  578. } return setSymbolDescriptor(it, key, D);
  579. } return nativeDefineProperty$1(it, key, D);
  580. };
  581. var $defineProperties = function defineProperties(it, P) {
  582. anObject(it);
  583. var keys = enumKeys(P = toIndexedObject(P));
  584. var i = 0;
  585. var l = keys.length;
  586. var key;
  587. while (l > i) $defineProperty(it, key = keys[i++], P[key]);
  588. return it;
  589. };
  590. var $create = function create(it, P) {
  591. return P === undefined ? objectCreate(it) : $defineProperties(objectCreate(it), P);
  592. };
  593. var $propertyIsEnumerable = function propertyIsEnumerable(key) {
  594. var E = nativePropertyIsEnumerable$1.call(this, key = toPrimitive(key, true));
  595. if (this === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return false;
  596. return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
  597. };
  598. var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
  599. it = toIndexedObject(it);
  600. key = toPrimitive(key, true);
  601. if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
  602. var D = nativeGetOwnPropertyDescriptor$2(it, key);
  603. if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
  604. return D;
  605. };
  606. var $getOwnPropertyNames = function getOwnPropertyNames(it) {
  607. var names = nativeGetOwnPropertyNames$1(toIndexedObject(it));
  608. var result = [];
  609. var i = 0;
  610. var key;
  611. while (names.length > i) {
  612. if (!has(AllSymbols, key = names[i++]) && !has(hiddenKeys, key)) result.push(key);
  613. } return result;
  614. };
  615. var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
  616. var IS_OP = it === ObjectPrototype;
  617. var names = nativeGetOwnPropertyNames$1(IS_OP ? ObjectPrototypeSymbols : toIndexedObject(it));
  618. var result = [];
  619. var i = 0;
  620. var key;
  621. while (names.length > i) {
  622. if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectPrototype, key) : true)) result.push(AllSymbols[key]);
  623. } return result;
  624. };
  625. // `Symbol` constructor
  626. // https://tc39.github.io/ecma262/#sec-symbol-constructor
  627. if (!nativeSymbol) {
  628. $Symbol = function Symbol() {
  629. if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
  630. var description = arguments[0] === undefined ? undefined : String(arguments[0]);
  631. var tag = uid(description);
  632. var setter = function (value) {
  633. if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
  634. if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
  635. setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
  636. };
  637. if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
  638. return wrap(tag, description);
  639. };
  640. redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {
  641. return getInternalState(this).tag;
  642. });
  643. objectPropertyIsEnumerable.f = $propertyIsEnumerable;
  644. objectDefineProperty.f = $defineProperty;
  645. objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;
  646. objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
  647. objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;
  648. if (descriptors) {
  649. // https://github.com/tc39/proposal-Symbol-description
  650. nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {
  651. configurable: true,
  652. get: function description() {
  653. return getInternalState(this).description;
  654. }
  655. });
  656. {
  657. redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
  658. }
  659. }
  660. wrappedWellKnownSymbol.f = function (name) {
  661. return wrap(wellKnownSymbol(name), name);
  662. };
  663. }
  664. _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, { Symbol: $Symbol });
  665. for (var wellKnownSymbols = objectKeys(WellKnownSymbolsStore), k = 0; wellKnownSymbols.length > k;) {
  666. defineWellKnownSymbol(wellKnownSymbols[k++]);
  667. }
  668. _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {
  669. // `Symbol.for` method
  670. // https://tc39.github.io/ecma262/#sec-symbol.for
  671. 'for': function (key) {
  672. return has(SymbolRegistry, key += '')
  673. ? SymbolRegistry[key]
  674. : SymbolRegistry[key] = $Symbol(key);
  675. },
  676. // `Symbol.keyFor` method
  677. // https://tc39.github.io/ecma262/#sec-symbol.keyfor
  678. keyFor: function keyFor(sym) {
  679. if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
  680. for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
  681. },
  682. useSetter: function () { USE_SETTER = true; },
  683. useSimple: function () { USE_SETTER = false; }
  684. });
  685. _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {
  686. // `Object.create` method
  687. // https://tc39.github.io/ecma262/#sec-object.create
  688. create: $create,
  689. // `Object.defineProperty` method
  690. // https://tc39.github.io/ecma262/#sec-object.defineproperty
  691. defineProperty: $defineProperty,
  692. // `Object.defineProperties` method
  693. // https://tc39.github.io/ecma262/#sec-object.defineproperties
  694. defineProperties: $defineProperties,
  695. // `Object.getOwnPropertyDescriptor` method
  696. // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
  697. getOwnPropertyDescriptor: $getOwnPropertyDescriptor
  698. });
  699. _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {
  700. // `Object.getOwnPropertyNames` method
  701. // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
  702. getOwnPropertyNames: $getOwnPropertyNames,
  703. // `Object.getOwnPropertySymbols` method
  704. // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
  705. getOwnPropertySymbols: $getOwnPropertySymbols
  706. });
  707. // `JSON.stringify` method behavior with symbols
  708. // https://tc39.github.io/ecma262/#sec-json.stringify
  709. JSON && _export({ target: 'JSON', stat: true, forced: !nativeSymbol || fails(function () {
  710. var symbol = $Symbol();
  711. // MS Edge converts symbol values to JSON as {}
  712. return nativeJSONStringify([symbol]) != '[null]'
  713. // WebKit converts symbol values to JSON as null
  714. || nativeJSONStringify({ a: symbol }) != '{}'
  715. // V8 throws on boxed symbols
  716. || nativeJSONStringify(Object(symbol)) != '{}';
  717. }) }, {
  718. stringify: function stringify(it) {
  719. var args = [it];
  720. var i = 1;
  721. var replacer, $replacer;
  722. while (arguments.length > i) args.push(arguments[i++]);
  723. $replacer = replacer = args[1];
  724. if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
  725. if (!isArray(replacer)) replacer = function (key, value) {
  726. if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
  727. if (!isSymbol(value)) return value;
  728. };
  729. args[1] = replacer;
  730. return nativeJSONStringify.apply(JSON, args);
  731. }
  732. });
  733. // `Symbol.prototype[@@toPrimitive]` method
  734. // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
  735. if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) hide($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
  736. // `Symbol.prototype[@@toStringTag]` property
  737. // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
  738. setToStringTag($Symbol, SYMBOL);
  739. hiddenKeys[HIDDEN] = true;
  740. var defineProperty$2 = objectDefineProperty.f;
  741. var NativeSymbol = global.Symbol;
  742. if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
  743. // Safari 12 bug
  744. NativeSymbol().description !== undefined
  745. )) {
  746. var EmptyStringDescriptionStore = {};
  747. // wrap Symbol constructor for correct work with undefined description
  748. var SymbolWrapper = function Symbol() {
  749. var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
  750. var result = this instanceof SymbolWrapper
  751. ? new NativeSymbol(description)
  752. // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
  753. : description === undefined ? NativeSymbol() : NativeSymbol(description);
  754. if (description === '') EmptyStringDescriptionStore[result] = true;
  755. return result;
  756. };
  757. copyConstructorProperties(SymbolWrapper, NativeSymbol);
  758. var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
  759. symbolPrototype.constructor = SymbolWrapper;
  760. var symbolToString = symbolPrototype.toString;
  761. var native = String(NativeSymbol('test')) == 'Symbol(test)';
  762. var regexp = /^Symbol\((.*)\)[^)]+$/;
  763. defineProperty$2(symbolPrototype, 'description', {
  764. configurable: true,
  765. get: function description() {
  766. var symbol = isObject(this) ? this.valueOf() : this;
  767. var string = symbolToString.call(symbol);
  768. if (has(EmptyStringDescriptionStore, symbol)) return '';
  769. var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
  770. return desc === '' ? undefined : desc;
  771. }
  772. });
  773. _export({ global: true, forced: true }, { Symbol: SymbolWrapper });
  774. }
  775. // `Symbol.iterator` well-known symbol
  776. // https://tc39.github.io/ecma262/#sec-symbol.iterator
  777. defineWellKnownSymbol('iterator');
  778. // `ToObject` abstract operation
  779. // https://tc39.github.io/ecma262/#sec-toobject
  780. var toObject = function (argument) {
  781. return Object(requireObjectCoercible(argument));
  782. };
  783. var createProperty = function (object, key, value) {
  784. var propertyKey = toPrimitive(key);
  785. if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
  786. else object[propertyKey] = value;
  787. };
  788. var SPECIES = wellKnownSymbol('species');
  789. // `ArraySpeciesCreate` abstract operation
  790. // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
  791. var arraySpeciesCreate = function (originalArray, length) {
  792. var C;
  793. if (isArray(originalArray)) {
  794. C = originalArray.constructor;
  795. // cross-realm fallback
  796. if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
  797. else if (isObject(C)) {
  798. C = C[SPECIES];
  799. if (C === null) C = undefined;
  800. }
  801. } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
  802. };
  803. var SPECIES$1 = wellKnownSymbol('species');
  804. var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
  805. return !fails(function () {
  806. var array = [];
  807. var constructor = array.constructor = {};
  808. constructor[SPECIES$1] = function () {
  809. return { foo: 1 };
  810. };
  811. return array[METHOD_NAME](Boolean).foo !== 1;
  812. });
  813. };
  814. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  815. var MAX_SAFE_INTEGER = 0x1fffffffffffff;
  816. var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
  817. var IS_CONCAT_SPREADABLE_SUPPORT = !fails(function () {
  818. var array = [];
  819. array[IS_CONCAT_SPREADABLE] = false;
  820. return array.concat()[0] !== array;
  821. });
  822. var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
  823. var isConcatSpreadable = function (O) {
  824. if (!isObject(O)) return false;
  825. var spreadable = O[IS_CONCAT_SPREADABLE];
  826. return spreadable !== undefined ? !!spreadable : isArray(O);
  827. };
  828. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
  829. // `Array.prototype.concat` method
  830. // https://tc39.github.io/ecma262/#sec-array.prototype.concat
  831. // with adding support of @@isConcatSpreadable and @@species
  832. _export({ target: 'Array', proto: true, forced: FORCED }, {
  833. concat: function concat(arg) { // eslint-disable-line no-unused-vars
  834. var O = toObject(this);
  835. var A = arraySpeciesCreate(O, 0);
  836. var n = 0;
  837. var i, k, length, len, E;
  838. for (i = -1, length = arguments.length; i < length; i++) {
  839. E = i === -1 ? O : arguments[i];
  840. if (isConcatSpreadable(E)) {
  841. len = toLength(E.length);
  842. if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  843. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  844. } else {
  845. if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  846. createProperty(A, n++, E);
  847. }
  848. }
  849. A.length = n;
  850. return A;
  851. }
  852. });
  853. var UNSCOPABLES = wellKnownSymbol('unscopables');
  854. var ArrayPrototype = Array.prototype;
  855. // Array.prototype[@@unscopables]
  856. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  857. if (ArrayPrototype[UNSCOPABLES] == undefined) {
  858. hide(ArrayPrototype, UNSCOPABLES, objectCreate(null));
  859. }
  860. // add a key to Array.prototype[@@unscopables]
  861. var addToUnscopables = function (key) {
  862. ArrayPrototype[UNSCOPABLES][key] = true;
  863. };
  864. var correctPrototypeGetter = !fails(function () {
  865. function F() { /* empty */ }
  866. F.prototype.constructor = null;
  867. return Object.getPrototypeOf(new F()) !== F.prototype;
  868. });
  869. // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
  870. var IE_PROTO$1 = sharedKey('IE_PROTO');
  871. var ObjectPrototype$1 = Object.prototype;
  872. var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
  873. O = toObject(O);
  874. if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];
  875. if (typeof O.constructor == 'function' && O instanceof O.constructor) {
  876. return O.constructor.prototype;
  877. } return O instanceof Object ? ObjectPrototype$1 : null;
  878. };
  879. var ITERATOR = wellKnownSymbol('iterator');
  880. var BUGGY_SAFARI_ITERATORS = false;
  881. var returnThis = function () { return this; };
  882. // `%IteratorPrototype%` object
  883. // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
  884. var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
  885. if ([].keys) {
  886. arrayIterator = [].keys();
  887. // Safari 8 has buggy iterators w/o `next`
  888. if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
  889. else {
  890. PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
  891. if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
  892. }
  893. }
  894. if (IteratorPrototype == undefined) IteratorPrototype = {};
  895. // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
  896. if (!has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);
  897. var iteratorsCore = {
  898. IteratorPrototype: IteratorPrototype,
  899. BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
  900. };
  901. var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
  902. var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
  903. var TO_STRING_TAG = NAME + ' Iterator';
  904. IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
  905. setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
  906. return IteratorConstructor;
  907. };
  908. var validateSetPrototypeOfArguments = function (O, proto) {
  909. anObject(O);
  910. if (!isObject(proto) && proto !== null) {
  911. throw TypeError("Can't set " + String(proto) + ' as a prototype');
  912. }
  913. };
  914. // Works with __proto__ only. Old v8 can't work with null proto objects.
  915. /* eslint-disable no-proto */
  916. var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () { // eslint-disable-line
  917. var correctSetter = false;
  918. var test = {};
  919. var setter;
  920. try {
  921. setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
  922. setter.call(test, []);
  923. correctSetter = test instanceof Array;
  924. } catch (e) { /* empty */ }
  925. return function setPrototypeOf(O, proto) {
  926. validateSetPrototypeOfArguments(O, proto);
  927. if (correctSetter) setter.call(O, proto);
  928. else O.__proto__ = proto;
  929. return O;
  930. };
  931. }() : undefined);
  932. var ITERATOR$1 = wellKnownSymbol('iterator');
  933. var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
  934. var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
  935. var KEYS = 'keys';
  936. var VALUES = 'values';
  937. var ENTRIES = 'entries';
  938. var returnThis$1 = function () { return this; };
  939. var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
  940. createIteratorConstructor(IteratorConstructor, NAME, next);
  941. var getIterationMethod = function (KIND) {
  942. if (KIND === DEFAULT && defaultIterator) return defaultIterator;
  943. if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
  944. switch (KIND) {
  945. case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
  946. case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
  947. case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
  948. } return function () { return new IteratorConstructor(this); };
  949. };
  950. var TO_STRING_TAG = NAME + ' Iterator';
  951. var INCORRECT_VALUES_NAME = false;
  952. var IterablePrototype = Iterable.prototype;
  953. var nativeIterator = IterablePrototype[ITERATOR$1]
  954. || IterablePrototype['@@iterator']
  955. || DEFAULT && IterablePrototype[DEFAULT];
  956. var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
  957. var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
  958. var CurrentIteratorPrototype, methods, KEY;
  959. // fix native
  960. if (anyNativeIterator) {
  961. CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
  962. if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
  963. if (objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
  964. if (objectSetPrototypeOf) {
  965. objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
  966. } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
  967. hide(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
  968. }
  969. }
  970. // Set @@toStringTag to native iterators
  971. setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
  972. }
  973. }
  974. // fix Array#{values, @@iterator}.name in V8 / FF
  975. if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
  976. INCORRECT_VALUES_NAME = true;
  977. defaultIterator = function values() { return nativeIterator.call(this); };
  978. }
  979. // define iterator
  980. if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
  981. hide(IterablePrototype, ITERATOR$1, defaultIterator);
  982. }
  983. // export additional methods
  984. if (DEFAULT) {
  985. methods = {
  986. values: getIterationMethod(VALUES),
  987. keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
  988. entries: getIterationMethod(ENTRIES)
  989. };
  990. if (FORCED) for (KEY in methods) {
  991. if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
  992. redefine(IterablePrototype, KEY, methods[KEY]);
  993. }
  994. } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
  995. }
  996. return methods;
  997. };
  998. var ARRAY_ITERATOR = 'Array Iterator';
  999. var setInternalState$1 = internalState.set;
  1000. var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);
  1001. // `Array.prototype.entries` method
  1002. // https://tc39.github.io/ecma262/#sec-array.prototype.entries
  1003. // `Array.prototype.keys` method
  1004. // https://tc39.github.io/ecma262/#sec-array.prototype.keys
  1005. // `Array.prototype.values` method
  1006. // https://tc39.github.io/ecma262/#sec-array.prototype.values
  1007. // `Array.prototype[@@iterator]` method
  1008. // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
  1009. // `CreateArrayIterator` internal method
  1010. // https://tc39.github.io/ecma262/#sec-createarrayiterator
  1011. var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
  1012. setInternalState$1(this, {
  1013. type: ARRAY_ITERATOR,
  1014. target: toIndexedObject(iterated), // target
  1015. index: 0, // next index
  1016. kind: kind // kind
  1017. });
  1018. // `%ArrayIteratorPrototype%.next` method
  1019. // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
  1020. }, function () {
  1021. var state = getInternalState$1(this);
  1022. var target = state.target;
  1023. var kind = state.kind;
  1024. var index = state.index++;
  1025. if (!target || index >= target.length) {
  1026. state.target = undefined;
  1027. return { value: undefined, done: true };
  1028. }
  1029. if (kind == 'keys') return { value: index, done: false };
  1030. if (kind == 'values') return { value: target[index], done: false };
  1031. return { value: [index, target[index]], done: false };
  1032. }, 'values');
  1033. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  1034. addToUnscopables('keys');
  1035. addToUnscopables('values');
  1036. addToUnscopables('entries');
  1037. var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
  1038. // ES3 wrong here
  1039. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  1040. // fallback for IE11 Script Access Denied error
  1041. var tryGet = function (it, key) {
  1042. try {
  1043. return it[key];
  1044. } catch (e) { /* empty */ }
  1045. };
  1046. // getting tag from ES6+ `Object.prototype.toString`
  1047. var classof = function (it) {
  1048. var O, tag, result;
  1049. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1050. // @@toStringTag case
  1051. : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$1)) == 'string' ? tag
  1052. // builtinTag case
  1053. : CORRECT_ARGUMENTS ? classofRaw(O)
  1054. // ES3 arguments fallback
  1055. : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
  1056. };
  1057. var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
  1058. var test = {};
  1059. test[TO_STRING_TAG$2] = 'z';
  1060. // `Object.prototype.toString` method implementation
  1061. // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
  1062. var objectToString = String(test) !== '[object z]' ? function toString() {
  1063. return '[object ' + classof(this) + ']';
  1064. } : test.toString;
  1065. var ObjectPrototype$2 = Object.prototype;
  1066. // `Object.prototype.toString` method
  1067. // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
  1068. if (objectToString !== ObjectPrototype$2.toString) {
  1069. redefine(ObjectPrototype$2, 'toString', objectToString, { unsafe: true });
  1070. }
  1071. // CONVERT_TO_STRING: true -> String#at
  1072. // CONVERT_TO_STRING: false -> String#codePointAt
  1073. var stringAt = function (that, pos, CONVERT_TO_STRING) {
  1074. var S = String(requireObjectCoercible(that));
  1075. var position = toInteger(pos);
  1076. var size = S.length;
  1077. var first, second;
  1078. if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
  1079. first = S.charCodeAt(position);
  1080. return first < 0xd800 || first > 0xdbff || position + 1 === size
  1081. || (second = S.charCodeAt(position + 1)) < 0xdc00 || second > 0xdfff
  1082. ? CONVERT_TO_STRING ? S.charAt(position) : first
  1083. : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xd800 << 10) + (second - 0xdc00) + 0x10000;
  1084. };
  1085. var STRING_ITERATOR = 'String Iterator';
  1086. var setInternalState$2 = internalState.set;
  1087. var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
  1088. // `String.prototype[@@iterator]` method
  1089. // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
  1090. defineIterator(String, 'String', function (iterated) {
  1091. setInternalState$2(this, {
  1092. type: STRING_ITERATOR,
  1093. string: String(iterated),
  1094. index: 0
  1095. });
  1096. // `%StringIteratorPrototype%.next` method
  1097. // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
  1098. }, function next() {
  1099. var state = getInternalState$2(this);
  1100. var string = state.string;
  1101. var index = state.index;
  1102. var point;
  1103. if (index >= string.length) return { value: undefined, done: true };
  1104. point = stringAt(string, index, true);
  1105. state.index += point.length;
  1106. return { value: point, done: false };
  1107. });
  1108. // iterable DOM collections
  1109. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  1110. var domIterables = {
  1111. CSSRuleList: 0,
  1112. CSSStyleDeclaration: 0,
  1113. CSSValueList: 0,
  1114. ClientRectList: 0,
  1115. DOMRectList: 0,
  1116. DOMStringList: 0,
  1117. DOMTokenList: 1,
  1118. DataTransferItemList: 0,
  1119. FileList: 0,
  1120. HTMLAllCollection: 0,
  1121. HTMLCollection: 0,
  1122. HTMLFormElement: 0,
  1123. HTMLSelectElement: 0,
  1124. MediaList: 0,
  1125. MimeTypeArray: 0,
  1126. NamedNodeMap: 0,
  1127. NodeList: 1,
  1128. PaintRequestList: 0,
  1129. Plugin: 0,
  1130. PluginArray: 0,
  1131. SVGLengthList: 0,
  1132. SVGNumberList: 0,
  1133. SVGPathSegList: 0,
  1134. SVGPointList: 0,
  1135. SVGStringList: 0,
  1136. SVGTransformList: 0,
  1137. SourceBufferList: 0,
  1138. StyleSheetList: 0,
  1139. TextTrackCueList: 0,
  1140. TextTrackList: 0,
  1141. TouchList: 0
  1142. };
  1143. var ITERATOR$2 = wellKnownSymbol('iterator');
  1144. var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
  1145. var ArrayValues = es_array_iterator.values;
  1146. for (var COLLECTION_NAME in domIterables) {
  1147. var Collection = global[COLLECTION_NAME];
  1148. var CollectionPrototype = Collection && Collection.prototype;
  1149. if (CollectionPrototype) {
  1150. // some Chrome versions have non-configurable methods on DOMTokenList
  1151. if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
  1152. hide(CollectionPrototype, ITERATOR$2, ArrayValues);
  1153. } catch (e) {
  1154. CollectionPrototype[ITERATOR$2] = ArrayValues;
  1155. }
  1156. if (!CollectionPrototype[TO_STRING_TAG$3]) hide(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
  1157. if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
  1158. // some Chrome versions have non-configurable methods on DOMTokenList
  1159. if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
  1160. hide(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
  1161. } catch (e) {
  1162. CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
  1163. }
  1164. }
  1165. }
  1166. }
  1167. function _defineProperty(obj, key, value) {
  1168. if (key in obj) {
  1169. Object.defineProperty(obj, key, {
  1170. value: value,
  1171. enumerable: true,
  1172. configurable: true,
  1173. writable: true
  1174. });
  1175. } else {
  1176. obj[key] = value;
  1177. }
  1178. return obj;
  1179. }
  1180. function _objectSpread(target) {
  1181. for (var i = 1; i < arguments.length; i++) {
  1182. var source = arguments[i] != null ? arguments[i] : {};
  1183. var ownKeys = Object.keys(source);
  1184. if (typeof Object.getOwnPropertySymbols === 'function') {
  1185. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  1186. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  1187. }));
  1188. }
  1189. ownKeys.forEach(function (key) {
  1190. _defineProperty(target, key, source[key]);
  1191. });
  1192. }
  1193. return target;
  1194. }
  1195. function _toConsumableArray(arr) {
  1196. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  1197. }
  1198. function _arrayWithoutHoles(arr) {
  1199. if (Array.isArray(arr)) {
  1200. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  1201. return arr2;
  1202. }
  1203. }
  1204. function _iterableToArray(iter) {
  1205. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  1206. }
  1207. function _nonIterableSpread() {
  1208. throw new TypeError("Invalid attempt to spread non-iterable instance");
  1209. }
  1210. //
  1211. //
  1212. //
  1213. //
  1214. var $ = window.jQuery;
  1215. var deepCopy = function deepCopy(arg) {
  1216. return $.extend(true, Array.isArray(arg) ? [] : {}, arg);
  1217. };
  1218. var script = {
  1219. name: 'BootstrapTable',
  1220. props: {
  1221. columns: {
  1222. type: Array,
  1223. require: true
  1224. },
  1225. data: {
  1226. type: [Array, Object],
  1227. default: function _default() {
  1228. return undefined;
  1229. }
  1230. },
  1231. options: {
  1232. type: Object,
  1233. default: function _default() {
  1234. return {};
  1235. }
  1236. }
  1237. },
  1238. mounted: function mounted() {
  1239. var _this = this;
  1240. this.$table = $(this.$el);
  1241. this.$table.on('all.bs.table', function (e, name, args) {
  1242. _this.$emit.apply(_this, [$.fn.bootstrapTable.events[name]].concat(_toConsumableArray(args)));
  1243. });
  1244. this._initTable();
  1245. },
  1246. methods: _objectSpread({
  1247. _initTable: function _initTable() {
  1248. var options = _objectSpread({}, deepCopy(this.options), {
  1249. columns: deepCopy(this.columns),
  1250. data: deepCopy(this.data)
  1251. });
  1252. if (!this._hasInit) {
  1253. this.$table.bootstrapTable(options);
  1254. this._hasInit = true;
  1255. } else {
  1256. this.refreshOptions(options);
  1257. }
  1258. }
  1259. }, function () {
  1260. var res = {};
  1261. var _iteratorNormalCompletion = true;
  1262. var _didIteratorError = false;
  1263. var _iteratorError = undefined;
  1264. try {
  1265. var _loop = function _loop() {
  1266. var method = _step.value;
  1267. res[method] = function () {
  1268. var _this$$table;
  1269. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1270. args[_key] = arguments[_key];
  1271. }
  1272. return (_this$$table = this.$table).bootstrapTable.apply(_this$$table, [method].concat(args));
  1273. };
  1274. };
  1275. for (var _iterator = $.fn.bootstrapTable.methods[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  1276. _loop();
  1277. }
  1278. } catch (err) {
  1279. _didIteratorError = true;
  1280. _iteratorError = err;
  1281. } finally {
  1282. try {
  1283. if (!_iteratorNormalCompletion && _iterator.return != null) {
  1284. _iterator.return();
  1285. }
  1286. } finally {
  1287. if (_didIteratorError) {
  1288. throw _iteratorError;
  1289. }
  1290. }
  1291. }
  1292. return res;
  1293. }()),
  1294. watch: {
  1295. options: {
  1296. handler: function handler() {
  1297. this._initTable();
  1298. },
  1299. deep: true
  1300. },
  1301. columns: {
  1302. handler: function handler() {
  1303. this._initTable();
  1304. },
  1305. deep: true
  1306. },
  1307. data: {
  1308. handler: function handler() {
  1309. this.load(deepCopy(this.data));
  1310. },
  1311. deep: true
  1312. }
  1313. }
  1314. };
  1315. function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
  1316. /* server only */
  1317. , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
  1318. if (typeof shadowMode !== 'boolean') {
  1319. createInjectorSSR = createInjector;
  1320. createInjector = shadowMode;
  1321. shadowMode = false;
  1322. } // Vue.extend constructor export interop.
  1323. var options = typeof script === 'function' ? script.options : script; // render functions
  1324. if (template && template.render) {
  1325. options.render = template.render;
  1326. options.staticRenderFns = template.staticRenderFns;
  1327. options._compiled = true; // functional template
  1328. if (isFunctionalTemplate) {
  1329. options.functional = true;
  1330. }
  1331. } // scopedId
  1332. if (scopeId) {
  1333. options._scopeId = scopeId;
  1334. }
  1335. var hook;
  1336. if (moduleIdentifier) {
  1337. // server build
  1338. hook = function hook(context) {
  1339. // 2.3 injection
  1340. context = context || // cached call
  1341. this.$vnode && this.$vnode.ssrContext || // stateful
  1342. this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
  1343. // 2.2 with runInNewContext: true
  1344. if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
  1345. context = __VUE_SSR_CONTEXT__;
  1346. } // inject component styles
  1347. if (style) {
  1348. style.call(this, createInjectorSSR(context));
  1349. } // register component module identifier for async chunk inference
  1350. if (context && context._registeredComponents) {
  1351. context._registeredComponents.add(moduleIdentifier);
  1352. }
  1353. }; // used by ssr in case component is cached and beforeCreate
  1354. // never gets called
  1355. options._ssrRegister = hook;
  1356. } else if (style) {
  1357. hook = shadowMode ? function () {
  1358. style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
  1359. } : function (context) {
  1360. style.call(this, createInjector(context));
  1361. };
  1362. }
  1363. if (hook) {
  1364. if (options.functional) {
  1365. // register for functional component in vue file
  1366. var originalRender = options.render;
  1367. options.render = function renderWithStyleInjection(h, context) {
  1368. hook.call(context);
  1369. return originalRender(h, context);
  1370. };
  1371. } else {
  1372. // inject component registration as beforeCreate hook
  1373. var existing = options.beforeCreate;
  1374. options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
  1375. }
  1376. }
  1377. return script;
  1378. }
  1379. var normalizeComponent_1 = normalizeComponent;
  1380. /* script */
  1381. const __vue_script__ = script;
  1382. /* template */
  1383. var __vue_render__ = function() {
  1384. var _vm = this;
  1385. var _h = _vm.$createElement;
  1386. var _c = _vm._self._c || _h;
  1387. return _c("table")
  1388. };
  1389. var __vue_staticRenderFns__ = [];
  1390. __vue_render__._withStripped = true;
  1391. /* style */
  1392. const __vue_inject_styles__ = undefined;
  1393. /* scoped */
  1394. const __vue_scope_id__ = undefined;
  1395. /* module identifier */
  1396. const __vue_module_identifier__ = undefined;
  1397. /* functional template */
  1398. const __vue_is_functional_template__ = false;
  1399. /* style inject */
  1400. /* style inject SSR */
  1401. var BootstrapTable = normalizeComponent_1(
  1402. { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
  1403. __vue_inject_styles__,
  1404. __vue_script__,
  1405. __vue_scope_id__,
  1406. __vue_is_functional_template__,
  1407. __vue_module_identifier__,
  1408. undefined,
  1409. undefined
  1410. );
  1411. export default BootstrapTable;