bootstrap-table-export.js 104 KB

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