bootstrap-table-copy-rows.js 69 KB

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