vendor: 5,705 bytes, lines 1-207
1/******/ (function(modules) { // webpackBootstrap 2/******/ // The module cache 3/******/ var installedModules = {}; 4/******/ 5/******/ // The require function 6/******/ function __webpack_require__(moduleId) { 7/******/ 8/******/ // Check if module is in cache 9/******/ if(installedModules[moduleId]) { 10/******/ return installedModules[moduleId].exports; 11/******/ } 12/******/ // Create a new module (and put it into the cache) 13/******/ var module = installedModules[moduleId] = { 14/******/ i: moduleId, 15/******/ l: false, 16/******/ exports: {} 17/******/ }; 18/******/ 19/******/ // Execute the module function 20/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 21/******/ 22/******/ // Flag the module as loaded 23/******/ module.l = true; 24/******/ 25/******/ // Return the exports of the module 26/******/ return module.exports; 27/******/ } 28/******/ 29/******/ 30/******/ // expose the modules object (__webpack_modules__) 31/******/ __webpack_require__.m = modules; 32/******/ 33/******/ // expose the module cache 34/******/ __webpack_require__.c = installedModules; 35/******/ 36/******/ // define getter function for harmony exports 37/******/ __webpack_require__.d = function(exports, name, getter) { 38/******/ if(!__webpack_require__.o(exports, name)) { 39/******/ Object.defineProperty(exports, name, { 40/******/ configurable: false, 41/******/ enumerable: true, 42/******/ get: getter 43/******/ }); 44/******/ } 45/******/ }; 46/******/ 47/******/ // getDefaultExport function for compatibility with non-harmony modules 48/******/ __webpack_require__.n = function(module) { 49/******/ var getter = module && module.__esModule ? 50/******/ function getDefault() { return module['default']; } : 51/******/ function getModuleExports() { return module; }; 52/******/ __webpack_require__.d(getter, 'a', getter); 53/******/ return getter; 54/******/ }; 55/******/ 56/******/ // Object.prototype.hasOwnProperty.call 57/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 58/******/ 59/******/ // __webpack_public_path__ 60/******/ __webpack_require__.p = ""; 61/******/ 62/******/ // Load entry module and return exports 63/******/ return __webpack_require__(__webpack_require__.s = 18); 64/******/ }) 65/************************************************************************/ 66/******/ ([ 67/* 0 */ 68/***/ (function(module, exports, __webpack_require__) { 69 70"use strict"; 71 72 73var bind = __webpack_require__(13); 74var isBuffer = __webpack_require__(45); 75 76/*global toString:true*/ 77 78// utils is a library of generic helper functions non-specific to axios 79 80var toString = Object.prototype.toString; 81 82/** 83 * Determine if a value is an Array 84 * 85 * @param {Object} val The value to test 86 * @returns {boolean} True if value is an Array, otherwise false 87 */ 88function isArray(val) { 89 return toString.call(val) === '[object Array]'; 90} 91 92/** 93 * Determine if a value is an ArrayBuffer 94 * 95 * @param {Object} val The value to test 96 * @returns {boolean} True if value is an ArrayBuffer, otherwise false 97 */ 98function isArrayBuffer(val) { 99 return toString.call(val) === '[object ArrayBuffer]'; 100} 101 102/** 103 * Determine if a value is a FormData 104 * 105 * @param {Object} val The value to test 106 * @returns {boolean} True if value is an FormData, otherwise false 107 */ 108function isFormData(val) { 109 return (typeof FormData !== 'undefined') && (val instanceof FormData); 110} 111 112/** 113 * Determine if a value is a view on an ArrayBuffer 114 * 115 * @param {Object} val The value to test 116 * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false 117 */ 118function isArrayBufferView(val) { 119 var result; 120 if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { 121 result = ArrayBuffer.isView(val); 122 } else { 123 result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); 124 } 125 return result; 126} 127 128/** 129 * Determine if a value is a String 130 * 131 * @param {Object} val The value to test 132 * @returns {boolean} True if value is a String, otherwise false 133 */ 134function isString(val) { 135 return typeof val === 'string'; 136} 137 138/** 139 * Determine if a value is a Number 140 * 141 * @param {Object} val The value to test 142 * @returns {boolean} True if value is a Number, otherwise false 143 */ 144function isNumber(val) { 145 return typeof val === 'number'; 146} 147 148/** 149 * Determine if a value is undefined 150 * 151 * @param {Object} val The value to test 152 * @returns {boolean} True if the value is undefined, otherwise false 153 */ 154function isUndefined(val) { 155 return typeof val === 'undefined'; 156} 157 158/** 159 * Determine if a value is an Object 160 * 161 * @param {Object} val The value to test 162 * @returns {boolean} True if value is an Object, otherwise false 163 */ 164function isObject(val) { 165 return val !== null && typeof val === 'object'; 166} 167 168/** 169 * Determine if a value is a Date 170 * 171 * @param {Object} val The value to test 172 * @returns {boolean} True if value is a Date, otherwise false 173 */ 174function isDate(val) { 175 return toString.call(val) === '[object Date]'; 176} 177 178/** 179 * Determine if a value is a File 180 * 181 * @param {Object} val The value to test 182 * @returns {boolean} True if value is a File, otherwise false 183 */ 184function isFile(val) { 185 return toString.call(val) === '[object File]'; 186} 187 188/** 189 * Determine if a value is a Blob 190 * 191 * @param {Object} val The value to test 192 * @returns {boolean} True if value is a Blob, otherwise false 193 */ 194function isBlob(val) { 195 return toString.call(val) === '[object Blob]'; 196} 197 198/** 199 * Determine if a value is a Function 200 * 201 * @param {Object} val The value to test 202 * @returns {boolean} True if value is a Function, otherwise false 203 */ 204function isFunction(val) { 205 return toString.call(val) === '[object Function]'; 206} 207
vendor: 4,330 bytes, lines 208-377
208/** 209 * Determine if a value is a Stream 210 * 211 * @param {Object} val The value to test 212 * @returns {boolean} True if value is a Stream, otherwise false 213 */ 214function isStream(val) { 215 return isObject(val) && isFunction(val.pipe); 216} 217 218/** 219 * Determine if a value is a URLSearchParams object 220 * 221 * @param {Object} val The value to test 222 * @returns {boolean} True if value is a URLSearchParams object, otherwise false 223 */ 224function isURLSearchParams(val) { 225 return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; 226} 227 228/** 229 * Trim excess whitespace off the beginning and end of a string 230 * 231 * @param {String} str The String to trim 232 * @returns {String} The String freed of excess whitespace 233 */ 234function trim(str) { 235 return str.replace(/^\s*/, '').replace(/\s*$/, ''); 236} 237 238/** 239 * Determine if we're running in a standard browser environment 240 * 241 * This allows axios to run in a web worker, and react-native. 242 * Both environments support XMLHttpRequest, but not fully standard globals. 243 * 244 * web workers: 245 * typeof window -> undefined 246 * typeof document -> undefined 247 * 248 * react-native: 249 * navigator.product -> 'ReactNative' 250 */ 251function isStandardBrowserEnv() { 252 if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') { 253 return false; 254 } 255 return ( 256 typeof window !== 'undefined' && 257 typeof document !== 'undefined' 258 ); 259} 260 261/** 262 * Iterate over an Array or an Object invoking a function for each item. 263 * 264 * If `obj` is an Array callback will be called passing 265 * the value, index, and complete array for each item. 266 * 267 * If 'obj' is an Object callback will be called passing 268 * the value, key, and complete object for each property. 269 * 270 * @param {Object|Array} obj The object to iterate 271 * @param {Function} fn The callback to invoke for each item 272 */ 273function forEach(obj, fn) { 274 // Don't bother if no value provided 275 if (obj === null || typeof obj === 'undefined') { 276 return; 277 } 278 279 // Force an array if not already something iterable 280 if (typeof obj !== 'object') { 281 /*eslint no-param-reassign:0*/ 282 obj = [obj]; 283 } 284 285 if (isArray(obj)) { 286 // Iterate over array values 287 for (var i = 0, l = obj.length; i < l; i++) { 288 fn.call(null, obj[i], i, obj); 289 } 290 } else { 291 // Iterate over object keys 292 for (var key in obj) { 293 if (Object.prototype.hasOwnProperty.call(obj, key)) { 294 fn.call(null, obj[key], key, obj); 295 } 296 } 297 } 298} 299 300/** 301 * Accepts varargs expecting each argument to be an object, then 302 * immutably merges the properties of each object and returns result. 303 * 304 * When multiple objects contain the same key the later object in 305 * the arguments list will take precedence. 306 * 307 * Example: 308 * 309 * ```js 310 * var result = merge({foo: 123}, {foo: 456}); 311 * console.log(result.foo); // outputs 456 312 * ``` 313 * 314 * @param {Object} obj1 Object to merge 315 * @returns {Object} Result of all merge properties 316 */ 317function merge(/* obj1, obj2, obj3, ... */) { 318 var result = {}; 319 function assignValue(val, key) { 320 if (typeof result[key] === 'object' && typeof val === 'object') { 321 result[key] = merge(result[key], val); 322 } else { 323 result[key] = val; 324 } 325 } 326 327 for (var i = 0, l = arguments.length; i < l; i++) { 328 forEach(arguments[i], assignValue); 329 } 330 return result; 331} 332 333/** 334 * Extends object a by mutably adding to it the properties of object b. 335 * 336 * @param {Object} a The object to be extended 337 * @param {Object} b The object to copy properties from 338 * @param {Object} thisArg The object to bind function to 339 * @return {Object} The resulting value of object a 340 */ 341function extend(a, b, thisArg) { 342 forEach(b, function assignValue(val, key) { 343 if (thisArg && typeof val === 'function') { 344 a[key] = bind(val, thisArg); 345 } else { 346 a[key] = val; 347 } 348 }); 349 return a; 350} 351 352module.exports = { 353 isArray: isArray, 354 isArrayBuffer: isArrayBuffer, 355 isBuffer: isBuffer, 356 isFormData: isFormData, 357 isArrayBufferView: isArrayBufferView, 358 isString: isString, 359 isNumber: isNumber, 360 isObject: isObject, 361 isUndefined: isUndefined, 362 isDate: isDate, 363 isFile: isFile, 364 isBlob: isBlob, 365 isFunction: isFunction, 366 isStream: isStream, 367 isURLSearchParams: isURLSearchParams, 368 isStandardBrowserEnv: isStandardBrowserEnv, 369 forEach: forEach, 370 merge: merge, 371 extend: extend, 372 trim: trim 373}; 374 375 376/***/ }), 377/* 1 */
vendor: 9,866 bytes, lines 378-752
378/***/ (function(module, exports) { 379 380// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 381var global = module.exports = typeof window != 'undefined' && window.Math == Math 382 ? window : typeof self != 'undefined' && self.Math == Math ? self 383 // eslint-disable-next-line no-new-func 384 : Function('return this')(); 385if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 386 387 388/***/ }), 389/* 2 */ 390/***/ (function(module, exports) { 391 392module.exports = function (it) { 393 return typeof it === 'object' ? it !== null : typeof it === 'function'; 394}; 395 396 397/***/ }), 398/* 3 */ 399/***/ (function(module, exports) { 400 401var core = module.exports = { version: '2.6.11' }; 402if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 403 404 405/***/ }), 406/* 4 */ 407/***/ (function(module, exports, __webpack_require__) { 408 409var dP = __webpack_require__(22); 410var createDesc = __webpack_require__(27); 411module.exports = __webpack_require__(5) ? function (object, key, value) { 412 return dP.f(object, key, createDesc(1, value)); 413} : function (object, key, value) { 414 object[key] = value; 415 return object; 416}; 417 418 419/***/ }), 420/* 5 */ 421/***/ (function(module, exports, __webpack_require__) { 422 423// Thank's IE8 for his funny defineProperty 424module.exports = !__webpack_require__(7)(function () { 425 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 426}); 427 428 429/***/ }), 430/* 6 */ 431/***/ (function(module, exports, __webpack_require__) { 432 433"use strict"; 434/* WEBPACK VAR INJECTION */(function(process) { 435 436var utils = __webpack_require__(0); 437var normalizeHeaderName = __webpack_require__(48); 438 439var DEFAULT_CONTENT_TYPE = { 440 'Content-Type': 'application/x-www-form-urlencoded' 441}; 442 443function setContentTypeIfUnset(headers, value) { 444 if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { 445 headers['Content-Type'] = value; 446 } 447} 448 449function getDefaultAdapter() { 450 var adapter; 451 if (typeof XMLHttpRequest !== 'undefined') { 452 // For browsers use XHR adapter 453 adapter = __webpack_require__(14); 454 } else if (typeof process !== 'undefined') { 455 // For node use HTTP adapter 456 adapter = __webpack_require__(14); 457 } 458 return adapter; 459} 460 461var defaults = { 462 adapter: getDefaultAdapter(), 463 464 transformRequest: [function transformRequest(data, headers) { 465 normalizeHeaderName(headers, 'Content-Type'); 466 if (utils.isFormData(data) || 467 utils.isArrayBuffer(data) || 468 utils.isBuffer(data) || 469 utils.isStream(data) || 470 utils.isFile(data) || 471 utils.isBlob(data) 472 ) { 473 return data; 474 } 475 if (utils.isArrayBufferView(data)) { 476 return data.buffer; 477 } 478 if (utils.isURLSearchParams(data)) { 479 setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); 480 return data.toString(); 481 } 482 if (utils.isObject(data)) { 483 setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); 484 return JSON.stringify(data); 485 } 486 return data; 487 }], 488 489 transformResponse: [function transformResponse(data) { 490 /*eslint no-param-reassign:0*/ 491 if (typeof data === 'string') { 492 try { 493 data = JSON.parse(data); 494 } catch (e) { /* Ignore */ } 495 } 496 return data; 497 }], 498 499 /** 500 * A timeout in milliseconds to abort a request. If set to 0 (default) a 501 * timeout is not created. 502 */ 503 timeout: 0, 504 505 xsrfCookieName: 'XSRF-TOKEN', 506 xsrfHeaderName: 'X-XSRF-TOKEN', 507 508 maxContentLength: -1, 509 510 validateStatus: function validateStatus(status) { 511 return status >= 200 && status < 300; 512 } 513}; 514 515defaults.headers = { 516 common: { 517 'Accept': 'application/json, text/plain, */*' 518 } 519}; 520 521utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { 522 defaults.headers[method] = {}; 523}); 524 525utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { 526 defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); 527}); 528 529module.exports = defaults; 530 531/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(47))) 532 533/***/ }), 534/* 7 */ 535/***/ (function(module, exports) { 536 537module.exports = function (exec) { 538 try { 539 return !!exec(); 540 } catch (e) { 541 return true; 542 } 543}; 544 545 546/***/ }), 547/* 8 */ 548/***/ (function(module, exports) { 549 550var id = 0; 551var px = Math.random(); 552module.exports = function (key) { 553 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 554}; 555 556 557/***/ }), 558/* 9 */ 559/***/ (function(module, exports, __webpack_require__) { 560 561var core = __webpack_require__(3); 562var global = __webpack_require__(1); 563var SHARED = '__core-js_shared__'; 564var store = global[SHARED] || (global[SHARED] = {}); 565 566(module.exports = function (key, value) { 567 return store[key] || (store[key] = value !== undefined ? value : {}); 568})('versions', []).push({ 569 version: core.version, 570 mode: __webpack_require__(31) ? 'pure' : 'global', 571 copyright: '© 2019 Denis Pushkarev (zloirock.ru)' 572}); 573 574 575/***/ }), 576/* 10 */ 577/***/ (function(module, exports, __webpack_require__) { 578 579// optional / simple context binding 580var aFunction = __webpack_require__(32); 581module.exports = function (fn, that, length) { 582 aFunction(fn); 583 if (that === undefined) return fn; 584 switch (length) { 585 case 1: return function (a) { 586 return fn.call(that, a); 587 }; 588 case 2: return function (a, b) { 589 return fn.call(that, a, b); 590 }; 591 case 3: return function (a, b, c) { 592 return fn.call(that, a, b, c); 593 }; 594 } 595 return function (/* ...args */) { 596 return fn.apply(that, arguments); 597 }; 598}; 599 600 601/***/ }), 602/* 11 */ 603/***/ (function(module, exports) { 604 605var toString = {}.toString; 606 607module.exports = function (it) { 608 return toString.call(it).slice(8, -1); 609}; 610 611 612/***/ }), 613/* 12 */ 614/***/ (function(module, exports, __webpack_require__) { 615 616var store = __webpack_require__(9)('wks'); 617var uid = __webpack_require__(8); 618var Symbol = __webpack_require__(1).Symbol; 619var USE_SYMBOL = typeof Symbol == 'function'; 620 621var $exports = module.exports = function (name) { 622 return store[name] || (store[name] = 623 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); 624}; 625 626$exports.store = store; 627 628 629/***/ }), 630/* 13 */ 631/***/ (function(module, exports, __webpack_require__) { 632 633"use strict"; 634 635 636module.exports = function bind(fn, thisArg) { 637 return function wrap() { 638 var args = new Array(arguments.length); 639 for (var i = 0; i < args.length; i++) { 640 args[i] = arguments[i]; 641 } 642 return fn.apply(thisArg, args); 643 }; 644}; 645 646 647/***/ }), 648/* 14 */ 649/***/ (function(module, exports, __webpack_require__) { 650 651"use strict"; 652 653 654var utils = __webpack_require__(0); 655var settle = __webpack_require__(49); 656var buildURL = __webpack_require__(51); 657var parseHeaders = __webpack_require__(52); 658var isURLSameOrigin = __webpack_require__(53); 659var createError = __webpack_require__(15); 660 661module.exports = function xhrAdapter(config) { 662 return new Promise(function dispatchXhrRequest(resolve, reject) { 663 var requestData = config.data; 664 var requestHeaders = config.headers; 665 666 if (utils.isFormData(requestData)) { 667 delete requestHeaders['Content-Type']; // Let the browser set it 668 } 669 670 var request = new XMLHttpRequest(); 671 672 // HTTP basic authentication 673 if (config.auth) { 674 var username = config.auth.username || ''; 675 var password = config.auth.password || ''; 676 requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); 677 } 678 679 request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true); 680 681 // Set the request timeout in MS 682 request.timeout = config.timeout; 683 684 // Listen for ready state 685 request.onreadystatechange = function handleLoad() { 686 if (!request || request.readyState !== 4) { 687 return; 688 } 689 690 // The request errored out and we didn't get a response, this will be 691 // handled by onerror instead 692 // With one exception: request that using file: protocol, most browsers 693 // will return status as 0 even though it's a successful request 694 if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { 695 return; 696 } 697 698 // Prepare the response 699 var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; 700 var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; 701 var response = { 702 data: responseData, 703 status: request.status, 704 statusText: request.statusText, 705 headers: responseHeaders, 706 config: config, 707 request: request 708 }; 709 710 settle(resolve, reject, response); 711 712 // Clean up request 713 request = null; 714 }; 715 716 // Handle low level network errors 717 request.onerror = function handleError() { 718 // Real errors are hidden from us by the browser 719 // onerror should only fire if it's a network error 720 reject(createError('Network Error', config, null, request)); 721 722 // Clean up request 723 request = null; 724 }; 725 726 // Handle timeout 727 request.ontimeout = function handleTimeout() { 728 reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED', 729 request)); 730 731 // Clean up request 732 request = null; 733 }; 734 735 // Add xsrf header 736 // This is only done if running in a standard browser environment. 737 // Specifically not if we're in a web worker, or react-native. 738 if (utils.isStandardBrowserEnv()) { 739 var cookies = __webpack_require__(54); 740 741 // Add xsrf header 742 var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ? 743 cookies.read(config.xsrfCookieName) : 744 undefined; 745 746 if (xsrfValue) { 747 requestHeaders[config.xsrfHeaderName] = xsrfValue; 748 } 749 } 750 751 // Add headers to the request 752 if ('setRequestHeader' in request) {
vendor: 5,502 bytes, lines 753-941
753 utils.forEach(requestHeaders, function setRequestHeader(val, key) { 754 if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { 755 // Remove Content-Type if data is undefined 756 delete requestHeaders[key]; 757 } else { 758 // Otherwise add header to the request 759 request.setRequestHeader(key, val); 760 } 761 }); 762 } 763 764 // Add withCredentials to request if needed 765 if (config.withCredentials) { 766 request.withCredentials = true; 767 } 768 769 // Add responseType to request if needed 770 if (config.responseType) { 771 try { 772 request.responseType = config.responseType; 773 } catch (e) { 774 // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. 775 // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. 776 if (config.responseType !== 'json') { 777 throw e; 778 } 779 } 780 } 781 782 // Handle progress if needed 783 if (typeof config.onDownloadProgress === 'function') { 784 request.addEventListener('progress', config.onDownloadProgress); 785 } 786 787 // Not all browsers support upload events 788 if (typeof config.onUploadProgress === 'function' && request.upload) { 789 request.upload.addEventListener('progress', config.onUploadProgress); 790 } 791 792 if (config.cancelToken) { 793 // Handle cancellation 794 config.cancelToken.promise.then(function onCanceled(cancel) { 795 if (!request) { 796 return; 797 } 798 799 request.abort(); 800 reject(cancel); 801 // Clean up request 802 request = null; 803 }); 804 } 805 806 if (requestData === undefined) { 807 requestData = null; 808 } 809 810 // Send the request 811 request.send(requestData); 812 }); 813}; 814 815 816/***/ }), 817/* 15 */ 818/***/ (function(module, exports, __webpack_require__) { 819 820"use strict"; 821 822 823var enhanceError = __webpack_require__(50); 824 825/** 826 * Create an Error with the specified message, config, error code, request and response. 827 * 828 * @param {string} message The error message. 829 * @param {Object} config The config. 830 * @param {string} [code] The error code (for example, 'ECONNABORTED'). 831 * @param {Object} [request] The request. 832 * @param {Object} [response] The response. 833 * @returns {Error} The created error. 834 */ 835module.exports = function createError(message, config, code, request, response) { 836 var error = new Error(message); 837 return enhanceError(error, config, code, request, response); 838}; 839 840 841/***/ }), 842/* 16 */ 843/***/ (function(module, exports, __webpack_require__) { 844 845"use strict"; 846 847 848module.exports = function isCancel(value) { 849 return !!(value && value.__CANCEL__); 850}; 851 852 853/***/ }), 854/* 17 */ 855/***/ (function(module, exports, __webpack_require__) { 856 857"use strict"; 858 859 860/** 861 * A `Cancel` is an object that is thrown when an operation is canceled. 862 * 863 * @class 864 * @param {string=} message The message. 865 */ 866function Cancel(message) { 867 this.message = message; 868} 869 870Cancel.prototype.toString = function toString() { 871 return 'Cancel' + (this.message ? ': ' + this.message : ''); 872}; 873 874Cancel.prototype.__CANCEL__ = true; 875 876module.exports = Cancel; 877 878 879/***/ }), 880/* 18 */ 881/***/ (function(module, exports, __webpack_require__) { 882 883module.exports = __webpack_require__(19); 884 885 886/***/ }), 887/* 19 */ 888/***/ (function(module, __webpack_exports__, __webpack_require__) { 889 890"use strict"; 891Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 892/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_core_js_modules_es6_array_find__ = __webpack_require__(20); 893/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_core_js_modules_es6_array_find___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_core_js_modules_es6_array_find__); 894/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios__ = __webpack_require__(43); 895/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_axios__); 896 897 898 899window.cartProductRemove = function (element) { 900 var cartProductId = element.getAttribute("data-cart-product-id"); 901 var productId = element.getAttribute("data-product-id"); 902 var template = element.getAttribute("data-template"); 903 updateProductQuantityApiCall(cartProductId, productId, 0, template, element); 904}; 905 906window.cartProductQuantityChanged = function (event) { 907 var element = event.currentTarget; 908 var cartProductId = element.getAttribute("data-cart-product-id"); 909 var productId = element.getAttribute("data-product-id"); 910 var template = element.getAttribute("data-template"); 911 var quantity = element.value; 912 updateProductQuantityApiCall(cartProductId, productId, quantity, template, element); 913}; 914 915window.updateProductQuantityApiCall = function (cartProductId, productId, quantity, template, element) { 916 return __WEBPACK_IMPORTED_MODULE_1_axios___default.a.get('/api/v1/cart/html-view', { 917 headers: { 918 'Content-Type': 'application/json', 919 'custom-theme': 1 920 }, 921 params: { 922 quantity: quantity, 923 'cart-product-id': cartProductId, 924 'product-id': productId, 925 template: template 926 }, 927 data: {} 928 }).then(function (r) { 929 return r.data; 930 }).then(function (response) { 931 if (response && response.html !== null) { 932 if (window.cartLoadEmbeddedForm) { 933 window.cartObj = response.cart; 934 window.cartLoadEmbeddedForm(); 935 } 936 937 if (window.cartProductsHtmlChanged) { 938 window.cartProductsHtmlChanged(response.html, response.cart); 939 } // Update Tamara widget amount 940 941
942 try { 943 var tamaraWidget = document.querySelector('tamara-widget'); 944 945 if (tamaraWidget && window.TamaraWidgetV2) { 946 if (response.cart.total.value) { 947 tamaraWidget.setAttribute('amount', response.cart.total.value); 948 window.TamaraWidgetV2.refresh(); 949 console.warn('Tamara amount has been updated'); 950 } else { 951 console.warn('Tamara amount not set'); 952 } 953 } 954 } catch (err) { 955 console.error('Tamara error: ' + err.message); 956 } 957 958 if (window.TabbyPromo) { 959 try { 960 var tabbyElm = document.querySelector(".tabby-cart-widget"); 961 window.TabbyPromo = new TabbyPromo.constructor({ 962 selector: '.tabby-cart-widget', 963 currency: tabbyElm.getAttribute("data-currency"), 964 lang: tabbyElm.getAttribute("data-lang"), 965 price: response.cart.total.value, 966 installmentsCount: 4, 967 source: 'cart' 968 }); 969 } catch (err) { 970 console.log('TabbyPromo init error: ' + err.message); 971 } 972 } 973 974 if (window.loyaltyCalculations) { 975 window.loyaltyCalculations(response.cart.total.value); 976 } 977 978 if (typeof cart_total_discount !== 'undefined') { 979 try { 980 var totalDiscount = response.cart.totals.find(function (item) { 981 return item.code === 'products_discount' || item.code === 'coupon'; 982 }); 983 984 if (totalDiscount) { 985 cart_total_discount = totalDiscount.value; 986 } else { 987 cart_total_discount = 0; 988 } 989 } catch (e) {} 990 } 991 992 if (productId && window.sendProductAddToCartEvent && window.sendProductRemoveFromCartEvent) { 993 var shareToken = element ? element.getAttribute("data-share-token") : null; 994 var productIdentifier = shareToken || productId; 995 __WEBPACK_IMPORTED_MODULE_1_axios___default.a.get('/api/v1/products/' + productIdentifier, { 996 headers: { 997 'Content-Type': 'application/json', 998 'custom-theme': 1 999 }, 1000 params: {}, 1001 data: {} 1002 }).then(function (r) { 1003 return r.data; 1004 }).then(function (response) { 1005 if (response.data && response.data.product !== null) { 1006 if (quantity <= 0) { 1007 window.sendProductRemoveFromCartEvent({ 1008 product: response.data.product, 1009 quantity: quantity 1010 }); 1011 } else { 1012 window.sendProductAddToCartEvent({ 1013 product: response.data.product, 1014 quantity: quantity 1015 }); 1016 } 1017 } 1018 }).catch(function (error) {}); 1019 } 1020 1021 if (parseInt(response.cart.products_count) === 0 && response.cart.gift_card_details) { 1022 __WEBPACK_IMPORTED_MODULE_1_axios___default.a.delete('/api/v1/cart/remove-gift-card', { 1023 headers: { 1024 'Content-Type': 'application/json', 1025 'custom-theme': 1 1026 } 1027 }); 1028 } 1029 } 1030 }).catch(function (error) {}); 1031}; 1032 1033/***/ }), 1034/* 20 */ 1035/***/ (function(module, exports, __webpack_require__) { 1036 1037"use strict"; 1038 1039// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
vendor: 8,560 bytes, lines 1040-1335
1040var $export = __webpack_require__(21); 1041var $find = __webpack_require__(33)(5); 1042var KEY = 'find'; 1043var forced = true; 1044// Shouldn't skip holes 1045if (KEY in []) Array(1)[KEY](function () { forced = false; }); 1046$export($export.P + $export.F * forced, 'Array', { 1047 find: function find(callbackfn /* , that = undefined */) { 1048 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); 1049 } 1050}); 1051__webpack_require__(42)(KEY); 1052 1053 1054/***/ }), 1055/* 21 */ 1056/***/ (function(module, exports, __webpack_require__) { 1057 1058var global = __webpack_require__(1); 1059var core = __webpack_require__(3); 1060var hide = __webpack_require__(4); 1061var redefine = __webpack_require__(28); 1062var ctx = __webpack_require__(10); 1063var PROTOTYPE = 'prototype'; 1064 1065var $export = function (type, name, source) { 1066 var IS_FORCED = type & $export.F; 1067 var IS_GLOBAL = type & $export.G; 1068 var IS_STATIC = type & $export.S; 1069 var IS_PROTO = type & $export.P; 1070 var IS_BIND = type & $export.B; 1071 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; 1072 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 1073 var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); 1074 var key, own, out, exp; 1075 if (IS_GLOBAL) source = name; 1076 for (key in source) { 1077 // contains in native 1078 own = !IS_FORCED && target && target[key] !== undefined; 1079 // export native or passed 1080 out = (own ? target : source)[key]; 1081 // bind timers to global for call from export context 1082 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 1083 // extend global 1084 if (target) redefine(target, key, out, type & $export.U); 1085 // export 1086 if (exports[key] != out) hide(exports, key, exp); 1087 if (IS_PROTO && expProto[key] != out) expProto[key] = out; 1088 } 1089}; 1090global.core = core; 1091// type bitmap 1092$export.F = 1; // forced 1093$export.G = 2; // global 1094$export.S = 4; // static 1095$export.P = 8; // proto 1096$export.B = 16; // bind 1097$export.W = 32; // wrap 1098$export.U = 64; // safe 1099$export.R = 128; // real proto method for `library` 1100module.exports = $export; 1101 1102 1103/***/ }), 1104/* 22 */ 1105/***/ (function(module, exports, __webpack_require__) { 1106 1107var anObject = __webpack_require__(23); 1108var IE8_DOM_DEFINE = __webpack_require__(24); 1109var toPrimitive = __webpack_require__(26); 1110var dP = Object.defineProperty; 1111 1112exports.f = __webpack_require__(5) ? Object.defineProperty : function defineProperty(O, P, Attributes) { 1113 anObject(O); 1114 P = toPrimitive(P, true); 1115 anObject(Attributes); 1116 if (IE8_DOM_DEFINE) try { 1117 return dP(O, P, Attributes); 1118 } catch (e) { /* empty */ } 1119 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 1120 if ('value' in Attributes) O[P] = Attributes.value; 1121 return O; 1122}; 1123 1124 1125/***/ }), 1126/* 23 */ 1127/***/ (function(module, exports, __webpack_require__) { 1128 1129var isObject = __webpack_require__(2); 1130module.exports = function (it) { 1131 if (!isObject(it)) throw TypeError(it + ' is not an object!'); 1132 return it; 1133}; 1134 1135 1136/***/ }), 1137/* 24 */ 1138/***/ (function(module, exports, __webpack_require__) { 1139 1140module.exports = !__webpack_require__(5) && !__webpack_require__(7)(function () { 1141 return Object.defineProperty(__webpack_require__(25)('div'), 'a', { get: function () { return 7; } }).a != 7; 1142}); 1143 1144 1145/***/ }), 1146/* 25 */ 1147/***/ (function(module, exports, __webpack_require__) { 1148 1149var isObject = __webpack_require__(2); 1150var document = __webpack_require__(1).document; 1151// typeof document.createElement is 'object' in old IE 1152var is = isObject(document) && isObject(document.createElement); 1153module.exports = function (it) { 1154 return is ? document.createElement(it) : {}; 1155}; 1156 1157 1158/***/ }), 1159/* 26 */ 1160/***/ (function(module, exports, __webpack_require__) { 1161 1162// 7.1.1 ToPrimitive(input [, PreferredType]) 1163var isObject = __webpack_require__(2); 1164// instead of the ES6 spec version, we didn't implement @@toPrimitive case 1165// and the second argument - flag - preferred type is a string 1166module.exports = function (it, S) { 1167 if (!isObject(it)) return it; 1168 var fn, val; 1169 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 1170 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 1171 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 1172 throw TypeError("Can't convert object to primitive value"); 1173}; 1174 1175 1176/***/ }), 1177/* 27 */ 1178/***/ (function(module, exports) { 1179 1180module.exports = function (bitmap, value) { 1181 return { 1182 enumerable: !(bitmap & 1), 1183 configurable: !(bitmap & 2), 1184 writable: !(bitmap & 4), 1185 value: value 1186 }; 1187}; 1188 1189 1190/***/ }), 1191/* 28 */ 1192/***/ (function(module, exports, __webpack_require__) { 1193 1194var global = __webpack_require__(1); 1195var hide = __webpack_require__(4); 1196var has = __webpack_require__(29); 1197var SRC = __webpack_require__(8)('src'); 1198var $toString = __webpack_require__(30); 1199var TO_STRING = 'toString'; 1200var TPL = ('' + $toString).split(TO_STRING); 1201 1202__webpack_require__(3).inspectSource = function (it) { 1203 return $toString.call(it); 1204}; 1205 1206(module.exports = function (O, key, val, safe) { 1207 var isFunction = typeof val == 'function'; 1208 if (isFunction) has(val, 'name') || hide(val, 'name', key); 1209 if (O[key] === val) return; 1210 if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); 1211 if (O === global) { 1212 O[key] = val; 1213 } else if (!safe) { 1214 delete O[key]; 1215 hide(O, key, val); 1216 } else if (O[key]) { 1217 O[key] = val; 1218 } else { 1219 hide(O, key, val); 1220 } 1221// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative 1222})(Function.prototype, TO_STRING, function toString() { 1223 return typeof this == 'function' && this[SRC] || $toString.call(this); 1224}); 1225 1226 1227/***/ }), 1228/* 29 */ 1229/***/ (function(module, exports) { 1230 1231var hasOwnProperty = {}.hasOwnProperty; 1232module.exports = function (it, key) { 1233 return hasOwnProperty.call(it, key); 1234}; 1235 1236 1237/***/ }), 1238/* 30 */ 1239/***/ (function(module, exports, __webpack_require__) { 1240 1241module.exports = __webpack_require__(9)('native-function-to-string', Function.toString); 1242 1243 1244/***/ }), 1245/* 31 */ 1246/***/ (function(module, exports) { 1247 1248module.exports = false; 1249 1250 1251/***/ }), 1252/* 32 */ 1253/***/ (function(module, exports) { 1254 1255module.exports = function (it) { 1256 if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 1257 return it; 1258}; 1259 1260 1261/***/ }), 1262/* 33 */ 1263/***/ (function(module, exports, __webpack_require__) { 1264 1265// 0 -> Array#forEach 1266// 1 -> Array#map 1267// 2 -> Array#filter 1268// 3 -> Array#some 1269// 4 -> Array#every 1270// 5 -> Array#find 1271// 6 -> Array#findIndex 1272var ctx = __webpack_require__(10); 1273var IObject = __webpack_require__(34); 1274var toObject = __webpack_require__(35); 1275var toLength = __webpack_require__(37); 1276var asc = __webpack_require__(39); 1277module.exports = function (TYPE, $create) { 1278 var IS_MAP = TYPE == 1; 1279 var IS_FILTER = TYPE == 2; 1280 var IS_SOME = TYPE == 3; 1281 var IS_EVERY = TYPE == 4; 1282 var IS_FIND_INDEX = TYPE == 6; 1283 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; 1284 var create = $create || asc; 1285 return function ($this, callbackfn, that) { 1286 var O = toObject($this); 1287 var self = IObject(O); 1288 var f = ctx(callbackfn, that, 3); 1289 var length = toLength(self.length); 1290 var index = 0; 1291 var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; 1292 var val, res; 1293 for (;length > index; index++) if (NO_HOLES || index in self) { 1294 val = self[index]; 1295 res = f(val, index, O); 1296 if (TYPE) { 1297 if (IS_MAP) result[index] = res; // map 1298 else if (res) switch (TYPE) { 1299 case 3: return true; // some 1300 case 5: return val; // find 1301 case 6: return index; // findIndex 1302 case 2: result.push(val); // filter 1303 } else if (IS_EVERY) return false; // every 1304 } 1305 } 1306 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; 1307 }; 1308}; 1309 1310 1311/***/ }), 1312/* 34 */ 1313/***/ (function(module, exports, __webpack_require__) { 1314 1315// fallback for non-array-like ES3 and non-enumerable old V8 strings 1316var cof = __webpack_require__(11); 1317// eslint-disable-next-line no-prototype-builtins 1318module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 1319 return cof(it) == 'String' ? it.split('') : Object(it); 1320}; 1321 1322 1323/***/ }), 1324/* 35 */ 1325/***/ (function(module, exports, __webpack_require__) { 1326 1327// 7.1.13 ToObject(argument) 1328var defined = __webpack_require__(36); 1329module.exports = function (it) { 1330 return Object(defined(it)); 1331}; 1332 1333 1334/***/ }), 1335/* 36 */
1336/***/ (function(module, exports) { 1337 1338// 7.2.1 RequireObjectCoercible(argument) 1339module.exports = function (it) { 1340 if (it == undefined) throw TypeError("Can't call method on " + it); 1341 return it; 1342}; 1343 1344 1345/***/ }), 1346/* 37 */ 1347/***/ (function(module, exports, __webpack_require__) { 1348 1349// 7.1.15 ToLength 1350var toInteger = __webpack_require__(38); 1351var min = Math.min; 1352module.exports = function (it) { 1353 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 1354}; 1355 1356 1357/***/ }), 1358/* 38 */ 1359/***/ (function(module, exports) { 1360 1361// 7.1.4 ToInteger 1362var ceil = Math.ceil; 1363var floor = Math.floor; 1364module.exports = function (it) { 1365 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 1366}; 1367 1368 1369/***/ }), 1370/* 39 */ 1371/***/ (function(module, exports, __webpack_require__) { 1372 1373// 9.4.2.3 ArraySpeciesCreate(originalArray, length) 1374var speciesConstructor = __webpack_require__(40); 1375 1376module.exports = function (original, length) { 1377 return new (speciesConstructor(original))(length); 1378}; 1379 1380 1381/***/ }), 1382/* 40 */ 1383/***/ (function(module, exports, __webpack_require__) { 1384 1385var isObject = __webpack_require__(2); 1386var isArray = __webpack_require__(41); 1387var SPECIES = __webpack_require__(12)('species'); 1388 1389module.exports = function (original) { 1390 var C; 1391 if (isArray(original)) { 1392 C = original.constructor; 1393 // cross-realm fallback 1394 if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; 1395 if (isObject(C)) { 1396 C = C[SPECIES]; 1397 if (C === null) C = undefined; 1398 } 1399 } return C === undefined ? Array : C; 1400}; 1401 1402 1403/***/ }), 1404/* 41 */ 1405/***/ (function(module, exports, __webpack_require__) { 1406 1407// 7.2.2 IsArray(argument) 1408var cof = __webpack_require__(11); 1409module.exports = Array.isArray || function isArray(arg) { 1410 return cof(arg) == 'Array'; 1411}; 1412 1413 1414/***/ }), 1415/* 42 */ 1416/***/ (function(module, exports, __webpack_require__) { 1417 1418// 22.1.3.31 Array.prototype[@@unscopables] 1419var UNSCOPABLES = __webpack_require__(12)('unscopables'); 1420var ArrayProto = Array.prototype; 1421if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(4)(ArrayProto, UNSCOPABLES, {}); 1422module.exports = function (key) { 1423 ArrayProto[UNSCOPABLES][key] = true; 1424}; 1425 1426 1427/***/ }), 1428/* 43 */ 1429/***/ (function(module, exports, __webpack_require__) { 1430 1431module.exports = __webpack_require__(44); 1432 1433/***/ }), 1434/* 44 */ 1435/***/ (function(module, exports, __webpack_require__) { 1436 1437"use strict"; 1438 1439 1440var utils = __webpack_require__(0); 1441var bind = __webpack_require__(13); 1442var Axios = __webpack_require__(46); 1443var defaults = __webpack_require__(6); 1444 1445/** 1446 * Create an instance of Axios 1447 * 1448 * @param {Object} defaultConfig The default config for the instance 1449 * @return {Axios} A new instance of Axios 1450 */ 1451function createInstance(defaultConfig) { 1452 var context = new Axios(defaultConfig); 1453 var instance = bind(Axios.prototype.request, context); 1454 1455 // Copy axios.prototype to instance 1456 utils.extend(instance, Axios.prototype, context); 1457 1458 // Copy context to instance 1459 utils.extend(instance, context); 1460 1461 return instance; 1462} 1463 1464// Create the default instance to be exported 1465var axios = createInstance(defaults); 1466 1467// Expose Axios class to allow class inheritance 1468axios.Axios = Axios; 1469 1470// Factory for creating new instances 1471axios.create = function create(instanceConfig) { 1472 return createInstance(utils.merge(defaults, instanceConfig)); 1473}; 1474 1475// Expose Cancel & CancelToken 1476axios.Cancel = __webpack_require__(17); 1477axios.CancelToken = __webpack_require__(60); 1478axios.isCancel = __webpack_require__(16); 1479 1480// Expose all/spread 1481axios.all = function all(promises) { 1482 return Promise.all(promises); 1483}; 1484axios.spread = __webpack_require__(61); 1485 1486module.exports = axios; 1487 1488// Allow use of default import syntax in TypeScript 1489module.exports.default = axios; 1490 1491 1492/***/ }), 1493/* 45 */ 1494/***/ (function(module, exports) { 1495 1496/*! 1497 * Determine if an object is a Buffer 1498 * 1499 * @author Feross Aboukhadijeh <https://feross.org> 1500 * @license MIT 1501 */ 1502 1503module.exports = function isBuffer (obj) { 1504 return obj != null && obj.constructor != null && 1505 typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj) 1506} 1507 1508 1509/***/ }), 1510/* 46 */ 1511/***/ (function(module, exports, __webpack_require__) { 1512 1513"use strict"; 1514 1515 1516var defaults = __webpack_require__(6); 1517var utils = __webpack_require__(0); 1518var InterceptorManager = __webpack_require__(55); 1519var dispatchRequest = __webpack_require__(56); 1520 1521/** 1522 * Create a new instance of Axios 1523 * 1524 * @param {Object} instanceConfig The default config for the instance 1525 */ 1526function Axios(instanceConfig) { 1527 this.defaults = instanceConfig; 1528 this.interceptors = { 1529 request: new InterceptorManager(), 1530 response: new InterceptorManager() 1531 }; 1532} 1533 1534/** 1535 * Dispatch a request 1536 * 1537 * @param {Object} config The config specific for this request (merged with this.defaults) 1538 */ 1539Axios.prototype.request = function request(config) { 1540 /*eslint no-param-reassign:0*/ 1541 // Allow for axios('example/url'[, config]) a la fetch API 1542 if (typeof config === 'string') { 1543 config = utils.merge({ 1544 url: arguments[0] 1545 }, arguments[1]); 1546 } 1547 1548 config = utils.merge(defaults, {method: 'get'}, this.defaults, config); 1549 config.method = config.method.toLowerCase(); 1550 1551 // Hook up interceptors middleware 1552 var chain = [dispatchRequest, undefined]; 1553 var promise = Promise.resolve(config); 1554 1555 this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { 1556 chain.unshift(interceptor.fulfilled, interceptor.rejected); 1557 }); 1558 1559 this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { 1560 chain.push(interceptor.fulfilled, interceptor.rejected); 1561 }); 1562 1563 while (chain.length) { 1564 promise = promise.then(chain.shift(), chain.shift()); 1565 } 1566 1567 return promise; 1568}; 1569 1570// Provide aliases for supported request methods
vendor: 4,745 bytes, lines 1571-1728
1571utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { 1572 /*eslint func-names:0*/ 1573 Axios.prototype[method] = function(url, config) { 1574 return this.request(utils.merge(config || {}, { 1575 method: method, 1576 url: url 1577 })); 1578 }; 1579}); 1580 1581utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { 1582 /*eslint func-names:0*/ 1583 Axios.prototype[method] = function(url, data, config) { 1584 return this.request(utils.merge(config || {}, { 1585 method: method, 1586 url: url, 1587 data: data 1588 })); 1589 }; 1590}); 1591 1592module.exports = Axios; 1593 1594 1595/***/ }), 1596/* 47 */ 1597/***/ (function(module, exports) { 1598 1599// shim for using process in browser 1600var process = module.exports = {}; 1601 1602// cached from whatever global is present so that test runners that stub it 1603// don't break things. But we need to wrap it in a try catch in case it is 1604// wrapped in strict mode code which doesn't define any globals. It's inside a 1605// function because try/catches deoptimize in certain engines. 1606 1607var cachedSetTimeout; 1608var cachedClearTimeout; 1609 1610function defaultSetTimout() { 1611 throw new Error('setTimeout has not been defined'); 1612} 1613function defaultClearTimeout () { 1614 throw new Error('clearTimeout has not been defined'); 1615} 1616(function () { 1617 try { 1618 if (typeof setTimeout === 'function') { 1619 cachedSetTimeout = setTimeout; 1620 } else { 1621 cachedSetTimeout = defaultSetTimout; 1622 } 1623 } catch (e) { 1624 cachedSetTimeout = defaultSetTimout; 1625 } 1626 try { 1627 if (typeof clearTimeout === 'function') { 1628 cachedClearTimeout = clearTimeout; 1629 } else { 1630 cachedClearTimeout = defaultClearTimeout; 1631 } 1632 } catch (e) { 1633 cachedClearTimeout = defaultClearTimeout; 1634 } 1635} ()) 1636function runTimeout(fun) { 1637 if (cachedSetTimeout === setTimeout) { 1638 //normal enviroments in sane situations 1639 return setTimeout(fun, 0); 1640 } 1641 // if setTimeout wasn't available but was latter defined 1642 if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { 1643 cachedSetTimeout = setTimeout; 1644 return setTimeout(fun, 0); 1645 } 1646 try { 1647 // when when somebody has screwed with setTimeout but no I.E. maddness 1648 return cachedSetTimeout(fun, 0); 1649 } catch(e){ 1650 try { 1651 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally 1652 return cachedSetTimeout.call(null, fun, 0); 1653 } catch(e){ 1654 // 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 1655 return cachedSetTimeout.call(this, fun, 0); 1656 } 1657 } 1658 1659 1660} 1661function runClearTimeout(marker) { 1662 if (cachedClearTimeout === clearTimeout) { 1663 //normal enviroments in sane situations 1664 return clearTimeout(marker); 1665 } 1666 // if clearTimeout wasn't available but was latter defined 1667 if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { 1668 cachedClearTimeout = clearTimeout; 1669 return clearTimeout(marker); 1670 } 1671 try { 1672 // when when somebody has screwed with setTimeout but no I.E. maddness 1673 return cachedClearTimeout(marker); 1674 } catch (e){ 1675 try { 1676 // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally 1677 return cachedClearTimeout.call(null, marker); 1678 } catch (e){ 1679 // 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. 1680 // Some versions of I.E. have different rules for clearTimeout vs setTimeout 1681 return cachedClearTimeout.call(this, marker); 1682 } 1683 } 1684 1685 1686 1687} 1688var queue = []; 1689var draining = false; 1690var currentQueue; 1691var queueIndex = -1; 1692 1693function cleanUpNextTick() { 1694 if (!draining || !currentQueue) { 1695 return; 1696 } 1697 draining = false; 1698 if (currentQueue.length) { 1699 queue = currentQueue.concat(queue); 1700 } else { 1701 queueIndex = -1; 1702 } 1703 if (queue.length) { 1704 drainQueue(); 1705 } 1706} 1707 1708function drainQueue() { 1709 if (draining) { 1710 return; 1711 } 1712 var timeout = runTimeout(cleanUpNextTick); 1713 draining = true; 1714 1715 var len = queue.length; 1716 while(len) { 1717 currentQueue = queue; 1718 queue = []; 1719 while (++queueIndex < len) { 1720 if (currentQueue) { 1721 currentQueue[queueIndex].run(); 1722 } 1723 } 1724 queueIndex = -1; 1725 len = queue.length; 1726 } 1727 currentQueue = null; 1728 draining = false;
vendor: 4,228 bytes, lines 1729-1905
1729 runClearTimeout(timeout); 1730} 1731 1732process.nextTick = function (fun) { 1733 var args = new Array(arguments.length - 1); 1734 if (arguments.length > 1) { 1735 for (var i = 1; i < arguments.length; i++) { 1736 args[i - 1] = arguments[i]; 1737 } 1738 } 1739 queue.push(new Item(fun, args)); 1740 if (queue.length === 1 && !draining) { 1741 runTimeout(drainQueue); 1742 } 1743}; 1744 1745// v8 likes predictible objects 1746function Item(fun, array) { 1747 this.fun = fun; 1748 this.array = array; 1749} 1750Item.prototype.run = function () { 1751 this.fun.apply(null, this.array); 1752}; 1753process.title = 'browser'; 1754process.browser = true; 1755process.env = {}; 1756process.argv = []; 1757process.version = ''; // empty string to avoid regexp issues 1758process.versions = {}; 1759 1760function noop() {} 1761 1762process.on = noop; 1763process.addListener = noop; 1764process.once = noop; 1765process.off = noop; 1766process.removeListener = noop; 1767process.removeAllListeners = noop; 1768process.emit = noop; 1769process.prependListener = noop; 1770process.prependOnceListener = noop; 1771 1772process.listeners = function (name) { return [] } 1773 1774process.binding = function (name) { 1775 throw new Error('process.binding is not supported'); 1776}; 1777 1778process.cwd = function () { return '/' }; 1779process.chdir = function (dir) { 1780 throw new Error('process.chdir is not supported'); 1781}; 1782process.umask = function() { return 0; }; 1783 1784 1785/***/ }), 1786/* 48 */ 1787/***/ (function(module, exports, __webpack_require__) { 1788 1789"use strict"; 1790 1791 1792var utils = __webpack_require__(0); 1793 1794module.exports = function normalizeHeaderName(headers, normalizedName) { 1795 utils.forEach(headers, function processHeader(value, name) { 1796 if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { 1797 headers[normalizedName] = value; 1798 delete headers[name]; 1799 } 1800 }); 1801}; 1802 1803 1804/***/ }), 1805/* 49 */ 1806/***/ (function(module, exports, __webpack_require__) { 1807 1808"use strict"; 1809 1810 1811var createError = __webpack_require__(15); 1812 1813/** 1814 * Resolve or reject a Promise based on response status. 1815 * 1816 * @param {Function} resolve A function that resolves the promise. 1817 * @param {Function} reject A function that rejects the promise. 1818 * @param {object} response The response. 1819 */ 1820module.exports = function settle(resolve, reject, response) { 1821 var validateStatus = response.config.validateStatus; 1822 // Note: status is not exposed by XDomainRequest 1823 if (!response.status || !validateStatus || validateStatus(response.status)) { 1824 resolve(response); 1825 } else { 1826 reject(createError( 1827 'Request failed with status code ' + response.status, 1828 response.config, 1829 null, 1830 response.request, 1831 response 1832 )); 1833 } 1834}; 1835 1836 1837/***/ }), 1838/* 50 */ 1839/***/ (function(module, exports, __webpack_require__) { 1840 1841"use strict"; 1842 1843 1844/** 1845 * Update an Error with the specified config, error code, and response. 1846 * 1847 * @param {Error} error The error to update. 1848 * @param {Object} config The config. 1849 * @param {string} [code] The error code (for example, 'ECONNABORTED'). 1850 * @param {Object} [request] The request. 1851 * @param {Object} [response] The response. 1852 * @returns {Error} The error. 1853 */ 1854module.exports = function enhanceError(error, config, code, request, response) { 1855 error.config = config; 1856 if (code) { 1857 error.code = code; 1858 } 1859 error.request = request; 1860 error.response = response; 1861 return error; 1862}; 1863 1864 1865/***/ }), 1866/* 51 */ 1867/***/ (function(module, exports, __webpack_require__) { 1868 1869"use strict"; 1870 1871 1872var utils = __webpack_require__(0); 1873 1874function encode(val) { 1875 return encodeURIComponent(val). 1876 replace(/%40/gi, '@'). 1877 replace(/%3A/gi, ':'). 1878 replace(/%24/g, '$'). 1879 replace(/%2C/gi, ','). 1880 replace(/%20/g, '+'). 1881 replace(/%5B/gi, '['). 1882 replace(/%5D/gi, ']'); 1883} 1884 1885/** 1886 * Build a URL by appending params to the end 1887 * 1888 * @param {string} url The base of the url (e.g., http://www.google.com) 1889 * @param {object} [params] The params to be appended 1890 * @returns {string} The formatted url 1891 */ 1892module.exports = function buildURL(url, params, paramsSerializer) { 1893 /*eslint no-param-reassign:0*/ 1894 if (!params) { 1895 return url; 1896 } 1897 1898 var serializedParams; 1899 if (paramsSerializer) { 1900 serializedParams = paramsSerializer(params); 1901 } else if (utils.isURLSearchParams(params)) { 1902 serializedParams = params.toString(); 1903 } else { 1904 var parts = []; 1905
vendor: 7,094 bytes, lines 1906-2181
1906 utils.forEach(params, function serialize(val, key) { 1907 if (val === null || typeof val === 'undefined') { 1908 return; 1909 } 1910 1911 if (utils.isArray(val)) { 1912 key = key + '[]'; 1913 } else { 1914 val = [val]; 1915 } 1916 1917 utils.forEach(val, function parseValue(v) { 1918 if (utils.isDate(v)) { 1919 v = v.toISOString(); 1920 } else if (utils.isObject(v)) { 1921 v = JSON.stringify(v); 1922 } 1923 parts.push(encode(key) + '=' + encode(v)); 1924 }); 1925 }); 1926 1927 serializedParams = parts.join('&'); 1928 } 1929 1930 if (serializedParams) { 1931 url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; 1932 } 1933 1934 return url; 1935}; 1936 1937 1938/***/ }), 1939/* 52 */ 1940/***/ (function(module, exports, __webpack_require__) { 1941 1942"use strict"; 1943 1944 1945var utils = __webpack_require__(0); 1946 1947// Headers whose duplicates are ignored by node 1948// c.f. https://nodejs.org/api/http.html#http_message_headers 1949var ignoreDuplicateOf = [ 1950 'age', 'authorization', 'content-length', 'content-type', 'etag', 1951 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 1952 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 1953 'referer', 'retry-after', 'user-agent' 1954]; 1955 1956/** 1957 * Parse headers into an object 1958 * 1959 * ``` 1960 * Date: Wed, 27 Aug 2014 08:58:49 GMT 1961 * Content-Type: application/json 1962 * Connection: keep-alive 1963 * Transfer-Encoding: chunked 1964 * ``` 1965 * 1966 * @param {String} headers Headers needing to be parsed 1967 * @returns {Object} Headers parsed into an object 1968 */ 1969module.exports = function parseHeaders(headers) { 1970 var parsed = {}; 1971 var key; 1972 var val; 1973 var i; 1974 1975 if (!headers) { return parsed; } 1976 1977 utils.forEach(headers.split('\n'), function parser(line) { 1978 i = line.indexOf(':'); 1979 key = utils.trim(line.substr(0, i)).toLowerCase(); 1980 val = utils.trim(line.substr(i + 1)); 1981 1982 if (key) { 1983 if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { 1984 return; 1985 } 1986 if (key === 'set-cookie') { 1987 parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); 1988 } else { 1989 parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; 1990 } 1991 } 1992 }); 1993 1994 return parsed; 1995}; 1996 1997 1998/***/ }), 1999/* 53 */ 2000/***/ (function(module, exports, __webpack_require__) { 2001 2002"use strict"; 2003 2004 2005var utils = __webpack_require__(0); 2006 2007module.exports = ( 2008 utils.isStandardBrowserEnv() ? 2009 2010 // Standard browser envs have full support of the APIs needed to test 2011 // whether the request URL is of the same origin as current location. 2012 (function standardBrowserEnv() { 2013 var msie = /(msie|trident)/i.test(navigator.userAgent); 2014 var urlParsingNode = document.createElement('a'); 2015 var originURL; 2016 2017 /** 2018 * Parse a URL to discover it's components 2019 * 2020 * @param {String} url The URL to be parsed 2021 * @returns {Object} 2022 */ 2023 function resolveURL(url) { 2024 var href = url; 2025 2026 if (msie) { 2027 // IE needs attribute set twice to normalize properties 2028 urlParsingNode.setAttribute('href', href); 2029 href = urlParsingNode.href; 2030 } 2031 2032 urlParsingNode.setAttribute('href', href); 2033 2034 // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils 2035 return { 2036 href: urlParsingNode.href, 2037 protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', 2038 host: urlParsingNode.host, 2039 search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', 2040 hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', 2041 hostname: urlParsingNode.hostname, 2042 port: urlParsingNode.port, 2043 pathname: (urlParsingNode.pathname.charAt(0) === '/') ? 2044 urlParsingNode.pathname : 2045 '/' + urlParsingNode.pathname 2046 }; 2047 } 2048 2049 originURL = resolveURL(window.location.href); 2050 2051 /** 2052 * Determine if a URL shares the same origin as the current location 2053 * 2054 * @param {String} requestURL The URL to test 2055 * @returns {boolean} True if URL shares the same origin, otherwise false 2056 */ 2057 return function isURLSameOrigin(requestURL) { 2058 var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; 2059 return (parsed.protocol === originURL.protocol && 2060 parsed.host === originURL.host); 2061 }; 2062 })() : 2063 2064 // Non standard browser envs (web workers, react-native) lack needed support. 2065 (function nonStandardBrowserEnv() { 2066 return function isURLSameOrigin() { 2067 return true; 2068 }; 2069 })() 2070); 2071 2072 2073/***/ }), 2074/* 54 */ 2075/***/ (function(module, exports, __webpack_require__) { 2076 2077"use strict"; 2078 2079 2080var utils = __webpack_require__(0); 2081 2082module.exports = ( 2083 utils.isStandardBrowserEnv() ? 2084 2085 // Standard browser envs support document.cookie 2086 (function standardBrowserEnv() { 2087 return { 2088 write: function write(name, value, expires, path, domain, secure) { 2089 var cookie = []; 2090 cookie.push(name + '=' + encodeURIComponent(value)); 2091 2092 if (utils.isNumber(expires)) { 2093 cookie.push('expires=' + new Date(expires).toGMTString()); 2094 } 2095 2096 if (utils.isString(path)) { 2097 cookie.push('path=' + path); 2098 } 2099 2100 if (utils.isString(domain)) { 2101 cookie.push('domain=' + domain); 2102 } 2103 2104 if (secure === true) { 2105 cookie.push('secure'); 2106 } 2107 2108 document.cookie = cookie.join('; '); 2109 }, 2110 2111 read: function read(name) { 2112 var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); 2113 return (match ? decodeURIComponent(match[3]) : null); 2114 }, 2115 2116 remove: function remove(name) { 2117 this.write(name, '', Date.now() - 86400000); 2118 } 2119 }; 2120 })() : 2121 2122 // Non standard browser env (web workers, react-native) lack needed support. 2123 (function nonStandardBrowserEnv() { 2124 return { 2125 write: function write() {}, 2126 read: function read() { return null; }, 2127 remove: function remove() {} 2128 }; 2129 })() 2130); 2131 2132 2133/***/ }), 2134/* 55 */ 2135/***/ (function(module, exports, __webpack_require__) { 2136 2137"use strict"; 2138 2139 2140var utils = __webpack_require__(0); 2141 2142function InterceptorManager() { 2143 this.handlers = []; 2144} 2145 2146/** 2147 * Add a new interceptor to the stack 2148 * 2149 * @param {Function} fulfilled The function to handle `then` for a `Promise` 2150 * @param {Function} rejected The function to handle `reject` for a `Promise` 2151 * 2152 * @return {Number} An ID used to remove interceptor later 2153 */ 2154InterceptorManager.prototype.use = function use(fulfilled, rejected) { 2155 this.handlers.push({ 2156 fulfilled: fulfilled, 2157 rejected: rejected 2158 }); 2159 return this.handlers.length - 1; 2160}; 2161 2162/** 2163 * Remove an interceptor from the stack 2164 * 2165 * @param {Number} id The ID that was returned by `use` 2166 */ 2167InterceptorManager.prototype.eject = function eject(id) { 2168 if (this.handlers[id]) { 2169 this.handlers[id] = null; 2170 } 2171}; 2172 2173/** 2174 * Iterate over all the registered interceptors 2175 * 2176 * This method is particularly useful for skipping over any 2177 * interceptors that may have become `null` calling `eject`. 2178 * 2179 * @param {Function} fn The function to call for each interceptor 2180 */ 2181InterceptorManager.prototype.forEach = function forEach(fn) {
vendor: 5,757 bytes, lines 2182-2432
2182 utils.forEach(this.handlers, function forEachHandler(h) { 2183 if (h !== null) { 2184 fn(h); 2185 } 2186 }); 2187}; 2188 2189module.exports = InterceptorManager; 2190 2191 2192/***/ }), 2193/* 56 */ 2194/***/ (function(module, exports, __webpack_require__) { 2195 2196"use strict"; 2197 2198 2199var utils = __webpack_require__(0); 2200var transformData = __webpack_require__(57); 2201var isCancel = __webpack_require__(16); 2202var defaults = __webpack_require__(6); 2203var isAbsoluteURL = __webpack_require__(58); 2204var combineURLs = __webpack_require__(59); 2205 2206/** 2207 * Throws a `Cancel` if cancellation has been requested. 2208 */ 2209function throwIfCancellationRequested(config) { 2210 if (config.cancelToken) { 2211 config.cancelToken.throwIfRequested(); 2212 } 2213} 2214 2215/** 2216 * Dispatch a request to the server using the configured adapter. 2217 * 2218 * @param {object} config The config that is to be used for the request 2219 * @returns {Promise} The Promise to be fulfilled 2220 */ 2221module.exports = function dispatchRequest(config) { 2222 throwIfCancellationRequested(config); 2223 2224 // Support baseURL config 2225 if (config.baseURL && !isAbsoluteURL(config.url)) { 2226 config.url = combineURLs(config.baseURL, config.url); 2227 } 2228 2229 // Ensure headers exist 2230 config.headers = config.headers || {}; 2231 2232 // Transform request data 2233 config.data = transformData( 2234 config.data, 2235 config.headers, 2236 config.transformRequest 2237 ); 2238 2239 // Flatten headers 2240 config.headers = utils.merge( 2241 config.headers.common || {}, 2242 config.headers[config.method] || {}, 2243 config.headers || {} 2244 ); 2245 2246 utils.forEach( 2247 ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], 2248 function cleanHeaderConfig(method) { 2249 delete config.headers[method]; 2250 } 2251 ); 2252 2253 var adapter = config.adapter || defaults.adapter; 2254 2255 return adapter(config).then(function onAdapterResolution(response) { 2256 throwIfCancellationRequested(config); 2257 2258 // Transform response data 2259 response.data = transformData( 2260 response.data, 2261 response.headers, 2262 config.transformResponse 2263 ); 2264 2265 return response; 2266 }, function onAdapterRejection(reason) { 2267 if (!isCancel(reason)) { 2268 throwIfCancellationRequested(config); 2269 2270 // Transform response data 2271 if (reason && reason.response) { 2272 reason.response.data = transformData( 2273 reason.response.data, 2274 reason.response.headers, 2275 config.transformResponse 2276 ); 2277 } 2278 } 2279 2280 return Promise.reject(reason); 2281 }); 2282}; 2283 2284 2285/***/ }), 2286/* 57 */ 2287/***/ (function(module, exports, __webpack_require__) { 2288 2289"use strict"; 2290 2291 2292var utils = __webpack_require__(0); 2293 2294/** 2295 * Transform the data for a request or a response 2296 * 2297 * @param {Object|String} data The data to be transformed 2298 * @param {Array} headers The headers for the request or response 2299 * @param {Array|Function} fns A single function or Array of functions 2300 * @returns {*} The resulting transformed data 2301 */ 2302module.exports = function transformData(data, headers, fns) { 2303 /*eslint no-param-reassign:0*/ 2304 utils.forEach(fns, function transform(fn) { 2305 data = fn(data, headers); 2306 }); 2307 2308 return data; 2309}; 2310 2311 2312/***/ }), 2313/* 58 */ 2314/***/ (function(module, exports, __webpack_require__) { 2315 2316"use strict"; 2317 2318 2319/** 2320 * Determines whether the specified URL is absolute 2321 * 2322 * @param {string} url The URL to test 2323 * @returns {boolean} True if the specified URL is absolute, otherwise false 2324 */ 2325module.exports = function isAbsoluteURL(url) { 2326 // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL). 2327 // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed 2328 // by any combination of letters, digits, plus, period, or hyphen. 2329 return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); 2330}; 2331 2332 2333/***/ }), 2334/* 59 */ 2335/***/ (function(module, exports, __webpack_require__) { 2336 2337"use strict"; 2338 2339 2340/** 2341 * Creates a new URL by combining the specified URLs 2342 * 2343 * @param {string} baseURL The base URL 2344 * @param {string} relativeURL The relative URL 2345 * @returns {string} The combined URL 2346 */ 2347module.exports = function combineURLs(baseURL, relativeURL) { 2348 return relativeURL 2349 ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') 2350 : baseURL; 2351}; 2352 2353 2354/***/ }), 2355/* 60 */ 2356/***/ (function(module, exports, __webpack_require__) { 2357 2358"use strict"; 2359 2360 2361var Cancel = __webpack_require__(17); 2362 2363/** 2364 * A `CancelToken` is an object that can be used to request cancellation of an operation. 2365 * 2366 * @class 2367 * @param {Function} executor The executor function. 2368 */ 2369function CancelToken(executor) { 2370 if (typeof executor !== 'function') { 2371 throw new TypeError('executor must be a function.'); 2372 } 2373 2374 var resolvePromise; 2375 this.promise = new Promise(function promiseExecutor(resolve) { 2376 resolvePromise = resolve; 2377 }); 2378 2379 var token = this; 2380 executor(function cancel(message) { 2381 if (token.reason) { 2382 // Cancellation has already been requested 2383 return; 2384 } 2385 2386 token.reason = new Cancel(message); 2387 resolvePromise(token.reason); 2388 }); 2389} 2390 2391/** 2392 * Throws a `Cancel` if cancellation has been requested. 2393 */ 2394CancelToken.prototype.throwIfRequested = function throwIfRequested() { 2395 if (this.reason) { 2396 throw this.reason; 2397 } 2398}; 2399 2400/** 2401 * Returns an object that contains a new `CancelToken` and a function that, when called, 2402 * cancels the `CancelToken`. 2403 */ 2404CancelToken.source = function source() { 2405 var cancel; 2406 var token = new CancelToken(function executor(c) { 2407 cancel = c; 2408 }); 2409 return { 2410 token: token, 2411 cancel: cancel 2412 }; 2413}; 2414 2415module.exports = CancelToken; 2416 2417 2418/***/ }), 2419/* 61 */ 2420/***/ (function(module, exports, __webpack_require__) { 2421 2422"use strict"; 2423 2424 2425/** 2426 * Syntactic sugar for invoking a function and expanding an array for arguments. 2427 * 2428 * Common use case would be to use `Function.prototype.apply`. 2429 * 2430 * ```js 2431 * function f(x, y, z) {} 2432 * var args = [1, 2, 3];
2433 * f.apply(null, args); 2434 * ``` 2435 * 2436 * With `spread` this example can be re-written. 2437 * 2438 * ```js 2439 * spread(function(x, y, z) {})([1, 2, 3]); 2440 * ``` 2441 * 2442 * @param {Function} callback 2443 * @returns {Function} 2444 */ 2445module.exports = function spread(callback) { 2446 return function wrap(arr) { 2447 return callback.apply(null, arr); 2448 }; 2449}; 2450 2451 2452/***/ }) 2453/******/ ]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.