app.js 77 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629
  1. /******/ (() => { // webpackBootstrap
  2. /******/ var __webpack_modules__ = ({
  3. /***/ "./node_modules/axios/index.js":
  4. /*!*************************************!*\
  5. !*** ./node_modules/axios/index.js ***!
  6. \*************************************/
  7. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  8. module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js");
  9. /***/ }),
  10. /***/ "./node_modules/axios/lib/adapters/xhr.js":
  11. /*!************************************************!*\
  12. !*** ./node_modules/axios/lib/adapters/xhr.js ***!
  13. \************************************************/
  14. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  15. "use strict";
  16. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  17. var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js");
  18. var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js");
  19. var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
  20. var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js");
  21. var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js");
  22. var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js");
  23. var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js");
  24. var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js");
  25. var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
  26. module.exports = function xhrAdapter(config) {
  27. return new Promise(function dispatchXhrRequest(resolve, reject) {
  28. var requestData = config.data;
  29. var requestHeaders = config.headers;
  30. var responseType = config.responseType;
  31. var onCanceled;
  32. function done() {
  33. if (config.cancelToken) {
  34. config.cancelToken.unsubscribe(onCanceled);
  35. }
  36. if (config.signal) {
  37. config.signal.removeEventListener('abort', onCanceled);
  38. }
  39. }
  40. if (utils.isFormData(requestData)) {
  41. delete requestHeaders['Content-Type']; // Let the browser set it
  42. }
  43. var request = new XMLHttpRequest();
  44. // HTTP basic authentication
  45. if (config.auth) {
  46. var username = config.auth.username || '';
  47. var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
  48. requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
  49. }
  50. var fullPath = buildFullPath(config.baseURL, config.url);
  51. request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
  52. // Set the request timeout in MS
  53. request.timeout = config.timeout;
  54. function onloadend() {
  55. if (!request) {
  56. return;
  57. }
  58. // Prepare the response
  59. var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
  60. var responseData = !responseType || responseType === 'text' || responseType === 'json' ?
  61. request.responseText : request.response;
  62. var response = {
  63. data: responseData,
  64. status: request.status,
  65. statusText: request.statusText,
  66. headers: responseHeaders,
  67. config: config,
  68. request: request
  69. };
  70. settle(function _resolve(value) {
  71. resolve(value);
  72. done();
  73. }, function _reject(err) {
  74. reject(err);
  75. done();
  76. }, response);
  77. // Clean up request
  78. request = null;
  79. }
  80. if ('onloadend' in request) {
  81. // Use onloadend if available
  82. request.onloadend = onloadend;
  83. } else {
  84. // Listen for ready state to emulate onloadend
  85. request.onreadystatechange = function handleLoad() {
  86. if (!request || request.readyState !== 4) {
  87. return;
  88. }
  89. // The request errored out and we didn't get a response, this will be
  90. // handled by onerror instead
  91. // With one exception: request that using file: protocol, most browsers
  92. // will return status as 0 even though it's a successful request
  93. if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
  94. return;
  95. }
  96. // readystate handler is calling before onerror or ontimeout handlers,
  97. // so we should call onloadend on the next 'tick'
  98. setTimeout(onloadend);
  99. };
  100. }
  101. // Handle browser request cancellation (as opposed to a manual cancellation)
  102. request.onabort = function handleAbort() {
  103. if (!request) {
  104. return;
  105. }
  106. reject(createError('Request aborted', config, 'ECONNABORTED', request));
  107. // Clean up request
  108. request = null;
  109. };
  110. // Handle low level network errors
  111. request.onerror = function handleError() {
  112. // Real errors are hidden from us by the browser
  113. // onerror should only fire if it's a network error
  114. reject(createError('Network Error', config, null, request));
  115. // Clean up request
  116. request = null;
  117. };
  118. // Handle timeout
  119. request.ontimeout = function handleTimeout() {
  120. var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
  121. var transitional = config.transitional || defaults.transitional;
  122. if (config.timeoutErrorMessage) {
  123. timeoutErrorMessage = config.timeoutErrorMessage;
  124. }
  125. reject(createError(
  126. timeoutErrorMessage,
  127. config,
  128. transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
  129. request));
  130. // Clean up request
  131. request = null;
  132. };
  133. // Add xsrf header
  134. // This is only done if running in a standard browser environment.
  135. // Specifically not if we're in a web worker, or react-native.
  136. if (utils.isStandardBrowserEnv()) {
  137. // Add xsrf header
  138. var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
  139. cookies.read(config.xsrfCookieName) :
  140. undefined;
  141. if (xsrfValue) {
  142. requestHeaders[config.xsrfHeaderName] = xsrfValue;
  143. }
  144. }
  145. // Add headers to the request
  146. if ('setRequestHeader' in request) {
  147. utils.forEach(requestHeaders, function setRequestHeader(val, key) {
  148. if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
  149. // Remove Content-Type if data is undefined
  150. delete requestHeaders[key];
  151. } else {
  152. // Otherwise add header to the request
  153. request.setRequestHeader(key, val);
  154. }
  155. });
  156. }
  157. // Add withCredentials to request if needed
  158. if (!utils.isUndefined(config.withCredentials)) {
  159. request.withCredentials = !!config.withCredentials;
  160. }
  161. // Add responseType to request if needed
  162. if (responseType && responseType !== 'json') {
  163. request.responseType = config.responseType;
  164. }
  165. // Handle progress if needed
  166. if (typeof config.onDownloadProgress === 'function') {
  167. request.addEventListener('progress', config.onDownloadProgress);
  168. }
  169. // Not all browsers support upload events
  170. if (typeof config.onUploadProgress === 'function' && request.upload) {
  171. request.upload.addEventListener('progress', config.onUploadProgress);
  172. }
  173. if (config.cancelToken || config.signal) {
  174. // Handle cancellation
  175. // eslint-disable-next-line func-names
  176. onCanceled = function(cancel) {
  177. if (!request) {
  178. return;
  179. }
  180. reject(!cancel || (cancel && cancel.type) ? new Cancel('canceled') : cancel);
  181. request.abort();
  182. request = null;
  183. };
  184. config.cancelToken && config.cancelToken.subscribe(onCanceled);
  185. if (config.signal) {
  186. config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
  187. }
  188. }
  189. if (!requestData) {
  190. requestData = null;
  191. }
  192. // Send the request
  193. request.send(requestData);
  194. });
  195. };
  196. /***/ }),
  197. /***/ "./node_modules/axios/lib/axios.js":
  198. /*!*****************************************!*\
  199. !*** ./node_modules/axios/lib/axios.js ***!
  200. \*****************************************/
  201. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  202. "use strict";
  203. var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
  204. var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
  205. var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js");
  206. var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
  207. var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js");
  208. /**
  209. * Create an instance of Axios
  210. *
  211. * @param {Object} defaultConfig The default config for the instance
  212. * @return {Axios} A new instance of Axios
  213. */
  214. function createInstance(defaultConfig) {
  215. var context = new Axios(defaultConfig);
  216. var instance = bind(Axios.prototype.request, context);
  217. // Copy axios.prototype to instance
  218. utils.extend(instance, Axios.prototype, context);
  219. // Copy context to instance
  220. utils.extend(instance, context);
  221. // Factory for creating new instances
  222. instance.create = function create(instanceConfig) {
  223. return createInstance(mergeConfig(defaultConfig, instanceConfig));
  224. };
  225. return instance;
  226. }
  227. // Create the default instance to be exported
  228. var axios = createInstance(defaults);
  229. // Expose Axios class to allow class inheritance
  230. axios.Axios = Axios;
  231. // Expose Cancel & CancelToken
  232. axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
  233. axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js");
  234. axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
  235. axios.VERSION = (__webpack_require__(/*! ./env/data */ "./node_modules/axios/lib/env/data.js").version);
  236. // Expose all/spread
  237. axios.all = function all(promises) {
  238. return Promise.all(promises);
  239. };
  240. axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js");
  241. // Expose isAxiosError
  242. axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./node_modules/axios/lib/helpers/isAxiosError.js");
  243. module.exports = axios;
  244. // Allow use of default import syntax in TypeScript
  245. module.exports["default"] = axios;
  246. /***/ }),
  247. /***/ "./node_modules/axios/lib/cancel/Cancel.js":
  248. /*!*************************************************!*\
  249. !*** ./node_modules/axios/lib/cancel/Cancel.js ***!
  250. \*************************************************/
  251. /***/ ((module) => {
  252. "use strict";
  253. /**
  254. * A `Cancel` is an object that is thrown when an operation is canceled.
  255. *
  256. * @class
  257. * @param {string=} message The message.
  258. */
  259. function Cancel(message) {
  260. this.message = message;
  261. }
  262. Cancel.prototype.toString = function toString() {
  263. return 'Cancel' + (this.message ? ': ' + this.message : '');
  264. };
  265. Cancel.prototype.__CANCEL__ = true;
  266. module.exports = Cancel;
  267. /***/ }),
  268. /***/ "./node_modules/axios/lib/cancel/CancelToken.js":
  269. /*!******************************************************!*\
  270. !*** ./node_modules/axios/lib/cancel/CancelToken.js ***!
  271. \******************************************************/
  272. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  273. "use strict";
  274. var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
  275. /**
  276. * A `CancelToken` is an object that can be used to request cancellation of an operation.
  277. *
  278. * @class
  279. * @param {Function} executor The executor function.
  280. */
  281. function CancelToken(executor) {
  282. if (typeof executor !== 'function') {
  283. throw new TypeError('executor must be a function.');
  284. }
  285. var resolvePromise;
  286. this.promise = new Promise(function promiseExecutor(resolve) {
  287. resolvePromise = resolve;
  288. });
  289. var token = this;
  290. // eslint-disable-next-line func-names
  291. this.promise.then(function(cancel) {
  292. if (!token._listeners) return;
  293. var i;
  294. var l = token._listeners.length;
  295. for (i = 0; i < l; i++) {
  296. token._listeners[i](cancel);
  297. }
  298. token._listeners = null;
  299. });
  300. // eslint-disable-next-line func-names
  301. this.promise.then = function(onfulfilled) {
  302. var _resolve;
  303. // eslint-disable-next-line func-names
  304. var promise = new Promise(function(resolve) {
  305. token.subscribe(resolve);
  306. _resolve = resolve;
  307. }).then(onfulfilled);
  308. promise.cancel = function reject() {
  309. token.unsubscribe(_resolve);
  310. };
  311. return promise;
  312. };
  313. executor(function cancel(message) {
  314. if (token.reason) {
  315. // Cancellation has already been requested
  316. return;
  317. }
  318. token.reason = new Cancel(message);
  319. resolvePromise(token.reason);
  320. });
  321. }
  322. /**
  323. * Throws a `Cancel` if cancellation has been requested.
  324. */
  325. CancelToken.prototype.throwIfRequested = function throwIfRequested() {
  326. if (this.reason) {
  327. throw this.reason;
  328. }
  329. };
  330. /**
  331. * Subscribe to the cancel signal
  332. */
  333. CancelToken.prototype.subscribe = function subscribe(listener) {
  334. if (this.reason) {
  335. listener(this.reason);
  336. return;
  337. }
  338. if (this._listeners) {
  339. this._listeners.push(listener);
  340. } else {
  341. this._listeners = [listener];
  342. }
  343. };
  344. /**
  345. * Unsubscribe from the cancel signal
  346. */
  347. CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
  348. if (!this._listeners) {
  349. return;
  350. }
  351. var index = this._listeners.indexOf(listener);
  352. if (index !== -1) {
  353. this._listeners.splice(index, 1);
  354. }
  355. };
  356. /**
  357. * Returns an object that contains a new `CancelToken` and a function that, when called,
  358. * cancels the `CancelToken`.
  359. */
  360. CancelToken.source = function source() {
  361. var cancel;
  362. var token = new CancelToken(function executor(c) {
  363. cancel = c;
  364. });
  365. return {
  366. token: token,
  367. cancel: cancel
  368. };
  369. };
  370. module.exports = CancelToken;
  371. /***/ }),
  372. /***/ "./node_modules/axios/lib/cancel/isCancel.js":
  373. /*!***************************************************!*\
  374. !*** ./node_modules/axios/lib/cancel/isCancel.js ***!
  375. \***************************************************/
  376. /***/ ((module) => {
  377. "use strict";
  378. module.exports = function isCancel(value) {
  379. return !!(value && value.__CANCEL__);
  380. };
  381. /***/ }),
  382. /***/ "./node_modules/axios/lib/core/Axios.js":
  383. /*!**********************************************!*\
  384. !*** ./node_modules/axios/lib/core/Axios.js ***!
  385. \**********************************************/
  386. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  387. "use strict";
  388. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  389. var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js");
  390. var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js");
  391. var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js");
  392. var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js");
  393. var validator = __webpack_require__(/*! ../helpers/validator */ "./node_modules/axios/lib/helpers/validator.js");
  394. var validators = validator.validators;
  395. /**
  396. * Create a new instance of Axios
  397. *
  398. * @param {Object} instanceConfig The default config for the instance
  399. */
  400. function Axios(instanceConfig) {
  401. this.defaults = instanceConfig;
  402. this.interceptors = {
  403. request: new InterceptorManager(),
  404. response: new InterceptorManager()
  405. };
  406. }
  407. /**
  408. * Dispatch a request
  409. *
  410. * @param {Object} config The config specific for this request (merged with this.defaults)
  411. */
  412. Axios.prototype.request = function request(configOrUrl, config) {
  413. /*eslint no-param-reassign:0*/
  414. // Allow for axios('example/url'[, config]) a la fetch API
  415. if (typeof configOrUrl === 'string') {
  416. config = config || {};
  417. config.url = configOrUrl;
  418. } else {
  419. config = configOrUrl || {};
  420. }
  421. if (!config.url) {
  422. throw new Error('Provided config url is not valid');
  423. }
  424. config = mergeConfig(this.defaults, config);
  425. // Set config.method
  426. if (config.method) {
  427. config.method = config.method.toLowerCase();
  428. } else if (this.defaults.method) {
  429. config.method = this.defaults.method.toLowerCase();
  430. } else {
  431. config.method = 'get';
  432. }
  433. var transitional = config.transitional;
  434. if (transitional !== undefined) {
  435. validator.assertOptions(transitional, {
  436. silentJSONParsing: validators.transitional(validators.boolean),
  437. forcedJSONParsing: validators.transitional(validators.boolean),
  438. clarifyTimeoutError: validators.transitional(validators.boolean)
  439. }, false);
  440. }
  441. // filter out skipped interceptors
  442. var requestInterceptorChain = [];
  443. var synchronousRequestInterceptors = true;
  444. this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
  445. if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
  446. return;
  447. }
  448. synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
  449. requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
  450. });
  451. var responseInterceptorChain = [];
  452. this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
  453. responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
  454. });
  455. var promise;
  456. if (!synchronousRequestInterceptors) {
  457. var chain = [dispatchRequest, undefined];
  458. Array.prototype.unshift.apply(chain, requestInterceptorChain);
  459. chain = chain.concat(responseInterceptorChain);
  460. promise = Promise.resolve(config);
  461. while (chain.length) {
  462. promise = promise.then(chain.shift(), chain.shift());
  463. }
  464. return promise;
  465. }
  466. var newConfig = config;
  467. while (requestInterceptorChain.length) {
  468. var onFulfilled = requestInterceptorChain.shift();
  469. var onRejected = requestInterceptorChain.shift();
  470. try {
  471. newConfig = onFulfilled(newConfig);
  472. } catch (error) {
  473. onRejected(error);
  474. break;
  475. }
  476. }
  477. try {
  478. promise = dispatchRequest(newConfig);
  479. } catch (error) {
  480. return Promise.reject(error);
  481. }
  482. while (responseInterceptorChain.length) {
  483. promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
  484. }
  485. return promise;
  486. };
  487. Axios.prototype.getUri = function getUri(config) {
  488. if (!config.url) {
  489. throw new Error('Provided config url is not valid');
  490. }
  491. config = mergeConfig(this.defaults, config);
  492. return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
  493. };
  494. // Provide aliases for supported request methods
  495. utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
  496. /*eslint func-names:0*/
  497. Axios.prototype[method] = function(url, config) {
  498. return this.request(mergeConfig(config || {}, {
  499. method: method,
  500. url: url,
  501. data: (config || {}).data
  502. }));
  503. };
  504. });
  505. utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  506. /*eslint func-names:0*/
  507. Axios.prototype[method] = function(url, data, config) {
  508. return this.request(mergeConfig(config || {}, {
  509. method: method,
  510. url: url,
  511. data: data
  512. }));
  513. };
  514. });
  515. module.exports = Axios;
  516. /***/ }),
  517. /***/ "./node_modules/axios/lib/core/InterceptorManager.js":
  518. /*!***********************************************************!*\
  519. !*** ./node_modules/axios/lib/core/InterceptorManager.js ***!
  520. \***********************************************************/
  521. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  522. "use strict";
  523. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  524. function InterceptorManager() {
  525. this.handlers = [];
  526. }
  527. /**
  528. * Add a new interceptor to the stack
  529. *
  530. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  531. * @param {Function} rejected The function to handle `reject` for a `Promise`
  532. *
  533. * @return {Number} An ID used to remove interceptor later
  534. */
  535. InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
  536. this.handlers.push({
  537. fulfilled: fulfilled,
  538. rejected: rejected,
  539. synchronous: options ? options.synchronous : false,
  540. runWhen: options ? options.runWhen : null
  541. });
  542. return this.handlers.length - 1;
  543. };
  544. /**
  545. * Remove an interceptor from the stack
  546. *
  547. * @param {Number} id The ID that was returned by `use`
  548. */
  549. InterceptorManager.prototype.eject = function eject(id) {
  550. if (this.handlers[id]) {
  551. this.handlers[id] = null;
  552. }
  553. };
  554. /**
  555. * Iterate over all the registered interceptors
  556. *
  557. * This method is particularly useful for skipping over any
  558. * interceptors that may have become `null` calling `eject`.
  559. *
  560. * @param {Function} fn The function to call for each interceptor
  561. */
  562. InterceptorManager.prototype.forEach = function forEach(fn) {
  563. utils.forEach(this.handlers, function forEachHandler(h) {
  564. if (h !== null) {
  565. fn(h);
  566. }
  567. });
  568. };
  569. module.exports = InterceptorManager;
  570. /***/ }),
  571. /***/ "./node_modules/axios/lib/core/buildFullPath.js":
  572. /*!******************************************************!*\
  573. !*** ./node_modules/axios/lib/core/buildFullPath.js ***!
  574. \******************************************************/
  575. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  576. "use strict";
  577. var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js");
  578. var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js");
  579. /**
  580. * Creates a new URL by combining the baseURL with the requestedURL,
  581. * only when the requestedURL is not already an absolute URL.
  582. * If the requestURL is absolute, this function returns the requestedURL untouched.
  583. *
  584. * @param {string} baseURL The base URL
  585. * @param {string} requestedURL Absolute or relative URL to combine
  586. * @returns {string} The combined full path
  587. */
  588. module.exports = function buildFullPath(baseURL, requestedURL) {
  589. if (baseURL && !isAbsoluteURL(requestedURL)) {
  590. return combineURLs(baseURL, requestedURL);
  591. }
  592. return requestedURL;
  593. };
  594. /***/ }),
  595. /***/ "./node_modules/axios/lib/core/createError.js":
  596. /*!****************************************************!*\
  597. !*** ./node_modules/axios/lib/core/createError.js ***!
  598. \****************************************************/
  599. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  600. "use strict";
  601. var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js");
  602. /**
  603. * Create an Error with the specified message, config, error code, request and response.
  604. *
  605. * @param {string} message The error message.
  606. * @param {Object} config The config.
  607. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  608. * @param {Object} [request] The request.
  609. * @param {Object} [response] The response.
  610. * @returns {Error} The created error.
  611. */
  612. module.exports = function createError(message, config, code, request, response) {
  613. var error = new Error(message);
  614. return enhanceError(error, config, code, request, response);
  615. };
  616. /***/ }),
  617. /***/ "./node_modules/axios/lib/core/dispatchRequest.js":
  618. /*!********************************************************!*\
  619. !*** ./node_modules/axios/lib/core/dispatchRequest.js ***!
  620. \********************************************************/
  621. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  622. "use strict";
  623. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  624. var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js");
  625. var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js");
  626. var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js");
  627. var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js");
  628. /**
  629. * Throws a `Cancel` if cancellation has been requested.
  630. */
  631. function throwIfCancellationRequested(config) {
  632. if (config.cancelToken) {
  633. config.cancelToken.throwIfRequested();
  634. }
  635. if (config.signal && config.signal.aborted) {
  636. throw new Cancel('canceled');
  637. }
  638. }
  639. /**
  640. * Dispatch a request to the server using the configured adapter.
  641. *
  642. * @param {object} config The config that is to be used for the request
  643. * @returns {Promise} The Promise to be fulfilled
  644. */
  645. module.exports = function dispatchRequest(config) {
  646. throwIfCancellationRequested(config);
  647. // Ensure headers exist
  648. config.headers = config.headers || {};
  649. // Transform request data
  650. config.data = transformData.call(
  651. config,
  652. config.data,
  653. config.headers,
  654. config.transformRequest
  655. );
  656. // Flatten headers
  657. config.headers = utils.merge(
  658. config.headers.common || {},
  659. config.headers[config.method] || {},
  660. config.headers
  661. );
  662. utils.forEach(
  663. ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
  664. function cleanHeaderConfig(method) {
  665. delete config.headers[method];
  666. }
  667. );
  668. var adapter = config.adapter || defaults.adapter;
  669. return adapter(config).then(function onAdapterResolution(response) {
  670. throwIfCancellationRequested(config);
  671. // Transform response data
  672. response.data = transformData.call(
  673. config,
  674. response.data,
  675. response.headers,
  676. config.transformResponse
  677. );
  678. return response;
  679. }, function onAdapterRejection(reason) {
  680. if (!isCancel(reason)) {
  681. throwIfCancellationRequested(config);
  682. // Transform response data
  683. if (reason && reason.response) {
  684. reason.response.data = transformData.call(
  685. config,
  686. reason.response.data,
  687. reason.response.headers,
  688. config.transformResponse
  689. );
  690. }
  691. }
  692. return Promise.reject(reason);
  693. });
  694. };
  695. /***/ }),
  696. /***/ "./node_modules/axios/lib/core/enhanceError.js":
  697. /*!*****************************************************!*\
  698. !*** ./node_modules/axios/lib/core/enhanceError.js ***!
  699. \*****************************************************/
  700. /***/ ((module) => {
  701. "use strict";
  702. /**
  703. * Update an Error with the specified config, error code, and response.
  704. *
  705. * @param {Error} error The error to update.
  706. * @param {Object} config The config.
  707. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  708. * @param {Object} [request] The request.
  709. * @param {Object} [response] The response.
  710. * @returns {Error} The error.
  711. */
  712. module.exports = function enhanceError(error, config, code, request, response) {
  713. error.config = config;
  714. if (code) {
  715. error.code = code;
  716. }
  717. error.request = request;
  718. error.response = response;
  719. error.isAxiosError = true;
  720. error.toJSON = function toJSON() {
  721. return {
  722. // Standard
  723. message: this.message,
  724. name: this.name,
  725. // Microsoft
  726. description: this.description,
  727. number: this.number,
  728. // Mozilla
  729. fileName: this.fileName,
  730. lineNumber: this.lineNumber,
  731. columnNumber: this.columnNumber,
  732. stack: this.stack,
  733. // Axios
  734. config: this.config,
  735. code: this.code,
  736. status: this.response && this.response.status ? this.response.status : null
  737. };
  738. };
  739. return error;
  740. };
  741. /***/ }),
  742. /***/ "./node_modules/axios/lib/core/mergeConfig.js":
  743. /*!****************************************************!*\
  744. !*** ./node_modules/axios/lib/core/mergeConfig.js ***!
  745. \****************************************************/
  746. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  747. "use strict";
  748. var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
  749. /**
  750. * Config-specific merge-function which creates a new config-object
  751. * by merging two configuration objects together.
  752. *
  753. * @param {Object} config1
  754. * @param {Object} config2
  755. * @returns {Object} New object resulting from merging config2 to config1
  756. */
  757. module.exports = function mergeConfig(config1, config2) {
  758. // eslint-disable-next-line no-param-reassign
  759. config2 = config2 || {};
  760. var config = {};
  761. function getMergedValue(target, source) {
  762. if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
  763. return utils.merge(target, source);
  764. } else if (utils.isPlainObject(source)) {
  765. return utils.merge({}, source);
  766. } else if (utils.isArray(source)) {
  767. return source.slice();
  768. }
  769. return source;
  770. }
  771. // eslint-disable-next-line consistent-return
  772. function mergeDeepProperties(prop) {
  773. if (!utils.isUndefined(config2[prop])) {
  774. return getMergedValue(config1[prop], config2[prop]);
  775. } else if (!utils.isUndefined(config1[prop])) {
  776. return getMergedValue(undefined, config1[prop]);
  777. }
  778. }
  779. // eslint-disable-next-line consistent-return
  780. function valueFromConfig2(prop) {
  781. if (!utils.isUndefined(config2[prop])) {
  782. return getMergedValue(undefined, config2[prop]);
  783. }
  784. }
  785. // eslint-disable-next-line consistent-return
  786. function defaultToConfig2(prop) {
  787. if (!utils.isUndefined(config2[prop])) {
  788. return getMergedValue(undefined, config2[prop]);
  789. } else if (!utils.isUndefined(config1[prop])) {
  790. return getMergedValue(undefined, config1[prop]);
  791. }
  792. }
  793. // eslint-disable-next-line consistent-return
  794. function mergeDirectKeys(prop) {
  795. if (prop in config2) {
  796. return getMergedValue(config1[prop], config2[prop]);
  797. } else if (prop in config1) {
  798. return getMergedValue(undefined, config1[prop]);
  799. }
  800. }
  801. var mergeMap = {
  802. 'url': valueFromConfig2,
  803. 'method': valueFromConfig2,
  804. 'data': valueFromConfig2,
  805. 'baseURL': defaultToConfig2,
  806. 'transformRequest': defaultToConfig2,
  807. 'transformResponse': defaultToConfig2,
  808. 'paramsSerializer': defaultToConfig2,
  809. 'timeout': defaultToConfig2,
  810. 'timeoutMessage': defaultToConfig2,
  811. 'withCredentials': defaultToConfig2,
  812. 'adapter': defaultToConfig2,
  813. 'responseType': defaultToConfig2,
  814. 'xsrfCookieName': defaultToConfig2,
  815. 'xsrfHeaderName': defaultToConfig2,
  816. 'onUploadProgress': defaultToConfig2,
  817. 'onDownloadProgress': defaultToConfig2,
  818. 'decompress': defaultToConfig2,
  819. 'maxContentLength': defaultToConfig2,
  820. 'maxBodyLength': defaultToConfig2,
  821. 'transport': defaultToConfig2,
  822. 'httpAgent': defaultToConfig2,
  823. 'httpsAgent': defaultToConfig2,
  824. 'cancelToken': defaultToConfig2,
  825. 'socketPath': defaultToConfig2,
  826. 'responseEncoding': defaultToConfig2,
  827. 'validateStatus': mergeDirectKeys
  828. };
  829. utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
  830. var merge = mergeMap[prop] || mergeDeepProperties;
  831. var configValue = merge(prop);
  832. (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
  833. });
  834. return config;
  835. };
  836. /***/ }),
  837. /***/ "./node_modules/axios/lib/core/settle.js":
  838. /*!***********************************************!*\
  839. !*** ./node_modules/axios/lib/core/settle.js ***!
  840. \***********************************************/
  841. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  842. "use strict";
  843. var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js");
  844. /**
  845. * Resolve or reject a Promise based on response status.
  846. *
  847. * @param {Function} resolve A function that resolves the promise.
  848. * @param {Function} reject A function that rejects the promise.
  849. * @param {object} response The response.
  850. */
  851. module.exports = function settle(resolve, reject, response) {
  852. var validateStatus = response.config.validateStatus;
  853. if (!response.status || !validateStatus || validateStatus(response.status)) {
  854. resolve(response);
  855. } else {
  856. reject(createError(
  857. 'Request failed with status code ' + response.status,
  858. response.config,
  859. null,
  860. response.request,
  861. response
  862. ));
  863. }
  864. };
  865. /***/ }),
  866. /***/ "./node_modules/axios/lib/core/transformData.js":
  867. /*!******************************************************!*\
  868. !*** ./node_modules/axios/lib/core/transformData.js ***!
  869. \******************************************************/
  870. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  871. "use strict";
  872. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  873. var defaults = __webpack_require__(/*! ./../defaults */ "./node_modules/axios/lib/defaults.js");
  874. /**
  875. * Transform the data for a request or a response
  876. *
  877. * @param {Object|String} data The data to be transformed
  878. * @param {Array} headers The headers for the request or response
  879. * @param {Array|Function} fns A single function or Array of functions
  880. * @returns {*} The resulting transformed data
  881. */
  882. module.exports = function transformData(data, headers, fns) {
  883. var context = this || defaults;
  884. /*eslint no-param-reassign:0*/
  885. utils.forEach(fns, function transform(fn) {
  886. data = fn.call(context, data, headers);
  887. });
  888. return data;
  889. };
  890. /***/ }),
  891. /***/ "./node_modules/axios/lib/defaults.js":
  892. /*!********************************************!*\
  893. !*** ./node_modules/axios/lib/defaults.js ***!
  894. \********************************************/
  895. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  896. "use strict";
  897. /* provided dependency */ var process = __webpack_require__(/*! process/browser.js */ "./node_modules/process/browser.js");
  898. var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js");
  899. var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js");
  900. var enhanceError = __webpack_require__(/*! ./core/enhanceError */ "./node_modules/axios/lib/core/enhanceError.js");
  901. var DEFAULT_CONTENT_TYPE = {
  902. 'Content-Type': 'application/x-www-form-urlencoded'
  903. };
  904. function setContentTypeIfUnset(headers, value) {
  905. if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
  906. headers['Content-Type'] = value;
  907. }
  908. }
  909. function getDefaultAdapter() {
  910. var adapter;
  911. if (typeof XMLHttpRequest !== 'undefined') {
  912. // For browsers use XHR adapter
  913. adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js");
  914. } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
  915. // For node use HTTP adapter
  916. adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js");
  917. }
  918. return adapter;
  919. }
  920. function stringifySafely(rawValue, parser, encoder) {
  921. if (utils.isString(rawValue)) {
  922. try {
  923. (parser || JSON.parse)(rawValue);
  924. return utils.trim(rawValue);
  925. } catch (e) {
  926. if (e.name !== 'SyntaxError') {
  927. throw e;
  928. }
  929. }
  930. }
  931. return (encoder || JSON.stringify)(rawValue);
  932. }
  933. var defaults = {
  934. transitional: {
  935. silentJSONParsing: true,
  936. forcedJSONParsing: true,
  937. clarifyTimeoutError: false
  938. },
  939. adapter: getDefaultAdapter(),
  940. transformRequest: [function transformRequest(data, headers) {
  941. normalizeHeaderName(headers, 'Accept');
  942. normalizeHeaderName(headers, 'Content-Type');
  943. if (utils.isFormData(data) ||
  944. utils.isArrayBuffer(data) ||
  945. utils.isBuffer(data) ||
  946. utils.isStream(data) ||
  947. utils.isFile(data) ||
  948. utils.isBlob(data)
  949. ) {
  950. return data;
  951. }
  952. if (utils.isArrayBufferView(data)) {
  953. return data.buffer;
  954. }
  955. if (utils.isURLSearchParams(data)) {
  956. setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
  957. return data.toString();
  958. }
  959. if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
  960. setContentTypeIfUnset(headers, 'application/json');
  961. return stringifySafely(data);
  962. }
  963. return data;
  964. }],
  965. transformResponse: [function transformResponse(data) {
  966. var transitional = this.transitional || defaults.transitional;
  967. var silentJSONParsing = transitional && transitional.silentJSONParsing;
  968. var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
  969. var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
  970. if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
  971. try {
  972. return JSON.parse(data);
  973. } catch (e) {
  974. if (strictJSONParsing) {
  975. if (e.name === 'SyntaxError') {
  976. throw enhanceError(e, this, 'E_JSON_PARSE');
  977. }
  978. throw e;
  979. }
  980. }
  981. }
  982. return data;
  983. }],
  984. /**
  985. * A timeout in milliseconds to abort a request. If set to 0 (default) a
  986. * timeout is not created.
  987. */
  988. timeout: 0,
  989. xsrfCookieName: 'XSRF-TOKEN',
  990. xsrfHeaderName: 'X-XSRF-TOKEN',
  991. maxContentLength: -1,
  992. maxBodyLength: -1,
  993. validateStatus: function validateStatus(status) {
  994. return status >= 200 && status < 300;
  995. },
  996. headers: {
  997. common: {
  998. 'Accept': 'application/json, text/plain, */*'
  999. }
  1000. }
  1001. };
  1002. utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
  1003. defaults.headers[method] = {};
  1004. });
  1005. utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  1006. defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
  1007. });
  1008. module.exports = defaults;
  1009. /***/ }),
  1010. /***/ "./node_modules/axios/lib/env/data.js":
  1011. /*!********************************************!*\
  1012. !*** ./node_modules/axios/lib/env/data.js ***!
  1013. \********************************************/
  1014. /***/ ((module) => {
  1015. module.exports = {
  1016. "version": "0.25.0"
  1017. };
  1018. /***/ }),
  1019. /***/ "./node_modules/axios/lib/helpers/bind.js":
  1020. /*!************************************************!*\
  1021. !*** ./node_modules/axios/lib/helpers/bind.js ***!
  1022. \************************************************/
  1023. /***/ ((module) => {
  1024. "use strict";
  1025. module.exports = function bind(fn, thisArg) {
  1026. return function wrap() {
  1027. var args = new Array(arguments.length);
  1028. for (var i = 0; i < args.length; i++) {
  1029. args[i] = arguments[i];
  1030. }
  1031. return fn.apply(thisArg, args);
  1032. };
  1033. };
  1034. /***/ }),
  1035. /***/ "./node_modules/axios/lib/helpers/buildURL.js":
  1036. /*!****************************************************!*\
  1037. !*** ./node_modules/axios/lib/helpers/buildURL.js ***!
  1038. \****************************************************/
  1039. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1040. "use strict";
  1041. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  1042. function encode(val) {
  1043. return encodeURIComponent(val).
  1044. replace(/%3A/gi, ':').
  1045. replace(/%24/g, '$').
  1046. replace(/%2C/gi, ',').
  1047. replace(/%20/g, '+').
  1048. replace(/%5B/gi, '[').
  1049. replace(/%5D/gi, ']');
  1050. }
  1051. /**
  1052. * Build a URL by appending params to the end
  1053. *
  1054. * @param {string} url The base of the url (e.g., http://www.google.com)
  1055. * @param {object} [params] The params to be appended
  1056. * @returns {string} The formatted url
  1057. */
  1058. module.exports = function buildURL(url, params, paramsSerializer) {
  1059. /*eslint no-param-reassign:0*/
  1060. if (!params) {
  1061. return url;
  1062. }
  1063. var serializedParams;
  1064. if (paramsSerializer) {
  1065. serializedParams = paramsSerializer(params);
  1066. } else if (utils.isURLSearchParams(params)) {
  1067. serializedParams = params.toString();
  1068. } else {
  1069. var parts = [];
  1070. utils.forEach(params, function serialize(val, key) {
  1071. if (val === null || typeof val === 'undefined') {
  1072. return;
  1073. }
  1074. if (utils.isArray(val)) {
  1075. key = key + '[]';
  1076. } else {
  1077. val = [val];
  1078. }
  1079. utils.forEach(val, function parseValue(v) {
  1080. if (utils.isDate(v)) {
  1081. v = v.toISOString();
  1082. } else if (utils.isObject(v)) {
  1083. v = JSON.stringify(v);
  1084. }
  1085. parts.push(encode(key) + '=' + encode(v));
  1086. });
  1087. });
  1088. serializedParams = parts.join('&');
  1089. }
  1090. if (serializedParams) {
  1091. var hashmarkIndex = url.indexOf('#');
  1092. if (hashmarkIndex !== -1) {
  1093. url = url.slice(0, hashmarkIndex);
  1094. }
  1095. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  1096. }
  1097. return url;
  1098. };
  1099. /***/ }),
  1100. /***/ "./node_modules/axios/lib/helpers/combineURLs.js":
  1101. /*!*******************************************************!*\
  1102. !*** ./node_modules/axios/lib/helpers/combineURLs.js ***!
  1103. \*******************************************************/
  1104. /***/ ((module) => {
  1105. "use strict";
  1106. /**
  1107. * Creates a new URL by combining the specified URLs
  1108. *
  1109. * @param {string} baseURL The base URL
  1110. * @param {string} relativeURL The relative URL
  1111. * @returns {string} The combined URL
  1112. */
  1113. module.exports = function combineURLs(baseURL, relativeURL) {
  1114. return relativeURL
  1115. ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
  1116. : baseURL;
  1117. };
  1118. /***/ }),
  1119. /***/ "./node_modules/axios/lib/helpers/cookies.js":
  1120. /*!***************************************************!*\
  1121. !*** ./node_modules/axios/lib/helpers/cookies.js ***!
  1122. \***************************************************/
  1123. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1124. "use strict";
  1125. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  1126. module.exports = (
  1127. utils.isStandardBrowserEnv() ?
  1128. // Standard browser envs support document.cookie
  1129. (function standardBrowserEnv() {
  1130. return {
  1131. write: function write(name, value, expires, path, domain, secure) {
  1132. var cookie = [];
  1133. cookie.push(name + '=' + encodeURIComponent(value));
  1134. if (utils.isNumber(expires)) {
  1135. cookie.push('expires=' + new Date(expires).toGMTString());
  1136. }
  1137. if (utils.isString(path)) {
  1138. cookie.push('path=' + path);
  1139. }
  1140. if (utils.isString(domain)) {
  1141. cookie.push('domain=' + domain);
  1142. }
  1143. if (secure === true) {
  1144. cookie.push('secure');
  1145. }
  1146. document.cookie = cookie.join('; ');
  1147. },
  1148. read: function read(name) {
  1149. var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
  1150. return (match ? decodeURIComponent(match[3]) : null);
  1151. },
  1152. remove: function remove(name) {
  1153. this.write(name, '', Date.now() - 86400000);
  1154. }
  1155. };
  1156. })() :
  1157. // Non standard browser env (web workers, react-native) lack needed support.
  1158. (function nonStandardBrowserEnv() {
  1159. return {
  1160. write: function write() {},
  1161. read: function read() { return null; },
  1162. remove: function remove() {}
  1163. };
  1164. })()
  1165. );
  1166. /***/ }),
  1167. /***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js":
  1168. /*!*********************************************************!*\
  1169. !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***!
  1170. \*********************************************************/
  1171. /***/ ((module) => {
  1172. "use strict";
  1173. /**
  1174. * Determines whether the specified URL is absolute
  1175. *
  1176. * @param {string} url The URL to test
  1177. * @returns {boolean} True if the specified URL is absolute, otherwise false
  1178. */
  1179. module.exports = function isAbsoluteURL(url) {
  1180. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  1181. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  1182. // by any combination of letters, digits, plus, period, or hyphen.
  1183. return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
  1184. };
  1185. /***/ }),
  1186. /***/ "./node_modules/axios/lib/helpers/isAxiosError.js":
  1187. /*!********************************************************!*\
  1188. !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***!
  1189. \********************************************************/
  1190. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1191. "use strict";
  1192. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  1193. /**
  1194. * Determines whether the payload is an error thrown by Axios
  1195. *
  1196. * @param {*} payload The value to test
  1197. * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
  1198. */
  1199. module.exports = function isAxiosError(payload) {
  1200. return utils.isObject(payload) && (payload.isAxiosError === true);
  1201. };
  1202. /***/ }),
  1203. /***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js":
  1204. /*!***********************************************************!*\
  1205. !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***!
  1206. \***********************************************************/
  1207. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1208. "use strict";
  1209. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  1210. module.exports = (
  1211. utils.isStandardBrowserEnv() ?
  1212. // Standard browser envs have full support of the APIs needed to test
  1213. // whether the request URL is of the same origin as current location.
  1214. (function standardBrowserEnv() {
  1215. var msie = /(msie|trident)/i.test(navigator.userAgent);
  1216. var urlParsingNode = document.createElement('a');
  1217. var originURL;
  1218. /**
  1219. * Parse a URL to discover it's components
  1220. *
  1221. * @param {String} url The URL to be parsed
  1222. * @returns {Object}
  1223. */
  1224. function resolveURL(url) {
  1225. var href = url;
  1226. if (msie) {
  1227. // IE needs attribute set twice to normalize properties
  1228. urlParsingNode.setAttribute('href', href);
  1229. href = urlParsingNode.href;
  1230. }
  1231. urlParsingNode.setAttribute('href', href);
  1232. // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
  1233. return {
  1234. href: urlParsingNode.href,
  1235. protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
  1236. host: urlParsingNode.host,
  1237. search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
  1238. hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
  1239. hostname: urlParsingNode.hostname,
  1240. port: urlParsingNode.port,
  1241. pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
  1242. urlParsingNode.pathname :
  1243. '/' + urlParsingNode.pathname
  1244. };
  1245. }
  1246. originURL = resolveURL(window.location.href);
  1247. /**
  1248. * Determine if a URL shares the same origin as the current location
  1249. *
  1250. * @param {String} requestURL The URL to test
  1251. * @returns {boolean} True if URL shares the same origin, otherwise false
  1252. */
  1253. return function isURLSameOrigin(requestURL) {
  1254. var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
  1255. return (parsed.protocol === originURL.protocol &&
  1256. parsed.host === originURL.host);
  1257. };
  1258. })() :
  1259. // Non standard browser envs (web workers, react-native) lack needed support.
  1260. (function nonStandardBrowserEnv() {
  1261. return function isURLSameOrigin() {
  1262. return true;
  1263. };
  1264. })()
  1265. );
  1266. /***/ }),
  1267. /***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js":
  1268. /*!***************************************************************!*\
  1269. !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***!
  1270. \***************************************************************/
  1271. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1272. "use strict";
  1273. var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js");
  1274. module.exports = function normalizeHeaderName(headers, normalizedName) {
  1275. utils.forEach(headers, function processHeader(value, name) {
  1276. if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
  1277. headers[normalizedName] = value;
  1278. delete headers[name];
  1279. }
  1280. });
  1281. };
  1282. /***/ }),
  1283. /***/ "./node_modules/axios/lib/helpers/parseHeaders.js":
  1284. /*!********************************************************!*\
  1285. !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***!
  1286. \********************************************************/
  1287. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1288. "use strict";
  1289. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js");
  1290. // Headers whose duplicates are ignored by node
  1291. // c.f. https://nodejs.org/api/http.html#http_message_headers
  1292. var ignoreDuplicateOf = [
  1293. 'age', 'authorization', 'content-length', 'content-type', 'etag',
  1294. 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
  1295. 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
  1296. 'referer', 'retry-after', 'user-agent'
  1297. ];
  1298. /**
  1299. * Parse headers into an object
  1300. *
  1301. * ```
  1302. * Date: Wed, 27 Aug 2014 08:58:49 GMT
  1303. * Content-Type: application/json
  1304. * Connection: keep-alive
  1305. * Transfer-Encoding: chunked
  1306. * ```
  1307. *
  1308. * @param {String} headers Headers needing to be parsed
  1309. * @returns {Object} Headers parsed into an object
  1310. */
  1311. module.exports = function parseHeaders(headers) {
  1312. var parsed = {};
  1313. var key;
  1314. var val;
  1315. var i;
  1316. if (!headers) { return parsed; }
  1317. utils.forEach(headers.split('\n'), function parser(line) {
  1318. i = line.indexOf(':');
  1319. key = utils.trim(line.substr(0, i)).toLowerCase();
  1320. val = utils.trim(line.substr(i + 1));
  1321. if (key) {
  1322. if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
  1323. return;
  1324. }
  1325. if (key === 'set-cookie') {
  1326. parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
  1327. } else {
  1328. parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
  1329. }
  1330. }
  1331. });
  1332. return parsed;
  1333. };
  1334. /***/ }),
  1335. /***/ "./node_modules/axios/lib/helpers/spread.js":
  1336. /*!**************************************************!*\
  1337. !*** ./node_modules/axios/lib/helpers/spread.js ***!
  1338. \**************************************************/
  1339. /***/ ((module) => {
  1340. "use strict";
  1341. /**
  1342. * Syntactic sugar for invoking a function and expanding an array for arguments.
  1343. *
  1344. * Common use case would be to use `Function.prototype.apply`.
  1345. *
  1346. * ```js
  1347. * function f(x, y, z) {}
  1348. * var args = [1, 2, 3];
  1349. * f.apply(null, args);
  1350. * ```
  1351. *
  1352. * With `spread` this example can be re-written.
  1353. *
  1354. * ```js
  1355. * spread(function(x, y, z) {})([1, 2, 3]);
  1356. * ```
  1357. *
  1358. * @param {Function} callback
  1359. * @returns {Function}
  1360. */
  1361. module.exports = function spread(callback) {
  1362. return function wrap(arr) {
  1363. return callback.apply(null, arr);
  1364. };
  1365. };
  1366. /***/ }),
  1367. /***/ "./node_modules/axios/lib/helpers/validator.js":
  1368. /*!*****************************************************!*\
  1369. !*** ./node_modules/axios/lib/helpers/validator.js ***!
  1370. \*****************************************************/
  1371. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1372. "use strict";
  1373. var VERSION = (__webpack_require__(/*! ../env/data */ "./node_modules/axios/lib/env/data.js").version);
  1374. var validators = {};
  1375. // eslint-disable-next-line func-names
  1376. ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
  1377. validators[type] = function validator(thing) {
  1378. return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
  1379. };
  1380. });
  1381. var deprecatedWarnings = {};
  1382. /**
  1383. * Transitional option validator
  1384. * @param {function|boolean?} validator - set to false if the transitional option has been removed
  1385. * @param {string?} version - deprecated version / removed since version
  1386. * @param {string?} message - some message with additional info
  1387. * @returns {function}
  1388. */
  1389. validators.transitional = function transitional(validator, version, message) {
  1390. function formatMessage(opt, desc) {
  1391. return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
  1392. }
  1393. // eslint-disable-next-line func-names
  1394. return function(value, opt, opts) {
  1395. if (validator === false) {
  1396. throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')));
  1397. }
  1398. if (version && !deprecatedWarnings[opt]) {
  1399. deprecatedWarnings[opt] = true;
  1400. // eslint-disable-next-line no-console
  1401. console.warn(
  1402. formatMessage(
  1403. opt,
  1404. ' has been deprecated since v' + version + ' and will be removed in the near future'
  1405. )
  1406. );
  1407. }
  1408. return validator ? validator(value, opt, opts) : true;
  1409. };
  1410. };
  1411. /**
  1412. * Assert object's properties type
  1413. * @param {object} options
  1414. * @param {object} schema
  1415. * @param {boolean?} allowUnknown
  1416. */
  1417. function assertOptions(options, schema, allowUnknown) {
  1418. if (typeof options !== 'object') {
  1419. throw new TypeError('options must be an object');
  1420. }
  1421. var keys = Object.keys(options);
  1422. var i = keys.length;
  1423. while (i-- > 0) {
  1424. var opt = keys[i];
  1425. var validator = schema[opt];
  1426. if (validator) {
  1427. var value = options[opt];
  1428. var result = value === undefined || validator(value, opt, options);
  1429. if (result !== true) {
  1430. throw new TypeError('option ' + opt + ' must be ' + result);
  1431. }
  1432. continue;
  1433. }
  1434. if (allowUnknown !== true) {
  1435. throw Error('Unknown option ' + opt);
  1436. }
  1437. }
  1438. }
  1439. module.exports = {
  1440. assertOptions: assertOptions,
  1441. validators: validators
  1442. };
  1443. /***/ }),
  1444. /***/ "./node_modules/axios/lib/utils.js":
  1445. /*!*****************************************!*\
  1446. !*** ./node_modules/axios/lib/utils.js ***!
  1447. \*****************************************/
  1448. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1449. "use strict";
  1450. var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js");
  1451. // utils is a library of generic helper functions non-specific to axios
  1452. var toString = Object.prototype.toString;
  1453. /**
  1454. * Determine if a value is an Array
  1455. *
  1456. * @param {Object} val The value to test
  1457. * @returns {boolean} True if value is an Array, otherwise false
  1458. */
  1459. function isArray(val) {
  1460. return Array.isArray(val);
  1461. }
  1462. /**
  1463. * Determine if a value is undefined
  1464. *
  1465. * @param {Object} val The value to test
  1466. * @returns {boolean} True if the value is undefined, otherwise false
  1467. */
  1468. function isUndefined(val) {
  1469. return typeof val === 'undefined';
  1470. }
  1471. /**
  1472. * Determine if a value is a Buffer
  1473. *
  1474. * @param {Object} val The value to test
  1475. * @returns {boolean} True if value is a Buffer, otherwise false
  1476. */
  1477. function isBuffer(val) {
  1478. return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
  1479. && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
  1480. }
  1481. /**
  1482. * Determine if a value is an ArrayBuffer
  1483. *
  1484. * @param {Object} val The value to test
  1485. * @returns {boolean} True if value is an ArrayBuffer, otherwise false
  1486. */
  1487. function isArrayBuffer(val) {
  1488. return toString.call(val) === '[object ArrayBuffer]';
  1489. }
  1490. /**
  1491. * Determine if a value is a FormData
  1492. *
  1493. * @param {Object} val The value to test
  1494. * @returns {boolean} True if value is an FormData, otherwise false
  1495. */
  1496. function isFormData(val) {
  1497. return toString.call(val) === '[object FormData]';
  1498. }
  1499. /**
  1500. * Determine if a value is a view on an ArrayBuffer
  1501. *
  1502. * @param {Object} val The value to test
  1503. * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
  1504. */
  1505. function isArrayBufferView(val) {
  1506. var result;
  1507. if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
  1508. result = ArrayBuffer.isView(val);
  1509. } else {
  1510. result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
  1511. }
  1512. return result;
  1513. }
  1514. /**
  1515. * Determine if a value is a String
  1516. *
  1517. * @param {Object} val The value to test
  1518. * @returns {boolean} True if value is a String, otherwise false
  1519. */
  1520. function isString(val) {
  1521. return typeof val === 'string';
  1522. }
  1523. /**
  1524. * Determine if a value is a Number
  1525. *
  1526. * @param {Object} val The value to test
  1527. * @returns {boolean} True if value is a Number, otherwise false
  1528. */
  1529. function isNumber(val) {
  1530. return typeof val === 'number';
  1531. }
  1532. /**
  1533. * Determine if a value is an Object
  1534. *
  1535. * @param {Object} val The value to test
  1536. * @returns {boolean} True if value is an Object, otherwise false
  1537. */
  1538. function isObject(val) {
  1539. return val !== null && typeof val === 'object';
  1540. }
  1541. /**
  1542. * Determine if a value is a plain Object
  1543. *
  1544. * @param {Object} val The value to test
  1545. * @return {boolean} True if value is a plain Object, otherwise false
  1546. */
  1547. function isPlainObject(val) {
  1548. if (toString.call(val) !== '[object Object]') {
  1549. return false;
  1550. }
  1551. var prototype = Object.getPrototypeOf(val);
  1552. return prototype === null || prototype === Object.prototype;
  1553. }
  1554. /**
  1555. * Determine if a value is a Date
  1556. *
  1557. * @param {Object} val The value to test
  1558. * @returns {boolean} True if value is a Date, otherwise false
  1559. */
  1560. function isDate(val) {
  1561. return toString.call(val) === '[object Date]';
  1562. }
  1563. /**
  1564. * Determine if a value is a File
  1565. *
  1566. * @param {Object} val The value to test
  1567. * @returns {boolean} True if value is a File, otherwise false
  1568. */
  1569. function isFile(val) {
  1570. return toString.call(val) === '[object File]';
  1571. }
  1572. /**
  1573. * Determine if a value is a Blob
  1574. *
  1575. * @param {Object} val The value to test
  1576. * @returns {boolean} True if value is a Blob, otherwise false
  1577. */
  1578. function isBlob(val) {
  1579. return toString.call(val) === '[object Blob]';
  1580. }
  1581. /**
  1582. * Determine if a value is a Function
  1583. *
  1584. * @param {Object} val The value to test
  1585. * @returns {boolean} True if value is a Function, otherwise false
  1586. */
  1587. function isFunction(val) {
  1588. return toString.call(val) === '[object Function]';
  1589. }
  1590. /**
  1591. * Determine if a value is a Stream
  1592. *
  1593. * @param {Object} val The value to test
  1594. * @returns {boolean} True if value is a Stream, otherwise false
  1595. */
  1596. function isStream(val) {
  1597. return isObject(val) && isFunction(val.pipe);
  1598. }
  1599. /**
  1600. * Determine if a value is a URLSearchParams object
  1601. *
  1602. * @param {Object} val The value to test
  1603. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  1604. */
  1605. function isURLSearchParams(val) {
  1606. return toString.call(val) === '[object URLSearchParams]';
  1607. }
  1608. /**
  1609. * Trim excess whitespace off the beginning and end of a string
  1610. *
  1611. * @param {String} str The String to trim
  1612. * @returns {String} The String freed of excess whitespace
  1613. */
  1614. function trim(str) {
  1615. return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
  1616. }
  1617. /**
  1618. * Determine if we're running in a standard browser environment
  1619. *
  1620. * This allows axios to run in a web worker, and react-native.
  1621. * Both environments support XMLHttpRequest, but not fully standard globals.
  1622. *
  1623. * web workers:
  1624. * typeof window -> undefined
  1625. * typeof document -> undefined
  1626. *
  1627. * react-native:
  1628. * navigator.product -> 'ReactNative'
  1629. * nativescript
  1630. * navigator.product -> 'NativeScript' or 'NS'
  1631. */
  1632. function isStandardBrowserEnv() {
  1633. if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
  1634. navigator.product === 'NativeScript' ||
  1635. navigator.product === 'NS')) {
  1636. return false;
  1637. }
  1638. return (
  1639. typeof window !== 'undefined' &&
  1640. typeof document !== 'undefined'
  1641. );
  1642. }
  1643. /**
  1644. * Iterate over an Array or an Object invoking a function for each item.
  1645. *
  1646. * If `obj` is an Array callback will be called passing
  1647. * the value, index, and complete array for each item.
  1648. *
  1649. * If 'obj' is an Object callback will be called passing
  1650. * the value, key, and complete object for each property.
  1651. *
  1652. * @param {Object|Array} obj The object to iterate
  1653. * @param {Function} fn The callback to invoke for each item
  1654. */
  1655. function forEach(obj, fn) {
  1656. // Don't bother if no value provided
  1657. if (obj === null || typeof obj === 'undefined') {
  1658. return;
  1659. }
  1660. // Force an array if not already something iterable
  1661. if (typeof obj !== 'object') {
  1662. /*eslint no-param-reassign:0*/
  1663. obj = [obj];
  1664. }
  1665. if (isArray(obj)) {
  1666. // Iterate over array values
  1667. for (var i = 0, l = obj.length; i < l; i++) {
  1668. fn.call(null, obj[i], i, obj);
  1669. }
  1670. } else {
  1671. // Iterate over object keys
  1672. for (var key in obj) {
  1673. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  1674. fn.call(null, obj[key], key, obj);
  1675. }
  1676. }
  1677. }
  1678. }
  1679. /**
  1680. * Accepts varargs expecting each argument to be an object, then
  1681. * immutably merges the properties of each object and returns result.
  1682. *
  1683. * When multiple objects contain the same key the later object in
  1684. * the arguments list will take precedence.
  1685. *
  1686. * Example:
  1687. *
  1688. * ```js
  1689. * var result = merge({foo: 123}, {foo: 456});
  1690. * console.log(result.foo); // outputs 456
  1691. * ```
  1692. *
  1693. * @param {Object} obj1 Object to merge
  1694. * @returns {Object} Result of all merge properties
  1695. */
  1696. function merge(/* obj1, obj2, obj3, ... */) {
  1697. var result = {};
  1698. function assignValue(val, key) {
  1699. if (isPlainObject(result[key]) && isPlainObject(val)) {
  1700. result[key] = merge(result[key], val);
  1701. } else if (isPlainObject(val)) {
  1702. result[key] = merge({}, val);
  1703. } else if (isArray(val)) {
  1704. result[key] = val.slice();
  1705. } else {
  1706. result[key] = val;
  1707. }
  1708. }
  1709. for (var i = 0, l = arguments.length; i < l; i++) {
  1710. forEach(arguments[i], assignValue);
  1711. }
  1712. return result;
  1713. }
  1714. /**
  1715. * Extends object a by mutably adding to it the properties of object b.
  1716. *
  1717. * @param {Object} a The object to be extended
  1718. * @param {Object} b The object to copy properties from
  1719. * @param {Object} thisArg The object to bind function to
  1720. * @return {Object} The resulting value of object a
  1721. */
  1722. function extend(a, b, thisArg) {
  1723. forEach(b, function assignValue(val, key) {
  1724. if (thisArg && typeof val === 'function') {
  1725. a[key] = bind(val, thisArg);
  1726. } else {
  1727. a[key] = val;
  1728. }
  1729. });
  1730. return a;
  1731. }
  1732. /**
  1733. * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
  1734. *
  1735. * @param {string} content with BOM
  1736. * @return {string} content value without BOM
  1737. */
  1738. function stripBOM(content) {
  1739. if (content.charCodeAt(0) === 0xFEFF) {
  1740. content = content.slice(1);
  1741. }
  1742. return content;
  1743. }
  1744. module.exports = {
  1745. isArray: isArray,
  1746. isArrayBuffer: isArrayBuffer,
  1747. isBuffer: isBuffer,
  1748. isFormData: isFormData,
  1749. isArrayBufferView: isArrayBufferView,
  1750. isString: isString,
  1751. isNumber: isNumber,
  1752. isObject: isObject,
  1753. isPlainObject: isPlainObject,
  1754. isUndefined: isUndefined,
  1755. isDate: isDate,
  1756. isFile: isFile,
  1757. isBlob: isBlob,
  1758. isFunction: isFunction,
  1759. isStream: isStream,
  1760. isURLSearchParams: isURLSearchParams,
  1761. isStandardBrowserEnv: isStandardBrowserEnv,
  1762. forEach: forEach,
  1763. merge: merge,
  1764. extend: extend,
  1765. trim: trim,
  1766. stripBOM: stripBOM
  1767. };
  1768. /***/ }),
  1769. /***/ "./resources/js/app.js":
  1770. /*!*****************************!*\
  1771. !*** ./resources/js/app.js ***!
  1772. \*****************************/
  1773. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  1774. "use strict";
  1775. __webpack_require__.r(__webpack_exports__);
  1776. /* harmony import */ var _bootstrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js");
  1777. /**
  1778. * First we will load all of this project's JavaScript dependencies which
  1779. * includes Vue and other libraries. It is a great starting point when
  1780. * building robust, powerful web applications using Vue and Laravel.
  1781. */
  1782. // import { createApp } from 'vue';
  1783. /**
  1784. * Next, we will create a fresh Vue application instance. You may then begin
  1785. * registering components with the application instance so they are ready
  1786. * to use in your application's views. An example is included for you.
  1787. */
  1788. // const app = createApp({});
  1789. // import ExampleComponent from './components/ExampleComponent.vue';
  1790. // app.component('example-component', ExampleComponent);
  1791. /**
  1792. * The following block of code may be used to automatically register your
  1793. * Vue components. It will recursively scan this directory for the Vue
  1794. * components and automatically register them with their "basename".
  1795. *
  1796. * Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
  1797. */
  1798. // Object.entries(import.meta.glob('./**/*.vue', { eager: true })).forEach(([path, definition]) => {
  1799. // app.component(path.split('/').pop().replace(/\.\w+$/, ''), definition.default);
  1800. // });
  1801. /**
  1802. * Finally, we will attach the application instance to a HTML element with
  1803. * an "id" attribute of "app". This element is included with the "auth"
  1804. * scaffolding. Otherwise, you will need to add an element yourself.
  1805. */
  1806. // app.mount('#app');
  1807. /***/ }),
  1808. /***/ "./resources/js/bootstrap.js":
  1809. /*!***********************************!*\
  1810. !*** ./resources/js/bootstrap.js ***!
  1811. \***********************************/
  1812. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  1813. "use strict";
  1814. __webpack_require__.r(__webpack_exports__);
  1815. /* harmony import */ var _bootstrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js");
  1816. /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");
  1817. /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_1__);
  1818. /**
  1819. * We'll load the axios HTTP library which allows us to easily issue requests
  1820. * to our Laravel back-end. This library automatically handles sending the
  1821. * CSRF token as a header based on the value of the "XSRF" token cookie.
  1822. */
  1823. window.axios = (axios__WEBPACK_IMPORTED_MODULE_1___default());
  1824. window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
  1825. /**
  1826. * Echo exposes an expressive API for subscribing to channels and listening
  1827. * for events that are broadcast by Laravel. Echo and event broadcasting
  1828. * allows your team to easily build robust real-time web applications.
  1829. */
  1830. // import Echo from 'laravel-echo';
  1831. // import Pusher from 'pusher-js';
  1832. // window.Pusher = Pusher;
  1833. // window.Echo = new Echo({
  1834. // broadcaster: 'pusher',
  1835. // key: import.meta.env.VITE_PUSHER_APP_KEY,
  1836. // wsHost: import.meta.env.VITE_PUSHER_HOST ?? `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`,
  1837. // wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80,
  1838. // wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443,
  1839. // forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https',
  1840. // enabledTransports: ['ws', 'wss'],
  1841. // });
  1842. /***/ }),
  1843. /***/ "./resources/css/app.css":
  1844. /*!*******************************!*\
  1845. !*** ./resources/css/app.css ***!
  1846. \*******************************/
  1847. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  1848. "use strict";
  1849. __webpack_require__.r(__webpack_exports__);
  1850. // extracted by mini-css-extract-plugin
  1851. /***/ }),
  1852. /***/ "./node_modules/process/browser.js":
  1853. /*!*****************************************!*\
  1854. !*** ./node_modules/process/browser.js ***!
  1855. \*****************************************/
  1856. /***/ ((module) => {
  1857. // shim for using process in browser
  1858. var process = module.exports = {};
  1859. // cached from whatever global is present so that test runners that stub it
  1860. // don't break things. But we need to wrap it in a try catch in case it is
  1861. // wrapped in strict mode code which doesn't define any globals. It's inside a
  1862. // function because try/catches deoptimize in certain engines.
  1863. var cachedSetTimeout;
  1864. var cachedClearTimeout;
  1865. function defaultSetTimout() {
  1866. throw new Error('setTimeout has not been defined');
  1867. }
  1868. function defaultClearTimeout () {
  1869. throw new Error('clearTimeout has not been defined');
  1870. }
  1871. (function () {
  1872. try {
  1873. if (typeof setTimeout === 'function') {
  1874. cachedSetTimeout = setTimeout;
  1875. } else {
  1876. cachedSetTimeout = defaultSetTimout;
  1877. }
  1878. } catch (e) {
  1879. cachedSetTimeout = defaultSetTimout;
  1880. }
  1881. try {
  1882. if (typeof clearTimeout === 'function') {
  1883. cachedClearTimeout = clearTimeout;
  1884. } else {
  1885. cachedClearTimeout = defaultClearTimeout;
  1886. }
  1887. } catch (e) {
  1888. cachedClearTimeout = defaultClearTimeout;
  1889. }
  1890. } ())
  1891. function runTimeout(fun) {
  1892. if (cachedSetTimeout === setTimeout) {
  1893. //normal enviroments in sane situations
  1894. return setTimeout(fun, 0);
  1895. }
  1896. // if setTimeout wasn't available but was latter defined
  1897. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  1898. cachedSetTimeout = setTimeout;
  1899. return setTimeout(fun, 0);
  1900. }
  1901. try {
  1902. // when when somebody has screwed with setTimeout but no I.E. maddness
  1903. return cachedSetTimeout(fun, 0);
  1904. } catch(e){
  1905. try {
  1906. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  1907. return cachedSetTimeout.call(null, fun, 0);
  1908. } catch(e){
  1909. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
  1910. return cachedSetTimeout.call(this, fun, 0);
  1911. }
  1912. }
  1913. }
  1914. function runClearTimeout(marker) {
  1915. if (cachedClearTimeout === clearTimeout) {
  1916. //normal enviroments in sane situations
  1917. return clearTimeout(marker);
  1918. }
  1919. // if clearTimeout wasn't available but was latter defined
  1920. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  1921. cachedClearTimeout = clearTimeout;
  1922. return clearTimeout(marker);
  1923. }
  1924. try {
  1925. // when when somebody has screwed with setTimeout but no I.E. maddness
  1926. return cachedClearTimeout(marker);
  1927. } catch (e){
  1928. try {
  1929. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  1930. return cachedClearTimeout.call(null, marker);
  1931. } catch (e){
  1932. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
  1933. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  1934. return cachedClearTimeout.call(this, marker);
  1935. }
  1936. }
  1937. }
  1938. var queue = [];
  1939. var draining = false;
  1940. var currentQueue;
  1941. var queueIndex = -1;
  1942. function cleanUpNextTick() {
  1943. if (!draining || !currentQueue) {
  1944. return;
  1945. }
  1946. draining = false;
  1947. if (currentQueue.length) {
  1948. queue = currentQueue.concat(queue);
  1949. } else {
  1950. queueIndex = -1;
  1951. }
  1952. if (queue.length) {
  1953. drainQueue();
  1954. }
  1955. }
  1956. function drainQueue() {
  1957. if (draining) {
  1958. return;
  1959. }
  1960. var timeout = runTimeout(cleanUpNextTick);
  1961. draining = true;
  1962. var len = queue.length;
  1963. while(len) {
  1964. currentQueue = queue;
  1965. queue = [];
  1966. while (++queueIndex < len) {
  1967. if (currentQueue) {
  1968. currentQueue[queueIndex].run();
  1969. }
  1970. }
  1971. queueIndex = -1;
  1972. len = queue.length;
  1973. }
  1974. currentQueue = null;
  1975. draining = false;
  1976. runClearTimeout(timeout);
  1977. }
  1978. process.nextTick = function (fun) {
  1979. var args = new Array(arguments.length - 1);
  1980. if (arguments.length > 1) {
  1981. for (var i = 1; i < arguments.length; i++) {
  1982. args[i - 1] = arguments[i];
  1983. }
  1984. }
  1985. queue.push(new Item(fun, args));
  1986. if (queue.length === 1 && !draining) {
  1987. runTimeout(drainQueue);
  1988. }
  1989. };
  1990. // v8 likes predictible objects
  1991. function Item(fun, array) {
  1992. this.fun = fun;
  1993. this.array = array;
  1994. }
  1995. Item.prototype.run = function () {
  1996. this.fun.apply(null, this.array);
  1997. };
  1998. process.title = 'browser';
  1999. process.browser = true;
  2000. process.env = {};
  2001. process.argv = [];
  2002. process.version = ''; // empty string to avoid regexp issues
  2003. process.versions = {};
  2004. function noop() {}
  2005. process.on = noop;
  2006. process.addListener = noop;
  2007. process.once = noop;
  2008. process.off = noop;
  2009. process.removeListener = noop;
  2010. process.removeAllListeners = noop;
  2011. process.emit = noop;
  2012. process.prependListener = noop;
  2013. process.prependOnceListener = noop;
  2014. process.listeners = function (name) { return [] }
  2015. process.binding = function (name) {
  2016. throw new Error('process.binding is not supported');
  2017. };
  2018. process.cwd = function () { return '/' };
  2019. process.chdir = function (dir) {
  2020. throw new Error('process.chdir is not supported');
  2021. };
  2022. process.umask = function() { return 0; };
  2023. /***/ })
  2024. /******/ });
  2025. /************************************************************************/
  2026. /******/ // The module cache
  2027. /******/ var __webpack_module_cache__ = {};
  2028. /******/
  2029. /******/ // The require function
  2030. /******/ function __webpack_require__(moduleId) {
  2031. /******/ // Check if module is in cache
  2032. /******/ var cachedModule = __webpack_module_cache__[moduleId];
  2033. /******/ if (cachedModule !== undefined) {
  2034. /******/ return cachedModule.exports;
  2035. /******/ }
  2036. /******/ // Create a new module (and put it into the cache)
  2037. /******/ var module = __webpack_module_cache__[moduleId] = {
  2038. /******/ // no module.id needed
  2039. /******/ // no module.loaded needed
  2040. /******/ exports: {}
  2041. /******/ };
  2042. /******/
  2043. /******/ // Execute the module function
  2044. /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
  2045. /******/
  2046. /******/ // Return the exports of the module
  2047. /******/ return module.exports;
  2048. /******/ }
  2049. /******/
  2050. /******/ // expose the modules object (__webpack_modules__)
  2051. /******/ __webpack_require__.m = __webpack_modules__;
  2052. /******/
  2053. /************************************************************************/
  2054. /******/ /* webpack/runtime/chunk loaded */
  2055. /******/ (() => {
  2056. /******/ var deferred = [];
  2057. /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
  2058. /******/ if(chunkIds) {
  2059. /******/ priority = priority || 0;
  2060. /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
  2061. /******/ deferred[i] = [chunkIds, fn, priority];
  2062. /******/ return;
  2063. /******/ }
  2064. /******/ var notFulfilled = Infinity;
  2065. /******/ for (var i = 0; i < deferred.length; i++) {
  2066. /******/ var [chunkIds, fn, priority] = deferred[i];
  2067. /******/ var fulfilled = true;
  2068. /******/ for (var j = 0; j < chunkIds.length; j++) {
  2069. /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
  2070. /******/ chunkIds.splice(j--, 1);
  2071. /******/ } else {
  2072. /******/ fulfilled = false;
  2073. /******/ if(priority < notFulfilled) notFulfilled = priority;
  2074. /******/ }
  2075. /******/ }
  2076. /******/ if(fulfilled) {
  2077. /******/ deferred.splice(i--, 1)
  2078. /******/ var r = fn();
  2079. /******/ if (r !== undefined) result = r;
  2080. /******/ }
  2081. /******/ }
  2082. /******/ return result;
  2083. /******/ };
  2084. /******/ })();
  2085. /******/
  2086. /******/ /* webpack/runtime/compat get default export */
  2087. /******/ (() => {
  2088. /******/ // getDefaultExport function for compatibility with non-harmony modules
  2089. /******/ __webpack_require__.n = (module) => {
  2090. /******/ var getter = module && module.__esModule ?
  2091. /******/ () => (module['default']) :
  2092. /******/ () => (module);
  2093. /******/ __webpack_require__.d(getter, { a: getter });
  2094. /******/ return getter;
  2095. /******/ };
  2096. /******/ })();
  2097. /******/
  2098. /******/ /* webpack/runtime/define property getters */
  2099. /******/ (() => {
  2100. /******/ // define getter functions for harmony exports
  2101. /******/ __webpack_require__.d = (exports, definition) => {
  2102. /******/ for(var key in definition) {
  2103. /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
  2104. /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
  2105. /******/ }
  2106. /******/ }
  2107. /******/ };
  2108. /******/ })();
  2109. /******/
  2110. /******/ /* webpack/runtime/hasOwnProperty shorthand */
  2111. /******/ (() => {
  2112. /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
  2113. /******/ })();
  2114. /******/
  2115. /******/ /* webpack/runtime/make namespace object */
  2116. /******/ (() => {
  2117. /******/ // define __esModule on exports
  2118. /******/ __webpack_require__.r = (exports) => {
  2119. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  2120. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  2121. /******/ }
  2122. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  2123. /******/ };
  2124. /******/ })();
  2125. /******/
  2126. /******/ /* webpack/runtime/jsonp chunk loading */
  2127. /******/ (() => {
  2128. /******/ // no baseURI
  2129. /******/
  2130. /******/ // object to store loaded and loading chunks
  2131. /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
  2132. /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
  2133. /******/ var installedChunks = {
  2134. /******/ "/js/app": 0,
  2135. /******/ "css/app": 0
  2136. /******/ };
  2137. /******/
  2138. /******/ // no chunk on demand loading
  2139. /******/
  2140. /******/ // no prefetching
  2141. /******/
  2142. /******/ // no preloaded
  2143. /******/
  2144. /******/ // no HMR
  2145. /******/
  2146. /******/ // no HMR manifest
  2147. /******/
  2148. /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
  2149. /******/
  2150. /******/ // install a JSONP callback for chunk loading
  2151. /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
  2152. /******/ var [chunkIds, moreModules, runtime] = data;
  2153. /******/ // add "moreModules" to the modules object,
  2154. /******/ // then flag all "chunkIds" as loaded and fire callback
  2155. /******/ var moduleId, chunkId, i = 0;
  2156. /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
  2157. /******/ for(moduleId in moreModules) {
  2158. /******/ if(__webpack_require__.o(moreModules, moduleId)) {
  2159. /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
  2160. /******/ }
  2161. /******/ }
  2162. /******/ if(runtime) var result = runtime(__webpack_require__);
  2163. /******/ }
  2164. /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
  2165. /******/ for(;i < chunkIds.length; i++) {
  2166. /******/ chunkId = chunkIds[i];
  2167. /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
  2168. /******/ installedChunks[chunkId][0]();
  2169. /******/ }
  2170. /******/ installedChunks[chunkId] = 0;
  2171. /******/ }
  2172. /******/ return __webpack_require__.O(result);
  2173. /******/ }
  2174. /******/
  2175. /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
  2176. /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
  2177. /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
  2178. /******/ })();
  2179. /******/
  2180. /************************************************************************/
  2181. /******/
  2182. /******/ // startup
  2183. /******/ // Load entry module and return exports
  2184. /******/ // This entry module depends on other loaded chunks and execution need to be delayed
  2185. /******/ __webpack_require__.O(undefined, ["css/app"], () => (__webpack_require__("./resources/js/app.js")))
  2186. /******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["css/app"], () => (__webpack_require__("./resources/css/app.css")))
  2187. /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
  2188. /******/
  2189. /******/ })()
  2190. ;