bootstrap-table-print.js 103 KB

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