bootstrap-table-copy-rows.js 85 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600
  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 ($) { 'use strict';
  6. function _arrayLikeToArray(r, a) {
  7. (null == a || a > r.length) && (a = r.length);
  8. for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
  9. return n;
  10. }
  11. function _assertThisInitialized(e) {
  12. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  13. return e;
  14. }
  15. function _callSuper(t, o, e) {
  16. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  17. }
  18. function _classCallCheck(a, n) {
  19. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  20. }
  21. function _defineProperties(e, r) {
  22. for (var t = 0; t < r.length; t++) {
  23. var o = r[t];
  24. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  25. }
  26. }
  27. function _createClass(e, r, t) {
  28. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  29. writable: !1
  30. }), e;
  31. }
  32. function _createForOfIteratorHelper(r, e) {
  33. var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  34. if (!t) {
  35. if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
  36. t && (r = t);
  37. var n = 0,
  38. F = function () {};
  39. return {
  40. s: F,
  41. n: function () {
  42. return n >= r.length ? {
  43. done: !0
  44. } : {
  45. done: !1,
  46. value: r[n++]
  47. };
  48. },
  49. e: function (r) {
  50. throw r;
  51. },
  52. f: F
  53. };
  54. }
  55. throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  56. }
  57. var o,
  58. a = !0,
  59. u = !1;
  60. return {
  61. s: function () {
  62. t = t.call(r);
  63. },
  64. n: function () {
  65. var r = t.next();
  66. return a = r.done, r;
  67. },
  68. e: function (r) {
  69. u = !0, o = r;
  70. },
  71. f: function () {
  72. try {
  73. a || null == t.return || t.return();
  74. } finally {
  75. if (u) throw o;
  76. }
  77. }
  78. };
  79. }
  80. function _get() {
  81. return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
  82. var p = _superPropBase(e, t);
  83. if (p) {
  84. var n = Object.getOwnPropertyDescriptor(p, t);
  85. return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
  86. }
  87. }, _get.apply(null, arguments);
  88. }
  89. function _getPrototypeOf(t) {
  90. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
  91. return t.__proto__ || Object.getPrototypeOf(t);
  92. }, _getPrototypeOf(t);
  93. }
  94. function _inherits(t, e) {
  95. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  96. t.prototype = Object.create(e && e.prototype, {
  97. constructor: {
  98. value: t,
  99. writable: !0,
  100. configurable: !0
  101. }
  102. }), Object.defineProperty(t, "prototype", {
  103. writable: !1
  104. }), e && _setPrototypeOf(t, e);
  105. }
  106. function _isNativeReflectConstruct() {
  107. try {
  108. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  109. } catch (t) {}
  110. return (_isNativeReflectConstruct = function () {
  111. return !!t;
  112. })();
  113. }
  114. function _possibleConstructorReturn(t, e) {
  115. if (e && ("object" == typeof e || "function" == typeof e)) return e;
  116. if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
  117. return _assertThisInitialized(t);
  118. }
  119. function _setPrototypeOf(t, e) {
  120. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
  121. return t.__proto__ = e, t;
  122. }, _setPrototypeOf(t, e);
  123. }
  124. function _superPropBase(t, o) {
  125. for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
  126. return t;
  127. }
  128. function _superPropGet(t, e, r, o) {
  129. var p = _get(_getPrototypeOf(t.prototype ), e, r);
  130. return function (t) {
  131. return p.apply(r, t);
  132. } ;
  133. }
  134. function _toPrimitive(t, r) {
  135. if ("object" != typeof t || !t) return t;
  136. var e = t[Symbol.toPrimitive];
  137. if (void 0 !== e) {
  138. var i = e.call(t, r);
  139. if ("object" != typeof i) return i;
  140. throw new TypeError("@@toPrimitive must return a primitive value.");
  141. }
  142. return (String )(t);
  143. }
  144. function _toPropertyKey(t) {
  145. var i = _toPrimitive(t, "string");
  146. return "symbol" == typeof i ? i : i + "";
  147. }
  148. function _unsupportedIterableToArray(r, a) {
  149. if (r) {
  150. if ("string" == typeof r) return _arrayLikeToArray(r, a);
  151. var t = {}.toString.call(r).slice(8, -1);
  152. return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
  153. }
  154. }
  155. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  156. var es_array_find = {};
  157. var globalThis_1;
  158. var hasRequiredGlobalThis;
  159. function requireGlobalThis () {
  160. if (hasRequiredGlobalThis) return globalThis_1;
  161. hasRequiredGlobalThis = 1;
  162. var check = function (it) {
  163. return it && it.Math === Math && it;
  164. };
  165. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  166. globalThis_1 =
  167. // eslint-disable-next-line es/no-global-this -- safe
  168. check(typeof globalThis == 'object' && globalThis) ||
  169. check(typeof window == 'object' && window) ||
  170. // eslint-disable-next-line no-restricted-globals -- safe
  171. check(typeof self == 'object' && self) ||
  172. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  173. check(typeof globalThis_1 == 'object' && globalThis_1) ||
  174. // eslint-disable-next-line no-new-func -- fallback
  175. (function () { return this; })() || Function('return this')();
  176. return globalThis_1;
  177. }
  178. var objectGetOwnPropertyDescriptor = {};
  179. var fails;
  180. var hasRequiredFails;
  181. function requireFails () {
  182. if (hasRequiredFails) return fails;
  183. hasRequiredFails = 1;
  184. fails = function (exec) {
  185. try {
  186. return !!exec();
  187. } catch (error) {
  188. return true;
  189. }
  190. };
  191. return fails;
  192. }
  193. var descriptors;
  194. var hasRequiredDescriptors;
  195. function requireDescriptors () {
  196. if (hasRequiredDescriptors) return descriptors;
  197. hasRequiredDescriptors = 1;
  198. var fails = requireFails();
  199. // Detect IE8's incomplete defineProperty implementation
  200. descriptors = !fails(function () {
  201. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  202. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  203. });
  204. return descriptors;
  205. }
  206. var functionBindNative;
  207. var hasRequiredFunctionBindNative;
  208. function requireFunctionBindNative () {
  209. if (hasRequiredFunctionBindNative) return functionBindNative;
  210. hasRequiredFunctionBindNative = 1;
  211. var fails = requireFails();
  212. functionBindNative = !fails(function () {
  213. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  214. var test = (function () { /* empty */ }).bind();
  215. // eslint-disable-next-line no-prototype-builtins -- safe
  216. return typeof test != 'function' || test.hasOwnProperty('prototype');
  217. });
  218. return functionBindNative;
  219. }
  220. var functionCall;
  221. var hasRequiredFunctionCall;
  222. function requireFunctionCall () {
  223. if (hasRequiredFunctionCall) return functionCall;
  224. hasRequiredFunctionCall = 1;
  225. var NATIVE_BIND = requireFunctionBindNative();
  226. var call = Function.prototype.call;
  227. functionCall = NATIVE_BIND ? call.bind(call) : function () {
  228. return call.apply(call, arguments);
  229. };
  230. return functionCall;
  231. }
  232. var objectPropertyIsEnumerable = {};
  233. var hasRequiredObjectPropertyIsEnumerable;
  234. function requireObjectPropertyIsEnumerable () {
  235. if (hasRequiredObjectPropertyIsEnumerable) return objectPropertyIsEnumerable;
  236. hasRequiredObjectPropertyIsEnumerable = 1;
  237. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  238. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  239. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  240. // Nashorn ~ JDK8 bug
  241. var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  242. // `Object.prototype.propertyIsEnumerable` method implementation
  243. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  244. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  245. var descriptor = getOwnPropertyDescriptor(this, V);
  246. return !!descriptor && descriptor.enumerable;
  247. } : $propertyIsEnumerable;
  248. return objectPropertyIsEnumerable;
  249. }
  250. var createPropertyDescriptor;
  251. var hasRequiredCreatePropertyDescriptor;
  252. function requireCreatePropertyDescriptor () {
  253. if (hasRequiredCreatePropertyDescriptor) return createPropertyDescriptor;
  254. hasRequiredCreatePropertyDescriptor = 1;
  255. createPropertyDescriptor = function (bitmap, value) {
  256. return {
  257. enumerable: !(bitmap & 1),
  258. configurable: !(bitmap & 2),
  259. writable: !(bitmap & 4),
  260. value: value
  261. };
  262. };
  263. return createPropertyDescriptor;
  264. }
  265. var functionUncurryThis;
  266. var hasRequiredFunctionUncurryThis;
  267. function requireFunctionUncurryThis () {
  268. if (hasRequiredFunctionUncurryThis) return functionUncurryThis;
  269. hasRequiredFunctionUncurryThis = 1;
  270. var NATIVE_BIND = requireFunctionBindNative();
  271. var FunctionPrototype = Function.prototype;
  272. var call = FunctionPrototype.call;
  273. var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
  274. functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
  275. return function () {
  276. return call.apply(fn, arguments);
  277. };
  278. };
  279. return functionUncurryThis;
  280. }
  281. var classofRaw;
  282. var hasRequiredClassofRaw;
  283. function requireClassofRaw () {
  284. if (hasRequiredClassofRaw) return classofRaw;
  285. hasRequiredClassofRaw = 1;
  286. var uncurryThis = requireFunctionUncurryThis();
  287. var toString = uncurryThis({}.toString);
  288. var stringSlice = uncurryThis(''.slice);
  289. classofRaw = function (it) {
  290. return stringSlice(toString(it), 8, -1);
  291. };
  292. return classofRaw;
  293. }
  294. var indexedObject;
  295. var hasRequiredIndexedObject;
  296. function requireIndexedObject () {
  297. if (hasRequiredIndexedObject) return indexedObject;
  298. hasRequiredIndexedObject = 1;
  299. var uncurryThis = requireFunctionUncurryThis();
  300. var fails = requireFails();
  301. var classof = requireClassofRaw();
  302. var $Object = Object;
  303. var split = uncurryThis(''.split);
  304. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  305. indexedObject = fails(function () {
  306. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  307. // eslint-disable-next-line no-prototype-builtins -- safe
  308. return !$Object('z').propertyIsEnumerable(0);
  309. }) ? function (it) {
  310. return classof(it) === 'String' ? split(it, '') : $Object(it);
  311. } : $Object;
  312. return indexedObject;
  313. }
  314. var isNullOrUndefined;
  315. var hasRequiredIsNullOrUndefined;
  316. function requireIsNullOrUndefined () {
  317. if (hasRequiredIsNullOrUndefined) return isNullOrUndefined;
  318. hasRequiredIsNullOrUndefined = 1;
  319. // we can't use just `it == null` since of `document.all` special case
  320. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  321. isNullOrUndefined = function (it) {
  322. return it === null || it === undefined;
  323. };
  324. return isNullOrUndefined;
  325. }
  326. var requireObjectCoercible;
  327. var hasRequiredRequireObjectCoercible;
  328. function requireRequireObjectCoercible () {
  329. if (hasRequiredRequireObjectCoercible) return requireObjectCoercible;
  330. hasRequiredRequireObjectCoercible = 1;
  331. var isNullOrUndefined = requireIsNullOrUndefined();
  332. var $TypeError = TypeError;
  333. // `RequireObjectCoercible` abstract operation
  334. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  335. requireObjectCoercible = function (it) {
  336. if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
  337. return it;
  338. };
  339. return requireObjectCoercible;
  340. }
  341. var toIndexedObject;
  342. var hasRequiredToIndexedObject;
  343. function requireToIndexedObject () {
  344. if (hasRequiredToIndexedObject) return toIndexedObject;
  345. hasRequiredToIndexedObject = 1;
  346. // toObject with fallback for non-array-like ES3 strings
  347. var IndexedObject = requireIndexedObject();
  348. var requireObjectCoercible = requireRequireObjectCoercible();
  349. toIndexedObject = function (it) {
  350. return IndexedObject(requireObjectCoercible(it));
  351. };
  352. return toIndexedObject;
  353. }
  354. var isCallable;
  355. var hasRequiredIsCallable;
  356. function requireIsCallable () {
  357. if (hasRequiredIsCallable) return isCallable;
  358. hasRequiredIsCallable = 1;
  359. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  360. var documentAll = typeof document == 'object' && document.all;
  361. // `IsCallable` abstract operation
  362. // https://tc39.es/ecma262/#sec-iscallable
  363. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  364. isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  365. return typeof argument == 'function' || argument === documentAll;
  366. } : function (argument) {
  367. return typeof argument == 'function';
  368. };
  369. return isCallable;
  370. }
  371. var isObject;
  372. var hasRequiredIsObject;
  373. function requireIsObject () {
  374. if (hasRequiredIsObject) return isObject;
  375. hasRequiredIsObject = 1;
  376. var isCallable = requireIsCallable();
  377. isObject = function (it) {
  378. return typeof it == 'object' ? it !== null : isCallable(it);
  379. };
  380. return isObject;
  381. }
  382. var getBuiltIn;
  383. var hasRequiredGetBuiltIn;
  384. function requireGetBuiltIn () {
  385. if (hasRequiredGetBuiltIn) return getBuiltIn;
  386. hasRequiredGetBuiltIn = 1;
  387. var globalThis = requireGlobalThis();
  388. var isCallable = requireIsCallable();
  389. var aFunction = function (argument) {
  390. return isCallable(argument) ? argument : undefined;
  391. };
  392. getBuiltIn = function (namespace, method) {
  393. return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
  394. };
  395. return getBuiltIn;
  396. }
  397. var objectIsPrototypeOf;
  398. var hasRequiredObjectIsPrototypeOf;
  399. function requireObjectIsPrototypeOf () {
  400. if (hasRequiredObjectIsPrototypeOf) return objectIsPrototypeOf;
  401. hasRequiredObjectIsPrototypeOf = 1;
  402. var uncurryThis = requireFunctionUncurryThis();
  403. objectIsPrototypeOf = uncurryThis({}.isPrototypeOf);
  404. return objectIsPrototypeOf;
  405. }
  406. var environmentUserAgent;
  407. var hasRequiredEnvironmentUserAgent;
  408. function requireEnvironmentUserAgent () {
  409. if (hasRequiredEnvironmentUserAgent) return environmentUserAgent;
  410. hasRequiredEnvironmentUserAgent = 1;
  411. var globalThis = requireGlobalThis();
  412. var navigator = globalThis.navigator;
  413. var userAgent = navigator && navigator.userAgent;
  414. environmentUserAgent = userAgent ? String(userAgent) : '';
  415. return environmentUserAgent;
  416. }
  417. var environmentV8Version;
  418. var hasRequiredEnvironmentV8Version;
  419. function requireEnvironmentV8Version () {
  420. if (hasRequiredEnvironmentV8Version) return environmentV8Version;
  421. hasRequiredEnvironmentV8Version = 1;
  422. var globalThis = requireGlobalThis();
  423. var userAgent = requireEnvironmentUserAgent();
  424. var process = globalThis.process;
  425. var Deno = globalThis.Deno;
  426. var versions = process && process.versions || Deno && Deno.version;
  427. var v8 = versions && versions.v8;
  428. var match, version;
  429. if (v8) {
  430. match = v8.split('.');
  431. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  432. // but their correct versions are not interesting for us
  433. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  434. }
  435. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  436. // so check `userAgent` even if `.v8` exists, but 0
  437. if (!version && userAgent) {
  438. match = userAgent.match(/Edge\/(\d+)/);
  439. if (!match || match[1] >= 74) {
  440. match = userAgent.match(/Chrome\/(\d+)/);
  441. if (match) version = +match[1];
  442. }
  443. }
  444. environmentV8Version = version;
  445. return environmentV8Version;
  446. }
  447. var symbolConstructorDetection;
  448. var hasRequiredSymbolConstructorDetection;
  449. function requireSymbolConstructorDetection () {
  450. if (hasRequiredSymbolConstructorDetection) return symbolConstructorDetection;
  451. hasRequiredSymbolConstructorDetection = 1;
  452. /* eslint-disable es/no-symbol -- required for testing */
  453. var V8_VERSION = requireEnvironmentV8Version();
  454. var fails = requireFails();
  455. var globalThis = requireGlobalThis();
  456. var $String = globalThis.String;
  457. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  458. symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
  459. var symbol = Symbol('symbol detection');
  460. // Chrome 38 Symbol has incorrect toString conversion
  461. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  462. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  463. // of course, fail.
  464. return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
  465. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  466. !Symbol.sham && V8_VERSION && V8_VERSION < 41;
  467. });
  468. return symbolConstructorDetection;
  469. }
  470. var useSymbolAsUid;
  471. var hasRequiredUseSymbolAsUid;
  472. function requireUseSymbolAsUid () {
  473. if (hasRequiredUseSymbolAsUid) return useSymbolAsUid;
  474. hasRequiredUseSymbolAsUid = 1;
  475. /* eslint-disable es/no-symbol -- required for testing */
  476. var NATIVE_SYMBOL = requireSymbolConstructorDetection();
  477. useSymbolAsUid = NATIVE_SYMBOL
  478. && !Symbol.sham
  479. && typeof Symbol.iterator == 'symbol';
  480. return useSymbolAsUid;
  481. }
  482. var isSymbol;
  483. var hasRequiredIsSymbol;
  484. function requireIsSymbol () {
  485. if (hasRequiredIsSymbol) return isSymbol;
  486. hasRequiredIsSymbol = 1;
  487. var getBuiltIn = requireGetBuiltIn();
  488. var isCallable = requireIsCallable();
  489. var isPrototypeOf = requireObjectIsPrototypeOf();
  490. var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
  491. var $Object = Object;
  492. isSymbol = USE_SYMBOL_AS_UID ? function (it) {
  493. return typeof it == 'symbol';
  494. } : function (it) {
  495. var $Symbol = getBuiltIn('Symbol');
  496. return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
  497. };
  498. return isSymbol;
  499. }
  500. var tryToString;
  501. var hasRequiredTryToString;
  502. function requireTryToString () {
  503. if (hasRequiredTryToString) return tryToString;
  504. hasRequiredTryToString = 1;
  505. var $String = String;
  506. tryToString = function (argument) {
  507. try {
  508. return $String(argument);
  509. } catch (error) {
  510. return 'Object';
  511. }
  512. };
  513. return tryToString;
  514. }
  515. var aCallable;
  516. var hasRequiredACallable;
  517. function requireACallable () {
  518. if (hasRequiredACallable) return aCallable;
  519. hasRequiredACallable = 1;
  520. var isCallable = requireIsCallable();
  521. var tryToString = requireTryToString();
  522. var $TypeError = TypeError;
  523. // `Assert: IsCallable(argument) is true`
  524. aCallable = function (argument) {
  525. if (isCallable(argument)) return argument;
  526. throw new $TypeError(tryToString(argument) + ' is not a function');
  527. };
  528. return aCallable;
  529. }
  530. var getMethod;
  531. var hasRequiredGetMethod;
  532. function requireGetMethod () {
  533. if (hasRequiredGetMethod) return getMethod;
  534. hasRequiredGetMethod = 1;
  535. var aCallable = requireACallable();
  536. var isNullOrUndefined = requireIsNullOrUndefined();
  537. // `GetMethod` abstract operation
  538. // https://tc39.es/ecma262/#sec-getmethod
  539. getMethod = function (V, P) {
  540. var func = V[P];
  541. return isNullOrUndefined(func) ? undefined : aCallable(func);
  542. };
  543. return getMethod;
  544. }
  545. var ordinaryToPrimitive;
  546. var hasRequiredOrdinaryToPrimitive;
  547. function requireOrdinaryToPrimitive () {
  548. if (hasRequiredOrdinaryToPrimitive) return ordinaryToPrimitive;
  549. hasRequiredOrdinaryToPrimitive = 1;
  550. var call = requireFunctionCall();
  551. var isCallable = requireIsCallable();
  552. var isObject = requireIsObject();
  553. var $TypeError = TypeError;
  554. // `OrdinaryToPrimitive` abstract operation
  555. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  556. ordinaryToPrimitive = function (input, pref) {
  557. var fn, val;
  558. if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  559. if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
  560. if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  561. throw new $TypeError("Can't convert object to primitive value");
  562. };
  563. return ordinaryToPrimitive;
  564. }
  565. var sharedStore = {exports: {}};
  566. var isPure;
  567. var hasRequiredIsPure;
  568. function requireIsPure () {
  569. if (hasRequiredIsPure) return isPure;
  570. hasRequiredIsPure = 1;
  571. isPure = false;
  572. return isPure;
  573. }
  574. var defineGlobalProperty;
  575. var hasRequiredDefineGlobalProperty;
  576. function requireDefineGlobalProperty () {
  577. if (hasRequiredDefineGlobalProperty) return defineGlobalProperty;
  578. hasRequiredDefineGlobalProperty = 1;
  579. var globalThis = requireGlobalThis();
  580. // eslint-disable-next-line es/no-object-defineproperty -- safe
  581. var defineProperty = Object.defineProperty;
  582. defineGlobalProperty = function (key, value) {
  583. try {
  584. defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
  585. } catch (error) {
  586. globalThis[key] = value;
  587. } return value;
  588. };
  589. return defineGlobalProperty;
  590. }
  591. var hasRequiredSharedStore;
  592. function requireSharedStore () {
  593. if (hasRequiredSharedStore) return sharedStore.exports;
  594. hasRequiredSharedStore = 1;
  595. var IS_PURE = requireIsPure();
  596. var globalThis = requireGlobalThis();
  597. var defineGlobalProperty = requireDefineGlobalProperty();
  598. var SHARED = '__core-js_shared__';
  599. var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
  600. (store.versions || (store.versions = [])).push({
  601. version: '3.38.1',
  602. mode: IS_PURE ? 'pure' : 'global',
  603. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  604. license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
  605. source: 'https://github.com/zloirock/core-js'
  606. });
  607. return sharedStore.exports;
  608. }
  609. var shared;
  610. var hasRequiredShared;
  611. function requireShared () {
  612. if (hasRequiredShared) return shared;
  613. hasRequiredShared = 1;
  614. var store = requireSharedStore();
  615. shared = function (key, value) {
  616. return store[key] || (store[key] = value || {});
  617. };
  618. return shared;
  619. }
  620. var toObject;
  621. var hasRequiredToObject;
  622. function requireToObject () {
  623. if (hasRequiredToObject) return toObject;
  624. hasRequiredToObject = 1;
  625. var requireObjectCoercible = requireRequireObjectCoercible();
  626. var $Object = Object;
  627. // `ToObject` abstract operation
  628. // https://tc39.es/ecma262/#sec-toobject
  629. toObject = function (argument) {
  630. return $Object(requireObjectCoercible(argument));
  631. };
  632. return toObject;
  633. }
  634. var hasOwnProperty_1;
  635. var hasRequiredHasOwnProperty;
  636. function requireHasOwnProperty () {
  637. if (hasRequiredHasOwnProperty) return hasOwnProperty_1;
  638. hasRequiredHasOwnProperty = 1;
  639. var uncurryThis = requireFunctionUncurryThis();
  640. var toObject = requireToObject();
  641. var hasOwnProperty = uncurryThis({}.hasOwnProperty);
  642. // `HasOwnProperty` abstract operation
  643. // https://tc39.es/ecma262/#sec-hasownproperty
  644. // eslint-disable-next-line es/no-object-hasown -- safe
  645. hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  646. return hasOwnProperty(toObject(it), key);
  647. };
  648. return hasOwnProperty_1;
  649. }
  650. var uid;
  651. var hasRequiredUid;
  652. function requireUid () {
  653. if (hasRequiredUid) return uid;
  654. hasRequiredUid = 1;
  655. var uncurryThis = requireFunctionUncurryThis();
  656. var id = 0;
  657. var postfix = Math.random();
  658. var toString = uncurryThis(1.0.toString);
  659. uid = function (key) {
  660. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
  661. };
  662. return uid;
  663. }
  664. var wellKnownSymbol;
  665. var hasRequiredWellKnownSymbol;
  666. function requireWellKnownSymbol () {
  667. if (hasRequiredWellKnownSymbol) return wellKnownSymbol;
  668. hasRequiredWellKnownSymbol = 1;
  669. var globalThis = requireGlobalThis();
  670. var shared = requireShared();
  671. var hasOwn = requireHasOwnProperty();
  672. var uid = requireUid();
  673. var NATIVE_SYMBOL = requireSymbolConstructorDetection();
  674. var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
  675. var Symbol = globalThis.Symbol;
  676. var WellKnownSymbolsStore = shared('wks');
  677. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
  678. wellKnownSymbol = function (name) {
  679. if (!hasOwn(WellKnownSymbolsStore, name)) {
  680. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
  681. ? Symbol[name]
  682. : createWellKnownSymbol('Symbol.' + name);
  683. } return WellKnownSymbolsStore[name];
  684. };
  685. return wellKnownSymbol;
  686. }
  687. var toPrimitive;
  688. var hasRequiredToPrimitive;
  689. function requireToPrimitive () {
  690. if (hasRequiredToPrimitive) return toPrimitive;
  691. hasRequiredToPrimitive = 1;
  692. var call = requireFunctionCall();
  693. var isObject = requireIsObject();
  694. var isSymbol = requireIsSymbol();
  695. var getMethod = requireGetMethod();
  696. var ordinaryToPrimitive = requireOrdinaryToPrimitive();
  697. var wellKnownSymbol = requireWellKnownSymbol();
  698. var $TypeError = TypeError;
  699. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  700. // `ToPrimitive` abstract operation
  701. // https://tc39.es/ecma262/#sec-toprimitive
  702. toPrimitive = function (input, pref) {
  703. if (!isObject(input) || isSymbol(input)) return input;
  704. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  705. var result;
  706. if (exoticToPrim) {
  707. if (pref === undefined) pref = 'default';
  708. result = call(exoticToPrim, input, pref);
  709. if (!isObject(result) || isSymbol(result)) return result;
  710. throw new $TypeError("Can't convert object to primitive value");
  711. }
  712. if (pref === undefined) pref = 'number';
  713. return ordinaryToPrimitive(input, pref);
  714. };
  715. return toPrimitive;
  716. }
  717. var toPropertyKey;
  718. var hasRequiredToPropertyKey;
  719. function requireToPropertyKey () {
  720. if (hasRequiredToPropertyKey) return toPropertyKey;
  721. hasRequiredToPropertyKey = 1;
  722. var toPrimitive = requireToPrimitive();
  723. var isSymbol = requireIsSymbol();
  724. // `ToPropertyKey` abstract operation
  725. // https://tc39.es/ecma262/#sec-topropertykey
  726. toPropertyKey = function (argument) {
  727. var key = toPrimitive(argument, 'string');
  728. return isSymbol(key) ? key : key + '';
  729. };
  730. return toPropertyKey;
  731. }
  732. var documentCreateElement;
  733. var hasRequiredDocumentCreateElement;
  734. function requireDocumentCreateElement () {
  735. if (hasRequiredDocumentCreateElement) return documentCreateElement;
  736. hasRequiredDocumentCreateElement = 1;
  737. var globalThis = requireGlobalThis();
  738. var isObject = requireIsObject();
  739. var document = globalThis.document;
  740. // typeof document.createElement is 'object' in old IE
  741. var EXISTS = isObject(document) && isObject(document.createElement);
  742. documentCreateElement = function (it) {
  743. return EXISTS ? document.createElement(it) : {};
  744. };
  745. return documentCreateElement;
  746. }
  747. var ie8DomDefine;
  748. var hasRequiredIe8DomDefine;
  749. function requireIe8DomDefine () {
  750. if (hasRequiredIe8DomDefine) return ie8DomDefine;
  751. hasRequiredIe8DomDefine = 1;
  752. var DESCRIPTORS = requireDescriptors();
  753. var fails = requireFails();
  754. var createElement = requireDocumentCreateElement();
  755. // Thanks to IE8 for its funny defineProperty
  756. ie8DomDefine = !DESCRIPTORS && !fails(function () {
  757. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  758. return Object.defineProperty(createElement('div'), 'a', {
  759. get: function () { return 7; }
  760. }).a !== 7;
  761. });
  762. return ie8DomDefine;
  763. }
  764. var hasRequiredObjectGetOwnPropertyDescriptor;
  765. function requireObjectGetOwnPropertyDescriptor () {
  766. if (hasRequiredObjectGetOwnPropertyDescriptor) return objectGetOwnPropertyDescriptor;
  767. hasRequiredObjectGetOwnPropertyDescriptor = 1;
  768. var DESCRIPTORS = requireDescriptors();
  769. var call = requireFunctionCall();
  770. var propertyIsEnumerableModule = requireObjectPropertyIsEnumerable();
  771. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  772. var toIndexedObject = requireToIndexedObject();
  773. var toPropertyKey = requireToPropertyKey();
  774. var hasOwn = requireHasOwnProperty();
  775. var IE8_DOM_DEFINE = requireIe8DomDefine();
  776. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  777. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  778. // `Object.getOwnPropertyDescriptor` method
  779. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  780. objectGetOwnPropertyDescriptor.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  781. O = toIndexedObject(O);
  782. P = toPropertyKey(P);
  783. if (IE8_DOM_DEFINE) try {
  784. return $getOwnPropertyDescriptor(O, P);
  785. } catch (error) { /* empty */ }
  786. if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
  787. };
  788. return objectGetOwnPropertyDescriptor;
  789. }
  790. var objectDefineProperty = {};
  791. var v8PrototypeDefineBug;
  792. var hasRequiredV8PrototypeDefineBug;
  793. function requireV8PrototypeDefineBug () {
  794. if (hasRequiredV8PrototypeDefineBug) return v8PrototypeDefineBug;
  795. hasRequiredV8PrototypeDefineBug = 1;
  796. var DESCRIPTORS = requireDescriptors();
  797. var fails = requireFails();
  798. // V8 ~ Chrome 36-
  799. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  800. v8PrototypeDefineBug = DESCRIPTORS && fails(function () {
  801. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  802. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  803. value: 42,
  804. writable: false
  805. }).prototype !== 42;
  806. });
  807. return v8PrototypeDefineBug;
  808. }
  809. var anObject;
  810. var hasRequiredAnObject;
  811. function requireAnObject () {
  812. if (hasRequiredAnObject) return anObject;
  813. hasRequiredAnObject = 1;
  814. var isObject = requireIsObject();
  815. var $String = String;
  816. var $TypeError = TypeError;
  817. // `Assert: Type(argument) is Object`
  818. anObject = function (argument) {
  819. if (isObject(argument)) return argument;
  820. throw new $TypeError($String(argument) + ' is not an object');
  821. };
  822. return anObject;
  823. }
  824. var hasRequiredObjectDefineProperty;
  825. function requireObjectDefineProperty () {
  826. if (hasRequiredObjectDefineProperty) return objectDefineProperty;
  827. hasRequiredObjectDefineProperty = 1;
  828. var DESCRIPTORS = requireDescriptors();
  829. var IE8_DOM_DEFINE = requireIe8DomDefine();
  830. var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
  831. var anObject = requireAnObject();
  832. var toPropertyKey = requireToPropertyKey();
  833. var $TypeError = TypeError;
  834. // eslint-disable-next-line es/no-object-defineproperty -- safe
  835. var $defineProperty = Object.defineProperty;
  836. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  837. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  838. var ENUMERABLE = 'enumerable';
  839. var CONFIGURABLE = 'configurable';
  840. var WRITABLE = 'writable';
  841. // `Object.defineProperty` method
  842. // https://tc39.es/ecma262/#sec-object.defineproperty
  843. objectDefineProperty.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  844. anObject(O);
  845. P = toPropertyKey(P);
  846. anObject(Attributes);
  847. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  848. var current = $getOwnPropertyDescriptor(O, P);
  849. if (current && current[WRITABLE]) {
  850. O[P] = Attributes.value;
  851. Attributes = {
  852. configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
  853. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  854. writable: false
  855. };
  856. }
  857. } return $defineProperty(O, P, Attributes);
  858. } : $defineProperty : function defineProperty(O, P, Attributes) {
  859. anObject(O);
  860. P = toPropertyKey(P);
  861. anObject(Attributes);
  862. if (IE8_DOM_DEFINE) try {
  863. return $defineProperty(O, P, Attributes);
  864. } catch (error) { /* empty */ }
  865. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
  866. if ('value' in Attributes) O[P] = Attributes.value;
  867. return O;
  868. };
  869. return objectDefineProperty;
  870. }
  871. var createNonEnumerableProperty;
  872. var hasRequiredCreateNonEnumerableProperty;
  873. function requireCreateNonEnumerableProperty () {
  874. if (hasRequiredCreateNonEnumerableProperty) return createNonEnumerableProperty;
  875. hasRequiredCreateNonEnumerableProperty = 1;
  876. var DESCRIPTORS = requireDescriptors();
  877. var definePropertyModule = requireObjectDefineProperty();
  878. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  879. createNonEnumerableProperty = DESCRIPTORS ? function (object, key, value) {
  880. return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
  881. } : function (object, key, value) {
  882. object[key] = value;
  883. return object;
  884. };
  885. return createNonEnumerableProperty;
  886. }
  887. var makeBuiltIn = {exports: {}};
  888. var functionName;
  889. var hasRequiredFunctionName;
  890. function requireFunctionName () {
  891. if (hasRequiredFunctionName) return functionName;
  892. hasRequiredFunctionName = 1;
  893. var DESCRIPTORS = requireDescriptors();
  894. var hasOwn = requireHasOwnProperty();
  895. var FunctionPrototype = Function.prototype;
  896. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  897. var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
  898. var EXISTS = hasOwn(FunctionPrototype, 'name');
  899. // additional protection from minified / mangled / dropped function names
  900. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  901. var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
  902. functionName = {
  903. EXISTS: EXISTS,
  904. PROPER: PROPER,
  905. CONFIGURABLE: CONFIGURABLE
  906. };
  907. return functionName;
  908. }
  909. var inspectSource;
  910. var hasRequiredInspectSource;
  911. function requireInspectSource () {
  912. if (hasRequiredInspectSource) return inspectSource;
  913. hasRequiredInspectSource = 1;
  914. var uncurryThis = requireFunctionUncurryThis();
  915. var isCallable = requireIsCallable();
  916. var store = requireSharedStore();
  917. var functionToString = uncurryThis(Function.toString);
  918. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  919. if (!isCallable(store.inspectSource)) {
  920. store.inspectSource = function (it) {
  921. return functionToString(it);
  922. };
  923. }
  924. inspectSource = store.inspectSource;
  925. return inspectSource;
  926. }
  927. var weakMapBasicDetection;
  928. var hasRequiredWeakMapBasicDetection;
  929. function requireWeakMapBasicDetection () {
  930. if (hasRequiredWeakMapBasicDetection) return weakMapBasicDetection;
  931. hasRequiredWeakMapBasicDetection = 1;
  932. var globalThis = requireGlobalThis();
  933. var isCallable = requireIsCallable();
  934. var WeakMap = globalThis.WeakMap;
  935. weakMapBasicDetection = isCallable(WeakMap) && /native code/.test(String(WeakMap));
  936. return weakMapBasicDetection;
  937. }
  938. var sharedKey;
  939. var hasRequiredSharedKey;
  940. function requireSharedKey () {
  941. if (hasRequiredSharedKey) return sharedKey;
  942. hasRequiredSharedKey = 1;
  943. var shared = requireShared();
  944. var uid = requireUid();
  945. var keys = shared('keys');
  946. sharedKey = function (key) {
  947. return keys[key] || (keys[key] = uid(key));
  948. };
  949. return sharedKey;
  950. }
  951. var hiddenKeys;
  952. var hasRequiredHiddenKeys;
  953. function requireHiddenKeys () {
  954. if (hasRequiredHiddenKeys) return hiddenKeys;
  955. hasRequiredHiddenKeys = 1;
  956. hiddenKeys = {};
  957. return hiddenKeys;
  958. }
  959. var internalState;
  960. var hasRequiredInternalState;
  961. function requireInternalState () {
  962. if (hasRequiredInternalState) return internalState;
  963. hasRequiredInternalState = 1;
  964. var NATIVE_WEAK_MAP = requireWeakMapBasicDetection();
  965. var globalThis = requireGlobalThis();
  966. var isObject = requireIsObject();
  967. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  968. var hasOwn = requireHasOwnProperty();
  969. var shared = requireSharedStore();
  970. var sharedKey = requireSharedKey();
  971. var hiddenKeys = requireHiddenKeys();
  972. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  973. var TypeError = globalThis.TypeError;
  974. var WeakMap = globalThis.WeakMap;
  975. var set, get, has;
  976. var enforce = function (it) {
  977. return has(it) ? get(it) : set(it, {});
  978. };
  979. var getterFor = function (TYPE) {
  980. return function (it) {
  981. var state;
  982. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  983. throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
  984. } return state;
  985. };
  986. };
  987. if (NATIVE_WEAK_MAP || shared.state) {
  988. var store = shared.state || (shared.state = new WeakMap());
  989. /* eslint-disable no-self-assign -- prototype methods protection */
  990. store.get = store.get;
  991. store.has = store.has;
  992. store.set = store.set;
  993. /* eslint-enable no-self-assign -- prototype methods protection */
  994. set = function (it, metadata) {
  995. if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  996. metadata.facade = it;
  997. store.set(it, metadata);
  998. return metadata;
  999. };
  1000. get = function (it) {
  1001. return store.get(it) || {};
  1002. };
  1003. has = function (it) {
  1004. return store.has(it);
  1005. };
  1006. } else {
  1007. var STATE = sharedKey('state');
  1008. hiddenKeys[STATE] = true;
  1009. set = function (it, metadata) {
  1010. if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  1011. metadata.facade = it;
  1012. createNonEnumerableProperty(it, STATE, metadata);
  1013. return metadata;
  1014. };
  1015. get = function (it) {
  1016. return hasOwn(it, STATE) ? it[STATE] : {};
  1017. };
  1018. has = function (it) {
  1019. return hasOwn(it, STATE);
  1020. };
  1021. }
  1022. internalState = {
  1023. set: set,
  1024. get: get,
  1025. has: has,
  1026. enforce: enforce,
  1027. getterFor: getterFor
  1028. };
  1029. return internalState;
  1030. }
  1031. var hasRequiredMakeBuiltIn;
  1032. function requireMakeBuiltIn () {
  1033. if (hasRequiredMakeBuiltIn) return makeBuiltIn.exports;
  1034. hasRequiredMakeBuiltIn = 1;
  1035. var uncurryThis = requireFunctionUncurryThis();
  1036. var fails = requireFails();
  1037. var isCallable = requireIsCallable();
  1038. var hasOwn = requireHasOwnProperty();
  1039. var DESCRIPTORS = requireDescriptors();
  1040. var CONFIGURABLE_FUNCTION_NAME = requireFunctionName().CONFIGURABLE;
  1041. var inspectSource = requireInspectSource();
  1042. var InternalStateModule = requireInternalState();
  1043. var enforceInternalState = InternalStateModule.enforce;
  1044. var getInternalState = InternalStateModule.get;
  1045. var $String = String;
  1046. // eslint-disable-next-line es/no-object-defineproperty -- safe
  1047. var defineProperty = Object.defineProperty;
  1048. var stringSlice = uncurryThis(''.slice);
  1049. var replace = uncurryThis(''.replace);
  1050. var join = uncurryThis([].join);
  1051. var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
  1052. return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  1053. });
  1054. var TEMPLATE = String(String).split('String');
  1055. var makeBuiltIn$1 = makeBuiltIn.exports = function (value, name, options) {
  1056. if (stringSlice($String(name), 0, 7) === 'Symbol(') {
  1057. name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  1058. }
  1059. if (options && options.getter) name = 'get ' + name;
  1060. if (options && options.setter) name = 'set ' + name;
  1061. if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  1062. if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
  1063. else value.name = name;
  1064. }
  1065. if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
  1066. defineProperty(value, 'length', { value: options.arity });
  1067. }
  1068. try {
  1069. if (options && hasOwn(options, 'constructor') && options.constructor) {
  1070. if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
  1071. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  1072. } else if (value.prototype) value.prototype = undefined;
  1073. } catch (error) { /* empty */ }
  1074. var state = enforceInternalState(value);
  1075. if (!hasOwn(state, 'source')) {
  1076. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  1077. } return value;
  1078. };
  1079. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  1080. // eslint-disable-next-line no-extend-native -- required
  1081. Function.prototype.toString = makeBuiltIn$1(function toString() {
  1082. return isCallable(this) && getInternalState(this).source || inspectSource(this);
  1083. }, 'toString');
  1084. return makeBuiltIn.exports;
  1085. }
  1086. var defineBuiltIn;
  1087. var hasRequiredDefineBuiltIn;
  1088. function requireDefineBuiltIn () {
  1089. if (hasRequiredDefineBuiltIn) return defineBuiltIn;
  1090. hasRequiredDefineBuiltIn = 1;
  1091. var isCallable = requireIsCallable();
  1092. var definePropertyModule = requireObjectDefineProperty();
  1093. var makeBuiltIn = requireMakeBuiltIn();
  1094. var defineGlobalProperty = requireDefineGlobalProperty();
  1095. defineBuiltIn = function (O, key, value, options) {
  1096. if (!options) options = {};
  1097. var simple = options.enumerable;
  1098. var name = options.name !== undefined ? options.name : key;
  1099. if (isCallable(value)) makeBuiltIn(value, name, options);
  1100. if (options.global) {
  1101. if (simple) O[key] = value;
  1102. else defineGlobalProperty(key, value);
  1103. } else {
  1104. try {
  1105. if (!options.unsafe) delete O[key];
  1106. else if (O[key]) simple = true;
  1107. } catch (error) { /* empty */ }
  1108. if (simple) O[key] = value;
  1109. else definePropertyModule.f(O, key, {
  1110. value: value,
  1111. enumerable: false,
  1112. configurable: !options.nonConfigurable,
  1113. writable: !options.nonWritable
  1114. });
  1115. } return O;
  1116. };
  1117. return defineBuiltIn;
  1118. }
  1119. var objectGetOwnPropertyNames = {};
  1120. var mathTrunc;
  1121. var hasRequiredMathTrunc;
  1122. function requireMathTrunc () {
  1123. if (hasRequiredMathTrunc) return mathTrunc;
  1124. hasRequiredMathTrunc = 1;
  1125. var ceil = Math.ceil;
  1126. var floor = Math.floor;
  1127. // `Math.trunc` method
  1128. // https://tc39.es/ecma262/#sec-math.trunc
  1129. // eslint-disable-next-line es/no-math-trunc -- safe
  1130. mathTrunc = Math.trunc || function trunc(x) {
  1131. var n = +x;
  1132. return (n > 0 ? floor : ceil)(n);
  1133. };
  1134. return mathTrunc;
  1135. }
  1136. var toIntegerOrInfinity;
  1137. var hasRequiredToIntegerOrInfinity;
  1138. function requireToIntegerOrInfinity () {
  1139. if (hasRequiredToIntegerOrInfinity) return toIntegerOrInfinity;
  1140. hasRequiredToIntegerOrInfinity = 1;
  1141. var trunc = requireMathTrunc();
  1142. // `ToIntegerOrInfinity` abstract operation
  1143. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  1144. toIntegerOrInfinity = function (argument) {
  1145. var number = +argument;
  1146. // eslint-disable-next-line no-self-compare -- NaN check
  1147. return number !== number || number === 0 ? 0 : trunc(number);
  1148. };
  1149. return toIntegerOrInfinity;
  1150. }
  1151. var toAbsoluteIndex;
  1152. var hasRequiredToAbsoluteIndex;
  1153. function requireToAbsoluteIndex () {
  1154. if (hasRequiredToAbsoluteIndex) return toAbsoluteIndex;
  1155. hasRequiredToAbsoluteIndex = 1;
  1156. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  1157. var max = Math.max;
  1158. var min = Math.min;
  1159. // Helper for a popular repeating case of the spec:
  1160. // Let integer be ? ToInteger(index).
  1161. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  1162. toAbsoluteIndex = function (index, length) {
  1163. var integer = toIntegerOrInfinity(index);
  1164. return integer < 0 ? max(integer + length, 0) : min(integer, length);
  1165. };
  1166. return toAbsoluteIndex;
  1167. }
  1168. var toLength;
  1169. var hasRequiredToLength;
  1170. function requireToLength () {
  1171. if (hasRequiredToLength) return toLength;
  1172. hasRequiredToLength = 1;
  1173. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  1174. var min = Math.min;
  1175. // `ToLength` abstract operation
  1176. // https://tc39.es/ecma262/#sec-tolength
  1177. toLength = function (argument) {
  1178. var len = toIntegerOrInfinity(argument);
  1179. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  1180. };
  1181. return toLength;
  1182. }
  1183. var lengthOfArrayLike;
  1184. var hasRequiredLengthOfArrayLike;
  1185. function requireLengthOfArrayLike () {
  1186. if (hasRequiredLengthOfArrayLike) return lengthOfArrayLike;
  1187. hasRequiredLengthOfArrayLike = 1;
  1188. var toLength = requireToLength();
  1189. // `LengthOfArrayLike` abstract operation
  1190. // https://tc39.es/ecma262/#sec-lengthofarraylike
  1191. lengthOfArrayLike = function (obj) {
  1192. return toLength(obj.length);
  1193. };
  1194. return lengthOfArrayLike;
  1195. }
  1196. var arrayIncludes;
  1197. var hasRequiredArrayIncludes;
  1198. function requireArrayIncludes () {
  1199. if (hasRequiredArrayIncludes) return arrayIncludes;
  1200. hasRequiredArrayIncludes = 1;
  1201. var toIndexedObject = requireToIndexedObject();
  1202. var toAbsoluteIndex = requireToAbsoluteIndex();
  1203. var lengthOfArrayLike = requireLengthOfArrayLike();
  1204. // `Array.prototype.{ indexOf, includes }` methods implementation
  1205. var createMethod = function (IS_INCLUDES) {
  1206. return function ($this, el, fromIndex) {
  1207. var O = toIndexedObject($this);
  1208. var length = lengthOfArrayLike(O);
  1209. if (length === 0) return !IS_INCLUDES && -1;
  1210. var index = toAbsoluteIndex(fromIndex, length);
  1211. var value;
  1212. // Array#includes uses SameValueZero equality algorithm
  1213. // eslint-disable-next-line no-self-compare -- NaN check
  1214. if (IS_INCLUDES && el !== el) while (length > index) {
  1215. value = O[index++];
  1216. // eslint-disable-next-line no-self-compare -- NaN check
  1217. if (value !== value) return true;
  1218. // Array#indexOf ignores holes, Array#includes - not
  1219. } else for (;length > index; index++) {
  1220. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  1221. } return !IS_INCLUDES && -1;
  1222. };
  1223. };
  1224. arrayIncludes = {
  1225. // `Array.prototype.includes` method
  1226. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1227. includes: createMethod(true),
  1228. // `Array.prototype.indexOf` method
  1229. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1230. indexOf: createMethod(false)
  1231. };
  1232. return arrayIncludes;
  1233. }
  1234. var objectKeysInternal;
  1235. var hasRequiredObjectKeysInternal;
  1236. function requireObjectKeysInternal () {
  1237. if (hasRequiredObjectKeysInternal) return objectKeysInternal;
  1238. hasRequiredObjectKeysInternal = 1;
  1239. var uncurryThis = requireFunctionUncurryThis();
  1240. var hasOwn = requireHasOwnProperty();
  1241. var toIndexedObject = requireToIndexedObject();
  1242. var indexOf = requireArrayIncludes().indexOf;
  1243. var hiddenKeys = requireHiddenKeys();
  1244. var push = uncurryThis([].push);
  1245. objectKeysInternal = function (object, names) {
  1246. var O = toIndexedObject(object);
  1247. var i = 0;
  1248. var result = [];
  1249. var key;
  1250. for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
  1251. // Don't enum bug & hidden keys
  1252. while (names.length > i) if (hasOwn(O, key = names[i++])) {
  1253. ~indexOf(result, key) || push(result, key);
  1254. }
  1255. return result;
  1256. };
  1257. return objectKeysInternal;
  1258. }
  1259. var enumBugKeys;
  1260. var hasRequiredEnumBugKeys;
  1261. function requireEnumBugKeys () {
  1262. if (hasRequiredEnumBugKeys) return enumBugKeys;
  1263. hasRequiredEnumBugKeys = 1;
  1264. // IE8- don't enum bug keys
  1265. enumBugKeys = [
  1266. 'constructor',
  1267. 'hasOwnProperty',
  1268. 'isPrototypeOf',
  1269. 'propertyIsEnumerable',
  1270. 'toLocaleString',
  1271. 'toString',
  1272. 'valueOf'
  1273. ];
  1274. return enumBugKeys;
  1275. }
  1276. var hasRequiredObjectGetOwnPropertyNames;
  1277. function requireObjectGetOwnPropertyNames () {
  1278. if (hasRequiredObjectGetOwnPropertyNames) return objectGetOwnPropertyNames;
  1279. hasRequiredObjectGetOwnPropertyNames = 1;
  1280. var internalObjectKeys = requireObjectKeysInternal();
  1281. var enumBugKeys = requireEnumBugKeys();
  1282. var hiddenKeys = enumBugKeys.concat('length', 'prototype');
  1283. // `Object.getOwnPropertyNames` method
  1284. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  1285. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  1286. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  1287. return internalObjectKeys(O, hiddenKeys);
  1288. };
  1289. return objectGetOwnPropertyNames;
  1290. }
  1291. var objectGetOwnPropertySymbols = {};
  1292. var hasRequiredObjectGetOwnPropertySymbols;
  1293. function requireObjectGetOwnPropertySymbols () {
  1294. if (hasRequiredObjectGetOwnPropertySymbols) return objectGetOwnPropertySymbols;
  1295. hasRequiredObjectGetOwnPropertySymbols = 1;
  1296. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  1297. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  1298. return objectGetOwnPropertySymbols;
  1299. }
  1300. var ownKeys;
  1301. var hasRequiredOwnKeys;
  1302. function requireOwnKeys () {
  1303. if (hasRequiredOwnKeys) return ownKeys;
  1304. hasRequiredOwnKeys = 1;
  1305. var getBuiltIn = requireGetBuiltIn();
  1306. var uncurryThis = requireFunctionUncurryThis();
  1307. var getOwnPropertyNamesModule = requireObjectGetOwnPropertyNames();
  1308. var getOwnPropertySymbolsModule = requireObjectGetOwnPropertySymbols();
  1309. var anObject = requireAnObject();
  1310. var concat = uncurryThis([].concat);
  1311. // all object keys, includes non-enumerable and symbols
  1312. ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  1313. var keys = getOwnPropertyNamesModule.f(anObject(it));
  1314. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1315. return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
  1316. };
  1317. return ownKeys;
  1318. }
  1319. var copyConstructorProperties;
  1320. var hasRequiredCopyConstructorProperties;
  1321. function requireCopyConstructorProperties () {
  1322. if (hasRequiredCopyConstructorProperties) return copyConstructorProperties;
  1323. hasRequiredCopyConstructorProperties = 1;
  1324. var hasOwn = requireHasOwnProperty();
  1325. var ownKeys = requireOwnKeys();
  1326. var getOwnPropertyDescriptorModule = requireObjectGetOwnPropertyDescriptor();
  1327. var definePropertyModule = requireObjectDefineProperty();
  1328. copyConstructorProperties = function (target, source, exceptions) {
  1329. var keys = ownKeys(source);
  1330. var defineProperty = definePropertyModule.f;
  1331. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  1332. for (var i = 0; i < keys.length; i++) {
  1333. var key = keys[i];
  1334. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  1335. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  1336. }
  1337. }
  1338. };
  1339. return copyConstructorProperties;
  1340. }
  1341. var isForced_1;
  1342. var hasRequiredIsForced;
  1343. function requireIsForced () {
  1344. if (hasRequiredIsForced) return isForced_1;
  1345. hasRequiredIsForced = 1;
  1346. var fails = requireFails();
  1347. var isCallable = requireIsCallable();
  1348. var replacement = /#|\.prototype\./;
  1349. var isForced = function (feature, detection) {
  1350. var value = data[normalize(feature)];
  1351. return value === POLYFILL ? true
  1352. : value === NATIVE ? false
  1353. : isCallable(detection) ? fails(detection)
  1354. : !!detection;
  1355. };
  1356. var normalize = isForced.normalize = function (string) {
  1357. return String(string).replace(replacement, '.').toLowerCase();
  1358. };
  1359. var data = isForced.data = {};
  1360. var NATIVE = isForced.NATIVE = 'N';
  1361. var POLYFILL = isForced.POLYFILL = 'P';
  1362. isForced_1 = isForced;
  1363. return isForced_1;
  1364. }
  1365. var _export;
  1366. var hasRequired_export;
  1367. function require_export () {
  1368. if (hasRequired_export) return _export;
  1369. hasRequired_export = 1;
  1370. var globalThis = requireGlobalThis();
  1371. var getOwnPropertyDescriptor = requireObjectGetOwnPropertyDescriptor().f;
  1372. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  1373. var defineBuiltIn = requireDefineBuiltIn();
  1374. var defineGlobalProperty = requireDefineGlobalProperty();
  1375. var copyConstructorProperties = requireCopyConstructorProperties();
  1376. var isForced = requireIsForced();
  1377. /*
  1378. options.target - name of the target object
  1379. options.global - target is the global object
  1380. options.stat - export as static methods of target
  1381. options.proto - export as prototype methods of target
  1382. options.real - real prototype method for the `pure` version
  1383. options.forced - export even if the native feature is available
  1384. options.bind - bind methods to the target, required for the `pure` version
  1385. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  1386. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  1387. options.sham - add a flag to not completely full polyfills
  1388. options.enumerable - export as enumerable property
  1389. options.dontCallGetSet - prevent calling a getter on target
  1390. options.name - the .name of the function if it does not match the key
  1391. */
  1392. _export = function (options, source) {
  1393. var TARGET = options.target;
  1394. var GLOBAL = options.global;
  1395. var STATIC = options.stat;
  1396. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  1397. if (GLOBAL) {
  1398. target = globalThis;
  1399. } else if (STATIC) {
  1400. target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});
  1401. } else {
  1402. target = globalThis[TARGET] && globalThis[TARGET].prototype;
  1403. }
  1404. if (target) for (key in source) {
  1405. sourceProperty = source[key];
  1406. if (options.dontCallGetSet) {
  1407. descriptor = getOwnPropertyDescriptor(target, key);
  1408. targetProperty = descriptor && descriptor.value;
  1409. } else targetProperty = target[key];
  1410. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  1411. // contained in target
  1412. if (!FORCED && targetProperty !== undefined) {
  1413. if (typeof sourceProperty == typeof targetProperty) continue;
  1414. copyConstructorProperties(sourceProperty, targetProperty);
  1415. }
  1416. // add a flag to not completely full polyfills
  1417. if (options.sham || (targetProperty && targetProperty.sham)) {
  1418. createNonEnumerableProperty(sourceProperty, 'sham', true);
  1419. }
  1420. defineBuiltIn(target, key, sourceProperty, options);
  1421. }
  1422. };
  1423. return _export;
  1424. }
  1425. var functionUncurryThisClause;
  1426. var hasRequiredFunctionUncurryThisClause;
  1427. function requireFunctionUncurryThisClause () {
  1428. if (hasRequiredFunctionUncurryThisClause) return functionUncurryThisClause;
  1429. hasRequiredFunctionUncurryThisClause = 1;
  1430. var classofRaw = requireClassofRaw();
  1431. var uncurryThis = requireFunctionUncurryThis();
  1432. functionUncurryThisClause = function (fn) {
  1433. // Nashorn bug:
  1434. // https://github.com/zloirock/core-js/issues/1128
  1435. // https://github.com/zloirock/core-js/issues/1130
  1436. if (classofRaw(fn) === 'Function') return uncurryThis(fn);
  1437. };
  1438. return functionUncurryThisClause;
  1439. }
  1440. var functionBindContext;
  1441. var hasRequiredFunctionBindContext;
  1442. function requireFunctionBindContext () {
  1443. if (hasRequiredFunctionBindContext) return functionBindContext;
  1444. hasRequiredFunctionBindContext = 1;
  1445. var uncurryThis = requireFunctionUncurryThisClause();
  1446. var aCallable = requireACallable();
  1447. var NATIVE_BIND = requireFunctionBindNative();
  1448. var bind = uncurryThis(uncurryThis.bind);
  1449. // optional / simple context binding
  1450. functionBindContext = function (fn, that) {
  1451. aCallable(fn);
  1452. return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
  1453. return fn.apply(that, arguments);
  1454. };
  1455. };
  1456. return functionBindContext;
  1457. }
  1458. var isArray;
  1459. var hasRequiredIsArray;
  1460. function requireIsArray () {
  1461. if (hasRequiredIsArray) return isArray;
  1462. hasRequiredIsArray = 1;
  1463. var classof = requireClassofRaw();
  1464. // `IsArray` abstract operation
  1465. // https://tc39.es/ecma262/#sec-isarray
  1466. // eslint-disable-next-line es/no-array-isarray -- safe
  1467. isArray = Array.isArray || function isArray(argument) {
  1468. return classof(argument) === 'Array';
  1469. };
  1470. return isArray;
  1471. }
  1472. var toStringTagSupport;
  1473. var hasRequiredToStringTagSupport;
  1474. function requireToStringTagSupport () {
  1475. if (hasRequiredToStringTagSupport) return toStringTagSupport;
  1476. hasRequiredToStringTagSupport = 1;
  1477. var wellKnownSymbol = requireWellKnownSymbol();
  1478. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  1479. var test = {};
  1480. test[TO_STRING_TAG] = 'z';
  1481. toStringTagSupport = String(test) === '[object z]';
  1482. return toStringTagSupport;
  1483. }
  1484. var classof;
  1485. var hasRequiredClassof;
  1486. function requireClassof () {
  1487. if (hasRequiredClassof) return classof;
  1488. hasRequiredClassof = 1;
  1489. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  1490. var isCallable = requireIsCallable();
  1491. var classofRaw = requireClassofRaw();
  1492. var wellKnownSymbol = requireWellKnownSymbol();
  1493. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  1494. var $Object = Object;
  1495. // ES3 wrong here
  1496. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
  1497. // fallback for IE11 Script Access Denied error
  1498. var tryGet = function (it, key) {
  1499. try {
  1500. return it[key];
  1501. } catch (error) { /* empty */ }
  1502. };
  1503. // getting tag from ES6+ `Object.prototype.toString`
  1504. classof = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
  1505. var O, tag, result;
  1506. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1507. // @@toStringTag case
  1508. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  1509. // builtinTag case
  1510. : CORRECT_ARGUMENTS ? classofRaw(O)
  1511. // ES3 arguments fallback
  1512. : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
  1513. };
  1514. return classof;
  1515. }
  1516. var isConstructor;
  1517. var hasRequiredIsConstructor;
  1518. function requireIsConstructor () {
  1519. if (hasRequiredIsConstructor) return isConstructor;
  1520. hasRequiredIsConstructor = 1;
  1521. var uncurryThis = requireFunctionUncurryThis();
  1522. var fails = requireFails();
  1523. var isCallable = requireIsCallable();
  1524. var classof = requireClassof();
  1525. var getBuiltIn = requireGetBuiltIn();
  1526. var inspectSource = requireInspectSource();
  1527. var noop = function () { /* empty */ };
  1528. var construct = getBuiltIn('Reflect', 'construct');
  1529. var constructorRegExp = /^\s*(?:class|function)\b/;
  1530. var exec = uncurryThis(constructorRegExp.exec);
  1531. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1532. var isConstructorModern = function isConstructor(argument) {
  1533. if (!isCallable(argument)) return false;
  1534. try {
  1535. construct(noop, [], argument);
  1536. return true;
  1537. } catch (error) {
  1538. return false;
  1539. }
  1540. };
  1541. var isConstructorLegacy = function isConstructor(argument) {
  1542. if (!isCallable(argument)) return false;
  1543. switch (classof(argument)) {
  1544. case 'AsyncFunction':
  1545. case 'GeneratorFunction':
  1546. case 'AsyncGeneratorFunction': return false;
  1547. }
  1548. try {
  1549. // we can't check .prototype since constructors produced by .bind haven't it
  1550. // `Function#toString` throws on some built-it function in some legacy engines
  1551. // (for example, `DOMQuad` and similar in FF41-)
  1552. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1553. } catch (error) {
  1554. return true;
  1555. }
  1556. };
  1557. isConstructorLegacy.sham = true;
  1558. // `IsConstructor` abstract operation
  1559. // https://tc39.es/ecma262/#sec-isconstructor
  1560. isConstructor = !construct || fails(function () {
  1561. var called;
  1562. return isConstructorModern(isConstructorModern.call)
  1563. || !isConstructorModern(Object)
  1564. || !isConstructorModern(function () { called = true; })
  1565. || called;
  1566. }) ? isConstructorLegacy : isConstructorModern;
  1567. return isConstructor;
  1568. }
  1569. var arraySpeciesConstructor;
  1570. var hasRequiredArraySpeciesConstructor;
  1571. function requireArraySpeciesConstructor () {
  1572. if (hasRequiredArraySpeciesConstructor) return arraySpeciesConstructor;
  1573. hasRequiredArraySpeciesConstructor = 1;
  1574. var isArray = requireIsArray();
  1575. var isConstructor = requireIsConstructor();
  1576. var isObject = requireIsObject();
  1577. var wellKnownSymbol = requireWellKnownSymbol();
  1578. var SPECIES = wellKnownSymbol('species');
  1579. var $Array = Array;
  1580. // a part of `ArraySpeciesCreate` abstract operation
  1581. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1582. arraySpeciesConstructor = function (originalArray) {
  1583. var C;
  1584. if (isArray(originalArray)) {
  1585. C = originalArray.constructor;
  1586. // cross-realm fallback
  1587. if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
  1588. else if (isObject(C)) {
  1589. C = C[SPECIES];
  1590. if (C === null) C = undefined;
  1591. }
  1592. } return C === undefined ? $Array : C;
  1593. };
  1594. return arraySpeciesConstructor;
  1595. }
  1596. var arraySpeciesCreate;
  1597. var hasRequiredArraySpeciesCreate;
  1598. function requireArraySpeciesCreate () {
  1599. if (hasRequiredArraySpeciesCreate) return arraySpeciesCreate;
  1600. hasRequiredArraySpeciesCreate = 1;
  1601. var arraySpeciesConstructor = requireArraySpeciesConstructor();
  1602. // `ArraySpeciesCreate` abstract operation
  1603. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1604. arraySpeciesCreate = function (originalArray, length) {
  1605. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1606. };
  1607. return arraySpeciesCreate;
  1608. }
  1609. var arrayIteration;
  1610. var hasRequiredArrayIteration;
  1611. function requireArrayIteration () {
  1612. if (hasRequiredArrayIteration) return arrayIteration;
  1613. hasRequiredArrayIteration = 1;
  1614. var bind = requireFunctionBindContext();
  1615. var uncurryThis = requireFunctionUncurryThis();
  1616. var IndexedObject = requireIndexedObject();
  1617. var toObject = requireToObject();
  1618. var lengthOfArrayLike = requireLengthOfArrayLike();
  1619. var arraySpeciesCreate = requireArraySpeciesCreate();
  1620. var push = uncurryThis([].push);
  1621. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1622. var createMethod = function (TYPE) {
  1623. var IS_MAP = TYPE === 1;
  1624. var IS_FILTER = TYPE === 2;
  1625. var IS_SOME = TYPE === 3;
  1626. var IS_EVERY = TYPE === 4;
  1627. var IS_FIND_INDEX = TYPE === 6;
  1628. var IS_FILTER_REJECT = TYPE === 7;
  1629. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1630. return function ($this, callbackfn, that, specificCreate) {
  1631. var O = toObject($this);
  1632. var self = IndexedObject(O);
  1633. var length = lengthOfArrayLike(self);
  1634. var boundFunction = bind(callbackfn, that);
  1635. var index = 0;
  1636. var create = specificCreate || arraySpeciesCreate;
  1637. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1638. var value, result;
  1639. for (;length > index; index++) if (NO_HOLES || index in self) {
  1640. value = self[index];
  1641. result = boundFunction(value, index, O);
  1642. if (TYPE) {
  1643. if (IS_MAP) target[index] = result; // map
  1644. else if (result) switch (TYPE) {
  1645. case 3: return true; // some
  1646. case 5: return value; // find
  1647. case 6: return index; // findIndex
  1648. case 2: push(target, value); // filter
  1649. } else switch (TYPE) {
  1650. case 4: return false; // every
  1651. case 7: push(target, value); // filterReject
  1652. }
  1653. }
  1654. }
  1655. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1656. };
  1657. };
  1658. arrayIteration = {
  1659. // `Array.prototype.forEach` method
  1660. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1661. forEach: createMethod(0),
  1662. // `Array.prototype.map` method
  1663. // https://tc39.es/ecma262/#sec-array.prototype.map
  1664. map: createMethod(1),
  1665. // `Array.prototype.filter` method
  1666. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1667. filter: createMethod(2),
  1668. // `Array.prototype.some` method
  1669. // https://tc39.es/ecma262/#sec-array.prototype.some
  1670. some: createMethod(3),
  1671. // `Array.prototype.every` method
  1672. // https://tc39.es/ecma262/#sec-array.prototype.every
  1673. every: createMethod(4),
  1674. // `Array.prototype.find` method
  1675. // https://tc39.es/ecma262/#sec-array.prototype.find
  1676. find: createMethod(5),
  1677. // `Array.prototype.findIndex` method
  1678. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1679. findIndex: createMethod(6),
  1680. // `Array.prototype.filterReject` method
  1681. // https://github.com/tc39/proposal-array-filtering
  1682. filterReject: createMethod(7)
  1683. };
  1684. return arrayIteration;
  1685. }
  1686. var objectDefineProperties = {};
  1687. var objectKeys;
  1688. var hasRequiredObjectKeys;
  1689. function requireObjectKeys () {
  1690. if (hasRequiredObjectKeys) return objectKeys;
  1691. hasRequiredObjectKeys = 1;
  1692. var internalObjectKeys = requireObjectKeysInternal();
  1693. var enumBugKeys = requireEnumBugKeys();
  1694. // `Object.keys` method
  1695. // https://tc39.es/ecma262/#sec-object.keys
  1696. // eslint-disable-next-line es/no-object-keys -- safe
  1697. objectKeys = Object.keys || function keys(O) {
  1698. return internalObjectKeys(O, enumBugKeys);
  1699. };
  1700. return objectKeys;
  1701. }
  1702. var hasRequiredObjectDefineProperties;
  1703. function requireObjectDefineProperties () {
  1704. if (hasRequiredObjectDefineProperties) return objectDefineProperties;
  1705. hasRequiredObjectDefineProperties = 1;
  1706. var DESCRIPTORS = requireDescriptors();
  1707. var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
  1708. var definePropertyModule = requireObjectDefineProperty();
  1709. var anObject = requireAnObject();
  1710. var toIndexedObject = requireToIndexedObject();
  1711. var objectKeys = requireObjectKeys();
  1712. // `Object.defineProperties` method
  1713. // https://tc39.es/ecma262/#sec-object.defineproperties
  1714. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1715. objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1716. anObject(O);
  1717. var props = toIndexedObject(Properties);
  1718. var keys = objectKeys(Properties);
  1719. var length = keys.length;
  1720. var index = 0;
  1721. var key;
  1722. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1723. return O;
  1724. };
  1725. return objectDefineProperties;
  1726. }
  1727. var html;
  1728. var hasRequiredHtml;
  1729. function requireHtml () {
  1730. if (hasRequiredHtml) return html;
  1731. hasRequiredHtml = 1;
  1732. var getBuiltIn = requireGetBuiltIn();
  1733. html = getBuiltIn('document', 'documentElement');
  1734. return html;
  1735. }
  1736. var objectCreate;
  1737. var hasRequiredObjectCreate;
  1738. function requireObjectCreate () {
  1739. if (hasRequiredObjectCreate) return objectCreate;
  1740. hasRequiredObjectCreate = 1;
  1741. /* global ActiveXObject -- old IE, WSH */
  1742. var anObject = requireAnObject();
  1743. var definePropertiesModule = requireObjectDefineProperties();
  1744. var enumBugKeys = requireEnumBugKeys();
  1745. var hiddenKeys = requireHiddenKeys();
  1746. var html = requireHtml();
  1747. var documentCreateElement = requireDocumentCreateElement();
  1748. var sharedKey = requireSharedKey();
  1749. var GT = '>';
  1750. var LT = '<';
  1751. var PROTOTYPE = 'prototype';
  1752. var SCRIPT = 'script';
  1753. var IE_PROTO = sharedKey('IE_PROTO');
  1754. var EmptyConstructor = function () { /* empty */ };
  1755. var scriptTag = function (content) {
  1756. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1757. };
  1758. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1759. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1760. activeXDocument.write(scriptTag(''));
  1761. activeXDocument.close();
  1762. var temp = activeXDocument.parentWindow.Object;
  1763. // eslint-disable-next-line no-useless-assignment -- avoid memory leak
  1764. activeXDocument = null;
  1765. return temp;
  1766. };
  1767. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1768. var NullProtoObjectViaIFrame = function () {
  1769. // Thrash, waste and sodomy: IE GC bug
  1770. var iframe = documentCreateElement('iframe');
  1771. var JS = 'java' + SCRIPT + ':';
  1772. var iframeDocument;
  1773. iframe.style.display = 'none';
  1774. html.appendChild(iframe);
  1775. // https://github.com/zloirock/core-js/issues/475
  1776. iframe.src = String(JS);
  1777. iframeDocument = iframe.contentWindow.document;
  1778. iframeDocument.open();
  1779. iframeDocument.write(scriptTag('document.F=Object'));
  1780. iframeDocument.close();
  1781. return iframeDocument.F;
  1782. };
  1783. // Check for document.domain and active x support
  1784. // No need to use active x approach when document.domain is not set
  1785. // see https://github.com/es-shims/es5-shim/issues/150
  1786. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1787. // avoid IE GC bug
  1788. var activeXDocument;
  1789. var NullProtoObject = function () {
  1790. try {
  1791. activeXDocument = new ActiveXObject('htmlfile');
  1792. } catch (error) { /* ignore */ }
  1793. NullProtoObject = typeof document != 'undefined'
  1794. ? document.domain && activeXDocument
  1795. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1796. : NullProtoObjectViaIFrame()
  1797. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1798. var length = enumBugKeys.length;
  1799. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1800. return NullProtoObject();
  1801. };
  1802. hiddenKeys[IE_PROTO] = true;
  1803. // `Object.create` method
  1804. // https://tc39.es/ecma262/#sec-object.create
  1805. // eslint-disable-next-line es/no-object-create -- safe
  1806. objectCreate = Object.create || function create(O, Properties) {
  1807. var result;
  1808. if (O !== null) {
  1809. EmptyConstructor[PROTOTYPE] = anObject(O);
  1810. result = new EmptyConstructor();
  1811. EmptyConstructor[PROTOTYPE] = null;
  1812. // add "__proto__" for Object.getPrototypeOf polyfill
  1813. result[IE_PROTO] = O;
  1814. } else result = NullProtoObject();
  1815. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1816. };
  1817. return objectCreate;
  1818. }
  1819. var addToUnscopables;
  1820. var hasRequiredAddToUnscopables;
  1821. function requireAddToUnscopables () {
  1822. if (hasRequiredAddToUnscopables) return addToUnscopables;
  1823. hasRequiredAddToUnscopables = 1;
  1824. var wellKnownSymbol = requireWellKnownSymbol();
  1825. var create = requireObjectCreate();
  1826. var defineProperty = requireObjectDefineProperty().f;
  1827. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1828. var ArrayPrototype = Array.prototype;
  1829. // Array.prototype[@@unscopables]
  1830. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1831. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1832. defineProperty(ArrayPrototype, UNSCOPABLES, {
  1833. configurable: true,
  1834. value: create(null)
  1835. });
  1836. }
  1837. // add a key to Array.prototype[@@unscopables]
  1838. addToUnscopables = function (key) {
  1839. ArrayPrototype[UNSCOPABLES][key] = true;
  1840. };
  1841. return addToUnscopables;
  1842. }
  1843. var hasRequiredEs_array_find;
  1844. function requireEs_array_find () {
  1845. if (hasRequiredEs_array_find) return es_array_find;
  1846. hasRequiredEs_array_find = 1;
  1847. var $ = require_export();
  1848. var $find = requireArrayIteration().find;
  1849. var addToUnscopables = requireAddToUnscopables();
  1850. var FIND = 'find';
  1851. var SKIPS_HOLES = true;
  1852. // Shouldn't skip holes
  1853. // eslint-disable-next-line es/no-array-prototype-find -- testing
  1854. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1855. // `Array.prototype.find` method
  1856. // https://tc39.es/ecma262/#sec-array.prototype.find
  1857. $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1858. find: function find(callbackfn /* , that = undefined */) {
  1859. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1860. }
  1861. });
  1862. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1863. addToUnscopables(FIND);
  1864. return es_array_find;
  1865. }
  1866. requireEs_array_find();
  1867. var es_array_join = {};
  1868. var arrayMethodIsStrict;
  1869. var hasRequiredArrayMethodIsStrict;
  1870. function requireArrayMethodIsStrict () {
  1871. if (hasRequiredArrayMethodIsStrict) return arrayMethodIsStrict;
  1872. hasRequiredArrayMethodIsStrict = 1;
  1873. var fails = requireFails();
  1874. arrayMethodIsStrict = function (METHOD_NAME, argument) {
  1875. var method = [][METHOD_NAME];
  1876. return !!method && fails(function () {
  1877. // eslint-disable-next-line no-useless-call -- required for testing
  1878. method.call(null, argument || function () { return 1; }, 1);
  1879. });
  1880. };
  1881. return arrayMethodIsStrict;
  1882. }
  1883. var hasRequiredEs_array_join;
  1884. function requireEs_array_join () {
  1885. if (hasRequiredEs_array_join) return es_array_join;
  1886. hasRequiredEs_array_join = 1;
  1887. var $ = require_export();
  1888. var uncurryThis = requireFunctionUncurryThis();
  1889. var IndexedObject = requireIndexedObject();
  1890. var toIndexedObject = requireToIndexedObject();
  1891. var arrayMethodIsStrict = requireArrayMethodIsStrict();
  1892. var nativeJoin = uncurryThis([].join);
  1893. var ES3_STRINGS = IndexedObject !== Object;
  1894. var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
  1895. // `Array.prototype.join` method
  1896. // https://tc39.es/ecma262/#sec-array.prototype.join
  1897. $({ target: 'Array', proto: true, forced: FORCED }, {
  1898. join: function join(separator) {
  1899. return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
  1900. }
  1901. });
  1902. return es_array_join;
  1903. }
  1904. requireEs_array_join();
  1905. var es_object_assign = {};
  1906. var objectAssign;
  1907. var hasRequiredObjectAssign;
  1908. function requireObjectAssign () {
  1909. if (hasRequiredObjectAssign) return objectAssign;
  1910. hasRequiredObjectAssign = 1;
  1911. var DESCRIPTORS = requireDescriptors();
  1912. var uncurryThis = requireFunctionUncurryThis();
  1913. var call = requireFunctionCall();
  1914. var fails = requireFails();
  1915. var objectKeys = requireObjectKeys();
  1916. var getOwnPropertySymbolsModule = requireObjectGetOwnPropertySymbols();
  1917. var propertyIsEnumerableModule = requireObjectPropertyIsEnumerable();
  1918. var toObject = requireToObject();
  1919. var IndexedObject = requireIndexedObject();
  1920. // eslint-disable-next-line es/no-object-assign -- safe
  1921. var $assign = Object.assign;
  1922. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1923. var defineProperty = Object.defineProperty;
  1924. var concat = uncurryThis([].concat);
  1925. // `Object.assign` method
  1926. // https://tc39.es/ecma262/#sec-object.assign
  1927. objectAssign = !$assign || fails(function () {
  1928. // should have correct order of operations (Edge bug)
  1929. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  1930. enumerable: true,
  1931. get: function () {
  1932. defineProperty(this, 'b', {
  1933. value: 3,
  1934. enumerable: false
  1935. });
  1936. }
  1937. }), { b: 2 })).b !== 1) return true;
  1938. // should work with symbols and should have deterministic property order (V8 bug)
  1939. var A = {};
  1940. var B = {};
  1941. // eslint-disable-next-line es/no-symbol -- safe
  1942. var symbol = Symbol('assign detection');
  1943. var alphabet = 'abcdefghijklmnopqrst';
  1944. A[symbol] = 7;
  1945. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1946. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  1947. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1948. var T = toObject(target);
  1949. var argumentsLength = arguments.length;
  1950. var index = 1;
  1951. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1952. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1953. while (argumentsLength > index) {
  1954. var S = IndexedObject(arguments[index++]);
  1955. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  1956. var length = keys.length;
  1957. var j = 0;
  1958. var key;
  1959. while (length > j) {
  1960. key = keys[j++];
  1961. if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  1962. }
  1963. } return T;
  1964. } : $assign;
  1965. return objectAssign;
  1966. }
  1967. var hasRequiredEs_object_assign;
  1968. function requireEs_object_assign () {
  1969. if (hasRequiredEs_object_assign) return es_object_assign;
  1970. hasRequiredEs_object_assign = 1;
  1971. var $ = require_export();
  1972. var assign = requireObjectAssign();
  1973. // `Object.assign` method
  1974. // https://tc39.es/ecma262/#sec-object.assign
  1975. // eslint-disable-next-line es/no-object-assign -- required for testing
  1976. $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1977. assign: assign
  1978. });
  1979. return es_object_assign;
  1980. }
  1981. requireEs_object_assign();
  1982. var es_object_toString = {};
  1983. var objectToString;
  1984. var hasRequiredObjectToString;
  1985. function requireObjectToString () {
  1986. if (hasRequiredObjectToString) return objectToString;
  1987. hasRequiredObjectToString = 1;
  1988. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  1989. var classof = requireClassof();
  1990. // `Object.prototype.toString` method implementation
  1991. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1992. objectToString = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
  1993. return '[object ' + classof(this) + ']';
  1994. };
  1995. return objectToString;
  1996. }
  1997. var hasRequiredEs_object_toString;
  1998. function requireEs_object_toString () {
  1999. if (hasRequiredEs_object_toString) return es_object_toString;
  2000. hasRequiredEs_object_toString = 1;
  2001. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  2002. var defineBuiltIn = requireDefineBuiltIn();
  2003. var toString = requireObjectToString();
  2004. // `Object.prototype.toString` method
  2005. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  2006. if (!TO_STRING_TAG_SUPPORT) {
  2007. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  2008. }
  2009. return es_object_toString;
  2010. }
  2011. requireEs_object_toString();
  2012. var web_domCollections_forEach = {};
  2013. var domIterables;
  2014. var hasRequiredDomIterables;
  2015. function requireDomIterables () {
  2016. if (hasRequiredDomIterables) return domIterables;
  2017. hasRequiredDomIterables = 1;
  2018. // iterable DOM collections
  2019. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  2020. domIterables = {
  2021. CSSRuleList: 0,
  2022. CSSStyleDeclaration: 0,
  2023. CSSValueList: 0,
  2024. ClientRectList: 0,
  2025. DOMRectList: 0,
  2026. DOMStringList: 0,
  2027. DOMTokenList: 1,
  2028. DataTransferItemList: 0,
  2029. FileList: 0,
  2030. HTMLAllCollection: 0,
  2031. HTMLCollection: 0,
  2032. HTMLFormElement: 0,
  2033. HTMLSelectElement: 0,
  2034. MediaList: 0,
  2035. MimeTypeArray: 0,
  2036. NamedNodeMap: 0,
  2037. NodeList: 1,
  2038. PaintRequestList: 0,
  2039. Plugin: 0,
  2040. PluginArray: 0,
  2041. SVGLengthList: 0,
  2042. SVGNumberList: 0,
  2043. SVGPathSegList: 0,
  2044. SVGPointList: 0,
  2045. SVGStringList: 0,
  2046. SVGTransformList: 0,
  2047. SourceBufferList: 0,
  2048. StyleSheetList: 0,
  2049. TextTrackCueList: 0,
  2050. TextTrackList: 0,
  2051. TouchList: 0
  2052. };
  2053. return domIterables;
  2054. }
  2055. var domTokenListPrototype;
  2056. var hasRequiredDomTokenListPrototype;
  2057. function requireDomTokenListPrototype () {
  2058. if (hasRequiredDomTokenListPrototype) return domTokenListPrototype;
  2059. hasRequiredDomTokenListPrototype = 1;
  2060. // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
  2061. var documentCreateElement = requireDocumentCreateElement();
  2062. var classList = documentCreateElement('span').classList;
  2063. var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
  2064. domTokenListPrototype = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
  2065. return domTokenListPrototype;
  2066. }
  2067. var arrayForEach;
  2068. var hasRequiredArrayForEach;
  2069. function requireArrayForEach () {
  2070. if (hasRequiredArrayForEach) return arrayForEach;
  2071. hasRequiredArrayForEach = 1;
  2072. var $forEach = requireArrayIteration().forEach;
  2073. var arrayMethodIsStrict = requireArrayMethodIsStrict();
  2074. var STRICT_METHOD = arrayMethodIsStrict('forEach');
  2075. // `Array.prototype.forEach` method implementation
  2076. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  2077. arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
  2078. return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  2079. // eslint-disable-next-line es/no-array-prototype-foreach -- safe
  2080. } : [].forEach;
  2081. return arrayForEach;
  2082. }
  2083. var hasRequiredWeb_domCollections_forEach;
  2084. function requireWeb_domCollections_forEach () {
  2085. if (hasRequiredWeb_domCollections_forEach) return web_domCollections_forEach;
  2086. hasRequiredWeb_domCollections_forEach = 1;
  2087. var globalThis = requireGlobalThis();
  2088. var DOMIterables = requireDomIterables();
  2089. var DOMTokenListPrototype = requireDomTokenListPrototype();
  2090. var forEach = requireArrayForEach();
  2091. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  2092. var handlePrototype = function (CollectionPrototype) {
  2093. // some Chrome versions have non-configurable methods on DOMTokenList
  2094. if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
  2095. createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
  2096. } catch (error) {
  2097. CollectionPrototype.forEach = forEach;
  2098. }
  2099. };
  2100. for (var COLLECTION_NAME in DOMIterables) {
  2101. if (DOMIterables[COLLECTION_NAME]) {
  2102. handlePrototype(globalThis[COLLECTION_NAME] && globalThis[COLLECTION_NAME].prototype);
  2103. }
  2104. }
  2105. handlePrototype(DOMTokenListPrototype);
  2106. return web_domCollections_forEach;
  2107. }
  2108. requireWeb_domCollections_forEach();
  2109. /**
  2110. * @author Homer Glascock <HopGlascock@gmail.com>
  2111. * @update zhixin wen <wenzhixin2010@gmail.com>
  2112. */
  2113. var Utils = $.fn.bootstrapTable.utils;
  2114. Object.assign($.fn.bootstrapTable.locales, {
  2115. formatCopyRows: function formatCopyRows() {
  2116. return 'Copy Rows';
  2117. }
  2118. });
  2119. Object.assign($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales);
  2120. Object.assign($.fn.bootstrapTable.defaults.icons, {
  2121. copy: {
  2122. bootstrap3: 'glyphicon-copy icon-pencil',
  2123. bootstrap5: 'bi-clipboard',
  2124. materialize: 'content_copy',
  2125. 'bootstrap-table': 'icon-copy'
  2126. }[$.fn.bootstrapTable.theme] || 'fa-copy'
  2127. });
  2128. var copyText = function copyText(text) {
  2129. var textField = document.createElement('textarea');
  2130. $(textField).html(text);
  2131. document.body.appendChild(textField);
  2132. textField.select();
  2133. try {
  2134. document.execCommand('copy');
  2135. } catch (e) {
  2136. console.warn('Oops, unable to copy');
  2137. }
  2138. $(textField).remove();
  2139. };
  2140. Object.assign($.fn.bootstrapTable.defaults, {
  2141. showCopyRows: false,
  2142. copyWithHidden: false,
  2143. copyDelimiter: ', ',
  2144. copyNewline: '\n',
  2145. copyRowsHandler: function copyRowsHandler(text) {
  2146. return text;
  2147. }
  2148. });
  2149. Object.assign($.fn.bootstrapTable.columnDefaults, {
  2150. ignoreCopy: false,
  2151. rawCopy: false
  2152. });
  2153. $.fn.bootstrapTable.methods.push('copyColumnsToClipboard');
  2154. $.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  2155. function _class() {
  2156. _classCallCheck(this, _class);
  2157. return _callSuper(this, _class, arguments);
  2158. }
  2159. _inherits(_class, _$$BootstrapTable);
  2160. return _createClass(_class, [{
  2161. key: "initToolbar",
  2162. value: function initToolbar() {
  2163. if (this.options.showCopyRows && this.header.stateField) {
  2164. this.buttons = Object.assign(this.buttons, {
  2165. copyRows: {
  2166. text: this.options.formatCopyRows(),
  2167. icon: this.options.icons.copy,
  2168. event: this.copyColumnsToClipboard,
  2169. attributes: {
  2170. 'aria-label': this.options.formatCopyRows(),
  2171. title: this.options.formatCopyRows()
  2172. }
  2173. }
  2174. });
  2175. }
  2176. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  2177. args[_key] = arguments[_key];
  2178. }
  2179. _superPropGet(_class, "initToolbar", this)(args);
  2180. this.$copyButton = this.$toolbar.find('>.columns [name="copyRows"]');
  2181. if (this.options.showCopyRows && this.header.stateField) {
  2182. this.updateCopyButton();
  2183. }
  2184. }
  2185. }, {
  2186. key: "copyColumnsToClipboard",
  2187. value: function copyColumnsToClipboard() {
  2188. var _this = this;
  2189. var rows = [];
  2190. var _iterator = _createForOfIteratorHelper(this.getSelections()),
  2191. _step;
  2192. try {
  2193. var _loop = function _loop() {
  2194. var row = _step.value;
  2195. var cols = [];
  2196. _this.options.columns[0].forEach(function (column, index) {
  2197. if (column.field !== _this.header.stateField && (!_this.options.copyWithHidden || _this.options.copyWithHidden && column.visible) && !column.ignoreCopy) {
  2198. if (row[column.field] !== null) {
  2199. var columnValue = column.rawCopy ? row[column.field] : Utils.calculateObjectValue(column, _this.header.formatters[index], [row[column.field], row, index], row[column.field]);
  2200. cols.push(columnValue);
  2201. }
  2202. }
  2203. });
  2204. rows.push(cols.join(_this.options.copyDelimiter));
  2205. };
  2206. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  2207. _loop();
  2208. }
  2209. } catch (err) {
  2210. _iterator.e(err);
  2211. } finally {
  2212. _iterator.f();
  2213. }
  2214. var text = rows.join(this.options.copyNewline);
  2215. text = Utils.calculateObjectValue(this.options, this.options.copyRowsHandler, [text], text);
  2216. copyText(text);
  2217. }
  2218. }, {
  2219. key: "updateSelected",
  2220. value: function updateSelected() {
  2221. _superPropGet(_class, "updateSelected", this)([]);
  2222. this.updateCopyButton();
  2223. }
  2224. }, {
  2225. key: "updateCopyButton",
  2226. value: function updateCopyButton() {
  2227. if (this.options.showCopyRows && this.header.stateField && this.$copyButton) {
  2228. this.$copyButton.prop('disabled', !this.getSelections().length);
  2229. }
  2230. }
  2231. }]);
  2232. }($.BootstrapTable);
  2233. }));