bootstrap-table-print.js 131 KB

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