bootstrap-table-toolbar.js 97 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692
  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 ($$b) { '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 _arrayWithoutHoles(r) {
  15. if (Array.isArray(r)) return _arrayLikeToArray(r);
  16. }
  17. function _assertThisInitialized(e) {
  18. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  19. return e;
  20. }
  21. function _callSuper(t, o, e) {
  22. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  23. }
  24. function _classCallCheck(a, n) {
  25. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  26. }
  27. function _defineProperties(e, r) {
  28. for (var t = 0; t < r.length; t++) {
  29. var o = r[t];
  30. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  31. }
  32. }
  33. function _createClass(e, r, t) {
  34. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  35. writable: !1
  36. }), e;
  37. }
  38. function _createForOfIteratorHelper(r, e) {
  39. var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  40. if (!t) {
  41. if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
  42. t && (r = t);
  43. var n = 0,
  44. F = function () {};
  45. return {
  46. s: F,
  47. n: function () {
  48. return n >= r.length ? {
  49. done: !0
  50. } : {
  51. done: !1,
  52. value: r[n++]
  53. };
  54. },
  55. e: function (r) {
  56. throw r;
  57. },
  58. f: F
  59. };
  60. }
  61. throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  62. }
  63. var o,
  64. a = !0,
  65. u = !1;
  66. return {
  67. s: function () {
  68. t = t.call(r);
  69. },
  70. n: function () {
  71. var r = t.next();
  72. return a = r.done, r;
  73. },
  74. e: function (r) {
  75. u = !0, o = r;
  76. },
  77. f: function () {
  78. try {
  79. a || null == t.return || t.return();
  80. } finally {
  81. if (u) throw o;
  82. }
  83. }
  84. };
  85. }
  86. function _get() {
  87. return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
  88. var p = _superPropBase(e, t);
  89. if (p) {
  90. var n = Object.getOwnPropertyDescriptor(p, t);
  91. return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
  92. }
  93. }, _get.apply(null, arguments);
  94. }
  95. function _getPrototypeOf(t) {
  96. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
  97. return t.__proto__ || Object.getPrototypeOf(t);
  98. }, _getPrototypeOf(t);
  99. }
  100. function _inherits(t, e) {
  101. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  102. t.prototype = Object.create(e && e.prototype, {
  103. constructor: {
  104. value: t,
  105. writable: !0,
  106. configurable: !0
  107. }
  108. }), Object.defineProperty(t, "prototype", {
  109. writable: !1
  110. }), e && _setPrototypeOf(t, e);
  111. }
  112. function _isNativeReflectConstruct() {
  113. try {
  114. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  115. } catch (t) {}
  116. return (_isNativeReflectConstruct = function () {
  117. return !!t;
  118. })();
  119. }
  120. function _iterableToArray(r) {
  121. if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
  122. }
  123. function _iterableToArrayLimit(r, l) {
  124. var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
  125. if (null != t) {
  126. var e,
  127. n,
  128. i,
  129. u,
  130. a = [],
  131. f = !0,
  132. o = !1;
  133. try {
  134. 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);
  135. } catch (r) {
  136. o = !0, n = r;
  137. } finally {
  138. try {
  139. if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
  140. } finally {
  141. if (o) throw n;
  142. }
  143. }
  144. return a;
  145. }
  146. }
  147. function _nonIterableRest() {
  148. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  149. }
  150. function _nonIterableSpread() {
  151. throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  152. }
  153. function _possibleConstructorReturn(t, e) {
  154. if (e && ("object" == typeof e || "function" == typeof e)) return e;
  155. if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
  156. return _assertThisInitialized(t);
  157. }
  158. function _setPrototypeOf(t, e) {
  159. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
  160. return t.__proto__ = e, t;
  161. }, _setPrototypeOf(t, e);
  162. }
  163. function _slicedToArray(r, e) {
  164. return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
  165. }
  166. function _superPropBase(t, o) {
  167. for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
  168. return t;
  169. }
  170. function _toConsumableArray(r) {
  171. return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
  172. }
  173. function _toPrimitive(t, r) {
  174. if ("object" != typeof t || !t) return t;
  175. var e = t[Symbol.toPrimitive];
  176. if (void 0 !== e) {
  177. var i = e.call(t, r);
  178. if ("object" != typeof i) return i;
  179. throw new TypeError("@@toPrimitive must return a primitive value.");
  180. }
  181. return (String )(t);
  182. }
  183. function _toPropertyKey(t) {
  184. var i = _toPrimitive(t, "string");
  185. return "symbol" == typeof i ? i : i + "";
  186. }
  187. function _unsupportedIterableToArray(r, a) {
  188. if (r) {
  189. if ("string" == typeof r) return _arrayLikeToArray(r, a);
  190. var t = {}.toString.call(r).slice(8, -1);
  191. 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;
  192. }
  193. }
  194. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  195. var check = function (it) {
  196. return it && it.Math === Math && it;
  197. };
  198. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  199. var global$d =
  200. // eslint-disable-next-line es/no-global-this -- safe
  201. check(typeof globalThis == 'object' && globalThis) ||
  202. check(typeof window == 'object' && window) ||
  203. // eslint-disable-next-line no-restricted-globals -- safe
  204. check(typeof self == 'object' && self) ||
  205. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  206. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  207. // eslint-disable-next-line no-new-func -- fallback
  208. (function () { return this; })() || Function('return this')();
  209. var objectGetOwnPropertyDescriptor = {};
  210. var fails$l = function (exec) {
  211. try {
  212. return !!exec();
  213. } catch (error) {
  214. return true;
  215. }
  216. };
  217. var fails$k = fails$l;
  218. // Detect IE8's incomplete defineProperty implementation
  219. var descriptors = !fails$k(function () {
  220. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  221. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  222. });
  223. var fails$j = fails$l;
  224. var functionBindNative = !fails$j(function () {
  225. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  226. var test = (function () { /* empty */ }).bind();
  227. // eslint-disable-next-line no-prototype-builtins -- safe
  228. return typeof test != 'function' || test.hasOwnProperty('prototype');
  229. });
  230. var NATIVE_BIND$2 = functionBindNative;
  231. var call$9 = Function.prototype.call;
  232. var functionCall = NATIVE_BIND$2 ? call$9.bind(call$9) : function () {
  233. return call$9.apply(call$9, arguments);
  234. };
  235. var objectPropertyIsEnumerable = {};
  236. var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
  237. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  238. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  239. // Nashorn ~ JDK8 bug
  240. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
  241. // `Object.prototype.propertyIsEnumerable` method implementation
  242. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  243. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  244. var descriptor = getOwnPropertyDescriptor$1(this, V);
  245. return !!descriptor && descriptor.enumerable;
  246. } : $propertyIsEnumerable$1;
  247. var createPropertyDescriptor$3 = function (bitmap, value) {
  248. return {
  249. enumerable: !(bitmap & 1),
  250. configurable: !(bitmap & 2),
  251. writable: !(bitmap & 4),
  252. value: value
  253. };
  254. };
  255. var NATIVE_BIND$1 = functionBindNative;
  256. var FunctionPrototype$1 = Function.prototype;
  257. var call$8 = FunctionPrototype$1.call;
  258. var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$8, call$8);
  259. var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
  260. return function () {
  261. return call$8.apply(fn, arguments);
  262. };
  263. };
  264. var uncurryThis$j = functionUncurryThis;
  265. var toString$7 = uncurryThis$j({}.toString);
  266. var stringSlice$2 = uncurryThis$j(''.slice);
  267. var classofRaw$2 = function (it) {
  268. return stringSlice$2(toString$7(it), 8, -1);
  269. };
  270. var uncurryThis$i = functionUncurryThis;
  271. var fails$i = fails$l;
  272. var classof$7 = classofRaw$2;
  273. var $Object$4 = Object;
  274. var split = uncurryThis$i(''.split);
  275. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  276. var indexedObject = fails$i(function () {
  277. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  278. // eslint-disable-next-line no-prototype-builtins -- safe
  279. return !$Object$4('z').propertyIsEnumerable(0);
  280. }) ? function (it) {
  281. return classof$7(it) === 'String' ? split(it, '') : $Object$4(it);
  282. } : $Object$4;
  283. // we can't use just `it == null` since of `document.all` special case
  284. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  285. var isNullOrUndefined$3 = function (it) {
  286. return it === null || it === undefined;
  287. };
  288. var isNullOrUndefined$2 = isNullOrUndefined$3;
  289. var $TypeError$8 = TypeError;
  290. // `RequireObjectCoercible` abstract operation
  291. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  292. var requireObjectCoercible$5 = function (it) {
  293. if (isNullOrUndefined$2(it)) throw new $TypeError$8("Can't call method on " + it);
  294. return it;
  295. };
  296. // toObject with fallback for non-array-like ES3 strings
  297. var IndexedObject$3 = indexedObject;
  298. var requireObjectCoercible$4 = requireObjectCoercible$5;
  299. var toIndexedObject$6 = function (it) {
  300. return IndexedObject$3(requireObjectCoercible$4(it));
  301. };
  302. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  303. var documentAll = typeof document == 'object' && document.all;
  304. // `IsCallable` abstract operation
  305. // https://tc39.es/ecma262/#sec-iscallable
  306. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  307. var isCallable$e = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  308. return typeof argument == 'function' || argument === documentAll;
  309. } : function (argument) {
  310. return typeof argument == 'function';
  311. };
  312. var isCallable$d = isCallable$e;
  313. var isObject$8 = function (it) {
  314. return typeof it == 'object' ? it !== null : isCallable$d(it);
  315. };
  316. var global$c = global$d;
  317. var isCallable$c = isCallable$e;
  318. var aFunction = function (argument) {
  319. return isCallable$c(argument) ? argument : undefined;
  320. };
  321. var getBuiltIn$4 = function (namespace, method) {
  322. return arguments.length < 2 ? aFunction(global$c[namespace]) : global$c[namespace] && global$c[namespace][method];
  323. };
  324. var uncurryThis$h = functionUncurryThis;
  325. var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
  326. var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
  327. var global$b = global$d;
  328. var userAgent = engineUserAgent;
  329. var process = global$b.process;
  330. var Deno = global$b.Deno;
  331. var versions = process && process.versions || Deno && Deno.version;
  332. var v8 = versions && versions.v8;
  333. var match, version;
  334. if (v8) {
  335. match = v8.split('.');
  336. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  337. // but their correct versions are not interesting for us
  338. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  339. }
  340. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  341. // so check `userAgent` even if `.v8` exists, but 0
  342. if (!version && userAgent) {
  343. match = userAgent.match(/Edge\/(\d+)/);
  344. if (!match || match[1] >= 74) {
  345. match = userAgent.match(/Chrome\/(\d+)/);
  346. if (match) version = +match[1];
  347. }
  348. }
  349. var engineV8Version = version;
  350. /* eslint-disable es/no-symbol -- required for testing */
  351. var V8_VERSION$2 = engineV8Version;
  352. var fails$h = fails$l;
  353. var global$a = global$d;
  354. var $String$4 = global$a.String;
  355. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  356. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$h(function () {
  357. var symbol = Symbol('symbol detection');
  358. // Chrome 38 Symbol has incorrect toString conversion
  359. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  360. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  361. // of course, fail.
  362. return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
  363. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  364. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  365. });
  366. /* eslint-disable es/no-symbol -- required for testing */
  367. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  368. var useSymbolAsUid = NATIVE_SYMBOL$1
  369. && !Symbol.sham
  370. && typeof Symbol.iterator == 'symbol';
  371. var getBuiltIn$3 = getBuiltIn$4;
  372. var isCallable$b = isCallable$e;
  373. var isPrototypeOf = objectIsPrototypeOf;
  374. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  375. var $Object$3 = Object;
  376. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  377. return typeof it == 'symbol';
  378. } : function (it) {
  379. var $Symbol = getBuiltIn$3('Symbol');
  380. return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$3(it));
  381. };
  382. var $String$3 = String;
  383. var tryToString$1 = function (argument) {
  384. try {
  385. return $String$3(argument);
  386. } catch (error) {
  387. return 'Object';
  388. }
  389. };
  390. var isCallable$a = isCallable$e;
  391. var tryToString = tryToString$1;
  392. var $TypeError$7 = TypeError;
  393. // `Assert: IsCallable(argument) is true`
  394. var aCallable$2 = function (argument) {
  395. if (isCallable$a(argument)) return argument;
  396. throw new $TypeError$7(tryToString(argument) + ' is not a function');
  397. };
  398. var aCallable$1 = aCallable$2;
  399. var isNullOrUndefined$1 = isNullOrUndefined$3;
  400. // `GetMethod` abstract operation
  401. // https://tc39.es/ecma262/#sec-getmethod
  402. var getMethod$2 = function (V, P) {
  403. var func = V[P];
  404. return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
  405. };
  406. var call$7 = functionCall;
  407. var isCallable$9 = isCallable$e;
  408. var isObject$7 = isObject$8;
  409. var $TypeError$6 = TypeError;
  410. // `OrdinaryToPrimitive` abstract operation
  411. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  412. var ordinaryToPrimitive$1 = function (input, pref) {
  413. var fn, val;
  414. if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$7(fn, input))) return val;
  415. if (isCallable$9(fn = input.valueOf) && !isObject$7(val = call$7(fn, input))) return val;
  416. if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$7(fn, input))) return val;
  417. throw new $TypeError$6("Can't convert object to primitive value");
  418. };
  419. var sharedStore = {exports: {}};
  420. var global$9 = global$d;
  421. // eslint-disable-next-line es/no-object-defineproperty -- safe
  422. var defineProperty$3 = Object.defineProperty;
  423. var defineGlobalProperty$3 = function (key, value) {
  424. try {
  425. defineProperty$3(global$9, key, { value: value, configurable: true, writable: true });
  426. } catch (error) {
  427. global$9[key] = value;
  428. } return value;
  429. };
  430. var globalThis$1 = global$d;
  431. var defineGlobalProperty$2 = defineGlobalProperty$3;
  432. var SHARED = '__core-js_shared__';
  433. var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
  434. (store$3.versions || (store$3.versions = [])).push({
  435. version: '3.37.1',
  436. mode: 'global',
  437. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  438. license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
  439. source: 'https://github.com/zloirock/core-js'
  440. });
  441. var sharedStoreExports = sharedStore.exports;
  442. var store$2 = sharedStoreExports;
  443. var shared$4 = function (key, value) {
  444. return store$2[key] || (store$2[key] = value || {});
  445. };
  446. var requireObjectCoercible$3 = requireObjectCoercible$5;
  447. var $Object$2 = Object;
  448. // `ToObject` abstract operation
  449. // https://tc39.es/ecma262/#sec-toobject
  450. var toObject$5 = function (argument) {
  451. return $Object$2(requireObjectCoercible$3(argument));
  452. };
  453. var uncurryThis$g = functionUncurryThis;
  454. var toObject$4 = toObject$5;
  455. var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
  456. // `HasOwnProperty` abstract operation
  457. // https://tc39.es/ecma262/#sec-hasownproperty
  458. // eslint-disable-next-line es/no-object-hasown -- safe
  459. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  460. return hasOwnProperty(toObject$4(it), key);
  461. };
  462. var uncurryThis$f = functionUncurryThis;
  463. var id = 0;
  464. var postfix = Math.random();
  465. var toString$6 = uncurryThis$f(1.0.toString);
  466. var uid$2 = function (key) {
  467. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
  468. };
  469. var global$8 = global$d;
  470. var shared$3 = shared$4;
  471. var hasOwn$7 = hasOwnProperty_1;
  472. var uid$1 = uid$2;
  473. var NATIVE_SYMBOL = symbolConstructorDetection;
  474. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  475. var Symbol$1 = global$8.Symbol;
  476. var WellKnownSymbolsStore = shared$3('wks');
  477. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  478. var wellKnownSymbol$a = function (name) {
  479. if (!hasOwn$7(WellKnownSymbolsStore, name)) {
  480. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$7(Symbol$1, name)
  481. ? Symbol$1[name]
  482. : createWellKnownSymbol('Symbol.' + name);
  483. } return WellKnownSymbolsStore[name];
  484. };
  485. var call$6 = functionCall;
  486. var isObject$6 = isObject$8;
  487. var isSymbol$1 = isSymbol$2;
  488. var getMethod$1 = getMethod$2;
  489. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  490. var wellKnownSymbol$9 = wellKnownSymbol$a;
  491. var $TypeError$5 = TypeError;
  492. var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
  493. // `ToPrimitive` abstract operation
  494. // https://tc39.es/ecma262/#sec-toprimitive
  495. var toPrimitive$1 = function (input, pref) {
  496. if (!isObject$6(input) || isSymbol$1(input)) return input;
  497. var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
  498. var result;
  499. if (exoticToPrim) {
  500. if (pref === undefined) pref = 'default';
  501. result = call$6(exoticToPrim, input, pref);
  502. if (!isObject$6(result) || isSymbol$1(result)) return result;
  503. throw new $TypeError$5("Can't convert object to primitive value");
  504. }
  505. if (pref === undefined) pref = 'number';
  506. return ordinaryToPrimitive(input, pref);
  507. };
  508. var toPrimitive = toPrimitive$1;
  509. var isSymbol = isSymbol$2;
  510. // `ToPropertyKey` abstract operation
  511. // https://tc39.es/ecma262/#sec-topropertykey
  512. var toPropertyKey$2 = function (argument) {
  513. var key = toPrimitive(argument, 'string');
  514. return isSymbol(key) ? key : key + '';
  515. };
  516. var global$7 = global$d;
  517. var isObject$5 = isObject$8;
  518. var document$1 = global$7.document;
  519. // typeof document.createElement is 'object' in old IE
  520. var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
  521. var documentCreateElement$1 = function (it) {
  522. return EXISTS$1 ? document$1.createElement(it) : {};
  523. };
  524. var DESCRIPTORS$a = descriptors;
  525. var fails$g = fails$l;
  526. var createElement = documentCreateElement$1;
  527. // Thanks to IE8 for its funny defineProperty
  528. var ie8DomDefine = !DESCRIPTORS$a && !fails$g(function () {
  529. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  530. return Object.defineProperty(createElement('div'), 'a', {
  531. get: function () { return 7; }
  532. }).a !== 7;
  533. });
  534. var DESCRIPTORS$9 = descriptors;
  535. var call$5 = functionCall;
  536. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  537. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  538. var toIndexedObject$5 = toIndexedObject$6;
  539. var toPropertyKey$1 = toPropertyKey$2;
  540. var hasOwn$6 = hasOwnProperty_1;
  541. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  542. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  543. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  544. // `Object.getOwnPropertyDescriptor` method
  545. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  546. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  547. O = toIndexedObject$5(O);
  548. P = toPropertyKey$1(P);
  549. if (IE8_DOM_DEFINE$1) try {
  550. return $getOwnPropertyDescriptor$1(O, P);
  551. } catch (error) { /* empty */ }
  552. if (hasOwn$6(O, P)) return createPropertyDescriptor$2(!call$5(propertyIsEnumerableModule$1.f, O, P), O[P]);
  553. };
  554. var objectDefineProperty = {};
  555. var DESCRIPTORS$8 = descriptors;
  556. var fails$f = fails$l;
  557. // V8 ~ Chrome 36-
  558. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  559. var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$f(function () {
  560. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  561. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  562. value: 42,
  563. writable: false
  564. }).prototype !== 42;
  565. });
  566. var isObject$4 = isObject$8;
  567. var $String$2 = String;
  568. var $TypeError$4 = TypeError;
  569. // `Assert: Type(argument) is Object`
  570. var anObject$7 = function (argument) {
  571. if (isObject$4(argument)) return argument;
  572. throw new $TypeError$4($String$2(argument) + ' is not an object');
  573. };
  574. var DESCRIPTORS$7 = descriptors;
  575. var IE8_DOM_DEFINE = ie8DomDefine;
  576. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  577. var anObject$6 = anObject$7;
  578. var toPropertyKey = toPropertyKey$2;
  579. var $TypeError$3 = TypeError;
  580. // eslint-disable-next-line es/no-object-defineproperty -- safe
  581. var $defineProperty = Object.defineProperty;
  582. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  583. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  584. var ENUMERABLE = 'enumerable';
  585. var CONFIGURABLE$1 = 'configurable';
  586. var WRITABLE = 'writable';
  587. // `Object.defineProperty` method
  588. // https://tc39.es/ecma262/#sec-object.defineproperty
  589. objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  590. anObject$6(O);
  591. P = toPropertyKey(P);
  592. anObject$6(Attributes);
  593. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  594. var current = $getOwnPropertyDescriptor(O, P);
  595. if (current && current[WRITABLE]) {
  596. O[P] = Attributes.value;
  597. Attributes = {
  598. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  599. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  600. writable: false
  601. };
  602. }
  603. } return $defineProperty(O, P, Attributes);
  604. } : $defineProperty : function defineProperty(O, P, Attributes) {
  605. anObject$6(O);
  606. P = toPropertyKey(P);
  607. anObject$6(Attributes);
  608. if (IE8_DOM_DEFINE) try {
  609. return $defineProperty(O, P, Attributes);
  610. } catch (error) { /* empty */ }
  611. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$3('Accessors not supported');
  612. if ('value' in Attributes) O[P] = Attributes.value;
  613. return O;
  614. };
  615. var DESCRIPTORS$6 = descriptors;
  616. var definePropertyModule$4 = objectDefineProperty;
  617. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  618. var createNonEnumerableProperty$3 = DESCRIPTORS$6 ? function (object, key, value) {
  619. return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
  620. } : function (object, key, value) {
  621. object[key] = value;
  622. return object;
  623. };
  624. var makeBuiltIn$2 = {exports: {}};
  625. var DESCRIPTORS$5 = descriptors;
  626. var hasOwn$5 = hasOwnProperty_1;
  627. var FunctionPrototype = Function.prototype;
  628. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  629. var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
  630. var EXISTS = hasOwn$5(FunctionPrototype, 'name');
  631. // additional protection from minified / mangled / dropped function names
  632. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  633. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype, 'name').configurable));
  634. var functionName = {
  635. EXISTS: EXISTS,
  636. PROPER: PROPER,
  637. CONFIGURABLE: CONFIGURABLE
  638. };
  639. var uncurryThis$e = functionUncurryThis;
  640. var isCallable$8 = isCallable$e;
  641. var store$1 = sharedStoreExports;
  642. var functionToString = uncurryThis$e(Function.toString);
  643. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  644. if (!isCallable$8(store$1.inspectSource)) {
  645. store$1.inspectSource = function (it) {
  646. return functionToString(it);
  647. };
  648. }
  649. var inspectSource$2 = store$1.inspectSource;
  650. var global$6 = global$d;
  651. var isCallable$7 = isCallable$e;
  652. var WeakMap$1 = global$6.WeakMap;
  653. var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
  654. var shared$2 = shared$4;
  655. var uid = uid$2;
  656. var keys = shared$2('keys');
  657. var sharedKey$3 = function (key) {
  658. return keys[key] || (keys[key] = uid(key));
  659. };
  660. var hiddenKeys$4 = {};
  661. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  662. var global$5 = global$d;
  663. var isObject$3 = isObject$8;
  664. var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
  665. var hasOwn$4 = hasOwnProperty_1;
  666. var shared$1 = sharedStoreExports;
  667. var sharedKey$2 = sharedKey$3;
  668. var hiddenKeys$3 = hiddenKeys$4;
  669. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  670. var TypeError$1 = global$5.TypeError;
  671. var WeakMap = global$5.WeakMap;
  672. var set, get, has;
  673. var enforce = function (it) {
  674. return has(it) ? get(it) : set(it, {});
  675. };
  676. var getterFor = function (TYPE) {
  677. return function (it) {
  678. var state;
  679. if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
  680. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  681. } return state;
  682. };
  683. };
  684. if (NATIVE_WEAK_MAP || shared$1.state) {
  685. var store = shared$1.state || (shared$1.state = new WeakMap());
  686. /* eslint-disable no-self-assign -- prototype methods protection */
  687. store.get = store.get;
  688. store.has = store.has;
  689. store.set = store.set;
  690. /* eslint-enable no-self-assign -- prototype methods protection */
  691. set = function (it, metadata) {
  692. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  693. metadata.facade = it;
  694. store.set(it, metadata);
  695. return metadata;
  696. };
  697. get = function (it) {
  698. return store.get(it) || {};
  699. };
  700. has = function (it) {
  701. return store.has(it);
  702. };
  703. } else {
  704. var STATE = sharedKey$2('state');
  705. hiddenKeys$3[STATE] = true;
  706. set = function (it, metadata) {
  707. if (hasOwn$4(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  708. metadata.facade = it;
  709. createNonEnumerableProperty$2(it, STATE, metadata);
  710. return metadata;
  711. };
  712. get = function (it) {
  713. return hasOwn$4(it, STATE) ? it[STATE] : {};
  714. };
  715. has = function (it) {
  716. return hasOwn$4(it, STATE);
  717. };
  718. }
  719. var internalState = {
  720. set: set,
  721. get: get,
  722. has: has,
  723. enforce: enforce,
  724. getterFor: getterFor
  725. };
  726. var uncurryThis$d = functionUncurryThis;
  727. var fails$e = fails$l;
  728. var isCallable$6 = isCallable$e;
  729. var hasOwn$3 = hasOwnProperty_1;
  730. var DESCRIPTORS$4 = descriptors;
  731. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  732. var inspectSource$1 = inspectSource$2;
  733. var InternalStateModule = internalState;
  734. var enforceInternalState = InternalStateModule.enforce;
  735. var getInternalState$1 = InternalStateModule.get;
  736. var $String$1 = String;
  737. // eslint-disable-next-line es/no-object-defineproperty -- safe
  738. var defineProperty$2 = Object.defineProperty;
  739. var stringSlice$1 = uncurryThis$d(''.slice);
  740. var replace$2 = uncurryThis$d(''.replace);
  741. var join = uncurryThis$d([].join);
  742. var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$e(function () {
  743. return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  744. });
  745. var TEMPLATE = String(String).split('String');
  746. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  747. if (stringSlice$1($String$1(name), 0, 7) === 'Symbol(') {
  748. name = '[' + replace$2($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  749. }
  750. if (options && options.getter) name = 'get ' + name;
  751. if (options && options.setter) name = 'set ' + name;
  752. if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  753. if (DESCRIPTORS$4) defineProperty$2(value, 'name', { value: name, configurable: true });
  754. else value.name = name;
  755. }
  756. if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
  757. defineProperty$2(value, 'length', { value: options.arity });
  758. }
  759. try {
  760. if (options && hasOwn$3(options, 'constructor') && options.constructor) {
  761. if (DESCRIPTORS$4) defineProperty$2(value, 'prototype', { writable: false });
  762. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  763. } else if (value.prototype) value.prototype = undefined;
  764. } catch (error) { /* empty */ }
  765. var state = enforceInternalState(value);
  766. if (!hasOwn$3(state, 'source')) {
  767. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  768. } return value;
  769. };
  770. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  771. // eslint-disable-next-line no-extend-native -- required
  772. Function.prototype.toString = makeBuiltIn$1(function toString() {
  773. return isCallable$6(this) && getInternalState$1(this).source || inspectSource$1(this);
  774. }, 'toString');
  775. var makeBuiltInExports = makeBuiltIn$2.exports;
  776. var isCallable$5 = isCallable$e;
  777. var definePropertyModule$3 = objectDefineProperty;
  778. var makeBuiltIn = makeBuiltInExports;
  779. var defineGlobalProperty$1 = defineGlobalProperty$3;
  780. var defineBuiltIn$3 = function (O, key, value, options) {
  781. if (!options) options = {};
  782. var simple = options.enumerable;
  783. var name = options.name !== undefined ? options.name : key;
  784. if (isCallable$5(value)) makeBuiltIn(value, name, options);
  785. if (options.global) {
  786. if (simple) O[key] = value;
  787. else defineGlobalProperty$1(key, value);
  788. } else {
  789. try {
  790. if (!options.unsafe) delete O[key];
  791. else if (O[key]) simple = true;
  792. } catch (error) { /* empty */ }
  793. if (simple) O[key] = value;
  794. else definePropertyModule$3.f(O, key, {
  795. value: value,
  796. enumerable: false,
  797. configurable: !options.nonConfigurable,
  798. writable: !options.nonWritable
  799. });
  800. } return O;
  801. };
  802. var objectGetOwnPropertyNames = {};
  803. var ceil = Math.ceil;
  804. var floor = Math.floor;
  805. // `Math.trunc` method
  806. // https://tc39.es/ecma262/#sec-math.trunc
  807. // eslint-disable-next-line es/no-math-trunc -- safe
  808. var mathTrunc = Math.trunc || function trunc(x) {
  809. var n = +x;
  810. return (n > 0 ? floor : ceil)(n);
  811. };
  812. var trunc = mathTrunc;
  813. // `ToIntegerOrInfinity` abstract operation
  814. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  815. var toIntegerOrInfinity$2 = function (argument) {
  816. var number = +argument;
  817. // eslint-disable-next-line no-self-compare -- NaN check
  818. return number !== number || number === 0 ? 0 : trunc(number);
  819. };
  820. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  821. var max = Math.max;
  822. var min$1 = Math.min;
  823. // Helper for a popular repeating case of the spec:
  824. // Let integer be ? ToInteger(index).
  825. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  826. var toAbsoluteIndex$1 = function (index, length) {
  827. var integer = toIntegerOrInfinity$1(index);
  828. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  829. };
  830. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  831. var min = Math.min;
  832. // `ToLength` abstract operation
  833. // https://tc39.es/ecma262/#sec-tolength
  834. var toLength$1 = function (argument) {
  835. var len = toIntegerOrInfinity(argument);
  836. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  837. };
  838. var toLength = toLength$1;
  839. // `LengthOfArrayLike` abstract operation
  840. // https://tc39.es/ecma262/#sec-lengthofarraylike
  841. var lengthOfArrayLike$3 = function (obj) {
  842. return toLength(obj.length);
  843. };
  844. var toIndexedObject$4 = toIndexedObject$6;
  845. var toAbsoluteIndex = toAbsoluteIndex$1;
  846. var lengthOfArrayLike$2 = lengthOfArrayLike$3;
  847. // `Array.prototype.{ indexOf, includes }` methods implementation
  848. var createMethod$3 = function (IS_INCLUDES) {
  849. return function ($this, el, fromIndex) {
  850. var O = toIndexedObject$4($this);
  851. var length = lengthOfArrayLike$2(O);
  852. if (length === 0) return !IS_INCLUDES && -1;
  853. var index = toAbsoluteIndex(fromIndex, length);
  854. var value;
  855. // Array#includes uses SameValueZero equality algorithm
  856. // eslint-disable-next-line no-self-compare -- NaN check
  857. if (IS_INCLUDES && el !== el) while (length > index) {
  858. value = O[index++];
  859. // eslint-disable-next-line no-self-compare -- NaN check
  860. if (value !== value) return true;
  861. // Array#indexOf ignores holes, Array#includes - not
  862. } else for (;length > index; index++) {
  863. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  864. } return !IS_INCLUDES && -1;
  865. };
  866. };
  867. var arrayIncludes = {
  868. // `Array.prototype.includes` method
  869. // https://tc39.es/ecma262/#sec-array.prototype.includes
  870. includes: createMethod$3(true),
  871. // `Array.prototype.indexOf` method
  872. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  873. indexOf: createMethod$3(false)
  874. };
  875. var uncurryThis$c = functionUncurryThis;
  876. var hasOwn$2 = hasOwnProperty_1;
  877. var toIndexedObject$3 = toIndexedObject$6;
  878. var indexOf$1 = arrayIncludes.indexOf;
  879. var hiddenKeys$2 = hiddenKeys$4;
  880. var push$2 = uncurryThis$c([].push);
  881. var objectKeysInternal = function (object, names) {
  882. var O = toIndexedObject$3(object);
  883. var i = 0;
  884. var result = [];
  885. var key;
  886. for (key in O) !hasOwn$2(hiddenKeys$2, key) && hasOwn$2(O, key) && push$2(result, key);
  887. // Don't enum bug & hidden keys
  888. while (names.length > i) if (hasOwn$2(O, key = names[i++])) {
  889. ~indexOf$1(result, key) || push$2(result, key);
  890. }
  891. return result;
  892. };
  893. // IE8- don't enum bug keys
  894. var enumBugKeys$3 = [
  895. 'constructor',
  896. 'hasOwnProperty',
  897. 'isPrototypeOf',
  898. 'propertyIsEnumerable',
  899. 'toLocaleString',
  900. 'toString',
  901. 'valueOf'
  902. ];
  903. var internalObjectKeys$1 = objectKeysInternal;
  904. var enumBugKeys$2 = enumBugKeys$3;
  905. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  906. // `Object.getOwnPropertyNames` method
  907. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  908. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  909. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  910. return internalObjectKeys$1(O, hiddenKeys$1);
  911. };
  912. var objectGetOwnPropertySymbols = {};
  913. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  914. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  915. var getBuiltIn$2 = getBuiltIn$4;
  916. var uncurryThis$b = functionUncurryThis;
  917. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  918. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  919. var anObject$5 = anObject$7;
  920. var concat$1 = uncurryThis$b([].concat);
  921. // all object keys, includes non-enumerable and symbols
  922. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  923. var keys = getOwnPropertyNamesModule.f(anObject$5(it));
  924. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  925. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  926. };
  927. var hasOwn$1 = hasOwnProperty_1;
  928. var ownKeys = ownKeys$1;
  929. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  930. var definePropertyModule$2 = objectDefineProperty;
  931. var copyConstructorProperties$1 = function (target, source, exceptions) {
  932. var keys = ownKeys(source);
  933. var defineProperty = definePropertyModule$2.f;
  934. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  935. for (var i = 0; i < keys.length; i++) {
  936. var key = keys[i];
  937. if (!hasOwn$1(target, key) && !(exceptions && hasOwn$1(exceptions, key))) {
  938. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  939. }
  940. }
  941. };
  942. var fails$d = fails$l;
  943. var isCallable$4 = isCallable$e;
  944. var replacement = /#|\.prototype\./;
  945. var isForced$1 = function (feature, detection) {
  946. var value = data[normalize(feature)];
  947. return value === POLYFILL ? true
  948. : value === NATIVE ? false
  949. : isCallable$4(detection) ? fails$d(detection)
  950. : !!detection;
  951. };
  952. var normalize = isForced$1.normalize = function (string) {
  953. return String(string).replace(replacement, '.').toLowerCase();
  954. };
  955. var data = isForced$1.data = {};
  956. var NATIVE = isForced$1.NATIVE = 'N';
  957. var POLYFILL = isForced$1.POLYFILL = 'P';
  958. var isForced_1 = isForced$1;
  959. var global$4 = global$d;
  960. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  961. var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
  962. var defineBuiltIn$2 = defineBuiltIn$3;
  963. var defineGlobalProperty = defineGlobalProperty$3;
  964. var copyConstructorProperties = copyConstructorProperties$1;
  965. var isForced = isForced_1;
  966. /*
  967. options.target - name of the target object
  968. options.global - target is the global object
  969. options.stat - export as static methods of target
  970. options.proto - export as prototype methods of target
  971. options.real - real prototype method for the `pure` version
  972. options.forced - export even if the native feature is available
  973. options.bind - bind methods to the target, required for the `pure` version
  974. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  975. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  976. options.sham - add a flag to not completely full polyfills
  977. options.enumerable - export as enumerable property
  978. options.dontCallGetSet - prevent calling a getter on target
  979. options.name - the .name of the function if it does not match the key
  980. */
  981. var _export = function (options, source) {
  982. var TARGET = options.target;
  983. var GLOBAL = options.global;
  984. var STATIC = options.stat;
  985. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  986. if (GLOBAL) {
  987. target = global$4;
  988. } else if (STATIC) {
  989. target = global$4[TARGET] || defineGlobalProperty(TARGET, {});
  990. } else {
  991. target = global$4[TARGET] && global$4[TARGET].prototype;
  992. }
  993. if (target) for (key in source) {
  994. sourceProperty = source[key];
  995. if (options.dontCallGetSet) {
  996. descriptor = getOwnPropertyDescriptor(target, key);
  997. targetProperty = descriptor && descriptor.value;
  998. } else targetProperty = target[key];
  999. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  1000. // contained in target
  1001. if (!FORCED && targetProperty !== undefined) {
  1002. if (typeof sourceProperty == typeof targetProperty) continue;
  1003. copyConstructorProperties(sourceProperty, targetProperty);
  1004. }
  1005. // add a flag to not completely full polyfills
  1006. if (options.sham || (targetProperty && targetProperty.sham)) {
  1007. createNonEnumerableProperty$1(sourceProperty, 'sham', true);
  1008. }
  1009. defineBuiltIn$2(target, key, sourceProperty, options);
  1010. }
  1011. };
  1012. var classof$6 = classofRaw$2;
  1013. // `IsArray` abstract operation
  1014. // https://tc39.es/ecma262/#sec-isarray
  1015. // eslint-disable-next-line es/no-array-isarray -- safe
  1016. var isArray$2 = Array.isArray || function isArray(argument) {
  1017. return classof$6(argument) === 'Array';
  1018. };
  1019. var $TypeError$2 = TypeError;
  1020. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  1021. var doesNotExceedSafeInteger$1 = function (it) {
  1022. if (it > MAX_SAFE_INTEGER) throw $TypeError$2('Maximum allowed index exceeded');
  1023. return it;
  1024. };
  1025. var DESCRIPTORS$3 = descriptors;
  1026. var definePropertyModule$1 = objectDefineProperty;
  1027. var createPropertyDescriptor = createPropertyDescriptor$3;
  1028. var createProperty$1 = function (object, key, value) {
  1029. if (DESCRIPTORS$3) definePropertyModule$1.f(object, key, createPropertyDescriptor(0, value));
  1030. else object[key] = value;
  1031. };
  1032. var wellKnownSymbol$8 = wellKnownSymbol$a;
  1033. var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
  1034. var test = {};
  1035. test[TO_STRING_TAG$1] = 'z';
  1036. var toStringTagSupport = String(test) === '[object z]';
  1037. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  1038. var isCallable$3 = isCallable$e;
  1039. var classofRaw$1 = classofRaw$2;
  1040. var wellKnownSymbol$7 = wellKnownSymbol$a;
  1041. var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
  1042. var $Object$1 = Object;
  1043. // ES3 wrong here
  1044. var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
  1045. // fallback for IE11 Script Access Denied error
  1046. var tryGet = function (it, key) {
  1047. try {
  1048. return it[key];
  1049. } catch (error) { /* empty */ }
  1050. };
  1051. // getting tag from ES6+ `Object.prototype.toString`
  1052. var classof$5 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
  1053. var O, tag, result;
  1054. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1055. // @@toStringTag case
  1056. : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG)) == 'string' ? tag
  1057. // builtinTag case
  1058. : CORRECT_ARGUMENTS ? classofRaw$1(O)
  1059. // ES3 arguments fallback
  1060. : (result = classofRaw$1(O)) === 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
  1061. };
  1062. var uncurryThis$a = functionUncurryThis;
  1063. var fails$c = fails$l;
  1064. var isCallable$2 = isCallable$e;
  1065. var classof$4 = classof$5;
  1066. var getBuiltIn$1 = getBuiltIn$4;
  1067. var inspectSource = inspectSource$2;
  1068. var noop = function () { /* empty */ };
  1069. var construct = getBuiltIn$1('Reflect', 'construct');
  1070. var constructorRegExp = /^\s*(?:class|function)\b/;
  1071. var exec$1 = uncurryThis$a(constructorRegExp.exec);
  1072. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1073. var isConstructorModern = function isConstructor(argument) {
  1074. if (!isCallable$2(argument)) return false;
  1075. try {
  1076. construct(noop, [], argument);
  1077. return true;
  1078. } catch (error) {
  1079. return false;
  1080. }
  1081. };
  1082. var isConstructorLegacy = function isConstructor(argument) {
  1083. if (!isCallable$2(argument)) return false;
  1084. switch (classof$4(argument)) {
  1085. case 'AsyncFunction':
  1086. case 'GeneratorFunction':
  1087. case 'AsyncGeneratorFunction': return false;
  1088. }
  1089. try {
  1090. // we can't check .prototype since constructors produced by .bind haven't it
  1091. // `Function#toString` throws on some built-it function in some legacy engines
  1092. // (for example, `DOMQuad` and similar in FF41-)
  1093. return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
  1094. } catch (error) {
  1095. return true;
  1096. }
  1097. };
  1098. isConstructorLegacy.sham = true;
  1099. // `IsConstructor` abstract operation
  1100. // https://tc39.es/ecma262/#sec-isconstructor
  1101. var isConstructor$1 = !construct || fails$c(function () {
  1102. var called;
  1103. return isConstructorModern(isConstructorModern.call)
  1104. || !isConstructorModern(Object)
  1105. || !isConstructorModern(function () { called = true; })
  1106. || called;
  1107. }) ? isConstructorLegacy : isConstructorModern;
  1108. var isArray$1 = isArray$2;
  1109. var isConstructor = isConstructor$1;
  1110. var isObject$2 = isObject$8;
  1111. var wellKnownSymbol$6 = wellKnownSymbol$a;
  1112. var SPECIES$2 = wellKnownSymbol$6('species');
  1113. var $Array = Array;
  1114. // a part of `ArraySpeciesCreate` abstract operation
  1115. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1116. var arraySpeciesConstructor$1 = function (originalArray) {
  1117. var C;
  1118. if (isArray$1(originalArray)) {
  1119. C = originalArray.constructor;
  1120. // cross-realm fallback
  1121. if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
  1122. else if (isObject$2(C)) {
  1123. C = C[SPECIES$2];
  1124. if (C === null) C = undefined;
  1125. }
  1126. } return C === undefined ? $Array : C;
  1127. };
  1128. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1129. // `ArraySpeciesCreate` abstract operation
  1130. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1131. var arraySpeciesCreate$2 = function (originalArray, length) {
  1132. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1133. };
  1134. var fails$b = fails$l;
  1135. var wellKnownSymbol$5 = wellKnownSymbol$a;
  1136. var V8_VERSION$1 = engineV8Version;
  1137. var SPECIES$1 = wellKnownSymbol$5('species');
  1138. var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
  1139. // We can't use this feature detection in V8 since it causes
  1140. // deoptimization and serious performance degradation
  1141. // https://github.com/zloirock/core-js/issues/677
  1142. return V8_VERSION$1 >= 51 || !fails$b(function () {
  1143. var array = [];
  1144. var constructor = array.constructor = {};
  1145. constructor[SPECIES$1] = function () {
  1146. return { foo: 1 };
  1147. };
  1148. return array[METHOD_NAME](Boolean).foo !== 1;
  1149. });
  1150. };
  1151. var $$a = _export;
  1152. var fails$a = fails$l;
  1153. var isArray = isArray$2;
  1154. var isObject$1 = isObject$8;
  1155. var toObject$3 = toObject$5;
  1156. var lengthOfArrayLike$1 = lengthOfArrayLike$3;
  1157. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1158. var createProperty = createProperty$1;
  1159. var arraySpeciesCreate$1 = arraySpeciesCreate$2;
  1160. var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
  1161. var wellKnownSymbol$4 = wellKnownSymbol$a;
  1162. var V8_VERSION = engineV8Version;
  1163. var IS_CONCAT_SPREADABLE = wellKnownSymbol$4('isConcatSpreadable');
  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/679
  1167. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$a(function () {
  1168. var array = [];
  1169. array[IS_CONCAT_SPREADABLE] = false;
  1170. return array.concat()[0] !== array;
  1171. });
  1172. var isConcatSpreadable = function (O) {
  1173. if (!isObject$1(O)) return false;
  1174. var spreadable = O[IS_CONCAT_SPREADABLE];
  1175. return spreadable !== undefined ? !!spreadable : isArray(O);
  1176. };
  1177. var FORCED$2 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$1('concat');
  1178. // `Array.prototype.concat` method
  1179. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1180. // with adding support of @@isConcatSpreadable and @@species
  1181. $$a({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
  1182. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1183. concat: function concat(arg) {
  1184. var O = toObject$3(this);
  1185. var A = arraySpeciesCreate$1(O, 0);
  1186. var n = 0;
  1187. var i, k, length, len, E;
  1188. for (i = -1, length = arguments.length; i < length; i++) {
  1189. E = i === -1 ? O : arguments[i];
  1190. if (isConcatSpreadable(E)) {
  1191. len = lengthOfArrayLike$1(E);
  1192. doesNotExceedSafeInteger(n + len);
  1193. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1194. } else {
  1195. doesNotExceedSafeInteger(n + 1);
  1196. createProperty(A, n++, E);
  1197. }
  1198. }
  1199. A.length = n;
  1200. return A;
  1201. }
  1202. });
  1203. var classofRaw = classofRaw$2;
  1204. var uncurryThis$9 = functionUncurryThis;
  1205. var functionUncurryThisClause = function (fn) {
  1206. // Nashorn bug:
  1207. // https://github.com/zloirock/core-js/issues/1128
  1208. // https://github.com/zloirock/core-js/issues/1130
  1209. if (classofRaw(fn) === 'Function') return uncurryThis$9(fn);
  1210. };
  1211. var uncurryThis$8 = functionUncurryThisClause;
  1212. var aCallable = aCallable$2;
  1213. var NATIVE_BIND = functionBindNative;
  1214. var bind$1 = uncurryThis$8(uncurryThis$8.bind);
  1215. // optional / simple context binding
  1216. var functionBindContext = function (fn, that) {
  1217. aCallable(fn);
  1218. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  1219. return fn.apply(that, arguments);
  1220. };
  1221. };
  1222. var bind = functionBindContext;
  1223. var uncurryThis$7 = functionUncurryThis;
  1224. var IndexedObject$2 = indexedObject;
  1225. var toObject$2 = toObject$5;
  1226. var lengthOfArrayLike = lengthOfArrayLike$3;
  1227. var arraySpeciesCreate = arraySpeciesCreate$2;
  1228. var push$1 = uncurryThis$7([].push);
  1229. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1230. var createMethod$2 = function (TYPE) {
  1231. var IS_MAP = TYPE === 1;
  1232. var IS_FILTER = TYPE === 2;
  1233. var IS_SOME = TYPE === 3;
  1234. var IS_EVERY = TYPE === 4;
  1235. var IS_FIND_INDEX = TYPE === 6;
  1236. var IS_FILTER_REJECT = TYPE === 7;
  1237. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1238. return function ($this, callbackfn, that, specificCreate) {
  1239. var O = toObject$2($this);
  1240. var self = IndexedObject$2(O);
  1241. var length = lengthOfArrayLike(self);
  1242. var boundFunction = bind(callbackfn, that);
  1243. var index = 0;
  1244. var create = specificCreate || arraySpeciesCreate;
  1245. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1246. var value, result;
  1247. for (;length > index; index++) if (NO_HOLES || index in self) {
  1248. value = self[index];
  1249. result = boundFunction(value, index, O);
  1250. if (TYPE) {
  1251. if (IS_MAP) target[index] = result; // map
  1252. else if (result) switch (TYPE) {
  1253. case 3: return true; // some
  1254. case 5: return value; // find
  1255. case 6: return index; // findIndex
  1256. case 2: push$1(target, value); // filter
  1257. } else switch (TYPE) {
  1258. case 4: return false; // every
  1259. case 7: push$1(target, value); // filterReject
  1260. }
  1261. }
  1262. }
  1263. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1264. };
  1265. };
  1266. var arrayIteration = {
  1267. // `Array.prototype.forEach` method
  1268. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1269. forEach: createMethod$2(0),
  1270. // `Array.prototype.map` method
  1271. // https://tc39.es/ecma262/#sec-array.prototype.map
  1272. map: createMethod$2(1),
  1273. // `Array.prototype.filter` method
  1274. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1275. filter: createMethod$2(2),
  1276. // `Array.prototype.some` method
  1277. // https://tc39.es/ecma262/#sec-array.prototype.some
  1278. some: createMethod$2(3),
  1279. // `Array.prototype.every` method
  1280. // https://tc39.es/ecma262/#sec-array.prototype.every
  1281. every: createMethod$2(4),
  1282. // `Array.prototype.find` method
  1283. // https://tc39.es/ecma262/#sec-array.prototype.find
  1284. find: createMethod$2(5),
  1285. // `Array.prototype.findIndex` method
  1286. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1287. findIndex: createMethod$2(6),
  1288. // `Array.prototype.filterReject` method
  1289. // https://github.com/tc39/proposal-array-filtering
  1290. filterReject: createMethod$2(7)
  1291. };
  1292. var $$9 = _export;
  1293. var $filter = arrayIteration.filter;
  1294. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$2;
  1295. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
  1296. // `Array.prototype.filter` method
  1297. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1298. // with adding support of @@species
  1299. $$9({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  1300. filter: function filter(callbackfn /* , thisArg */) {
  1301. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1302. }
  1303. });
  1304. var objectDefineProperties = {};
  1305. var internalObjectKeys = objectKeysInternal;
  1306. var enumBugKeys$1 = enumBugKeys$3;
  1307. // `Object.keys` method
  1308. // https://tc39.es/ecma262/#sec-object.keys
  1309. // eslint-disable-next-line es/no-object-keys -- safe
  1310. var objectKeys$3 = Object.keys || function keys(O) {
  1311. return internalObjectKeys(O, enumBugKeys$1);
  1312. };
  1313. var DESCRIPTORS$2 = descriptors;
  1314. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1315. var definePropertyModule = objectDefineProperty;
  1316. var anObject$4 = anObject$7;
  1317. var toIndexedObject$2 = toIndexedObject$6;
  1318. var objectKeys$2 = objectKeys$3;
  1319. // `Object.defineProperties` method
  1320. // https://tc39.es/ecma262/#sec-object.defineproperties
  1321. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1322. objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1323. anObject$4(O);
  1324. var props = toIndexedObject$2(Properties);
  1325. var keys = objectKeys$2(Properties);
  1326. var length = keys.length;
  1327. var index = 0;
  1328. var key;
  1329. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1330. return O;
  1331. };
  1332. var getBuiltIn = getBuiltIn$4;
  1333. var html$1 = getBuiltIn('document', 'documentElement');
  1334. /* global ActiveXObject -- old IE, WSH */
  1335. var anObject$3 = anObject$7;
  1336. var definePropertiesModule = objectDefineProperties;
  1337. var enumBugKeys = enumBugKeys$3;
  1338. var hiddenKeys = hiddenKeys$4;
  1339. var html = html$1;
  1340. var documentCreateElement = documentCreateElement$1;
  1341. var sharedKey$1 = sharedKey$3;
  1342. var GT = '>';
  1343. var LT = '<';
  1344. var PROTOTYPE = 'prototype';
  1345. var SCRIPT = 'script';
  1346. var IE_PROTO$1 = sharedKey$1('IE_PROTO');
  1347. var EmptyConstructor = function () { /* empty */ };
  1348. var scriptTag = function (content) {
  1349. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1350. };
  1351. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1352. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1353. activeXDocument.write(scriptTag(''));
  1354. activeXDocument.close();
  1355. var temp = activeXDocument.parentWindow.Object;
  1356. activeXDocument = null; // avoid memory leak
  1357. return temp;
  1358. };
  1359. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1360. var NullProtoObjectViaIFrame = function () {
  1361. // Thrash, waste and sodomy: IE GC bug
  1362. var iframe = documentCreateElement('iframe');
  1363. var JS = 'java' + SCRIPT + ':';
  1364. var iframeDocument;
  1365. iframe.style.display = 'none';
  1366. html.appendChild(iframe);
  1367. // https://github.com/zloirock/core-js/issues/475
  1368. iframe.src = String(JS);
  1369. iframeDocument = iframe.contentWindow.document;
  1370. iframeDocument.open();
  1371. iframeDocument.write(scriptTag('document.F=Object'));
  1372. iframeDocument.close();
  1373. return iframeDocument.F;
  1374. };
  1375. // Check for document.domain and active x support
  1376. // No need to use active x approach when document.domain is not set
  1377. // see https://github.com/es-shims/es5-shim/issues/150
  1378. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1379. // avoid IE GC bug
  1380. var activeXDocument;
  1381. var NullProtoObject = function () {
  1382. try {
  1383. activeXDocument = new ActiveXObject('htmlfile');
  1384. } catch (error) { /* ignore */ }
  1385. NullProtoObject = typeof document != 'undefined'
  1386. ? document.domain && activeXDocument
  1387. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1388. : NullProtoObjectViaIFrame()
  1389. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1390. var length = enumBugKeys.length;
  1391. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1392. return NullProtoObject();
  1393. };
  1394. hiddenKeys[IE_PROTO$1] = true;
  1395. // `Object.create` method
  1396. // https://tc39.es/ecma262/#sec-object.create
  1397. // eslint-disable-next-line es/no-object-create -- safe
  1398. var objectCreate = Object.create || function create(O, Properties) {
  1399. var result;
  1400. if (O !== null) {
  1401. EmptyConstructor[PROTOTYPE] = anObject$3(O);
  1402. result = new EmptyConstructor();
  1403. EmptyConstructor[PROTOTYPE] = null;
  1404. // add "__proto__" for Object.getPrototypeOf polyfill
  1405. result[IE_PROTO$1] = O;
  1406. } else result = NullProtoObject();
  1407. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1408. };
  1409. var wellKnownSymbol$3 = wellKnownSymbol$a;
  1410. var create$1 = objectCreate;
  1411. var defineProperty$1 = objectDefineProperty.f;
  1412. var UNSCOPABLES = wellKnownSymbol$3('unscopables');
  1413. var ArrayPrototype = Array.prototype;
  1414. // Array.prototype[@@unscopables]
  1415. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1416. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1417. defineProperty$1(ArrayPrototype, UNSCOPABLES, {
  1418. configurable: true,
  1419. value: create$1(null)
  1420. });
  1421. }
  1422. // add a key to Array.prototype[@@unscopables]
  1423. var addToUnscopables$2 = function (key) {
  1424. ArrayPrototype[UNSCOPABLES][key] = true;
  1425. };
  1426. var $$8 = _export;
  1427. var $find = arrayIteration.find;
  1428. var addToUnscopables$1 = addToUnscopables$2;
  1429. var FIND = 'find';
  1430. var SKIPS_HOLES = true;
  1431. // Shouldn't skip holes
  1432. // eslint-disable-next-line es/no-array-prototype-find -- testing
  1433. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1434. // `Array.prototype.find` method
  1435. // https://tc39.es/ecma262/#sec-array.prototype.find
  1436. $$8({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1437. find: function find(callbackfn /* , that = undefined */) {
  1438. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1439. }
  1440. });
  1441. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1442. addToUnscopables$1(FIND);
  1443. var $$7 = _export;
  1444. var $includes = arrayIncludes.includes;
  1445. var fails$9 = fails$l;
  1446. var addToUnscopables = addToUnscopables$2;
  1447. // FF99+ bug
  1448. var BROKEN_ON_SPARSE = fails$9(function () {
  1449. // eslint-disable-next-line es/no-array-prototype-includes -- detection
  1450. return !Array(1).includes();
  1451. });
  1452. // `Array.prototype.includes` method
  1453. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1454. $$7({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
  1455. includes: function includes(el /* , fromIndex = 0 */) {
  1456. return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  1457. }
  1458. });
  1459. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1460. addToUnscopables('includes');
  1461. var fails$8 = fails$l;
  1462. var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
  1463. var method = [][METHOD_NAME];
  1464. return !!method && fails$8(function () {
  1465. // eslint-disable-next-line no-useless-call -- required for testing
  1466. method.call(null, argument || function () { return 1; }, 1);
  1467. });
  1468. };
  1469. /* eslint-disable es/no-array-prototype-indexof -- required for testing */
  1470. var $$6 = _export;
  1471. var uncurryThis$6 = functionUncurryThisClause;
  1472. var $indexOf = arrayIncludes.indexOf;
  1473. var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
  1474. var nativeIndexOf = uncurryThis$6([].indexOf);
  1475. var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
  1476. var FORCED$1 = NEGATIVE_ZERO || !arrayMethodIsStrict$1('indexOf');
  1477. // `Array.prototype.indexOf` method
  1478. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1479. $$6({ target: 'Array', proto: true, forced: FORCED$1 }, {
  1480. indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
  1481. var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
  1482. return NEGATIVE_ZERO
  1483. // convert -0 to +0
  1484. ? nativeIndexOf(this, searchElement, fromIndex) || 0
  1485. : $indexOf(this, searchElement, fromIndex);
  1486. }
  1487. });
  1488. var $$5 = _export;
  1489. var uncurryThis$5 = functionUncurryThis;
  1490. var IndexedObject$1 = indexedObject;
  1491. var toIndexedObject$1 = toIndexedObject$6;
  1492. var arrayMethodIsStrict = arrayMethodIsStrict$2;
  1493. var nativeJoin = uncurryThis$5([].join);
  1494. var ES3_STRINGS = IndexedObject$1 !== Object;
  1495. var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
  1496. // `Array.prototype.join` method
  1497. // https://tc39.es/ecma262/#sec-array.prototype.join
  1498. $$5({ target: 'Array', proto: true, forced: FORCED }, {
  1499. join: function join(separator) {
  1500. return nativeJoin(toIndexedObject$1(this), separator === undefined ? ',' : separator);
  1501. }
  1502. });
  1503. var DESCRIPTORS$1 = descriptors;
  1504. var uncurryThis$4 = functionUncurryThis;
  1505. var call$4 = functionCall;
  1506. var fails$7 = fails$l;
  1507. var objectKeys$1 = objectKeys$3;
  1508. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1509. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1510. var toObject$1 = toObject$5;
  1511. var IndexedObject = indexedObject;
  1512. // eslint-disable-next-line es/no-object-assign -- safe
  1513. var $assign = Object.assign;
  1514. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1515. var defineProperty = Object.defineProperty;
  1516. var concat = uncurryThis$4([].concat);
  1517. // `Object.assign` method
  1518. // https://tc39.es/ecma262/#sec-object.assign
  1519. var objectAssign = !$assign || fails$7(function () {
  1520. // should have correct order of operations (Edge bug)
  1521. if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  1522. enumerable: true,
  1523. get: function () {
  1524. defineProperty(this, 'b', {
  1525. value: 3,
  1526. enumerable: false
  1527. });
  1528. }
  1529. }), { b: 2 })).b !== 1) return true;
  1530. // should work with symbols and should have deterministic property order (V8 bug)
  1531. var A = {};
  1532. var B = {};
  1533. // eslint-disable-next-line es/no-symbol -- safe
  1534. var symbol = Symbol('assign detection');
  1535. var alphabet = 'abcdefghijklmnopqrst';
  1536. A[symbol] = 7;
  1537. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1538. return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
  1539. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1540. var T = toObject$1(target);
  1541. var argumentsLength = arguments.length;
  1542. var index = 1;
  1543. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1544. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1545. while (argumentsLength > index) {
  1546. var S = IndexedObject(arguments[index++]);
  1547. var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
  1548. var length = keys.length;
  1549. var j = 0;
  1550. var key;
  1551. while (length > j) {
  1552. key = keys[j++];
  1553. if (!DESCRIPTORS$1 || call$4(propertyIsEnumerable, S, key)) T[key] = S[key];
  1554. }
  1555. } return T;
  1556. } : $assign;
  1557. var $$4 = _export;
  1558. var assign = objectAssign;
  1559. // `Object.assign` method
  1560. // https://tc39.es/ecma262/#sec-object.assign
  1561. // eslint-disable-next-line es/no-object-assign -- required for testing
  1562. $$4({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1563. assign: assign
  1564. });
  1565. var fails$6 = fails$l;
  1566. var correctPrototypeGetter = !fails$6(function () {
  1567. function F() { /* empty */ }
  1568. F.prototype.constructor = null;
  1569. // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
  1570. return Object.getPrototypeOf(new F()) !== F.prototype;
  1571. });
  1572. var hasOwn = hasOwnProperty_1;
  1573. var isCallable$1 = isCallable$e;
  1574. var toObject = toObject$5;
  1575. var sharedKey = sharedKey$3;
  1576. var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
  1577. var IE_PROTO = sharedKey('IE_PROTO');
  1578. var $Object = Object;
  1579. var ObjectPrototype = $Object.prototype;
  1580. // `Object.getPrototypeOf` method
  1581. // https://tc39.es/ecma262/#sec-object.getprototypeof
  1582. // eslint-disable-next-line es/no-object-getprototypeof -- safe
  1583. var objectGetPrototypeOf$1 = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
  1584. var object = toObject(O);
  1585. if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
  1586. var constructor = object.constructor;
  1587. if (isCallable$1(constructor) && object instanceof constructor) {
  1588. return constructor.prototype;
  1589. } return object instanceof $Object ? ObjectPrototype : null;
  1590. };
  1591. var DESCRIPTORS = descriptors;
  1592. var fails$5 = fails$l;
  1593. var uncurryThis$3 = functionUncurryThis;
  1594. var objectGetPrototypeOf = objectGetPrototypeOf$1;
  1595. var objectKeys = objectKeys$3;
  1596. var toIndexedObject = toIndexedObject$6;
  1597. var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
  1598. var propertyIsEnumerable = uncurryThis$3($propertyIsEnumerable);
  1599. var push = uncurryThis$3([].push);
  1600. // in some IE versions, `propertyIsEnumerable` returns incorrect result on integer keys
  1601. // of `null` prototype objects
  1602. var IE_BUG = DESCRIPTORS && fails$5(function () {
  1603. // eslint-disable-next-line es/no-object-create -- safe
  1604. var O = Object.create(null);
  1605. O[2] = 2;
  1606. return !propertyIsEnumerable(O, 2);
  1607. });
  1608. // `Object.{ entries, values }` methods implementation
  1609. var createMethod$1 = function (TO_ENTRIES) {
  1610. return function (it) {
  1611. var O = toIndexedObject(it);
  1612. var keys = objectKeys(O);
  1613. var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null;
  1614. var length = keys.length;
  1615. var i = 0;
  1616. var result = [];
  1617. var key;
  1618. while (length > i) {
  1619. key = keys[i++];
  1620. if (!DESCRIPTORS || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) {
  1621. push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
  1622. }
  1623. }
  1624. return result;
  1625. };
  1626. };
  1627. var objectToArray = {
  1628. // `Object.entries` method
  1629. // https://tc39.es/ecma262/#sec-object.entries
  1630. entries: createMethod$1(true),
  1631. // `Object.values` method
  1632. // https://tc39.es/ecma262/#sec-object.values
  1633. values: createMethod$1(false)
  1634. };
  1635. var $$3 = _export;
  1636. var $entries = objectToArray.entries;
  1637. // `Object.entries` method
  1638. // https://tc39.es/ecma262/#sec-object.entries
  1639. $$3({ target: 'Object', stat: true }, {
  1640. entries: function entries(O) {
  1641. return $entries(O);
  1642. }
  1643. });
  1644. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1645. var classof$3 = classof$5;
  1646. // `Object.prototype.toString` method implementation
  1647. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1648. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1649. return '[object ' + classof$3(this) + ']';
  1650. };
  1651. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1652. var defineBuiltIn$1 = defineBuiltIn$3;
  1653. var toString$5 = objectToString;
  1654. // `Object.prototype.toString` method
  1655. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1656. if (!TO_STRING_TAG_SUPPORT) {
  1657. defineBuiltIn$1(Object.prototype, 'toString', toString$5, { unsafe: true });
  1658. }
  1659. var classof$2 = classof$5;
  1660. var $String = String;
  1661. var toString$4 = function (argument) {
  1662. if (classof$2(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1663. return $String(argument);
  1664. };
  1665. var anObject$2 = anObject$7;
  1666. // `RegExp.prototype.flags` getter implementation
  1667. // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
  1668. var regexpFlags$1 = function () {
  1669. var that = anObject$2(this);
  1670. var result = '';
  1671. if (that.hasIndices) result += 'd';
  1672. if (that.global) result += 'g';
  1673. if (that.ignoreCase) result += 'i';
  1674. if (that.multiline) result += 'm';
  1675. if (that.dotAll) result += 's';
  1676. if (that.unicode) result += 'u';
  1677. if (that.unicodeSets) result += 'v';
  1678. if (that.sticky) result += 'y';
  1679. return result;
  1680. };
  1681. var fails$4 = fails$l;
  1682. var global$3 = global$d;
  1683. // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  1684. var $RegExp$2 = global$3.RegExp;
  1685. var UNSUPPORTED_Y$1 = fails$4(function () {
  1686. var re = $RegExp$2('a', 'y');
  1687. re.lastIndex = 2;
  1688. return re.exec('abcd') !== null;
  1689. });
  1690. // UC Browser bug
  1691. // https://github.com/zloirock/core-js/issues/1008
  1692. var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
  1693. return !$RegExp$2('a', 'y').sticky;
  1694. });
  1695. var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
  1696. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  1697. var re = $RegExp$2('^r', 'gy');
  1698. re.lastIndex = 2;
  1699. return re.exec('str') !== null;
  1700. });
  1701. var regexpStickyHelpers = {
  1702. BROKEN_CARET: BROKEN_CARET,
  1703. MISSED_STICKY: MISSED_STICKY,
  1704. UNSUPPORTED_Y: UNSUPPORTED_Y$1
  1705. };
  1706. var fails$3 = fails$l;
  1707. var global$2 = global$d;
  1708. // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
  1709. var $RegExp$1 = global$2.RegExp;
  1710. var regexpUnsupportedDotAll = fails$3(function () {
  1711. var re = $RegExp$1('.', 's');
  1712. return !(re.dotAll && re.test('\n') && re.flags === 's');
  1713. });
  1714. var fails$2 = fails$l;
  1715. var global$1 = global$d;
  1716. // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
  1717. var $RegExp = global$1.RegExp;
  1718. var regexpUnsupportedNcg = fails$2(function () {
  1719. var re = $RegExp('(?<a>b)', 'g');
  1720. return re.exec('b').groups.a !== 'b' ||
  1721. 'b'.replace(re, '$<a>c') !== 'bc';
  1722. });
  1723. /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
  1724. /* eslint-disable regexp/no-useless-quantifier -- testing */
  1725. var call$3 = functionCall;
  1726. var uncurryThis$2 = functionUncurryThis;
  1727. var toString$3 = toString$4;
  1728. var regexpFlags = regexpFlags$1;
  1729. var stickyHelpers = regexpStickyHelpers;
  1730. var shared = shared$4;
  1731. var create = objectCreate;
  1732. var getInternalState = internalState.get;
  1733. var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
  1734. var UNSUPPORTED_NCG = regexpUnsupportedNcg;
  1735. var nativeReplace = shared('native-string-replace', String.prototype.replace);
  1736. var nativeExec = RegExp.prototype.exec;
  1737. var patchedExec = nativeExec;
  1738. var charAt = uncurryThis$2(''.charAt);
  1739. var indexOf = uncurryThis$2(''.indexOf);
  1740. var replace$1 = uncurryThis$2(''.replace);
  1741. var stringSlice = uncurryThis$2(''.slice);
  1742. var UPDATES_LAST_INDEX_WRONG = (function () {
  1743. var re1 = /a/;
  1744. var re2 = /b*/g;
  1745. call$3(nativeExec, re1, 'a');
  1746. call$3(nativeExec, re2, 'a');
  1747. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  1748. })();
  1749. var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
  1750. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  1751. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  1752. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
  1753. if (PATCH) {
  1754. patchedExec = function exec(string) {
  1755. var re = this;
  1756. var state = getInternalState(re);
  1757. var str = toString$3(string);
  1758. var raw = state.raw;
  1759. var result, reCopy, lastIndex, match, i, object, group;
  1760. if (raw) {
  1761. raw.lastIndex = re.lastIndex;
  1762. result = call$3(patchedExec, raw, str);
  1763. re.lastIndex = raw.lastIndex;
  1764. return result;
  1765. }
  1766. var groups = state.groups;
  1767. var sticky = UNSUPPORTED_Y && re.sticky;
  1768. var flags = call$3(regexpFlags, re);
  1769. var source = re.source;
  1770. var charsAdded = 0;
  1771. var strCopy = str;
  1772. if (sticky) {
  1773. flags = replace$1(flags, 'y', '');
  1774. if (indexOf(flags, 'g') === -1) {
  1775. flags += 'g';
  1776. }
  1777. strCopy = stringSlice(str, re.lastIndex);
  1778. // Support anchored sticky behavior.
  1779. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
  1780. source = '(?: ' + source + ')';
  1781. strCopy = ' ' + strCopy;
  1782. charsAdded++;
  1783. }
  1784. // ^(? + rx + ) is needed, in combination with some str slicing, to
  1785. // simulate the 'y' flag.
  1786. reCopy = new RegExp('^(?:' + source + ')', flags);
  1787. }
  1788. if (NPCG_INCLUDED) {
  1789. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  1790. }
  1791. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  1792. match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
  1793. if (sticky) {
  1794. if (match) {
  1795. match.input = stringSlice(match.input, charsAdded);
  1796. match[0] = stringSlice(match[0], charsAdded);
  1797. match.index = re.lastIndex;
  1798. re.lastIndex += match[0].length;
  1799. } else re.lastIndex = 0;
  1800. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  1801. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  1802. }
  1803. if (NPCG_INCLUDED && match && match.length > 1) {
  1804. // Fix browsers whose `exec` methods don't consistently return `undefined`
  1805. // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
  1806. call$3(nativeReplace, match[0], reCopy, function () {
  1807. for (i = 1; i < arguments.length - 2; i++) {
  1808. if (arguments[i] === undefined) match[i] = undefined;
  1809. }
  1810. });
  1811. }
  1812. if (match && groups) {
  1813. match.groups = object = create(null);
  1814. for (i = 0; i < groups.length; i++) {
  1815. group = groups[i];
  1816. object[group[0]] = match[group[1]];
  1817. }
  1818. }
  1819. return match;
  1820. };
  1821. }
  1822. var regexpExec$2 = patchedExec;
  1823. var $$2 = _export;
  1824. var exec = regexpExec$2;
  1825. // `RegExp.prototype.exec` method
  1826. // https://tc39.es/ecma262/#sec-regexp.prototype.exec
  1827. $$2({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
  1828. exec: exec
  1829. });
  1830. var isObject = isObject$8;
  1831. var classof$1 = classofRaw$2;
  1832. var wellKnownSymbol$2 = wellKnownSymbol$a;
  1833. var MATCH$1 = wellKnownSymbol$2('match');
  1834. // `IsRegExp` abstract operation
  1835. // https://tc39.es/ecma262/#sec-isregexp
  1836. var isRegexp = function (it) {
  1837. var isRegExp;
  1838. return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) === 'RegExp');
  1839. };
  1840. var isRegExp = isRegexp;
  1841. var $TypeError$1 = TypeError;
  1842. var notARegexp = function (it) {
  1843. if (isRegExp(it)) {
  1844. throw new $TypeError$1("The method doesn't accept regular expressions");
  1845. } return it;
  1846. };
  1847. var wellKnownSymbol$1 = wellKnownSymbol$a;
  1848. var MATCH = wellKnownSymbol$1('match');
  1849. var correctIsRegexpLogic = function (METHOD_NAME) {
  1850. var regexp = /./;
  1851. try {
  1852. '/./'[METHOD_NAME](regexp);
  1853. } catch (error1) {
  1854. try {
  1855. regexp[MATCH] = false;
  1856. return '/./'[METHOD_NAME](regexp);
  1857. } catch (error2) { /* empty */ }
  1858. } return false;
  1859. };
  1860. var $$1 = _export;
  1861. var uncurryThis$1 = functionUncurryThis;
  1862. var notARegExp = notARegexp;
  1863. var requireObjectCoercible$2 = requireObjectCoercible$5;
  1864. var toString$2 = toString$4;
  1865. var correctIsRegExpLogic = correctIsRegexpLogic;
  1866. var stringIndexOf = uncurryThis$1(''.indexOf);
  1867. // `String.prototype.includes` method
  1868. // https://tc39.es/ecma262/#sec-string.prototype.includes
  1869. $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
  1870. includes: function includes(searchString /* , position = 0 */) {
  1871. return !!~stringIndexOf(
  1872. toString$2(requireObjectCoercible$2(this)),
  1873. toString$2(notARegExp(searchString)),
  1874. arguments.length > 1 ? arguments[1] : undefined
  1875. );
  1876. }
  1877. });
  1878. // TODO: Remove from `core-js@4` since it's moved to entry points
  1879. var call$2 = functionCall;
  1880. var defineBuiltIn = defineBuiltIn$3;
  1881. var regexpExec$1 = regexpExec$2;
  1882. var fails$1 = fails$l;
  1883. var wellKnownSymbol = wellKnownSymbol$a;
  1884. var createNonEnumerableProperty = createNonEnumerableProperty$3;
  1885. var SPECIES = wellKnownSymbol('species');
  1886. var RegExpPrototype = RegExp.prototype;
  1887. var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
  1888. var SYMBOL = wellKnownSymbol(KEY);
  1889. var DELEGATES_TO_SYMBOL = !fails$1(function () {
  1890. // String methods call symbol-named RegExp methods
  1891. var O = {};
  1892. O[SYMBOL] = function () { return 7; };
  1893. return ''[KEY](O) !== 7;
  1894. });
  1895. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
  1896. // Symbol-named RegExp methods call .exec
  1897. var execCalled = false;
  1898. var re = /a/;
  1899. if (KEY === 'split') {
  1900. // We can't use real regex here since it causes deoptimization
  1901. // and serious performance degradation in V8
  1902. // https://github.com/zloirock/core-js/issues/306
  1903. re = {};
  1904. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  1905. // a new one. We need to return the patched regex when creating the new one.
  1906. re.constructor = {};
  1907. re.constructor[SPECIES] = function () { return re; };
  1908. re.flags = '';
  1909. re[SYMBOL] = /./[SYMBOL];
  1910. }
  1911. re.exec = function () {
  1912. execCalled = true;
  1913. return null;
  1914. };
  1915. re[SYMBOL]('');
  1916. return !execCalled;
  1917. });
  1918. if (
  1919. !DELEGATES_TO_SYMBOL ||
  1920. !DELEGATES_TO_EXEC ||
  1921. FORCED
  1922. ) {
  1923. var nativeRegExpMethod = /./[SYMBOL];
  1924. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  1925. var $exec = regexp.exec;
  1926. if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
  1927. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  1928. // The native String method already delegates to @@method (this
  1929. // polyfilled function), leasing to infinite recursion.
  1930. // We avoid it by directly calling the native @@method method.
  1931. return { done: true, value: call$2(nativeRegExpMethod, regexp, str, arg2) };
  1932. }
  1933. return { done: true, value: call$2(nativeMethod, str, regexp, arg2) };
  1934. }
  1935. return { done: false };
  1936. });
  1937. defineBuiltIn(String.prototype, KEY, methods[0]);
  1938. defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
  1939. }
  1940. if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
  1941. };
  1942. // `SameValue` abstract operation
  1943. // https://tc39.es/ecma262/#sec-samevalue
  1944. // eslint-disable-next-line es/no-object-is -- safe
  1945. var sameValue$1 = Object.is || function is(x, y) {
  1946. // eslint-disable-next-line no-self-compare -- NaN check
  1947. return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
  1948. };
  1949. var call$1 = functionCall;
  1950. var anObject$1 = anObject$7;
  1951. var isCallable = isCallable$e;
  1952. var classof = classofRaw$2;
  1953. var regexpExec = regexpExec$2;
  1954. var $TypeError = TypeError;
  1955. // `RegExpExec` abstract operation
  1956. // https://tc39.es/ecma262/#sec-regexpexec
  1957. var regexpExecAbstract = function (R, S) {
  1958. var exec = R.exec;
  1959. if (isCallable(exec)) {
  1960. var result = call$1(exec, R, S);
  1961. if (result !== null) anObject$1(result);
  1962. return result;
  1963. }
  1964. if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
  1965. throw new $TypeError('RegExp#exec called on incompatible receiver');
  1966. };
  1967. var call = functionCall;
  1968. var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
  1969. var anObject = anObject$7;
  1970. var isNullOrUndefined = isNullOrUndefined$3;
  1971. var requireObjectCoercible$1 = requireObjectCoercible$5;
  1972. var sameValue = sameValue$1;
  1973. var toString$1 = toString$4;
  1974. var getMethod = getMethod$2;
  1975. var regExpExec = regexpExecAbstract;
  1976. // @@search logic
  1977. fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
  1978. return [
  1979. // `String.prototype.search` method
  1980. // https://tc39.es/ecma262/#sec-string.prototype.search
  1981. function search(regexp) {
  1982. var O = requireObjectCoercible$1(this);
  1983. var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);
  1984. return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$1(O));
  1985. },
  1986. // `RegExp.prototype[@@search]` method
  1987. // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
  1988. function (string) {
  1989. var rx = anObject(this);
  1990. var S = toString$1(string);
  1991. var res = maybeCallNative(nativeSearch, rx, S);
  1992. if (res.done) return res.value;
  1993. var previousLastIndex = rx.lastIndex;
  1994. if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
  1995. var result = regExpExec(rx, S);
  1996. if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
  1997. return result === null ? -1 : result.index;
  1998. }
  1999. ];
  2000. });
  2001. // a string of all valid unicode whitespaces
  2002. var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
  2003. '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
  2004. var uncurryThis = functionUncurryThis;
  2005. var requireObjectCoercible = requireObjectCoercible$5;
  2006. var toString = toString$4;
  2007. var whitespaces$1 = whitespaces$2;
  2008. var replace = uncurryThis(''.replace);
  2009. var ltrim = RegExp('^[' + whitespaces$1 + ']+');
  2010. var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
  2011. // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
  2012. var createMethod = function (TYPE) {
  2013. return function ($this) {
  2014. var string = toString(requireObjectCoercible($this));
  2015. if (TYPE & 1) string = replace(string, ltrim, '');
  2016. if (TYPE & 2) string = replace(string, rtrim, '$1');
  2017. return string;
  2018. };
  2019. };
  2020. var stringTrim = {
  2021. // `String.prototype.{ trimLeft, trimStart }` methods
  2022. // https://tc39.es/ecma262/#sec-string.prototype.trimstart
  2023. start: createMethod(1),
  2024. // `String.prototype.{ trimRight, trimEnd }` methods
  2025. // https://tc39.es/ecma262/#sec-string.prototype.trimend
  2026. end: createMethod(2),
  2027. // `String.prototype.trim` method
  2028. // https://tc39.es/ecma262/#sec-string.prototype.trim
  2029. trim: createMethod(3)
  2030. };
  2031. var PROPER_FUNCTION_NAME = functionName.PROPER;
  2032. var fails = fails$l;
  2033. var whitespaces = whitespaces$2;
  2034. var non = '\u200B\u0085\u180E';
  2035. // check that a method works with the correct list
  2036. // of whitespaces and has a correct name
  2037. var stringTrimForced = function (METHOD_NAME) {
  2038. return fails(function () {
  2039. return !!whitespaces[METHOD_NAME]()
  2040. || non[METHOD_NAME]() !== non
  2041. || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
  2042. });
  2043. };
  2044. var $ = _export;
  2045. var $trim = stringTrim.trim;
  2046. var forcedStringTrimMethod = stringTrimForced;
  2047. // `String.prototype.trim` method
  2048. // https://tc39.es/ecma262/#sec-string.prototype.trim
  2049. $({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
  2050. trim: function trim() {
  2051. return $trim(this);
  2052. }
  2053. });
  2054. /**
  2055. * @author: aperez <aperez@datadec.es>
  2056. * @version: v2.0.0
  2057. *
  2058. * @update Dennis Hernández
  2059. * @update zhixin wen <wenzhixin2010@gmail.com>
  2060. */
  2061. var Utils = $$b.fn.bootstrapTable.utils;
  2062. var theme = {
  2063. bootstrap3: {
  2064. icons: {
  2065. advancedSearchIcon: 'glyphicon-chevron-down'
  2066. },
  2067. classes: {},
  2068. html: {
  2069. modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <button class=\"close toolbar-modal-close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n <h4 class=\"modal-title toolbar-modal-title\"></h4>\n </div>\n <div class=\"modal-body toolbar-modal-body\"></div>\n <div class=\"modal-footer toolbar-modal-footer\">\n <button class=\"btn btn-%s toolbar-modal-close\"></button>\n </div>\n </div>\n </div>\n </div>\n "
  2070. }
  2071. },
  2072. bootstrap4: {
  2073. icons: {
  2074. advancedSearchIcon: 'fa-chevron-down'
  2075. },
  2076. classes: {},
  2077. html: {
  2078. modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h4 class=\"modal-title toolbar-modal-title\"></h4>\n <button class=\"close toolbar-modal-close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body toolbar-modal-body\"></div>\n <div class=\"modal-footer toolbar-modal-footer\">\n <button class=\"btn btn-%s toolbar-modal-close\"></button>\n </div>\n </div>\n </div>\n </div>\n "
  2079. }
  2080. },
  2081. bootstrap5: {
  2082. icons: {
  2083. advancedSearchIcon: 'bi-chevron-down'
  2084. },
  2085. classes: {
  2086. formGroup: 'mb-3'
  2087. },
  2088. html: {
  2089. modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title toolbar-modal-title\"></h5>\n <button class=\"btn-close toolbar-modal-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\n </div>\n <div class=\"modal-body toolbar-modal-body\"></div>\n <div class=\"modal-footer toolbar-modal-footer\">\n <button class=\"btn btn-%s toolbar-modal-close\"></button>\n </div>\n </div>\n </div>\n </div>\n "
  2090. }
  2091. },
  2092. bulma: {
  2093. icons: {
  2094. advancedSearchIcon: 'fa-chevron-down'
  2095. },
  2096. classes: {},
  2097. html: {
  2098. modal: "\n <div class=\"modal\" id=\"avdSearchModal_%s\">\n <div class=\"modal-background\"></div>\n <div class=\"modal-card\">\n <header class=\"modal-card-head\">\n <p class=\"modal-card-title toolbar-modal-title\"></p>\n <button class=\"delete toolbar-modal-close\"></button>\n </header>\n <section class=\"modal-card-body toolbar-modal-body\"></section>\n <footer class=\"modal-card-foot toolbar-modal-footer\">\n <button class=\"button button-%s toolbar-modal-close\"></button>\n </footer>\n </div>\n </div>\n "
  2099. }
  2100. },
  2101. foundation: {
  2102. icons: {
  2103. advancedSearchIcon: 'fa-chevron-down'
  2104. },
  2105. classes: {},
  2106. html: {
  2107. modal: "\n <div class=\"reveal\" id=\"avdSearchModal_%s\" data-reveal>\n <h1 class=\"toolbar-modal-title\"></h1>\n <div class=\"toolbar-modal-body\"></div>\n <button class=\"close-button toolbar-modal-close\" data-close aria-label=\"Close modal\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n <div class=\"toolbar-modal-footer\">\n <button class=\"button button-%s toolbar-modal-close\"></button>\n </div>\n </div>\n "
  2108. }
  2109. },
  2110. materialize: {
  2111. icons: {
  2112. advancedSearchIcon: 'expand_more'
  2113. },
  2114. classes: {},
  2115. html: {
  2116. modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal\">\n <div class=\"modal-content\">\n <h4 class=\"toolbar-modal-title\"></h4>\n <div class=\"toolbar-modal-body\"></div>\n </div>\n <div class=\"modal-footer toolbar-modal-footer\">\n <a href=\"javascript:void(0)\" class=\"modal-close waves-effect waves-green btn-flat btn-%s toolbar-modal-close\"></a>\n </div>\n </div>\n "
  2117. }
  2118. },
  2119. semantic: {
  2120. icons: {
  2121. advancedSearchIcon: 'fa-chevron-down'
  2122. },
  2123. classes: {},
  2124. html: {
  2125. modal: "\n <div class=\"ui modal\" id=\"avdSearchModal_%s\">\n <i class=\"close icon toolbar-modal-close\"></i>\n <div class=\"header toolbar-modal-title\"\"></div>\n <div class=\"image content ui form toolbar-modal-body\"></div>\n <div class=\"actions toolbar-modal-footer\">\n <div class=\"ui black deny button button-%s toolbar-modal-close\"></div>\n </div>\n </div>\n "
  2126. }
  2127. }
  2128. }[$$b.fn.bootstrapTable.theme];
  2129. Object.assign($$b.fn.bootstrapTable.defaults, {
  2130. advancedSearch: false,
  2131. idForm: 'advancedSearch',
  2132. actionForm: '',
  2133. idTable: undefined,
  2134. // eslint-disable-next-line no-unused-vars
  2135. onColumnAdvancedSearch: function onColumnAdvancedSearch(field, text) {
  2136. return false;
  2137. }
  2138. });
  2139. Object.assign($$b.fn.bootstrapTable.defaults.icons, {
  2140. advancedSearchIcon: theme.icons.advancedSearchIcon
  2141. });
  2142. Object.assign($$b.fn.bootstrapTable.events, {
  2143. 'column-advanced-search.bs.table': 'onColumnAdvancedSearch'
  2144. });
  2145. Object.assign($$b.fn.bootstrapTable.locales, {
  2146. formatAdvancedSearch: function formatAdvancedSearch() {
  2147. return 'Advanced search';
  2148. },
  2149. formatAdvancedCloseButton: function formatAdvancedCloseButton() {
  2150. return 'Close';
  2151. }
  2152. });
  2153. Object.assign($$b.fn.bootstrapTable.defaults, $$b.fn.bootstrapTable.locales);
  2154. $$b.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  2155. function _class() {
  2156. _classCallCheck(this, _class);
  2157. return _callSuper(this, _class, arguments);
  2158. }
  2159. _inherits(_class, _$$BootstrapTable);
  2160. return _createClass(_class, [{
  2161. key: "initToolbar",
  2162. value: function initToolbar() {
  2163. this.showToolbar = this.showToolbar || this.options.search && this.options.advancedSearch && this.options.idTable;
  2164. if (this.showToolbar) {
  2165. this.buttons = Object.assign(this.buttons, {
  2166. advancedSearch: {
  2167. text: this.options.formatAdvancedSearch(),
  2168. icon: this.options.icons.advancedSearchIcon,
  2169. event: this.showAdvancedSearch,
  2170. attributes: {
  2171. 'aria-label': this.options.formatAdvancedSearch(),
  2172. title: this.options.formatAdvancedSearch()
  2173. }
  2174. }
  2175. });
  2176. if (Utils.isEmptyObject(this.filterColumnsPartial)) {
  2177. this.filterColumnsPartial = {};
  2178. }
  2179. }
  2180. _get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);
  2181. }
  2182. }, {
  2183. key: "showAdvancedSearch",
  2184. value: function showAdvancedSearch() {
  2185. var _this = this;
  2186. this.$toolbarModal = $$b("#avdSearchModal_".concat(this.options.idTable));
  2187. if (this.$toolbarModal.length <= 0) {
  2188. $$b('body').append(Utils.sprintf(theme.html.modal, this.options.idTable, this.options.buttonsClass));
  2189. this.$toolbarModal = $$b("#avdSearchModal_".concat(this.options.idTable));
  2190. this.$toolbarModal.find('.toolbar-modal-close').off('click').on('click', function () {
  2191. return _this.hideToolbarModal();
  2192. });
  2193. }
  2194. this.initToolbarModalBody();
  2195. this.showToolbarModal();
  2196. }
  2197. }, {
  2198. key: "initToolbarModalBody",
  2199. value: function initToolbarModalBody() {
  2200. var _this2 = this;
  2201. this.$toolbarModal.find('.toolbar-modal-title').html(this.options.formatAdvancedSearch());
  2202. this.$toolbarModal.find('.toolbar-modal-footer .toolbar-modal-close').html(this.options.formatAdvancedCloseButton());
  2203. this.$toolbarModal.find('.toolbar-modal-body').html(this.createToolbarForm()).off('keyup blur', 'input').on('keyup blur', 'input', function (e) {
  2204. _this2.onColumnAdvancedSearch(e);
  2205. });
  2206. }
  2207. }, {
  2208. key: "showToolbarModal",
  2209. value: function showToolbarModal() {
  2210. var theme = $$b.fn.bootstrapTable.theme;
  2211. if (['bootstrap3', 'bootstrap4'].includes(theme)) {
  2212. this.$toolbarModal.modal();
  2213. } else if (theme === 'bootstrap5') {
  2214. if (!this.toolbarModal) {
  2215. this.toolbarModal = new window.bootstrap.Modal(this.$toolbarModal[0], {});
  2216. }
  2217. this.toolbarModal.show();
  2218. } else if (theme === 'bulma') {
  2219. this.$toolbarModal.toggleClass('is-active');
  2220. } else if (theme === 'foundation') {
  2221. if (!this.toolbarModal) {
  2222. this.toolbarModal = new window.Foundation.Reveal(this.$toolbarModal);
  2223. }
  2224. this.toolbarModal.open();
  2225. } else if (theme === 'materialize') {
  2226. this.$toolbarModal.modal().modal('open');
  2227. } else if (theme === 'semantic') {
  2228. this.$toolbarModal.modal('show');
  2229. }
  2230. }
  2231. }, {
  2232. key: "hideToolbarModal",
  2233. value: function hideToolbarModal() {
  2234. var theme = $$b.fn.bootstrapTable.theme;
  2235. if (['bootstrap3', 'bootstrap4'].includes(theme)) {
  2236. this.$toolbarModal.modal('hide');
  2237. } else if (theme === 'bootstrap5') {
  2238. this.toolbarModal.hide();
  2239. } else if (theme === 'bulma') {
  2240. $$b('html').toggleClass('is-clipped');
  2241. this.$toolbarModal.toggleClass('is-active');
  2242. } else if (theme === 'foundation') {
  2243. this.toolbarModal.close();
  2244. } else if (theme === 'materialize') {
  2245. this.$toolbarModal.modal('open');
  2246. } else if (theme === 'semantic') {
  2247. this.$toolbarModal.modal('close');
  2248. }
  2249. if (this.options.sidePagination === 'server') {
  2250. this.options.pageNumber = 1;
  2251. this.updatePagination();
  2252. this.trigger('column-advanced-search', this.filterColumnsPartial);
  2253. }
  2254. }
  2255. }, {
  2256. key: "createToolbarForm",
  2257. value: function createToolbarForm() {
  2258. var html = ["<form class=\"form-horizontal toolbar-model-form\" action=\"".concat(this.options.actionForm, "\">")];
  2259. var _iterator = _createForOfIteratorHelper(this.columns),
  2260. _step;
  2261. try {
  2262. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  2263. var column = _step.value;
  2264. if (!column.checkbox && column.visible && column.searchable) {
  2265. var title = $$b('<div/>').html(column.title).text().trim();
  2266. var value = this.filterColumnsPartial[column.field] || '';
  2267. html.push("\n <div class=\"form-group row ".concat(theme.classes.formGroup || '', "\">\n <label class=\"col-sm-4 control-label\">").concat(title, "</label>\n <div class=\"col-sm-6\">\n <input type=\"text\" class=\"form-control ").concat(this.constants.classes.input, "\"\n name=\"").concat(column.field, "\" placeholder=\"").concat(title, "\" value=\"").concat(value, "\">\n </div>\n </div>\n "));
  2268. }
  2269. }
  2270. } catch (err) {
  2271. _iterator.e(err);
  2272. } finally {
  2273. _iterator.f();
  2274. }
  2275. html.push('</form>');
  2276. return html.join('');
  2277. }
  2278. }, {
  2279. key: "initSearch",
  2280. value: function initSearch() {
  2281. var _this3 = this;
  2282. _get(_getPrototypeOf(_class.prototype), "initSearch", this).call(this);
  2283. if (!this.options.advancedSearch || this.options.sidePagination === 'server') {
  2284. return;
  2285. }
  2286. var fp = Utils.isEmptyObject(this.filterColumnsPartial) ? null : this.filterColumnsPartial;
  2287. this.data = fp ? this.data.filter(function (item, i) {
  2288. for (var _i = 0, _Object$entries = Object.entries(fp); _i < _Object$entries.length; _i++) {
  2289. var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
  2290. key = _Object$entries$_i[0],
  2291. v = _Object$entries$_i[1];
  2292. var val = v.toLowerCase();
  2293. var value = item[key];
  2294. var index = _this3.header.fields.indexOf(key);
  2295. value = Utils.calculateObjectValue(_this3.header, _this3.header.formatters[index], [value, item, i], value);
  2296. if (!(index !== -1 && (typeof value === 'string' || typeof value === 'number') && "".concat(value).toLowerCase().includes(val))) {
  2297. return false;
  2298. }
  2299. }
  2300. return true;
  2301. }) : this.data;
  2302. this.unsortedData = _toConsumableArray(this.data);
  2303. }
  2304. }, {
  2305. key: "onColumnAdvancedSearch",
  2306. value: function onColumnAdvancedSearch(e) {
  2307. var text = $$b(e.currentTarget).val().trim();
  2308. var field = $$b(e.currentTarget).attr('name');
  2309. if (text) {
  2310. this.filterColumnsPartial[field] = text;
  2311. } else {
  2312. delete this.filterColumnsPartial[field];
  2313. }
  2314. if (this.options.sidePagination !== 'server') {
  2315. this.options.pageNumber = 1;
  2316. this.initSearch();
  2317. this.updatePagination();
  2318. this.trigger('column-advanced-search', field, text);
  2319. }
  2320. }
  2321. }]);
  2322. }($$b.BootstrapTable);
  2323. }));