bootstrap-table-toolbar.js 125 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666
  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 ($) { 'use strict';
  6. function _arrayLikeToArray(r, a) {
  7. (null == a || a > r.length) && (a = r.length);
  8. for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
  9. return n;
  10. }
  11. function _arrayWithHoles(r) {
  12. if (Array.isArray(r)) return r;
  13. }
  14. function _arrayWithoutHoles(r) {
  15. if (Array.isArray(r)) return _arrayLikeToArray(r);
  16. }
  17. function _assertThisInitialized(e) {
  18. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  19. return e;
  20. }
  21. function _callSuper(t, o, e) {
  22. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  23. }
  24. function _classCallCheck(a, n) {
  25. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  26. }
  27. function _defineProperties(e, r) {
  28. for (var t = 0; t < r.length; t++) {
  29. var o = r[t];
  30. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  31. }
  32. }
  33. function _createClass(e, r, t) {
  34. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  35. writable: !1
  36. }), e;
  37. }
  38. function _createForOfIteratorHelper(r, e) {
  39. var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  40. if (!t) {
  41. if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
  42. t && (r = t);
  43. var n = 0,
  44. F = function () {};
  45. return {
  46. s: F,
  47. n: function () {
  48. return n >= r.length ? {
  49. done: !0
  50. } : {
  51. done: !1,
  52. value: r[n++]
  53. };
  54. },
  55. e: function (r) {
  56. throw r;
  57. },
  58. f: F
  59. };
  60. }
  61. throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  62. }
  63. var o,
  64. a = !0,
  65. u = !1;
  66. return {
  67. s: function () {
  68. t = t.call(r);
  69. },
  70. n: function () {
  71. var r = t.next();
  72. return a = r.done, r;
  73. },
  74. e: function (r) {
  75. u = !0, o = r;
  76. },
  77. f: function () {
  78. try {
  79. a || null == t.return || t.return();
  80. } finally {
  81. if (u) throw o;
  82. }
  83. }
  84. };
  85. }
  86. function _get() {
  87. return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
  88. var p = _superPropBase(e, t);
  89. if (p) {
  90. var n = Object.getOwnPropertyDescriptor(p, t);
  91. return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
  92. }
  93. }, _get.apply(null, arguments);
  94. }
  95. function _getPrototypeOf(t) {
  96. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
  97. return t.__proto__ || Object.getPrototypeOf(t);
  98. }, _getPrototypeOf(t);
  99. }
  100. function _inherits(t, e) {
  101. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  102. t.prototype = Object.create(e && e.prototype, {
  103. constructor: {
  104. value: t,
  105. writable: !0,
  106. configurable: !0
  107. }
  108. }), Object.defineProperty(t, "prototype", {
  109. writable: !1
  110. }), e && _setPrototypeOf(t, e);
  111. }
  112. function _isNativeReflectConstruct() {
  113. try {
  114. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  115. } catch (t) {}
  116. return (_isNativeReflectConstruct = function () {
  117. return !!t;
  118. })();
  119. }
  120. function _iterableToArray(r) {
  121. if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
  122. }
  123. function _iterableToArrayLimit(r, l) {
  124. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  125. if (null != t) {
  126. var e,
  127. n,
  128. i,
  129. u,
  130. a = [],
  131. f = !0,
  132. o = !1;
  133. try {
  134. if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
  135. } catch (r) {
  136. o = !0, n = r;
  137. } finally {
  138. try {
  139. if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
  140. } finally {
  141. if (o) throw n;
  142. }
  143. }
  144. return a;
  145. }
  146. }
  147. function _nonIterableRest() {
  148. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  149. }
  150. function _nonIterableSpread() {
  151. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  152. }
  153. function _possibleConstructorReturn(t, e) {
  154. if (e && ("object" == typeof e || "function" == typeof e)) return e;
  155. if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
  156. return _assertThisInitialized(t);
  157. }
  158. function _setPrototypeOf(t, e) {
  159. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
  160. return t.__proto__ = e, t;
  161. }, _setPrototypeOf(t, e);
  162. }
  163. function _slicedToArray(r, e) {
  164. return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
  165. }
  166. function _superPropBase(t, o) {
  167. for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
  168. return t;
  169. }
  170. function _superPropGet(t, e, r, o) {
  171. var p = _get(_getPrototypeOf(t.prototype ), e, r);
  172. return function (t) {
  173. return p.apply(r, t);
  174. } ;
  175. }
  176. function _toConsumableArray(r) {
  177. return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
  178. }
  179. function _toPrimitive(t, r) {
  180. if ("object" != typeof t || !t) return t;
  181. var e = t[Symbol.toPrimitive];
  182. if (void 0 !== e) {
  183. var i = e.call(t, r);
  184. if ("object" != typeof i) return i;
  185. throw new TypeError("@@toPrimitive must return a primitive value.");
  186. }
  187. return (String )(t);
  188. }
  189. function _toPropertyKey(t) {
  190. var i = _toPrimitive(t, "string");
  191. return "symbol" == typeof i ? i : i + "";
  192. }
  193. function _unsupportedIterableToArray(r, a) {
  194. if (r) {
  195. if ("string" == typeof r) return _arrayLikeToArray(r, a);
  196. var t = {}.toString.call(r).slice(8, -1);
  197. return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
  198. }
  199. }
  200. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  201. var es_array_concat = {};
  202. var globalThis_1;
  203. var hasRequiredGlobalThis;
  204. function requireGlobalThis () {
  205. if (hasRequiredGlobalThis) return globalThis_1;
  206. hasRequiredGlobalThis = 1;
  207. var check = function (it) {
  208. return it && it.Math === Math && it;
  209. };
  210. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  211. globalThis_1 =
  212. // eslint-disable-next-line es/no-global-this -- safe
  213. check(typeof globalThis == 'object' && globalThis) ||
  214. check(typeof window == 'object' && window) ||
  215. // eslint-disable-next-line no-restricted-globals -- safe
  216. check(typeof self == 'object' && self) ||
  217. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  218. check(typeof globalThis_1 == 'object' && globalThis_1) ||
  219. // eslint-disable-next-line no-new-func -- fallback
  220. (function () { return this; })() || Function('return this')();
  221. return globalThis_1;
  222. }
  223. var objectGetOwnPropertyDescriptor = {};
  224. var fails;
  225. var hasRequiredFails;
  226. function requireFails () {
  227. if (hasRequiredFails) return fails;
  228. hasRequiredFails = 1;
  229. fails = function (exec) {
  230. try {
  231. return !!exec();
  232. } catch (error) {
  233. return true;
  234. }
  235. };
  236. return fails;
  237. }
  238. var descriptors;
  239. var hasRequiredDescriptors;
  240. function requireDescriptors () {
  241. if (hasRequiredDescriptors) return descriptors;
  242. hasRequiredDescriptors = 1;
  243. var fails = requireFails();
  244. // Detect IE8's incomplete defineProperty implementation
  245. descriptors = !fails(function () {
  246. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  247. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  248. });
  249. return descriptors;
  250. }
  251. var functionBindNative;
  252. var hasRequiredFunctionBindNative;
  253. function requireFunctionBindNative () {
  254. if (hasRequiredFunctionBindNative) return functionBindNative;
  255. hasRequiredFunctionBindNative = 1;
  256. var fails = requireFails();
  257. functionBindNative = !fails(function () {
  258. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  259. var test = (function () { /* empty */ }).bind();
  260. // eslint-disable-next-line no-prototype-builtins -- safe
  261. return typeof test != 'function' || test.hasOwnProperty('prototype');
  262. });
  263. return functionBindNative;
  264. }
  265. var functionCall;
  266. var hasRequiredFunctionCall;
  267. function requireFunctionCall () {
  268. if (hasRequiredFunctionCall) return functionCall;
  269. hasRequiredFunctionCall = 1;
  270. var NATIVE_BIND = requireFunctionBindNative();
  271. var call = Function.prototype.call;
  272. functionCall = NATIVE_BIND ? call.bind(call) : function () {
  273. return call.apply(call, arguments);
  274. };
  275. return functionCall;
  276. }
  277. var objectPropertyIsEnumerable = {};
  278. var hasRequiredObjectPropertyIsEnumerable;
  279. function requireObjectPropertyIsEnumerable () {
  280. if (hasRequiredObjectPropertyIsEnumerable) return objectPropertyIsEnumerable;
  281. hasRequiredObjectPropertyIsEnumerable = 1;
  282. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  283. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  284. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  285. // Nashorn ~ JDK8 bug
  286. var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  287. // `Object.prototype.propertyIsEnumerable` method implementation
  288. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  289. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  290. var descriptor = getOwnPropertyDescriptor(this, V);
  291. return !!descriptor && descriptor.enumerable;
  292. } : $propertyIsEnumerable;
  293. return objectPropertyIsEnumerable;
  294. }
  295. var createPropertyDescriptor;
  296. var hasRequiredCreatePropertyDescriptor;
  297. function requireCreatePropertyDescriptor () {
  298. if (hasRequiredCreatePropertyDescriptor) return createPropertyDescriptor;
  299. hasRequiredCreatePropertyDescriptor = 1;
  300. createPropertyDescriptor = function (bitmap, value) {
  301. return {
  302. enumerable: !(bitmap & 1),
  303. configurable: !(bitmap & 2),
  304. writable: !(bitmap & 4),
  305. value: value
  306. };
  307. };
  308. return createPropertyDescriptor;
  309. }
  310. var functionUncurryThis;
  311. var hasRequiredFunctionUncurryThis;
  312. function requireFunctionUncurryThis () {
  313. if (hasRequiredFunctionUncurryThis) return functionUncurryThis;
  314. hasRequiredFunctionUncurryThis = 1;
  315. var NATIVE_BIND = requireFunctionBindNative();
  316. var FunctionPrototype = Function.prototype;
  317. var call = FunctionPrototype.call;
  318. var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
  319. functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
  320. return function () {
  321. return call.apply(fn, arguments);
  322. };
  323. };
  324. return functionUncurryThis;
  325. }
  326. var classofRaw;
  327. var hasRequiredClassofRaw;
  328. function requireClassofRaw () {
  329. if (hasRequiredClassofRaw) return classofRaw;
  330. hasRequiredClassofRaw = 1;
  331. var uncurryThis = requireFunctionUncurryThis();
  332. var toString = uncurryThis({}.toString);
  333. var stringSlice = uncurryThis(''.slice);
  334. classofRaw = function (it) {
  335. return stringSlice(toString(it), 8, -1);
  336. };
  337. return classofRaw;
  338. }
  339. var indexedObject;
  340. var hasRequiredIndexedObject;
  341. function requireIndexedObject () {
  342. if (hasRequiredIndexedObject) return indexedObject;
  343. hasRequiredIndexedObject = 1;
  344. var uncurryThis = requireFunctionUncurryThis();
  345. var fails = requireFails();
  346. var classof = requireClassofRaw();
  347. var $Object = Object;
  348. var split = uncurryThis(''.split);
  349. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  350. indexedObject = fails(function () {
  351. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  352. // eslint-disable-next-line no-prototype-builtins -- safe
  353. return !$Object('z').propertyIsEnumerable(0);
  354. }) ? function (it) {
  355. return classof(it) === 'String' ? split(it, '') : $Object(it);
  356. } : $Object;
  357. return indexedObject;
  358. }
  359. var isNullOrUndefined;
  360. var hasRequiredIsNullOrUndefined;
  361. function requireIsNullOrUndefined () {
  362. if (hasRequiredIsNullOrUndefined) return isNullOrUndefined;
  363. hasRequiredIsNullOrUndefined = 1;
  364. // we can't use just `it == null` since of `document.all` special case
  365. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  366. isNullOrUndefined = function (it) {
  367. return it === null || it === undefined;
  368. };
  369. return isNullOrUndefined;
  370. }
  371. var requireObjectCoercible;
  372. var hasRequiredRequireObjectCoercible;
  373. function requireRequireObjectCoercible () {
  374. if (hasRequiredRequireObjectCoercible) return requireObjectCoercible;
  375. hasRequiredRequireObjectCoercible = 1;
  376. var isNullOrUndefined = requireIsNullOrUndefined();
  377. var $TypeError = TypeError;
  378. // `RequireObjectCoercible` abstract operation
  379. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  380. requireObjectCoercible = function (it) {
  381. if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
  382. return it;
  383. };
  384. return requireObjectCoercible;
  385. }
  386. var toIndexedObject;
  387. var hasRequiredToIndexedObject;
  388. function requireToIndexedObject () {
  389. if (hasRequiredToIndexedObject) return toIndexedObject;
  390. hasRequiredToIndexedObject = 1;
  391. // toObject with fallback for non-array-like ES3 strings
  392. var IndexedObject = requireIndexedObject();
  393. var requireObjectCoercible = requireRequireObjectCoercible();
  394. toIndexedObject = function (it) {
  395. return IndexedObject(requireObjectCoercible(it));
  396. };
  397. return toIndexedObject;
  398. }
  399. var isCallable;
  400. var hasRequiredIsCallable;
  401. function requireIsCallable () {
  402. if (hasRequiredIsCallable) return isCallable;
  403. hasRequiredIsCallable = 1;
  404. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  405. var documentAll = typeof document == 'object' && document.all;
  406. // `IsCallable` abstract operation
  407. // https://tc39.es/ecma262/#sec-iscallable
  408. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  409. isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  410. return typeof argument == 'function' || argument === documentAll;
  411. } : function (argument) {
  412. return typeof argument == 'function';
  413. };
  414. return isCallable;
  415. }
  416. var isObject;
  417. var hasRequiredIsObject;
  418. function requireIsObject () {
  419. if (hasRequiredIsObject) return isObject;
  420. hasRequiredIsObject = 1;
  421. var isCallable = requireIsCallable();
  422. isObject = function (it) {
  423. return typeof it == 'object' ? it !== null : isCallable(it);
  424. };
  425. return isObject;
  426. }
  427. var getBuiltIn;
  428. var hasRequiredGetBuiltIn;
  429. function requireGetBuiltIn () {
  430. if (hasRequiredGetBuiltIn) return getBuiltIn;
  431. hasRequiredGetBuiltIn = 1;
  432. var globalThis = requireGlobalThis();
  433. var isCallable = requireIsCallable();
  434. var aFunction = function (argument) {
  435. return isCallable(argument) ? argument : undefined;
  436. };
  437. getBuiltIn = function (namespace, method) {
  438. return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
  439. };
  440. return getBuiltIn;
  441. }
  442. var objectIsPrototypeOf;
  443. var hasRequiredObjectIsPrototypeOf;
  444. function requireObjectIsPrototypeOf () {
  445. if (hasRequiredObjectIsPrototypeOf) return objectIsPrototypeOf;
  446. hasRequiredObjectIsPrototypeOf = 1;
  447. var uncurryThis = requireFunctionUncurryThis();
  448. objectIsPrototypeOf = uncurryThis({}.isPrototypeOf);
  449. return objectIsPrototypeOf;
  450. }
  451. var environmentUserAgent;
  452. var hasRequiredEnvironmentUserAgent;
  453. function requireEnvironmentUserAgent () {
  454. if (hasRequiredEnvironmentUserAgent) return environmentUserAgent;
  455. hasRequiredEnvironmentUserAgent = 1;
  456. var globalThis = requireGlobalThis();
  457. var navigator = globalThis.navigator;
  458. var userAgent = navigator && navigator.userAgent;
  459. environmentUserAgent = userAgent ? String(userAgent) : '';
  460. return environmentUserAgent;
  461. }
  462. var environmentV8Version;
  463. var hasRequiredEnvironmentV8Version;
  464. function requireEnvironmentV8Version () {
  465. if (hasRequiredEnvironmentV8Version) return environmentV8Version;
  466. hasRequiredEnvironmentV8Version = 1;
  467. var globalThis = requireGlobalThis();
  468. var userAgent = requireEnvironmentUserAgent();
  469. var process = globalThis.process;
  470. var Deno = globalThis.Deno;
  471. var versions = process && process.versions || Deno && Deno.version;
  472. var v8 = versions && versions.v8;
  473. var match, version;
  474. if (v8) {
  475. match = v8.split('.');
  476. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  477. // but their correct versions are not interesting for us
  478. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  479. }
  480. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  481. // so check `userAgent` even if `.v8` exists, but 0
  482. if (!version && userAgent) {
  483. match = userAgent.match(/Edge\/(\d+)/);
  484. if (!match || match[1] >= 74) {
  485. match = userAgent.match(/Chrome\/(\d+)/);
  486. if (match) version = +match[1];
  487. }
  488. }
  489. environmentV8Version = version;
  490. return environmentV8Version;
  491. }
  492. var symbolConstructorDetection;
  493. var hasRequiredSymbolConstructorDetection;
  494. function requireSymbolConstructorDetection () {
  495. if (hasRequiredSymbolConstructorDetection) return symbolConstructorDetection;
  496. hasRequiredSymbolConstructorDetection = 1;
  497. /* eslint-disable es/no-symbol -- required for testing */
  498. var V8_VERSION = requireEnvironmentV8Version();
  499. var fails = requireFails();
  500. var globalThis = requireGlobalThis();
  501. var $String = globalThis.String;
  502. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  503. symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
  504. var symbol = Symbol('symbol detection');
  505. // Chrome 38 Symbol has incorrect toString conversion
  506. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  507. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  508. // of course, fail.
  509. return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
  510. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  511. !Symbol.sham && V8_VERSION && V8_VERSION < 41;
  512. });
  513. return symbolConstructorDetection;
  514. }
  515. var useSymbolAsUid;
  516. var hasRequiredUseSymbolAsUid;
  517. function requireUseSymbolAsUid () {
  518. if (hasRequiredUseSymbolAsUid) return useSymbolAsUid;
  519. hasRequiredUseSymbolAsUid = 1;
  520. /* eslint-disable es/no-symbol -- required for testing */
  521. var NATIVE_SYMBOL = requireSymbolConstructorDetection();
  522. useSymbolAsUid = NATIVE_SYMBOL
  523. && !Symbol.sham
  524. && typeof Symbol.iterator == 'symbol';
  525. return useSymbolAsUid;
  526. }
  527. var isSymbol;
  528. var hasRequiredIsSymbol;
  529. function requireIsSymbol () {
  530. if (hasRequiredIsSymbol) return isSymbol;
  531. hasRequiredIsSymbol = 1;
  532. var getBuiltIn = requireGetBuiltIn();
  533. var isCallable = requireIsCallable();
  534. var isPrototypeOf = requireObjectIsPrototypeOf();
  535. var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
  536. var $Object = Object;
  537. isSymbol = USE_SYMBOL_AS_UID ? function (it) {
  538. return typeof it == 'symbol';
  539. } : function (it) {
  540. var $Symbol = getBuiltIn('Symbol');
  541. return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
  542. };
  543. return isSymbol;
  544. }
  545. var tryToString;
  546. var hasRequiredTryToString;
  547. function requireTryToString () {
  548. if (hasRequiredTryToString) return tryToString;
  549. hasRequiredTryToString = 1;
  550. var $String = String;
  551. tryToString = function (argument) {
  552. try {
  553. return $String(argument);
  554. } catch (error) {
  555. return 'Object';
  556. }
  557. };
  558. return tryToString;
  559. }
  560. var aCallable;
  561. var hasRequiredACallable;
  562. function requireACallable () {
  563. if (hasRequiredACallable) return aCallable;
  564. hasRequiredACallable = 1;
  565. var isCallable = requireIsCallable();
  566. var tryToString = requireTryToString();
  567. var $TypeError = TypeError;
  568. // `Assert: IsCallable(argument) is true`
  569. aCallable = function (argument) {
  570. if (isCallable(argument)) return argument;
  571. throw new $TypeError(tryToString(argument) + ' is not a function');
  572. };
  573. return aCallable;
  574. }
  575. var getMethod;
  576. var hasRequiredGetMethod;
  577. function requireGetMethod () {
  578. if (hasRequiredGetMethod) return getMethod;
  579. hasRequiredGetMethod = 1;
  580. var aCallable = requireACallable();
  581. var isNullOrUndefined = requireIsNullOrUndefined();
  582. // `GetMethod` abstract operation
  583. // https://tc39.es/ecma262/#sec-getmethod
  584. getMethod = function (V, P) {
  585. var func = V[P];
  586. return isNullOrUndefined(func) ? undefined : aCallable(func);
  587. };
  588. return getMethod;
  589. }
  590. var ordinaryToPrimitive;
  591. var hasRequiredOrdinaryToPrimitive;
  592. function requireOrdinaryToPrimitive () {
  593. if (hasRequiredOrdinaryToPrimitive) return ordinaryToPrimitive;
  594. hasRequiredOrdinaryToPrimitive = 1;
  595. var call = requireFunctionCall();
  596. var isCallable = requireIsCallable();
  597. var isObject = requireIsObject();
  598. var $TypeError = TypeError;
  599. // `OrdinaryToPrimitive` abstract operation
  600. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  601. ordinaryToPrimitive = function (input, pref) {
  602. var fn, val;
  603. if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  604. if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
  605. if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  606. throw new $TypeError("Can't convert object to primitive value");
  607. };
  608. return ordinaryToPrimitive;
  609. }
  610. var sharedStore = {exports: {}};
  611. var isPure;
  612. var hasRequiredIsPure;
  613. function requireIsPure () {
  614. if (hasRequiredIsPure) return isPure;
  615. hasRequiredIsPure = 1;
  616. isPure = false;
  617. return isPure;
  618. }
  619. var defineGlobalProperty;
  620. var hasRequiredDefineGlobalProperty;
  621. function requireDefineGlobalProperty () {
  622. if (hasRequiredDefineGlobalProperty) return defineGlobalProperty;
  623. hasRequiredDefineGlobalProperty = 1;
  624. var globalThis = requireGlobalThis();
  625. // eslint-disable-next-line es/no-object-defineproperty -- safe
  626. var defineProperty = Object.defineProperty;
  627. defineGlobalProperty = function (key, value) {
  628. try {
  629. defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
  630. } catch (error) {
  631. globalThis[key] = value;
  632. } return value;
  633. };
  634. return defineGlobalProperty;
  635. }
  636. var hasRequiredSharedStore;
  637. function requireSharedStore () {
  638. if (hasRequiredSharedStore) return sharedStore.exports;
  639. hasRequiredSharedStore = 1;
  640. var IS_PURE = requireIsPure();
  641. var globalThis = requireGlobalThis();
  642. var defineGlobalProperty = requireDefineGlobalProperty();
  643. var SHARED = '__core-js_shared__';
  644. var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
  645. (store.versions || (store.versions = [])).push({
  646. version: '3.38.1',
  647. mode: IS_PURE ? 'pure' : 'global',
  648. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  649. license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
  650. source: 'https://github.com/zloirock/core-js'
  651. });
  652. return sharedStore.exports;
  653. }
  654. var shared;
  655. var hasRequiredShared;
  656. function requireShared () {
  657. if (hasRequiredShared) return shared;
  658. hasRequiredShared = 1;
  659. var store = requireSharedStore();
  660. shared = function (key, value) {
  661. return store[key] || (store[key] = value || {});
  662. };
  663. return shared;
  664. }
  665. var toObject;
  666. var hasRequiredToObject;
  667. function requireToObject () {
  668. if (hasRequiredToObject) return toObject;
  669. hasRequiredToObject = 1;
  670. var requireObjectCoercible = requireRequireObjectCoercible();
  671. var $Object = Object;
  672. // `ToObject` abstract operation
  673. // https://tc39.es/ecma262/#sec-toobject
  674. toObject = function (argument) {
  675. return $Object(requireObjectCoercible(argument));
  676. };
  677. return toObject;
  678. }
  679. var hasOwnProperty_1;
  680. var hasRequiredHasOwnProperty;
  681. function requireHasOwnProperty () {
  682. if (hasRequiredHasOwnProperty) return hasOwnProperty_1;
  683. hasRequiredHasOwnProperty = 1;
  684. var uncurryThis = requireFunctionUncurryThis();
  685. var toObject = requireToObject();
  686. var hasOwnProperty = uncurryThis({}.hasOwnProperty);
  687. // `HasOwnProperty` abstract operation
  688. // https://tc39.es/ecma262/#sec-hasownproperty
  689. // eslint-disable-next-line es/no-object-hasown -- safe
  690. hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  691. return hasOwnProperty(toObject(it), key);
  692. };
  693. return hasOwnProperty_1;
  694. }
  695. var uid;
  696. var hasRequiredUid;
  697. function requireUid () {
  698. if (hasRequiredUid) return uid;
  699. hasRequiredUid = 1;
  700. var uncurryThis = requireFunctionUncurryThis();
  701. var id = 0;
  702. var postfix = Math.random();
  703. var toString = uncurryThis(1.0.toString);
  704. uid = function (key) {
  705. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
  706. };
  707. return uid;
  708. }
  709. var wellKnownSymbol;
  710. var hasRequiredWellKnownSymbol;
  711. function requireWellKnownSymbol () {
  712. if (hasRequiredWellKnownSymbol) return wellKnownSymbol;
  713. hasRequiredWellKnownSymbol = 1;
  714. var globalThis = requireGlobalThis();
  715. var shared = requireShared();
  716. var hasOwn = requireHasOwnProperty();
  717. var uid = requireUid();
  718. var NATIVE_SYMBOL = requireSymbolConstructorDetection();
  719. var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
  720. var Symbol = globalThis.Symbol;
  721. var WellKnownSymbolsStore = shared('wks');
  722. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
  723. wellKnownSymbol = function (name) {
  724. if (!hasOwn(WellKnownSymbolsStore, name)) {
  725. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
  726. ? Symbol[name]
  727. : createWellKnownSymbol('Symbol.' + name);
  728. } return WellKnownSymbolsStore[name];
  729. };
  730. return wellKnownSymbol;
  731. }
  732. var toPrimitive;
  733. var hasRequiredToPrimitive;
  734. function requireToPrimitive () {
  735. if (hasRequiredToPrimitive) return toPrimitive;
  736. hasRequiredToPrimitive = 1;
  737. var call = requireFunctionCall();
  738. var isObject = requireIsObject();
  739. var isSymbol = requireIsSymbol();
  740. var getMethod = requireGetMethod();
  741. var ordinaryToPrimitive = requireOrdinaryToPrimitive();
  742. var wellKnownSymbol = requireWellKnownSymbol();
  743. var $TypeError = TypeError;
  744. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  745. // `ToPrimitive` abstract operation
  746. // https://tc39.es/ecma262/#sec-toprimitive
  747. toPrimitive = function (input, pref) {
  748. if (!isObject(input) || isSymbol(input)) return input;
  749. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  750. var result;
  751. if (exoticToPrim) {
  752. if (pref === undefined) pref = 'default';
  753. result = call(exoticToPrim, input, pref);
  754. if (!isObject(result) || isSymbol(result)) return result;
  755. throw new $TypeError("Can't convert object to primitive value");
  756. }
  757. if (pref === undefined) pref = 'number';
  758. return ordinaryToPrimitive(input, pref);
  759. };
  760. return toPrimitive;
  761. }
  762. var toPropertyKey;
  763. var hasRequiredToPropertyKey;
  764. function requireToPropertyKey () {
  765. if (hasRequiredToPropertyKey) return toPropertyKey;
  766. hasRequiredToPropertyKey = 1;
  767. var toPrimitive = requireToPrimitive();
  768. var isSymbol = requireIsSymbol();
  769. // `ToPropertyKey` abstract operation
  770. // https://tc39.es/ecma262/#sec-topropertykey
  771. toPropertyKey = function (argument) {
  772. var key = toPrimitive(argument, 'string');
  773. return isSymbol(key) ? key : key + '';
  774. };
  775. return toPropertyKey;
  776. }
  777. var documentCreateElement;
  778. var hasRequiredDocumentCreateElement;
  779. function requireDocumentCreateElement () {
  780. if (hasRequiredDocumentCreateElement) return documentCreateElement;
  781. hasRequiredDocumentCreateElement = 1;
  782. var globalThis = requireGlobalThis();
  783. var isObject = requireIsObject();
  784. var document = globalThis.document;
  785. // typeof document.createElement is 'object' in old IE
  786. var EXISTS = isObject(document) && isObject(document.createElement);
  787. documentCreateElement = function (it) {
  788. return EXISTS ? document.createElement(it) : {};
  789. };
  790. return documentCreateElement;
  791. }
  792. var ie8DomDefine;
  793. var hasRequiredIe8DomDefine;
  794. function requireIe8DomDefine () {
  795. if (hasRequiredIe8DomDefine) return ie8DomDefine;
  796. hasRequiredIe8DomDefine = 1;
  797. var DESCRIPTORS = requireDescriptors();
  798. var fails = requireFails();
  799. var createElement = requireDocumentCreateElement();
  800. // Thanks to IE8 for its funny defineProperty
  801. ie8DomDefine = !DESCRIPTORS && !fails(function () {
  802. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  803. return Object.defineProperty(createElement('div'), 'a', {
  804. get: function () { return 7; }
  805. }).a !== 7;
  806. });
  807. return ie8DomDefine;
  808. }
  809. var hasRequiredObjectGetOwnPropertyDescriptor;
  810. function requireObjectGetOwnPropertyDescriptor () {
  811. if (hasRequiredObjectGetOwnPropertyDescriptor) return objectGetOwnPropertyDescriptor;
  812. hasRequiredObjectGetOwnPropertyDescriptor = 1;
  813. var DESCRIPTORS = requireDescriptors();
  814. var call = requireFunctionCall();
  815. var propertyIsEnumerableModule = requireObjectPropertyIsEnumerable();
  816. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  817. var toIndexedObject = requireToIndexedObject();
  818. var toPropertyKey = requireToPropertyKey();
  819. var hasOwn = requireHasOwnProperty();
  820. var IE8_DOM_DEFINE = requireIe8DomDefine();
  821. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  822. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  823. // `Object.getOwnPropertyDescriptor` method
  824. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  825. objectGetOwnPropertyDescriptor.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  826. O = toIndexedObject(O);
  827. P = toPropertyKey(P);
  828. if (IE8_DOM_DEFINE) try {
  829. return $getOwnPropertyDescriptor(O, P);
  830. } catch (error) { /* empty */ }
  831. if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
  832. };
  833. return objectGetOwnPropertyDescriptor;
  834. }
  835. var objectDefineProperty = {};
  836. var v8PrototypeDefineBug;
  837. var hasRequiredV8PrototypeDefineBug;
  838. function requireV8PrototypeDefineBug () {
  839. if (hasRequiredV8PrototypeDefineBug) return v8PrototypeDefineBug;
  840. hasRequiredV8PrototypeDefineBug = 1;
  841. var DESCRIPTORS = requireDescriptors();
  842. var fails = requireFails();
  843. // V8 ~ Chrome 36-
  844. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  845. v8PrototypeDefineBug = DESCRIPTORS && fails(function () {
  846. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  847. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  848. value: 42,
  849. writable: false
  850. }).prototype !== 42;
  851. });
  852. return v8PrototypeDefineBug;
  853. }
  854. var anObject;
  855. var hasRequiredAnObject;
  856. function requireAnObject () {
  857. if (hasRequiredAnObject) return anObject;
  858. hasRequiredAnObject = 1;
  859. var isObject = requireIsObject();
  860. var $String = String;
  861. var $TypeError = TypeError;
  862. // `Assert: Type(argument) is Object`
  863. anObject = function (argument) {
  864. if (isObject(argument)) return argument;
  865. throw new $TypeError($String(argument) + ' is not an object');
  866. };
  867. return anObject;
  868. }
  869. var hasRequiredObjectDefineProperty;
  870. function requireObjectDefineProperty () {
  871. if (hasRequiredObjectDefineProperty) return objectDefineProperty;
  872. hasRequiredObjectDefineProperty = 1;
  873. var DESCRIPTORS = requireDescriptors();
  874. var IE8_DOM_DEFINE = requireIe8DomDefine();
  875. var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
  876. var anObject = requireAnObject();
  877. var toPropertyKey = requireToPropertyKey();
  878. var $TypeError = TypeError;
  879. // eslint-disable-next-line es/no-object-defineproperty -- safe
  880. var $defineProperty = Object.defineProperty;
  881. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  882. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  883. var ENUMERABLE = 'enumerable';
  884. var CONFIGURABLE = 'configurable';
  885. var WRITABLE = 'writable';
  886. // `Object.defineProperty` method
  887. // https://tc39.es/ecma262/#sec-object.defineproperty
  888. objectDefineProperty.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  889. anObject(O);
  890. P = toPropertyKey(P);
  891. anObject(Attributes);
  892. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  893. var current = $getOwnPropertyDescriptor(O, P);
  894. if (current && current[WRITABLE]) {
  895. O[P] = Attributes.value;
  896. Attributes = {
  897. configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
  898. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  899. writable: false
  900. };
  901. }
  902. } return $defineProperty(O, P, Attributes);
  903. } : $defineProperty : function defineProperty(O, P, Attributes) {
  904. anObject(O);
  905. P = toPropertyKey(P);
  906. anObject(Attributes);
  907. if (IE8_DOM_DEFINE) try {
  908. return $defineProperty(O, P, Attributes);
  909. } catch (error) { /* empty */ }
  910. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
  911. if ('value' in Attributes) O[P] = Attributes.value;
  912. return O;
  913. };
  914. return objectDefineProperty;
  915. }
  916. var createNonEnumerableProperty;
  917. var hasRequiredCreateNonEnumerableProperty;
  918. function requireCreateNonEnumerableProperty () {
  919. if (hasRequiredCreateNonEnumerableProperty) return createNonEnumerableProperty;
  920. hasRequiredCreateNonEnumerableProperty = 1;
  921. var DESCRIPTORS = requireDescriptors();
  922. var definePropertyModule = requireObjectDefineProperty();
  923. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  924. createNonEnumerableProperty = DESCRIPTORS ? function (object, key, value) {
  925. return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
  926. } : function (object, key, value) {
  927. object[key] = value;
  928. return object;
  929. };
  930. return createNonEnumerableProperty;
  931. }
  932. var makeBuiltIn = {exports: {}};
  933. var functionName;
  934. var hasRequiredFunctionName;
  935. function requireFunctionName () {
  936. if (hasRequiredFunctionName) return functionName;
  937. hasRequiredFunctionName = 1;
  938. var DESCRIPTORS = requireDescriptors();
  939. var hasOwn = requireHasOwnProperty();
  940. var FunctionPrototype = Function.prototype;
  941. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  942. var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
  943. var EXISTS = hasOwn(FunctionPrototype, 'name');
  944. // additional protection from minified / mangled / dropped function names
  945. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  946. var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
  947. functionName = {
  948. EXISTS: EXISTS,
  949. PROPER: PROPER,
  950. CONFIGURABLE: CONFIGURABLE
  951. };
  952. return functionName;
  953. }
  954. var inspectSource;
  955. var hasRequiredInspectSource;
  956. function requireInspectSource () {
  957. if (hasRequiredInspectSource) return inspectSource;
  958. hasRequiredInspectSource = 1;
  959. var uncurryThis = requireFunctionUncurryThis();
  960. var isCallable = requireIsCallable();
  961. var store = requireSharedStore();
  962. var functionToString = uncurryThis(Function.toString);
  963. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  964. if (!isCallable(store.inspectSource)) {
  965. store.inspectSource = function (it) {
  966. return functionToString(it);
  967. };
  968. }
  969. inspectSource = store.inspectSource;
  970. return inspectSource;
  971. }
  972. var weakMapBasicDetection;
  973. var hasRequiredWeakMapBasicDetection;
  974. function requireWeakMapBasicDetection () {
  975. if (hasRequiredWeakMapBasicDetection) return weakMapBasicDetection;
  976. hasRequiredWeakMapBasicDetection = 1;
  977. var globalThis = requireGlobalThis();
  978. var isCallable = requireIsCallable();
  979. var WeakMap = globalThis.WeakMap;
  980. weakMapBasicDetection = isCallable(WeakMap) && /native code/.test(String(WeakMap));
  981. return weakMapBasicDetection;
  982. }
  983. var sharedKey;
  984. var hasRequiredSharedKey;
  985. function requireSharedKey () {
  986. if (hasRequiredSharedKey) return sharedKey;
  987. hasRequiredSharedKey = 1;
  988. var shared = requireShared();
  989. var uid = requireUid();
  990. var keys = shared('keys');
  991. sharedKey = function (key) {
  992. return keys[key] || (keys[key] = uid(key));
  993. };
  994. return sharedKey;
  995. }
  996. var hiddenKeys;
  997. var hasRequiredHiddenKeys;
  998. function requireHiddenKeys () {
  999. if (hasRequiredHiddenKeys) return hiddenKeys;
  1000. hasRequiredHiddenKeys = 1;
  1001. hiddenKeys = {};
  1002. return hiddenKeys;
  1003. }
  1004. var internalState;
  1005. var hasRequiredInternalState;
  1006. function requireInternalState () {
  1007. if (hasRequiredInternalState) return internalState;
  1008. hasRequiredInternalState = 1;
  1009. var NATIVE_WEAK_MAP = requireWeakMapBasicDetection();
  1010. var globalThis = requireGlobalThis();
  1011. var isObject = requireIsObject();
  1012. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  1013. var hasOwn = requireHasOwnProperty();
  1014. var shared = requireSharedStore();
  1015. var sharedKey = requireSharedKey();
  1016. var hiddenKeys = requireHiddenKeys();
  1017. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  1018. var TypeError = globalThis.TypeError;
  1019. var WeakMap = globalThis.WeakMap;
  1020. var set, get, has;
  1021. var enforce = function (it) {
  1022. return has(it) ? get(it) : set(it, {});
  1023. };
  1024. var getterFor = function (TYPE) {
  1025. return function (it) {
  1026. var state;
  1027. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  1028. throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
  1029. } return state;
  1030. };
  1031. };
  1032. if (NATIVE_WEAK_MAP || shared.state) {
  1033. var store = shared.state || (shared.state = new WeakMap());
  1034. /* eslint-disable no-self-assign -- prototype methods protection */
  1035. store.get = store.get;
  1036. store.has = store.has;
  1037. store.set = store.set;
  1038. /* eslint-enable no-self-assign -- prototype methods protection */
  1039. set = function (it, metadata) {
  1040. if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  1041. metadata.facade = it;
  1042. store.set(it, metadata);
  1043. return metadata;
  1044. };
  1045. get = function (it) {
  1046. return store.get(it) || {};
  1047. };
  1048. has = function (it) {
  1049. return store.has(it);
  1050. };
  1051. } else {
  1052. var STATE = sharedKey('state');
  1053. hiddenKeys[STATE] = true;
  1054. set = function (it, metadata) {
  1055. if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  1056. metadata.facade = it;
  1057. createNonEnumerableProperty(it, STATE, metadata);
  1058. return metadata;
  1059. };
  1060. get = function (it) {
  1061. return hasOwn(it, STATE) ? it[STATE] : {};
  1062. };
  1063. has = function (it) {
  1064. return hasOwn(it, STATE);
  1065. };
  1066. }
  1067. internalState = {
  1068. set: set,
  1069. get: get,
  1070. has: has,
  1071. enforce: enforce,
  1072. getterFor: getterFor
  1073. };
  1074. return internalState;
  1075. }
  1076. var hasRequiredMakeBuiltIn;
  1077. function requireMakeBuiltIn () {
  1078. if (hasRequiredMakeBuiltIn) return makeBuiltIn.exports;
  1079. hasRequiredMakeBuiltIn = 1;
  1080. var uncurryThis = requireFunctionUncurryThis();
  1081. var fails = requireFails();
  1082. var isCallable = requireIsCallable();
  1083. var hasOwn = requireHasOwnProperty();
  1084. var DESCRIPTORS = requireDescriptors();
  1085. var CONFIGURABLE_FUNCTION_NAME = requireFunctionName().CONFIGURABLE;
  1086. var inspectSource = requireInspectSource();
  1087. var InternalStateModule = requireInternalState();
  1088. var enforceInternalState = InternalStateModule.enforce;
  1089. var getInternalState = InternalStateModule.get;
  1090. var $String = String;
  1091. // eslint-disable-next-line es/no-object-defineproperty -- safe
  1092. var defineProperty = Object.defineProperty;
  1093. var stringSlice = uncurryThis(''.slice);
  1094. var replace = uncurryThis(''.replace);
  1095. var join = uncurryThis([].join);
  1096. var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
  1097. return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  1098. });
  1099. var TEMPLATE = String(String).split('String');
  1100. var makeBuiltIn$1 = makeBuiltIn.exports = function (value, name, options) {
  1101. if (stringSlice($String(name), 0, 7) === 'Symbol(') {
  1102. name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  1103. }
  1104. if (options && options.getter) name = 'get ' + name;
  1105. if (options && options.setter) name = 'set ' + name;
  1106. if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  1107. if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
  1108. else value.name = name;
  1109. }
  1110. if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
  1111. defineProperty(value, 'length', { value: options.arity });
  1112. }
  1113. try {
  1114. if (options && hasOwn(options, 'constructor') && options.constructor) {
  1115. if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
  1116. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  1117. } else if (value.prototype) value.prototype = undefined;
  1118. } catch (error) { /* empty */ }
  1119. var state = enforceInternalState(value);
  1120. if (!hasOwn(state, 'source')) {
  1121. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  1122. } return value;
  1123. };
  1124. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  1125. // eslint-disable-next-line no-extend-native -- required
  1126. Function.prototype.toString = makeBuiltIn$1(function toString() {
  1127. return isCallable(this) && getInternalState(this).source || inspectSource(this);
  1128. }, 'toString');
  1129. return makeBuiltIn.exports;
  1130. }
  1131. var defineBuiltIn;
  1132. var hasRequiredDefineBuiltIn;
  1133. function requireDefineBuiltIn () {
  1134. if (hasRequiredDefineBuiltIn) return defineBuiltIn;
  1135. hasRequiredDefineBuiltIn = 1;
  1136. var isCallable = requireIsCallable();
  1137. var definePropertyModule = requireObjectDefineProperty();
  1138. var makeBuiltIn = requireMakeBuiltIn();
  1139. var defineGlobalProperty = requireDefineGlobalProperty();
  1140. defineBuiltIn = function (O, key, value, options) {
  1141. if (!options) options = {};
  1142. var simple = options.enumerable;
  1143. var name = options.name !== undefined ? options.name : key;
  1144. if (isCallable(value)) makeBuiltIn(value, name, options);
  1145. if (options.global) {
  1146. if (simple) O[key] = value;
  1147. else defineGlobalProperty(key, value);
  1148. } else {
  1149. try {
  1150. if (!options.unsafe) delete O[key];
  1151. else if (O[key]) simple = true;
  1152. } catch (error) { /* empty */ }
  1153. if (simple) O[key] = value;
  1154. else definePropertyModule.f(O, key, {
  1155. value: value,
  1156. enumerable: false,
  1157. configurable: !options.nonConfigurable,
  1158. writable: !options.nonWritable
  1159. });
  1160. } return O;
  1161. };
  1162. return defineBuiltIn;
  1163. }
  1164. var objectGetOwnPropertyNames = {};
  1165. var mathTrunc;
  1166. var hasRequiredMathTrunc;
  1167. function requireMathTrunc () {
  1168. if (hasRequiredMathTrunc) return mathTrunc;
  1169. hasRequiredMathTrunc = 1;
  1170. var ceil = Math.ceil;
  1171. var floor = Math.floor;
  1172. // `Math.trunc` method
  1173. // https://tc39.es/ecma262/#sec-math.trunc
  1174. // eslint-disable-next-line es/no-math-trunc -- safe
  1175. mathTrunc = Math.trunc || function trunc(x) {
  1176. var n = +x;
  1177. return (n > 0 ? floor : ceil)(n);
  1178. };
  1179. return mathTrunc;
  1180. }
  1181. var toIntegerOrInfinity;
  1182. var hasRequiredToIntegerOrInfinity;
  1183. function requireToIntegerOrInfinity () {
  1184. if (hasRequiredToIntegerOrInfinity) return toIntegerOrInfinity;
  1185. hasRequiredToIntegerOrInfinity = 1;
  1186. var trunc = requireMathTrunc();
  1187. // `ToIntegerOrInfinity` abstract operation
  1188. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  1189. toIntegerOrInfinity = function (argument) {
  1190. var number = +argument;
  1191. // eslint-disable-next-line no-self-compare -- NaN check
  1192. return number !== number || number === 0 ? 0 : trunc(number);
  1193. };
  1194. return toIntegerOrInfinity;
  1195. }
  1196. var toAbsoluteIndex;
  1197. var hasRequiredToAbsoluteIndex;
  1198. function requireToAbsoluteIndex () {
  1199. if (hasRequiredToAbsoluteIndex) return toAbsoluteIndex;
  1200. hasRequiredToAbsoluteIndex = 1;
  1201. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  1202. var max = Math.max;
  1203. var min = Math.min;
  1204. // Helper for a popular repeating case of the spec:
  1205. // Let integer be ? ToInteger(index).
  1206. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  1207. toAbsoluteIndex = function (index, length) {
  1208. var integer = toIntegerOrInfinity(index);
  1209. return integer < 0 ? max(integer + length, 0) : min(integer, length);
  1210. };
  1211. return toAbsoluteIndex;
  1212. }
  1213. var toLength;
  1214. var hasRequiredToLength;
  1215. function requireToLength () {
  1216. if (hasRequiredToLength) return toLength;
  1217. hasRequiredToLength = 1;
  1218. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  1219. var min = Math.min;
  1220. // `ToLength` abstract operation
  1221. // https://tc39.es/ecma262/#sec-tolength
  1222. toLength = function (argument) {
  1223. var len = toIntegerOrInfinity(argument);
  1224. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  1225. };
  1226. return toLength;
  1227. }
  1228. var lengthOfArrayLike;
  1229. var hasRequiredLengthOfArrayLike;
  1230. function requireLengthOfArrayLike () {
  1231. if (hasRequiredLengthOfArrayLike) return lengthOfArrayLike;
  1232. hasRequiredLengthOfArrayLike = 1;
  1233. var toLength = requireToLength();
  1234. // `LengthOfArrayLike` abstract operation
  1235. // https://tc39.es/ecma262/#sec-lengthofarraylike
  1236. lengthOfArrayLike = function (obj) {
  1237. return toLength(obj.length);
  1238. };
  1239. return lengthOfArrayLike;
  1240. }
  1241. var arrayIncludes;
  1242. var hasRequiredArrayIncludes;
  1243. function requireArrayIncludes () {
  1244. if (hasRequiredArrayIncludes) return arrayIncludes;
  1245. hasRequiredArrayIncludes = 1;
  1246. var toIndexedObject = requireToIndexedObject();
  1247. var toAbsoluteIndex = requireToAbsoluteIndex();
  1248. var lengthOfArrayLike = requireLengthOfArrayLike();
  1249. // `Array.prototype.{ indexOf, includes }` methods implementation
  1250. var createMethod = function (IS_INCLUDES) {
  1251. return function ($this, el, fromIndex) {
  1252. var O = toIndexedObject($this);
  1253. var length = lengthOfArrayLike(O);
  1254. if (length === 0) return !IS_INCLUDES && -1;
  1255. var index = toAbsoluteIndex(fromIndex, length);
  1256. var value;
  1257. // Array#includes uses SameValueZero equality algorithm
  1258. // eslint-disable-next-line no-self-compare -- NaN check
  1259. if (IS_INCLUDES && el !== el) while (length > index) {
  1260. value = O[index++];
  1261. // eslint-disable-next-line no-self-compare -- NaN check
  1262. if (value !== value) return true;
  1263. // Array#indexOf ignores holes, Array#includes - not
  1264. } else for (;length > index; index++) {
  1265. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  1266. } return !IS_INCLUDES && -1;
  1267. };
  1268. };
  1269. arrayIncludes = {
  1270. // `Array.prototype.includes` method
  1271. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1272. includes: createMethod(true),
  1273. // `Array.prototype.indexOf` method
  1274. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1275. indexOf: createMethod(false)
  1276. };
  1277. return arrayIncludes;
  1278. }
  1279. var objectKeysInternal;
  1280. var hasRequiredObjectKeysInternal;
  1281. function requireObjectKeysInternal () {
  1282. if (hasRequiredObjectKeysInternal) return objectKeysInternal;
  1283. hasRequiredObjectKeysInternal = 1;
  1284. var uncurryThis = requireFunctionUncurryThis();
  1285. var hasOwn = requireHasOwnProperty();
  1286. var toIndexedObject = requireToIndexedObject();
  1287. var indexOf = requireArrayIncludes().indexOf;
  1288. var hiddenKeys = requireHiddenKeys();
  1289. var push = uncurryThis([].push);
  1290. objectKeysInternal = function (object, names) {
  1291. var O = toIndexedObject(object);
  1292. var i = 0;
  1293. var result = [];
  1294. var key;
  1295. for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
  1296. // Don't enum bug & hidden keys
  1297. while (names.length > i) if (hasOwn(O, key = names[i++])) {
  1298. ~indexOf(result, key) || push(result, key);
  1299. }
  1300. return result;
  1301. };
  1302. return objectKeysInternal;
  1303. }
  1304. var enumBugKeys;
  1305. var hasRequiredEnumBugKeys;
  1306. function requireEnumBugKeys () {
  1307. if (hasRequiredEnumBugKeys) return enumBugKeys;
  1308. hasRequiredEnumBugKeys = 1;
  1309. // IE8- don't enum bug keys
  1310. enumBugKeys = [
  1311. 'constructor',
  1312. 'hasOwnProperty',
  1313. 'isPrototypeOf',
  1314. 'propertyIsEnumerable',
  1315. 'toLocaleString',
  1316. 'toString',
  1317. 'valueOf'
  1318. ];
  1319. return enumBugKeys;
  1320. }
  1321. var hasRequiredObjectGetOwnPropertyNames;
  1322. function requireObjectGetOwnPropertyNames () {
  1323. if (hasRequiredObjectGetOwnPropertyNames) return objectGetOwnPropertyNames;
  1324. hasRequiredObjectGetOwnPropertyNames = 1;
  1325. var internalObjectKeys = requireObjectKeysInternal();
  1326. var enumBugKeys = requireEnumBugKeys();
  1327. var hiddenKeys = enumBugKeys.concat('length', 'prototype');
  1328. // `Object.getOwnPropertyNames` method
  1329. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  1330. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  1331. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  1332. return internalObjectKeys(O, hiddenKeys);
  1333. };
  1334. return objectGetOwnPropertyNames;
  1335. }
  1336. var objectGetOwnPropertySymbols = {};
  1337. var hasRequiredObjectGetOwnPropertySymbols;
  1338. function requireObjectGetOwnPropertySymbols () {
  1339. if (hasRequiredObjectGetOwnPropertySymbols) return objectGetOwnPropertySymbols;
  1340. hasRequiredObjectGetOwnPropertySymbols = 1;
  1341. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  1342. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  1343. return objectGetOwnPropertySymbols;
  1344. }
  1345. var ownKeys;
  1346. var hasRequiredOwnKeys;
  1347. function requireOwnKeys () {
  1348. if (hasRequiredOwnKeys) return ownKeys;
  1349. hasRequiredOwnKeys = 1;
  1350. var getBuiltIn = requireGetBuiltIn();
  1351. var uncurryThis = requireFunctionUncurryThis();
  1352. var getOwnPropertyNamesModule = requireObjectGetOwnPropertyNames();
  1353. var getOwnPropertySymbolsModule = requireObjectGetOwnPropertySymbols();
  1354. var anObject = requireAnObject();
  1355. var concat = uncurryThis([].concat);
  1356. // all object keys, includes non-enumerable and symbols
  1357. ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  1358. var keys = getOwnPropertyNamesModule.f(anObject(it));
  1359. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1360. return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
  1361. };
  1362. return ownKeys;
  1363. }
  1364. var copyConstructorProperties;
  1365. var hasRequiredCopyConstructorProperties;
  1366. function requireCopyConstructorProperties () {
  1367. if (hasRequiredCopyConstructorProperties) return copyConstructorProperties;
  1368. hasRequiredCopyConstructorProperties = 1;
  1369. var hasOwn = requireHasOwnProperty();
  1370. var ownKeys = requireOwnKeys();
  1371. var getOwnPropertyDescriptorModule = requireObjectGetOwnPropertyDescriptor();
  1372. var definePropertyModule = requireObjectDefineProperty();
  1373. copyConstructorProperties = function (target, source, exceptions) {
  1374. var keys = ownKeys(source);
  1375. var defineProperty = definePropertyModule.f;
  1376. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  1377. for (var i = 0; i < keys.length; i++) {
  1378. var key = keys[i];
  1379. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  1380. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  1381. }
  1382. }
  1383. };
  1384. return copyConstructorProperties;
  1385. }
  1386. var isForced_1;
  1387. var hasRequiredIsForced;
  1388. function requireIsForced () {
  1389. if (hasRequiredIsForced) return isForced_1;
  1390. hasRequiredIsForced = 1;
  1391. var fails = requireFails();
  1392. var isCallable = requireIsCallable();
  1393. var replacement = /#|\.prototype\./;
  1394. var isForced = function (feature, detection) {
  1395. var value = data[normalize(feature)];
  1396. return value === POLYFILL ? true
  1397. : value === NATIVE ? false
  1398. : isCallable(detection) ? fails(detection)
  1399. : !!detection;
  1400. };
  1401. var normalize = isForced.normalize = function (string) {
  1402. return String(string).replace(replacement, '.').toLowerCase();
  1403. };
  1404. var data = isForced.data = {};
  1405. var NATIVE = isForced.NATIVE = 'N';
  1406. var POLYFILL = isForced.POLYFILL = 'P';
  1407. isForced_1 = isForced;
  1408. return isForced_1;
  1409. }
  1410. var _export;
  1411. var hasRequired_export;
  1412. function require_export () {
  1413. if (hasRequired_export) return _export;
  1414. hasRequired_export = 1;
  1415. var globalThis = requireGlobalThis();
  1416. var getOwnPropertyDescriptor = requireObjectGetOwnPropertyDescriptor().f;
  1417. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  1418. var defineBuiltIn = requireDefineBuiltIn();
  1419. var defineGlobalProperty = requireDefineGlobalProperty();
  1420. var copyConstructorProperties = requireCopyConstructorProperties();
  1421. var isForced = requireIsForced();
  1422. /*
  1423. options.target - name of the target object
  1424. options.global - target is the global object
  1425. options.stat - export as static methods of target
  1426. options.proto - export as prototype methods of target
  1427. options.real - real prototype method for the `pure` version
  1428. options.forced - export even if the native feature is available
  1429. options.bind - bind methods to the target, required for the `pure` version
  1430. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  1431. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  1432. options.sham - add a flag to not completely full polyfills
  1433. options.enumerable - export as enumerable property
  1434. options.dontCallGetSet - prevent calling a getter on target
  1435. options.name - the .name of the function if it does not match the key
  1436. */
  1437. _export = function (options, source) {
  1438. var TARGET = options.target;
  1439. var GLOBAL = options.global;
  1440. var STATIC = options.stat;
  1441. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  1442. if (GLOBAL) {
  1443. target = globalThis;
  1444. } else if (STATIC) {
  1445. target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});
  1446. } else {
  1447. target = globalThis[TARGET] && globalThis[TARGET].prototype;
  1448. }
  1449. if (target) for (key in source) {
  1450. sourceProperty = source[key];
  1451. if (options.dontCallGetSet) {
  1452. descriptor = getOwnPropertyDescriptor(target, key);
  1453. targetProperty = descriptor && descriptor.value;
  1454. } else targetProperty = target[key];
  1455. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  1456. // contained in target
  1457. if (!FORCED && targetProperty !== undefined) {
  1458. if (typeof sourceProperty == typeof targetProperty) continue;
  1459. copyConstructorProperties(sourceProperty, targetProperty);
  1460. }
  1461. // add a flag to not completely full polyfills
  1462. if (options.sham || (targetProperty && targetProperty.sham)) {
  1463. createNonEnumerableProperty(sourceProperty, 'sham', true);
  1464. }
  1465. defineBuiltIn(target, key, sourceProperty, options);
  1466. }
  1467. };
  1468. return _export;
  1469. }
  1470. var isArray;
  1471. var hasRequiredIsArray;
  1472. function requireIsArray () {
  1473. if (hasRequiredIsArray) return isArray;
  1474. hasRequiredIsArray = 1;
  1475. var classof = requireClassofRaw();
  1476. // `IsArray` abstract operation
  1477. // https://tc39.es/ecma262/#sec-isarray
  1478. // eslint-disable-next-line es/no-array-isarray -- safe
  1479. isArray = Array.isArray || function isArray(argument) {
  1480. return classof(argument) === 'Array';
  1481. };
  1482. return isArray;
  1483. }
  1484. var doesNotExceedSafeInteger;
  1485. var hasRequiredDoesNotExceedSafeInteger;
  1486. function requireDoesNotExceedSafeInteger () {
  1487. if (hasRequiredDoesNotExceedSafeInteger) return doesNotExceedSafeInteger;
  1488. hasRequiredDoesNotExceedSafeInteger = 1;
  1489. var $TypeError = TypeError;
  1490. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  1491. doesNotExceedSafeInteger = function (it) {
  1492. if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
  1493. return it;
  1494. };
  1495. return doesNotExceedSafeInteger;
  1496. }
  1497. var createProperty;
  1498. var hasRequiredCreateProperty;
  1499. function requireCreateProperty () {
  1500. if (hasRequiredCreateProperty) return createProperty;
  1501. hasRequiredCreateProperty = 1;
  1502. var DESCRIPTORS = requireDescriptors();
  1503. var definePropertyModule = requireObjectDefineProperty();
  1504. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  1505. createProperty = function (object, key, value) {
  1506. if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
  1507. else object[key] = value;
  1508. };
  1509. return createProperty;
  1510. }
  1511. var toStringTagSupport;
  1512. var hasRequiredToStringTagSupport;
  1513. function requireToStringTagSupport () {
  1514. if (hasRequiredToStringTagSupport) return toStringTagSupport;
  1515. hasRequiredToStringTagSupport = 1;
  1516. var wellKnownSymbol = requireWellKnownSymbol();
  1517. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  1518. var test = {};
  1519. test[TO_STRING_TAG] = 'z';
  1520. toStringTagSupport = String(test) === '[object z]';
  1521. return toStringTagSupport;
  1522. }
  1523. var classof;
  1524. var hasRequiredClassof;
  1525. function requireClassof () {
  1526. if (hasRequiredClassof) return classof;
  1527. hasRequiredClassof = 1;
  1528. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  1529. var isCallable = requireIsCallable();
  1530. var classofRaw = requireClassofRaw();
  1531. var wellKnownSymbol = requireWellKnownSymbol();
  1532. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  1533. var $Object = Object;
  1534. // ES3 wrong here
  1535. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
  1536. // fallback for IE11 Script Access Denied error
  1537. var tryGet = function (it, key) {
  1538. try {
  1539. return it[key];
  1540. } catch (error) { /* empty */ }
  1541. };
  1542. // getting tag from ES6+ `Object.prototype.toString`
  1543. classof = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
  1544. var O, tag, result;
  1545. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1546. // @@toStringTag case
  1547. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  1548. // builtinTag case
  1549. : CORRECT_ARGUMENTS ? classofRaw(O)
  1550. // ES3 arguments fallback
  1551. : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
  1552. };
  1553. return classof;
  1554. }
  1555. var isConstructor;
  1556. var hasRequiredIsConstructor;
  1557. function requireIsConstructor () {
  1558. if (hasRequiredIsConstructor) return isConstructor;
  1559. hasRequiredIsConstructor = 1;
  1560. var uncurryThis = requireFunctionUncurryThis();
  1561. var fails = requireFails();
  1562. var isCallable = requireIsCallable();
  1563. var classof = requireClassof();
  1564. var getBuiltIn = requireGetBuiltIn();
  1565. var inspectSource = requireInspectSource();
  1566. var noop = function () { /* empty */ };
  1567. var construct = getBuiltIn('Reflect', 'construct');
  1568. var constructorRegExp = /^\s*(?:class|function)\b/;
  1569. var exec = uncurryThis(constructorRegExp.exec);
  1570. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1571. var isConstructorModern = function isConstructor(argument) {
  1572. if (!isCallable(argument)) return false;
  1573. try {
  1574. construct(noop, [], argument);
  1575. return true;
  1576. } catch (error) {
  1577. return false;
  1578. }
  1579. };
  1580. var isConstructorLegacy = function isConstructor(argument) {
  1581. if (!isCallable(argument)) return false;
  1582. switch (classof(argument)) {
  1583. case 'AsyncFunction':
  1584. case 'GeneratorFunction':
  1585. case 'AsyncGeneratorFunction': return false;
  1586. }
  1587. try {
  1588. // we can't check .prototype since constructors produced by .bind haven't it
  1589. // `Function#toString` throws on some built-it function in some legacy engines
  1590. // (for example, `DOMQuad` and similar in FF41-)
  1591. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1592. } catch (error) {
  1593. return true;
  1594. }
  1595. };
  1596. isConstructorLegacy.sham = true;
  1597. // `IsConstructor` abstract operation
  1598. // https://tc39.es/ecma262/#sec-isconstructor
  1599. isConstructor = !construct || fails(function () {
  1600. var called;
  1601. return isConstructorModern(isConstructorModern.call)
  1602. || !isConstructorModern(Object)
  1603. || !isConstructorModern(function () { called = true; })
  1604. || called;
  1605. }) ? isConstructorLegacy : isConstructorModern;
  1606. return isConstructor;
  1607. }
  1608. var arraySpeciesConstructor;
  1609. var hasRequiredArraySpeciesConstructor;
  1610. function requireArraySpeciesConstructor () {
  1611. if (hasRequiredArraySpeciesConstructor) return arraySpeciesConstructor;
  1612. hasRequiredArraySpeciesConstructor = 1;
  1613. var isArray = requireIsArray();
  1614. var isConstructor = requireIsConstructor();
  1615. var isObject = requireIsObject();
  1616. var wellKnownSymbol = requireWellKnownSymbol();
  1617. var SPECIES = wellKnownSymbol('species');
  1618. var $Array = Array;
  1619. // a part of `ArraySpeciesCreate` abstract operation
  1620. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1621. arraySpeciesConstructor = function (originalArray) {
  1622. var C;
  1623. if (isArray(originalArray)) {
  1624. C = originalArray.constructor;
  1625. // cross-realm fallback
  1626. if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
  1627. else if (isObject(C)) {
  1628. C = C[SPECIES];
  1629. if (C === null) C = undefined;
  1630. }
  1631. } return C === undefined ? $Array : C;
  1632. };
  1633. return arraySpeciesConstructor;
  1634. }
  1635. var arraySpeciesCreate;
  1636. var hasRequiredArraySpeciesCreate;
  1637. function requireArraySpeciesCreate () {
  1638. if (hasRequiredArraySpeciesCreate) return arraySpeciesCreate;
  1639. hasRequiredArraySpeciesCreate = 1;
  1640. var arraySpeciesConstructor = requireArraySpeciesConstructor();
  1641. // `ArraySpeciesCreate` abstract operation
  1642. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1643. arraySpeciesCreate = function (originalArray, length) {
  1644. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1645. };
  1646. return arraySpeciesCreate;
  1647. }
  1648. var arrayMethodHasSpeciesSupport;
  1649. var hasRequiredArrayMethodHasSpeciesSupport;
  1650. function requireArrayMethodHasSpeciesSupport () {
  1651. if (hasRequiredArrayMethodHasSpeciesSupport) return arrayMethodHasSpeciesSupport;
  1652. hasRequiredArrayMethodHasSpeciesSupport = 1;
  1653. var fails = requireFails();
  1654. var wellKnownSymbol = requireWellKnownSymbol();
  1655. var V8_VERSION = requireEnvironmentV8Version();
  1656. var SPECIES = wellKnownSymbol('species');
  1657. arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
  1658. // We can't use this feature detection in V8 since it causes
  1659. // deoptimization and serious performance degradation
  1660. // https://github.com/zloirock/core-js/issues/677
  1661. return V8_VERSION >= 51 || !fails(function () {
  1662. var array = [];
  1663. var constructor = array.constructor = {};
  1664. constructor[SPECIES] = function () {
  1665. return { foo: 1 };
  1666. };
  1667. return array[METHOD_NAME](Boolean).foo !== 1;
  1668. });
  1669. };
  1670. return arrayMethodHasSpeciesSupport;
  1671. }
  1672. var hasRequiredEs_array_concat;
  1673. function requireEs_array_concat () {
  1674. if (hasRequiredEs_array_concat) return es_array_concat;
  1675. hasRequiredEs_array_concat = 1;
  1676. var $ = require_export();
  1677. var fails = requireFails();
  1678. var isArray = requireIsArray();
  1679. var isObject = requireIsObject();
  1680. var toObject = requireToObject();
  1681. var lengthOfArrayLike = requireLengthOfArrayLike();
  1682. var doesNotExceedSafeInteger = requireDoesNotExceedSafeInteger();
  1683. var createProperty = requireCreateProperty();
  1684. var arraySpeciesCreate = requireArraySpeciesCreate();
  1685. var arrayMethodHasSpeciesSupport = requireArrayMethodHasSpeciesSupport();
  1686. var wellKnownSymbol = requireWellKnownSymbol();
  1687. var V8_VERSION = requireEnvironmentV8Version();
  1688. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  1689. // We can't use this feature detection in V8 since it causes
  1690. // deoptimization and serious performance degradation
  1691. // https://github.com/zloirock/core-js/issues/679
  1692. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
  1693. var array = [];
  1694. array[IS_CONCAT_SPREADABLE] = false;
  1695. return array.concat()[0] !== array;
  1696. });
  1697. var isConcatSpreadable = function (O) {
  1698. if (!isObject(O)) return false;
  1699. var spreadable = O[IS_CONCAT_SPREADABLE];
  1700. return spreadable !== undefined ? !!spreadable : isArray(O);
  1701. };
  1702. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
  1703. // `Array.prototype.concat` method
  1704. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1705. // with adding support of @@isConcatSpreadable and @@species
  1706. $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1707. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1708. concat: function concat(arg) {
  1709. var O = toObject(this);
  1710. var A = arraySpeciesCreate(O, 0);
  1711. var n = 0;
  1712. var i, k, length, len, E;
  1713. for (i = -1, length = arguments.length; i < length; i++) {
  1714. E = i === -1 ? O : arguments[i];
  1715. if (isConcatSpreadable(E)) {
  1716. len = lengthOfArrayLike(E);
  1717. doesNotExceedSafeInteger(n + len);
  1718. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1719. } else {
  1720. doesNotExceedSafeInteger(n + 1);
  1721. createProperty(A, n++, E);
  1722. }
  1723. }
  1724. A.length = n;
  1725. return A;
  1726. }
  1727. });
  1728. return es_array_concat;
  1729. }
  1730. requireEs_array_concat();
  1731. var es_array_filter = {};
  1732. var functionUncurryThisClause;
  1733. var hasRequiredFunctionUncurryThisClause;
  1734. function requireFunctionUncurryThisClause () {
  1735. if (hasRequiredFunctionUncurryThisClause) return functionUncurryThisClause;
  1736. hasRequiredFunctionUncurryThisClause = 1;
  1737. var classofRaw = requireClassofRaw();
  1738. var uncurryThis = requireFunctionUncurryThis();
  1739. functionUncurryThisClause = function (fn) {
  1740. // Nashorn bug:
  1741. // https://github.com/zloirock/core-js/issues/1128
  1742. // https://github.com/zloirock/core-js/issues/1130
  1743. if (classofRaw(fn) === 'Function') return uncurryThis(fn);
  1744. };
  1745. return functionUncurryThisClause;
  1746. }
  1747. var functionBindContext;
  1748. var hasRequiredFunctionBindContext;
  1749. function requireFunctionBindContext () {
  1750. if (hasRequiredFunctionBindContext) return functionBindContext;
  1751. hasRequiredFunctionBindContext = 1;
  1752. var uncurryThis = requireFunctionUncurryThisClause();
  1753. var aCallable = requireACallable();
  1754. var NATIVE_BIND = requireFunctionBindNative();
  1755. var bind = uncurryThis(uncurryThis.bind);
  1756. // optional / simple context binding
  1757. functionBindContext = function (fn, that) {
  1758. aCallable(fn);
  1759. return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
  1760. return fn.apply(that, arguments);
  1761. };
  1762. };
  1763. return functionBindContext;
  1764. }
  1765. var arrayIteration;
  1766. var hasRequiredArrayIteration;
  1767. function requireArrayIteration () {
  1768. if (hasRequiredArrayIteration) return arrayIteration;
  1769. hasRequiredArrayIteration = 1;
  1770. var bind = requireFunctionBindContext();
  1771. var uncurryThis = requireFunctionUncurryThis();
  1772. var IndexedObject = requireIndexedObject();
  1773. var toObject = requireToObject();
  1774. var lengthOfArrayLike = requireLengthOfArrayLike();
  1775. var arraySpeciesCreate = requireArraySpeciesCreate();
  1776. var push = uncurryThis([].push);
  1777. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1778. var createMethod = function (TYPE) {
  1779. var IS_MAP = TYPE === 1;
  1780. var IS_FILTER = TYPE === 2;
  1781. var IS_SOME = TYPE === 3;
  1782. var IS_EVERY = TYPE === 4;
  1783. var IS_FIND_INDEX = TYPE === 6;
  1784. var IS_FILTER_REJECT = TYPE === 7;
  1785. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1786. return function ($this, callbackfn, that, specificCreate) {
  1787. var O = toObject($this);
  1788. var self = IndexedObject(O);
  1789. var length = lengthOfArrayLike(self);
  1790. var boundFunction = bind(callbackfn, that);
  1791. var index = 0;
  1792. var create = specificCreate || arraySpeciesCreate;
  1793. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1794. var value, result;
  1795. for (;length > index; index++) if (NO_HOLES || index in self) {
  1796. value = self[index];
  1797. result = boundFunction(value, index, O);
  1798. if (TYPE) {
  1799. if (IS_MAP) target[index] = result; // map
  1800. else if (result) switch (TYPE) {
  1801. case 3: return true; // some
  1802. case 5: return value; // find
  1803. case 6: return index; // findIndex
  1804. case 2: push(target, value); // filter
  1805. } else switch (TYPE) {
  1806. case 4: return false; // every
  1807. case 7: push(target, value); // filterReject
  1808. }
  1809. }
  1810. }
  1811. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1812. };
  1813. };
  1814. arrayIteration = {
  1815. // `Array.prototype.forEach` method
  1816. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1817. forEach: createMethod(0),
  1818. // `Array.prototype.map` method
  1819. // https://tc39.es/ecma262/#sec-array.prototype.map
  1820. map: createMethod(1),
  1821. // `Array.prototype.filter` method
  1822. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1823. filter: createMethod(2),
  1824. // `Array.prototype.some` method
  1825. // https://tc39.es/ecma262/#sec-array.prototype.some
  1826. some: createMethod(3),
  1827. // `Array.prototype.every` method
  1828. // https://tc39.es/ecma262/#sec-array.prototype.every
  1829. every: createMethod(4),
  1830. // `Array.prototype.find` method
  1831. // https://tc39.es/ecma262/#sec-array.prototype.find
  1832. find: createMethod(5),
  1833. // `Array.prototype.findIndex` method
  1834. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1835. findIndex: createMethod(6),
  1836. // `Array.prototype.filterReject` method
  1837. // https://github.com/tc39/proposal-array-filtering
  1838. filterReject: createMethod(7)
  1839. };
  1840. return arrayIteration;
  1841. }
  1842. var hasRequiredEs_array_filter;
  1843. function requireEs_array_filter () {
  1844. if (hasRequiredEs_array_filter) return es_array_filter;
  1845. hasRequiredEs_array_filter = 1;
  1846. var $ = require_export();
  1847. var $filter = requireArrayIteration().filter;
  1848. var arrayMethodHasSpeciesSupport = requireArrayMethodHasSpeciesSupport();
  1849. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
  1850. // `Array.prototype.filter` method
  1851. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1852. // with adding support of @@species
  1853. $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  1854. filter: function filter(callbackfn /* , thisArg */) {
  1855. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1856. }
  1857. });
  1858. return es_array_filter;
  1859. }
  1860. requireEs_array_filter();
  1861. var es_array_find = {};
  1862. var objectDefineProperties = {};
  1863. var objectKeys;
  1864. var hasRequiredObjectKeys;
  1865. function requireObjectKeys () {
  1866. if (hasRequiredObjectKeys) return objectKeys;
  1867. hasRequiredObjectKeys = 1;
  1868. var internalObjectKeys = requireObjectKeysInternal();
  1869. var enumBugKeys = requireEnumBugKeys();
  1870. // `Object.keys` method
  1871. // https://tc39.es/ecma262/#sec-object.keys
  1872. // eslint-disable-next-line es/no-object-keys -- safe
  1873. objectKeys = Object.keys || function keys(O) {
  1874. return internalObjectKeys(O, enumBugKeys);
  1875. };
  1876. return objectKeys;
  1877. }
  1878. var hasRequiredObjectDefineProperties;
  1879. function requireObjectDefineProperties () {
  1880. if (hasRequiredObjectDefineProperties) return objectDefineProperties;
  1881. hasRequiredObjectDefineProperties = 1;
  1882. var DESCRIPTORS = requireDescriptors();
  1883. var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
  1884. var definePropertyModule = requireObjectDefineProperty();
  1885. var anObject = requireAnObject();
  1886. var toIndexedObject = requireToIndexedObject();
  1887. var objectKeys = requireObjectKeys();
  1888. // `Object.defineProperties` method
  1889. // https://tc39.es/ecma262/#sec-object.defineproperties
  1890. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1891. objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1892. anObject(O);
  1893. var props = toIndexedObject(Properties);
  1894. var keys = objectKeys(Properties);
  1895. var length = keys.length;
  1896. var index = 0;
  1897. var key;
  1898. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1899. return O;
  1900. };
  1901. return objectDefineProperties;
  1902. }
  1903. var html;
  1904. var hasRequiredHtml;
  1905. function requireHtml () {
  1906. if (hasRequiredHtml) return html;
  1907. hasRequiredHtml = 1;
  1908. var getBuiltIn = requireGetBuiltIn();
  1909. html = getBuiltIn('document', 'documentElement');
  1910. return html;
  1911. }
  1912. var objectCreate;
  1913. var hasRequiredObjectCreate;
  1914. function requireObjectCreate () {
  1915. if (hasRequiredObjectCreate) return objectCreate;
  1916. hasRequiredObjectCreate = 1;
  1917. /* global ActiveXObject -- old IE, WSH */
  1918. var anObject = requireAnObject();
  1919. var definePropertiesModule = requireObjectDefineProperties();
  1920. var enumBugKeys = requireEnumBugKeys();
  1921. var hiddenKeys = requireHiddenKeys();
  1922. var html = requireHtml();
  1923. var documentCreateElement = requireDocumentCreateElement();
  1924. var sharedKey = requireSharedKey();
  1925. var GT = '>';
  1926. var LT = '<';
  1927. var PROTOTYPE = 'prototype';
  1928. var SCRIPT = 'script';
  1929. var IE_PROTO = sharedKey('IE_PROTO');
  1930. var EmptyConstructor = function () { /* empty */ };
  1931. var scriptTag = function (content) {
  1932. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1933. };
  1934. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1935. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1936. activeXDocument.write(scriptTag(''));
  1937. activeXDocument.close();
  1938. var temp = activeXDocument.parentWindow.Object;
  1939. // eslint-disable-next-line no-useless-assignment -- avoid memory leak
  1940. activeXDocument = null;
  1941. return temp;
  1942. };
  1943. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1944. var NullProtoObjectViaIFrame = function () {
  1945. // Thrash, waste and sodomy: IE GC bug
  1946. var iframe = documentCreateElement('iframe');
  1947. var JS = 'java' + SCRIPT + ':';
  1948. var iframeDocument;
  1949. iframe.style.display = 'none';
  1950. html.appendChild(iframe);
  1951. // https://github.com/zloirock/core-js/issues/475
  1952. iframe.src = String(JS);
  1953. iframeDocument = iframe.contentWindow.document;
  1954. iframeDocument.open();
  1955. iframeDocument.write(scriptTag('document.F=Object'));
  1956. iframeDocument.close();
  1957. return iframeDocument.F;
  1958. };
  1959. // Check for document.domain and active x support
  1960. // No need to use active x approach when document.domain is not set
  1961. // see https://github.com/es-shims/es5-shim/issues/150
  1962. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1963. // avoid IE GC bug
  1964. var activeXDocument;
  1965. var NullProtoObject = function () {
  1966. try {
  1967. activeXDocument = new ActiveXObject('htmlfile');
  1968. } catch (error) { /* ignore */ }
  1969. NullProtoObject = typeof document != 'undefined'
  1970. ? document.domain && activeXDocument
  1971. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1972. : NullProtoObjectViaIFrame()
  1973. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1974. var length = enumBugKeys.length;
  1975. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1976. return NullProtoObject();
  1977. };
  1978. hiddenKeys[IE_PROTO] = true;
  1979. // `Object.create` method
  1980. // https://tc39.es/ecma262/#sec-object.create
  1981. // eslint-disable-next-line es/no-object-create -- safe
  1982. objectCreate = Object.create || function create(O, Properties) {
  1983. var result;
  1984. if (O !== null) {
  1985. EmptyConstructor[PROTOTYPE] = anObject(O);
  1986. result = new EmptyConstructor();
  1987. EmptyConstructor[PROTOTYPE] = null;
  1988. // add "__proto__" for Object.getPrototypeOf polyfill
  1989. result[IE_PROTO] = O;
  1990. } else result = NullProtoObject();
  1991. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1992. };
  1993. return objectCreate;
  1994. }
  1995. var addToUnscopables;
  1996. var hasRequiredAddToUnscopables;
  1997. function requireAddToUnscopables () {
  1998. if (hasRequiredAddToUnscopables) return addToUnscopables;
  1999. hasRequiredAddToUnscopables = 1;
  2000. var wellKnownSymbol = requireWellKnownSymbol();
  2001. var create = requireObjectCreate();
  2002. var defineProperty = requireObjectDefineProperty().f;
  2003. var UNSCOPABLES = wellKnownSymbol('unscopables');
  2004. var ArrayPrototype = Array.prototype;
  2005. // Array.prototype[@@unscopables]
  2006. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  2007. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  2008. defineProperty(ArrayPrototype, UNSCOPABLES, {
  2009. configurable: true,
  2010. value: create(null)
  2011. });
  2012. }
  2013. // add a key to Array.prototype[@@unscopables]
  2014. addToUnscopables = function (key) {
  2015. ArrayPrototype[UNSCOPABLES][key] = true;
  2016. };
  2017. return addToUnscopables;
  2018. }
  2019. var hasRequiredEs_array_find;
  2020. function requireEs_array_find () {
  2021. if (hasRequiredEs_array_find) return es_array_find;
  2022. hasRequiredEs_array_find = 1;
  2023. var $ = require_export();
  2024. var $find = requireArrayIteration().find;
  2025. var addToUnscopables = requireAddToUnscopables();
  2026. var FIND = 'find';
  2027. var SKIPS_HOLES = true;
  2028. // Shouldn't skip holes
  2029. // eslint-disable-next-line es/no-array-prototype-find -- testing
  2030. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  2031. // `Array.prototype.find` method
  2032. // https://tc39.es/ecma262/#sec-array.prototype.find
  2033. $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  2034. find: function find(callbackfn /* , that = undefined */) {
  2035. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  2036. }
  2037. });
  2038. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  2039. addToUnscopables(FIND);
  2040. return es_array_find;
  2041. }
  2042. requireEs_array_find();
  2043. var es_array_includes = {};
  2044. var hasRequiredEs_array_includes;
  2045. function requireEs_array_includes () {
  2046. if (hasRequiredEs_array_includes) return es_array_includes;
  2047. hasRequiredEs_array_includes = 1;
  2048. var $ = require_export();
  2049. var $includes = requireArrayIncludes().includes;
  2050. var fails = requireFails();
  2051. var addToUnscopables = requireAddToUnscopables();
  2052. // FF99+ bug
  2053. var BROKEN_ON_SPARSE = fails(function () {
  2054. // eslint-disable-next-line es/no-array-prototype-includes -- detection
  2055. return !Array(1).includes();
  2056. });
  2057. // `Array.prototype.includes` method
  2058. // https://tc39.es/ecma262/#sec-array.prototype.includes
  2059. $({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
  2060. includes: function includes(el /* , fromIndex = 0 */) {
  2061. return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  2062. }
  2063. });
  2064. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  2065. addToUnscopables('includes');
  2066. return es_array_includes;
  2067. }
  2068. requireEs_array_includes();
  2069. var es_array_indexOf = {};
  2070. var arrayMethodIsStrict;
  2071. var hasRequiredArrayMethodIsStrict;
  2072. function requireArrayMethodIsStrict () {
  2073. if (hasRequiredArrayMethodIsStrict) return arrayMethodIsStrict;
  2074. hasRequiredArrayMethodIsStrict = 1;
  2075. var fails = requireFails();
  2076. arrayMethodIsStrict = function (METHOD_NAME, argument) {
  2077. var method = [][METHOD_NAME];
  2078. return !!method && fails(function () {
  2079. // eslint-disable-next-line no-useless-call -- required for testing
  2080. method.call(null, argument || function () { return 1; }, 1);
  2081. });
  2082. };
  2083. return arrayMethodIsStrict;
  2084. }
  2085. var hasRequiredEs_array_indexOf;
  2086. function requireEs_array_indexOf () {
  2087. if (hasRequiredEs_array_indexOf) return es_array_indexOf;
  2088. hasRequiredEs_array_indexOf = 1;
  2089. /* eslint-disable es/no-array-prototype-indexof -- required for testing */
  2090. var $ = require_export();
  2091. var uncurryThis = requireFunctionUncurryThisClause();
  2092. var $indexOf = requireArrayIncludes().indexOf;
  2093. var arrayMethodIsStrict = requireArrayMethodIsStrict();
  2094. var nativeIndexOf = uncurryThis([].indexOf);
  2095. var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
  2096. var FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');
  2097. // `Array.prototype.indexOf` method
  2098. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  2099. $({ target: 'Array', proto: true, forced: FORCED }, {
  2100. indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
  2101. var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
  2102. return NEGATIVE_ZERO
  2103. // convert -0 to +0
  2104. ? nativeIndexOf(this, searchElement, fromIndex) || 0
  2105. : $indexOf(this, searchElement, fromIndex);
  2106. }
  2107. });
  2108. return es_array_indexOf;
  2109. }
  2110. requireEs_array_indexOf();
  2111. var es_array_join = {};
  2112. var hasRequiredEs_array_join;
  2113. function requireEs_array_join () {
  2114. if (hasRequiredEs_array_join) return es_array_join;
  2115. hasRequiredEs_array_join = 1;
  2116. var $ = require_export();
  2117. var uncurryThis = requireFunctionUncurryThis();
  2118. var IndexedObject = requireIndexedObject();
  2119. var toIndexedObject = requireToIndexedObject();
  2120. var arrayMethodIsStrict = requireArrayMethodIsStrict();
  2121. var nativeJoin = uncurryThis([].join);
  2122. var ES3_STRINGS = IndexedObject !== Object;
  2123. var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
  2124. // `Array.prototype.join` method
  2125. // https://tc39.es/ecma262/#sec-array.prototype.join
  2126. $({ target: 'Array', proto: true, forced: FORCED }, {
  2127. join: function join(separator) {
  2128. return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
  2129. }
  2130. });
  2131. return es_array_join;
  2132. }
  2133. requireEs_array_join();
  2134. var es_object_assign = {};
  2135. var objectAssign;
  2136. var hasRequiredObjectAssign;
  2137. function requireObjectAssign () {
  2138. if (hasRequiredObjectAssign) return objectAssign;
  2139. hasRequiredObjectAssign = 1;
  2140. var DESCRIPTORS = requireDescriptors();
  2141. var uncurryThis = requireFunctionUncurryThis();
  2142. var call = requireFunctionCall();
  2143. var fails = requireFails();
  2144. var objectKeys = requireObjectKeys();
  2145. var getOwnPropertySymbolsModule = requireObjectGetOwnPropertySymbols();
  2146. var propertyIsEnumerableModule = requireObjectPropertyIsEnumerable();
  2147. var toObject = requireToObject();
  2148. var IndexedObject = requireIndexedObject();
  2149. // eslint-disable-next-line es/no-object-assign -- safe
  2150. var $assign = Object.assign;
  2151. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  2152. var defineProperty = Object.defineProperty;
  2153. var concat = uncurryThis([].concat);
  2154. // `Object.assign` method
  2155. // https://tc39.es/ecma262/#sec-object.assign
  2156. objectAssign = !$assign || fails(function () {
  2157. // should have correct order of operations (Edge bug)
  2158. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  2159. enumerable: true,
  2160. get: function () {
  2161. defineProperty(this, 'b', {
  2162. value: 3,
  2163. enumerable: false
  2164. });
  2165. }
  2166. }), { b: 2 })).b !== 1) return true;
  2167. // should work with symbols and should have deterministic property order (V8 bug)
  2168. var A = {};
  2169. var B = {};
  2170. // eslint-disable-next-line es/no-symbol -- safe
  2171. var symbol = Symbol('assign detection');
  2172. var alphabet = 'abcdefghijklmnopqrst';
  2173. A[symbol] = 7;
  2174. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  2175. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  2176. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  2177. var T = toObject(target);
  2178. var argumentsLength = arguments.length;
  2179. var index = 1;
  2180. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  2181. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  2182. while (argumentsLength > index) {
  2183. var S = IndexedObject(arguments[index++]);
  2184. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  2185. var length = keys.length;
  2186. var j = 0;
  2187. var key;
  2188. while (length > j) {
  2189. key = keys[j++];
  2190. if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  2191. }
  2192. } return T;
  2193. } : $assign;
  2194. return objectAssign;
  2195. }
  2196. var hasRequiredEs_object_assign;
  2197. function requireEs_object_assign () {
  2198. if (hasRequiredEs_object_assign) return es_object_assign;
  2199. hasRequiredEs_object_assign = 1;
  2200. var $ = require_export();
  2201. var assign = requireObjectAssign();
  2202. // `Object.assign` method
  2203. // https://tc39.es/ecma262/#sec-object.assign
  2204. // eslint-disable-next-line es/no-object-assign -- required for testing
  2205. $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  2206. assign: assign
  2207. });
  2208. return es_object_assign;
  2209. }
  2210. requireEs_object_assign();
  2211. var es_object_entries = {};
  2212. var correctPrototypeGetter;
  2213. var hasRequiredCorrectPrototypeGetter;
  2214. function requireCorrectPrototypeGetter () {
  2215. if (hasRequiredCorrectPrototypeGetter) return correctPrototypeGetter;
  2216. hasRequiredCorrectPrototypeGetter = 1;
  2217. var fails = requireFails();
  2218. correctPrototypeGetter = !fails(function () {
  2219. function F() { /* empty */ }
  2220. F.prototype.constructor = null;
  2221. // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
  2222. return Object.getPrototypeOf(new F()) !== F.prototype;
  2223. });
  2224. return correctPrototypeGetter;
  2225. }
  2226. var objectGetPrototypeOf;
  2227. var hasRequiredObjectGetPrototypeOf;
  2228. function requireObjectGetPrototypeOf () {
  2229. if (hasRequiredObjectGetPrototypeOf) return objectGetPrototypeOf;
  2230. hasRequiredObjectGetPrototypeOf = 1;
  2231. var hasOwn = requireHasOwnProperty();
  2232. var isCallable = requireIsCallable();
  2233. var toObject = requireToObject();
  2234. var sharedKey = requireSharedKey();
  2235. var CORRECT_PROTOTYPE_GETTER = requireCorrectPrototypeGetter();
  2236. var IE_PROTO = sharedKey('IE_PROTO');
  2237. var $Object = Object;
  2238. var ObjectPrototype = $Object.prototype;
  2239. // `Object.getPrototypeOf` method
  2240. // https://tc39.es/ecma262/#sec-object.getprototypeof
  2241. // eslint-disable-next-line es/no-object-getprototypeof -- safe
  2242. objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
  2243. var object = toObject(O);
  2244. if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
  2245. var constructor = object.constructor;
  2246. if (isCallable(constructor) && object instanceof constructor) {
  2247. return constructor.prototype;
  2248. } return object instanceof $Object ? ObjectPrototype : null;
  2249. };
  2250. return objectGetPrototypeOf;
  2251. }
  2252. var objectToArray;
  2253. var hasRequiredObjectToArray;
  2254. function requireObjectToArray () {
  2255. if (hasRequiredObjectToArray) return objectToArray;
  2256. hasRequiredObjectToArray = 1;
  2257. var DESCRIPTORS = requireDescriptors();
  2258. var fails = requireFails();
  2259. var uncurryThis = requireFunctionUncurryThis();
  2260. var objectGetPrototypeOf = requireObjectGetPrototypeOf();
  2261. var objectKeys = requireObjectKeys();
  2262. var toIndexedObject = requireToIndexedObject();
  2263. var $propertyIsEnumerable = requireObjectPropertyIsEnumerable().f;
  2264. var propertyIsEnumerable = uncurryThis($propertyIsEnumerable);
  2265. var push = uncurryThis([].push);
  2266. // in some IE versions, `propertyIsEnumerable` returns incorrect result on integer keys
  2267. // of `null` prototype objects
  2268. var IE_BUG = DESCRIPTORS && fails(function () {
  2269. // eslint-disable-next-line es/no-object-create -- safe
  2270. var O = Object.create(null);
  2271. O[2] = 2;
  2272. return !propertyIsEnumerable(O, 2);
  2273. });
  2274. // `Object.{ entries, values }` methods implementation
  2275. var createMethod = function (TO_ENTRIES) {
  2276. return function (it) {
  2277. var O = toIndexedObject(it);
  2278. var keys = objectKeys(O);
  2279. var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null;
  2280. var length = keys.length;
  2281. var i = 0;
  2282. var result = [];
  2283. var key;
  2284. while (length > i) {
  2285. key = keys[i++];
  2286. if (!DESCRIPTORS || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) {
  2287. push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
  2288. }
  2289. }
  2290. return result;
  2291. };
  2292. };
  2293. objectToArray = {
  2294. // `Object.entries` method
  2295. // https://tc39.es/ecma262/#sec-object.entries
  2296. entries: createMethod(true),
  2297. // `Object.values` method
  2298. // https://tc39.es/ecma262/#sec-object.values
  2299. values: createMethod(false)
  2300. };
  2301. return objectToArray;
  2302. }
  2303. var hasRequiredEs_object_entries;
  2304. function requireEs_object_entries () {
  2305. if (hasRequiredEs_object_entries) return es_object_entries;
  2306. hasRequiredEs_object_entries = 1;
  2307. var $ = require_export();
  2308. var $entries = requireObjectToArray().entries;
  2309. // `Object.entries` method
  2310. // https://tc39.es/ecma262/#sec-object.entries
  2311. $({ target: 'Object', stat: true }, {
  2312. entries: function entries(O) {
  2313. return $entries(O);
  2314. }
  2315. });
  2316. return es_object_entries;
  2317. }
  2318. requireEs_object_entries();
  2319. var es_object_toString = {};
  2320. var objectToString;
  2321. var hasRequiredObjectToString;
  2322. function requireObjectToString () {
  2323. if (hasRequiredObjectToString) return objectToString;
  2324. hasRequiredObjectToString = 1;
  2325. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  2326. var classof = requireClassof();
  2327. // `Object.prototype.toString` method implementation
  2328. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  2329. objectToString = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
  2330. return '[object ' + classof(this) + ']';
  2331. };
  2332. return objectToString;
  2333. }
  2334. var hasRequiredEs_object_toString;
  2335. function requireEs_object_toString () {
  2336. if (hasRequiredEs_object_toString) return es_object_toString;
  2337. hasRequiredEs_object_toString = 1;
  2338. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  2339. var defineBuiltIn = requireDefineBuiltIn();
  2340. var toString = requireObjectToString();
  2341. // `Object.prototype.toString` method
  2342. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  2343. if (!TO_STRING_TAG_SUPPORT) {
  2344. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  2345. }
  2346. return es_object_toString;
  2347. }
  2348. requireEs_object_toString();
  2349. var es_regexp_exec = {};
  2350. var toString;
  2351. var hasRequiredToString;
  2352. function requireToString () {
  2353. if (hasRequiredToString) return toString;
  2354. hasRequiredToString = 1;
  2355. var classof = requireClassof();
  2356. var $String = String;
  2357. toString = function (argument) {
  2358. if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  2359. return $String(argument);
  2360. };
  2361. return toString;
  2362. }
  2363. var regexpFlags;
  2364. var hasRequiredRegexpFlags;
  2365. function requireRegexpFlags () {
  2366. if (hasRequiredRegexpFlags) return regexpFlags;
  2367. hasRequiredRegexpFlags = 1;
  2368. var anObject = requireAnObject();
  2369. // `RegExp.prototype.flags` getter implementation
  2370. // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
  2371. regexpFlags = function () {
  2372. var that = anObject(this);
  2373. var result = '';
  2374. if (that.hasIndices) result += 'd';
  2375. if (that.global) result += 'g';
  2376. if (that.ignoreCase) result += 'i';
  2377. if (that.multiline) result += 'm';
  2378. if (that.dotAll) result += 's';
  2379. if (that.unicode) result += 'u';
  2380. if (that.unicodeSets) result += 'v';
  2381. if (that.sticky) result += 'y';
  2382. return result;
  2383. };
  2384. return regexpFlags;
  2385. }
  2386. var regexpStickyHelpers;
  2387. var hasRequiredRegexpStickyHelpers;
  2388. function requireRegexpStickyHelpers () {
  2389. if (hasRequiredRegexpStickyHelpers) return regexpStickyHelpers;
  2390. hasRequiredRegexpStickyHelpers = 1;
  2391. var fails = requireFails();
  2392. var globalThis = requireGlobalThis();
  2393. // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  2394. var $RegExp = globalThis.RegExp;
  2395. var UNSUPPORTED_Y = fails(function () {
  2396. var re = $RegExp('a', 'y');
  2397. re.lastIndex = 2;
  2398. return re.exec('abcd') !== null;
  2399. });
  2400. // UC Browser bug
  2401. // https://github.com/zloirock/core-js/issues/1008
  2402. var MISSED_STICKY = UNSUPPORTED_Y || fails(function () {
  2403. return !$RegExp('a', 'y').sticky;
  2404. });
  2405. var BROKEN_CARET = UNSUPPORTED_Y || fails(function () {
  2406. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  2407. var re = $RegExp('^r', 'gy');
  2408. re.lastIndex = 2;
  2409. return re.exec('str') !== null;
  2410. });
  2411. regexpStickyHelpers = {
  2412. BROKEN_CARET: BROKEN_CARET,
  2413. MISSED_STICKY: MISSED_STICKY,
  2414. UNSUPPORTED_Y: UNSUPPORTED_Y
  2415. };
  2416. return regexpStickyHelpers;
  2417. }
  2418. var regexpUnsupportedDotAll;
  2419. var hasRequiredRegexpUnsupportedDotAll;
  2420. function requireRegexpUnsupportedDotAll () {
  2421. if (hasRequiredRegexpUnsupportedDotAll) return regexpUnsupportedDotAll;
  2422. hasRequiredRegexpUnsupportedDotAll = 1;
  2423. var fails = requireFails();
  2424. var globalThis = requireGlobalThis();
  2425. // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
  2426. var $RegExp = globalThis.RegExp;
  2427. regexpUnsupportedDotAll = fails(function () {
  2428. var re = $RegExp('.', 's');
  2429. return !(re.dotAll && re.test('\n') && re.flags === 's');
  2430. });
  2431. return regexpUnsupportedDotAll;
  2432. }
  2433. var regexpUnsupportedNcg;
  2434. var hasRequiredRegexpUnsupportedNcg;
  2435. function requireRegexpUnsupportedNcg () {
  2436. if (hasRequiredRegexpUnsupportedNcg) return regexpUnsupportedNcg;
  2437. hasRequiredRegexpUnsupportedNcg = 1;
  2438. var fails = requireFails();
  2439. var globalThis = requireGlobalThis();
  2440. // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
  2441. var $RegExp = globalThis.RegExp;
  2442. regexpUnsupportedNcg = fails(function () {
  2443. var re = $RegExp('(?<a>b)', 'g');
  2444. return re.exec('b').groups.a !== 'b' ||
  2445. 'b'.replace(re, '$<a>c') !== 'bc';
  2446. });
  2447. return regexpUnsupportedNcg;
  2448. }
  2449. var regexpExec;
  2450. var hasRequiredRegexpExec;
  2451. function requireRegexpExec () {
  2452. if (hasRequiredRegexpExec) return regexpExec;
  2453. hasRequiredRegexpExec = 1;
  2454. /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
  2455. /* eslint-disable regexp/no-useless-quantifier -- testing */
  2456. var call = requireFunctionCall();
  2457. var uncurryThis = requireFunctionUncurryThis();
  2458. var toString = requireToString();
  2459. var regexpFlags = requireRegexpFlags();
  2460. var stickyHelpers = requireRegexpStickyHelpers();
  2461. var shared = requireShared();
  2462. var create = requireObjectCreate();
  2463. var getInternalState = requireInternalState().get;
  2464. var UNSUPPORTED_DOT_ALL = requireRegexpUnsupportedDotAll();
  2465. var UNSUPPORTED_NCG = requireRegexpUnsupportedNcg();
  2466. var nativeReplace = shared('native-string-replace', String.prototype.replace);
  2467. var nativeExec = RegExp.prototype.exec;
  2468. var patchedExec = nativeExec;
  2469. var charAt = uncurryThis(''.charAt);
  2470. var indexOf = uncurryThis(''.indexOf);
  2471. var replace = uncurryThis(''.replace);
  2472. var stringSlice = uncurryThis(''.slice);
  2473. var UPDATES_LAST_INDEX_WRONG = (function () {
  2474. var re1 = /a/;
  2475. var re2 = /b*/g;
  2476. call(nativeExec, re1, 'a');
  2477. call(nativeExec, re2, 'a');
  2478. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  2479. })();
  2480. var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
  2481. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  2482. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  2483. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
  2484. if (PATCH) {
  2485. patchedExec = function exec(string) {
  2486. var re = this;
  2487. var state = getInternalState(re);
  2488. var str = toString(string);
  2489. var raw = state.raw;
  2490. var result, reCopy, lastIndex, match, i, object, group;
  2491. if (raw) {
  2492. raw.lastIndex = re.lastIndex;
  2493. result = call(patchedExec, raw, str);
  2494. re.lastIndex = raw.lastIndex;
  2495. return result;
  2496. }
  2497. var groups = state.groups;
  2498. var sticky = UNSUPPORTED_Y && re.sticky;
  2499. var flags = call(regexpFlags, re);
  2500. var source = re.source;
  2501. var charsAdded = 0;
  2502. var strCopy = str;
  2503. if (sticky) {
  2504. flags = replace(flags, 'y', '');
  2505. if (indexOf(flags, 'g') === -1) {
  2506. flags += 'g';
  2507. }
  2508. strCopy = stringSlice(str, re.lastIndex);
  2509. // Support anchored sticky behavior.
  2510. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
  2511. source = '(?: ' + source + ')';
  2512. strCopy = ' ' + strCopy;
  2513. charsAdded++;
  2514. }
  2515. // ^(? + rx + ) is needed, in combination with some str slicing, to
  2516. // simulate the 'y' flag.
  2517. reCopy = new RegExp('^(?:' + source + ')', flags);
  2518. }
  2519. if (NPCG_INCLUDED) {
  2520. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  2521. }
  2522. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  2523. match = call(nativeExec, sticky ? reCopy : re, strCopy);
  2524. if (sticky) {
  2525. if (match) {
  2526. match.input = stringSlice(match.input, charsAdded);
  2527. match[0] = stringSlice(match[0], charsAdded);
  2528. match.index = re.lastIndex;
  2529. re.lastIndex += match[0].length;
  2530. } else re.lastIndex = 0;
  2531. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  2532. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  2533. }
  2534. if (NPCG_INCLUDED && match && match.length > 1) {
  2535. // Fix browsers whose `exec` methods don't consistently return `undefined`
  2536. // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
  2537. call(nativeReplace, match[0], reCopy, function () {
  2538. for (i = 1; i < arguments.length - 2; i++) {
  2539. if (arguments[i] === undefined) match[i] = undefined;
  2540. }
  2541. });
  2542. }
  2543. if (match && groups) {
  2544. match.groups = object = create(null);
  2545. for (i = 0; i < groups.length; i++) {
  2546. group = groups[i];
  2547. object[group[0]] = match[group[1]];
  2548. }
  2549. }
  2550. return match;
  2551. };
  2552. }
  2553. regexpExec = patchedExec;
  2554. return regexpExec;
  2555. }
  2556. var hasRequiredEs_regexp_exec;
  2557. function requireEs_regexp_exec () {
  2558. if (hasRequiredEs_regexp_exec) return es_regexp_exec;
  2559. hasRequiredEs_regexp_exec = 1;
  2560. var $ = require_export();
  2561. var exec = requireRegexpExec();
  2562. // `RegExp.prototype.exec` method
  2563. // https://tc39.es/ecma262/#sec-regexp.prototype.exec
  2564. $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
  2565. exec: exec
  2566. });
  2567. return es_regexp_exec;
  2568. }
  2569. requireEs_regexp_exec();
  2570. var es_string_includes = {};
  2571. var isRegexp;
  2572. var hasRequiredIsRegexp;
  2573. function requireIsRegexp () {
  2574. if (hasRequiredIsRegexp) return isRegexp;
  2575. hasRequiredIsRegexp = 1;
  2576. var isObject = requireIsObject();
  2577. var classof = requireClassofRaw();
  2578. var wellKnownSymbol = requireWellKnownSymbol();
  2579. var MATCH = wellKnownSymbol('match');
  2580. // `IsRegExp` abstract operation
  2581. // https://tc39.es/ecma262/#sec-isregexp
  2582. isRegexp = function (it) {
  2583. var isRegExp;
  2584. return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
  2585. };
  2586. return isRegexp;
  2587. }
  2588. var notARegexp;
  2589. var hasRequiredNotARegexp;
  2590. function requireNotARegexp () {
  2591. if (hasRequiredNotARegexp) return notARegexp;
  2592. hasRequiredNotARegexp = 1;
  2593. var isRegExp = requireIsRegexp();
  2594. var $TypeError = TypeError;
  2595. notARegexp = function (it) {
  2596. if (isRegExp(it)) {
  2597. throw new $TypeError("The method doesn't accept regular expressions");
  2598. } return it;
  2599. };
  2600. return notARegexp;
  2601. }
  2602. var correctIsRegexpLogic;
  2603. var hasRequiredCorrectIsRegexpLogic;
  2604. function requireCorrectIsRegexpLogic () {
  2605. if (hasRequiredCorrectIsRegexpLogic) return correctIsRegexpLogic;
  2606. hasRequiredCorrectIsRegexpLogic = 1;
  2607. var wellKnownSymbol = requireWellKnownSymbol();
  2608. var MATCH = wellKnownSymbol('match');
  2609. correctIsRegexpLogic = function (METHOD_NAME) {
  2610. var regexp = /./;
  2611. try {
  2612. '/./'[METHOD_NAME](regexp);
  2613. } catch (error1) {
  2614. try {
  2615. regexp[MATCH] = false;
  2616. return '/./'[METHOD_NAME](regexp);
  2617. } catch (error2) { /* empty */ }
  2618. } return false;
  2619. };
  2620. return correctIsRegexpLogic;
  2621. }
  2622. var hasRequiredEs_string_includes;
  2623. function requireEs_string_includes () {
  2624. if (hasRequiredEs_string_includes) return es_string_includes;
  2625. hasRequiredEs_string_includes = 1;
  2626. var $ = require_export();
  2627. var uncurryThis = requireFunctionUncurryThis();
  2628. var notARegExp = requireNotARegexp();
  2629. var requireObjectCoercible = requireRequireObjectCoercible();
  2630. var toString = requireToString();
  2631. var correctIsRegExpLogic = requireCorrectIsRegexpLogic();
  2632. var stringIndexOf = uncurryThis(''.indexOf);
  2633. // `String.prototype.includes` method
  2634. // https://tc39.es/ecma262/#sec-string.prototype.includes
  2635. $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
  2636. includes: function includes(searchString /* , position = 0 */) {
  2637. return !!~stringIndexOf(
  2638. toString(requireObjectCoercible(this)),
  2639. toString(notARegExp(searchString)),
  2640. arguments.length > 1 ? arguments[1] : undefined
  2641. );
  2642. }
  2643. });
  2644. return es_string_includes;
  2645. }
  2646. requireEs_string_includes();
  2647. var es_string_search = {};
  2648. var fixRegexpWellKnownSymbolLogic;
  2649. var hasRequiredFixRegexpWellKnownSymbolLogic;
  2650. function requireFixRegexpWellKnownSymbolLogic () {
  2651. if (hasRequiredFixRegexpWellKnownSymbolLogic) return fixRegexpWellKnownSymbolLogic;
  2652. hasRequiredFixRegexpWellKnownSymbolLogic = 1;
  2653. // TODO: Remove from `core-js@4` since it's moved to entry points
  2654. requireEs_regexp_exec();
  2655. var call = requireFunctionCall();
  2656. var defineBuiltIn = requireDefineBuiltIn();
  2657. var regexpExec = requireRegexpExec();
  2658. var fails = requireFails();
  2659. var wellKnownSymbol = requireWellKnownSymbol();
  2660. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  2661. var SPECIES = wellKnownSymbol('species');
  2662. var RegExpPrototype = RegExp.prototype;
  2663. fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
  2664. var SYMBOL = wellKnownSymbol(KEY);
  2665. var DELEGATES_TO_SYMBOL = !fails(function () {
  2666. // String methods call symbol-named RegExp methods
  2667. var O = {};
  2668. O[SYMBOL] = function () { return 7; };
  2669. return ''[KEY](O) !== 7;
  2670. });
  2671. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
  2672. // Symbol-named RegExp methods call .exec
  2673. var execCalled = false;
  2674. var re = /a/;
  2675. if (KEY === 'split') {
  2676. // We can't use real regex here since it causes deoptimization
  2677. // and serious performance degradation in V8
  2678. // https://github.com/zloirock/core-js/issues/306
  2679. re = {};
  2680. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  2681. // a new one. We need to return the patched regex when creating the new one.
  2682. re.constructor = {};
  2683. re.constructor[SPECIES] = function () { return re; };
  2684. re.flags = '';
  2685. re[SYMBOL] = /./[SYMBOL];
  2686. }
  2687. re.exec = function () {
  2688. execCalled = true;
  2689. return null;
  2690. };
  2691. re[SYMBOL]('');
  2692. return !execCalled;
  2693. });
  2694. if (
  2695. !DELEGATES_TO_SYMBOL ||
  2696. !DELEGATES_TO_EXEC ||
  2697. FORCED
  2698. ) {
  2699. var nativeRegExpMethod = /./[SYMBOL];
  2700. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  2701. var $exec = regexp.exec;
  2702. if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
  2703. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  2704. // The native String method already delegates to @@method (this
  2705. // polyfilled function), leasing to infinite recursion.
  2706. // We avoid it by directly calling the native @@method method.
  2707. return { done: true, value: call(nativeRegExpMethod, regexp, str, arg2) };
  2708. }
  2709. return { done: true, value: call(nativeMethod, str, regexp, arg2) };
  2710. }
  2711. return { done: false };
  2712. });
  2713. defineBuiltIn(String.prototype, KEY, methods[0]);
  2714. defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
  2715. }
  2716. if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
  2717. };
  2718. return fixRegexpWellKnownSymbolLogic;
  2719. }
  2720. var sameValue;
  2721. var hasRequiredSameValue;
  2722. function requireSameValue () {
  2723. if (hasRequiredSameValue) return sameValue;
  2724. hasRequiredSameValue = 1;
  2725. // `SameValue` abstract operation
  2726. // https://tc39.es/ecma262/#sec-samevalue
  2727. // eslint-disable-next-line es/no-object-is -- safe
  2728. sameValue = Object.is || function is(x, y) {
  2729. // eslint-disable-next-line no-self-compare -- NaN check
  2730. return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
  2731. };
  2732. return sameValue;
  2733. }
  2734. var regexpExecAbstract;
  2735. var hasRequiredRegexpExecAbstract;
  2736. function requireRegexpExecAbstract () {
  2737. if (hasRequiredRegexpExecAbstract) return regexpExecAbstract;
  2738. hasRequiredRegexpExecAbstract = 1;
  2739. var call = requireFunctionCall();
  2740. var anObject = requireAnObject();
  2741. var isCallable = requireIsCallable();
  2742. var classof = requireClassofRaw();
  2743. var regexpExec = requireRegexpExec();
  2744. var $TypeError = TypeError;
  2745. // `RegExpExec` abstract operation
  2746. // https://tc39.es/ecma262/#sec-regexpexec
  2747. regexpExecAbstract = function (R, S) {
  2748. var exec = R.exec;
  2749. if (isCallable(exec)) {
  2750. var result = call(exec, R, S);
  2751. if (result !== null) anObject(result);
  2752. return result;
  2753. }
  2754. if (classof(R) === 'RegExp') return call(regexpExec, R, S);
  2755. throw new $TypeError('RegExp#exec called on incompatible receiver');
  2756. };
  2757. return regexpExecAbstract;
  2758. }
  2759. var hasRequiredEs_string_search;
  2760. function requireEs_string_search () {
  2761. if (hasRequiredEs_string_search) return es_string_search;
  2762. hasRequiredEs_string_search = 1;
  2763. var call = requireFunctionCall();
  2764. var fixRegExpWellKnownSymbolLogic = requireFixRegexpWellKnownSymbolLogic();
  2765. var anObject = requireAnObject();
  2766. var isNullOrUndefined = requireIsNullOrUndefined();
  2767. var requireObjectCoercible = requireRequireObjectCoercible();
  2768. var sameValue = requireSameValue();
  2769. var toString = requireToString();
  2770. var getMethod = requireGetMethod();
  2771. var regExpExec = requireRegexpExecAbstract();
  2772. // @@search logic
  2773. fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
  2774. return [
  2775. // `String.prototype.search` method
  2776. // https://tc39.es/ecma262/#sec-string.prototype.search
  2777. function search(regexp) {
  2778. var O = requireObjectCoercible(this);
  2779. var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);
  2780. return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
  2781. },
  2782. // `RegExp.prototype[@@search]` method
  2783. // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
  2784. function (string) {
  2785. var rx = anObject(this);
  2786. var S = toString(string);
  2787. var res = maybeCallNative(nativeSearch, rx, S);
  2788. if (res.done) return res.value;
  2789. var previousLastIndex = rx.lastIndex;
  2790. if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
  2791. var result = regExpExec(rx, S);
  2792. if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
  2793. return result === null ? -1 : result.index;
  2794. }
  2795. ];
  2796. });
  2797. return es_string_search;
  2798. }
  2799. requireEs_string_search();
  2800. var es_string_trim = {};
  2801. var whitespaces;
  2802. var hasRequiredWhitespaces;
  2803. function requireWhitespaces () {
  2804. if (hasRequiredWhitespaces) return whitespaces;
  2805. hasRequiredWhitespaces = 1;
  2806. // a string of all valid unicode whitespaces
  2807. whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
  2808. '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
  2809. return whitespaces;
  2810. }
  2811. var stringTrim;
  2812. var hasRequiredStringTrim;
  2813. function requireStringTrim () {
  2814. if (hasRequiredStringTrim) return stringTrim;
  2815. hasRequiredStringTrim = 1;
  2816. var uncurryThis = requireFunctionUncurryThis();
  2817. var requireObjectCoercible = requireRequireObjectCoercible();
  2818. var toString = requireToString();
  2819. var whitespaces = requireWhitespaces();
  2820. var replace = uncurryThis(''.replace);
  2821. var ltrim = RegExp('^[' + whitespaces + ']+');
  2822. var rtrim = RegExp('(^|[^' + whitespaces + '])[' + whitespaces + ']+$');
  2823. // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
  2824. var createMethod = function (TYPE) {
  2825. return function ($this) {
  2826. var string = toString(requireObjectCoercible($this));
  2827. if (TYPE & 1) string = replace(string, ltrim, '');
  2828. if (TYPE & 2) string = replace(string, rtrim, '$1');
  2829. return string;
  2830. };
  2831. };
  2832. stringTrim = {
  2833. // `String.prototype.{ trimLeft, trimStart }` methods
  2834. // https://tc39.es/ecma262/#sec-string.prototype.trimstart
  2835. start: createMethod(1),
  2836. // `String.prototype.{ trimRight, trimEnd }` methods
  2837. // https://tc39.es/ecma262/#sec-string.prototype.trimend
  2838. end: createMethod(2),
  2839. // `String.prototype.trim` method
  2840. // https://tc39.es/ecma262/#sec-string.prototype.trim
  2841. trim: createMethod(3)
  2842. };
  2843. return stringTrim;
  2844. }
  2845. var stringTrimForced;
  2846. var hasRequiredStringTrimForced;
  2847. function requireStringTrimForced () {
  2848. if (hasRequiredStringTrimForced) return stringTrimForced;
  2849. hasRequiredStringTrimForced = 1;
  2850. var PROPER_FUNCTION_NAME = requireFunctionName().PROPER;
  2851. var fails = requireFails();
  2852. var whitespaces = requireWhitespaces();
  2853. var non = '\u200B\u0085\u180E';
  2854. // check that a method works with the correct list
  2855. // of whitespaces and has a correct name
  2856. stringTrimForced = function (METHOD_NAME) {
  2857. return fails(function () {
  2858. return !!whitespaces[METHOD_NAME]()
  2859. || non[METHOD_NAME]() !== non
  2860. || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
  2861. });
  2862. };
  2863. return stringTrimForced;
  2864. }
  2865. var hasRequiredEs_string_trim;
  2866. function requireEs_string_trim () {
  2867. if (hasRequiredEs_string_trim) return es_string_trim;
  2868. hasRequiredEs_string_trim = 1;
  2869. var $ = require_export();
  2870. var $trim = requireStringTrim().trim;
  2871. var forcedStringTrimMethod = requireStringTrimForced();
  2872. // `String.prototype.trim` method
  2873. // https://tc39.es/ecma262/#sec-string.prototype.trim
  2874. $({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
  2875. trim: function trim() {
  2876. return $trim(this);
  2877. }
  2878. });
  2879. return es_string_trim;
  2880. }
  2881. requireEs_string_trim();
  2882. /**
  2883. * @author: aperez <aperez@datadec.es>
  2884. * @version: v2.0.0
  2885. *
  2886. * @update Dennis Hernández
  2887. * @update zhixin wen <wenzhixin2010@gmail.com>
  2888. */
  2889. var Utils = $.fn.bootstrapTable.utils;
  2890. var theme = {
  2891. bootstrap3: {
  2892. icons: {
  2893. advancedSearchIcon: 'glyphicon-chevron-down'
  2894. },
  2895. classes: {},
  2896. html: {
  2897. modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <button class=\"close toolbar-modal-close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n <h4 class=\"modal-title toolbar-modal-title\"></h4>\n </div>\n <div class=\"modal-body toolbar-modal-body\"></div>\n <div class=\"modal-footer toolbar-modal-footer\">\n <button class=\"btn btn-%s toolbar-modal-close\"></button>\n </div>\n </div>\n </div>\n </div>\n "
  2898. }
  2899. },
  2900. bootstrap4: {
  2901. icons: {
  2902. advancedSearchIcon: 'fa-chevron-down'
  2903. },
  2904. classes: {},
  2905. html: {
  2906. modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h4 class=\"modal-title toolbar-modal-title\"></h4>\n <button class=\"close toolbar-modal-close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body toolbar-modal-body\"></div>\n <div class=\"modal-footer toolbar-modal-footer\">\n <button class=\"btn btn-%s toolbar-modal-close\"></button>\n </div>\n </div>\n </div>\n </div>\n "
  2907. }
  2908. },
  2909. bootstrap5: {
  2910. icons: {
  2911. advancedSearchIcon: 'bi-chevron-down'
  2912. },
  2913. classes: {
  2914. formGroup: 'mb-3'
  2915. },
  2916. html: {
  2917. modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title toolbar-modal-title\"></h5>\n <button class=\"btn-close toolbar-modal-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\n </div>\n <div class=\"modal-body toolbar-modal-body\"></div>\n <div class=\"modal-footer toolbar-modal-footer\">\n <button class=\"btn btn-%s toolbar-modal-close\"></button>\n </div>\n </div>\n </div>\n </div>\n "
  2918. }
  2919. },
  2920. bulma: {
  2921. icons: {
  2922. advancedSearchIcon: 'fa-chevron-down'
  2923. },
  2924. classes: {},
  2925. html: {
  2926. modal: "\n <div class=\"modal\" id=\"avdSearchModal_%s\">\n <div class=\"modal-background\"></div>\n <div class=\"modal-card\">\n <header class=\"modal-card-head\">\n <p class=\"modal-card-title toolbar-modal-title\"></p>\n <button class=\"delete toolbar-modal-close\"></button>\n </header>\n <section class=\"modal-card-body toolbar-modal-body\"></section>\n <footer class=\"modal-card-foot toolbar-modal-footer\">\n <button class=\"button button-%s toolbar-modal-close\"></button>\n </footer>\n </div>\n </div>\n "
  2927. }
  2928. },
  2929. foundation: {
  2930. icons: {
  2931. advancedSearchIcon: 'fa-chevron-down'
  2932. },
  2933. classes: {},
  2934. html: {
  2935. modal: "\n <div class=\"reveal\" id=\"avdSearchModal_%s\" data-reveal>\n <h1 class=\"toolbar-modal-title\"></h1>\n <div class=\"toolbar-modal-body\"></div>\n <button class=\"close-button toolbar-modal-close\" data-close aria-label=\"Close modal\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n <div class=\"toolbar-modal-footer\">\n <button class=\"button button-%s toolbar-modal-close\"></button>\n </div>\n </div>\n "
  2936. }
  2937. },
  2938. materialize: {
  2939. icons: {
  2940. advancedSearchIcon: 'expand_more'
  2941. },
  2942. classes: {},
  2943. html: {
  2944. modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal\">\n <div class=\"modal-content\">\n <h4 class=\"toolbar-modal-title\"></h4>\n <div class=\"toolbar-modal-body\"></div>\n </div>\n <div class=\"modal-footer toolbar-modal-footer\">\n <a href=\"javascript:void(0)\" class=\"modal-close waves-effect waves-green btn-flat btn-%s toolbar-modal-close\"></a>\n </div>\n </div>\n "
  2945. }
  2946. },
  2947. semantic: {
  2948. icons: {
  2949. advancedSearchIcon: 'fa-chevron-down'
  2950. },
  2951. classes: {},
  2952. html: {
  2953. modal: "\n <div class=\"ui modal\" id=\"avdSearchModal_%s\">\n <i class=\"close icon toolbar-modal-close\"></i>\n <div class=\"header toolbar-modal-title\"\"></div>\n <div class=\"image content ui form toolbar-modal-body\"></div>\n <div class=\"actions toolbar-modal-footer\">\n <div class=\"ui black deny button button-%s toolbar-modal-close\"></div>\n </div>\n </div>\n "
  2954. }
  2955. }
  2956. }[$.fn.bootstrapTable.theme];
  2957. Object.assign($.fn.bootstrapTable.defaults, {
  2958. advancedSearch: false,
  2959. idForm: 'advancedSearch',
  2960. actionForm: '',
  2961. idTable: undefined,
  2962. // eslint-disable-next-line no-unused-vars
  2963. onColumnAdvancedSearch: function onColumnAdvancedSearch(field, text) {
  2964. return false;
  2965. }
  2966. });
  2967. Object.assign($.fn.bootstrapTable.defaults.icons, {
  2968. advancedSearchIcon: theme.icons.advancedSearchIcon
  2969. });
  2970. Object.assign($.fn.bootstrapTable.events, {
  2971. 'column-advanced-search.bs.table': 'onColumnAdvancedSearch'
  2972. });
  2973. Object.assign($.fn.bootstrapTable.locales, {
  2974. formatAdvancedSearch: function formatAdvancedSearch() {
  2975. return 'Advanced search';
  2976. },
  2977. formatAdvancedCloseButton: function formatAdvancedCloseButton() {
  2978. return 'Close';
  2979. }
  2980. });
  2981. Object.assign($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales);
  2982. $.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  2983. function _class() {
  2984. _classCallCheck(this, _class);
  2985. return _callSuper(this, _class, arguments);
  2986. }
  2987. _inherits(_class, _$$BootstrapTable);
  2988. return _createClass(_class, [{
  2989. key: "initToolbar",
  2990. value: function initToolbar() {
  2991. this.showToolbar = this.showToolbar || this.options.search && this.options.advancedSearch && this.options.idTable;
  2992. if (this.showToolbar) {
  2993. this.buttons = Object.assign(this.buttons, {
  2994. advancedSearch: {
  2995. text: this.options.formatAdvancedSearch(),
  2996. icon: this.options.icons.advancedSearchIcon,
  2997. event: this.showAdvancedSearch,
  2998. attributes: {
  2999. 'aria-label': this.options.formatAdvancedSearch(),
  3000. title: this.options.formatAdvancedSearch()
  3001. }
  3002. }
  3003. });
  3004. if (Utils.isEmptyObject(this.filterColumnsPartial)) {
  3005. this.filterColumnsPartial = {};
  3006. }
  3007. }
  3008. _superPropGet(_class, "initToolbar", this)([]);
  3009. }
  3010. }, {
  3011. key: "showAdvancedSearch",
  3012. value: function showAdvancedSearch() {
  3013. var _this = this;
  3014. this.$toolbarModal = $("#avdSearchModal_".concat(this.options.idTable));
  3015. if (this.$toolbarModal.length <= 0) {
  3016. $('body').append(Utils.sprintf(theme.html.modal, this.options.idTable, this.options.buttonsClass));
  3017. this.$toolbarModal = $("#avdSearchModal_".concat(this.options.idTable));
  3018. this.$toolbarModal.find('.toolbar-modal-close').off('click').on('click', function () {
  3019. return _this.hideToolbarModal();
  3020. });
  3021. }
  3022. this.initToolbarModalBody();
  3023. this.showToolbarModal();
  3024. }
  3025. }, {
  3026. key: "initToolbarModalBody",
  3027. value: function initToolbarModalBody() {
  3028. var _this2 = this;
  3029. this.$toolbarModal.find('.toolbar-modal-title').html(this.options.formatAdvancedSearch());
  3030. this.$toolbarModal.find('.toolbar-modal-footer .toolbar-modal-close').html(this.options.formatAdvancedCloseButton());
  3031. this.$toolbarModal.find('.toolbar-modal-body').html(this.createToolbarForm()).off('keyup blur', 'input').on('keyup blur', 'input', function (e) {
  3032. _this2.onColumnAdvancedSearch(e);
  3033. });
  3034. }
  3035. }, {
  3036. key: "showToolbarModal",
  3037. value: function showToolbarModal() {
  3038. var theme = $.fn.bootstrapTable.theme;
  3039. if (['bootstrap3', 'bootstrap4'].includes(theme)) {
  3040. this.$toolbarModal.modal();
  3041. } else if (theme === 'bootstrap5') {
  3042. if (!this.toolbarModal) {
  3043. this.toolbarModal = new window.bootstrap.Modal(this.$toolbarModal[0], {});
  3044. }
  3045. this.toolbarModal.show();
  3046. } else if (theme === 'bulma') {
  3047. this.$toolbarModal.toggleClass('is-active');
  3048. } else if (theme === 'foundation') {
  3049. if (!this.toolbarModal) {
  3050. this.toolbarModal = new window.Foundation.Reveal(this.$toolbarModal);
  3051. }
  3052. this.toolbarModal.open();
  3053. } else if (theme === 'materialize') {
  3054. this.$toolbarModal.modal().modal('open');
  3055. } else if (theme === 'semantic') {
  3056. this.$toolbarModal.modal('show');
  3057. }
  3058. }
  3059. }, {
  3060. key: "hideToolbarModal",
  3061. value: function hideToolbarModal() {
  3062. var theme = $.fn.bootstrapTable.theme;
  3063. if (['bootstrap3', 'bootstrap4'].includes(theme)) {
  3064. this.$toolbarModal.modal('hide');
  3065. } else if (theme === 'bootstrap5') {
  3066. this.toolbarModal.hide();
  3067. } else if (theme === 'bulma') {
  3068. $('html').toggleClass('is-clipped');
  3069. this.$toolbarModal.toggleClass('is-active');
  3070. } else if (theme === 'foundation') {
  3071. this.toolbarModal.close();
  3072. } else if (theme === 'materialize') {
  3073. this.$toolbarModal.modal('open');
  3074. } else if (theme === 'semantic') {
  3075. this.$toolbarModal.modal('close');
  3076. }
  3077. if (this.options.sidePagination === 'server') {
  3078. this.options.pageNumber = 1;
  3079. this.updatePagination();
  3080. this.trigger('column-advanced-search', this.filterColumnsPartial);
  3081. }
  3082. }
  3083. }, {
  3084. key: "createToolbarForm",
  3085. value: function createToolbarForm() {
  3086. var html = ["<form class=\"form-horizontal toolbar-model-form\" action=\"".concat(this.options.actionForm, "\">")];
  3087. var _iterator = _createForOfIteratorHelper(this.columns),
  3088. _step;
  3089. try {
  3090. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  3091. var column = _step.value;
  3092. if (!column.checkbox && column.visible && column.searchable) {
  3093. var title = $('<div/>').html(column.title).text().trim();
  3094. var value = this.filterColumnsPartial[column.field] || '';
  3095. html.push("\n <div class=\"form-group row ".concat(theme.classes.formGroup || '', "\">\n <label class=\"col-sm-4 control-label\">").concat(title, "</label>\n <div class=\"col-sm-6\">\n <input type=\"text\" class=\"form-control ").concat(this.constants.classes.input, "\"\n name=\"").concat(column.field, "\" placeholder=\"").concat(title, "\" value=\"").concat(value, "\">\n </div>\n </div>\n "));
  3096. }
  3097. }
  3098. } catch (err) {
  3099. _iterator.e(err);
  3100. } finally {
  3101. _iterator.f();
  3102. }
  3103. html.push('</form>');
  3104. return html.join('');
  3105. }
  3106. }, {
  3107. key: "initSearch",
  3108. value: function initSearch() {
  3109. var _this3 = this;
  3110. _superPropGet(_class, "initSearch", this)([]);
  3111. if (!this.options.advancedSearch || this.options.sidePagination === 'server') {
  3112. return;
  3113. }
  3114. var fp = Utils.isEmptyObject(this.filterColumnsPartial) ? null : this.filterColumnsPartial;
  3115. this.data = fp ? this.data.filter(function (item, i) {
  3116. for (var _i = 0, _Object$entries = Object.entries(fp); _i < _Object$entries.length; _i++) {
  3117. var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
  3118. key = _Object$entries$_i[0],
  3119. v = _Object$entries$_i[1];
  3120. var val = v.toLowerCase();
  3121. var value = item[key];
  3122. var index = _this3.header.fields.indexOf(key);
  3123. value = Utils.calculateObjectValue(_this3.header, _this3.header.formatters[index], [value, item, i], value);
  3124. if (_this3.header.formatters[index]) {
  3125. // search innerText
  3126. value = $('<div>').html(value).text();
  3127. }
  3128. if (!(index !== -1 && (typeof value === 'string' || typeof value === 'number') && "".concat(value).toLowerCase().includes(val))) {
  3129. return false;
  3130. }
  3131. }
  3132. return true;
  3133. }) : this.data;
  3134. this.unsortedData = _toConsumableArray(this.data);
  3135. }
  3136. }, {
  3137. key: "onColumnAdvancedSearch",
  3138. value: function onColumnAdvancedSearch(e) {
  3139. var text = $(e.currentTarget).val().trim();
  3140. var field = $(e.currentTarget).attr('name');
  3141. if (text) {
  3142. this.filterColumnsPartial[field] = text;
  3143. } else {
  3144. delete this.filterColumnsPartial[field];
  3145. }
  3146. if (this.options.sidePagination !== 'server') {
  3147. this.options.pageNumber = 1;
  3148. this.initSearch();
  3149. this.updatePagination();
  3150. this.trigger('column-advanced-search', field, text);
  3151. }
  3152. }
  3153. }]);
  3154. }($.BootstrapTable);
  3155. }));