bootstrap-table-addrbar.js 113 KB

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