bootstrap-table-print.js 103 KB

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