bootstrap-table-semantic.js 78 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
  3. typeof define === 'function' && define.amd ? define(['jquery'], factory) :
  4. (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
  5. })(this, (function ($) { 'use strict';
  6. function _assertThisInitialized(e) {
  7. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  8. return e;
  9. }
  10. function _callSuper(t, o, e) {
  11. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  12. }
  13. function _classCallCheck(a, n) {
  14. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  15. }
  16. function _defineProperties(e, r) {
  17. for (var t = 0; t < r.length; t++) {
  18. var o = r[t];
  19. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  20. }
  21. }
  22. function _createClass(e, r, t) {
  23. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  24. writable: !1
  25. }), e;
  26. }
  27. function _get() {
  28. return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
  29. var p = _superPropBase(e, t);
  30. if (p) {
  31. var n = Object.getOwnPropertyDescriptor(p, t);
  32. return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
  33. }
  34. }, _get.apply(null, arguments);
  35. }
  36. function _getPrototypeOf(t) {
  37. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
  38. return t.__proto__ || Object.getPrototypeOf(t);
  39. }, _getPrototypeOf(t);
  40. }
  41. function _inherits(t, e) {
  42. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  43. t.prototype = Object.create(e && e.prototype, {
  44. constructor: {
  45. value: t,
  46. writable: !0,
  47. configurable: !0
  48. }
  49. }), Object.defineProperty(t, "prototype", {
  50. writable: !1
  51. }), e && _setPrototypeOf(t, e);
  52. }
  53. function _isNativeReflectConstruct() {
  54. try {
  55. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  56. } catch (t) {}
  57. return (_isNativeReflectConstruct = function () {
  58. return !!t;
  59. })();
  60. }
  61. function _possibleConstructorReturn(t, e) {
  62. if (e && ("object" == typeof e || "function" == typeof e)) return e;
  63. if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
  64. return _assertThisInitialized(t);
  65. }
  66. function _setPrototypeOf(t, e) {
  67. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
  68. return t.__proto__ = e, t;
  69. }, _setPrototypeOf(t, e);
  70. }
  71. function _superPropBase(t, o) {
  72. for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
  73. return t;
  74. }
  75. function _superPropGet(t, e, r, o) {
  76. var p = _get(_getPrototypeOf(t.prototype ), e, r);
  77. return function (t) {
  78. return p.apply(r, t);
  79. } ;
  80. }
  81. function _toPrimitive(t, r) {
  82. if ("object" != typeof t || !t) return t;
  83. var e = t[Symbol.toPrimitive];
  84. if (void 0 !== e) {
  85. var i = e.call(t, r);
  86. if ("object" != typeof i) return i;
  87. throw new TypeError("@@toPrimitive must return a primitive value.");
  88. }
  89. return (String )(t);
  90. }
  91. function _toPropertyKey(t) {
  92. var i = _toPrimitive(t, "string");
  93. return "symbol" == typeof i ? i : i + "";
  94. }
  95. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  96. var es_array_find = {};
  97. var globalThis_1;
  98. var hasRequiredGlobalThis;
  99. function requireGlobalThis () {
  100. if (hasRequiredGlobalThis) return globalThis_1;
  101. hasRequiredGlobalThis = 1;
  102. var check = function (it) {
  103. return it && it.Math === Math && it;
  104. };
  105. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  106. globalThis_1 =
  107. // eslint-disable-next-line es/no-global-this -- safe
  108. check(typeof globalThis == 'object' && globalThis) ||
  109. check(typeof window == 'object' && window) ||
  110. // eslint-disable-next-line no-restricted-globals -- safe
  111. check(typeof self == 'object' && self) ||
  112. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  113. check(typeof globalThis_1 == 'object' && globalThis_1) ||
  114. // eslint-disable-next-line no-new-func -- fallback
  115. (function () { return this; })() || Function('return this')();
  116. return globalThis_1;
  117. }
  118. var objectGetOwnPropertyDescriptor = {};
  119. var fails;
  120. var hasRequiredFails;
  121. function requireFails () {
  122. if (hasRequiredFails) return fails;
  123. hasRequiredFails = 1;
  124. fails = function (exec) {
  125. try {
  126. return !!exec();
  127. } catch (error) {
  128. return true;
  129. }
  130. };
  131. return fails;
  132. }
  133. var descriptors;
  134. var hasRequiredDescriptors;
  135. function requireDescriptors () {
  136. if (hasRequiredDescriptors) return descriptors;
  137. hasRequiredDescriptors = 1;
  138. var fails = requireFails();
  139. // Detect IE8's incomplete defineProperty implementation
  140. descriptors = !fails(function () {
  141. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  142. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  143. });
  144. return descriptors;
  145. }
  146. var functionBindNative;
  147. var hasRequiredFunctionBindNative;
  148. function requireFunctionBindNative () {
  149. if (hasRequiredFunctionBindNative) return functionBindNative;
  150. hasRequiredFunctionBindNative = 1;
  151. var fails = requireFails();
  152. functionBindNative = !fails(function () {
  153. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  154. var test = (function () { /* empty */ }).bind();
  155. // eslint-disable-next-line no-prototype-builtins -- safe
  156. return typeof test != 'function' || test.hasOwnProperty('prototype');
  157. });
  158. return functionBindNative;
  159. }
  160. var functionCall;
  161. var hasRequiredFunctionCall;
  162. function requireFunctionCall () {
  163. if (hasRequiredFunctionCall) return functionCall;
  164. hasRequiredFunctionCall = 1;
  165. var NATIVE_BIND = requireFunctionBindNative();
  166. var call = Function.prototype.call;
  167. functionCall = NATIVE_BIND ? call.bind(call) : function () {
  168. return call.apply(call, arguments);
  169. };
  170. return functionCall;
  171. }
  172. var objectPropertyIsEnumerable = {};
  173. var hasRequiredObjectPropertyIsEnumerable;
  174. function requireObjectPropertyIsEnumerable () {
  175. if (hasRequiredObjectPropertyIsEnumerable) return objectPropertyIsEnumerable;
  176. hasRequiredObjectPropertyIsEnumerable = 1;
  177. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  178. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  179. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  180. // Nashorn ~ JDK8 bug
  181. var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  182. // `Object.prototype.propertyIsEnumerable` method implementation
  183. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  184. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  185. var descriptor = getOwnPropertyDescriptor(this, V);
  186. return !!descriptor && descriptor.enumerable;
  187. } : $propertyIsEnumerable;
  188. return objectPropertyIsEnumerable;
  189. }
  190. var createPropertyDescriptor;
  191. var hasRequiredCreatePropertyDescriptor;
  192. function requireCreatePropertyDescriptor () {
  193. if (hasRequiredCreatePropertyDescriptor) return createPropertyDescriptor;
  194. hasRequiredCreatePropertyDescriptor = 1;
  195. createPropertyDescriptor = function (bitmap, value) {
  196. return {
  197. enumerable: !(bitmap & 1),
  198. configurable: !(bitmap & 2),
  199. writable: !(bitmap & 4),
  200. value: value
  201. };
  202. };
  203. return createPropertyDescriptor;
  204. }
  205. var functionUncurryThis;
  206. var hasRequiredFunctionUncurryThis;
  207. function requireFunctionUncurryThis () {
  208. if (hasRequiredFunctionUncurryThis) return functionUncurryThis;
  209. hasRequiredFunctionUncurryThis = 1;
  210. var NATIVE_BIND = requireFunctionBindNative();
  211. var FunctionPrototype = Function.prototype;
  212. var call = FunctionPrototype.call;
  213. var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
  214. functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
  215. return function () {
  216. return call.apply(fn, arguments);
  217. };
  218. };
  219. return functionUncurryThis;
  220. }
  221. var classofRaw;
  222. var hasRequiredClassofRaw;
  223. function requireClassofRaw () {
  224. if (hasRequiredClassofRaw) return classofRaw;
  225. hasRequiredClassofRaw = 1;
  226. var uncurryThis = requireFunctionUncurryThis();
  227. var toString = uncurryThis({}.toString);
  228. var stringSlice = uncurryThis(''.slice);
  229. classofRaw = function (it) {
  230. return stringSlice(toString(it), 8, -1);
  231. };
  232. return classofRaw;
  233. }
  234. var indexedObject;
  235. var hasRequiredIndexedObject;
  236. function requireIndexedObject () {
  237. if (hasRequiredIndexedObject) return indexedObject;
  238. hasRequiredIndexedObject = 1;
  239. var uncurryThis = requireFunctionUncurryThis();
  240. var fails = requireFails();
  241. var classof = requireClassofRaw();
  242. var $Object = Object;
  243. var split = uncurryThis(''.split);
  244. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  245. indexedObject = fails(function () {
  246. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  247. // eslint-disable-next-line no-prototype-builtins -- safe
  248. return !$Object('z').propertyIsEnumerable(0);
  249. }) ? function (it) {
  250. return classof(it) === 'String' ? split(it, '') : $Object(it);
  251. } : $Object;
  252. return indexedObject;
  253. }
  254. var isNullOrUndefined;
  255. var hasRequiredIsNullOrUndefined;
  256. function requireIsNullOrUndefined () {
  257. if (hasRequiredIsNullOrUndefined) return isNullOrUndefined;
  258. hasRequiredIsNullOrUndefined = 1;
  259. // we can't use just `it == null` since of `document.all` special case
  260. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  261. isNullOrUndefined = function (it) {
  262. return it === null || it === undefined;
  263. };
  264. return isNullOrUndefined;
  265. }
  266. var requireObjectCoercible;
  267. var hasRequiredRequireObjectCoercible;
  268. function requireRequireObjectCoercible () {
  269. if (hasRequiredRequireObjectCoercible) return requireObjectCoercible;
  270. hasRequiredRequireObjectCoercible = 1;
  271. var isNullOrUndefined = requireIsNullOrUndefined();
  272. var $TypeError = TypeError;
  273. // `RequireObjectCoercible` abstract operation
  274. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  275. requireObjectCoercible = function (it) {
  276. if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
  277. return it;
  278. };
  279. return requireObjectCoercible;
  280. }
  281. var toIndexedObject;
  282. var hasRequiredToIndexedObject;
  283. function requireToIndexedObject () {
  284. if (hasRequiredToIndexedObject) return toIndexedObject;
  285. hasRequiredToIndexedObject = 1;
  286. // toObject with fallback for non-array-like ES3 strings
  287. var IndexedObject = requireIndexedObject();
  288. var requireObjectCoercible = requireRequireObjectCoercible();
  289. toIndexedObject = function (it) {
  290. return IndexedObject(requireObjectCoercible(it));
  291. };
  292. return toIndexedObject;
  293. }
  294. var isCallable;
  295. var hasRequiredIsCallable;
  296. function requireIsCallable () {
  297. if (hasRequiredIsCallable) return isCallable;
  298. hasRequiredIsCallable = 1;
  299. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  300. var documentAll = typeof document == 'object' && document.all;
  301. // `IsCallable` abstract operation
  302. // https://tc39.es/ecma262/#sec-iscallable
  303. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  304. isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  305. return typeof argument == 'function' || argument === documentAll;
  306. } : function (argument) {
  307. return typeof argument == 'function';
  308. };
  309. return isCallable;
  310. }
  311. var isObject;
  312. var hasRequiredIsObject;
  313. function requireIsObject () {
  314. if (hasRequiredIsObject) return isObject;
  315. hasRequiredIsObject = 1;
  316. var isCallable = requireIsCallable();
  317. isObject = function (it) {
  318. return typeof it == 'object' ? it !== null : isCallable(it);
  319. };
  320. return isObject;
  321. }
  322. var getBuiltIn;
  323. var hasRequiredGetBuiltIn;
  324. function requireGetBuiltIn () {
  325. if (hasRequiredGetBuiltIn) return getBuiltIn;
  326. hasRequiredGetBuiltIn = 1;
  327. var globalThis = requireGlobalThis();
  328. var isCallable = requireIsCallable();
  329. var aFunction = function (argument) {
  330. return isCallable(argument) ? argument : undefined;
  331. };
  332. getBuiltIn = function (namespace, method) {
  333. return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
  334. };
  335. return getBuiltIn;
  336. }
  337. var objectIsPrototypeOf;
  338. var hasRequiredObjectIsPrototypeOf;
  339. function requireObjectIsPrototypeOf () {
  340. if (hasRequiredObjectIsPrototypeOf) return objectIsPrototypeOf;
  341. hasRequiredObjectIsPrototypeOf = 1;
  342. var uncurryThis = requireFunctionUncurryThis();
  343. objectIsPrototypeOf = uncurryThis({}.isPrototypeOf);
  344. return objectIsPrototypeOf;
  345. }
  346. var environmentUserAgent;
  347. var hasRequiredEnvironmentUserAgent;
  348. function requireEnvironmentUserAgent () {
  349. if (hasRequiredEnvironmentUserAgent) return environmentUserAgent;
  350. hasRequiredEnvironmentUserAgent = 1;
  351. var globalThis = requireGlobalThis();
  352. var navigator = globalThis.navigator;
  353. var userAgent = navigator && navigator.userAgent;
  354. environmentUserAgent = userAgent ? String(userAgent) : '';
  355. return environmentUserAgent;
  356. }
  357. var environmentV8Version;
  358. var hasRequiredEnvironmentV8Version;
  359. function requireEnvironmentV8Version () {
  360. if (hasRequiredEnvironmentV8Version) return environmentV8Version;
  361. hasRequiredEnvironmentV8Version = 1;
  362. var globalThis = requireGlobalThis();
  363. var userAgent = requireEnvironmentUserAgent();
  364. var process = globalThis.process;
  365. var Deno = globalThis.Deno;
  366. var versions = process && process.versions || Deno && Deno.version;
  367. var v8 = versions && versions.v8;
  368. var match, version;
  369. if (v8) {
  370. match = v8.split('.');
  371. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  372. // but their correct versions are not interesting for us
  373. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  374. }
  375. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  376. // so check `userAgent` even if `.v8` exists, but 0
  377. if (!version && userAgent) {
  378. match = userAgent.match(/Edge\/(\d+)/);
  379. if (!match || match[1] >= 74) {
  380. match = userAgent.match(/Chrome\/(\d+)/);
  381. if (match) version = +match[1];
  382. }
  383. }
  384. environmentV8Version = version;
  385. return environmentV8Version;
  386. }
  387. var symbolConstructorDetection;
  388. var hasRequiredSymbolConstructorDetection;
  389. function requireSymbolConstructorDetection () {
  390. if (hasRequiredSymbolConstructorDetection) return symbolConstructorDetection;
  391. hasRequiredSymbolConstructorDetection = 1;
  392. /* eslint-disable es/no-symbol -- required for testing */
  393. var V8_VERSION = requireEnvironmentV8Version();
  394. var fails = requireFails();
  395. var globalThis = requireGlobalThis();
  396. var $String = globalThis.String;
  397. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  398. symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
  399. var symbol = Symbol('symbol detection');
  400. // Chrome 38 Symbol has incorrect toString conversion
  401. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  402. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  403. // of course, fail.
  404. return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
  405. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  406. !Symbol.sham && V8_VERSION && V8_VERSION < 41;
  407. });
  408. return symbolConstructorDetection;
  409. }
  410. var useSymbolAsUid;
  411. var hasRequiredUseSymbolAsUid;
  412. function requireUseSymbolAsUid () {
  413. if (hasRequiredUseSymbolAsUid) return useSymbolAsUid;
  414. hasRequiredUseSymbolAsUid = 1;
  415. /* eslint-disable es/no-symbol -- required for testing */
  416. var NATIVE_SYMBOL = requireSymbolConstructorDetection();
  417. useSymbolAsUid = NATIVE_SYMBOL
  418. && !Symbol.sham
  419. && typeof Symbol.iterator == 'symbol';
  420. return useSymbolAsUid;
  421. }
  422. var isSymbol;
  423. var hasRequiredIsSymbol;
  424. function requireIsSymbol () {
  425. if (hasRequiredIsSymbol) return isSymbol;
  426. hasRequiredIsSymbol = 1;
  427. var getBuiltIn = requireGetBuiltIn();
  428. var isCallable = requireIsCallable();
  429. var isPrototypeOf = requireObjectIsPrototypeOf();
  430. var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
  431. var $Object = Object;
  432. isSymbol = USE_SYMBOL_AS_UID ? function (it) {
  433. return typeof it == 'symbol';
  434. } : function (it) {
  435. var $Symbol = getBuiltIn('Symbol');
  436. return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
  437. };
  438. return isSymbol;
  439. }
  440. var tryToString;
  441. var hasRequiredTryToString;
  442. function requireTryToString () {
  443. if (hasRequiredTryToString) return tryToString;
  444. hasRequiredTryToString = 1;
  445. var $String = String;
  446. tryToString = function (argument) {
  447. try {
  448. return $String(argument);
  449. } catch (error) {
  450. return 'Object';
  451. }
  452. };
  453. return tryToString;
  454. }
  455. var aCallable;
  456. var hasRequiredACallable;
  457. function requireACallable () {
  458. if (hasRequiredACallable) return aCallable;
  459. hasRequiredACallable = 1;
  460. var isCallable = requireIsCallable();
  461. var tryToString = requireTryToString();
  462. var $TypeError = TypeError;
  463. // `Assert: IsCallable(argument) is true`
  464. aCallable = function (argument) {
  465. if (isCallable(argument)) return argument;
  466. throw new $TypeError(tryToString(argument) + ' is not a function');
  467. };
  468. return aCallable;
  469. }
  470. var getMethod;
  471. var hasRequiredGetMethod;
  472. function requireGetMethod () {
  473. if (hasRequiredGetMethod) return getMethod;
  474. hasRequiredGetMethod = 1;
  475. var aCallable = requireACallable();
  476. var isNullOrUndefined = requireIsNullOrUndefined();
  477. // `GetMethod` abstract operation
  478. // https://tc39.es/ecma262/#sec-getmethod
  479. getMethod = function (V, P) {
  480. var func = V[P];
  481. return isNullOrUndefined(func) ? undefined : aCallable(func);
  482. };
  483. return getMethod;
  484. }
  485. var ordinaryToPrimitive;
  486. var hasRequiredOrdinaryToPrimitive;
  487. function requireOrdinaryToPrimitive () {
  488. if (hasRequiredOrdinaryToPrimitive) return ordinaryToPrimitive;
  489. hasRequiredOrdinaryToPrimitive = 1;
  490. var call = requireFunctionCall();
  491. var isCallable = requireIsCallable();
  492. var isObject = requireIsObject();
  493. var $TypeError = TypeError;
  494. // `OrdinaryToPrimitive` abstract operation
  495. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  496. ordinaryToPrimitive = function (input, pref) {
  497. var fn, val;
  498. if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  499. if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
  500. if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
  501. throw new $TypeError("Can't convert object to primitive value");
  502. };
  503. return ordinaryToPrimitive;
  504. }
  505. var sharedStore = {exports: {}};
  506. var isPure;
  507. var hasRequiredIsPure;
  508. function requireIsPure () {
  509. if (hasRequiredIsPure) return isPure;
  510. hasRequiredIsPure = 1;
  511. isPure = false;
  512. return isPure;
  513. }
  514. var defineGlobalProperty;
  515. var hasRequiredDefineGlobalProperty;
  516. function requireDefineGlobalProperty () {
  517. if (hasRequiredDefineGlobalProperty) return defineGlobalProperty;
  518. hasRequiredDefineGlobalProperty = 1;
  519. var globalThis = requireGlobalThis();
  520. // eslint-disable-next-line es/no-object-defineproperty -- safe
  521. var defineProperty = Object.defineProperty;
  522. defineGlobalProperty = function (key, value) {
  523. try {
  524. defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
  525. } catch (error) {
  526. globalThis[key] = value;
  527. } return value;
  528. };
  529. return defineGlobalProperty;
  530. }
  531. var hasRequiredSharedStore;
  532. function requireSharedStore () {
  533. if (hasRequiredSharedStore) return sharedStore.exports;
  534. hasRequiredSharedStore = 1;
  535. var IS_PURE = requireIsPure();
  536. var globalThis = requireGlobalThis();
  537. var defineGlobalProperty = requireDefineGlobalProperty();
  538. var SHARED = '__core-js_shared__';
  539. var store = sharedStore.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
  540. (store.versions || (store.versions = [])).push({
  541. version: '3.38.1',
  542. mode: IS_PURE ? 'pure' : 'global',
  543. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  544. license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
  545. source: 'https://github.com/zloirock/core-js'
  546. });
  547. return sharedStore.exports;
  548. }
  549. var shared;
  550. var hasRequiredShared;
  551. function requireShared () {
  552. if (hasRequiredShared) return shared;
  553. hasRequiredShared = 1;
  554. var store = requireSharedStore();
  555. shared = function (key, value) {
  556. return store[key] || (store[key] = value || {});
  557. };
  558. return shared;
  559. }
  560. var toObject;
  561. var hasRequiredToObject;
  562. function requireToObject () {
  563. if (hasRequiredToObject) return toObject;
  564. hasRequiredToObject = 1;
  565. var requireObjectCoercible = requireRequireObjectCoercible();
  566. var $Object = Object;
  567. // `ToObject` abstract operation
  568. // https://tc39.es/ecma262/#sec-toobject
  569. toObject = function (argument) {
  570. return $Object(requireObjectCoercible(argument));
  571. };
  572. return toObject;
  573. }
  574. var hasOwnProperty_1;
  575. var hasRequiredHasOwnProperty;
  576. function requireHasOwnProperty () {
  577. if (hasRequiredHasOwnProperty) return hasOwnProperty_1;
  578. hasRequiredHasOwnProperty = 1;
  579. var uncurryThis = requireFunctionUncurryThis();
  580. var toObject = requireToObject();
  581. var hasOwnProperty = uncurryThis({}.hasOwnProperty);
  582. // `HasOwnProperty` abstract operation
  583. // https://tc39.es/ecma262/#sec-hasownproperty
  584. // eslint-disable-next-line es/no-object-hasown -- safe
  585. hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  586. return hasOwnProperty(toObject(it), key);
  587. };
  588. return hasOwnProperty_1;
  589. }
  590. var uid;
  591. var hasRequiredUid;
  592. function requireUid () {
  593. if (hasRequiredUid) return uid;
  594. hasRequiredUid = 1;
  595. var uncurryThis = requireFunctionUncurryThis();
  596. var id = 0;
  597. var postfix = Math.random();
  598. var toString = uncurryThis(1.0.toString);
  599. uid = function (key) {
  600. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
  601. };
  602. return uid;
  603. }
  604. var wellKnownSymbol;
  605. var hasRequiredWellKnownSymbol;
  606. function requireWellKnownSymbol () {
  607. if (hasRequiredWellKnownSymbol) return wellKnownSymbol;
  608. hasRequiredWellKnownSymbol = 1;
  609. var globalThis = requireGlobalThis();
  610. var shared = requireShared();
  611. var hasOwn = requireHasOwnProperty();
  612. var uid = requireUid();
  613. var NATIVE_SYMBOL = requireSymbolConstructorDetection();
  614. var USE_SYMBOL_AS_UID = requireUseSymbolAsUid();
  615. var Symbol = globalThis.Symbol;
  616. var WellKnownSymbolsStore = shared('wks');
  617. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
  618. wellKnownSymbol = function (name) {
  619. if (!hasOwn(WellKnownSymbolsStore, name)) {
  620. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
  621. ? Symbol[name]
  622. : createWellKnownSymbol('Symbol.' + name);
  623. } return WellKnownSymbolsStore[name];
  624. };
  625. return wellKnownSymbol;
  626. }
  627. var toPrimitive;
  628. var hasRequiredToPrimitive;
  629. function requireToPrimitive () {
  630. if (hasRequiredToPrimitive) return toPrimitive;
  631. hasRequiredToPrimitive = 1;
  632. var call = requireFunctionCall();
  633. var isObject = requireIsObject();
  634. var isSymbol = requireIsSymbol();
  635. var getMethod = requireGetMethod();
  636. var ordinaryToPrimitive = requireOrdinaryToPrimitive();
  637. var wellKnownSymbol = requireWellKnownSymbol();
  638. var $TypeError = TypeError;
  639. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  640. // `ToPrimitive` abstract operation
  641. // https://tc39.es/ecma262/#sec-toprimitive
  642. toPrimitive = function (input, pref) {
  643. if (!isObject(input) || isSymbol(input)) return input;
  644. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  645. var result;
  646. if (exoticToPrim) {
  647. if (pref === undefined) pref = 'default';
  648. result = call(exoticToPrim, input, pref);
  649. if (!isObject(result) || isSymbol(result)) return result;
  650. throw new $TypeError("Can't convert object to primitive value");
  651. }
  652. if (pref === undefined) pref = 'number';
  653. return ordinaryToPrimitive(input, pref);
  654. };
  655. return toPrimitive;
  656. }
  657. var toPropertyKey;
  658. var hasRequiredToPropertyKey;
  659. function requireToPropertyKey () {
  660. if (hasRequiredToPropertyKey) return toPropertyKey;
  661. hasRequiredToPropertyKey = 1;
  662. var toPrimitive = requireToPrimitive();
  663. var isSymbol = requireIsSymbol();
  664. // `ToPropertyKey` abstract operation
  665. // https://tc39.es/ecma262/#sec-topropertykey
  666. toPropertyKey = function (argument) {
  667. var key = toPrimitive(argument, 'string');
  668. return isSymbol(key) ? key : key + '';
  669. };
  670. return toPropertyKey;
  671. }
  672. var documentCreateElement;
  673. var hasRequiredDocumentCreateElement;
  674. function requireDocumentCreateElement () {
  675. if (hasRequiredDocumentCreateElement) return documentCreateElement;
  676. hasRequiredDocumentCreateElement = 1;
  677. var globalThis = requireGlobalThis();
  678. var isObject = requireIsObject();
  679. var document = globalThis.document;
  680. // typeof document.createElement is 'object' in old IE
  681. var EXISTS = isObject(document) && isObject(document.createElement);
  682. documentCreateElement = function (it) {
  683. return EXISTS ? document.createElement(it) : {};
  684. };
  685. return documentCreateElement;
  686. }
  687. var ie8DomDefine;
  688. var hasRequiredIe8DomDefine;
  689. function requireIe8DomDefine () {
  690. if (hasRequiredIe8DomDefine) return ie8DomDefine;
  691. hasRequiredIe8DomDefine = 1;
  692. var DESCRIPTORS = requireDescriptors();
  693. var fails = requireFails();
  694. var createElement = requireDocumentCreateElement();
  695. // Thanks to IE8 for its funny defineProperty
  696. ie8DomDefine = !DESCRIPTORS && !fails(function () {
  697. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  698. return Object.defineProperty(createElement('div'), 'a', {
  699. get: function () { return 7; }
  700. }).a !== 7;
  701. });
  702. return ie8DomDefine;
  703. }
  704. var hasRequiredObjectGetOwnPropertyDescriptor;
  705. function requireObjectGetOwnPropertyDescriptor () {
  706. if (hasRequiredObjectGetOwnPropertyDescriptor) return objectGetOwnPropertyDescriptor;
  707. hasRequiredObjectGetOwnPropertyDescriptor = 1;
  708. var DESCRIPTORS = requireDescriptors();
  709. var call = requireFunctionCall();
  710. var propertyIsEnumerableModule = requireObjectPropertyIsEnumerable();
  711. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  712. var toIndexedObject = requireToIndexedObject();
  713. var toPropertyKey = requireToPropertyKey();
  714. var hasOwn = requireHasOwnProperty();
  715. var IE8_DOM_DEFINE = requireIe8DomDefine();
  716. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  717. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  718. // `Object.getOwnPropertyDescriptor` method
  719. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  720. objectGetOwnPropertyDescriptor.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  721. O = toIndexedObject(O);
  722. P = toPropertyKey(P);
  723. if (IE8_DOM_DEFINE) try {
  724. return $getOwnPropertyDescriptor(O, P);
  725. } catch (error) { /* empty */ }
  726. if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
  727. };
  728. return objectGetOwnPropertyDescriptor;
  729. }
  730. var objectDefineProperty = {};
  731. var v8PrototypeDefineBug;
  732. var hasRequiredV8PrototypeDefineBug;
  733. function requireV8PrototypeDefineBug () {
  734. if (hasRequiredV8PrototypeDefineBug) return v8PrototypeDefineBug;
  735. hasRequiredV8PrototypeDefineBug = 1;
  736. var DESCRIPTORS = requireDescriptors();
  737. var fails = requireFails();
  738. // V8 ~ Chrome 36-
  739. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  740. v8PrototypeDefineBug = DESCRIPTORS && fails(function () {
  741. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  742. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  743. value: 42,
  744. writable: false
  745. }).prototype !== 42;
  746. });
  747. return v8PrototypeDefineBug;
  748. }
  749. var anObject;
  750. var hasRequiredAnObject;
  751. function requireAnObject () {
  752. if (hasRequiredAnObject) return anObject;
  753. hasRequiredAnObject = 1;
  754. var isObject = requireIsObject();
  755. var $String = String;
  756. var $TypeError = TypeError;
  757. // `Assert: Type(argument) is Object`
  758. anObject = function (argument) {
  759. if (isObject(argument)) return argument;
  760. throw new $TypeError($String(argument) + ' is not an object');
  761. };
  762. return anObject;
  763. }
  764. var hasRequiredObjectDefineProperty;
  765. function requireObjectDefineProperty () {
  766. if (hasRequiredObjectDefineProperty) return objectDefineProperty;
  767. hasRequiredObjectDefineProperty = 1;
  768. var DESCRIPTORS = requireDescriptors();
  769. var IE8_DOM_DEFINE = requireIe8DomDefine();
  770. var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
  771. var anObject = requireAnObject();
  772. var toPropertyKey = requireToPropertyKey();
  773. var $TypeError = TypeError;
  774. // eslint-disable-next-line es/no-object-defineproperty -- safe
  775. var $defineProperty = Object.defineProperty;
  776. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  777. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  778. var ENUMERABLE = 'enumerable';
  779. var CONFIGURABLE = 'configurable';
  780. var WRITABLE = 'writable';
  781. // `Object.defineProperty` method
  782. // https://tc39.es/ecma262/#sec-object.defineproperty
  783. objectDefineProperty.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  784. anObject(O);
  785. P = toPropertyKey(P);
  786. anObject(Attributes);
  787. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  788. var current = $getOwnPropertyDescriptor(O, P);
  789. if (current && current[WRITABLE]) {
  790. O[P] = Attributes.value;
  791. Attributes = {
  792. configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
  793. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  794. writable: false
  795. };
  796. }
  797. } return $defineProperty(O, P, Attributes);
  798. } : $defineProperty : function defineProperty(O, P, Attributes) {
  799. anObject(O);
  800. P = toPropertyKey(P);
  801. anObject(Attributes);
  802. if (IE8_DOM_DEFINE) try {
  803. return $defineProperty(O, P, Attributes);
  804. } catch (error) { /* empty */ }
  805. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
  806. if ('value' in Attributes) O[P] = Attributes.value;
  807. return O;
  808. };
  809. return objectDefineProperty;
  810. }
  811. var createNonEnumerableProperty;
  812. var hasRequiredCreateNonEnumerableProperty;
  813. function requireCreateNonEnumerableProperty () {
  814. if (hasRequiredCreateNonEnumerableProperty) return createNonEnumerableProperty;
  815. hasRequiredCreateNonEnumerableProperty = 1;
  816. var DESCRIPTORS = requireDescriptors();
  817. var definePropertyModule = requireObjectDefineProperty();
  818. var createPropertyDescriptor = requireCreatePropertyDescriptor();
  819. createNonEnumerableProperty = DESCRIPTORS ? function (object, key, value) {
  820. return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
  821. } : function (object, key, value) {
  822. object[key] = value;
  823. return object;
  824. };
  825. return createNonEnumerableProperty;
  826. }
  827. var makeBuiltIn = {exports: {}};
  828. var functionName;
  829. var hasRequiredFunctionName;
  830. function requireFunctionName () {
  831. if (hasRequiredFunctionName) return functionName;
  832. hasRequiredFunctionName = 1;
  833. var DESCRIPTORS = requireDescriptors();
  834. var hasOwn = requireHasOwnProperty();
  835. var FunctionPrototype = Function.prototype;
  836. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  837. var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
  838. var EXISTS = hasOwn(FunctionPrototype, 'name');
  839. // additional protection from minified / mangled / dropped function names
  840. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  841. var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
  842. functionName = {
  843. EXISTS: EXISTS,
  844. PROPER: PROPER,
  845. CONFIGURABLE: CONFIGURABLE
  846. };
  847. return functionName;
  848. }
  849. var inspectSource;
  850. var hasRequiredInspectSource;
  851. function requireInspectSource () {
  852. if (hasRequiredInspectSource) return inspectSource;
  853. hasRequiredInspectSource = 1;
  854. var uncurryThis = requireFunctionUncurryThis();
  855. var isCallable = requireIsCallable();
  856. var store = requireSharedStore();
  857. var functionToString = uncurryThis(Function.toString);
  858. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  859. if (!isCallable(store.inspectSource)) {
  860. store.inspectSource = function (it) {
  861. return functionToString(it);
  862. };
  863. }
  864. inspectSource = store.inspectSource;
  865. return inspectSource;
  866. }
  867. var weakMapBasicDetection;
  868. var hasRequiredWeakMapBasicDetection;
  869. function requireWeakMapBasicDetection () {
  870. if (hasRequiredWeakMapBasicDetection) return weakMapBasicDetection;
  871. hasRequiredWeakMapBasicDetection = 1;
  872. var globalThis = requireGlobalThis();
  873. var isCallable = requireIsCallable();
  874. var WeakMap = globalThis.WeakMap;
  875. weakMapBasicDetection = isCallable(WeakMap) && /native code/.test(String(WeakMap));
  876. return weakMapBasicDetection;
  877. }
  878. var sharedKey;
  879. var hasRequiredSharedKey;
  880. function requireSharedKey () {
  881. if (hasRequiredSharedKey) return sharedKey;
  882. hasRequiredSharedKey = 1;
  883. var shared = requireShared();
  884. var uid = requireUid();
  885. var keys = shared('keys');
  886. sharedKey = function (key) {
  887. return keys[key] || (keys[key] = uid(key));
  888. };
  889. return sharedKey;
  890. }
  891. var hiddenKeys;
  892. var hasRequiredHiddenKeys;
  893. function requireHiddenKeys () {
  894. if (hasRequiredHiddenKeys) return hiddenKeys;
  895. hasRequiredHiddenKeys = 1;
  896. hiddenKeys = {};
  897. return hiddenKeys;
  898. }
  899. var internalState;
  900. var hasRequiredInternalState;
  901. function requireInternalState () {
  902. if (hasRequiredInternalState) return internalState;
  903. hasRequiredInternalState = 1;
  904. var NATIVE_WEAK_MAP = requireWeakMapBasicDetection();
  905. var globalThis = requireGlobalThis();
  906. var isObject = requireIsObject();
  907. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  908. var hasOwn = requireHasOwnProperty();
  909. var shared = requireSharedStore();
  910. var sharedKey = requireSharedKey();
  911. var hiddenKeys = requireHiddenKeys();
  912. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  913. var TypeError = globalThis.TypeError;
  914. var WeakMap = globalThis.WeakMap;
  915. var set, get, has;
  916. var enforce = function (it) {
  917. return has(it) ? get(it) : set(it, {});
  918. };
  919. var getterFor = function (TYPE) {
  920. return function (it) {
  921. var state;
  922. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  923. throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
  924. } return state;
  925. };
  926. };
  927. if (NATIVE_WEAK_MAP || shared.state) {
  928. var store = shared.state || (shared.state = new WeakMap());
  929. /* eslint-disable no-self-assign -- prototype methods protection */
  930. store.get = store.get;
  931. store.has = store.has;
  932. store.set = store.set;
  933. /* eslint-enable no-self-assign -- prototype methods protection */
  934. set = function (it, metadata) {
  935. if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  936. metadata.facade = it;
  937. store.set(it, metadata);
  938. return metadata;
  939. };
  940. get = function (it) {
  941. return store.get(it) || {};
  942. };
  943. has = function (it) {
  944. return store.has(it);
  945. };
  946. } else {
  947. var STATE = sharedKey('state');
  948. hiddenKeys[STATE] = true;
  949. set = function (it, metadata) {
  950. if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
  951. metadata.facade = it;
  952. createNonEnumerableProperty(it, STATE, metadata);
  953. return metadata;
  954. };
  955. get = function (it) {
  956. return hasOwn(it, STATE) ? it[STATE] : {};
  957. };
  958. has = function (it) {
  959. return hasOwn(it, STATE);
  960. };
  961. }
  962. internalState = {
  963. set: set,
  964. get: get,
  965. has: has,
  966. enforce: enforce,
  967. getterFor: getterFor
  968. };
  969. return internalState;
  970. }
  971. var hasRequiredMakeBuiltIn;
  972. function requireMakeBuiltIn () {
  973. if (hasRequiredMakeBuiltIn) return makeBuiltIn.exports;
  974. hasRequiredMakeBuiltIn = 1;
  975. var uncurryThis = requireFunctionUncurryThis();
  976. var fails = requireFails();
  977. var isCallable = requireIsCallable();
  978. var hasOwn = requireHasOwnProperty();
  979. var DESCRIPTORS = requireDescriptors();
  980. var CONFIGURABLE_FUNCTION_NAME = requireFunctionName().CONFIGURABLE;
  981. var inspectSource = requireInspectSource();
  982. var InternalStateModule = requireInternalState();
  983. var enforceInternalState = InternalStateModule.enforce;
  984. var getInternalState = InternalStateModule.get;
  985. var $String = String;
  986. // eslint-disable-next-line es/no-object-defineproperty -- safe
  987. var defineProperty = Object.defineProperty;
  988. var stringSlice = uncurryThis(''.slice);
  989. var replace = uncurryThis(''.replace);
  990. var join = uncurryThis([].join);
  991. var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
  992. return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  993. });
  994. var TEMPLATE = String(String).split('String');
  995. var makeBuiltIn$1 = makeBuiltIn.exports = function (value, name, options) {
  996. if (stringSlice($String(name), 0, 7) === 'Symbol(') {
  997. name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  998. }
  999. if (options && options.getter) name = 'get ' + name;
  1000. if (options && options.setter) name = 'set ' + name;
  1001. if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  1002. if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
  1003. else value.name = name;
  1004. }
  1005. if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
  1006. defineProperty(value, 'length', { value: options.arity });
  1007. }
  1008. try {
  1009. if (options && hasOwn(options, 'constructor') && options.constructor) {
  1010. if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
  1011. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  1012. } else if (value.prototype) value.prototype = undefined;
  1013. } catch (error) { /* empty */ }
  1014. var state = enforceInternalState(value);
  1015. if (!hasOwn(state, 'source')) {
  1016. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  1017. } return value;
  1018. };
  1019. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  1020. // eslint-disable-next-line no-extend-native -- required
  1021. Function.prototype.toString = makeBuiltIn$1(function toString() {
  1022. return isCallable(this) && getInternalState(this).source || inspectSource(this);
  1023. }, 'toString');
  1024. return makeBuiltIn.exports;
  1025. }
  1026. var defineBuiltIn;
  1027. var hasRequiredDefineBuiltIn;
  1028. function requireDefineBuiltIn () {
  1029. if (hasRequiredDefineBuiltIn) return defineBuiltIn;
  1030. hasRequiredDefineBuiltIn = 1;
  1031. var isCallable = requireIsCallable();
  1032. var definePropertyModule = requireObjectDefineProperty();
  1033. var makeBuiltIn = requireMakeBuiltIn();
  1034. var defineGlobalProperty = requireDefineGlobalProperty();
  1035. defineBuiltIn = function (O, key, value, options) {
  1036. if (!options) options = {};
  1037. var simple = options.enumerable;
  1038. var name = options.name !== undefined ? options.name : key;
  1039. if (isCallable(value)) makeBuiltIn(value, name, options);
  1040. if (options.global) {
  1041. if (simple) O[key] = value;
  1042. else defineGlobalProperty(key, value);
  1043. } else {
  1044. try {
  1045. if (!options.unsafe) delete O[key];
  1046. else if (O[key]) simple = true;
  1047. } catch (error) { /* empty */ }
  1048. if (simple) O[key] = value;
  1049. else definePropertyModule.f(O, key, {
  1050. value: value,
  1051. enumerable: false,
  1052. configurable: !options.nonConfigurable,
  1053. writable: !options.nonWritable
  1054. });
  1055. } return O;
  1056. };
  1057. return defineBuiltIn;
  1058. }
  1059. var objectGetOwnPropertyNames = {};
  1060. var mathTrunc;
  1061. var hasRequiredMathTrunc;
  1062. function requireMathTrunc () {
  1063. if (hasRequiredMathTrunc) return mathTrunc;
  1064. hasRequiredMathTrunc = 1;
  1065. var ceil = Math.ceil;
  1066. var floor = Math.floor;
  1067. // `Math.trunc` method
  1068. // https://tc39.es/ecma262/#sec-math.trunc
  1069. // eslint-disable-next-line es/no-math-trunc -- safe
  1070. mathTrunc = Math.trunc || function trunc(x) {
  1071. var n = +x;
  1072. return (n > 0 ? floor : ceil)(n);
  1073. };
  1074. return mathTrunc;
  1075. }
  1076. var toIntegerOrInfinity;
  1077. var hasRequiredToIntegerOrInfinity;
  1078. function requireToIntegerOrInfinity () {
  1079. if (hasRequiredToIntegerOrInfinity) return toIntegerOrInfinity;
  1080. hasRequiredToIntegerOrInfinity = 1;
  1081. var trunc = requireMathTrunc();
  1082. // `ToIntegerOrInfinity` abstract operation
  1083. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  1084. toIntegerOrInfinity = function (argument) {
  1085. var number = +argument;
  1086. // eslint-disable-next-line no-self-compare -- NaN check
  1087. return number !== number || number === 0 ? 0 : trunc(number);
  1088. };
  1089. return toIntegerOrInfinity;
  1090. }
  1091. var toAbsoluteIndex;
  1092. var hasRequiredToAbsoluteIndex;
  1093. function requireToAbsoluteIndex () {
  1094. if (hasRequiredToAbsoluteIndex) return toAbsoluteIndex;
  1095. hasRequiredToAbsoluteIndex = 1;
  1096. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  1097. var max = Math.max;
  1098. var min = Math.min;
  1099. // Helper for a popular repeating case of the spec:
  1100. // Let integer be ? ToInteger(index).
  1101. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  1102. toAbsoluteIndex = function (index, length) {
  1103. var integer = toIntegerOrInfinity(index);
  1104. return integer < 0 ? max(integer + length, 0) : min(integer, length);
  1105. };
  1106. return toAbsoluteIndex;
  1107. }
  1108. var toLength;
  1109. var hasRequiredToLength;
  1110. function requireToLength () {
  1111. if (hasRequiredToLength) return toLength;
  1112. hasRequiredToLength = 1;
  1113. var toIntegerOrInfinity = requireToIntegerOrInfinity();
  1114. var min = Math.min;
  1115. // `ToLength` abstract operation
  1116. // https://tc39.es/ecma262/#sec-tolength
  1117. toLength = function (argument) {
  1118. var len = toIntegerOrInfinity(argument);
  1119. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  1120. };
  1121. return toLength;
  1122. }
  1123. var lengthOfArrayLike;
  1124. var hasRequiredLengthOfArrayLike;
  1125. function requireLengthOfArrayLike () {
  1126. if (hasRequiredLengthOfArrayLike) return lengthOfArrayLike;
  1127. hasRequiredLengthOfArrayLike = 1;
  1128. var toLength = requireToLength();
  1129. // `LengthOfArrayLike` abstract operation
  1130. // https://tc39.es/ecma262/#sec-lengthofarraylike
  1131. lengthOfArrayLike = function (obj) {
  1132. return toLength(obj.length);
  1133. };
  1134. return lengthOfArrayLike;
  1135. }
  1136. var arrayIncludes;
  1137. var hasRequiredArrayIncludes;
  1138. function requireArrayIncludes () {
  1139. if (hasRequiredArrayIncludes) return arrayIncludes;
  1140. hasRequiredArrayIncludes = 1;
  1141. var toIndexedObject = requireToIndexedObject();
  1142. var toAbsoluteIndex = requireToAbsoluteIndex();
  1143. var lengthOfArrayLike = requireLengthOfArrayLike();
  1144. // `Array.prototype.{ indexOf, includes }` methods implementation
  1145. var createMethod = function (IS_INCLUDES) {
  1146. return function ($this, el, fromIndex) {
  1147. var O = toIndexedObject($this);
  1148. var length = lengthOfArrayLike(O);
  1149. if (length === 0) return !IS_INCLUDES && -1;
  1150. var index = toAbsoluteIndex(fromIndex, length);
  1151. var value;
  1152. // Array#includes uses SameValueZero equality algorithm
  1153. // eslint-disable-next-line no-self-compare -- NaN check
  1154. if (IS_INCLUDES && el !== el) while (length > index) {
  1155. value = O[index++];
  1156. // eslint-disable-next-line no-self-compare -- NaN check
  1157. if (value !== value) return true;
  1158. // Array#indexOf ignores holes, Array#includes - not
  1159. } else for (;length > index; index++) {
  1160. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  1161. } return !IS_INCLUDES && -1;
  1162. };
  1163. };
  1164. arrayIncludes = {
  1165. // `Array.prototype.includes` method
  1166. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1167. includes: createMethod(true),
  1168. // `Array.prototype.indexOf` method
  1169. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1170. indexOf: createMethod(false)
  1171. };
  1172. return arrayIncludes;
  1173. }
  1174. var objectKeysInternal;
  1175. var hasRequiredObjectKeysInternal;
  1176. function requireObjectKeysInternal () {
  1177. if (hasRequiredObjectKeysInternal) return objectKeysInternal;
  1178. hasRequiredObjectKeysInternal = 1;
  1179. var uncurryThis = requireFunctionUncurryThis();
  1180. var hasOwn = requireHasOwnProperty();
  1181. var toIndexedObject = requireToIndexedObject();
  1182. var indexOf = requireArrayIncludes().indexOf;
  1183. var hiddenKeys = requireHiddenKeys();
  1184. var push = uncurryThis([].push);
  1185. objectKeysInternal = function (object, names) {
  1186. var O = toIndexedObject(object);
  1187. var i = 0;
  1188. var result = [];
  1189. var key;
  1190. for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
  1191. // Don't enum bug & hidden keys
  1192. while (names.length > i) if (hasOwn(O, key = names[i++])) {
  1193. ~indexOf(result, key) || push(result, key);
  1194. }
  1195. return result;
  1196. };
  1197. return objectKeysInternal;
  1198. }
  1199. var enumBugKeys;
  1200. var hasRequiredEnumBugKeys;
  1201. function requireEnumBugKeys () {
  1202. if (hasRequiredEnumBugKeys) return enumBugKeys;
  1203. hasRequiredEnumBugKeys = 1;
  1204. // IE8- don't enum bug keys
  1205. enumBugKeys = [
  1206. 'constructor',
  1207. 'hasOwnProperty',
  1208. 'isPrototypeOf',
  1209. 'propertyIsEnumerable',
  1210. 'toLocaleString',
  1211. 'toString',
  1212. 'valueOf'
  1213. ];
  1214. return enumBugKeys;
  1215. }
  1216. var hasRequiredObjectGetOwnPropertyNames;
  1217. function requireObjectGetOwnPropertyNames () {
  1218. if (hasRequiredObjectGetOwnPropertyNames) return objectGetOwnPropertyNames;
  1219. hasRequiredObjectGetOwnPropertyNames = 1;
  1220. var internalObjectKeys = requireObjectKeysInternal();
  1221. var enumBugKeys = requireEnumBugKeys();
  1222. var hiddenKeys = enumBugKeys.concat('length', 'prototype');
  1223. // `Object.getOwnPropertyNames` method
  1224. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  1225. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  1226. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  1227. return internalObjectKeys(O, hiddenKeys);
  1228. };
  1229. return objectGetOwnPropertyNames;
  1230. }
  1231. var objectGetOwnPropertySymbols = {};
  1232. var hasRequiredObjectGetOwnPropertySymbols;
  1233. function requireObjectGetOwnPropertySymbols () {
  1234. if (hasRequiredObjectGetOwnPropertySymbols) return objectGetOwnPropertySymbols;
  1235. hasRequiredObjectGetOwnPropertySymbols = 1;
  1236. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  1237. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  1238. return objectGetOwnPropertySymbols;
  1239. }
  1240. var ownKeys;
  1241. var hasRequiredOwnKeys;
  1242. function requireOwnKeys () {
  1243. if (hasRequiredOwnKeys) return ownKeys;
  1244. hasRequiredOwnKeys = 1;
  1245. var getBuiltIn = requireGetBuiltIn();
  1246. var uncurryThis = requireFunctionUncurryThis();
  1247. var getOwnPropertyNamesModule = requireObjectGetOwnPropertyNames();
  1248. var getOwnPropertySymbolsModule = requireObjectGetOwnPropertySymbols();
  1249. var anObject = requireAnObject();
  1250. var concat = uncurryThis([].concat);
  1251. // all object keys, includes non-enumerable and symbols
  1252. ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  1253. var keys = getOwnPropertyNamesModule.f(anObject(it));
  1254. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1255. return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
  1256. };
  1257. return ownKeys;
  1258. }
  1259. var copyConstructorProperties;
  1260. var hasRequiredCopyConstructorProperties;
  1261. function requireCopyConstructorProperties () {
  1262. if (hasRequiredCopyConstructorProperties) return copyConstructorProperties;
  1263. hasRequiredCopyConstructorProperties = 1;
  1264. var hasOwn = requireHasOwnProperty();
  1265. var ownKeys = requireOwnKeys();
  1266. var getOwnPropertyDescriptorModule = requireObjectGetOwnPropertyDescriptor();
  1267. var definePropertyModule = requireObjectDefineProperty();
  1268. copyConstructorProperties = function (target, source, exceptions) {
  1269. var keys = ownKeys(source);
  1270. var defineProperty = definePropertyModule.f;
  1271. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  1272. for (var i = 0; i < keys.length; i++) {
  1273. var key = keys[i];
  1274. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  1275. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  1276. }
  1277. }
  1278. };
  1279. return copyConstructorProperties;
  1280. }
  1281. var isForced_1;
  1282. var hasRequiredIsForced;
  1283. function requireIsForced () {
  1284. if (hasRequiredIsForced) return isForced_1;
  1285. hasRequiredIsForced = 1;
  1286. var fails = requireFails();
  1287. var isCallable = requireIsCallable();
  1288. var replacement = /#|\.prototype\./;
  1289. var isForced = function (feature, detection) {
  1290. var value = data[normalize(feature)];
  1291. return value === POLYFILL ? true
  1292. : value === NATIVE ? false
  1293. : isCallable(detection) ? fails(detection)
  1294. : !!detection;
  1295. };
  1296. var normalize = isForced.normalize = function (string) {
  1297. return String(string).replace(replacement, '.').toLowerCase();
  1298. };
  1299. var data = isForced.data = {};
  1300. var NATIVE = isForced.NATIVE = 'N';
  1301. var POLYFILL = isForced.POLYFILL = 'P';
  1302. isForced_1 = isForced;
  1303. return isForced_1;
  1304. }
  1305. var _export;
  1306. var hasRequired_export;
  1307. function require_export () {
  1308. if (hasRequired_export) return _export;
  1309. hasRequired_export = 1;
  1310. var globalThis = requireGlobalThis();
  1311. var getOwnPropertyDescriptor = requireObjectGetOwnPropertyDescriptor().f;
  1312. var createNonEnumerableProperty = requireCreateNonEnumerableProperty();
  1313. var defineBuiltIn = requireDefineBuiltIn();
  1314. var defineGlobalProperty = requireDefineGlobalProperty();
  1315. var copyConstructorProperties = requireCopyConstructorProperties();
  1316. var isForced = requireIsForced();
  1317. /*
  1318. options.target - name of the target object
  1319. options.global - target is the global object
  1320. options.stat - export as static methods of target
  1321. options.proto - export as prototype methods of target
  1322. options.real - real prototype method for the `pure` version
  1323. options.forced - export even if the native feature is available
  1324. options.bind - bind methods to the target, required for the `pure` version
  1325. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  1326. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  1327. options.sham - add a flag to not completely full polyfills
  1328. options.enumerable - export as enumerable property
  1329. options.dontCallGetSet - prevent calling a getter on target
  1330. options.name - the .name of the function if it does not match the key
  1331. */
  1332. _export = function (options, source) {
  1333. var TARGET = options.target;
  1334. var GLOBAL = options.global;
  1335. var STATIC = options.stat;
  1336. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  1337. if (GLOBAL) {
  1338. target = globalThis;
  1339. } else if (STATIC) {
  1340. target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});
  1341. } else {
  1342. target = globalThis[TARGET] && globalThis[TARGET].prototype;
  1343. }
  1344. if (target) for (key in source) {
  1345. sourceProperty = source[key];
  1346. if (options.dontCallGetSet) {
  1347. descriptor = getOwnPropertyDescriptor(target, key);
  1348. targetProperty = descriptor && descriptor.value;
  1349. } else targetProperty = target[key];
  1350. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  1351. // contained in target
  1352. if (!FORCED && targetProperty !== undefined) {
  1353. if (typeof sourceProperty == typeof targetProperty) continue;
  1354. copyConstructorProperties(sourceProperty, targetProperty);
  1355. }
  1356. // add a flag to not completely full polyfills
  1357. if (options.sham || (targetProperty && targetProperty.sham)) {
  1358. createNonEnumerableProperty(sourceProperty, 'sham', true);
  1359. }
  1360. defineBuiltIn(target, key, sourceProperty, options);
  1361. }
  1362. };
  1363. return _export;
  1364. }
  1365. var functionUncurryThisClause;
  1366. var hasRequiredFunctionUncurryThisClause;
  1367. function requireFunctionUncurryThisClause () {
  1368. if (hasRequiredFunctionUncurryThisClause) return functionUncurryThisClause;
  1369. hasRequiredFunctionUncurryThisClause = 1;
  1370. var classofRaw = requireClassofRaw();
  1371. var uncurryThis = requireFunctionUncurryThis();
  1372. functionUncurryThisClause = function (fn) {
  1373. // Nashorn bug:
  1374. // https://github.com/zloirock/core-js/issues/1128
  1375. // https://github.com/zloirock/core-js/issues/1130
  1376. if (classofRaw(fn) === 'Function') return uncurryThis(fn);
  1377. };
  1378. return functionUncurryThisClause;
  1379. }
  1380. var functionBindContext;
  1381. var hasRequiredFunctionBindContext;
  1382. function requireFunctionBindContext () {
  1383. if (hasRequiredFunctionBindContext) return functionBindContext;
  1384. hasRequiredFunctionBindContext = 1;
  1385. var uncurryThis = requireFunctionUncurryThisClause();
  1386. var aCallable = requireACallable();
  1387. var NATIVE_BIND = requireFunctionBindNative();
  1388. var bind = uncurryThis(uncurryThis.bind);
  1389. // optional / simple context binding
  1390. functionBindContext = function (fn, that) {
  1391. aCallable(fn);
  1392. return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
  1393. return fn.apply(that, arguments);
  1394. };
  1395. };
  1396. return functionBindContext;
  1397. }
  1398. var isArray;
  1399. var hasRequiredIsArray;
  1400. function requireIsArray () {
  1401. if (hasRequiredIsArray) return isArray;
  1402. hasRequiredIsArray = 1;
  1403. var classof = requireClassofRaw();
  1404. // `IsArray` abstract operation
  1405. // https://tc39.es/ecma262/#sec-isarray
  1406. // eslint-disable-next-line es/no-array-isarray -- safe
  1407. isArray = Array.isArray || function isArray(argument) {
  1408. return classof(argument) === 'Array';
  1409. };
  1410. return isArray;
  1411. }
  1412. var toStringTagSupport;
  1413. var hasRequiredToStringTagSupport;
  1414. function requireToStringTagSupport () {
  1415. if (hasRequiredToStringTagSupport) return toStringTagSupport;
  1416. hasRequiredToStringTagSupport = 1;
  1417. var wellKnownSymbol = requireWellKnownSymbol();
  1418. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  1419. var test = {};
  1420. test[TO_STRING_TAG] = 'z';
  1421. toStringTagSupport = String(test) === '[object z]';
  1422. return toStringTagSupport;
  1423. }
  1424. var classof;
  1425. var hasRequiredClassof;
  1426. function requireClassof () {
  1427. if (hasRequiredClassof) return classof;
  1428. hasRequiredClassof = 1;
  1429. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  1430. var isCallable = requireIsCallable();
  1431. var classofRaw = requireClassofRaw();
  1432. var wellKnownSymbol = requireWellKnownSymbol();
  1433. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  1434. var $Object = Object;
  1435. // ES3 wrong here
  1436. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
  1437. // fallback for IE11 Script Access Denied error
  1438. var tryGet = function (it, key) {
  1439. try {
  1440. return it[key];
  1441. } catch (error) { /* empty */ }
  1442. };
  1443. // getting tag from ES6+ `Object.prototype.toString`
  1444. classof = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
  1445. var O, tag, result;
  1446. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1447. // @@toStringTag case
  1448. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  1449. // builtinTag case
  1450. : CORRECT_ARGUMENTS ? classofRaw(O)
  1451. // ES3 arguments fallback
  1452. : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
  1453. };
  1454. return classof;
  1455. }
  1456. var isConstructor;
  1457. var hasRequiredIsConstructor;
  1458. function requireIsConstructor () {
  1459. if (hasRequiredIsConstructor) return isConstructor;
  1460. hasRequiredIsConstructor = 1;
  1461. var uncurryThis = requireFunctionUncurryThis();
  1462. var fails = requireFails();
  1463. var isCallable = requireIsCallable();
  1464. var classof = requireClassof();
  1465. var getBuiltIn = requireGetBuiltIn();
  1466. var inspectSource = requireInspectSource();
  1467. var noop = function () { /* empty */ };
  1468. var construct = getBuiltIn('Reflect', 'construct');
  1469. var constructorRegExp = /^\s*(?:class|function)\b/;
  1470. var exec = uncurryThis(constructorRegExp.exec);
  1471. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1472. var isConstructorModern = function isConstructor(argument) {
  1473. if (!isCallable(argument)) return false;
  1474. try {
  1475. construct(noop, [], argument);
  1476. return true;
  1477. } catch (error) {
  1478. return false;
  1479. }
  1480. };
  1481. var isConstructorLegacy = function isConstructor(argument) {
  1482. if (!isCallable(argument)) return false;
  1483. switch (classof(argument)) {
  1484. case 'AsyncFunction':
  1485. case 'GeneratorFunction':
  1486. case 'AsyncGeneratorFunction': return false;
  1487. }
  1488. try {
  1489. // we can't check .prototype since constructors produced by .bind haven't it
  1490. // `Function#toString` throws on some built-it function in some legacy engines
  1491. // (for example, `DOMQuad` and similar in FF41-)
  1492. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1493. } catch (error) {
  1494. return true;
  1495. }
  1496. };
  1497. isConstructorLegacy.sham = true;
  1498. // `IsConstructor` abstract operation
  1499. // https://tc39.es/ecma262/#sec-isconstructor
  1500. isConstructor = !construct || fails(function () {
  1501. var called;
  1502. return isConstructorModern(isConstructorModern.call)
  1503. || !isConstructorModern(Object)
  1504. || !isConstructorModern(function () { called = true; })
  1505. || called;
  1506. }) ? isConstructorLegacy : isConstructorModern;
  1507. return isConstructor;
  1508. }
  1509. var arraySpeciesConstructor;
  1510. var hasRequiredArraySpeciesConstructor;
  1511. function requireArraySpeciesConstructor () {
  1512. if (hasRequiredArraySpeciesConstructor) return arraySpeciesConstructor;
  1513. hasRequiredArraySpeciesConstructor = 1;
  1514. var isArray = requireIsArray();
  1515. var isConstructor = requireIsConstructor();
  1516. var isObject = requireIsObject();
  1517. var wellKnownSymbol = requireWellKnownSymbol();
  1518. var SPECIES = wellKnownSymbol('species');
  1519. var $Array = Array;
  1520. // a part of `ArraySpeciesCreate` abstract operation
  1521. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1522. arraySpeciesConstructor = function (originalArray) {
  1523. var C;
  1524. if (isArray(originalArray)) {
  1525. C = originalArray.constructor;
  1526. // cross-realm fallback
  1527. if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
  1528. else if (isObject(C)) {
  1529. C = C[SPECIES];
  1530. if (C === null) C = undefined;
  1531. }
  1532. } return C === undefined ? $Array : C;
  1533. };
  1534. return arraySpeciesConstructor;
  1535. }
  1536. var arraySpeciesCreate;
  1537. var hasRequiredArraySpeciesCreate;
  1538. function requireArraySpeciesCreate () {
  1539. if (hasRequiredArraySpeciesCreate) return arraySpeciesCreate;
  1540. hasRequiredArraySpeciesCreate = 1;
  1541. var arraySpeciesConstructor = requireArraySpeciesConstructor();
  1542. // `ArraySpeciesCreate` abstract operation
  1543. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1544. arraySpeciesCreate = function (originalArray, length) {
  1545. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1546. };
  1547. return arraySpeciesCreate;
  1548. }
  1549. var arrayIteration;
  1550. var hasRequiredArrayIteration;
  1551. function requireArrayIteration () {
  1552. if (hasRequiredArrayIteration) return arrayIteration;
  1553. hasRequiredArrayIteration = 1;
  1554. var bind = requireFunctionBindContext();
  1555. var uncurryThis = requireFunctionUncurryThis();
  1556. var IndexedObject = requireIndexedObject();
  1557. var toObject = requireToObject();
  1558. var lengthOfArrayLike = requireLengthOfArrayLike();
  1559. var arraySpeciesCreate = requireArraySpeciesCreate();
  1560. var push = uncurryThis([].push);
  1561. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1562. var createMethod = function (TYPE) {
  1563. var IS_MAP = TYPE === 1;
  1564. var IS_FILTER = TYPE === 2;
  1565. var IS_SOME = TYPE === 3;
  1566. var IS_EVERY = TYPE === 4;
  1567. var IS_FIND_INDEX = TYPE === 6;
  1568. var IS_FILTER_REJECT = TYPE === 7;
  1569. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1570. return function ($this, callbackfn, that, specificCreate) {
  1571. var O = toObject($this);
  1572. var self = IndexedObject(O);
  1573. var length = lengthOfArrayLike(self);
  1574. var boundFunction = bind(callbackfn, that);
  1575. var index = 0;
  1576. var create = specificCreate || arraySpeciesCreate;
  1577. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1578. var value, result;
  1579. for (;length > index; index++) if (NO_HOLES || index in self) {
  1580. value = self[index];
  1581. result = boundFunction(value, index, O);
  1582. if (TYPE) {
  1583. if (IS_MAP) target[index] = result; // map
  1584. else if (result) switch (TYPE) {
  1585. case 3: return true; // some
  1586. case 5: return value; // find
  1587. case 6: return index; // findIndex
  1588. case 2: push(target, value); // filter
  1589. } else switch (TYPE) {
  1590. case 4: return false; // every
  1591. case 7: push(target, value); // filterReject
  1592. }
  1593. }
  1594. }
  1595. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1596. };
  1597. };
  1598. arrayIteration = {
  1599. // `Array.prototype.forEach` method
  1600. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1601. forEach: createMethod(0),
  1602. // `Array.prototype.map` method
  1603. // https://tc39.es/ecma262/#sec-array.prototype.map
  1604. map: createMethod(1),
  1605. // `Array.prototype.filter` method
  1606. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1607. filter: createMethod(2),
  1608. // `Array.prototype.some` method
  1609. // https://tc39.es/ecma262/#sec-array.prototype.some
  1610. some: createMethod(3),
  1611. // `Array.prototype.every` method
  1612. // https://tc39.es/ecma262/#sec-array.prototype.every
  1613. every: createMethod(4),
  1614. // `Array.prototype.find` method
  1615. // https://tc39.es/ecma262/#sec-array.prototype.find
  1616. find: createMethod(5),
  1617. // `Array.prototype.findIndex` method
  1618. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1619. findIndex: createMethod(6),
  1620. // `Array.prototype.filterReject` method
  1621. // https://github.com/tc39/proposal-array-filtering
  1622. filterReject: createMethod(7)
  1623. };
  1624. return arrayIteration;
  1625. }
  1626. var objectDefineProperties = {};
  1627. var objectKeys;
  1628. var hasRequiredObjectKeys;
  1629. function requireObjectKeys () {
  1630. if (hasRequiredObjectKeys) return objectKeys;
  1631. hasRequiredObjectKeys = 1;
  1632. var internalObjectKeys = requireObjectKeysInternal();
  1633. var enumBugKeys = requireEnumBugKeys();
  1634. // `Object.keys` method
  1635. // https://tc39.es/ecma262/#sec-object.keys
  1636. // eslint-disable-next-line es/no-object-keys -- safe
  1637. objectKeys = Object.keys || function keys(O) {
  1638. return internalObjectKeys(O, enumBugKeys);
  1639. };
  1640. return objectKeys;
  1641. }
  1642. var hasRequiredObjectDefineProperties;
  1643. function requireObjectDefineProperties () {
  1644. if (hasRequiredObjectDefineProperties) return objectDefineProperties;
  1645. hasRequiredObjectDefineProperties = 1;
  1646. var DESCRIPTORS = requireDescriptors();
  1647. var V8_PROTOTYPE_DEFINE_BUG = requireV8PrototypeDefineBug();
  1648. var definePropertyModule = requireObjectDefineProperty();
  1649. var anObject = requireAnObject();
  1650. var toIndexedObject = requireToIndexedObject();
  1651. var objectKeys = requireObjectKeys();
  1652. // `Object.defineProperties` method
  1653. // https://tc39.es/ecma262/#sec-object.defineproperties
  1654. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1655. objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1656. anObject(O);
  1657. var props = toIndexedObject(Properties);
  1658. var keys = objectKeys(Properties);
  1659. var length = keys.length;
  1660. var index = 0;
  1661. var key;
  1662. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1663. return O;
  1664. };
  1665. return objectDefineProperties;
  1666. }
  1667. var html;
  1668. var hasRequiredHtml;
  1669. function requireHtml () {
  1670. if (hasRequiredHtml) return html;
  1671. hasRequiredHtml = 1;
  1672. var getBuiltIn = requireGetBuiltIn();
  1673. html = getBuiltIn('document', 'documentElement');
  1674. return html;
  1675. }
  1676. var objectCreate;
  1677. var hasRequiredObjectCreate;
  1678. function requireObjectCreate () {
  1679. if (hasRequiredObjectCreate) return objectCreate;
  1680. hasRequiredObjectCreate = 1;
  1681. /* global ActiveXObject -- old IE, WSH */
  1682. var anObject = requireAnObject();
  1683. var definePropertiesModule = requireObjectDefineProperties();
  1684. var enumBugKeys = requireEnumBugKeys();
  1685. var hiddenKeys = requireHiddenKeys();
  1686. var html = requireHtml();
  1687. var documentCreateElement = requireDocumentCreateElement();
  1688. var sharedKey = requireSharedKey();
  1689. var GT = '>';
  1690. var LT = '<';
  1691. var PROTOTYPE = 'prototype';
  1692. var SCRIPT = 'script';
  1693. var IE_PROTO = sharedKey('IE_PROTO');
  1694. var EmptyConstructor = function () { /* empty */ };
  1695. var scriptTag = function (content) {
  1696. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1697. };
  1698. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1699. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1700. activeXDocument.write(scriptTag(''));
  1701. activeXDocument.close();
  1702. var temp = activeXDocument.parentWindow.Object;
  1703. // eslint-disable-next-line no-useless-assignment -- avoid memory leak
  1704. activeXDocument = null;
  1705. return temp;
  1706. };
  1707. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1708. var NullProtoObjectViaIFrame = function () {
  1709. // Thrash, waste and sodomy: IE GC bug
  1710. var iframe = documentCreateElement('iframe');
  1711. var JS = 'java' + SCRIPT + ':';
  1712. var iframeDocument;
  1713. iframe.style.display = 'none';
  1714. html.appendChild(iframe);
  1715. // https://github.com/zloirock/core-js/issues/475
  1716. iframe.src = String(JS);
  1717. iframeDocument = iframe.contentWindow.document;
  1718. iframeDocument.open();
  1719. iframeDocument.write(scriptTag('document.F=Object'));
  1720. iframeDocument.close();
  1721. return iframeDocument.F;
  1722. };
  1723. // Check for document.domain and active x support
  1724. // No need to use active x approach when document.domain is not set
  1725. // see https://github.com/es-shims/es5-shim/issues/150
  1726. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1727. // avoid IE GC bug
  1728. var activeXDocument;
  1729. var NullProtoObject = function () {
  1730. try {
  1731. activeXDocument = new ActiveXObject('htmlfile');
  1732. } catch (error) { /* ignore */ }
  1733. NullProtoObject = typeof document != 'undefined'
  1734. ? document.domain && activeXDocument
  1735. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1736. : NullProtoObjectViaIFrame()
  1737. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1738. var length = enumBugKeys.length;
  1739. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1740. return NullProtoObject();
  1741. };
  1742. hiddenKeys[IE_PROTO] = true;
  1743. // `Object.create` method
  1744. // https://tc39.es/ecma262/#sec-object.create
  1745. // eslint-disable-next-line es/no-object-create -- safe
  1746. objectCreate = Object.create || function create(O, Properties) {
  1747. var result;
  1748. if (O !== null) {
  1749. EmptyConstructor[PROTOTYPE] = anObject(O);
  1750. result = new EmptyConstructor();
  1751. EmptyConstructor[PROTOTYPE] = null;
  1752. // add "__proto__" for Object.getPrototypeOf polyfill
  1753. result[IE_PROTO] = O;
  1754. } else result = NullProtoObject();
  1755. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1756. };
  1757. return objectCreate;
  1758. }
  1759. var addToUnscopables;
  1760. var hasRequiredAddToUnscopables;
  1761. function requireAddToUnscopables () {
  1762. if (hasRequiredAddToUnscopables) return addToUnscopables;
  1763. hasRequiredAddToUnscopables = 1;
  1764. var wellKnownSymbol = requireWellKnownSymbol();
  1765. var create = requireObjectCreate();
  1766. var defineProperty = requireObjectDefineProperty().f;
  1767. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1768. var ArrayPrototype = Array.prototype;
  1769. // Array.prototype[@@unscopables]
  1770. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1771. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1772. defineProperty(ArrayPrototype, UNSCOPABLES, {
  1773. configurable: true,
  1774. value: create(null)
  1775. });
  1776. }
  1777. // add a key to Array.prototype[@@unscopables]
  1778. addToUnscopables = function (key) {
  1779. ArrayPrototype[UNSCOPABLES][key] = true;
  1780. };
  1781. return addToUnscopables;
  1782. }
  1783. var hasRequiredEs_array_find;
  1784. function requireEs_array_find () {
  1785. if (hasRequiredEs_array_find) return es_array_find;
  1786. hasRequiredEs_array_find = 1;
  1787. var $ = require_export();
  1788. var $find = requireArrayIteration().find;
  1789. var addToUnscopables = requireAddToUnscopables();
  1790. var FIND = 'find';
  1791. var SKIPS_HOLES = true;
  1792. // Shouldn't skip holes
  1793. // eslint-disable-next-line es/no-array-prototype-find -- testing
  1794. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1795. // `Array.prototype.find` method
  1796. // https://tc39.es/ecma262/#sec-array.prototype.find
  1797. $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1798. find: function find(callbackfn /* , that = undefined */) {
  1799. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1800. }
  1801. });
  1802. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1803. addToUnscopables(FIND);
  1804. return es_array_find;
  1805. }
  1806. requireEs_array_find();
  1807. var es_array_includes = {};
  1808. var hasRequiredEs_array_includes;
  1809. function requireEs_array_includes () {
  1810. if (hasRequiredEs_array_includes) return es_array_includes;
  1811. hasRequiredEs_array_includes = 1;
  1812. var $ = require_export();
  1813. var $includes = requireArrayIncludes().includes;
  1814. var fails = requireFails();
  1815. var addToUnscopables = requireAddToUnscopables();
  1816. // FF99+ bug
  1817. var BROKEN_ON_SPARSE = fails(function () {
  1818. // eslint-disable-next-line es/no-array-prototype-includes -- detection
  1819. return !Array(1).includes();
  1820. });
  1821. // `Array.prototype.includes` method
  1822. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1823. $({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
  1824. includes: function includes(el /* , fromIndex = 0 */) {
  1825. return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  1826. }
  1827. });
  1828. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1829. addToUnscopables('includes');
  1830. return es_array_includes;
  1831. }
  1832. requireEs_array_includes();
  1833. var es_object_toString = {};
  1834. var objectToString;
  1835. var hasRequiredObjectToString;
  1836. function requireObjectToString () {
  1837. if (hasRequiredObjectToString) return objectToString;
  1838. hasRequiredObjectToString = 1;
  1839. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  1840. var classof = requireClassof();
  1841. // `Object.prototype.toString` method implementation
  1842. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1843. objectToString = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
  1844. return '[object ' + classof(this) + ']';
  1845. };
  1846. return objectToString;
  1847. }
  1848. var hasRequiredEs_object_toString;
  1849. function requireEs_object_toString () {
  1850. if (hasRequiredEs_object_toString) return es_object_toString;
  1851. hasRequiredEs_object_toString = 1;
  1852. var TO_STRING_TAG_SUPPORT = requireToStringTagSupport();
  1853. var defineBuiltIn = requireDefineBuiltIn();
  1854. var toString = requireObjectToString();
  1855. // `Object.prototype.toString` method
  1856. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1857. if (!TO_STRING_TAG_SUPPORT) {
  1858. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  1859. }
  1860. return es_object_toString;
  1861. }
  1862. requireEs_object_toString();
  1863. var es_string_includes = {};
  1864. var isRegexp;
  1865. var hasRequiredIsRegexp;
  1866. function requireIsRegexp () {
  1867. if (hasRequiredIsRegexp) return isRegexp;
  1868. hasRequiredIsRegexp = 1;
  1869. var isObject = requireIsObject();
  1870. var classof = requireClassofRaw();
  1871. var wellKnownSymbol = requireWellKnownSymbol();
  1872. var MATCH = wellKnownSymbol('match');
  1873. // `IsRegExp` abstract operation
  1874. // https://tc39.es/ecma262/#sec-isregexp
  1875. isRegexp = function (it) {
  1876. var isRegExp;
  1877. return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
  1878. };
  1879. return isRegexp;
  1880. }
  1881. var notARegexp;
  1882. var hasRequiredNotARegexp;
  1883. function requireNotARegexp () {
  1884. if (hasRequiredNotARegexp) return notARegexp;
  1885. hasRequiredNotARegexp = 1;
  1886. var isRegExp = requireIsRegexp();
  1887. var $TypeError = TypeError;
  1888. notARegexp = function (it) {
  1889. if (isRegExp(it)) {
  1890. throw new $TypeError("The method doesn't accept regular expressions");
  1891. } return it;
  1892. };
  1893. return notARegexp;
  1894. }
  1895. var toString;
  1896. var hasRequiredToString;
  1897. function requireToString () {
  1898. if (hasRequiredToString) return toString;
  1899. hasRequiredToString = 1;
  1900. var classof = requireClassof();
  1901. var $String = String;
  1902. toString = function (argument) {
  1903. if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1904. return $String(argument);
  1905. };
  1906. return toString;
  1907. }
  1908. var correctIsRegexpLogic;
  1909. var hasRequiredCorrectIsRegexpLogic;
  1910. function requireCorrectIsRegexpLogic () {
  1911. if (hasRequiredCorrectIsRegexpLogic) return correctIsRegexpLogic;
  1912. hasRequiredCorrectIsRegexpLogic = 1;
  1913. var wellKnownSymbol = requireWellKnownSymbol();
  1914. var MATCH = wellKnownSymbol('match');
  1915. correctIsRegexpLogic = function (METHOD_NAME) {
  1916. var regexp = /./;
  1917. try {
  1918. '/./'[METHOD_NAME](regexp);
  1919. } catch (error1) {
  1920. try {
  1921. regexp[MATCH] = false;
  1922. return '/./'[METHOD_NAME](regexp);
  1923. } catch (error2) { /* empty */ }
  1924. } return false;
  1925. };
  1926. return correctIsRegexpLogic;
  1927. }
  1928. var hasRequiredEs_string_includes;
  1929. function requireEs_string_includes () {
  1930. if (hasRequiredEs_string_includes) return es_string_includes;
  1931. hasRequiredEs_string_includes = 1;
  1932. var $ = require_export();
  1933. var uncurryThis = requireFunctionUncurryThis();
  1934. var notARegExp = requireNotARegexp();
  1935. var requireObjectCoercible = requireRequireObjectCoercible();
  1936. var toString = requireToString();
  1937. var correctIsRegExpLogic = requireCorrectIsRegexpLogic();
  1938. var stringIndexOf = uncurryThis(''.indexOf);
  1939. // `String.prototype.includes` method
  1940. // https://tc39.es/ecma262/#sec-string.prototype.includes
  1941. $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
  1942. includes: function includes(searchString /* , position = 0 */) {
  1943. return !!~stringIndexOf(
  1944. toString(requireObjectCoercible(this)),
  1945. toString(notARegExp(searchString)),
  1946. arguments.length > 1 ? arguments[1] : undefined
  1947. );
  1948. }
  1949. });
  1950. return es_string_includes;
  1951. }
  1952. requireEs_string_includes();
  1953. /**
  1954. * @author zhixin wen <wenzhixin2010@gmail.com>
  1955. * https://github.com/wenzhixin/bootstrap-table/
  1956. * theme: https://github.com/Semantic-Org/Semantic-UI
  1957. */
  1958. var Utils = $.fn.bootstrapTable.utils;
  1959. Utils.extend($.fn.bootstrapTable.defaults, {
  1960. classes: 'ui selectable celled table unstackable',
  1961. buttonsPrefix: '',
  1962. buttonsClass: 'ui button'
  1963. });
  1964. $.fn.bootstrapTable.theme = 'semantic';
  1965. $.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1966. function _class() {
  1967. _classCallCheck(this, _class);
  1968. return _callSuper(this, _class, arguments);
  1969. }
  1970. _inherits(_class, _$$BootstrapTable);
  1971. return _createClass(_class, [{
  1972. key: "initConstants",
  1973. value: function initConstants() {
  1974. _superPropGet(_class, "initConstants", this)([]);
  1975. this.constants.classes.buttonsGroup = 'ui buttons';
  1976. this.constants.classes.buttonsDropdown = 'ui button dropdown';
  1977. this.constants.classes.inputGroup = 'ui input';
  1978. this.constants.classes.paginationDropdown = 'ui dropdown';
  1979. this.constants.html.toolbarDropdown = ['<div class="menu">', '</div>'];
  1980. this.constants.html.toolbarDropdownItem = '<label class="item dropdown-item-marker">%s</label>';
  1981. this.constants.html.toolbarDropdownSeparator = '<div class="divider"></div>';
  1982. this.constants.html.pageDropdown = ['<div class="menu">', '</div>'];
  1983. this.constants.html.pageDropdownItem = '<a class="item %s" href="#">%s</a>';
  1984. this.constants.html.dropdownCaret = '<i class="dropdown icon"></i>';
  1985. this.constants.html.pagination = ['<div class="ui pagination menu%s">', '</div>'];
  1986. this.constants.html.paginationItem = '<a class="page-item item%s" aria-label="%s" href="#">%s</a>';
  1987. this.constants.html.inputGroup = '<div class="ui action input">%s%s</div>';
  1988. }
  1989. }, {
  1990. key: "initToolbar",
  1991. value: function initToolbar() {
  1992. _superPropGet(_class, "initToolbar", this)([]);
  1993. this.handleToolbar();
  1994. }
  1995. }, {
  1996. key: "handleToolbar",
  1997. value: function handleToolbar() {
  1998. this.$toolbar.find('.button.dropdown').dropdown();
  1999. }
  2000. }, {
  2001. key: "initPagination",
  2002. value: function initPagination() {
  2003. _superPropGet(_class, "initPagination", this)([]);
  2004. if (this.options.pagination && this.paginationParts.includes('pageSize')) {
  2005. this.$pagination.find('.dropdown').dropdown();
  2006. }
  2007. }
  2008. }]);
  2009. }($.BootstrapTable);
  2010. }));