bootstrap-table-copy-rows.js 62 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
  3. typeof define === 'function' && define.amd ? define(['jquery'], factory) :
  4. (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
  5. })(this, (function ($$4) { 'use strict';
  6. function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
  7. var $__default = /*#__PURE__*/_interopDefaultLegacy($$4);
  8. function _classCallCheck(instance, Constructor) {
  9. if (!(instance instanceof Constructor)) {
  10. throw new TypeError("Cannot call a class as a function");
  11. }
  12. }
  13. function _defineProperties(target, props) {
  14. for (var i = 0; i < props.length; i++) {
  15. var descriptor = props[i];
  16. descriptor.enumerable = descriptor.enumerable || false;
  17. descriptor.configurable = true;
  18. if ("value" in descriptor) descriptor.writable = true;
  19. Object.defineProperty(target, descriptor.key, descriptor);
  20. }
  21. }
  22. function _createClass(Constructor, protoProps, staticProps) {
  23. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  24. if (staticProps) _defineProperties(Constructor, staticProps);
  25. Object.defineProperty(Constructor, "prototype", {
  26. writable: false
  27. });
  28. return Constructor;
  29. }
  30. function _inherits(subClass, superClass) {
  31. if (typeof superClass !== "function" && superClass !== null) {
  32. throw new TypeError("Super expression must either be null or a function");
  33. }
  34. subClass.prototype = Object.create(superClass && superClass.prototype, {
  35. constructor: {
  36. value: subClass,
  37. writable: true,
  38. configurable: true
  39. }
  40. });
  41. Object.defineProperty(subClass, "prototype", {
  42. writable: false
  43. });
  44. if (superClass) _setPrototypeOf(subClass, superClass);
  45. }
  46. function _getPrototypeOf(o) {
  47. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
  48. return o.__proto__ || Object.getPrototypeOf(o);
  49. };
  50. return _getPrototypeOf(o);
  51. }
  52. function _setPrototypeOf(o, p) {
  53. _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
  54. o.__proto__ = p;
  55. return o;
  56. };
  57. return _setPrototypeOf(o, p);
  58. }
  59. function _isNativeReflectConstruct() {
  60. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  61. if (Reflect.construct.sham) return false;
  62. if (typeof Proxy === "function") return true;
  63. try {
  64. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  65. return true;
  66. } catch (e) {
  67. return false;
  68. }
  69. }
  70. function _assertThisInitialized(self) {
  71. if (self === void 0) {
  72. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  73. }
  74. return self;
  75. }
  76. function _possibleConstructorReturn(self, call) {
  77. if (call && (typeof call === "object" || typeof call === "function")) {
  78. return call;
  79. } else if (call !== void 0) {
  80. throw new TypeError("Derived constructors may only return object or undefined");
  81. }
  82. return _assertThisInitialized(self);
  83. }
  84. function _createSuper(Derived) {
  85. var hasNativeReflectConstruct = _isNativeReflectConstruct();
  86. return function _createSuperInternal() {
  87. var Super = _getPrototypeOf(Derived),
  88. result;
  89. if (hasNativeReflectConstruct) {
  90. var NewTarget = _getPrototypeOf(this).constructor;
  91. result = Reflect.construct(Super, arguments, NewTarget);
  92. } else {
  93. result = Super.apply(this, arguments);
  94. }
  95. return _possibleConstructorReturn(this, result);
  96. };
  97. }
  98. function _superPropBase(object, property) {
  99. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  100. object = _getPrototypeOf(object);
  101. if (object === null) break;
  102. }
  103. return object;
  104. }
  105. function _get() {
  106. if (typeof Reflect !== "undefined" && Reflect.get) {
  107. _get = Reflect.get;
  108. } else {
  109. _get = function _get(target, property, receiver) {
  110. var base = _superPropBase(target, property);
  111. if (!base) return;
  112. var desc = Object.getOwnPropertyDescriptor(base, property);
  113. if (desc.get) {
  114. return desc.get.call(arguments.length < 3 ? target : receiver);
  115. }
  116. return desc.value;
  117. };
  118. }
  119. return _get.apply(this, arguments);
  120. }
  121. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  122. var check = function (it) {
  123. return it && it.Math == Math && it;
  124. };
  125. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  126. var global$o =
  127. // eslint-disable-next-line es-x/no-global-this -- safe
  128. check(typeof globalThis == 'object' && globalThis) ||
  129. check(typeof window == 'object' && window) ||
  130. // eslint-disable-next-line no-restricted-globals -- safe
  131. check(typeof self == 'object' && self) ||
  132. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  133. // eslint-disable-next-line no-new-func -- fallback
  134. (function () { return this; })() || Function('return this')();
  135. var objectGetOwnPropertyDescriptor = {};
  136. var fails$d = function (exec) {
  137. try {
  138. return !!exec();
  139. } catch (error) {
  140. return true;
  141. }
  142. };
  143. var fails$c = fails$d;
  144. // Detect IE8's incomplete defineProperty implementation
  145. var descriptors = !fails$c(function () {
  146. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  147. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
  148. });
  149. var fails$b = fails$d;
  150. var functionBindNative = !fails$b(function () {
  151. // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
  152. var test = (function () { /* empty */ }).bind();
  153. // eslint-disable-next-line no-prototype-builtins -- safe
  154. return typeof test != 'function' || test.hasOwnProperty('prototype');
  155. });
  156. var NATIVE_BIND$2 = functionBindNative;
  157. var call$5 = Function.prototype.call;
  158. var functionCall = NATIVE_BIND$2 ? call$5.bind(call$5) : function () {
  159. return call$5.apply(call$5, arguments);
  160. };
  161. var objectPropertyIsEnumerable = {};
  162. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  163. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  164. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  165. // Nashorn ~ JDK8 bug
  166. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  167. // `Object.prototype.propertyIsEnumerable` method implementation
  168. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  169. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  170. var descriptor = getOwnPropertyDescriptor$1(this, V);
  171. return !!descriptor && descriptor.enumerable;
  172. } : $propertyIsEnumerable;
  173. var createPropertyDescriptor$3 = function (bitmap, value) {
  174. return {
  175. enumerable: !(bitmap & 1),
  176. configurable: !(bitmap & 2),
  177. writable: !(bitmap & 4),
  178. value: value
  179. };
  180. };
  181. var NATIVE_BIND$1 = functionBindNative;
  182. var FunctionPrototype$1 = Function.prototype;
  183. var bind$2 = FunctionPrototype$1.bind;
  184. var call$4 = FunctionPrototype$1.call;
  185. var uncurryThis$e = NATIVE_BIND$1 && bind$2.bind(call$4, call$4);
  186. var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
  187. return fn && uncurryThis$e(fn);
  188. } : function (fn) {
  189. return fn && function () {
  190. return call$4.apply(fn, arguments);
  191. };
  192. };
  193. var uncurryThis$d = functionUncurryThis;
  194. var toString$2 = uncurryThis$d({}.toString);
  195. var stringSlice = uncurryThis$d(''.slice);
  196. var classofRaw$1 = function (it) {
  197. return stringSlice(toString$2(it), 8, -1);
  198. };
  199. var global$n = global$o;
  200. var uncurryThis$c = functionUncurryThis;
  201. var fails$a = fails$d;
  202. var classof$4 = classofRaw$1;
  203. var Object$4 = global$n.Object;
  204. var split = uncurryThis$c(''.split);
  205. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  206. var indexedObject = fails$a(function () {
  207. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  208. // eslint-disable-next-line no-prototype-builtins -- safe
  209. return !Object$4('z').propertyIsEnumerable(0);
  210. }) ? function (it) {
  211. return classof$4(it) == 'String' ? split(it, '') : Object$4(it);
  212. } : Object$4;
  213. var global$m = global$o;
  214. var TypeError$8 = global$m.TypeError;
  215. // `RequireObjectCoercible` abstract operation
  216. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  217. var requireObjectCoercible$2 = function (it) {
  218. if (it == undefined) throw TypeError$8("Can't call method on " + it);
  219. return it;
  220. };
  221. // toObject with fallback for non-array-like ES3 strings
  222. var IndexedObject$3 = indexedObject;
  223. var requireObjectCoercible$1 = requireObjectCoercible$2;
  224. var toIndexedObject$5 = function (it) {
  225. return IndexedObject$3(requireObjectCoercible$1(it));
  226. };
  227. // `IsCallable` abstract operation
  228. // https://tc39.es/ecma262/#sec-iscallable
  229. var isCallable$c = function (argument) {
  230. return typeof argument == 'function';
  231. };
  232. var isCallable$b = isCallable$c;
  233. var isObject$7 = function (it) {
  234. return typeof it == 'object' ? it !== null : isCallable$b(it);
  235. };
  236. var global$l = global$o;
  237. var isCallable$a = isCallable$c;
  238. var aFunction = function (argument) {
  239. return isCallable$a(argument) ? argument : undefined;
  240. };
  241. var getBuiltIn$5 = function (namespace, method) {
  242. return arguments.length < 2 ? aFunction(global$l[namespace]) : global$l[namespace] && global$l[namespace][method];
  243. };
  244. var uncurryThis$b = functionUncurryThis;
  245. var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
  246. var getBuiltIn$4 = getBuiltIn$5;
  247. var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
  248. var global$k = global$o;
  249. var userAgent = engineUserAgent;
  250. var process = global$k.process;
  251. var Deno = global$k.Deno;
  252. var versions = process && process.versions || Deno && Deno.version;
  253. var v8 = versions && versions.v8;
  254. var match, version;
  255. if (v8) {
  256. match = v8.split('.');
  257. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  258. // but their correct versions are not interesting for us
  259. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  260. }
  261. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  262. // so check `userAgent` even if `.v8` exists, but 0
  263. if (!version && userAgent) {
  264. match = userAgent.match(/Edge\/(\d+)/);
  265. if (!match || match[1] >= 74) {
  266. match = userAgent.match(/Chrome\/(\d+)/);
  267. if (match) version = +match[1];
  268. }
  269. }
  270. var engineV8Version = version;
  271. /* eslint-disable es-x/no-symbol -- required for testing */
  272. var V8_VERSION$2 = engineV8Version;
  273. var fails$9 = fails$d;
  274. // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
  275. var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$9(function () {
  276. var symbol = Symbol();
  277. // Chrome 38 Symbol has incorrect toString conversion
  278. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  279. return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
  280. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  281. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  282. });
  283. /* eslint-disable es-x/no-symbol -- required for testing */
  284. var NATIVE_SYMBOL$1 = nativeSymbol;
  285. var useSymbolAsUid = NATIVE_SYMBOL$1
  286. && !Symbol.sham
  287. && typeof Symbol.iterator == 'symbol';
  288. var global$j = global$o;
  289. var getBuiltIn$3 = getBuiltIn$5;
  290. var isCallable$9 = isCallable$c;
  291. var isPrototypeOf = objectIsPrototypeOf;
  292. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  293. var Object$3 = global$j.Object;
  294. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  295. return typeof it == 'symbol';
  296. } : function (it) {
  297. var $Symbol = getBuiltIn$3('Symbol');
  298. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
  299. };
  300. var global$i = global$o;
  301. var String$2 = global$i.String;
  302. var tryToString$1 = function (argument) {
  303. try {
  304. return String$2(argument);
  305. } catch (error) {
  306. return 'Object';
  307. }
  308. };
  309. var global$h = global$o;
  310. var isCallable$8 = isCallable$c;
  311. var tryToString = tryToString$1;
  312. var TypeError$7 = global$h.TypeError;
  313. // `Assert: IsCallable(argument) is true`
  314. var aCallable$2 = function (argument) {
  315. if (isCallable$8(argument)) return argument;
  316. throw TypeError$7(tryToString(argument) + ' is not a function');
  317. };
  318. var aCallable$1 = aCallable$2;
  319. // `GetMethod` abstract operation
  320. // https://tc39.es/ecma262/#sec-getmethod
  321. var getMethod$1 = function (V, P) {
  322. var func = V[P];
  323. return func == null ? undefined : aCallable$1(func);
  324. };
  325. var global$g = global$o;
  326. var call$3 = functionCall;
  327. var isCallable$7 = isCallable$c;
  328. var isObject$6 = isObject$7;
  329. var TypeError$6 = global$g.TypeError;
  330. // `OrdinaryToPrimitive` abstract operation
  331. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  332. var ordinaryToPrimitive$1 = function (input, pref) {
  333. var fn, val;
  334. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
  335. if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$3(fn, input))) return val;
  336. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
  337. throw TypeError$6("Can't convert object to primitive value");
  338. };
  339. var shared$3 = {exports: {}};
  340. var global$f = global$o;
  341. // eslint-disable-next-line es-x/no-object-defineproperty -- safe
  342. var defineProperty$2 = Object.defineProperty;
  343. var setGlobal$3 = function (key, value) {
  344. try {
  345. defineProperty$2(global$f, key, { value: value, configurable: true, writable: true });
  346. } catch (error) {
  347. global$f[key] = value;
  348. } return value;
  349. };
  350. var global$e = global$o;
  351. var setGlobal$2 = setGlobal$3;
  352. var SHARED = '__core-js_shared__';
  353. var store$3 = global$e[SHARED] || setGlobal$2(SHARED, {});
  354. var sharedStore = store$3;
  355. var store$2 = sharedStore;
  356. (shared$3.exports = function (key, value) {
  357. return store$2[key] || (store$2[key] = value !== undefined ? value : {});
  358. })('versions', []).push({
  359. version: '3.22.5',
  360. mode: 'global',
  361. copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
  362. license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE',
  363. source: 'https://github.com/zloirock/core-js'
  364. });
  365. var global$d = global$o;
  366. var requireObjectCoercible = requireObjectCoercible$2;
  367. var Object$2 = global$d.Object;
  368. // `ToObject` abstract operation
  369. // https://tc39.es/ecma262/#sec-toobject
  370. var toObject$4 = function (argument) {
  371. return Object$2(requireObjectCoercible(argument));
  372. };
  373. var uncurryThis$a = functionUncurryThis;
  374. var toObject$3 = toObject$4;
  375. var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
  376. // `HasOwnProperty` abstract operation
  377. // https://tc39.es/ecma262/#sec-hasownproperty
  378. // eslint-disable-next-line es-x/no-object-hasown -- safe
  379. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  380. return hasOwnProperty(toObject$3(it), key);
  381. };
  382. var uncurryThis$9 = functionUncurryThis;
  383. var id = 0;
  384. var postfix = Math.random();
  385. var toString$1 = uncurryThis$9(1.0.toString);
  386. var uid$2 = function (key) {
  387. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$1(++id + postfix, 36);
  388. };
  389. var global$c = global$o;
  390. var shared$2 = shared$3.exports;
  391. var hasOwn$6 = hasOwnProperty_1;
  392. var uid$1 = uid$2;
  393. var NATIVE_SYMBOL = nativeSymbol;
  394. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  395. var WellKnownSymbolsStore = shared$2('wks');
  396. var Symbol$1 = global$c.Symbol;
  397. var symbolFor = Symbol$1 && Symbol$1['for'];
  398. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  399. var wellKnownSymbol$7 = function (name) {
  400. if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
  401. var description = 'Symbol.' + name;
  402. if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
  403. WellKnownSymbolsStore[name] = Symbol$1[name];
  404. } else if (USE_SYMBOL_AS_UID && symbolFor) {
  405. WellKnownSymbolsStore[name] = symbolFor(description);
  406. } else {
  407. WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
  408. }
  409. } return WellKnownSymbolsStore[name];
  410. };
  411. var global$b = global$o;
  412. var call$2 = functionCall;
  413. var isObject$5 = isObject$7;
  414. var isSymbol$1 = isSymbol$2;
  415. var getMethod = getMethod$1;
  416. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  417. var wellKnownSymbol$6 = wellKnownSymbol$7;
  418. var TypeError$5 = global$b.TypeError;
  419. var TO_PRIMITIVE = wellKnownSymbol$6('toPrimitive');
  420. // `ToPrimitive` abstract operation
  421. // https://tc39.es/ecma262/#sec-toprimitive
  422. var toPrimitive$1 = function (input, pref) {
  423. if (!isObject$5(input) || isSymbol$1(input)) return input;
  424. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  425. var result;
  426. if (exoticToPrim) {
  427. if (pref === undefined) pref = 'default';
  428. result = call$2(exoticToPrim, input, pref);
  429. if (!isObject$5(result) || isSymbol$1(result)) return result;
  430. throw TypeError$5("Can't convert object to primitive value");
  431. }
  432. if (pref === undefined) pref = 'number';
  433. return ordinaryToPrimitive(input, pref);
  434. };
  435. var toPrimitive = toPrimitive$1;
  436. var isSymbol = isSymbol$2;
  437. // `ToPropertyKey` abstract operation
  438. // https://tc39.es/ecma262/#sec-topropertykey
  439. var toPropertyKey$3 = function (argument) {
  440. var key = toPrimitive(argument, 'string');
  441. return isSymbol(key) ? key : key + '';
  442. };
  443. var global$a = global$o;
  444. var isObject$4 = isObject$7;
  445. var document$1 = global$a.document;
  446. // typeof document.createElement is 'object' in old IE
  447. var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
  448. var documentCreateElement$1 = function (it) {
  449. return EXISTS$1 ? document$1.createElement(it) : {};
  450. };
  451. var DESCRIPTORS$8 = descriptors;
  452. var fails$8 = fails$d;
  453. var createElement = documentCreateElement$1;
  454. // Thanks to IE8 for its funny defineProperty
  455. var ie8DomDefine = !DESCRIPTORS$8 && !fails$8(function () {
  456. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  457. return Object.defineProperty(createElement('div'), 'a', {
  458. get: function () { return 7; }
  459. }).a != 7;
  460. });
  461. var DESCRIPTORS$7 = descriptors;
  462. var call$1 = functionCall;
  463. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  464. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  465. var toIndexedObject$4 = toIndexedObject$5;
  466. var toPropertyKey$2 = toPropertyKey$3;
  467. var hasOwn$5 = hasOwnProperty_1;
  468. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  469. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  470. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  471. // `Object.getOwnPropertyDescriptor` method
  472. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  473. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  474. O = toIndexedObject$4(O);
  475. P = toPropertyKey$2(P);
  476. if (IE8_DOM_DEFINE$1) try {
  477. return $getOwnPropertyDescriptor$1(O, P);
  478. } catch (error) { /* empty */ }
  479. if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
  480. };
  481. var objectDefineProperty = {};
  482. var DESCRIPTORS$6 = descriptors;
  483. var fails$7 = fails$d;
  484. // V8 ~ Chrome 36-
  485. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  486. var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$7(function () {
  487. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  488. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  489. value: 42,
  490. writable: false
  491. }).prototype != 42;
  492. });
  493. var global$9 = global$o;
  494. var isObject$3 = isObject$7;
  495. var String$1 = global$9.String;
  496. var TypeError$4 = global$9.TypeError;
  497. // `Assert: Type(argument) is Object`
  498. var anObject$4 = function (argument) {
  499. if (isObject$3(argument)) return argument;
  500. throw TypeError$4(String$1(argument) + ' is not an object');
  501. };
  502. var global$8 = global$o;
  503. var DESCRIPTORS$5 = descriptors;
  504. var IE8_DOM_DEFINE = ie8DomDefine;
  505. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  506. var anObject$3 = anObject$4;
  507. var toPropertyKey$1 = toPropertyKey$3;
  508. var TypeError$3 = global$8.TypeError;
  509. // eslint-disable-next-line es-x/no-object-defineproperty -- safe
  510. var $defineProperty = Object.defineProperty;
  511. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  512. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  513. var ENUMERABLE = 'enumerable';
  514. var CONFIGURABLE$1 = 'configurable';
  515. var WRITABLE = 'writable';
  516. // `Object.defineProperty` method
  517. // https://tc39.es/ecma262/#sec-object.defineproperty
  518. objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  519. anObject$3(O);
  520. P = toPropertyKey$1(P);
  521. anObject$3(Attributes);
  522. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  523. var current = $getOwnPropertyDescriptor(O, P);
  524. if (current && current[WRITABLE]) {
  525. O[P] = Attributes.value;
  526. Attributes = {
  527. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  528. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  529. writable: false
  530. };
  531. }
  532. } return $defineProperty(O, P, Attributes);
  533. } : $defineProperty : function defineProperty(O, P, Attributes) {
  534. anObject$3(O);
  535. P = toPropertyKey$1(P);
  536. anObject$3(Attributes);
  537. if (IE8_DOM_DEFINE) try {
  538. return $defineProperty(O, P, Attributes);
  539. } catch (error) { /* empty */ }
  540. if ('get' in Attributes || 'set' in Attributes) throw TypeError$3('Accessors not supported');
  541. if ('value' in Attributes) O[P] = Attributes.value;
  542. return O;
  543. };
  544. var DESCRIPTORS$4 = descriptors;
  545. var definePropertyModule$4 = objectDefineProperty;
  546. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  547. var createNonEnumerableProperty$3 = DESCRIPTORS$4 ? function (object, key, value) {
  548. return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
  549. } : function (object, key, value) {
  550. object[key] = value;
  551. return object;
  552. };
  553. var makeBuiltIn$2 = {exports: {}};
  554. var DESCRIPTORS$3 = descriptors;
  555. var hasOwn$4 = hasOwnProperty_1;
  556. var FunctionPrototype = Function.prototype;
  557. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  558. var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
  559. var EXISTS = hasOwn$4(FunctionPrototype, 'name');
  560. // additional protection from minified / mangled / dropped function names
  561. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  562. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
  563. var functionName = {
  564. EXISTS: EXISTS,
  565. PROPER: PROPER,
  566. CONFIGURABLE: CONFIGURABLE
  567. };
  568. var uncurryThis$8 = functionUncurryThis;
  569. var isCallable$6 = isCallable$c;
  570. var store$1 = sharedStore;
  571. var functionToString = uncurryThis$8(Function.toString);
  572. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  573. if (!isCallable$6(store$1.inspectSource)) {
  574. store$1.inspectSource = function (it) {
  575. return functionToString(it);
  576. };
  577. }
  578. var inspectSource$3 = store$1.inspectSource;
  579. var global$7 = global$o;
  580. var isCallable$5 = isCallable$c;
  581. var inspectSource$2 = inspectSource$3;
  582. var WeakMap$1 = global$7.WeakMap;
  583. var nativeWeakMap = isCallable$5(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
  584. var shared$1 = shared$3.exports;
  585. var uid = uid$2;
  586. var keys = shared$1('keys');
  587. var sharedKey$2 = function (key) {
  588. return keys[key] || (keys[key] = uid(key));
  589. };
  590. var hiddenKeys$4 = {};
  591. var NATIVE_WEAK_MAP = nativeWeakMap;
  592. var global$6 = global$o;
  593. var uncurryThis$7 = functionUncurryThis;
  594. var isObject$2 = isObject$7;
  595. var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
  596. var hasOwn$3 = hasOwnProperty_1;
  597. var shared = sharedStore;
  598. var sharedKey$1 = sharedKey$2;
  599. var hiddenKeys$3 = hiddenKeys$4;
  600. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  601. var TypeError$2 = global$6.TypeError;
  602. var WeakMap = global$6.WeakMap;
  603. var set, get, has;
  604. var enforce = function (it) {
  605. return has(it) ? get(it) : set(it, {});
  606. };
  607. var getterFor = function (TYPE) {
  608. return function (it) {
  609. var state;
  610. if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
  611. throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
  612. } return state;
  613. };
  614. };
  615. if (NATIVE_WEAK_MAP || shared.state) {
  616. var store = shared.state || (shared.state = new WeakMap());
  617. var wmget = uncurryThis$7(store.get);
  618. var wmhas = uncurryThis$7(store.has);
  619. var wmset = uncurryThis$7(store.set);
  620. set = function (it, metadata) {
  621. if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
  622. metadata.facade = it;
  623. wmset(store, it, metadata);
  624. return metadata;
  625. };
  626. get = function (it) {
  627. return wmget(store, it) || {};
  628. };
  629. has = function (it) {
  630. return wmhas(store, it);
  631. };
  632. } else {
  633. var STATE = sharedKey$1('state');
  634. hiddenKeys$3[STATE] = true;
  635. set = function (it, metadata) {
  636. if (hasOwn$3(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
  637. metadata.facade = it;
  638. createNonEnumerableProperty$2(it, STATE, metadata);
  639. return metadata;
  640. };
  641. get = function (it) {
  642. return hasOwn$3(it, STATE) ? it[STATE] : {};
  643. };
  644. has = function (it) {
  645. return hasOwn$3(it, STATE);
  646. };
  647. }
  648. var internalState = {
  649. set: set,
  650. get: get,
  651. has: has,
  652. enforce: enforce,
  653. getterFor: getterFor
  654. };
  655. var fails$6 = fails$d;
  656. var isCallable$4 = isCallable$c;
  657. var hasOwn$2 = hasOwnProperty_1;
  658. var DESCRIPTORS$2 = descriptors;
  659. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  660. var inspectSource$1 = inspectSource$3;
  661. var InternalStateModule = internalState;
  662. var enforceInternalState = InternalStateModule.enforce;
  663. var getInternalState = InternalStateModule.get;
  664. // eslint-disable-next-line es-x/no-object-defineproperty -- safe
  665. var defineProperty$1 = Object.defineProperty;
  666. var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$6(function () {
  667. return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  668. });
  669. var TEMPLATE = String(String).split('String');
  670. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  671. if (String(name).slice(0, 7) === 'Symbol(') {
  672. name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
  673. }
  674. if (options && options.getter) name = 'get ' + name;
  675. if (options && options.setter) name = 'set ' + name;
  676. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  677. defineProperty$1(value, 'name', { value: name, configurable: true });
  678. }
  679. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  680. defineProperty$1(value, 'length', { value: options.arity });
  681. }
  682. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  683. if (DESCRIPTORS$2) try {
  684. defineProperty$1(value, 'prototype', { writable: false });
  685. } catch (error) { /* empty */ }
  686. } else value.prototype = undefined;
  687. var state = enforceInternalState(value);
  688. if (!hasOwn$2(state, 'source')) {
  689. state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
  690. } return value;
  691. };
  692. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  693. // eslint-disable-next-line no-extend-native -- required
  694. Function.prototype.toString = makeBuiltIn$1(function toString() {
  695. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  696. }, 'toString');
  697. var global$5 = global$o;
  698. var isCallable$3 = isCallable$c;
  699. var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
  700. var makeBuiltIn = makeBuiltIn$2.exports;
  701. var setGlobal$1 = setGlobal$3;
  702. var defineBuiltIn$2 = function (O, key, value, options) {
  703. var unsafe = options ? !!options.unsafe : false;
  704. var simple = options ? !!options.enumerable : false;
  705. var noTargetGet = options ? !!options.noTargetGet : false;
  706. var name = options && options.name !== undefined ? options.name : key;
  707. if (isCallable$3(value)) makeBuiltIn(value, name, options);
  708. if (O === global$5) {
  709. if (simple) O[key] = value;
  710. else setGlobal$1(key, value);
  711. return O;
  712. } else if (!unsafe) {
  713. delete O[key];
  714. } else if (!noTargetGet && O[key]) {
  715. simple = true;
  716. }
  717. if (simple) O[key] = value;
  718. else createNonEnumerableProperty$1(O, key, value);
  719. return O;
  720. };
  721. var objectGetOwnPropertyNames = {};
  722. var ceil = Math.ceil;
  723. var floor = Math.floor;
  724. // `ToIntegerOrInfinity` abstract operation
  725. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  726. var toIntegerOrInfinity$2 = function (argument) {
  727. var number = +argument;
  728. // eslint-disable-next-line no-self-compare -- safe
  729. return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
  730. };
  731. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  732. var max = Math.max;
  733. var min$1 = Math.min;
  734. // Helper for a popular repeating case of the spec:
  735. // Let integer be ? ToInteger(index).
  736. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  737. var toAbsoluteIndex$1 = function (index, length) {
  738. var integer = toIntegerOrInfinity$1(index);
  739. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  740. };
  741. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  742. var min = Math.min;
  743. // `ToLength` abstract operation
  744. // https://tc39.es/ecma262/#sec-tolength
  745. var toLength$1 = function (argument) {
  746. return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  747. };
  748. var toLength = toLength$1;
  749. // `LengthOfArrayLike` abstract operation
  750. // https://tc39.es/ecma262/#sec-lengthofarraylike
  751. var lengthOfArrayLike$3 = function (obj) {
  752. return toLength(obj.length);
  753. };
  754. var toIndexedObject$3 = toIndexedObject$5;
  755. var toAbsoluteIndex = toAbsoluteIndex$1;
  756. var lengthOfArrayLike$2 = lengthOfArrayLike$3;
  757. // `Array.prototype.{ indexOf, includes }` methods implementation
  758. var createMethod$1 = function (IS_INCLUDES) {
  759. return function ($this, el, fromIndex) {
  760. var O = toIndexedObject$3($this);
  761. var length = lengthOfArrayLike$2(O);
  762. var index = toAbsoluteIndex(fromIndex, length);
  763. var value;
  764. // Array#includes uses SameValueZero equality algorithm
  765. // eslint-disable-next-line no-self-compare -- NaN check
  766. if (IS_INCLUDES && el != el) while (length > index) {
  767. value = O[index++];
  768. // eslint-disable-next-line no-self-compare -- NaN check
  769. if (value != value) return true;
  770. // Array#indexOf ignores holes, Array#includes - not
  771. } else for (;length > index; index++) {
  772. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  773. } return !IS_INCLUDES && -1;
  774. };
  775. };
  776. var arrayIncludes = {
  777. // `Array.prototype.includes` method
  778. // https://tc39.es/ecma262/#sec-array.prototype.includes
  779. includes: createMethod$1(true),
  780. // `Array.prototype.indexOf` method
  781. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  782. indexOf: createMethod$1(false)
  783. };
  784. var uncurryThis$6 = functionUncurryThis;
  785. var hasOwn$1 = hasOwnProperty_1;
  786. var toIndexedObject$2 = toIndexedObject$5;
  787. var indexOf = arrayIncludes.indexOf;
  788. var hiddenKeys$2 = hiddenKeys$4;
  789. var push$1 = uncurryThis$6([].push);
  790. var objectKeysInternal = function (object, names) {
  791. var O = toIndexedObject$2(object);
  792. var i = 0;
  793. var result = [];
  794. var key;
  795. for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
  796. // Don't enum bug & hidden keys
  797. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  798. ~indexOf(result, key) || push$1(result, key);
  799. }
  800. return result;
  801. };
  802. // IE8- don't enum bug keys
  803. var enumBugKeys$3 = [
  804. 'constructor',
  805. 'hasOwnProperty',
  806. 'isPrototypeOf',
  807. 'propertyIsEnumerable',
  808. 'toLocaleString',
  809. 'toString',
  810. 'valueOf'
  811. ];
  812. var internalObjectKeys$1 = objectKeysInternal;
  813. var enumBugKeys$2 = enumBugKeys$3;
  814. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  815. // `Object.getOwnPropertyNames` method
  816. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  817. // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
  818. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  819. return internalObjectKeys$1(O, hiddenKeys$1);
  820. };
  821. var objectGetOwnPropertySymbols = {};
  822. // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
  823. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  824. var getBuiltIn$2 = getBuiltIn$5;
  825. var uncurryThis$5 = functionUncurryThis;
  826. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  827. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  828. var anObject$2 = anObject$4;
  829. var concat$1 = uncurryThis$5([].concat);
  830. // all object keys, includes non-enumerable and symbols
  831. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  832. var keys = getOwnPropertyNamesModule.f(anObject$2(it));
  833. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  834. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  835. };
  836. var hasOwn = hasOwnProperty_1;
  837. var ownKeys = ownKeys$1;
  838. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  839. var definePropertyModule$3 = objectDefineProperty;
  840. var copyConstructorProperties$1 = function (target, source, exceptions) {
  841. var keys = ownKeys(source);
  842. var defineProperty = definePropertyModule$3.f;
  843. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  844. for (var i = 0; i < keys.length; i++) {
  845. var key = keys[i];
  846. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  847. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  848. }
  849. }
  850. };
  851. var fails$5 = fails$d;
  852. var isCallable$2 = isCallable$c;
  853. var replacement = /#|\.prototype\./;
  854. var isForced$1 = function (feature, detection) {
  855. var value = data[normalize(feature)];
  856. return value == POLYFILL ? true
  857. : value == NATIVE ? false
  858. : isCallable$2(detection) ? fails$5(detection)
  859. : !!detection;
  860. };
  861. var normalize = isForced$1.normalize = function (string) {
  862. return String(string).replace(replacement, '.').toLowerCase();
  863. };
  864. var data = isForced$1.data = {};
  865. var NATIVE = isForced$1.NATIVE = 'N';
  866. var POLYFILL = isForced$1.POLYFILL = 'P';
  867. var isForced_1 = isForced$1;
  868. var global$4 = global$o;
  869. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  870. var createNonEnumerableProperty = createNonEnumerableProperty$3;
  871. var defineBuiltIn$1 = defineBuiltIn$2;
  872. var setGlobal = setGlobal$3;
  873. var copyConstructorProperties = copyConstructorProperties$1;
  874. var isForced = isForced_1;
  875. /*
  876. options.target - name of the target object
  877. options.global - target is the global object
  878. options.stat - export as static methods of target
  879. options.proto - export as prototype methods of target
  880. options.real - real prototype method for the `pure` version
  881. options.forced - export even if the native feature is available
  882. options.bind - bind methods to the target, required for the `pure` version
  883. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  884. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  885. options.sham - add a flag to not completely full polyfills
  886. options.enumerable - export as enumerable property
  887. options.noTargetGet - prevent calling a getter on target
  888. options.name - the .name of the function if it does not match the key
  889. */
  890. var _export = function (options, source) {
  891. var TARGET = options.target;
  892. var GLOBAL = options.global;
  893. var STATIC = options.stat;
  894. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  895. if (GLOBAL) {
  896. target = global$4;
  897. } else if (STATIC) {
  898. target = global$4[TARGET] || setGlobal(TARGET, {});
  899. } else {
  900. target = (global$4[TARGET] || {}).prototype;
  901. }
  902. if (target) for (key in source) {
  903. sourceProperty = source[key];
  904. if (options.noTargetGet) {
  905. descriptor = getOwnPropertyDescriptor(target, key);
  906. targetProperty = descriptor && descriptor.value;
  907. } else targetProperty = target[key];
  908. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  909. // contained in target
  910. if (!FORCED && targetProperty !== undefined) {
  911. if (typeof sourceProperty == typeof targetProperty) continue;
  912. copyConstructorProperties(sourceProperty, targetProperty);
  913. }
  914. // add a flag to not completely full polyfills
  915. if (options.sham || (targetProperty && targetProperty.sham)) {
  916. createNonEnumerableProperty(sourceProperty, 'sham', true);
  917. }
  918. defineBuiltIn$1(target, key, sourceProperty, options);
  919. }
  920. };
  921. var internalObjectKeys = objectKeysInternal;
  922. var enumBugKeys$1 = enumBugKeys$3;
  923. // `Object.keys` method
  924. // https://tc39.es/ecma262/#sec-object.keys
  925. // eslint-disable-next-line es-x/no-object-keys -- safe
  926. var objectKeys$2 = Object.keys || function keys(O) {
  927. return internalObjectKeys(O, enumBugKeys$1);
  928. };
  929. var DESCRIPTORS$1 = descriptors;
  930. var uncurryThis$4 = functionUncurryThis;
  931. var call = functionCall;
  932. var fails$4 = fails$d;
  933. var objectKeys$1 = objectKeys$2;
  934. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  935. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  936. var toObject$2 = toObject$4;
  937. var IndexedObject$2 = indexedObject;
  938. // eslint-disable-next-line es-x/no-object-assign -- safe
  939. var $assign = Object.assign;
  940. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  941. var defineProperty = Object.defineProperty;
  942. var concat = uncurryThis$4([].concat);
  943. // `Object.assign` method
  944. // https://tc39.es/ecma262/#sec-object.assign
  945. var objectAssign = !$assign || fails$4(function () {
  946. // should have correct order of operations (Edge bug)
  947. if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  948. enumerable: true,
  949. get: function () {
  950. defineProperty(this, 'b', {
  951. value: 3,
  952. enumerable: false
  953. });
  954. }
  955. }), { b: 2 })).b !== 1) return true;
  956. // should work with symbols and should have deterministic property order (V8 bug)
  957. var A = {};
  958. var B = {};
  959. // eslint-disable-next-line es-x/no-symbol -- safe
  960. var symbol = Symbol();
  961. var alphabet = 'abcdefghijklmnopqrst';
  962. A[symbol] = 7;
  963. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  964. return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
  965. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  966. var T = toObject$2(target);
  967. var argumentsLength = arguments.length;
  968. var index = 1;
  969. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  970. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  971. while (argumentsLength > index) {
  972. var S = IndexedObject$2(arguments[index++]);
  973. var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
  974. var length = keys.length;
  975. var j = 0;
  976. var key;
  977. while (length > j) {
  978. key = keys[j++];
  979. if (!DESCRIPTORS$1 || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  980. }
  981. } return T;
  982. } : $assign;
  983. var $$3 = _export;
  984. var assign = objectAssign;
  985. // `Object.assign` method
  986. // https://tc39.es/ecma262/#sec-object.assign
  987. // eslint-disable-next-line es-x/no-object-assign -- required for testing
  988. $$3({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  989. assign: assign
  990. });
  991. var classof$3 = classofRaw$1;
  992. // `IsArray` abstract operation
  993. // https://tc39.es/ecma262/#sec-isarray
  994. // eslint-disable-next-line es-x/no-array-isarray -- safe
  995. var isArray$2 = Array.isArray || function isArray(argument) {
  996. return classof$3(argument) == 'Array';
  997. };
  998. var toPropertyKey = toPropertyKey$3;
  999. var definePropertyModule$2 = objectDefineProperty;
  1000. var createPropertyDescriptor = createPropertyDescriptor$3;
  1001. var createProperty$1 = function (object, key, value) {
  1002. var propertyKey = toPropertyKey(key);
  1003. if (propertyKey in object) definePropertyModule$2.f(object, propertyKey, createPropertyDescriptor(0, value));
  1004. else object[propertyKey] = value;
  1005. };
  1006. var wellKnownSymbol$5 = wellKnownSymbol$7;
  1007. var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
  1008. var test = {};
  1009. test[TO_STRING_TAG$1] = 'z';
  1010. var toStringTagSupport = String(test) === '[object z]';
  1011. var global$3 = global$o;
  1012. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  1013. var isCallable$1 = isCallable$c;
  1014. var classofRaw = classofRaw$1;
  1015. var wellKnownSymbol$4 = wellKnownSymbol$7;
  1016. var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
  1017. var Object$1 = global$3.Object;
  1018. // ES3 wrong here
  1019. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  1020. // fallback for IE11 Script Access Denied error
  1021. var tryGet = function (it, key) {
  1022. try {
  1023. return it[key];
  1024. } catch (error) { /* empty */ }
  1025. };
  1026. // getting tag from ES6+ `Object.prototype.toString`
  1027. var classof$2 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
  1028. var O, tag, result;
  1029. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1030. // @@toStringTag case
  1031. : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
  1032. // builtinTag case
  1033. : CORRECT_ARGUMENTS ? classofRaw(O)
  1034. // ES3 arguments fallback
  1035. : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  1036. };
  1037. var uncurryThis$3 = functionUncurryThis;
  1038. var fails$3 = fails$d;
  1039. var isCallable = isCallable$c;
  1040. var classof$1 = classof$2;
  1041. var getBuiltIn$1 = getBuiltIn$5;
  1042. var inspectSource = inspectSource$3;
  1043. var noop = function () { /* empty */ };
  1044. var empty = [];
  1045. var construct = getBuiltIn$1('Reflect', 'construct');
  1046. var constructorRegExp = /^\s*(?:class|function)\b/;
  1047. var exec = uncurryThis$3(constructorRegExp.exec);
  1048. var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
  1049. var isConstructorModern = function isConstructor(argument) {
  1050. if (!isCallable(argument)) return false;
  1051. try {
  1052. construct(noop, empty, argument);
  1053. return true;
  1054. } catch (error) {
  1055. return false;
  1056. }
  1057. };
  1058. var isConstructorLegacy = function isConstructor(argument) {
  1059. if (!isCallable(argument)) return false;
  1060. switch (classof$1(argument)) {
  1061. case 'AsyncFunction':
  1062. case 'GeneratorFunction':
  1063. case 'AsyncGeneratorFunction': return false;
  1064. }
  1065. try {
  1066. // we can't check .prototype since constructors produced by .bind haven't it
  1067. // `Function#toString` throws on some built-it function in some legacy engines
  1068. // (for example, `DOMQuad` and similar in FF41-)
  1069. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1070. } catch (error) {
  1071. return true;
  1072. }
  1073. };
  1074. isConstructorLegacy.sham = true;
  1075. // `IsConstructor` abstract operation
  1076. // https://tc39.es/ecma262/#sec-isconstructor
  1077. var isConstructor$1 = !construct || fails$3(function () {
  1078. var called;
  1079. return isConstructorModern(isConstructorModern.call)
  1080. || !isConstructorModern(Object)
  1081. || !isConstructorModern(function () { called = true; })
  1082. || called;
  1083. }) ? isConstructorLegacy : isConstructorModern;
  1084. var global$2 = global$o;
  1085. var isArray$1 = isArray$2;
  1086. var isConstructor = isConstructor$1;
  1087. var isObject$1 = isObject$7;
  1088. var wellKnownSymbol$3 = wellKnownSymbol$7;
  1089. var SPECIES$1 = wellKnownSymbol$3('species');
  1090. var Array$1 = global$2.Array;
  1091. // a part of `ArraySpeciesCreate` abstract operation
  1092. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1093. var arraySpeciesConstructor$1 = function (originalArray) {
  1094. var C;
  1095. if (isArray$1(originalArray)) {
  1096. C = originalArray.constructor;
  1097. // cross-realm fallback
  1098. if (isConstructor(C) && (C === Array$1 || isArray$1(C.prototype))) C = undefined;
  1099. else if (isObject$1(C)) {
  1100. C = C[SPECIES$1];
  1101. if (C === null) C = undefined;
  1102. }
  1103. } return C === undefined ? Array$1 : C;
  1104. };
  1105. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1106. // `ArraySpeciesCreate` abstract operation
  1107. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1108. var arraySpeciesCreate$2 = function (originalArray, length) {
  1109. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1110. };
  1111. var fails$2 = fails$d;
  1112. var wellKnownSymbol$2 = wellKnownSymbol$7;
  1113. var V8_VERSION$1 = engineV8Version;
  1114. var SPECIES = wellKnownSymbol$2('species');
  1115. var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
  1116. // We can't use this feature detection in V8 since it causes
  1117. // deoptimization and serious performance degradation
  1118. // https://github.com/zloirock/core-js/issues/677
  1119. return V8_VERSION$1 >= 51 || !fails$2(function () {
  1120. var array = [];
  1121. var constructor = array.constructor = {};
  1122. constructor[SPECIES] = function () {
  1123. return { foo: 1 };
  1124. };
  1125. return array[METHOD_NAME](Boolean).foo !== 1;
  1126. });
  1127. };
  1128. var $$2 = _export;
  1129. var global$1 = global$o;
  1130. var fails$1 = fails$d;
  1131. var isArray = isArray$2;
  1132. var isObject = isObject$7;
  1133. var toObject$1 = toObject$4;
  1134. var lengthOfArrayLike$1 = lengthOfArrayLike$3;
  1135. var createProperty = createProperty$1;
  1136. var arraySpeciesCreate$1 = arraySpeciesCreate$2;
  1137. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
  1138. var wellKnownSymbol$1 = wellKnownSymbol$7;
  1139. var V8_VERSION = engineV8Version;
  1140. var IS_CONCAT_SPREADABLE = wellKnownSymbol$1('isConcatSpreadable');
  1141. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
  1142. var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
  1143. var TypeError$1 = global$1.TypeError;
  1144. // We can't use this feature detection in V8 since it causes
  1145. // deoptimization and serious performance degradation
  1146. // https://github.com/zloirock/core-js/issues/679
  1147. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$1(function () {
  1148. var array = [];
  1149. array[IS_CONCAT_SPREADABLE] = false;
  1150. return array.concat()[0] !== array;
  1151. });
  1152. var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
  1153. var isConcatSpreadable = function (O) {
  1154. if (!isObject(O)) return false;
  1155. var spreadable = O[IS_CONCAT_SPREADABLE];
  1156. return spreadable !== undefined ? !!spreadable : isArray(O);
  1157. };
  1158. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
  1159. // `Array.prototype.concat` method
  1160. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1161. // with adding support of @@isConcatSpreadable and @@species
  1162. $$2({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1163. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1164. concat: function concat(arg) {
  1165. var O = toObject$1(this);
  1166. var A = arraySpeciesCreate$1(O, 0);
  1167. var n = 0;
  1168. var i, k, length, len, E;
  1169. for (i = -1, length = arguments.length; i < length; i++) {
  1170. E = i === -1 ? O : arguments[i];
  1171. if (isConcatSpreadable(E)) {
  1172. len = lengthOfArrayLike$1(E);
  1173. if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  1174. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1175. } else {
  1176. if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
  1177. createProperty(A, n++, E);
  1178. }
  1179. }
  1180. A.length = n;
  1181. return A;
  1182. }
  1183. });
  1184. var uncurryThis$2 = functionUncurryThis;
  1185. var aCallable = aCallable$2;
  1186. var NATIVE_BIND = functionBindNative;
  1187. var bind$1 = uncurryThis$2(uncurryThis$2.bind);
  1188. // optional / simple context binding
  1189. var functionBindContext = function (fn, that) {
  1190. aCallable(fn);
  1191. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  1192. return fn.apply(that, arguments);
  1193. };
  1194. };
  1195. var bind = functionBindContext;
  1196. var uncurryThis$1 = functionUncurryThis;
  1197. var IndexedObject$1 = indexedObject;
  1198. var toObject = toObject$4;
  1199. var lengthOfArrayLike = lengthOfArrayLike$3;
  1200. var arraySpeciesCreate = arraySpeciesCreate$2;
  1201. var push = uncurryThis$1([].push);
  1202. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1203. var createMethod = function (TYPE) {
  1204. var IS_MAP = TYPE == 1;
  1205. var IS_FILTER = TYPE == 2;
  1206. var IS_SOME = TYPE == 3;
  1207. var IS_EVERY = TYPE == 4;
  1208. var IS_FIND_INDEX = TYPE == 6;
  1209. var IS_FILTER_REJECT = TYPE == 7;
  1210. var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  1211. return function ($this, callbackfn, that, specificCreate) {
  1212. var O = toObject($this);
  1213. var self = IndexedObject$1(O);
  1214. var boundFunction = bind(callbackfn, that);
  1215. var length = lengthOfArrayLike(self);
  1216. var index = 0;
  1217. var create = specificCreate || arraySpeciesCreate;
  1218. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1219. var value, result;
  1220. for (;length > index; index++) if (NO_HOLES || index in self) {
  1221. value = self[index];
  1222. result = boundFunction(value, index, O);
  1223. if (TYPE) {
  1224. if (IS_MAP) target[index] = result; // map
  1225. else if (result) switch (TYPE) {
  1226. case 3: return true; // some
  1227. case 5: return value; // find
  1228. case 6: return index; // findIndex
  1229. case 2: push(target, value); // filter
  1230. } else switch (TYPE) {
  1231. case 4: return false; // every
  1232. case 7: push(target, value); // filterReject
  1233. }
  1234. }
  1235. }
  1236. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1237. };
  1238. };
  1239. var arrayIteration = {
  1240. // `Array.prototype.forEach` method
  1241. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1242. forEach: createMethod(0),
  1243. // `Array.prototype.map` method
  1244. // https://tc39.es/ecma262/#sec-array.prototype.map
  1245. map: createMethod(1),
  1246. // `Array.prototype.filter` method
  1247. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1248. filter: createMethod(2),
  1249. // `Array.prototype.some` method
  1250. // https://tc39.es/ecma262/#sec-array.prototype.some
  1251. some: createMethod(3),
  1252. // `Array.prototype.every` method
  1253. // https://tc39.es/ecma262/#sec-array.prototype.every
  1254. every: createMethod(4),
  1255. // `Array.prototype.find` method
  1256. // https://tc39.es/ecma262/#sec-array.prototype.find
  1257. find: createMethod(5),
  1258. // `Array.prototype.findIndex` method
  1259. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1260. findIndex: createMethod(6),
  1261. // `Array.prototype.filterReject` method
  1262. // https://github.com/tc39/proposal-array-filtering
  1263. filterReject: createMethod(7)
  1264. };
  1265. var objectDefineProperties = {};
  1266. var DESCRIPTORS = descriptors;
  1267. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1268. var definePropertyModule$1 = objectDefineProperty;
  1269. var anObject$1 = anObject$4;
  1270. var toIndexedObject$1 = toIndexedObject$5;
  1271. var objectKeys = objectKeys$2;
  1272. // `Object.defineProperties` method
  1273. // https://tc39.es/ecma262/#sec-object.defineproperties
  1274. // eslint-disable-next-line es-x/no-object-defineproperties -- safe
  1275. objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1276. anObject$1(O);
  1277. var props = toIndexedObject$1(Properties);
  1278. var keys = objectKeys(Properties);
  1279. var length = keys.length;
  1280. var index = 0;
  1281. var key;
  1282. while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
  1283. return O;
  1284. };
  1285. var getBuiltIn = getBuiltIn$5;
  1286. var html$1 = getBuiltIn('document', 'documentElement');
  1287. /* global ActiveXObject -- old IE, WSH */
  1288. var anObject = anObject$4;
  1289. var definePropertiesModule = objectDefineProperties;
  1290. var enumBugKeys = enumBugKeys$3;
  1291. var hiddenKeys = hiddenKeys$4;
  1292. var html = html$1;
  1293. var documentCreateElement = documentCreateElement$1;
  1294. var sharedKey = sharedKey$2;
  1295. var GT = '>';
  1296. var LT = '<';
  1297. var PROTOTYPE = 'prototype';
  1298. var SCRIPT = 'script';
  1299. var IE_PROTO = sharedKey('IE_PROTO');
  1300. var EmptyConstructor = function () { /* empty */ };
  1301. var scriptTag = function (content) {
  1302. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1303. };
  1304. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1305. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1306. activeXDocument.write(scriptTag(''));
  1307. activeXDocument.close();
  1308. var temp = activeXDocument.parentWindow.Object;
  1309. activeXDocument = null; // avoid memory leak
  1310. return temp;
  1311. };
  1312. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1313. var NullProtoObjectViaIFrame = function () {
  1314. // Thrash, waste and sodomy: IE GC bug
  1315. var iframe = documentCreateElement('iframe');
  1316. var JS = 'java' + SCRIPT + ':';
  1317. var iframeDocument;
  1318. iframe.style.display = 'none';
  1319. html.appendChild(iframe);
  1320. // https://github.com/zloirock/core-js/issues/475
  1321. iframe.src = String(JS);
  1322. iframeDocument = iframe.contentWindow.document;
  1323. iframeDocument.open();
  1324. iframeDocument.write(scriptTag('document.F=Object'));
  1325. iframeDocument.close();
  1326. return iframeDocument.F;
  1327. };
  1328. // Check for document.domain and active x support
  1329. // No need to use active x approach when document.domain is not set
  1330. // see https://github.com/es-shims/es5-shim/issues/150
  1331. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1332. // avoid IE GC bug
  1333. var activeXDocument;
  1334. var NullProtoObject = function () {
  1335. try {
  1336. activeXDocument = new ActiveXObject('htmlfile');
  1337. } catch (error) { /* ignore */ }
  1338. NullProtoObject = typeof document != 'undefined'
  1339. ? document.domain && activeXDocument
  1340. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1341. : NullProtoObjectViaIFrame()
  1342. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1343. var length = enumBugKeys.length;
  1344. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1345. return NullProtoObject();
  1346. };
  1347. hiddenKeys[IE_PROTO] = true;
  1348. // `Object.create` method
  1349. // https://tc39.es/ecma262/#sec-object.create
  1350. // eslint-disable-next-line es-x/no-object-create -- safe
  1351. var objectCreate = Object.create || function create(O, Properties) {
  1352. var result;
  1353. if (O !== null) {
  1354. EmptyConstructor[PROTOTYPE] = anObject(O);
  1355. result = new EmptyConstructor();
  1356. EmptyConstructor[PROTOTYPE] = null;
  1357. // add "__proto__" for Object.getPrototypeOf polyfill
  1358. result[IE_PROTO] = O;
  1359. } else result = NullProtoObject();
  1360. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1361. };
  1362. var wellKnownSymbol = wellKnownSymbol$7;
  1363. var create = objectCreate;
  1364. var definePropertyModule = objectDefineProperty;
  1365. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1366. var ArrayPrototype = Array.prototype;
  1367. // Array.prototype[@@unscopables]
  1368. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1369. if (ArrayPrototype[UNSCOPABLES] == undefined) {
  1370. definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
  1371. configurable: true,
  1372. value: create(null)
  1373. });
  1374. }
  1375. // add a key to Array.prototype[@@unscopables]
  1376. var addToUnscopables$1 = function (key) {
  1377. ArrayPrototype[UNSCOPABLES][key] = true;
  1378. };
  1379. var $$1 = _export;
  1380. var $find = arrayIteration.find;
  1381. var addToUnscopables = addToUnscopables$1;
  1382. var FIND = 'find';
  1383. var SKIPS_HOLES = true;
  1384. // Shouldn't skip holes
  1385. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1386. // `Array.prototype.find` method
  1387. // https://tc39.es/ecma262/#sec-array.prototype.find
  1388. $$1({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1389. find: function find(callbackfn /* , that = undefined */) {
  1390. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1391. }
  1392. });
  1393. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1394. addToUnscopables(FIND);
  1395. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1396. var classof = classof$2;
  1397. // `Object.prototype.toString` method implementation
  1398. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1399. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1400. return '[object ' + classof(this) + ']';
  1401. };
  1402. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1403. var defineBuiltIn = defineBuiltIn$2;
  1404. var toString = objectToString;
  1405. // `Object.prototype.toString` method
  1406. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1407. if (!TO_STRING_TAG_SUPPORT) {
  1408. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  1409. }
  1410. var fails = fails$d;
  1411. var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
  1412. var method = [][METHOD_NAME];
  1413. return !!method && fails(function () {
  1414. // eslint-disable-next-line no-useless-call -- required for testing
  1415. method.call(null, argument || function () { return 1; }, 1);
  1416. });
  1417. };
  1418. var $ = _export;
  1419. var uncurryThis = functionUncurryThis;
  1420. var IndexedObject = indexedObject;
  1421. var toIndexedObject = toIndexedObject$5;
  1422. var arrayMethodIsStrict = arrayMethodIsStrict$1;
  1423. var un$Join = uncurryThis([].join);
  1424. var ES3_STRINGS = IndexedObject != Object;
  1425. var STRICT_METHOD = arrayMethodIsStrict('join', ',');
  1426. // `Array.prototype.join` method
  1427. // https://tc39.es/ecma262/#sec-array.prototype.join
  1428. $({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
  1429. join: function join(separator) {
  1430. return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
  1431. }
  1432. });
  1433. /**
  1434. * @author Homer Glascock <HopGlascock@gmail.com>
  1435. * @update zhixin wen <wenzhixin2010@gmail.com>
  1436. */
  1437. var Utils = $__default["default"].fn.bootstrapTable.utils;
  1438. $__default["default"].extend($__default["default"].fn.bootstrapTable.locales, {
  1439. formatCopyRows: function formatCopyRows() {
  1440. return 'Copy Rows';
  1441. }
  1442. });
  1443. $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, $__default["default"].fn.bootstrapTable.locales);
  1444. $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults.icons, {
  1445. copy: {
  1446. bootstrap3: 'glyphicon-copy icon-pencil',
  1447. bootstrap5: 'bi-clipboard',
  1448. materialize: 'content_copy',
  1449. 'bootstrap-table': 'icon-copy'
  1450. }[$__default["default"].fn.bootstrapTable.theme] || 'fa-copy'
  1451. });
  1452. var copyText = function copyText(text) {
  1453. var textField = document.createElement('textarea');
  1454. $__default["default"](textField).html(text);
  1455. document.body.appendChild(textField);
  1456. textField.select();
  1457. try {
  1458. document.execCommand('copy');
  1459. } catch (e) {
  1460. console.warn('Oops, unable to copy');
  1461. }
  1462. $__default["default"](textField).remove();
  1463. };
  1464. $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
  1465. showCopyRows: false,
  1466. copyWithHidden: false,
  1467. copyDelimiter: ', ',
  1468. copyNewline: '\n'
  1469. });
  1470. $__default["default"].extend($__default["default"].fn.bootstrapTable.columnDefaults, {
  1471. ignoreCopy: false,
  1472. rawCopy: false
  1473. });
  1474. $__default["default"].fn.bootstrapTable.methods.push('copyColumnsToClipboard');
  1475. $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1476. _inherits(_class, _$$BootstrapTable);
  1477. var _super = _createSuper(_class);
  1478. function _class() {
  1479. _classCallCheck(this, _class);
  1480. return _super.apply(this, arguments);
  1481. }
  1482. _createClass(_class, [{
  1483. key: "initToolbar",
  1484. value: function initToolbar() {
  1485. var _get2;
  1486. if (this.options.showCopyRows && this.header.stateField) {
  1487. this.buttons = Object.assign(this.buttons, {
  1488. copyRows: {
  1489. text: this.options.formatCopyRows(),
  1490. icon: this.options.icons.copy,
  1491. event: this.copyColumnsToClipboard,
  1492. attributes: {
  1493. 'aria-label': this.options.formatCopyRows(),
  1494. title: this.options.formatCopyRows()
  1495. }
  1496. }
  1497. });
  1498. }
  1499. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1500. args[_key] = arguments[_key];
  1501. }
  1502. (_get2 = _get(_getPrototypeOf(_class.prototype), "initToolbar", this)).call.apply(_get2, [this].concat(args));
  1503. this.$copyButton = this.$toolbar.find('>.columns [name="copyRows"]');
  1504. if (this.options.showCopyRows && this.header.stateField) {
  1505. this.updateCopyButton();
  1506. }
  1507. }
  1508. }, {
  1509. key: "copyColumnsToClipboard",
  1510. value: function copyColumnsToClipboard() {
  1511. var _this = this;
  1512. var rows = [];
  1513. $__default["default"].each(this.getSelections(), function (index, row) {
  1514. var cols = [];
  1515. $__default["default"].each(_this.options.columns[0], function (indy, column) {
  1516. if (column.field !== _this.header.stateField && (!_this.options.copyWithHidden || _this.options.copyWithHidden && column.visible) && !column.ignoreCopy) {
  1517. if (row[column.field] !== null) {
  1518. var columnValue = column.rawCopy ? row[column.field] : Utils.calculateObjectValue(column, _this.header.formatters[indy], [row[column.field], row, index], row[column.field]);
  1519. cols.push(columnValue);
  1520. }
  1521. }
  1522. });
  1523. rows.push(cols.join(_this.options.copyDelimiter));
  1524. });
  1525. copyText(rows.join(this.options.copyNewline));
  1526. }
  1527. }, {
  1528. key: "updateSelected",
  1529. value: function updateSelected() {
  1530. _get(_getPrototypeOf(_class.prototype), "updateSelected", this).call(this);
  1531. this.updateCopyButton();
  1532. }
  1533. }, {
  1534. key: "updateCopyButton",
  1535. value: function updateCopyButton() {
  1536. if (this.options.showCopyRows && this.header.stateField && this.$copyButton) {
  1537. this.$copyButton.prop('disabled', !this.getSelections().length);
  1538. }
  1539. }
  1540. }]);
  1541. return _class;
  1542. }($__default["default"].BootstrapTable);
  1543. }));