bootstrap-table-mobile.js 64 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868
  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 ($$3) { '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 check = function (it) {
  97. return it && it.Math === Math && it;
  98. };
  99. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  100. var globalThis_1 =
  101. // eslint-disable-next-line es/no-global-this -- safe
  102. check(typeof globalThis == 'object' && globalThis) ||
  103. check(typeof window == 'object' && window) ||
  104. // eslint-disable-next-line no-restricted-globals -- safe
  105. check(typeof self == 'object' && self) ||
  106. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  107. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  108. // eslint-disable-next-line no-new-func -- fallback
  109. (function () { return this; })() || Function('return this')();
  110. var objectGetOwnPropertyDescriptor = {};
  111. var fails$c = function (exec) {
  112. try {
  113. return !!exec();
  114. } catch (error) {
  115. return true;
  116. }
  117. };
  118. var fails$b = fails$c;
  119. // Detect IE8's incomplete defineProperty implementation
  120. var descriptors = !fails$b(function () {
  121. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  122. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  123. });
  124. var fails$a = fails$c;
  125. var functionBindNative = !fails$a(function () {
  126. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  127. var test = (function () { /* empty */ }).bind();
  128. // eslint-disable-next-line no-prototype-builtins -- safe
  129. return typeof test != 'function' || test.hasOwnProperty('prototype');
  130. });
  131. var NATIVE_BIND$2 = functionBindNative;
  132. var call$5 = Function.prototype.call;
  133. var functionCall = NATIVE_BIND$2 ? call$5.bind(call$5) : function () {
  134. return call$5.apply(call$5, arguments);
  135. };
  136. var objectPropertyIsEnumerable = {};
  137. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  138. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  139. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  140. // Nashorn ~ JDK8 bug
  141. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  142. // `Object.prototype.propertyIsEnumerable` method implementation
  143. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  144. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  145. var descriptor = getOwnPropertyDescriptor$1(this, V);
  146. return !!descriptor && descriptor.enumerable;
  147. } : $propertyIsEnumerable;
  148. var createPropertyDescriptor$2 = function (bitmap, value) {
  149. return {
  150. enumerable: !(bitmap & 1),
  151. configurable: !(bitmap & 2),
  152. writable: !(bitmap & 4),
  153. value: value
  154. };
  155. };
  156. var NATIVE_BIND$1 = functionBindNative;
  157. var FunctionPrototype$1 = Function.prototype;
  158. var call$4 = FunctionPrototype$1.call;
  159. var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$4, call$4);
  160. var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
  161. return function () {
  162. return call$4.apply(fn, arguments);
  163. };
  164. };
  165. var uncurryThis$e = functionUncurryThis;
  166. var toString$4 = uncurryThis$e({}.toString);
  167. var stringSlice$1 = uncurryThis$e(''.slice);
  168. var classofRaw$2 = function (it) {
  169. return stringSlice$1(toString$4(it), 8, -1);
  170. };
  171. var uncurryThis$d = functionUncurryThis;
  172. var fails$9 = fails$c;
  173. var classof$6 = classofRaw$2;
  174. var $Object$3 = Object;
  175. var split = uncurryThis$d(''.split);
  176. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  177. var indexedObject = fails$9(function () {
  178. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  179. // eslint-disable-next-line no-prototype-builtins -- safe
  180. return !$Object$3('z').propertyIsEnumerable(0);
  181. }) ? function (it) {
  182. return classof$6(it) === 'String' ? split(it, '') : $Object$3(it);
  183. } : $Object$3;
  184. // we can't use just `it == null` since of `document.all` special case
  185. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  186. var isNullOrUndefined$2 = function (it) {
  187. return it === null || it === undefined;
  188. };
  189. var isNullOrUndefined$1 = isNullOrUndefined$2;
  190. var $TypeError$6 = TypeError;
  191. // `RequireObjectCoercible` abstract operation
  192. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  193. var requireObjectCoercible$3 = function (it) {
  194. if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
  195. return it;
  196. };
  197. // toObject with fallback for non-array-like ES3 strings
  198. var IndexedObject$2 = indexedObject;
  199. var requireObjectCoercible$2 = requireObjectCoercible$3;
  200. var toIndexedObject$4 = function (it) {
  201. return IndexedObject$2(requireObjectCoercible$2(it));
  202. };
  203. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  204. var documentAll = typeof document == 'object' && document.all;
  205. // `IsCallable` abstract operation
  206. // https://tc39.es/ecma262/#sec-iscallable
  207. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  208. var isCallable$c = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  209. return typeof argument == 'function' || argument === documentAll;
  210. } : function (argument) {
  211. return typeof argument == 'function';
  212. };
  213. var isCallable$b = isCallable$c;
  214. var isObject$7 = function (it) {
  215. return typeof it == 'object' ? it !== null : isCallable$b(it);
  216. };
  217. var globalThis$c = globalThis_1;
  218. var isCallable$a = isCallable$c;
  219. var aFunction = function (argument) {
  220. return isCallable$a(argument) ? argument : undefined;
  221. };
  222. var getBuiltIn$4 = function (namespace, method) {
  223. return arguments.length < 2 ? aFunction(globalThis$c[namespace]) : globalThis$c[namespace] && globalThis$c[namespace][method];
  224. };
  225. var uncurryThis$c = functionUncurryThis;
  226. var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
  227. var globalThis$b = globalThis_1;
  228. var navigator = globalThis$b.navigator;
  229. var userAgent$1 = navigator && navigator.userAgent;
  230. var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
  231. var globalThis$a = globalThis_1;
  232. var userAgent = environmentUserAgent;
  233. var process = globalThis$a.process;
  234. var Deno = globalThis$a.Deno;
  235. var versions = process && process.versions || Deno && Deno.version;
  236. var v8 = versions && versions.v8;
  237. var match, version;
  238. if (v8) {
  239. match = v8.split('.');
  240. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  241. // but their correct versions are not interesting for us
  242. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  243. }
  244. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  245. // so check `userAgent` even if `.v8` exists, but 0
  246. if (!version && userAgent) {
  247. match = userAgent.match(/Edge\/(\d+)/);
  248. if (!match || match[1] >= 74) {
  249. match = userAgent.match(/Chrome\/(\d+)/);
  250. if (match) version = +match[1];
  251. }
  252. }
  253. var environmentV8Version = version;
  254. /* eslint-disable es/no-symbol -- required for testing */
  255. var V8_VERSION = environmentV8Version;
  256. var fails$8 = fails$c;
  257. var globalThis$9 = globalThis_1;
  258. var $String$4 = globalThis$9.String;
  259. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  260. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
  261. var symbol = Symbol('symbol detection');
  262. // Chrome 38 Symbol has incorrect toString conversion
  263. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  264. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  265. // of course, fail.
  266. return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
  267. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  268. !Symbol.sham && V8_VERSION && V8_VERSION < 41;
  269. });
  270. /* eslint-disable es/no-symbol -- required for testing */
  271. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  272. var useSymbolAsUid = NATIVE_SYMBOL$1
  273. && !Symbol.sham
  274. && typeof Symbol.iterator == 'symbol';
  275. var getBuiltIn$3 = getBuiltIn$4;
  276. var isCallable$9 = isCallable$c;
  277. var isPrototypeOf = objectIsPrototypeOf;
  278. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  279. var $Object$2 = Object;
  280. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  281. return typeof it == 'symbol';
  282. } : function (it) {
  283. var $Symbol = getBuiltIn$3('Symbol');
  284. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  285. };
  286. var $String$3 = String;
  287. var tryToString$1 = function (argument) {
  288. try {
  289. return $String$3(argument);
  290. } catch (error) {
  291. return 'Object';
  292. }
  293. };
  294. var isCallable$8 = isCallable$c;
  295. var tryToString = tryToString$1;
  296. var $TypeError$5 = TypeError;
  297. // `Assert: IsCallable(argument) is true`
  298. var aCallable$2 = function (argument) {
  299. if (isCallable$8(argument)) return argument;
  300. throw new $TypeError$5(tryToString(argument) + ' is not a function');
  301. };
  302. var aCallable$1 = aCallable$2;
  303. var isNullOrUndefined = isNullOrUndefined$2;
  304. // `GetMethod` abstract operation
  305. // https://tc39.es/ecma262/#sec-getmethod
  306. var getMethod$1 = function (V, P) {
  307. var func = V[P];
  308. return isNullOrUndefined(func) ? undefined : aCallable$1(func);
  309. };
  310. var call$3 = functionCall;
  311. var isCallable$7 = isCallable$c;
  312. var isObject$6 = isObject$7;
  313. var $TypeError$4 = TypeError;
  314. // `OrdinaryToPrimitive` abstract operation
  315. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  316. var ordinaryToPrimitive$1 = function (input, pref) {
  317. var fn, val;
  318. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
  319. if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$3(fn, input))) return val;
  320. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
  321. throw new $TypeError$4("Can't convert object to primitive value");
  322. };
  323. var sharedStore = {exports: {}};
  324. var globalThis$8 = globalThis_1;
  325. // eslint-disable-next-line es/no-object-defineproperty -- safe
  326. var defineProperty$3 = Object.defineProperty;
  327. var defineGlobalProperty$3 = function (key, value) {
  328. try {
  329. defineProperty$3(globalThis$8, key, { value: value, configurable: true, writable: true });
  330. } catch (error) {
  331. globalThis$8[key] = value;
  332. } return value;
  333. };
  334. var globalThis$7 = globalThis_1;
  335. var defineGlobalProperty$2 = defineGlobalProperty$3;
  336. var SHARED = '__core-js_shared__';
  337. var store$3 = sharedStore.exports = globalThis$7[SHARED] || defineGlobalProperty$2(SHARED, {});
  338. (store$3.versions || (store$3.versions = [])).push({
  339. version: '3.38.1',
  340. mode: 'global',
  341. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  342. license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
  343. source: 'https://github.com/zloirock/core-js'
  344. });
  345. var sharedStoreExports = sharedStore.exports;
  346. var store$2 = sharedStoreExports;
  347. var shared$3 = function (key, value) {
  348. return store$2[key] || (store$2[key] = value || {});
  349. };
  350. var requireObjectCoercible$1 = requireObjectCoercible$3;
  351. var $Object$1 = Object;
  352. // `ToObject` abstract operation
  353. // https://tc39.es/ecma262/#sec-toobject
  354. var toObject$3 = function (argument) {
  355. return $Object$1(requireObjectCoercible$1(argument));
  356. };
  357. var uncurryThis$b = functionUncurryThis;
  358. var toObject$2 = toObject$3;
  359. var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
  360. // `HasOwnProperty` abstract operation
  361. // https://tc39.es/ecma262/#sec-hasownproperty
  362. // eslint-disable-next-line es/no-object-hasown -- safe
  363. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  364. return hasOwnProperty(toObject$2(it), key);
  365. };
  366. var uncurryThis$a = functionUncurryThis;
  367. var id = 0;
  368. var postfix = Math.random();
  369. var toString$3 = uncurryThis$a(1.0.toString);
  370. var uid$2 = function (key) {
  371. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
  372. };
  373. var globalThis$6 = globalThis_1;
  374. var shared$2 = shared$3;
  375. var hasOwn$6 = hasOwnProperty_1;
  376. var uid$1 = uid$2;
  377. var NATIVE_SYMBOL = symbolConstructorDetection;
  378. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  379. var Symbol$1 = globalThis$6.Symbol;
  380. var WellKnownSymbolsStore = shared$2('wks');
  381. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  382. var wellKnownSymbol$7 = function (name) {
  383. if (!hasOwn$6(WellKnownSymbolsStore, name)) {
  384. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
  385. ? Symbol$1[name]
  386. : createWellKnownSymbol('Symbol.' + name);
  387. } return WellKnownSymbolsStore[name];
  388. };
  389. var call$2 = functionCall;
  390. var isObject$5 = isObject$7;
  391. var isSymbol$1 = isSymbol$2;
  392. var getMethod = getMethod$1;
  393. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  394. var wellKnownSymbol$6 = wellKnownSymbol$7;
  395. var $TypeError$3 = TypeError;
  396. var TO_PRIMITIVE = wellKnownSymbol$6('toPrimitive');
  397. // `ToPrimitive` abstract operation
  398. // https://tc39.es/ecma262/#sec-toprimitive
  399. var toPrimitive$1 = function (input, pref) {
  400. if (!isObject$5(input) || isSymbol$1(input)) return input;
  401. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  402. var result;
  403. if (exoticToPrim) {
  404. if (pref === undefined) pref = 'default';
  405. result = call$2(exoticToPrim, input, pref);
  406. if (!isObject$5(result) || isSymbol$1(result)) return result;
  407. throw new $TypeError$3("Can't convert object to primitive value");
  408. }
  409. if (pref === undefined) pref = 'number';
  410. return ordinaryToPrimitive(input, pref);
  411. };
  412. var toPrimitive = toPrimitive$1;
  413. var isSymbol = isSymbol$2;
  414. // `ToPropertyKey` abstract operation
  415. // https://tc39.es/ecma262/#sec-topropertykey
  416. var toPropertyKey$2 = function (argument) {
  417. var key = toPrimitive(argument, 'string');
  418. return isSymbol(key) ? key : key + '';
  419. };
  420. var globalThis$5 = globalThis_1;
  421. var isObject$4 = isObject$7;
  422. var document$1 = globalThis$5.document;
  423. // typeof document.createElement is 'object' in old IE
  424. var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
  425. var documentCreateElement$2 = function (it) {
  426. return EXISTS$1 ? document$1.createElement(it) : {};
  427. };
  428. var DESCRIPTORS$8 = descriptors;
  429. var fails$7 = fails$c;
  430. var createElement = documentCreateElement$2;
  431. // Thanks to IE8 for its funny defineProperty
  432. var ie8DomDefine = !DESCRIPTORS$8 && !fails$7(function () {
  433. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  434. return Object.defineProperty(createElement('div'), 'a', {
  435. get: function () { return 7; }
  436. }).a !== 7;
  437. });
  438. var DESCRIPTORS$7 = descriptors;
  439. var call$1 = functionCall;
  440. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  441. var createPropertyDescriptor$1 = createPropertyDescriptor$2;
  442. var toIndexedObject$3 = toIndexedObject$4;
  443. var toPropertyKey$1 = toPropertyKey$2;
  444. var hasOwn$5 = hasOwnProperty_1;
  445. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  446. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  447. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  448. // `Object.getOwnPropertyDescriptor` method
  449. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  450. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  451. O = toIndexedObject$3(O);
  452. P = toPropertyKey$1(P);
  453. if (IE8_DOM_DEFINE$1) try {
  454. return $getOwnPropertyDescriptor$1(O, P);
  455. } catch (error) { /* empty */ }
  456. if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
  457. };
  458. var objectDefineProperty = {};
  459. var DESCRIPTORS$6 = descriptors;
  460. var fails$6 = fails$c;
  461. // V8 ~ Chrome 36-
  462. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  463. var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$6(function () {
  464. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  465. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  466. value: 42,
  467. writable: false
  468. }).prototype !== 42;
  469. });
  470. var isObject$3 = isObject$7;
  471. var $String$2 = String;
  472. var $TypeError$2 = TypeError;
  473. // `Assert: Type(argument) is Object`
  474. var anObject$4 = function (argument) {
  475. if (isObject$3(argument)) return argument;
  476. throw new $TypeError$2($String$2(argument) + ' is not an object');
  477. };
  478. var DESCRIPTORS$5 = descriptors;
  479. var IE8_DOM_DEFINE = ie8DomDefine;
  480. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  481. var anObject$3 = anObject$4;
  482. var toPropertyKey = toPropertyKey$2;
  483. var $TypeError$1 = TypeError;
  484. // eslint-disable-next-line es/no-object-defineproperty -- safe
  485. var $defineProperty = Object.defineProperty;
  486. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  487. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  488. var ENUMERABLE = 'enumerable';
  489. var CONFIGURABLE$1 = 'configurable';
  490. var WRITABLE = 'writable';
  491. // `Object.defineProperty` method
  492. // https://tc39.es/ecma262/#sec-object.defineproperty
  493. objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  494. anObject$3(O);
  495. P = toPropertyKey(P);
  496. anObject$3(Attributes);
  497. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  498. var current = $getOwnPropertyDescriptor(O, P);
  499. if (current && current[WRITABLE]) {
  500. O[P] = Attributes.value;
  501. Attributes = {
  502. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  503. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  504. writable: false
  505. };
  506. }
  507. } return $defineProperty(O, P, Attributes);
  508. } : $defineProperty : function defineProperty(O, P, Attributes) {
  509. anObject$3(O);
  510. P = toPropertyKey(P);
  511. anObject$3(Attributes);
  512. if (IE8_DOM_DEFINE) try {
  513. return $defineProperty(O, P, Attributes);
  514. } catch (error) { /* empty */ }
  515. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
  516. if ('value' in Attributes) O[P] = Attributes.value;
  517. return O;
  518. };
  519. var DESCRIPTORS$4 = descriptors;
  520. var definePropertyModule$3 = objectDefineProperty;
  521. var createPropertyDescriptor = createPropertyDescriptor$2;
  522. var createNonEnumerableProperty$3 = DESCRIPTORS$4 ? function (object, key, value) {
  523. return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
  524. } : function (object, key, value) {
  525. object[key] = value;
  526. return object;
  527. };
  528. var makeBuiltIn$2 = {exports: {}};
  529. var DESCRIPTORS$3 = descriptors;
  530. var hasOwn$4 = hasOwnProperty_1;
  531. var FunctionPrototype = Function.prototype;
  532. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  533. var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
  534. var EXISTS = hasOwn$4(FunctionPrototype, 'name');
  535. // additional protection from minified / mangled / dropped function names
  536. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  537. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
  538. var functionName = {
  539. EXISTS: EXISTS,
  540. PROPER: PROPER,
  541. CONFIGURABLE: CONFIGURABLE
  542. };
  543. var uncurryThis$9 = functionUncurryThis;
  544. var isCallable$6 = isCallable$c;
  545. var store$1 = sharedStoreExports;
  546. var functionToString = uncurryThis$9(Function.toString);
  547. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  548. if (!isCallable$6(store$1.inspectSource)) {
  549. store$1.inspectSource = function (it) {
  550. return functionToString(it);
  551. };
  552. }
  553. var inspectSource$2 = store$1.inspectSource;
  554. var globalThis$4 = globalThis_1;
  555. var isCallable$5 = isCallable$c;
  556. var WeakMap$1 = globalThis$4.WeakMap;
  557. var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
  558. var shared$1 = shared$3;
  559. var uid = uid$2;
  560. var keys = shared$1('keys');
  561. var sharedKey$2 = function (key) {
  562. return keys[key] || (keys[key] = uid(key));
  563. };
  564. var hiddenKeys$4 = {};
  565. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  566. var globalThis$3 = globalThis_1;
  567. var isObject$2 = isObject$7;
  568. var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
  569. var hasOwn$3 = hasOwnProperty_1;
  570. var shared = sharedStoreExports;
  571. var sharedKey$1 = sharedKey$2;
  572. var hiddenKeys$3 = hiddenKeys$4;
  573. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  574. var TypeError$1 = globalThis$3.TypeError;
  575. var WeakMap = globalThis$3.WeakMap;
  576. var set, get, has;
  577. var enforce = function (it) {
  578. return has(it) ? get(it) : set(it, {});
  579. };
  580. var getterFor = function (TYPE) {
  581. return function (it) {
  582. var state;
  583. if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
  584. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  585. } return state;
  586. };
  587. };
  588. if (NATIVE_WEAK_MAP || shared.state) {
  589. var store = shared.state || (shared.state = new WeakMap());
  590. /* eslint-disable no-self-assign -- prototype methods protection */
  591. store.get = store.get;
  592. store.has = store.has;
  593. store.set = store.set;
  594. /* eslint-enable no-self-assign -- prototype methods protection */
  595. set = function (it, metadata) {
  596. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  597. metadata.facade = it;
  598. store.set(it, metadata);
  599. return metadata;
  600. };
  601. get = function (it) {
  602. return store.get(it) || {};
  603. };
  604. has = function (it) {
  605. return store.has(it);
  606. };
  607. } else {
  608. var STATE = sharedKey$1('state');
  609. hiddenKeys$3[STATE] = true;
  610. set = function (it, metadata) {
  611. if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  612. metadata.facade = it;
  613. createNonEnumerableProperty$2(it, STATE, metadata);
  614. return metadata;
  615. };
  616. get = function (it) {
  617. return hasOwn$3(it, STATE) ? it[STATE] : {};
  618. };
  619. has = function (it) {
  620. return hasOwn$3(it, STATE);
  621. };
  622. }
  623. var internalState = {
  624. set: set,
  625. get: get,
  626. has: has,
  627. enforce: enforce,
  628. getterFor: getterFor
  629. };
  630. var uncurryThis$8 = functionUncurryThis;
  631. var fails$5 = fails$c;
  632. var isCallable$4 = isCallable$c;
  633. var hasOwn$2 = hasOwnProperty_1;
  634. var DESCRIPTORS$2 = descriptors;
  635. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  636. var inspectSource$1 = inspectSource$2;
  637. var InternalStateModule = internalState;
  638. var enforceInternalState = InternalStateModule.enforce;
  639. var getInternalState = InternalStateModule.get;
  640. var $String$1 = String;
  641. // eslint-disable-next-line es/no-object-defineproperty -- safe
  642. var defineProperty$2 = Object.defineProperty;
  643. var stringSlice = uncurryThis$8(''.slice);
  644. var replace = uncurryThis$8(''.replace);
  645. var join = uncurryThis$8([].join);
  646. var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$5(function () {
  647. return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  648. });
  649. var TEMPLATE = String(String).split('String');
  650. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  651. if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
  652. name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  653. }
  654. if (options && options.getter) name = 'get ' + name;
  655. if (options && options.setter) name = 'set ' + name;
  656. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  657. if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
  658. else value.name = name;
  659. }
  660. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  661. defineProperty$2(value, 'length', { value: options.arity });
  662. }
  663. try {
  664. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  665. if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
  666. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  667. } else if (value.prototype) value.prototype = undefined;
  668. } catch (error) { /* empty */ }
  669. var state = enforceInternalState(value);
  670. if (!hasOwn$2(state, 'source')) {
  671. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  672. } return value;
  673. };
  674. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  675. // eslint-disable-next-line no-extend-native -- required
  676. Function.prototype.toString = makeBuiltIn$1(function toString() {
  677. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  678. }, 'toString');
  679. var makeBuiltInExports = makeBuiltIn$2.exports;
  680. var isCallable$3 = isCallable$c;
  681. var definePropertyModule$2 = objectDefineProperty;
  682. var makeBuiltIn = makeBuiltInExports;
  683. var defineGlobalProperty$1 = defineGlobalProperty$3;
  684. var defineBuiltIn$2 = function (O, key, value, options) {
  685. if (!options) options = {};
  686. var simple = options.enumerable;
  687. var name = options.name !== undefined ? options.name : key;
  688. if (isCallable$3(value)) makeBuiltIn(value, name, options);
  689. if (options.global) {
  690. if (simple) O[key] = value;
  691. else defineGlobalProperty$1(key, value);
  692. } else {
  693. try {
  694. if (!options.unsafe) delete O[key];
  695. else if (O[key]) simple = true;
  696. } catch (error) { /* empty */ }
  697. if (simple) O[key] = value;
  698. else definePropertyModule$2.f(O, key, {
  699. value: value,
  700. enumerable: false,
  701. configurable: !options.nonConfigurable,
  702. writable: !options.nonWritable
  703. });
  704. } return O;
  705. };
  706. var objectGetOwnPropertyNames = {};
  707. var ceil = Math.ceil;
  708. var floor = Math.floor;
  709. // `Math.trunc` method
  710. // https://tc39.es/ecma262/#sec-math.trunc
  711. // eslint-disable-next-line es/no-math-trunc -- safe
  712. var mathTrunc = Math.trunc || function trunc(x) {
  713. var n = +x;
  714. return (n > 0 ? floor : ceil)(n);
  715. };
  716. var trunc = mathTrunc;
  717. // `ToIntegerOrInfinity` abstract operation
  718. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  719. var toIntegerOrInfinity$2 = function (argument) {
  720. var number = +argument;
  721. // eslint-disable-next-line no-self-compare -- NaN check
  722. return number !== number || number === 0 ? 0 : trunc(number);
  723. };
  724. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  725. var max = Math.max;
  726. var min$1 = Math.min;
  727. // Helper for a popular repeating case of the spec:
  728. // Let integer be ? ToInteger(index).
  729. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  730. var toAbsoluteIndex$1 = function (index, length) {
  731. var integer = toIntegerOrInfinity$1(index);
  732. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  733. };
  734. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  735. var min = Math.min;
  736. // `ToLength` abstract operation
  737. // https://tc39.es/ecma262/#sec-tolength
  738. var toLength$1 = function (argument) {
  739. var len = toIntegerOrInfinity(argument);
  740. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  741. };
  742. var toLength = toLength$1;
  743. // `LengthOfArrayLike` abstract operation
  744. // https://tc39.es/ecma262/#sec-lengthofarraylike
  745. var lengthOfArrayLike$2 = function (obj) {
  746. return toLength(obj.length);
  747. };
  748. var toIndexedObject$2 = toIndexedObject$4;
  749. var toAbsoluteIndex = toAbsoluteIndex$1;
  750. var lengthOfArrayLike$1 = lengthOfArrayLike$2;
  751. // `Array.prototype.{ indexOf, includes }` methods implementation
  752. var createMethod$1 = function (IS_INCLUDES) {
  753. return function ($this, el, fromIndex) {
  754. var O = toIndexedObject$2($this);
  755. var length = lengthOfArrayLike$1(O);
  756. if (length === 0) return !IS_INCLUDES && -1;
  757. var index = toAbsoluteIndex(fromIndex, length);
  758. var value;
  759. // Array#includes uses SameValueZero equality algorithm
  760. // eslint-disable-next-line no-self-compare -- NaN check
  761. if (IS_INCLUDES && el !== el) while (length > index) {
  762. value = O[index++];
  763. // eslint-disable-next-line no-self-compare -- NaN check
  764. if (value !== value) return true;
  765. // Array#indexOf ignores holes, Array#includes - not
  766. } else for (;length > index; index++) {
  767. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  768. } return !IS_INCLUDES && -1;
  769. };
  770. };
  771. var arrayIncludes = {
  772. // `Array.prototype.includes` method
  773. // https://tc39.es/ecma262/#sec-array.prototype.includes
  774. includes: createMethod$1(true),
  775. // `Array.prototype.indexOf` method
  776. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  777. indexOf: createMethod$1(false)
  778. };
  779. var uncurryThis$7 = functionUncurryThis;
  780. var hasOwn$1 = hasOwnProperty_1;
  781. var toIndexedObject$1 = toIndexedObject$4;
  782. var indexOf = arrayIncludes.indexOf;
  783. var hiddenKeys$2 = hiddenKeys$4;
  784. var push$1 = uncurryThis$7([].push);
  785. var objectKeysInternal = function (object, names) {
  786. var O = toIndexedObject$1(object);
  787. var i = 0;
  788. var result = [];
  789. var key;
  790. for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
  791. // Don't enum bug & hidden keys
  792. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  793. ~indexOf(result, key) || push$1(result, key);
  794. }
  795. return result;
  796. };
  797. // IE8- don't enum bug keys
  798. var enumBugKeys$3 = [
  799. 'constructor',
  800. 'hasOwnProperty',
  801. 'isPrototypeOf',
  802. 'propertyIsEnumerable',
  803. 'toLocaleString',
  804. 'toString',
  805. 'valueOf'
  806. ];
  807. var internalObjectKeys$1 = objectKeysInternal;
  808. var enumBugKeys$2 = enumBugKeys$3;
  809. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  810. // `Object.getOwnPropertyNames` method
  811. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  812. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  813. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  814. return internalObjectKeys$1(O, hiddenKeys$1);
  815. };
  816. var objectGetOwnPropertySymbols = {};
  817. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  818. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  819. var getBuiltIn$2 = getBuiltIn$4;
  820. var uncurryThis$6 = functionUncurryThis;
  821. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  822. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  823. var anObject$2 = anObject$4;
  824. var concat$1 = uncurryThis$6([].concat);
  825. // all object keys, includes non-enumerable and symbols
  826. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  827. var keys = getOwnPropertyNamesModule.f(anObject$2(it));
  828. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  829. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  830. };
  831. var hasOwn = hasOwnProperty_1;
  832. var ownKeys = ownKeys$1;
  833. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  834. var definePropertyModule$1 = objectDefineProperty;
  835. var copyConstructorProperties$1 = function (target, source, exceptions) {
  836. var keys = ownKeys(source);
  837. var defineProperty = definePropertyModule$1.f;
  838. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  839. for (var i = 0; i < keys.length; i++) {
  840. var key = keys[i];
  841. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  842. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  843. }
  844. }
  845. };
  846. var fails$4 = fails$c;
  847. var isCallable$2 = isCallable$c;
  848. var replacement = /#|\.prototype\./;
  849. var isForced$1 = function (feature, detection) {
  850. var value = data[normalize(feature)];
  851. return value === POLYFILL ? true
  852. : value === NATIVE ? false
  853. : isCallable$2(detection) ? fails$4(detection)
  854. : !!detection;
  855. };
  856. var normalize = isForced$1.normalize = function (string) {
  857. return String(string).replace(replacement, '.').toLowerCase();
  858. };
  859. var data = isForced$1.data = {};
  860. var NATIVE = isForced$1.NATIVE = 'N';
  861. var POLYFILL = isForced$1.POLYFILL = 'P';
  862. var isForced_1 = isForced$1;
  863. var globalThis$2 = globalThis_1;
  864. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  865. var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
  866. var defineBuiltIn$1 = defineBuiltIn$2;
  867. var defineGlobalProperty = defineGlobalProperty$3;
  868. var copyConstructorProperties = copyConstructorProperties$1;
  869. var isForced = isForced_1;
  870. /*
  871. options.target - name of the target object
  872. options.global - target is the global object
  873. options.stat - export as static methods of target
  874. options.proto - export as prototype methods of target
  875. options.real - real prototype method for the `pure` version
  876. options.forced - export even if the native feature is available
  877. options.bind - bind methods to the target, required for the `pure` version
  878. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  879. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  880. options.sham - add a flag to not completely full polyfills
  881. options.enumerable - export as enumerable property
  882. options.dontCallGetSet - prevent calling a getter on target
  883. options.name - the .name of the function if it does not match the key
  884. */
  885. var _export = function (options, source) {
  886. var TARGET = options.target;
  887. var GLOBAL = options.global;
  888. var STATIC = options.stat;
  889. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  890. if (GLOBAL) {
  891. target = globalThis$2;
  892. } else if (STATIC) {
  893. target = globalThis$2[TARGET] || defineGlobalProperty(TARGET, {});
  894. } else {
  895. target = globalThis$2[TARGET] && globalThis$2[TARGET].prototype;
  896. }
  897. if (target) for (key in source) {
  898. sourceProperty = source[key];
  899. if (options.dontCallGetSet) {
  900. descriptor = getOwnPropertyDescriptor(target, key);
  901. targetProperty = descriptor && descriptor.value;
  902. } else targetProperty = target[key];
  903. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  904. // contained in target
  905. if (!FORCED && targetProperty !== undefined) {
  906. if (typeof sourceProperty == typeof targetProperty) continue;
  907. copyConstructorProperties(sourceProperty, targetProperty);
  908. }
  909. // add a flag to not completely full polyfills
  910. if (options.sham || (targetProperty && targetProperty.sham)) {
  911. createNonEnumerableProperty$1(sourceProperty, 'sham', true);
  912. }
  913. defineBuiltIn$1(target, key, sourceProperty, options);
  914. }
  915. };
  916. var objectDefineProperties = {};
  917. var internalObjectKeys = objectKeysInternal;
  918. var enumBugKeys$1 = enumBugKeys$3;
  919. // `Object.keys` method
  920. // https://tc39.es/ecma262/#sec-object.keys
  921. // eslint-disable-next-line es/no-object-keys -- safe
  922. var objectKeys$2 = Object.keys || function keys(O) {
  923. return internalObjectKeys(O, enumBugKeys$1);
  924. };
  925. var DESCRIPTORS$1 = descriptors;
  926. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  927. var definePropertyModule = objectDefineProperty;
  928. var anObject$1 = anObject$4;
  929. var toIndexedObject = toIndexedObject$4;
  930. var objectKeys$1 = objectKeys$2;
  931. // `Object.defineProperties` method
  932. // https://tc39.es/ecma262/#sec-object.defineproperties
  933. // eslint-disable-next-line es/no-object-defineproperties -- safe
  934. objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  935. anObject$1(O);
  936. var props = toIndexedObject(Properties);
  937. var keys = objectKeys$1(Properties);
  938. var length = keys.length;
  939. var index = 0;
  940. var key;
  941. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  942. return O;
  943. };
  944. var getBuiltIn$1 = getBuiltIn$4;
  945. var html$1 = getBuiltIn$1('document', 'documentElement');
  946. /* global ActiveXObject -- old IE, WSH */
  947. var anObject = anObject$4;
  948. var definePropertiesModule = objectDefineProperties;
  949. var enumBugKeys = enumBugKeys$3;
  950. var hiddenKeys = hiddenKeys$4;
  951. var html = html$1;
  952. var documentCreateElement$1 = documentCreateElement$2;
  953. var sharedKey = sharedKey$2;
  954. var GT = '>';
  955. var LT = '<';
  956. var PROTOTYPE = 'prototype';
  957. var SCRIPT = 'script';
  958. var IE_PROTO = sharedKey('IE_PROTO');
  959. var EmptyConstructor = function () { /* empty */ };
  960. var scriptTag = function (content) {
  961. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  962. };
  963. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  964. var NullProtoObjectViaActiveX = function (activeXDocument) {
  965. activeXDocument.write(scriptTag(''));
  966. activeXDocument.close();
  967. var temp = activeXDocument.parentWindow.Object;
  968. // eslint-disable-next-line no-useless-assignment -- avoid memory leak
  969. activeXDocument = null;
  970. return temp;
  971. };
  972. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  973. var NullProtoObjectViaIFrame = function () {
  974. // Thrash, waste and sodomy: IE GC bug
  975. var iframe = documentCreateElement$1('iframe');
  976. var JS = 'java' + SCRIPT + ':';
  977. var iframeDocument;
  978. iframe.style.display = 'none';
  979. html.appendChild(iframe);
  980. // https://github.com/zloirock/core-js/issues/475
  981. iframe.src = String(JS);
  982. iframeDocument = iframe.contentWindow.document;
  983. iframeDocument.open();
  984. iframeDocument.write(scriptTag('document.F=Object'));
  985. iframeDocument.close();
  986. return iframeDocument.F;
  987. };
  988. // Check for document.domain and active x support
  989. // No need to use active x approach when document.domain is not set
  990. // see https://github.com/es-shims/es5-shim/issues/150
  991. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  992. // avoid IE GC bug
  993. var activeXDocument;
  994. var NullProtoObject = function () {
  995. try {
  996. activeXDocument = new ActiveXObject('htmlfile');
  997. } catch (error) { /* ignore */ }
  998. NullProtoObject = typeof document != 'undefined'
  999. ? document.domain && activeXDocument
  1000. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1001. : NullProtoObjectViaIFrame()
  1002. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1003. var length = enumBugKeys.length;
  1004. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1005. return NullProtoObject();
  1006. };
  1007. hiddenKeys[IE_PROTO] = true;
  1008. // `Object.create` method
  1009. // https://tc39.es/ecma262/#sec-object.create
  1010. // eslint-disable-next-line es/no-object-create -- safe
  1011. var objectCreate = Object.create || function create(O, Properties) {
  1012. var result;
  1013. if (O !== null) {
  1014. EmptyConstructor[PROTOTYPE] = anObject(O);
  1015. result = new EmptyConstructor();
  1016. EmptyConstructor[PROTOTYPE] = null;
  1017. // add "__proto__" for Object.getPrototypeOf polyfill
  1018. result[IE_PROTO] = O;
  1019. } else result = NullProtoObject();
  1020. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1021. };
  1022. var wellKnownSymbol$5 = wellKnownSymbol$7;
  1023. var create = objectCreate;
  1024. var defineProperty$1 = objectDefineProperty.f;
  1025. var UNSCOPABLES = wellKnownSymbol$5('unscopables');
  1026. var ArrayPrototype = Array.prototype;
  1027. // Array.prototype[@@unscopables]
  1028. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1029. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1030. defineProperty$1(ArrayPrototype, UNSCOPABLES, {
  1031. configurable: true,
  1032. value: create(null)
  1033. });
  1034. }
  1035. // add a key to Array.prototype[@@unscopables]
  1036. var addToUnscopables$1 = function (key) {
  1037. ArrayPrototype[UNSCOPABLES][key] = true;
  1038. };
  1039. var $$2 = _export;
  1040. var $includes = arrayIncludes.includes;
  1041. var fails$3 = fails$c;
  1042. var addToUnscopables = addToUnscopables$1;
  1043. // FF99+ bug
  1044. var BROKEN_ON_SPARSE = fails$3(function () {
  1045. // eslint-disable-next-line es/no-array-prototype-includes -- detection
  1046. return !Array(1).includes();
  1047. });
  1048. // `Array.prototype.includes` method
  1049. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1050. $$2({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
  1051. includes: function includes(el /* , fromIndex = 0 */) {
  1052. return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  1053. }
  1054. });
  1055. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1056. addToUnscopables('includes');
  1057. var DESCRIPTORS = descriptors;
  1058. var uncurryThis$5 = functionUncurryThis;
  1059. var call = functionCall;
  1060. var fails$2 = fails$c;
  1061. var objectKeys = objectKeys$2;
  1062. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1063. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1064. var toObject$1 = toObject$3;
  1065. var IndexedObject$1 = indexedObject;
  1066. // eslint-disable-next-line es/no-object-assign -- safe
  1067. var $assign = Object.assign;
  1068. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1069. var defineProperty = Object.defineProperty;
  1070. var concat = uncurryThis$5([].concat);
  1071. // `Object.assign` method
  1072. // https://tc39.es/ecma262/#sec-object.assign
  1073. var objectAssign = !$assign || fails$2(function () {
  1074. // should have correct order of operations (Edge bug)
  1075. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  1076. enumerable: true,
  1077. get: function () {
  1078. defineProperty(this, 'b', {
  1079. value: 3,
  1080. enumerable: false
  1081. });
  1082. }
  1083. }), { b: 2 })).b !== 1) return true;
  1084. // should work with symbols and should have deterministic property order (V8 bug)
  1085. var A = {};
  1086. var B = {};
  1087. // eslint-disable-next-line es/no-symbol -- safe
  1088. var symbol = Symbol('assign detection');
  1089. var alphabet = 'abcdefghijklmnopqrst';
  1090. A[symbol] = 7;
  1091. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1092. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  1093. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1094. var T = toObject$1(target);
  1095. var argumentsLength = arguments.length;
  1096. var index = 1;
  1097. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1098. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1099. while (argumentsLength > index) {
  1100. var S = IndexedObject$1(arguments[index++]);
  1101. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  1102. var length = keys.length;
  1103. var j = 0;
  1104. var key;
  1105. while (length > j) {
  1106. key = keys[j++];
  1107. if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  1108. }
  1109. } return T;
  1110. } : $assign;
  1111. var $$1 = _export;
  1112. var assign = objectAssign;
  1113. // `Object.assign` method
  1114. // https://tc39.es/ecma262/#sec-object.assign
  1115. // eslint-disable-next-line es/no-object-assign -- required for testing
  1116. $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1117. assign: assign
  1118. });
  1119. var wellKnownSymbol$4 = wellKnownSymbol$7;
  1120. var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
  1121. var test = {};
  1122. test[TO_STRING_TAG$1] = 'z';
  1123. var toStringTagSupport = String(test) === '[object z]';
  1124. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  1125. var isCallable$1 = isCallable$c;
  1126. var classofRaw$1 = classofRaw$2;
  1127. var wellKnownSymbol$3 = wellKnownSymbol$7;
  1128. var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
  1129. var $Object = Object;
  1130. // ES3 wrong here
  1131. var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
  1132. // fallback for IE11 Script Access Denied error
  1133. var tryGet = function (it, key) {
  1134. try {
  1135. return it[key];
  1136. } catch (error) { /* empty */ }
  1137. };
  1138. // getting tag from ES6+ `Object.prototype.toString`
  1139. var classof$5 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
  1140. var O, tag, result;
  1141. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1142. // @@toStringTag case
  1143. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  1144. // builtinTag case
  1145. : CORRECT_ARGUMENTS ? classofRaw$1(O)
  1146. // ES3 arguments fallback
  1147. : (result = classofRaw$1(O)) === 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  1148. };
  1149. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1150. var classof$4 = classof$5;
  1151. // `Object.prototype.toString` method implementation
  1152. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1153. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1154. return '[object ' + classof$4(this) + ']';
  1155. };
  1156. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1157. var defineBuiltIn = defineBuiltIn$2;
  1158. var toString$2 = objectToString;
  1159. // `Object.prototype.toString` method
  1160. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1161. if (!TO_STRING_TAG_SUPPORT) {
  1162. defineBuiltIn(Object.prototype, 'toString', toString$2, { unsafe: true });
  1163. }
  1164. var isObject$1 = isObject$7;
  1165. var classof$3 = classofRaw$2;
  1166. var wellKnownSymbol$2 = wellKnownSymbol$7;
  1167. var MATCH$1 = wellKnownSymbol$2('match');
  1168. // `IsRegExp` abstract operation
  1169. // https://tc39.es/ecma262/#sec-isregexp
  1170. var isRegexp = function (it) {
  1171. var isRegExp;
  1172. return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$3(it) === 'RegExp');
  1173. };
  1174. var isRegExp = isRegexp;
  1175. var $TypeError = TypeError;
  1176. var notARegexp = function (it) {
  1177. if (isRegExp(it)) {
  1178. throw new $TypeError("The method doesn't accept regular expressions");
  1179. } return it;
  1180. };
  1181. var classof$2 = classof$5;
  1182. var $String = String;
  1183. var toString$1 = function (argument) {
  1184. if (classof$2(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1185. return $String(argument);
  1186. };
  1187. var wellKnownSymbol$1 = wellKnownSymbol$7;
  1188. var MATCH = wellKnownSymbol$1('match');
  1189. var correctIsRegexpLogic = function (METHOD_NAME) {
  1190. var regexp = /./;
  1191. try {
  1192. '/./'[METHOD_NAME](regexp);
  1193. } catch (error1) {
  1194. try {
  1195. regexp[MATCH] = false;
  1196. return '/./'[METHOD_NAME](regexp);
  1197. } catch (error2) { /* empty */ }
  1198. } return false;
  1199. };
  1200. var $ = _export;
  1201. var uncurryThis$4 = functionUncurryThis;
  1202. var notARegExp = notARegexp;
  1203. var requireObjectCoercible = requireObjectCoercible$3;
  1204. var toString = toString$1;
  1205. var correctIsRegExpLogic = correctIsRegexpLogic;
  1206. var stringIndexOf = uncurryThis$4(''.indexOf);
  1207. // `String.prototype.includes` method
  1208. // https://tc39.es/ecma262/#sec-string.prototype.includes
  1209. $({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
  1210. includes: function includes(searchString /* , position = 0 */) {
  1211. return !!~stringIndexOf(
  1212. toString(requireObjectCoercible(this)),
  1213. toString(notARegExp(searchString)),
  1214. arguments.length > 1 ? arguments[1] : undefined
  1215. );
  1216. }
  1217. });
  1218. // iterable DOM collections
  1219. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  1220. var domIterables = {
  1221. CSSRuleList: 0,
  1222. CSSStyleDeclaration: 0,
  1223. CSSValueList: 0,
  1224. ClientRectList: 0,
  1225. DOMRectList: 0,
  1226. DOMStringList: 0,
  1227. DOMTokenList: 1,
  1228. DataTransferItemList: 0,
  1229. FileList: 0,
  1230. HTMLAllCollection: 0,
  1231. HTMLCollection: 0,
  1232. HTMLFormElement: 0,
  1233. HTMLSelectElement: 0,
  1234. MediaList: 0,
  1235. MimeTypeArray: 0,
  1236. NamedNodeMap: 0,
  1237. NodeList: 1,
  1238. PaintRequestList: 0,
  1239. Plugin: 0,
  1240. PluginArray: 0,
  1241. SVGLengthList: 0,
  1242. SVGNumberList: 0,
  1243. SVGPathSegList: 0,
  1244. SVGPointList: 0,
  1245. SVGStringList: 0,
  1246. SVGTransformList: 0,
  1247. SourceBufferList: 0,
  1248. StyleSheetList: 0,
  1249. TextTrackCueList: 0,
  1250. TextTrackList: 0,
  1251. TouchList: 0
  1252. };
  1253. // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
  1254. var documentCreateElement = documentCreateElement$2;
  1255. var classList = documentCreateElement('span').classList;
  1256. var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
  1257. var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
  1258. var classofRaw = classofRaw$2;
  1259. var uncurryThis$3 = functionUncurryThis;
  1260. var functionUncurryThisClause = function (fn) {
  1261. // Nashorn bug:
  1262. // https://github.com/zloirock/core-js/issues/1128
  1263. // https://github.com/zloirock/core-js/issues/1130
  1264. if (classofRaw(fn) === 'Function') return uncurryThis$3(fn);
  1265. };
  1266. var uncurryThis$2 = functionUncurryThisClause;
  1267. var aCallable = aCallable$2;
  1268. var NATIVE_BIND = functionBindNative;
  1269. var bind$1 = uncurryThis$2(uncurryThis$2.bind);
  1270. // optional / simple context binding
  1271. var functionBindContext = function (fn, that) {
  1272. aCallable(fn);
  1273. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  1274. return fn.apply(that, arguments);
  1275. };
  1276. };
  1277. var classof$1 = classofRaw$2;
  1278. // `IsArray` abstract operation
  1279. // https://tc39.es/ecma262/#sec-isarray
  1280. // eslint-disable-next-line es/no-array-isarray -- safe
  1281. var isArray$1 = Array.isArray || function isArray(argument) {
  1282. return classof$1(argument) === 'Array';
  1283. };
  1284. var uncurryThis$1 = functionUncurryThis;
  1285. var fails$1 = fails$c;
  1286. var isCallable = isCallable$c;
  1287. var classof = classof$5;
  1288. var getBuiltIn = getBuiltIn$4;
  1289. var inspectSource = inspectSource$2;
  1290. var noop = function () { /* empty */ };
  1291. var construct = getBuiltIn('Reflect', 'construct');
  1292. var constructorRegExp = /^\s*(?:class|function)\b/;
  1293. var exec = uncurryThis$1(constructorRegExp.exec);
  1294. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1295. var isConstructorModern = function isConstructor(argument) {
  1296. if (!isCallable(argument)) return false;
  1297. try {
  1298. construct(noop, [], argument);
  1299. return true;
  1300. } catch (error) {
  1301. return false;
  1302. }
  1303. };
  1304. var isConstructorLegacy = function isConstructor(argument) {
  1305. if (!isCallable(argument)) return false;
  1306. switch (classof(argument)) {
  1307. case 'AsyncFunction':
  1308. case 'GeneratorFunction':
  1309. case 'AsyncGeneratorFunction': return false;
  1310. }
  1311. try {
  1312. // we can't check .prototype since constructors produced by .bind haven't it
  1313. // `Function#toString` throws on some built-it function in some legacy engines
  1314. // (for example, `DOMQuad` and similar in FF41-)
  1315. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1316. } catch (error) {
  1317. return true;
  1318. }
  1319. };
  1320. isConstructorLegacy.sham = true;
  1321. // `IsConstructor` abstract operation
  1322. // https://tc39.es/ecma262/#sec-isconstructor
  1323. var isConstructor$1 = !construct || fails$1(function () {
  1324. var called;
  1325. return isConstructorModern(isConstructorModern.call)
  1326. || !isConstructorModern(Object)
  1327. || !isConstructorModern(function () { called = true; })
  1328. || called;
  1329. }) ? isConstructorLegacy : isConstructorModern;
  1330. var isArray = isArray$1;
  1331. var isConstructor = isConstructor$1;
  1332. var isObject = isObject$7;
  1333. var wellKnownSymbol = wellKnownSymbol$7;
  1334. var SPECIES = wellKnownSymbol('species');
  1335. var $Array = Array;
  1336. // a part of `ArraySpeciesCreate` abstract operation
  1337. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1338. var arraySpeciesConstructor$1 = function (originalArray) {
  1339. var C;
  1340. if (isArray(originalArray)) {
  1341. C = originalArray.constructor;
  1342. // cross-realm fallback
  1343. if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
  1344. else if (isObject(C)) {
  1345. C = C[SPECIES];
  1346. if (C === null) C = undefined;
  1347. }
  1348. } return C === undefined ? $Array : C;
  1349. };
  1350. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1351. // `ArraySpeciesCreate` abstract operation
  1352. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1353. var arraySpeciesCreate$1 = function (originalArray, length) {
  1354. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1355. };
  1356. var bind = functionBindContext;
  1357. var uncurryThis = functionUncurryThis;
  1358. var IndexedObject = indexedObject;
  1359. var toObject = toObject$3;
  1360. var lengthOfArrayLike = lengthOfArrayLike$2;
  1361. var arraySpeciesCreate = arraySpeciesCreate$1;
  1362. var push = uncurryThis([].push);
  1363. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1364. var createMethod = function (TYPE) {
  1365. var IS_MAP = TYPE === 1;
  1366. var IS_FILTER = TYPE === 2;
  1367. var IS_SOME = TYPE === 3;
  1368. var IS_EVERY = TYPE === 4;
  1369. var IS_FIND_INDEX = TYPE === 6;
  1370. var IS_FILTER_REJECT = TYPE === 7;
  1371. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1372. return function ($this, callbackfn, that, specificCreate) {
  1373. var O = toObject($this);
  1374. var self = IndexedObject(O);
  1375. var length = lengthOfArrayLike(self);
  1376. var boundFunction = bind(callbackfn, that);
  1377. var index = 0;
  1378. var create = specificCreate || arraySpeciesCreate;
  1379. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1380. var value, result;
  1381. for (;length > index; index++) if (NO_HOLES || index in self) {
  1382. value = self[index];
  1383. result = boundFunction(value, index, O);
  1384. if (TYPE) {
  1385. if (IS_MAP) target[index] = result; // map
  1386. else if (result) switch (TYPE) {
  1387. case 3: return true; // some
  1388. case 5: return value; // find
  1389. case 6: return index; // findIndex
  1390. case 2: push(target, value); // filter
  1391. } else switch (TYPE) {
  1392. case 4: return false; // every
  1393. case 7: push(target, value); // filterReject
  1394. }
  1395. }
  1396. }
  1397. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1398. };
  1399. };
  1400. var arrayIteration = {
  1401. // `Array.prototype.forEach` method
  1402. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1403. forEach: createMethod(0),
  1404. // `Array.prototype.map` method
  1405. // https://tc39.es/ecma262/#sec-array.prototype.map
  1406. map: createMethod(1),
  1407. // `Array.prototype.filter` method
  1408. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1409. filter: createMethod(2),
  1410. // `Array.prototype.some` method
  1411. // https://tc39.es/ecma262/#sec-array.prototype.some
  1412. some: createMethod(3),
  1413. // `Array.prototype.every` method
  1414. // https://tc39.es/ecma262/#sec-array.prototype.every
  1415. every: createMethod(4),
  1416. // `Array.prototype.find` method
  1417. // https://tc39.es/ecma262/#sec-array.prototype.find
  1418. find: createMethod(5),
  1419. // `Array.prototype.findIndex` method
  1420. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1421. findIndex: createMethod(6),
  1422. // `Array.prototype.filterReject` method
  1423. // https://github.com/tc39/proposal-array-filtering
  1424. filterReject: createMethod(7)
  1425. };
  1426. var fails = fails$c;
  1427. var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
  1428. var method = [][METHOD_NAME];
  1429. return !!method && fails(function () {
  1430. // eslint-disable-next-line no-useless-call -- required for testing
  1431. method.call(null, argument || function () { return 1; }, 1);
  1432. });
  1433. };
  1434. var $forEach = arrayIteration.forEach;
  1435. var arrayMethodIsStrict = arrayMethodIsStrict$1;
  1436. var STRICT_METHOD = arrayMethodIsStrict('forEach');
  1437. // `Array.prototype.forEach` method implementation
  1438. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1439. var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
  1440. return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1441. // eslint-disable-next-line es/no-array-prototype-foreach -- safe
  1442. } : [].forEach;
  1443. var globalThis$1 = globalThis_1;
  1444. var DOMIterables = domIterables;
  1445. var DOMTokenListPrototype = domTokenListPrototype;
  1446. var forEach = arrayForEach;
  1447. var createNonEnumerableProperty = createNonEnumerableProperty$3;
  1448. var handlePrototype = function (CollectionPrototype) {
  1449. // some Chrome versions have non-configurable methods on DOMTokenList
  1450. if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
  1451. createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
  1452. } catch (error) {
  1453. CollectionPrototype.forEach = forEach;
  1454. }
  1455. };
  1456. for (var COLLECTION_NAME in DOMIterables) {
  1457. if (DOMIterables[COLLECTION_NAME]) {
  1458. handlePrototype(globalThis$1[COLLECTION_NAME] && globalThis$1[COLLECTION_NAME].prototype);
  1459. }
  1460. }
  1461. handlePrototype(DOMTokenListPrototype);
  1462. /**
  1463. * @author: Dennis Hernández
  1464. * @update zhixin wen <wenzhixin2010@gmail.com>
  1465. */
  1466. var debounce = function debounce(func, wait) {
  1467. var timeout = 0;
  1468. return function () {
  1469. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1470. args[_key] = arguments[_key];
  1471. }
  1472. var later = function later() {
  1473. timeout = 0;
  1474. func.apply(void 0, args);
  1475. };
  1476. clearTimeout(timeout);
  1477. timeout = setTimeout(later, wait);
  1478. };
  1479. };
  1480. Object.assign($$3.fn.bootstrapTable.defaults, {
  1481. mobileResponsive: false,
  1482. minWidth: 562,
  1483. minHeight: undefined,
  1484. heightThreshold: 100,
  1485. // just slightly larger than mobile chrome's auto-hiding toolbar
  1486. checkOnInit: true,
  1487. columnsHidden: []
  1488. });
  1489. $$3.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1490. function _class() {
  1491. _classCallCheck(this, _class);
  1492. return _callSuper(this, _class, arguments);
  1493. }
  1494. _inherits(_class, _$$BootstrapTable);
  1495. return _createClass(_class, [{
  1496. key: "init",
  1497. value: function init() {
  1498. var _this = this;
  1499. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1500. args[_key2] = arguments[_key2];
  1501. }
  1502. _superPropGet(_class, "init", this)(args);
  1503. if (!this.options.mobileResponsive || !this.options.minWidth) {
  1504. return;
  1505. }
  1506. if (this.options.minWidth < 100 && this.options.resizable) {
  1507. console.warn('The minWidth when the resizable extension is active should be greater or equal than 100');
  1508. this.options.minWidth = 100;
  1509. }
  1510. var old = {
  1511. width: $$3(window).width(),
  1512. height: $$3(window).height()
  1513. };
  1514. $$3(window).on('resize orientationchange', debounce(function () {
  1515. // reset view if height has only changed by at least the threshold.
  1516. var width = $$3(window).width();
  1517. var height = $$3(window).height();
  1518. var $activeElement = $$3(document.activeElement);
  1519. if ($activeElement.length && ['INPUT', 'SELECT', 'TEXTAREA'].includes($activeElement.prop('nodeName'))) {
  1520. return;
  1521. }
  1522. if (Math.abs(old.height - height) > _this.options.heightThreshold || old.width !== width) {
  1523. _this.changeView(width, height);
  1524. old = {
  1525. width: width,
  1526. height: height
  1527. };
  1528. }
  1529. }, 200));
  1530. if (this.options.checkOnInit) {
  1531. var width = $$3(window).width();
  1532. var height = $$3(window).height();
  1533. this.changeView(width, height);
  1534. old = {
  1535. width: width,
  1536. height: height
  1537. };
  1538. }
  1539. }
  1540. }, {
  1541. key: "conditionCardView",
  1542. value: function conditionCardView() {
  1543. this.changeTableView(false);
  1544. this.showHideColumns(false);
  1545. }
  1546. }, {
  1547. key: "conditionFullView",
  1548. value: function conditionFullView() {
  1549. this.changeTableView(true);
  1550. this.showHideColumns(true);
  1551. }
  1552. }, {
  1553. key: "changeTableView",
  1554. value: function changeTableView(cardViewState) {
  1555. this.options.cardView = cardViewState;
  1556. this.toggleView();
  1557. }
  1558. }, {
  1559. key: "showHideColumns",
  1560. value: function showHideColumns(checked) {
  1561. var _this2 = this;
  1562. if (this.options.columnsHidden.length > 0) {
  1563. this.columns.forEach(function (column) {
  1564. if (_this2.options.columnsHidden.includes(column.field)) {
  1565. if (column.visible !== checked) {
  1566. _this2._toggleColumn(_this2.fieldsColumnsIndex[column.field], checked, true);
  1567. }
  1568. }
  1569. });
  1570. }
  1571. }
  1572. }, {
  1573. key: "changeView",
  1574. value: function changeView(width, height) {
  1575. if (this.options.minHeight) {
  1576. if (width <= this.options.minWidth && height <= this.options.minHeight) {
  1577. this.conditionCardView();
  1578. } else if (width > this.options.minWidth && height > this.options.minHeight) {
  1579. this.conditionFullView();
  1580. }
  1581. } else if (width <= this.options.minWidth) {
  1582. this.conditionCardView();
  1583. } else if (width > this.options.minWidth) {
  1584. this.conditionFullView();
  1585. }
  1586. this.resetView();
  1587. }
  1588. }]);
  1589. }($$3.BootstrapTable);
  1590. }));