utils.js 116 KB

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