bootstrap-table-reorder-columns.js 71 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043
  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 ($$5) { 'use strict';
  6. function _arrayLikeToArray(r, a) {
  7. (null == a || a > r.length) && (a = r.length);
  8. for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
  9. return n;
  10. }
  11. function _arrayWithHoles(r) {
  12. if (Array.isArray(r)) return r;
  13. }
  14. function _assertThisInitialized(e) {
  15. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  16. return e;
  17. }
  18. function _callSuper(t, o, e) {
  19. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  20. }
  21. function _classCallCheck(a, n) {
  22. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  23. }
  24. function _defineProperties(e, r) {
  25. for (var t = 0; t < r.length; t++) {
  26. var o = r[t];
  27. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  28. }
  29. }
  30. function _createClass(e, r, t) {
  31. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  32. writable: !1
  33. }), e;
  34. }
  35. function _get() {
  36. return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
  37. var p = _superPropBase(e, t);
  38. if (p) {
  39. var n = Object.getOwnPropertyDescriptor(p, t);
  40. return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
  41. }
  42. }, _get.apply(null, arguments);
  43. }
  44. function _getPrototypeOf(t) {
  45. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
  46. return t.__proto__ || Object.getPrototypeOf(t);
  47. }, _getPrototypeOf(t);
  48. }
  49. function _inherits(t, e) {
  50. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  51. t.prototype = Object.create(e && e.prototype, {
  52. constructor: {
  53. value: t,
  54. writable: !0,
  55. configurable: !0
  56. }
  57. }), Object.defineProperty(t, "prototype", {
  58. writable: !1
  59. }), e && _setPrototypeOf(t, e);
  60. }
  61. function _isNativeReflectConstruct() {
  62. try {
  63. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  64. } catch (t) {}
  65. return (_isNativeReflectConstruct = function () {
  66. return !!t;
  67. })();
  68. }
  69. function _iterableToArrayLimit(r, l) {
  70. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  71. if (null != t) {
  72. var e,
  73. n,
  74. i,
  75. u,
  76. a = [],
  77. f = !0,
  78. o = !1;
  79. try {
  80. if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
  81. } catch (r) {
  82. o = !0, n = r;
  83. } finally {
  84. try {
  85. if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
  86. } finally {
  87. if (o) throw n;
  88. }
  89. }
  90. return a;
  91. }
  92. }
  93. function _nonIterableRest() {
  94. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  95. }
  96. function _possibleConstructorReturn(t, e) {
  97. if (e && ("object" == typeof e || "function" == typeof e)) return e;
  98. if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
  99. return _assertThisInitialized(t);
  100. }
  101. function _setPrototypeOf(t, e) {
  102. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
  103. return t.__proto__ = e, t;
  104. }, _setPrototypeOf(t, e);
  105. }
  106. function _slicedToArray(r, e) {
  107. return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
  108. }
  109. function _superPropBase(t, o) {
  110. for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
  111. return t;
  112. }
  113. function _superPropGet(t, e, r, o) {
  114. var p = _get(_getPrototypeOf(t.prototype ), e, r);
  115. return function (t) {
  116. return p.apply(r, t);
  117. } ;
  118. }
  119. function _toPrimitive(t, r) {
  120. if ("object" != typeof t || !t) return t;
  121. var e = t[Symbol.toPrimitive];
  122. if (void 0 !== e) {
  123. var i = e.call(t, r);
  124. if ("object" != typeof i) return i;
  125. throw new TypeError("@@toPrimitive must return a primitive value.");
  126. }
  127. return (String )(t);
  128. }
  129. function _toPropertyKey(t) {
  130. var i = _toPrimitive(t, "string");
  131. return "symbol" == typeof i ? i : i + "";
  132. }
  133. function _unsupportedIterableToArray(r, a) {
  134. if (r) {
  135. if ("string" == typeof r) return _arrayLikeToArray(r, a);
  136. var t = {}.toString.call(r).slice(8, -1);
  137. return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
  138. }
  139. }
  140. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  141. var check = function (it) {
  142. return it && it.Math === Math && it;
  143. };
  144. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  145. var globalThis_1 =
  146. // eslint-disable-next-line es/no-global-this -- safe
  147. check(typeof globalThis == 'object' && globalThis) ||
  148. check(typeof window == 'object' && window) ||
  149. // eslint-disable-next-line no-restricted-globals -- safe
  150. check(typeof self == 'object' && self) ||
  151. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  152. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  153. // eslint-disable-next-line no-new-func -- fallback
  154. (function () { return this; })() || Function('return this')();
  155. var objectGetOwnPropertyDescriptor = {};
  156. var fails$e = function (exec) {
  157. try {
  158. return !!exec();
  159. } catch (error) {
  160. return true;
  161. }
  162. };
  163. var fails$d = fails$e;
  164. // Detect IE8's incomplete defineProperty implementation
  165. var descriptors = !fails$d(function () {
  166. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  167. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  168. });
  169. var fails$c = fails$e;
  170. var functionBindNative = !fails$c(function () {
  171. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  172. var test = (function () { /* empty */ }).bind();
  173. // eslint-disable-next-line no-prototype-builtins -- safe
  174. return typeof test != 'function' || test.hasOwnProperty('prototype');
  175. });
  176. var NATIVE_BIND$2 = functionBindNative;
  177. var call$5 = Function.prototype.call;
  178. var functionCall = NATIVE_BIND$2 ? call$5.bind(call$5) : function () {
  179. return call$5.apply(call$5, arguments);
  180. };
  181. var objectPropertyIsEnumerable = {};
  182. var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
  183. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  184. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  185. // Nashorn ~ JDK8 bug
  186. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
  187. // `Object.prototype.propertyIsEnumerable` method implementation
  188. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  189. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  190. var descriptor = getOwnPropertyDescriptor$1(this, V);
  191. return !!descriptor && descriptor.enumerable;
  192. } : $propertyIsEnumerable$1;
  193. var createPropertyDescriptor$2 = function (bitmap, value) {
  194. return {
  195. enumerable: !(bitmap & 1),
  196. configurable: !(bitmap & 2),
  197. writable: !(bitmap & 4),
  198. value: value
  199. };
  200. };
  201. var NATIVE_BIND$1 = functionBindNative;
  202. var FunctionPrototype$1 = Function.prototype;
  203. var call$4 = FunctionPrototype$1.call;
  204. var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$4, call$4);
  205. var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
  206. return function () {
  207. return call$4.apply(fn, arguments);
  208. };
  209. };
  210. var uncurryThis$g = functionUncurryThis;
  211. var toString$5 = uncurryThis$g({}.toString);
  212. var stringSlice$1 = uncurryThis$g(''.slice);
  213. var classofRaw$2 = function (it) {
  214. return stringSlice$1(toString$5(it), 8, -1);
  215. };
  216. var uncurryThis$f = functionUncurryThis;
  217. var fails$b = fails$e;
  218. var classof$5 = classofRaw$2;
  219. var $Object$4 = Object;
  220. var split = uncurryThis$f(''.split);
  221. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  222. var indexedObject = fails$b(function () {
  223. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  224. // eslint-disable-next-line no-prototype-builtins -- safe
  225. return !$Object$4('z').propertyIsEnumerable(0);
  226. }) ? function (it) {
  227. return classof$5(it) === 'String' ? split(it, '') : $Object$4(it);
  228. } : $Object$4;
  229. // we can't use just `it == null` since of `document.all` special case
  230. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  231. var isNullOrUndefined$2 = function (it) {
  232. return it === null || it === undefined;
  233. };
  234. var isNullOrUndefined$1 = isNullOrUndefined$2;
  235. var $TypeError$5 = TypeError;
  236. // `RequireObjectCoercible` abstract operation
  237. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  238. var requireObjectCoercible$3 = function (it) {
  239. if (isNullOrUndefined$1(it)) throw new $TypeError$5("Can't call method on " + it);
  240. return it;
  241. };
  242. // toObject with fallback for non-array-like ES3 strings
  243. var IndexedObject$2 = indexedObject;
  244. var requireObjectCoercible$2 = requireObjectCoercible$3;
  245. var toIndexedObject$5 = function (it) {
  246. return IndexedObject$2(requireObjectCoercible$2(it));
  247. };
  248. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  249. var documentAll = typeof document == 'object' && document.all;
  250. // `IsCallable` abstract operation
  251. // https://tc39.es/ecma262/#sec-iscallable
  252. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  253. var isCallable$d = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  254. return typeof argument == 'function' || argument === documentAll;
  255. } : function (argument) {
  256. return typeof argument == 'function';
  257. };
  258. var isCallable$c = isCallable$d;
  259. var isObject$6 = function (it) {
  260. return typeof it == 'object' ? it !== null : isCallable$c(it);
  261. };
  262. var globalThis$c = globalThis_1;
  263. var isCallable$b = isCallable$d;
  264. var aFunction = function (argument) {
  265. return isCallable$b(argument) ? argument : undefined;
  266. };
  267. var getBuiltIn$4 = function (namespace, method) {
  268. return arguments.length < 2 ? aFunction(globalThis$c[namespace]) : globalThis$c[namespace] && globalThis$c[namespace][method];
  269. };
  270. var uncurryThis$e = functionUncurryThis;
  271. var objectIsPrototypeOf = uncurryThis$e({}.isPrototypeOf);
  272. var globalThis$b = globalThis_1;
  273. var navigator = globalThis$b.navigator;
  274. var userAgent$1 = navigator && navigator.userAgent;
  275. var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
  276. var globalThis$a = globalThis_1;
  277. var userAgent = environmentUserAgent;
  278. var process = globalThis$a.process;
  279. var Deno = globalThis$a.Deno;
  280. var versions = process && process.versions || Deno && Deno.version;
  281. var v8 = versions && versions.v8;
  282. var match, version;
  283. if (v8) {
  284. match = v8.split('.');
  285. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  286. // but their correct versions are not interesting for us
  287. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  288. }
  289. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  290. // so check `userAgent` even if `.v8` exists, but 0
  291. if (!version && userAgent) {
  292. match = userAgent.match(/Edge\/(\d+)/);
  293. if (!match || match[1] >= 74) {
  294. match = userAgent.match(/Chrome\/(\d+)/);
  295. if (match) version = +match[1];
  296. }
  297. }
  298. var environmentV8Version = version;
  299. /* eslint-disable es/no-symbol -- required for testing */
  300. var V8_VERSION$1 = environmentV8Version;
  301. var fails$a = fails$e;
  302. var globalThis$9 = globalThis_1;
  303. var $String$4 = globalThis$9.String;
  304. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  305. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
  306. var symbol = Symbol('symbol detection');
  307. // Chrome 38 Symbol has incorrect toString conversion
  308. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  309. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  310. // of course, fail.
  311. return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
  312. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  313. !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
  314. });
  315. /* eslint-disable es/no-symbol -- required for testing */
  316. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  317. var useSymbolAsUid = NATIVE_SYMBOL$1
  318. && !Symbol.sham
  319. && typeof Symbol.iterator == 'symbol';
  320. var getBuiltIn$3 = getBuiltIn$4;
  321. var isCallable$a = isCallable$d;
  322. var isPrototypeOf = objectIsPrototypeOf;
  323. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  324. var $Object$3 = Object;
  325. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  326. return typeof it == 'symbol';
  327. } : function (it) {
  328. var $Symbol = getBuiltIn$3('Symbol');
  329. return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, $Object$3(it));
  330. };
  331. var $String$3 = String;
  332. var tryToString$1 = function (argument) {
  333. try {
  334. return $String$3(argument);
  335. } catch (error) {
  336. return 'Object';
  337. }
  338. };
  339. var isCallable$9 = isCallable$d;
  340. var tryToString = tryToString$1;
  341. var $TypeError$4 = TypeError;
  342. // `Assert: IsCallable(argument) is true`
  343. var aCallable$2 = function (argument) {
  344. if (isCallable$9(argument)) return argument;
  345. throw new $TypeError$4(tryToString(argument) + ' is not a function');
  346. };
  347. var aCallable$1 = aCallable$2;
  348. var isNullOrUndefined = isNullOrUndefined$2;
  349. // `GetMethod` abstract operation
  350. // https://tc39.es/ecma262/#sec-getmethod
  351. var getMethod$1 = function (V, P) {
  352. var func = V[P];
  353. return isNullOrUndefined(func) ? undefined : aCallable$1(func);
  354. };
  355. var call$3 = functionCall;
  356. var isCallable$8 = isCallable$d;
  357. var isObject$5 = isObject$6;
  358. var $TypeError$3 = TypeError;
  359. // `OrdinaryToPrimitive` abstract operation
  360. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  361. var ordinaryToPrimitive$1 = function (input, pref) {
  362. var fn, val;
  363. if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$3(fn, input))) return val;
  364. if (isCallable$8(fn = input.valueOf) && !isObject$5(val = call$3(fn, input))) return val;
  365. if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$3(fn, input))) return val;
  366. throw new $TypeError$3("Can't convert object to primitive value");
  367. };
  368. var sharedStore = {exports: {}};
  369. var globalThis$8 = globalThis_1;
  370. // eslint-disable-next-line es/no-object-defineproperty -- safe
  371. var defineProperty$3 = Object.defineProperty;
  372. var defineGlobalProperty$3 = function (key, value) {
  373. try {
  374. defineProperty$3(globalThis$8, key, { value: value, configurable: true, writable: true });
  375. } catch (error) {
  376. globalThis$8[key] = value;
  377. } return value;
  378. };
  379. var globalThis$7 = globalThis_1;
  380. var defineGlobalProperty$2 = defineGlobalProperty$3;
  381. var SHARED = '__core-js_shared__';
  382. var store$3 = sharedStore.exports = globalThis$7[SHARED] || defineGlobalProperty$2(SHARED, {});
  383. (store$3.versions || (store$3.versions = [])).push({
  384. version: '3.38.1',
  385. mode: 'global',
  386. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  387. license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
  388. source: 'https://github.com/zloirock/core-js'
  389. });
  390. var sharedStoreExports = sharedStore.exports;
  391. var store$2 = sharedStoreExports;
  392. var shared$3 = function (key, value) {
  393. return store$2[key] || (store$2[key] = value || {});
  394. };
  395. var requireObjectCoercible$1 = requireObjectCoercible$3;
  396. var $Object$2 = Object;
  397. // `ToObject` abstract operation
  398. // https://tc39.es/ecma262/#sec-toobject
  399. var toObject$4 = function (argument) {
  400. return $Object$2(requireObjectCoercible$1(argument));
  401. };
  402. var uncurryThis$d = functionUncurryThis;
  403. var toObject$3 = toObject$4;
  404. var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
  405. // `HasOwnProperty` abstract operation
  406. // https://tc39.es/ecma262/#sec-hasownproperty
  407. // eslint-disable-next-line es/no-object-hasown -- safe
  408. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  409. return hasOwnProperty(toObject$3(it), key);
  410. };
  411. var uncurryThis$c = functionUncurryThis;
  412. var id = 0;
  413. var postfix = Math.random();
  414. var toString$4 = uncurryThis$c(1.0.toString);
  415. var uid$2 = function (key) {
  416. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
  417. };
  418. var globalThis$6 = globalThis_1;
  419. var shared$2 = shared$3;
  420. var hasOwn$7 = hasOwnProperty_1;
  421. var uid$1 = uid$2;
  422. var NATIVE_SYMBOL = symbolConstructorDetection;
  423. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  424. var Symbol$2 = globalThis$6.Symbol;
  425. var WellKnownSymbolsStore = shared$2('wks');
  426. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
  427. var wellKnownSymbol$6 = function (name) {
  428. if (!hasOwn$7(WellKnownSymbolsStore, name)) {
  429. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$7(Symbol$2, name)
  430. ? Symbol$2[name]
  431. : createWellKnownSymbol('Symbol.' + name);
  432. } return WellKnownSymbolsStore[name];
  433. };
  434. var call$2 = functionCall;
  435. var isObject$4 = isObject$6;
  436. var isSymbol$1 = isSymbol$2;
  437. var getMethod = getMethod$1;
  438. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  439. var wellKnownSymbol$5 = wellKnownSymbol$6;
  440. var $TypeError$2 = TypeError;
  441. var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
  442. // `ToPrimitive` abstract operation
  443. // https://tc39.es/ecma262/#sec-toprimitive
  444. var toPrimitive$1 = function (input, pref) {
  445. if (!isObject$4(input) || isSymbol$1(input)) return input;
  446. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  447. var result;
  448. if (exoticToPrim) {
  449. if (pref === undefined) pref = 'default';
  450. result = call$2(exoticToPrim, input, pref);
  451. if (!isObject$4(result) || isSymbol$1(result)) return result;
  452. throw new $TypeError$2("Can't convert object to primitive value");
  453. }
  454. if (pref === undefined) pref = 'number';
  455. return ordinaryToPrimitive(input, pref);
  456. };
  457. var toPrimitive = toPrimitive$1;
  458. var isSymbol = isSymbol$2;
  459. // `ToPropertyKey` abstract operation
  460. // https://tc39.es/ecma262/#sec-topropertykey
  461. var toPropertyKey$2 = function (argument) {
  462. var key = toPrimitive(argument, 'string');
  463. return isSymbol(key) ? key : key + '';
  464. };
  465. var globalThis$5 = globalThis_1;
  466. var isObject$3 = isObject$6;
  467. var document$1 = globalThis$5.document;
  468. // typeof document.createElement is 'object' in old IE
  469. var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
  470. var documentCreateElement$1 = function (it) {
  471. return EXISTS$1 ? document$1.createElement(it) : {};
  472. };
  473. var DESCRIPTORS$9 = descriptors;
  474. var fails$9 = fails$e;
  475. var createElement = documentCreateElement$1;
  476. // Thanks to IE8 for its funny defineProperty
  477. var ie8DomDefine = !DESCRIPTORS$9 && !fails$9(function () {
  478. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  479. return Object.defineProperty(createElement('div'), 'a', {
  480. get: function () { return 7; }
  481. }).a !== 7;
  482. });
  483. var DESCRIPTORS$8 = descriptors;
  484. var call$1 = functionCall;
  485. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  486. var createPropertyDescriptor$1 = createPropertyDescriptor$2;
  487. var toIndexedObject$4 = toIndexedObject$5;
  488. var toPropertyKey$1 = toPropertyKey$2;
  489. var hasOwn$6 = hasOwnProperty_1;
  490. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  491. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  492. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  493. // `Object.getOwnPropertyDescriptor` method
  494. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  495. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  496. O = toIndexedObject$4(O);
  497. P = toPropertyKey$1(P);
  498. if (IE8_DOM_DEFINE$1) try {
  499. return $getOwnPropertyDescriptor$1(O, P);
  500. } catch (error) { /* empty */ }
  501. if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
  502. };
  503. var objectDefineProperty = {};
  504. var DESCRIPTORS$7 = descriptors;
  505. var fails$8 = fails$e;
  506. // V8 ~ Chrome 36-
  507. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  508. var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$8(function () {
  509. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  510. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  511. value: 42,
  512. writable: false
  513. }).prototype !== 42;
  514. });
  515. var isObject$2 = isObject$6;
  516. var $String$2 = String;
  517. var $TypeError$1 = TypeError;
  518. // `Assert: Type(argument) is Object`
  519. var anObject$4 = function (argument) {
  520. if (isObject$2(argument)) return argument;
  521. throw new $TypeError$1($String$2(argument) + ' is not an object');
  522. };
  523. var DESCRIPTORS$6 = descriptors;
  524. var IE8_DOM_DEFINE = ie8DomDefine;
  525. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  526. var anObject$3 = anObject$4;
  527. var toPropertyKey = toPropertyKey$2;
  528. var $TypeError = TypeError;
  529. // eslint-disable-next-line es/no-object-defineproperty -- safe
  530. var $defineProperty = Object.defineProperty;
  531. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  532. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  533. var ENUMERABLE = 'enumerable';
  534. var CONFIGURABLE$1 = 'configurable';
  535. var WRITABLE = 'writable';
  536. // `Object.defineProperty` method
  537. // https://tc39.es/ecma262/#sec-object.defineproperty
  538. objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  539. anObject$3(O);
  540. P = toPropertyKey(P);
  541. anObject$3(Attributes);
  542. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  543. var current = $getOwnPropertyDescriptor(O, P);
  544. if (current && current[WRITABLE]) {
  545. O[P] = Attributes.value;
  546. Attributes = {
  547. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  548. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  549. writable: false
  550. };
  551. }
  552. } return $defineProperty(O, P, Attributes);
  553. } : $defineProperty : function defineProperty(O, P, Attributes) {
  554. anObject$3(O);
  555. P = toPropertyKey(P);
  556. anObject$3(Attributes);
  557. if (IE8_DOM_DEFINE) try {
  558. return $defineProperty(O, P, Attributes);
  559. } catch (error) { /* empty */ }
  560. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
  561. if ('value' in Attributes) O[P] = Attributes.value;
  562. return O;
  563. };
  564. var DESCRIPTORS$5 = descriptors;
  565. var definePropertyModule$3 = objectDefineProperty;
  566. var createPropertyDescriptor = createPropertyDescriptor$2;
  567. var createNonEnumerableProperty$2 = DESCRIPTORS$5 ? function (object, key, value) {
  568. return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
  569. } : function (object, key, value) {
  570. object[key] = value;
  571. return object;
  572. };
  573. var makeBuiltIn$2 = {exports: {}};
  574. var DESCRIPTORS$4 = descriptors;
  575. var hasOwn$5 = hasOwnProperty_1;
  576. var FunctionPrototype = Function.prototype;
  577. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  578. var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
  579. var EXISTS = hasOwn$5(FunctionPrototype, 'name');
  580. // additional protection from minified / mangled / dropped function names
  581. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  582. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
  583. var functionName = {
  584. EXISTS: EXISTS,
  585. PROPER: PROPER,
  586. CONFIGURABLE: CONFIGURABLE
  587. };
  588. var uncurryThis$b = functionUncurryThis;
  589. var isCallable$7 = isCallable$d;
  590. var store$1 = sharedStoreExports;
  591. var functionToString = uncurryThis$b(Function.toString);
  592. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  593. if (!isCallable$7(store$1.inspectSource)) {
  594. store$1.inspectSource = function (it) {
  595. return functionToString(it);
  596. };
  597. }
  598. var inspectSource$2 = store$1.inspectSource;
  599. var globalThis$4 = globalThis_1;
  600. var isCallable$6 = isCallable$d;
  601. var WeakMap$1 = globalThis$4.WeakMap;
  602. var weakMapBasicDetection = isCallable$6(WeakMap$1) && /native code/.test(String(WeakMap$1));
  603. var shared$1 = shared$3;
  604. var uid = uid$2;
  605. var keys = shared$1('keys');
  606. var sharedKey$3 = function (key) {
  607. return keys[key] || (keys[key] = uid(key));
  608. };
  609. var hiddenKeys$4 = {};
  610. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  611. var globalThis$3 = globalThis_1;
  612. var isObject$1 = isObject$6;
  613. var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
  614. var hasOwn$4 = hasOwnProperty_1;
  615. var shared = sharedStoreExports;
  616. var sharedKey$2 = sharedKey$3;
  617. var hiddenKeys$3 = hiddenKeys$4;
  618. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  619. var TypeError$1 = globalThis$3.TypeError;
  620. var WeakMap = globalThis$3.WeakMap;
  621. var set, get, has;
  622. var enforce = function (it) {
  623. return has(it) ? get(it) : set(it, {});
  624. };
  625. var getterFor = function (TYPE) {
  626. return function (it) {
  627. var state;
  628. if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
  629. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  630. } return state;
  631. };
  632. };
  633. if (NATIVE_WEAK_MAP || shared.state) {
  634. var store = shared.state || (shared.state = new WeakMap());
  635. /* eslint-disable no-self-assign -- prototype methods protection */
  636. store.get = store.get;
  637. store.has = store.has;
  638. store.set = store.set;
  639. /* eslint-enable no-self-assign -- prototype methods protection */
  640. set = function (it, metadata) {
  641. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  642. metadata.facade = it;
  643. store.set(it, metadata);
  644. return metadata;
  645. };
  646. get = function (it) {
  647. return store.get(it) || {};
  648. };
  649. has = function (it) {
  650. return store.has(it);
  651. };
  652. } else {
  653. var STATE = sharedKey$2('state');
  654. hiddenKeys$3[STATE] = true;
  655. set = function (it, metadata) {
  656. if (hasOwn$4(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  657. metadata.facade = it;
  658. createNonEnumerableProperty$1(it, STATE, metadata);
  659. return metadata;
  660. };
  661. get = function (it) {
  662. return hasOwn$4(it, STATE) ? it[STATE] : {};
  663. };
  664. has = function (it) {
  665. return hasOwn$4(it, STATE);
  666. };
  667. }
  668. var internalState = {
  669. set: set,
  670. get: get,
  671. has: has,
  672. enforce: enforce,
  673. getterFor: getterFor
  674. };
  675. var uncurryThis$a = functionUncurryThis;
  676. var fails$7 = fails$e;
  677. var isCallable$5 = isCallable$d;
  678. var hasOwn$3 = hasOwnProperty_1;
  679. var DESCRIPTORS$3 = descriptors;
  680. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  681. var inspectSource$1 = inspectSource$2;
  682. var InternalStateModule = internalState;
  683. var enforceInternalState = InternalStateModule.enforce;
  684. var getInternalState = InternalStateModule.get;
  685. var $String$1 = String;
  686. // eslint-disable-next-line es/no-object-defineproperty -- safe
  687. var defineProperty$2 = Object.defineProperty;
  688. var stringSlice = uncurryThis$a(''.slice);
  689. var replace$1 = uncurryThis$a(''.replace);
  690. var join = uncurryThis$a([].join);
  691. var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$7(function () {
  692. return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  693. });
  694. var TEMPLATE = String(String).split('String');
  695. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  696. if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
  697. name = '[' + replace$1($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  698. }
  699. if (options && options.getter) name = 'get ' + name;
  700. if (options && options.setter) name = 'set ' + name;
  701. if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  702. if (DESCRIPTORS$3) defineProperty$2(value, 'name', { value: name, configurable: true });
  703. else value.name = name;
  704. }
  705. if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
  706. defineProperty$2(value, 'length', { value: options.arity });
  707. }
  708. try {
  709. if (options && hasOwn$3(options, 'constructor') && options.constructor) {
  710. if (DESCRIPTORS$3) defineProperty$2(value, 'prototype', { writable: false });
  711. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  712. } else if (value.prototype) value.prototype = undefined;
  713. } catch (error) { /* empty */ }
  714. var state = enforceInternalState(value);
  715. if (!hasOwn$3(state, 'source')) {
  716. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  717. } return value;
  718. };
  719. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  720. // eslint-disable-next-line no-extend-native -- required
  721. Function.prototype.toString = makeBuiltIn$1(function toString() {
  722. return isCallable$5(this) && getInternalState(this).source || inspectSource$1(this);
  723. }, 'toString');
  724. var makeBuiltInExports = makeBuiltIn$2.exports;
  725. var isCallable$4 = isCallable$d;
  726. var definePropertyModule$2 = objectDefineProperty;
  727. var makeBuiltIn = makeBuiltInExports;
  728. var defineGlobalProperty$1 = defineGlobalProperty$3;
  729. var defineBuiltIn$2 = function (O, key, value, options) {
  730. if (!options) options = {};
  731. var simple = options.enumerable;
  732. var name = options.name !== undefined ? options.name : key;
  733. if (isCallable$4(value)) makeBuiltIn(value, name, options);
  734. if (options.global) {
  735. if (simple) O[key] = value;
  736. else defineGlobalProperty$1(key, value);
  737. } else {
  738. try {
  739. if (!options.unsafe) delete O[key];
  740. else if (O[key]) simple = true;
  741. } catch (error) { /* empty */ }
  742. if (simple) O[key] = value;
  743. else definePropertyModule$2.f(O, key, {
  744. value: value,
  745. enumerable: false,
  746. configurable: !options.nonConfigurable,
  747. writable: !options.nonWritable
  748. });
  749. } return O;
  750. };
  751. var objectGetOwnPropertyNames = {};
  752. var ceil = Math.ceil;
  753. var floor = Math.floor;
  754. // `Math.trunc` method
  755. // https://tc39.es/ecma262/#sec-math.trunc
  756. // eslint-disable-next-line es/no-math-trunc -- safe
  757. var mathTrunc = Math.trunc || function trunc(x) {
  758. var n = +x;
  759. return (n > 0 ? floor : ceil)(n);
  760. };
  761. var trunc = mathTrunc;
  762. // `ToIntegerOrInfinity` abstract operation
  763. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  764. var toIntegerOrInfinity$2 = function (argument) {
  765. var number = +argument;
  766. // eslint-disable-next-line no-self-compare -- NaN check
  767. return number !== number || number === 0 ? 0 : trunc(number);
  768. };
  769. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  770. var max = Math.max;
  771. var min$1 = Math.min;
  772. // Helper for a popular repeating case of the spec:
  773. // Let integer be ? ToInteger(index).
  774. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  775. var toAbsoluteIndex$1 = function (index, length) {
  776. var integer = toIntegerOrInfinity$1(index);
  777. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  778. };
  779. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  780. var min = Math.min;
  781. // `ToLength` abstract operation
  782. // https://tc39.es/ecma262/#sec-tolength
  783. var toLength$1 = function (argument) {
  784. var len = toIntegerOrInfinity(argument);
  785. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  786. };
  787. var toLength = toLength$1;
  788. // `LengthOfArrayLike` abstract operation
  789. // https://tc39.es/ecma262/#sec-lengthofarraylike
  790. var lengthOfArrayLike$2 = function (obj) {
  791. return toLength(obj.length);
  792. };
  793. var toIndexedObject$3 = toIndexedObject$5;
  794. var toAbsoluteIndex = toAbsoluteIndex$1;
  795. var lengthOfArrayLike$1 = lengthOfArrayLike$2;
  796. // `Array.prototype.{ indexOf, includes }` methods implementation
  797. var createMethod$3 = function (IS_INCLUDES) {
  798. return function ($this, el, fromIndex) {
  799. var O = toIndexedObject$3($this);
  800. var length = lengthOfArrayLike$1(O);
  801. if (length === 0) return !IS_INCLUDES && -1;
  802. var index = toAbsoluteIndex(fromIndex, length);
  803. var value;
  804. // Array#includes uses SameValueZero equality algorithm
  805. // eslint-disable-next-line no-self-compare -- NaN check
  806. if (IS_INCLUDES && el !== el) while (length > index) {
  807. value = O[index++];
  808. // eslint-disable-next-line no-self-compare -- NaN check
  809. if (value !== value) return true;
  810. // Array#indexOf ignores holes, Array#includes - not
  811. } else for (;length > index; index++) {
  812. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  813. } return !IS_INCLUDES && -1;
  814. };
  815. };
  816. var arrayIncludes = {
  817. // `Array.prototype.includes` method
  818. // https://tc39.es/ecma262/#sec-array.prototype.includes
  819. includes: createMethod$3(true),
  820. // `Array.prototype.indexOf` method
  821. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  822. indexOf: createMethod$3(false)
  823. };
  824. var uncurryThis$9 = functionUncurryThis;
  825. var hasOwn$2 = hasOwnProperty_1;
  826. var toIndexedObject$2 = toIndexedObject$5;
  827. var indexOf = arrayIncludes.indexOf;
  828. var hiddenKeys$2 = hiddenKeys$4;
  829. var push$2 = uncurryThis$9([].push);
  830. var objectKeysInternal = function (object, names) {
  831. var O = toIndexedObject$2(object);
  832. var i = 0;
  833. var result = [];
  834. var key;
  835. for (key in O) !hasOwn$2(hiddenKeys$2, key) && hasOwn$2(O, key) && push$2(result, key);
  836. // Don't enum bug & hidden keys
  837. while (names.length > i) if (hasOwn$2(O, key = names[i++])) {
  838. ~indexOf(result, key) || push$2(result, key);
  839. }
  840. return result;
  841. };
  842. // IE8- don't enum bug keys
  843. var enumBugKeys$3 = [
  844. 'constructor',
  845. 'hasOwnProperty',
  846. 'isPrototypeOf',
  847. 'propertyIsEnumerable',
  848. 'toLocaleString',
  849. 'toString',
  850. 'valueOf'
  851. ];
  852. var internalObjectKeys$1 = objectKeysInternal;
  853. var enumBugKeys$2 = enumBugKeys$3;
  854. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  855. // `Object.getOwnPropertyNames` method
  856. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  857. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  858. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  859. return internalObjectKeys$1(O, hiddenKeys$1);
  860. };
  861. var objectGetOwnPropertySymbols = {};
  862. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  863. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  864. var getBuiltIn$2 = getBuiltIn$4;
  865. var uncurryThis$8 = functionUncurryThis;
  866. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  867. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  868. var anObject$2 = anObject$4;
  869. var concat$1 = uncurryThis$8([].concat);
  870. // all object keys, includes non-enumerable and symbols
  871. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  872. var keys = getOwnPropertyNamesModule.f(anObject$2(it));
  873. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  874. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  875. };
  876. var hasOwn$1 = hasOwnProperty_1;
  877. var ownKeys = ownKeys$1;
  878. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  879. var definePropertyModule$1 = objectDefineProperty;
  880. var copyConstructorProperties$1 = function (target, source, exceptions) {
  881. var keys = ownKeys(source);
  882. var defineProperty = definePropertyModule$1.f;
  883. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  884. for (var i = 0; i < keys.length; i++) {
  885. var key = keys[i];
  886. if (!hasOwn$1(target, key) && !(exceptions && hasOwn$1(exceptions, key))) {
  887. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  888. }
  889. }
  890. };
  891. var fails$6 = fails$e;
  892. var isCallable$3 = isCallable$d;
  893. var replacement = /#|\.prototype\./;
  894. var isForced$1 = function (feature, detection) {
  895. var value = data[normalize(feature)];
  896. return value === POLYFILL ? true
  897. : value === NATIVE ? false
  898. : isCallable$3(detection) ? fails$6(detection)
  899. : !!detection;
  900. };
  901. var normalize = isForced$1.normalize = function (string) {
  902. return String(string).replace(replacement, '.').toLowerCase();
  903. };
  904. var data = isForced$1.data = {};
  905. var NATIVE = isForced$1.NATIVE = 'N';
  906. var POLYFILL = isForced$1.POLYFILL = 'P';
  907. var isForced_1 = isForced$1;
  908. var globalThis$2 = globalThis_1;
  909. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  910. var createNonEnumerableProperty = createNonEnumerableProperty$2;
  911. var defineBuiltIn$1 = defineBuiltIn$2;
  912. var defineGlobalProperty = defineGlobalProperty$3;
  913. var copyConstructorProperties = copyConstructorProperties$1;
  914. var isForced = isForced_1;
  915. /*
  916. options.target - name of the target object
  917. options.global - target is the global object
  918. options.stat - export as static methods of target
  919. options.proto - export as prototype methods of target
  920. options.real - real prototype method for the `pure` version
  921. options.forced - export even if the native feature is available
  922. options.bind - bind methods to the target, required for the `pure` version
  923. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  924. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  925. options.sham - add a flag to not completely full polyfills
  926. options.enumerable - export as enumerable property
  927. options.dontCallGetSet - prevent calling a getter on target
  928. options.name - the .name of the function if it does not match the key
  929. */
  930. var _export = function (options, source) {
  931. var TARGET = options.target;
  932. var GLOBAL = options.global;
  933. var STATIC = options.stat;
  934. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  935. if (GLOBAL) {
  936. target = globalThis$2;
  937. } else if (STATIC) {
  938. target = globalThis$2[TARGET] || defineGlobalProperty(TARGET, {});
  939. } else {
  940. target = globalThis$2[TARGET] && globalThis$2[TARGET].prototype;
  941. }
  942. if (target) for (key in source) {
  943. sourceProperty = source[key];
  944. if (options.dontCallGetSet) {
  945. descriptor = getOwnPropertyDescriptor(target, key);
  946. targetProperty = descriptor && descriptor.value;
  947. } else targetProperty = target[key];
  948. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  949. // contained in target
  950. if (!FORCED && targetProperty !== undefined) {
  951. if (typeof sourceProperty == typeof targetProperty) continue;
  952. copyConstructorProperties(sourceProperty, targetProperty);
  953. }
  954. // add a flag to not completely full polyfills
  955. if (options.sham || (targetProperty && targetProperty.sham)) {
  956. createNonEnumerableProperty(sourceProperty, 'sham', true);
  957. }
  958. defineBuiltIn$1(target, key, sourceProperty, options);
  959. }
  960. };
  961. var classofRaw$1 = classofRaw$2;
  962. var uncurryThis$7 = functionUncurryThis;
  963. var functionUncurryThisClause = function (fn) {
  964. // Nashorn bug:
  965. // https://github.com/zloirock/core-js/issues/1128
  966. // https://github.com/zloirock/core-js/issues/1130
  967. if (classofRaw$1(fn) === 'Function') return uncurryThis$7(fn);
  968. };
  969. var uncurryThis$6 = functionUncurryThisClause;
  970. var aCallable = aCallable$2;
  971. var NATIVE_BIND = functionBindNative;
  972. var bind$1 = uncurryThis$6(uncurryThis$6.bind);
  973. // optional / simple context binding
  974. var functionBindContext = function (fn, that) {
  975. aCallable(fn);
  976. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  977. return fn.apply(that, arguments);
  978. };
  979. };
  980. var classof$4 = classofRaw$2;
  981. // `IsArray` abstract operation
  982. // https://tc39.es/ecma262/#sec-isarray
  983. // eslint-disable-next-line es/no-array-isarray -- safe
  984. var isArray$1 = Array.isArray || function isArray(argument) {
  985. return classof$4(argument) === 'Array';
  986. };
  987. var wellKnownSymbol$4 = wellKnownSymbol$6;
  988. var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
  989. var test = {};
  990. test[TO_STRING_TAG$1] = 'z';
  991. var toStringTagSupport = String(test) === '[object z]';
  992. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  993. var isCallable$2 = isCallable$d;
  994. var classofRaw = classofRaw$2;
  995. var wellKnownSymbol$3 = wellKnownSymbol$6;
  996. var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
  997. var $Object$1 = Object;
  998. // ES3 wrong here
  999. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
  1000. // fallback for IE11 Script Access Denied error
  1001. var tryGet = function (it, key) {
  1002. try {
  1003. return it[key];
  1004. } catch (error) { /* empty */ }
  1005. };
  1006. // getting tag from ES6+ `Object.prototype.toString`
  1007. var classof$3 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
  1008. var O, tag, result;
  1009. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1010. // @@toStringTag case
  1011. : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG)) == 'string' ? tag
  1012. // builtinTag case
  1013. : CORRECT_ARGUMENTS ? classofRaw(O)
  1014. // ES3 arguments fallback
  1015. : (result = classofRaw(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
  1016. };
  1017. var uncurryThis$5 = functionUncurryThis;
  1018. var fails$5 = fails$e;
  1019. var isCallable$1 = isCallable$d;
  1020. var classof$2 = classof$3;
  1021. var getBuiltIn$1 = getBuiltIn$4;
  1022. var inspectSource = inspectSource$2;
  1023. var noop = function () { /* empty */ };
  1024. var construct = getBuiltIn$1('Reflect', 'construct');
  1025. var constructorRegExp = /^\s*(?:class|function)\b/;
  1026. var exec$1 = uncurryThis$5(constructorRegExp.exec);
  1027. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1028. var isConstructorModern = function isConstructor(argument) {
  1029. if (!isCallable$1(argument)) return false;
  1030. try {
  1031. construct(noop, [], argument);
  1032. return true;
  1033. } catch (error) {
  1034. return false;
  1035. }
  1036. };
  1037. var isConstructorLegacy = function isConstructor(argument) {
  1038. if (!isCallable$1(argument)) return false;
  1039. switch (classof$2(argument)) {
  1040. case 'AsyncFunction':
  1041. case 'GeneratorFunction':
  1042. case 'AsyncGeneratorFunction': return false;
  1043. }
  1044. try {
  1045. // we can't check .prototype since constructors produced by .bind haven't it
  1046. // `Function#toString` throws on some built-it function in some legacy engines
  1047. // (for example, `DOMQuad` and similar in FF41-)
  1048. return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
  1049. } catch (error) {
  1050. return true;
  1051. }
  1052. };
  1053. isConstructorLegacy.sham = true;
  1054. // `IsConstructor` abstract operation
  1055. // https://tc39.es/ecma262/#sec-isconstructor
  1056. var isConstructor$1 = !construct || fails$5(function () {
  1057. var called;
  1058. return isConstructorModern(isConstructorModern.call)
  1059. || !isConstructorModern(Object)
  1060. || !isConstructorModern(function () { called = true; })
  1061. || called;
  1062. }) ? isConstructorLegacy : isConstructorModern;
  1063. var isArray = isArray$1;
  1064. var isConstructor = isConstructor$1;
  1065. var isObject = isObject$6;
  1066. var wellKnownSymbol$2 = wellKnownSymbol$6;
  1067. var SPECIES$1 = wellKnownSymbol$2('species');
  1068. var $Array = Array;
  1069. // a part of `ArraySpeciesCreate` abstract operation
  1070. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1071. var arraySpeciesConstructor$1 = function (originalArray) {
  1072. var C;
  1073. if (isArray(originalArray)) {
  1074. C = originalArray.constructor;
  1075. // cross-realm fallback
  1076. if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
  1077. else if (isObject(C)) {
  1078. C = C[SPECIES$1];
  1079. if (C === null) C = undefined;
  1080. }
  1081. } return C === undefined ? $Array : C;
  1082. };
  1083. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1084. // `ArraySpeciesCreate` abstract operation
  1085. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1086. var arraySpeciesCreate$1 = function (originalArray, length) {
  1087. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1088. };
  1089. var bind = functionBindContext;
  1090. var uncurryThis$4 = functionUncurryThis;
  1091. var IndexedObject$1 = indexedObject;
  1092. var toObject$2 = toObject$4;
  1093. var lengthOfArrayLike = lengthOfArrayLike$2;
  1094. var arraySpeciesCreate = arraySpeciesCreate$1;
  1095. var push$1 = uncurryThis$4([].push);
  1096. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1097. var createMethod$2 = function (TYPE) {
  1098. var IS_MAP = TYPE === 1;
  1099. var IS_FILTER = TYPE === 2;
  1100. var IS_SOME = TYPE === 3;
  1101. var IS_EVERY = TYPE === 4;
  1102. var IS_FIND_INDEX = TYPE === 6;
  1103. var IS_FILTER_REJECT = TYPE === 7;
  1104. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1105. return function ($this, callbackfn, that, specificCreate) {
  1106. var O = toObject$2($this);
  1107. var self = IndexedObject$1(O);
  1108. var length = lengthOfArrayLike(self);
  1109. var boundFunction = bind(callbackfn, that);
  1110. var index = 0;
  1111. var create = specificCreate || arraySpeciesCreate;
  1112. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1113. var value, result;
  1114. for (;length > index; index++) if (NO_HOLES || index in self) {
  1115. value = self[index];
  1116. result = boundFunction(value, index, O);
  1117. if (TYPE) {
  1118. if (IS_MAP) target[index] = result; // map
  1119. else if (result) switch (TYPE) {
  1120. case 3: return true; // some
  1121. case 5: return value; // find
  1122. case 6: return index; // findIndex
  1123. case 2: push$1(target, value); // filter
  1124. } else switch (TYPE) {
  1125. case 4: return false; // every
  1126. case 7: push$1(target, value); // filterReject
  1127. }
  1128. }
  1129. }
  1130. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1131. };
  1132. };
  1133. var arrayIteration = {
  1134. // `Array.prototype.forEach` method
  1135. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1136. forEach: createMethod$2(0),
  1137. // `Array.prototype.map` method
  1138. // https://tc39.es/ecma262/#sec-array.prototype.map
  1139. map: createMethod$2(1),
  1140. // `Array.prototype.filter` method
  1141. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1142. filter: createMethod$2(2),
  1143. // `Array.prototype.some` method
  1144. // https://tc39.es/ecma262/#sec-array.prototype.some
  1145. some: createMethod$2(3),
  1146. // `Array.prototype.every` method
  1147. // https://tc39.es/ecma262/#sec-array.prototype.every
  1148. every: createMethod$2(4),
  1149. // `Array.prototype.find` method
  1150. // https://tc39.es/ecma262/#sec-array.prototype.find
  1151. find: createMethod$2(5),
  1152. // `Array.prototype.findIndex` method
  1153. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1154. findIndex: createMethod$2(6),
  1155. // `Array.prototype.filterReject` method
  1156. // https://github.com/tc39/proposal-array-filtering
  1157. filterReject: createMethod$2(7)
  1158. };
  1159. var fails$4 = fails$e;
  1160. var wellKnownSymbol$1 = wellKnownSymbol$6;
  1161. var V8_VERSION = environmentV8Version;
  1162. var SPECIES = wellKnownSymbol$1('species');
  1163. var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
  1164. // We can't use this feature detection in V8 since it causes
  1165. // deoptimization and serious performance degradation
  1166. // https://github.com/zloirock/core-js/issues/677
  1167. return V8_VERSION >= 51 || !fails$4(function () {
  1168. var array = [];
  1169. var constructor = array.constructor = {};
  1170. constructor[SPECIES] = function () {
  1171. return { foo: 1 };
  1172. };
  1173. return array[METHOD_NAME](Boolean).foo !== 1;
  1174. });
  1175. };
  1176. var $$4 = _export;
  1177. var $filter = arrayIteration.filter;
  1178. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
  1179. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
  1180. // `Array.prototype.filter` method
  1181. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1182. // with adding support of @@species
  1183. $$4({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  1184. filter: function filter(callbackfn /* , thisArg */) {
  1185. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1186. }
  1187. });
  1188. var objectDefineProperties = {};
  1189. var internalObjectKeys = objectKeysInternal;
  1190. var enumBugKeys$1 = enumBugKeys$3;
  1191. // `Object.keys` method
  1192. // https://tc39.es/ecma262/#sec-object.keys
  1193. // eslint-disable-next-line es/no-object-keys -- safe
  1194. var objectKeys$3 = Object.keys || function keys(O) {
  1195. return internalObjectKeys(O, enumBugKeys$1);
  1196. };
  1197. var DESCRIPTORS$2 = descriptors;
  1198. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1199. var definePropertyModule = objectDefineProperty;
  1200. var anObject$1 = anObject$4;
  1201. var toIndexedObject$1 = toIndexedObject$5;
  1202. var objectKeys$2 = objectKeys$3;
  1203. // `Object.defineProperties` method
  1204. // https://tc39.es/ecma262/#sec-object.defineproperties
  1205. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1206. objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1207. anObject$1(O);
  1208. var props = toIndexedObject$1(Properties);
  1209. var keys = objectKeys$2(Properties);
  1210. var length = keys.length;
  1211. var index = 0;
  1212. var key;
  1213. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1214. return O;
  1215. };
  1216. var getBuiltIn = getBuiltIn$4;
  1217. var html$1 = getBuiltIn('document', 'documentElement');
  1218. /* global ActiveXObject -- old IE, WSH */
  1219. var anObject = anObject$4;
  1220. var definePropertiesModule = objectDefineProperties;
  1221. var enumBugKeys = enumBugKeys$3;
  1222. var hiddenKeys = hiddenKeys$4;
  1223. var html = html$1;
  1224. var documentCreateElement = documentCreateElement$1;
  1225. var sharedKey$1 = sharedKey$3;
  1226. var GT = '>';
  1227. var LT = '<';
  1228. var PROTOTYPE = 'prototype';
  1229. var SCRIPT = 'script';
  1230. var IE_PROTO$1 = sharedKey$1('IE_PROTO');
  1231. var EmptyConstructor = function () { /* empty */ };
  1232. var scriptTag = function (content) {
  1233. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1234. };
  1235. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1236. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1237. activeXDocument.write(scriptTag(''));
  1238. activeXDocument.close();
  1239. var temp = activeXDocument.parentWindow.Object;
  1240. // eslint-disable-next-line no-useless-assignment -- avoid memory leak
  1241. activeXDocument = null;
  1242. return temp;
  1243. };
  1244. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1245. var NullProtoObjectViaIFrame = function () {
  1246. // Thrash, waste and sodomy: IE GC bug
  1247. var iframe = documentCreateElement('iframe');
  1248. var JS = 'java' + SCRIPT + ':';
  1249. var iframeDocument;
  1250. iframe.style.display = 'none';
  1251. html.appendChild(iframe);
  1252. // https://github.com/zloirock/core-js/issues/475
  1253. iframe.src = String(JS);
  1254. iframeDocument = iframe.contentWindow.document;
  1255. iframeDocument.open();
  1256. iframeDocument.write(scriptTag('document.F=Object'));
  1257. iframeDocument.close();
  1258. return iframeDocument.F;
  1259. };
  1260. // Check for document.domain and active x support
  1261. // No need to use active x approach when document.domain is not set
  1262. // see https://github.com/es-shims/es5-shim/issues/150
  1263. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1264. // avoid IE GC bug
  1265. var activeXDocument;
  1266. var NullProtoObject = function () {
  1267. try {
  1268. activeXDocument = new ActiveXObject('htmlfile');
  1269. } catch (error) { /* ignore */ }
  1270. NullProtoObject = typeof document != 'undefined'
  1271. ? document.domain && activeXDocument
  1272. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1273. : NullProtoObjectViaIFrame()
  1274. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1275. var length = enumBugKeys.length;
  1276. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1277. return NullProtoObject();
  1278. };
  1279. hiddenKeys[IE_PROTO$1] = true;
  1280. // `Object.create` method
  1281. // https://tc39.es/ecma262/#sec-object.create
  1282. // eslint-disable-next-line es/no-object-create -- safe
  1283. var objectCreate = Object.create || function create(O, Properties) {
  1284. var result;
  1285. if (O !== null) {
  1286. EmptyConstructor[PROTOTYPE] = anObject(O);
  1287. result = new EmptyConstructor();
  1288. EmptyConstructor[PROTOTYPE] = null;
  1289. // add "__proto__" for Object.getPrototypeOf polyfill
  1290. result[IE_PROTO$1] = O;
  1291. } else result = NullProtoObject();
  1292. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1293. };
  1294. var wellKnownSymbol = wellKnownSymbol$6;
  1295. var create = objectCreate;
  1296. var defineProperty$1 = objectDefineProperty.f;
  1297. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1298. var ArrayPrototype = Array.prototype;
  1299. // Array.prototype[@@unscopables]
  1300. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1301. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1302. defineProperty$1(ArrayPrototype, UNSCOPABLES, {
  1303. configurable: true,
  1304. value: create(null)
  1305. });
  1306. }
  1307. // add a key to Array.prototype[@@unscopables]
  1308. var addToUnscopables$1 = function (key) {
  1309. ArrayPrototype[UNSCOPABLES][key] = true;
  1310. };
  1311. var $$3 = _export;
  1312. var $find = arrayIteration.find;
  1313. var addToUnscopables = addToUnscopables$1;
  1314. var FIND = 'find';
  1315. var SKIPS_HOLES = true;
  1316. // Shouldn't skip holes
  1317. // eslint-disable-next-line es/no-array-prototype-find -- testing
  1318. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1319. // `Array.prototype.find` method
  1320. // https://tc39.es/ecma262/#sec-array.prototype.find
  1321. $$3({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1322. find: function find(callbackfn /* , that = undefined */) {
  1323. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1324. }
  1325. });
  1326. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1327. addToUnscopables(FIND);
  1328. var DESCRIPTORS$1 = descriptors;
  1329. var uncurryThis$3 = functionUncurryThis;
  1330. var call = functionCall;
  1331. var fails$3 = fails$e;
  1332. var objectKeys$1 = objectKeys$3;
  1333. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1334. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1335. var toObject$1 = toObject$4;
  1336. var IndexedObject = indexedObject;
  1337. // eslint-disable-next-line es/no-object-assign -- safe
  1338. var $assign = Object.assign;
  1339. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1340. var defineProperty = Object.defineProperty;
  1341. var concat = uncurryThis$3([].concat);
  1342. // `Object.assign` method
  1343. // https://tc39.es/ecma262/#sec-object.assign
  1344. var objectAssign = !$assign || fails$3(function () {
  1345. // should have correct order of operations (Edge bug)
  1346. if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  1347. enumerable: true,
  1348. get: function () {
  1349. defineProperty(this, 'b', {
  1350. value: 3,
  1351. enumerable: false
  1352. });
  1353. }
  1354. }), { b: 2 })).b !== 1) return true;
  1355. // should work with symbols and should have deterministic property order (V8 bug)
  1356. var A = {};
  1357. var B = {};
  1358. // eslint-disable-next-line es/no-symbol -- safe
  1359. var symbol = Symbol('assign detection');
  1360. var alphabet = 'abcdefghijklmnopqrst';
  1361. A[symbol] = 7;
  1362. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1363. return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
  1364. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1365. var T = toObject$1(target);
  1366. var argumentsLength = arguments.length;
  1367. var index = 1;
  1368. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1369. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1370. while (argumentsLength > index) {
  1371. var S = IndexedObject(arguments[index++]);
  1372. var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
  1373. var length = keys.length;
  1374. var j = 0;
  1375. var key;
  1376. while (length > j) {
  1377. key = keys[j++];
  1378. if (!DESCRIPTORS$1 || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  1379. }
  1380. } return T;
  1381. } : $assign;
  1382. var $$2 = _export;
  1383. var assign = objectAssign;
  1384. // `Object.assign` method
  1385. // https://tc39.es/ecma262/#sec-object.assign
  1386. // eslint-disable-next-line es/no-object-assign -- required for testing
  1387. $$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1388. assign: assign
  1389. });
  1390. var fails$2 = fails$e;
  1391. var correctPrototypeGetter = !fails$2(function () {
  1392. function F() { /* empty */ }
  1393. F.prototype.constructor = null;
  1394. // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
  1395. return Object.getPrototypeOf(new F()) !== F.prototype;
  1396. });
  1397. var hasOwn = hasOwnProperty_1;
  1398. var isCallable = isCallable$d;
  1399. var toObject = toObject$4;
  1400. var sharedKey = sharedKey$3;
  1401. var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
  1402. var IE_PROTO = sharedKey('IE_PROTO');
  1403. var $Object = Object;
  1404. var ObjectPrototype = $Object.prototype;
  1405. // `Object.getPrototypeOf` method
  1406. // https://tc39.es/ecma262/#sec-object.getprototypeof
  1407. // eslint-disable-next-line es/no-object-getprototypeof -- safe
  1408. var objectGetPrototypeOf$1 = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
  1409. var object = toObject(O);
  1410. if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
  1411. var constructor = object.constructor;
  1412. if (isCallable(constructor) && object instanceof constructor) {
  1413. return constructor.prototype;
  1414. } return object instanceof $Object ? ObjectPrototype : null;
  1415. };
  1416. var DESCRIPTORS = descriptors;
  1417. var fails$1 = fails$e;
  1418. var uncurryThis$2 = functionUncurryThis;
  1419. var objectGetPrototypeOf = objectGetPrototypeOf$1;
  1420. var objectKeys = objectKeys$3;
  1421. var toIndexedObject = toIndexedObject$5;
  1422. var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
  1423. var propertyIsEnumerable = uncurryThis$2($propertyIsEnumerable);
  1424. var push = uncurryThis$2([].push);
  1425. // in some IE versions, `propertyIsEnumerable` returns incorrect result on integer keys
  1426. // of `null` prototype objects
  1427. var IE_BUG = DESCRIPTORS && fails$1(function () {
  1428. // eslint-disable-next-line es/no-object-create -- safe
  1429. var O = Object.create(null);
  1430. O[2] = 2;
  1431. return !propertyIsEnumerable(O, 2);
  1432. });
  1433. // `Object.{ entries, values }` methods implementation
  1434. var createMethod$1 = function (TO_ENTRIES) {
  1435. return function (it) {
  1436. var O = toIndexedObject(it);
  1437. var keys = objectKeys(O);
  1438. var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null;
  1439. var length = keys.length;
  1440. var i = 0;
  1441. var result = [];
  1442. var key;
  1443. while (length > i) {
  1444. key = keys[i++];
  1445. if (!DESCRIPTORS || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) {
  1446. push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
  1447. }
  1448. }
  1449. return result;
  1450. };
  1451. };
  1452. var objectToArray = {
  1453. // `Object.entries` method
  1454. // https://tc39.es/ecma262/#sec-object.entries
  1455. entries: createMethod$1(true),
  1456. // `Object.values` method
  1457. // https://tc39.es/ecma262/#sec-object.values
  1458. values: createMethod$1(false)
  1459. };
  1460. var $$1 = _export;
  1461. var $entries = objectToArray.entries;
  1462. // `Object.entries` method
  1463. // https://tc39.es/ecma262/#sec-object.entries
  1464. $$1({ target: 'Object', stat: true }, {
  1465. entries: function entries(O) {
  1466. return $entries(O);
  1467. }
  1468. });
  1469. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1470. var classof$1 = classof$3;
  1471. // `Object.prototype.toString` method implementation
  1472. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1473. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1474. return '[object ' + classof$1(this) + ']';
  1475. };
  1476. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1477. var defineBuiltIn = defineBuiltIn$2;
  1478. var toString$3 = objectToString;
  1479. // `Object.prototype.toString` method
  1480. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1481. if (!TO_STRING_TAG_SUPPORT) {
  1482. defineBuiltIn(Object.prototype, 'toString', toString$3, { unsafe: true });
  1483. }
  1484. var classof = classof$3;
  1485. var $String = String;
  1486. var toString$2 = function (argument) {
  1487. if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1488. return $String(argument);
  1489. };
  1490. // a string of all valid unicode whitespaces
  1491. var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
  1492. '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
  1493. var uncurryThis$1 = functionUncurryThis;
  1494. var requireObjectCoercible = requireObjectCoercible$3;
  1495. var toString$1 = toString$2;
  1496. var whitespaces$1 = whitespaces$2;
  1497. var replace = uncurryThis$1(''.replace);
  1498. var ltrim = RegExp('^[' + whitespaces$1 + ']+');
  1499. var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
  1500. // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
  1501. var createMethod = function (TYPE) {
  1502. return function ($this) {
  1503. var string = toString$1(requireObjectCoercible($this));
  1504. if (TYPE & 1) string = replace(string, ltrim, '');
  1505. if (TYPE & 2) string = replace(string, rtrim, '$1');
  1506. return string;
  1507. };
  1508. };
  1509. var stringTrim = {
  1510. // `String.prototype.{ trimLeft, trimStart }` methods
  1511. // https://tc39.es/ecma262/#sec-string.prototype.trimstart
  1512. start: createMethod(1),
  1513. // `String.prototype.{ trimRight, trimEnd }` methods
  1514. // https://tc39.es/ecma262/#sec-string.prototype.trimend
  1515. end: createMethod(2),
  1516. // `String.prototype.trim` method
  1517. // https://tc39.es/ecma262/#sec-string.prototype.trim
  1518. trim: createMethod(3)
  1519. };
  1520. var globalThis$1 = globalThis_1;
  1521. var fails = fails$e;
  1522. var uncurryThis = functionUncurryThis;
  1523. var toString = toString$2;
  1524. var trim = stringTrim.trim;
  1525. var whitespaces = whitespaces$2;
  1526. var $parseInt$1 = globalThis$1.parseInt;
  1527. var Symbol$1 = globalThis$1.Symbol;
  1528. var ITERATOR = Symbol$1 && Symbol$1.iterator;
  1529. var hex = /^[+-]?0x/i;
  1530. var exec = uncurryThis(hex.exec);
  1531. var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
  1532. // MS Edge 18- broken with boxed symbols
  1533. || (ITERATOR && !fails(function () { $parseInt$1(Object(ITERATOR)); }));
  1534. // `parseInt` method
  1535. // https://tc39.es/ecma262/#sec-parseint-string-radix
  1536. var numberParseInt = FORCED ? function parseInt(string, radix) {
  1537. var S = trim(toString(string));
  1538. return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
  1539. } : $parseInt$1;
  1540. var $ = _export;
  1541. var $parseInt = numberParseInt;
  1542. // `parseInt` method
  1543. // https://tc39.es/ecma262/#sec-parseint-string-radix
  1544. $({ global: true, forced: parseInt !== $parseInt }, {
  1545. parseInt: $parseInt
  1546. });
  1547. /**
  1548. * @author: Dennis Hernández
  1549. * @update: https://github.com/wenzhixin
  1550. * @version: v1.2.0
  1551. */
  1552. $$5.akottr.dragtable.prototype._restoreState = function (persistObj) {
  1553. var i = 0;
  1554. for (var _i = 0, _Object$entries = Object.entries(persistObj); _i < _Object$entries.length; _i++) {
  1555. var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
  1556. field = _Object$entries$_i[0],
  1557. value = _Object$entries$_i[1];
  1558. var $th = this.originalTable.el.find("th[data-field=\"".concat(field, "\"]"));
  1559. if (!$th.length) {
  1560. i++;
  1561. continue;
  1562. }
  1563. this.originalTable.startIndex = $th.prevAll().length + 1;
  1564. this.originalTable.endIndex = parseInt(value, 10) + 1 - i;
  1565. this._bubbleCols();
  1566. }
  1567. };
  1568. // From MDN site, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
  1569. var filterFn = function filterFn() {
  1570. if (!Array.prototype.filter) {
  1571. Array.prototype.filter = function (fun /* , thisArg*/) {
  1572. if (this === undefined || this === null) {
  1573. throw new TypeError();
  1574. }
  1575. var t = Object(this);
  1576. var len = t.length >>> 0;
  1577. if (typeof fun !== 'function') {
  1578. throw new TypeError();
  1579. }
  1580. var res = [];
  1581. var thisArg = arguments.length >= 2 ? arguments[1] : undefined;
  1582. for (var i = 0; i < len; i++) {
  1583. if (i in t) {
  1584. var val = t[i];
  1585. // NOTE: Technically this should Object.defineProperty at
  1586. // the next index, as push can be affected by
  1587. // properties on Object.prototype and Array.prototype.
  1588. // But this method's new, and collisions should be
  1589. // rare, so use the more-compatible alternative.
  1590. if (fun.call(thisArg, val, i, t)) {
  1591. res.push(val);
  1592. }
  1593. }
  1594. }
  1595. return res;
  1596. };
  1597. }
  1598. };
  1599. Object.assign($$5.fn.bootstrapTable.defaults, {
  1600. reorderableColumns: false,
  1601. maxMovingRows: 10,
  1602. // eslint-disable-next-line no-unused-vars
  1603. onReorderColumn: function onReorderColumn(headerFields) {
  1604. return false;
  1605. },
  1606. dragaccept: null
  1607. });
  1608. Object.assign($$5.fn.bootstrapTable.events, {
  1609. 'reorder-column.bs.table': 'onReorderColumn'
  1610. });
  1611. $$5.fn.bootstrapTable.methods.push('orderColumns');
  1612. $$5.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1613. function _class() {
  1614. _classCallCheck(this, _class);
  1615. return _callSuper(this, _class, arguments);
  1616. }
  1617. _inherits(_class, _$$BootstrapTable);
  1618. return _createClass(_class, [{
  1619. key: "initHeader",
  1620. value: function initHeader() {
  1621. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1622. args[_key] = arguments[_key];
  1623. }
  1624. _superPropGet(_class, "initHeader", this)(args);
  1625. if (!this.options.reorderableColumns) {
  1626. return;
  1627. }
  1628. this.makeColumnsReorderable();
  1629. }
  1630. }, {
  1631. key: "_toggleColumn",
  1632. value: function _toggleColumn() {
  1633. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1634. args[_key2] = arguments[_key2];
  1635. }
  1636. _superPropGet(_class, "_toggleColumn", this)(args);
  1637. if (!this.options.reorderableColumns) {
  1638. return;
  1639. }
  1640. this.makeColumnsReorderable();
  1641. }
  1642. }, {
  1643. key: "toggleView",
  1644. value: function toggleView() {
  1645. for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  1646. args[_key3] = arguments[_key3];
  1647. }
  1648. _superPropGet(_class, "toggleView", this)(args);
  1649. if (!this.options.reorderableColumns) {
  1650. return;
  1651. }
  1652. if (this.options.cardView) {
  1653. return;
  1654. }
  1655. this.makeColumnsReorderable();
  1656. }
  1657. }, {
  1658. key: "resetView",
  1659. value: function resetView() {
  1660. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1661. args[_key4] = arguments[_key4];
  1662. }
  1663. _superPropGet(_class, "resetView", this)(args);
  1664. if (!this.options.reorderableColumns) {
  1665. return;
  1666. }
  1667. this.makeColumnsReorderable();
  1668. }
  1669. }, {
  1670. key: "makeColumnsReorderable",
  1671. value: function makeColumnsReorderable() {
  1672. var _this = this;
  1673. var order = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  1674. try {
  1675. $$5(this.$el).dragtable('destroy');
  1676. } catch (e) {
  1677. // do nothing
  1678. }
  1679. $$5(this.$el).dragtable({
  1680. maxMovingRows: this.options.maxMovingRows,
  1681. dragaccept: this.options.dragaccept,
  1682. clickDelay: 200,
  1683. dragHandle: '.th-inner',
  1684. restoreState: order ? order : this.columnsSortOrder,
  1685. beforeStop: function beforeStop(table) {
  1686. var sortOrder = {};
  1687. table.el.find('th').each(function (i, el) {
  1688. if (el.dataset.field !== undefined) {
  1689. sortOrder[el.dataset.field] = i;
  1690. }
  1691. });
  1692. _this.columnsSortOrder = sortOrder;
  1693. if (_this.options.cookie) {
  1694. _this.persistReorderColumnsState(_this);
  1695. }
  1696. var ths = [];
  1697. var formatters = [];
  1698. var columns = [];
  1699. var columnsHidden = [];
  1700. var columnIndex = -1;
  1701. var optionsColumns = [];
  1702. _this.$header.find('th:not(.detail)').each(function (i, el) {
  1703. ths.push($$5(el).data('field'));
  1704. formatters.push($$5(el).data('formatter'));
  1705. });
  1706. // Exist columns not shown
  1707. if (ths.length < _this.columns.length) {
  1708. columnsHidden = _this.columns.filter(function (column) {
  1709. return !column.visible;
  1710. });
  1711. for (var i = 0; i < columnsHidden.length; i++) {
  1712. ths.push(columnsHidden[i].field);
  1713. formatters.push(columnsHidden[i].formatter);
  1714. }
  1715. }
  1716. for (var _i2 = 0; _i2 < ths.length; _i2++) {
  1717. columnIndex = _this.fieldsColumnsIndex[ths[_i2]];
  1718. if (columnIndex !== -1) {
  1719. _this.fieldsColumnsIndex[ths[_i2]] = _i2;
  1720. _this.columns[columnIndex].fieldIndex = _i2;
  1721. columns.push(_this.columns[columnIndex]);
  1722. }
  1723. }
  1724. _this.columns = columns;
  1725. filterFn(); // Support <IE9
  1726. $$5.each(_this.columns, function (i, column) {
  1727. var found = false;
  1728. var field = column.field;
  1729. _this.options.columns[0].filter(function (item) {
  1730. if (!found && item['field'] === field) {
  1731. optionsColumns.push(item);
  1732. found = true;
  1733. return false;
  1734. }
  1735. return true;
  1736. });
  1737. });
  1738. _this.options.columns[0] = optionsColumns;
  1739. _this.header.fields = ths;
  1740. _this.header.formatters = formatters;
  1741. _this.initHeader();
  1742. _this.initToolbar();
  1743. _this.initSearchText();
  1744. _this.initBody();
  1745. _this.resetView();
  1746. _this.trigger('reorder-column', ths);
  1747. }
  1748. });
  1749. }
  1750. }, {
  1751. key: "orderColumns",
  1752. value: function orderColumns(order) {
  1753. this.columnsSortOrder = order;
  1754. this.makeColumnsReorderable();
  1755. }
  1756. }]);
  1757. }($$5.BootstrapTable);
  1758. }));