bootstrap-table-print.js 85 KB

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