bootstrap-table-editable.js 92 KB

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