bootstrap-table-export.js 96 KB

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