bootstrap-table-print.js 84 KB

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