text: /******/ (function(modules) { // webpackBootstrap
  /******/ 	// The module cache
  /******/ 	var installedModules = {};
  /******/
  /******/ 	// The require function
  /******/ 	function __webpack_require__(moduleId) {
  /******/
  /******/ 		// Check if module is in cache
  /******/ 		if(installedModules[moduleId]) {
  /******/ 			return installedModules[moduleId].exports;
  /******/ 		}
  /******/ 		// Create a new module (and put it into the cache)
  /******/ 		var module = installedModules[moduleId] = {
  /******/ 			i: moduleId,
  /******/ 			l: false,
  /******/ 			exports: {}
  /******/ 		};
  /******/
  /******/ 		// Execute the module function
  /******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  /******/
  /******/ 		// Flag the module as loaded
  /******/ 		module.l = true;
  /******/
  /******/ 		// Return the exports of the module
  /******/ 		return module.exports;
  /******/ 	}
  /******/
  /******/
  /******/ 	// expose the modules object (__webpack_modules__)
  /******/ 	__webpack_require__.m = modules;
  /******/
  /******/ 	// expose the module cache
  /******/ 	__webpack_require__.c = installedModules;
  /******/
  /******/ 	// define getter function for harmony exports
  /******/ 	__webpack_require__.d = function(exports, name, getter) {
  /******/ 		if(!__webpack_require__.o(exports, name)) {
  /******/ 			Object.defineProperty(exports, name, {
  /******/ 				configurable: false,
  /******/ 				enumerable: true,
  /******/ 				get: getter
  /******/ 			});
  /******/ 		}
  /******/ 	};
  /******/
  /******/ 	// getDefaultExport function for compatibility with non-harmony modules
  /******/ 	__webpack_require__.n = function(module) {
  /******/ 		var getter = module && module.__esModule ?
  /******/ 			function getDefault() { return module['default']; } :
  /******/ 			function getModuleExports() { return module; };
  /******/ 		__webpack_require__.d(getter, 'a', getter);
  /******/ 		return getter;
  /******/ 	};
  /******/
  /******/ 	// Object.prototype.hasOwnProperty.call
  /******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  /******/
  /******/ 	// __webpack_public_path__
  /******/ 	__webpack_require__.p = "";
  /******/
  /******/ 	// Load entry module and return exports
  /******/ 	return __webpack_require__(__webpack_require__.s = 45);
  /******/ })
  /************************************************************************/
  /******/ ([
  /* 0 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var bind = __webpack_require__(8);
  var isBuffer = __webpack_require__(16);
  
  /*global toString:true*/
  
  // utils is a library of generic helper functions non-specific to axios
  
  var toString = Object.prototype.toString;
  
  /**
   * Determine if a value is an Array
   *
   * @param {Object} val The value to test
   * @returns {boolean} True if value is an Array, otherwise false
   */
  function isArray(val) {
    return toString.call(val) === '[object Array]';
  }
  
  /**
   * Determine if a value is an ArrayBuffer
   *
   * @param {Object} val The value to test
   * @returns {boolean} True if value is an ArrayBuffer, otherwise false
   */
  function isArrayBuffer(val) {
    return toString.call(val) === '[object ArrayBuffer]';
  }
  
  /**
   * Determine if a value is a FormData
   *
   * @param {Object} val The value to test
   * @returns {boolean} True if value is an FormData, otherwise false
   */
  function isFormData(val) {
    return (typeof FormData !== 'undefined') && (val instanceof FormData);
  }
  
  /**
   * Determine if a value is a view on an ArrayBuffer
   *
   * @param {Object} val The value to test
   * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
   */
  function isArrayBufferView(val) {
    var result;
    if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
      result = ArrayBuffer.isView(val);
    } else {
      result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
    }
    return result;
  }
  
  /**
   * Determine if a value is a String
   *
   * @param {Object} val The value to test
   * @returns {boolean} True if value is a String, otherwise false
   */
  function isString(val) {
    return typeof val === 'string';
  }
  
  /**
   * Determine if a value is a Number
   *
   * @param {Object} val The value to test
   * @returns {boolean} True if value is a Number, otherwise false
   */
  function isNumber(val) {
    return typeof val === 'number';
  }
  
  /**
   * Determine if a value is undefined
   *
   * @param {Object} val The value to test
   * @returns {boolean} True if the value is undefined, otherwise false
   */
  function isUndefined(val) {
    return typeof val === 'undefined';
  }
  
  /**
   * Determine if a value is an Object
   *
   * @param {Object} val The value to test
   * @returns {boolean} True if value is an Object, otherwise false
   */
  function isObject(val) {
    return val !== null && typeof val === 'object';
  }
  
  /**
   * Determine if a value is a Date
   *
   * @param {Object} val The value to test
   * @returns {boolean} True if value is a Date, otherwise false
   */
  function isDate(val) {
    return toString.call(val) === '[object Date]';
  }
  
  /**
   * Determine if a value is a File
   *
   * @param {Object} val The value to test
   * @returns {boolean} True if value is a File, otherwise false
   */
  function isFile(val) {
    return toString.call(val) === '[object File]';
  }
  
  /**
   * Determine if a value is a Blob
   *
   * @param {Object} val The value to test
   * @returns {boolean} True if value is a Blob, otherwise false
   */
  function isBlob(val) {
    return toString.call(val) === '[object Blob]';
  }
  
  /**
   * Determine if a value is a Function
   *
   * @param {Object} val The value to test
   * @returns {boolean} True if value is a Function, otherwise false
   */
  function isFunction(val) {
    return toString.call(val) === '[object Function]';
  }
  
  /**
   * Determine if a value is a Stream
   *
   * @param {Object} val The value to test
   * @returns {boolean} True if value is a Stream, otherwise false
   */
  function isStream(val) {
    return isObject(val) && isFunction(val.pipe);
  }
  
  /**
   * Determine if a value is a URLSearchParams object
   *
   * @param {Object} val The value to test
   * @returns {boolean} True if value is a URLSearchParams object, otherwise false
   */
  function isURLSearchParams(val) {
    return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  }
  
  /**
   * Trim excess whitespace off the beginning and end of a string
   *
   * @param {String} str The String to trim
   * @returns {String} The String freed of excess whitespace
   */
  function trim(str) {
    return str.replace(/^\s*/, '').replace(/\s*$/, '');
  }
  
  /**
   * Determine if we're running in a standard browser environment
   *
   * This allows axios to run in a web worker, and react-native.
   * Both environments support XMLHttpRequest, but not fully standard globals.
   *
   * web workers:
   *  typeof window -> undefined
   *  typeof document -> undefined
   *
   * react-native:
   *  navigator.product -> 'ReactNative'
   */
  function isStandardBrowserEnv() {
    if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
      return false;
    }
    return (
      typeof window !== 'undefined' &&
      typeof document !== 'undefined'
    );
  }
  
  /**
   * Iterate over an Array or an Object invoking a function for each item.
   *
   * If `obj` is an Array callback will be called passing
   * the value, index, and complete array for each item.
   *
   * If 'obj' is an Object callback will be called passing
   * the value, key, and complete object for each property.
   *
   * @param {Object|Array} obj The object to iterate
   * @param {Function} fn The callback to invoke for each item
   */
  function forEach(obj, fn) {
    // Don't bother if no value provided
    if (obj === null || typeof obj === 'undefined') {
      return;
    }
  
    // Force an array if not already something iterable
    if (typeof obj !== 'object') {
      /*eslint no-param-reassign:0*/
      obj = [obj];
    }
  
    if (isArray(obj)) {
      // Iterate over array values
      for (var i = 0, l = obj.length; i < l; i++) {
        fn.call(null, obj[i], i, obj);
      }
    } else {
      // Iterate over object keys
      for (var key in obj) {
        if (Object.prototype.hasOwnProperty.call(obj, key)) {
          fn.call(null, obj[key], key, obj);
        }
      }
    }
  }
  
  /**
   * Accepts varargs expecting each argument to be an object, then
   * immutably merges the properties of each object and returns result.
   *
   * When multiple objects contain the same key the later object in
   * the arguments list will take precedence.
   *
   * Example:
   *
   * ```js
   * var result = merge({foo: 123}, {foo: 456});
   * console.log(result.foo); // outputs 456
   * ```
   *
   * @param {Object} obj1 Object to merge
   * @returns {Object} Result of all merge properties
   */
  function merge(/* obj1, obj2, obj3, ... */) {
    var result = {};
    function assignValue(val, key) {
      if (typeof result[key] === 'object' && typeof val === 'object') {
        result[key] = merge(result[key], val);
      } else {
        result[key] = val;
      }
    }
  
    for (var i = 0, l = arguments.length; i < l; i++) {
      forEach(arguments[i], assignValue);
    }
    return result;
  }
  
  /**
   * Extends object a by mutably adding to it the properties of object b.
   *
   * @param {Object} a The object to be extended
   * @param {Object} b The object to copy properties from
   * @param {Object} thisArg The object to bind function to
   * @return {Object} The resulting value of object a
   */
  function extend(a, b, thisArg) {
    forEach(b, function assignValue(val, key) {
      if (thisArg && typeof val === 'function') {
        a[key] = bind(val, thisArg);
      } else {
        a[key] = val;
      }
    });
    return a;
  }
  
  module.exports = {
    isArray: isArray,
    isArrayBuffer: isArrayBuffer,
    isBuffer: isBuffer,
    isFormData: isFormData,
    isArrayBufferView: isArrayBufferView,
    isString: isString,
    isNumber: isNumber,
    isObject: isObject,
    isUndefined: isUndefined,
    isDate: isDate,
    isFile: isFile,
    isBlob: isBlob,
    isFunction: isFunction,
    isStream: isStream,
    isURLSearchParams: isURLSearchParams,
    isStandardBrowserEnv: isStandardBrowserEnv,
    forEach: forEach,
    merge: merge,
    extend: extend,
    trim: trim
  };
  
  
  /***/ }),
  /* 1 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios__ = __webpack_require__(3);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_axios__);
  
  
  // Check if a valid session for the current client exists
  const checkLogin = function () {
      return __WEBPACK_IMPORTED_MODULE_0_axios___default.a.get('/login')
                   .then((response) => {
                      if(response && response.data && response.status === 200){
                          return {
                              username: response.data.email,
                              firstname: response.data.firstname,
                              lastname: response.data.lastname,
                              address: response.data.address,
                              postcode: response.data.postcode,
                              city: response.data.city,
                              admin: response.data.admin
                          };
                      }
                      else {
                          return null
                      }
                  })
                  .catch(err => {
                      return null;
                  });
  };
  /* harmony export (immutable) */ __webpack_exports__["b"] = checkLogin;
  
  
  const logout = function () {
  
      return __WEBPACK_IMPORTED_MODULE_0_axios___default()({
          method: 'get',
          url: '/logout',
          headers: {
              'Cache-Control': 'no-store'
          }
  
      });
  
  };
  /* harmony export (immutable) */ __webpack_exports__["i"] = logout;
  
  
  const reload = function () {
  
      let baseUrl = document.referrer.split('/');
      baseUrl.splice(baseUrl.length-2, 2);
  
      window.location.href = baseUrl;
  
  };
  /* harmony export (immutable) */ __webpack_exports__["j"] = reload;
  
  
  const loadAllParcels = function(){
  
      return __WEBPACK_IMPORTED_MODULE_0_axios___default.a.get('/v1/parcels/all');
  
  };
  /* harmony export (immutable) */ __webpack_exports__["g"] = loadAllParcels;
  
  
  const loadAllParcelsAdmin = function(){
  
      return __WEBPACK_IMPORTED_MODULE_0_axios___default.a.post('/v1/parcels/all');
  
  };
  /* harmony export (immutable) */ __webpack_exports__["h"] = loadAllParcelsAdmin;
  
  
  const getParcelDetails = function(trackingNr){
  
    return __WEBPACK_IMPORTED_MODULE_0_axios___default.a.get('/v1/parcel/' + trackingNr);
  
  };
  /* harmony export (immutable) */ __webpack_exports__["d"] = getParcelDetails;
  
  
  const getParcelDetailsAdmin = function(trackingNr){
  
      return __WEBPACK_IMPORTED_MODULE_0_axios___default.a.post('/v1/parcel/' + trackingNr);
  
  };
  /* harmony export (immutable) */ __webpack_exports__["e"] = getParcelDetailsAdmin;
  
  
  const addStep = function (trackingNr, step) {
      if(step && step.stepType && step.stepLocation && step.stepName){
          return __WEBPACK_IMPORTED_MODULE_0_axios___default.a.put('/v1/parcel/'+ trackingNr +'/step', {
              stepName: step.stepName,
              stepType: step.stepType,
              stepLocation: step.stepLocation,
              stepDate: Date.now()
          });
      }
  };
  /* harmony export (immutable) */ __webpack_exports__["a"] = addStep;
  
  
  const endParcel = async function (trackingNr) {
  
      await addStep(trackingNr, {
          stepName: 'Ihre Sendung wurde abgeschlossen!',
          stepType: 'type_end',
          stepLocation: ' ',
          stepDate: Date.now()
      });
  
      return await __WEBPACK_IMPORTED_MODULE_0_axios___default.a.post('/v1/parcel/'+ trackingNr +'/end');
  };
  /* harmony export (immutable) */ __webpack_exports__["c"] = endParcel;
  
  
  const getParcelTracking = function (trackingNr) {
  
      return __WEBPACK_IMPORTED_MODULE_0_axios___default.a.get('/v1/parcel/status/' + trackingNr);
  };
  /* harmony export (immutable) */ __webpack_exports__["f"] = getParcelTracking;
  
  
  /***/ }),
  /* 2 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__header__ = __webpack_require__(33);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__details__ = __webpack_require__(34);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__history__ = __webpack_require__(35);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__step__ = __webpack_require__(14);
  
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
      'page-header': __WEBPACK_IMPORTED_MODULE_0__header__["a" /* default */],
      'parcel-details': __WEBPACK_IMPORTED_MODULE_1__details__["a" /* default */],
      'history': __WEBPACK_IMPORTED_MODULE_2__history__["a" /* default */],
      'step': __WEBPACK_IMPORTED_MODULE_3__step__["a" /* default */]
  });
  
  /***/ }),
  /* 3 */
  /***/ (function(module, exports, __webpack_require__) {
  
  module.exports = __webpack_require__(15);
  
  /***/ }),
  /* 4 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  /* WEBPACK VAR INJECTION */(function(process) {
  
  var utils = __webpack_require__(0);
  var normalizeHeaderName = __webpack_require__(18);
  
  var DEFAULT_CONTENT_TYPE = {
    'Content-Type': 'application/x-www-form-urlencoded'
  };
  
  function setContentTypeIfUnset(headers, value) {
    if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
      headers['Content-Type'] = value;
    }
  }
  
  function getDefaultAdapter() {
    var adapter;
    if (typeof XMLHttpRequest !== 'undefined') {
      // For browsers use XHR adapter
      adapter = __webpack_require__(10);
    } else if (typeof process !== 'undefined') {
      // For node use HTTP adapter
      adapter = __webpack_require__(10);
    }
    return adapter;
  }
  
  var defaults = {
    adapter: getDefaultAdapter(),
  
    transformRequest: [function transformRequest(data, headers) {
      normalizeHeaderName(headers, 'Content-Type');
      if (utils.isFormData(data) ||
        utils.isArrayBuffer(data) ||
        utils.isBuffer(data) ||
        utils.isStream(data) ||
        utils.isFile(data) ||
        utils.isBlob(data)
      ) {
        return data;
      }
      if (utils.isArrayBufferView(data)) {
        return data.buffer;
      }
      if (utils.isURLSearchParams(data)) {
        setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
        return data.toString();
      }
      if (utils.isObject(data)) {
        setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
        return JSON.stringify(data);
      }
      return data;
    }],
  
    transformResponse: [function transformResponse(data) {
      /*eslint no-param-reassign:0*/
      if (typeof data === 'string') {
        try {
          data = JSON.parse(data);
        } catch (e) { /* Ignore */ }
      }
      return data;
    }],
  
    /**
     * A timeout in milliseconds to abort a request. If set to 0 (default) a
     * timeout is not created.
     */
    timeout: 0,
  
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
  
    maxContentLength: -1,
  
    validateStatus: function validateStatus(status) {
      return status >= 200 && status < 300;
    }
  };
  
  defaults.headers = {
    common: {
      'Accept': 'application/json, text/plain, */*'
    }
  };
  
  utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
    defaults.headers[method] = {};
  });
  
  utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
    defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
  });
  
  module.exports = defaults;
  
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
  
  /***/ }),
  /* 5 */
  /***/ (function(module, exports) {
  
  var toSJISFunction
  var CODEWORDS_COUNT = [
    0, // Not used
    26, 44, 70, 100, 134, 172, 196, 242, 292, 346,
    404, 466, 532, 581, 655, 733, 815, 901, 991, 1085,
    1156, 1258, 1364, 1474, 1588, 1706, 1828, 1921, 2051, 2185,
    2323, 2465, 2611, 2761, 2876, 3034, 3196, 3362, 3532, 3706
  ]
  
  /**
   * Returns the QR Code size for the specified version
   *
   * @param  {Number} version QR Code version
   * @return {Number}         size of QR code
   */
  exports.getSymbolSize = function getSymbolSize (version) {
    if (!version) throw new Error('"version" cannot be null or undefined')
    if (version < 1 || version > 40) throw new Error('"version" should be in range from 1 to 40')
    return version * 4 + 17
  }
  
  /**
   * Returns the total number of codewords used to store data and EC information.
   *
   * @param  {Number} version QR Code version
   * @return {Number}         Data length in bits
   */
  exports.getSymbolTotalCodewords = function getSymbolTotalCodewords (version) {
    return CODEWORDS_COUNT[version]
  }
  
  /**
   * Encode data with Bose-Chaudhuri-Hocquenghem
   *
   * @param  {Number} data Value to encode
   * @return {Number}      Encoded value
   */
  exports.getBCHDigit = function (data) {
    var digit = 0
  
    while (data !== 0) {
      digit++
      data >>>= 1
    }
  
    return digit
  }
  
  exports.setToSJISFunction = function setToSJISFunction (f) {
    if (typeof f !== 'function') {
      throw new Error('"toSJISFunc" is not a valid function.')
    }
  
    toSJISFunction = f
  }
  
  exports.isKanjiModeEnabled = function () {
    return typeof toSJISFunction !== 'undefined'
  }
  
  exports.toSJIS = function toSJIS (kanji) {
    return toSJISFunction(kanji)
  }
  
  
  /***/ }),
  /* 6 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Version = __webpack_require__(42)
  var Regex = __webpack_require__(43)
  
  /**
   * Numeric mode encodes data from the decimal digit set (0 - 9)
   * (byte values 30HEX to 39HEX).
   * Normally, 3 data characters are represented by 10 bits.
   *
   * @type {Object}
   */
  exports.NUMERIC = {
    id: 'Numeric',
    bit: 1 << 0,
    ccBits: [10, 12, 14]
  }
  
  /**
   * Alphanumeric mode encodes data from a set of 45 characters,
   * i.e. 10 numeric digits (0 - 9),
   *      26 alphabetic characters (A - Z),
   *   and 9 symbols (SP, $, %, *, +, -, ., /, :).
   * Normally, two input characters are represented by 11 bits.
   *
   * @type {Object}
   */
  exports.ALPHANUMERIC = {
    id: 'Alphanumeric',
    bit: 1 << 1,
    ccBits: [9, 11, 13]
  }
  
  /**
   * In byte mode, data is encoded at 8 bits per character.
   *
   * @type {Object}
   */
  exports.BYTE = {
    id: 'Byte',
    bit: 1 << 2,
    ccBits: [8, 16, 16]
  }
  
  /**
   * The Kanji mode efficiently encodes Kanji characters in accordance with
   * the Shift JIS system based on JIS X 0208.
   * The Shift JIS values are shifted from the JIS X 0208 values.
   * JIS X 0208 gives details of the shift coded representation.
   * Each two-byte character value is compacted to a 13-bit binary codeword.
   *
   * @type {Object}
   */
  exports.KANJI = {
    id: 'Kanji',
    bit: 1 << 3,
    ccBits: [8, 10, 12]
  }
  
  /**
   * Mixed mode will contain a sequences of data in a combination of any of
   * the modes described above
   *
   * @type {Object}
   */
  exports.MIXED = {
    bit: -1
  }
  
  /**
   * Returns the number of bits needed to store the data length
   * according to QR Code specifications.
   *
   * @param  {Mode}   mode    Data mode
   * @param  {Number} version QR Code version
   * @return {Number}         Number of bits
   */
  exports.getCharCountIndicator = function getCharCountIndicator (mode, version) {
    if (!mode.ccBits) throw new Error('Invalid mode: ' + mode)
  
    if (!Version.isValid(version)) {
      throw new Error('Invalid version: ' + version)
    }
  
    if (version >= 1 && version < 10) return mode.ccBits[0]
    else if (version < 27) return mode.ccBits[1]
    return mode.ccBits[2]
  }
  
  /**
   * Returns the most efficient mode to store the specified data
   *
   * @param  {String} dataStr Input data string
   * @return {Mode}           Best mode
   */
  exports.getBestModeForData = function getBestModeForData (dataStr) {
    if (Regex.testNumeric(dataStr)) return exports.NUMERIC
    else if (Regex.testAlphanumeric(dataStr)) return exports.ALPHANUMERIC
    else if (Regex.testKanji(dataStr)) return exports.KANJI
    else return exports.BYTE
  }
  
  /**
   * Return mode name as string
   *
   * @param {Mode} mode Mode object
   * @returns {String}  Mode name
   */
  exports.toString = function toString (mode) {
    if (mode && mode.id) return mode.id
    throw new Error('Invalid mode')
  }
  
  /**
   * Check if input param is a valid mode object
   *
   * @param   {Mode}    mode Mode object
   * @returns {Boolean} True if valid mode, false otherwise
   */
  exports.isValid = function isValid (mode) {
    return mode && mode.bit && mode.ccBits
  }
  
  /**
   * Get mode object from its name
   *
   * @param   {String} string Mode name
   * @returns {Mode}          Mode object
   */
  function fromString (string) {
    if (typeof string !== 'string') {
      throw new Error('Param is not a string')
    }
  
    var lcStr = string.toLowerCase()
  
    switch (lcStr) {
      case 'numeric':
        return exports.NUMERIC
      case 'alphanumeric':
        return exports.ALPHANUMERIC
      case 'kanji':
        return exports.KANJI
      case 'byte':
        return exports.BYTE
      default:
        throw new Error('Unknown mode: ' + string)
    }
  }
  
  /**
   * Returns mode from a value.
   * If value is not a valid mode, returns defaultValue
   *
   * @param  {Mode|String} value        Encoding mode
   * @param  {Mode}        defaultValue Fallback value
   * @return {Mode}                     Encoding mode
   */
  exports.from = function from (value, defaultValue) {
    if (exports.isValid(value)) {
      return value
    }
  
    try {
      return fromString(value)
    } catch (e) {
      return defaultValue
    }
  }
  
  
  /***/ }),
  /* 7 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  /**
   * Implementation of a subset of node.js Buffer methods for the browser.
   * Based on https://github.com/feross/buffer
   */
  
  /* eslint-disable no-proto */
  
  
  
  var isArray = __webpack_require__(37)
  
  function typedArraySupport () {
    // Can typed array instances be augmented?
    try {
      var arr = new Uint8Array(1)
      arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
      return arr.foo() === 42
    } catch (e) {
      return false
    }
  }
  
  Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport()
  
  var K_MAX_LENGTH = Buffer.TYPED_ARRAY_SUPPORT
      ? 0x7fffffff
      : 0x3fffffff
  
  function Buffer (arg, offset, length) {
    if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
      return new Buffer(arg, offset, length)
    }
  
    if (typeof arg === 'number') {
      return allocUnsafe(this, arg)
    }
  
    return from(this, arg, offset, length)
  }
  
  if (Buffer.TYPED_ARRAY_SUPPORT) {
    Buffer.prototype.__proto__ = Uint8Array.prototype
    Buffer.__proto__ = Uint8Array
  
    // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
    if (typeof Symbol !== 'undefined' && Symbol.species &&
        Buffer[Symbol.species] === Buffer) {
      Object.defineProperty(Buffer, Symbol.species, {
        value: null,
        configurable: true,
        enumerable: false,
        writable: false
      })
    }
  }
  
  function checked (length) {
    // Note: cannot use `length < K_MAX_LENGTH` here because that fails when
    // length is NaN (which is otherwise coerced to zero.)
    if (length >= K_MAX_LENGTH) {
      throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
                           'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')
    }
    return length | 0
  }
  
  function isnan (val) {
    return val !== val // eslint-disable-line no-self-compare
  }
  
  function createBuffer (that, length) {
    var buf
    if (Buffer.TYPED_ARRAY_SUPPORT) {
      buf = new Uint8Array(length)
      buf.__proto__ = Buffer.prototype
    } else {
      // Fallback: Return an object instance of the Buffer class
      buf = that
      if (buf === null) {
        buf = new Buffer(length)
      }
      buf.length = length
    }
  
    return buf
  }
  
  function allocUnsafe (that, size) {
    var buf = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  
    if (!Buffer.TYPED_ARRAY_SUPPORT) {
      for (var i = 0; i < size; ++i) {
        buf[i] = 0
      }
    }
  
    return buf
  }
  
  function fromString (that, string) {
    var length = byteLength(string) | 0
    var buf = createBuffer(that, length)
  
    var actual = buf.write(string)
  
    if (actual !== length) {
      // Writing a hex string, for example, that contains invalid characters will
      // cause everything after the first invalid character to be ignored. (e.g.
      // 'abxxcd' will be treated as 'ab')
      buf = buf.slice(0, actual)
    }
  
    return buf
  }
  
  function fromArrayLike (that, array) {
    var length = array.length < 0 ? 0 : checked(array.length) | 0
    var buf = createBuffer(that, length)
    for (var i = 0; i < length; i += 1) {
      buf[i] = array[i] & 255
    }
    return buf
  }
  
  function fromArrayBuffer (that, array, byteOffset, length) {
    if (byteOffset < 0 || array.byteLength < byteOffset) {
      throw new RangeError('\'offset\' is out of bounds')
    }
  
    if (array.byteLength < byteOffset + (length || 0)) {
      throw new RangeError('\'length\' is out of bounds')
    }
  
    var buf
    if (byteOffset === undefined && length === undefined) {
      buf = new Uint8Array(array)
    } else if (length === undefined) {
      buf = new Uint8Array(array, byteOffset)
    } else {
      buf = new Uint8Array(array, byteOffset, length)
    }
  
    if (Buffer.TYPED_ARRAY_SUPPORT) {
      // Return an augmented `Uint8Array` instance, for best performance
      buf.__proto__ = Buffer.prototype
    } else {
      // Fallback: Return an object instance of the Buffer class
      buf = fromArrayLike(that, buf)
    }
  
    return buf
  }
  
  function fromObject (that, obj) {
    if (Buffer.isBuffer(obj)) {
      var len = checked(obj.length) | 0
      var buf = createBuffer(that, len)
  
      if (buf.length === 0) {
        return buf
      }
  
      obj.copy(buf, 0, 0, len)
      return buf
    }
  
    if (obj) {
      if ((typeof ArrayBuffer !== 'undefined' &&
          obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
        if (typeof obj.length !== 'number' || isnan(obj.length)) {
          return createBuffer(that, 0)
        }
        return fromArrayLike(that, obj)
      }
  
      if (obj.type === 'Buffer' && Array.isArray(obj.data)) {
        return fromArrayLike(that, obj.data)
      }
    }
  
    throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  }
  
  function utf8ToBytes (string, units) {
    units = units || Infinity
    var codePoint
    var length = string.length
    var leadSurrogate = null
    var bytes = []
  
    for (var i = 0; i < length; ++i) {
      codePoint = string.charCodeAt(i)
  
      // is surrogate component
      if (codePoint > 0xD7FF && codePoint < 0xE000) {
        // last char was a lead
        if (!leadSurrogate) {
          // no lead yet
          if (codePoint > 0xDBFF) {
            // unexpected trail
            if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
            continue
          } else if (i + 1 === length) {
            // unpaired lead
            if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
            continue
          }
  
          // valid lead
          leadSurrogate = codePoint
  
          continue
        }
  
        // 2 leads in a row
        if (codePoint < 0xDC00) {
          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
          leadSurrogate = codePoint
          continue
        }
  
        // valid surrogate pair
        codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
      } else if (leadSurrogate) {
        // valid bmp char, but last char was a lead
        if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
      }
  
      leadSurrogate = null
  
      // encode utf8
      if (codePoint < 0x80) {
        if ((units -= 1) < 0) break
        bytes.push(codePoint)
      } else if (codePoint < 0x800) {
        if ((units -= 2) < 0) break
        bytes.push(
          codePoint >> 0x6 | 0xC0,
          codePoint & 0x3F | 0x80
        )
      } else if (codePoint < 0x10000) {
        if ((units -= 3) < 0) break
        bytes.push(
          codePoint >> 0xC | 0xE0,
          codePoint >> 0x6 & 0x3F | 0x80,
          codePoint & 0x3F | 0x80
        )
      } else if (codePoint < 0x110000) {
        if ((units -= 4) < 0) break
        bytes.push(
          codePoint >> 0x12 | 0xF0,
          codePoint >> 0xC & 0x3F | 0x80,
          codePoint >> 0x6 & 0x3F | 0x80,
          codePoint & 0x3F | 0x80
        )
      } else {
        throw new Error('Invalid code point')
      }
    }
  
    return bytes
  }
  
  function byteLength (string) {
    if (Buffer.isBuffer(string)) {
      return string.length
    }
    if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
        (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
      return string.byteLength
    }
    if (typeof string !== 'string') {
      string = '' + string
    }
  
    var len = string.length
    if (len === 0) return 0
  
    return utf8ToBytes(string).length
  }
  
  function blitBuffer (src, dst, offset, length) {
    for (var i = 0; i < length; ++i) {
      if ((i + offset >= dst.length) || (i >= src.length)) break
      dst[i + offset] = src[i]
    }
    return i
  }
  
  function utf8Write (buf, string, offset, length) {
    return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  }
  
  function from (that, value, offset, length) {
    if (typeof value === 'number') {
      throw new TypeError('"value" argument must not be a number')
    }
  
    if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
      return fromArrayBuffer(that, value, offset, length)
    }
  
    if (typeof value === 'string') {
      return fromString(that, value, offset)
    }
  
    return fromObject(that, value)
  }
  
  Buffer.prototype.write = function write (string, offset, length) {
    // Buffer#write(string)
    if (offset === undefined) {
      length = this.length
      offset = 0
    // Buffer#write(string, encoding)
    } else if (length === undefined && typeof offset === 'string') {
      length = this.length
      offset = 0
    // Buffer#write(string, offset[, length])
    } else if (isFinite(offset)) {
      offset = offset | 0
      if (isFinite(length)) {
        length = length | 0
      } else {
        length = undefined
      }
    }
  
    var remaining = this.length - offset
    if (length === undefined || length > remaining) length = remaining
  
    if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
      throw new RangeError('Attempt to write outside buffer bounds')
    }
  
    return utf8Write(this, string, offset, length)
  }
  
  Buffer.prototype.slice = function slice (start, end) {
    var len = this.length
    start = ~~start
    end = end === undefined ? len : ~~end
  
    if (start < 0) {
      start += len
      if (start < 0) start = 0
    } else if (start > len) {
      start = len
    }
  
    if (end < 0) {
      end += len
      if (end < 0) end = 0
    } else if (end > len) {
      end = len
    }
  
    if (end < start) end = start
  
    var newBuf
    if (Buffer.TYPED_ARRAY_SUPPORT) {
      newBuf = this.subarray(start, end)
      // Return an augmented `Uint8Array` instance
      newBuf.__proto__ = Buffer.prototype
    } else {
      var sliceLen = end - start
      newBuf = new Buffer(sliceLen, undefined)
      for (var i = 0; i < sliceLen; ++i) {
        newBuf[i] = this[i + start]
      }
    }
  
    return newBuf
  }
  
  Buffer.prototype.copy = function copy (target, targetStart, start, end) {
    if (!start) start = 0
    if (!end && end !== 0) end = this.length
    if (targetStart >= target.length) targetStart = target.length
    if (!targetStart) targetStart = 0
    if (end > 0 && end < start) end = start
  
    // Copy 0 bytes; we're done
    if (end === start) return 0
    if (target.length === 0 || this.length === 0) return 0
  
    // Fatal error conditions
    if (targetStart < 0) {
      throw new RangeError('targetStart out of bounds')
    }
    if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
    if (end < 0) throw new RangeError('sourceEnd out of bounds')
  
    // Are we oob?
    if (end > this.length) end = this.length
    if (target.length - targetStart < end - start) {
      end = target.length - targetStart + start
    }
  
    var len = end - start
    var i
  
    if (this === target && start < targetStart && targetStart < end) {
      // descending copy from end
      for (i = len - 1; i >= 0; --i) {
        target[i + targetStart] = this[i + start]
      }
    } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
      // ascending copy from start
      for (i = 0; i < len; ++i) {
        target[i + targetStart] = this[i + start]
      }
    } else {
      Uint8Array.prototype.set.call(
        target,
        this.subarray(start, start + len),
        targetStart
      )
    }
  
    return len
  }
  
  Buffer.prototype.fill = function fill (val, start, end) {
    // Handle string cases:
    if (typeof val === 'string') {
      if (typeof start === 'string') {
        start = 0
        end = this.length
      } else if (typeof end === 'string') {
        end = this.length
      }
      if (val.length === 1) {
        var code = val.charCodeAt(0)
        if (code < 256) {
          val = code
        }
      }
    } else if (typeof val === 'number') {
      val = val & 255
    }
  
    // Invalid ranges are not set to a default, so can range check early.
    if (start < 0 || this.length < start || this.length < end) {
      throw new RangeError('Out of range index')
    }
  
    if (end <= start) {
      return this
    }
  
    start = start >>> 0
    end = end === undefined ? this.length : end >>> 0
  
    if (!val) val = 0
  
    var i
    if (typeof val === 'number') {
      for (i = start; i < end; ++i) {
        this[i] = val
      }
    } else {
      var bytes = Buffer.isBuffer(val)
        ? val
        : new Buffer(val)
      var len = bytes.length
      for (i = 0; i < end - start; ++i) {
        this[i + start] = bytes[i % len]
      }
    }
  
    return this
  }
  
  Buffer.concat = function concat (list, length) {
    if (!isArray(list)) {
      throw new TypeError('"list" argument must be an Array of Buffers')
    }
  
    if (list.length === 0) {
      return createBuffer(null, 0)
    }
  
    var i
    if (length === undefined) {
      length = 0
      for (i = 0; i < list.length; ++i) {
        length += list[i].length
      }
    }
  
    var buffer = allocUnsafe(null, length)
    var pos = 0
    for (i = 0; i < list.length; ++i) {
      var buf = list[i]
      if (!Buffer.isBuffer(buf)) {
        throw new TypeError('"list" argument must be an Array of Buffers')
      }
      buf.copy(buffer, pos)
      pos += buf.length
    }
    return buffer
  }
  
  Buffer.byteLength = byteLength
  
  Buffer.prototype._isBuffer = true
  Buffer.isBuffer = function isBuffer (b) {
    return !!(b != null && b._isBuffer)
  }
  
  module.exports = Buffer
  
  
  /***/ }),
  /* 8 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  module.exports = function bind(fn, thisArg) {
    return function wrap() {
      var args = new Array(arguments.length);
      for (var i = 0; i < args.length; i++) {
        args[i] = arguments[i];
      }
      return fn.apply(thisArg, args);
    };
  };
  
  
  /***/ }),
  /* 9 */
  /***/ (function(module, exports) {
  
  // shim for using process in browser
  var process = module.exports = {};
  
  // cached from whatever global is present so that test runners that stub it
  // don't break things.  But we need to wrap it in a try catch in case it is
  // wrapped in strict mode code which doesn't define any globals.  It's inside a
  // function because try/catches deoptimize in certain engines.
  
  var cachedSetTimeout;
  var cachedClearTimeout;
  
  function defaultSetTimout() {
      throw new Error('setTimeout has not been defined');
  }
  function defaultClearTimeout () {
      throw new Error('clearTimeout has not been defined');
  }
  (function () {
      try {
          if (typeof setTimeout === 'function') {
              cachedSetTimeout = setTimeout;
          } else {
              cachedSetTimeout = defaultSetTimout;
          }
      } catch (e) {
          cachedSetTimeout = defaultSetTimout;
      }
      try {
          if (typeof clearTimeout === 'function') {
              cachedClearTimeout = clearTimeout;
          } else {
              cachedClearTimeout = defaultClearTimeout;
          }
      } catch (e) {
          cachedClearTimeout = defaultClearTimeout;
      }
  } ())
  function runTimeout(fun) {
      if (cachedSetTimeout === setTimeout) {
          //normal enviroments in sane situations
          return setTimeout(fun, 0);
      }
      // if setTimeout wasn't available but was latter defined
      if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
          cachedSetTimeout = setTimeout;
          return setTimeout(fun, 0);
      }
      try {
          // when when somebody has screwed with setTimeout but no I.E. maddness
          return cachedSetTimeout(fun, 0);
      } catch(e){
          try {
              // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
              return cachedSetTimeout.call(null, fun, 0);
          } catch(e){
              // 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
              return cachedSetTimeout.call(this, fun, 0);
          }
      }
  
  
  }
  function runClearTimeout(marker) {
      if (cachedClearTimeout === clearTimeout) {
          //normal enviroments in sane situations
          return clearTimeout(marker);
      }
      // if clearTimeout wasn't available but was latter defined
      if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
          cachedClearTimeout = clearTimeout;
          return clearTimeout(marker);
      }
      try {
          // when when somebody has screwed with setTimeout but no I.E. maddness
          return cachedClearTimeout(marker);
      } catch (e){
          try {
              // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally
              return cachedClearTimeout.call(null, marker);
          } catch (e){
              // 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.
              // Some versions of I.E. have different rules for clearTimeout vs setTimeout
              return cachedClearTimeout.call(this, marker);
          }
      }
  
  
  
  }
  var queue = [];
  var draining = false;
  var currentQueue;
  var queueIndex = -1;
  
  function cleanUpNextTick() {
      if (!draining || !currentQueue) {
          return;
      }
      draining = false;
      if (currentQueue.length) {
          queue = currentQueue.concat(queue);
      } else {
          queueIndex = -1;
      }
      if (queue.length) {
          drainQueue();
      }
  }
  
  function drainQueue() {
      if (draining) {
          return;
      }
      var timeout = runTimeout(cleanUpNextTick);
      draining = true;
  
      var len = queue.length;
      while(len) {
          currentQueue = queue;
          queue = [];
          while (++queueIndex < len) {
              if (currentQueue) {
                  currentQueue[queueIndex].run();
              }
          }
          queueIndex = -1;
          len = queue.length;
      }
      currentQueue = null;
      draining = false;
      runClearTimeout(timeout);
  }
  
  process.nextTick = function (fun) {
      var args = new Array(arguments.length - 1);
      if (arguments.length > 1) {
          for (var i = 1; i < arguments.length; i++) {
              args[i - 1] = arguments[i];
          }
      }
      queue.push(new Item(fun, args));
      if (queue.length === 1 && !draining) {
          runTimeout(drainQueue);
      }
  };
  
  // v8 likes predictible objects
  function Item(fun, array) {
      this.fun = fun;
      this.array = array;
  }
  Item.prototype.run = function () {
      this.fun.apply(null, this.array);
  };
  process.title = 'browser';
  process.browser = true;
  process.env = {};
  process.argv = [];
  process.version = ''; // empty string to avoid regexp issues
  process.versions = {};
  
  function noop() {}
  
  process.on = noop;
  process.addListener = noop;
  process.once = noop;
  process.off = noop;
  process.removeListener = noop;
  process.removeAllListeners = noop;
  process.emit = noop;
  process.prependListener = noop;
  process.prependOnceListener = noop;
  
  process.listeners = function (name) { return [] }
  
  process.binding = function (name) {
      throw new Error('process.binding is not supported');
  };
  
  process.cwd = function () { return '/' };
  process.chdir = function (dir) {
      throw new Error('process.chdir is not supported');
  };
  process.umask = function() { return 0; };
  
  
  /***/ }),
  /* 10 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  /* WEBPACK VAR INJECTION */(function(process) {
  
  var utils = __webpack_require__(0);
  var settle = __webpack_require__(19);
  var buildURL = __webpack_require__(21);
  var parseHeaders = __webpack_require__(22);
  var isURLSameOrigin = __webpack_require__(23);
  var createError = __webpack_require__(11);
  var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__(24);
  
  module.exports = function xhrAdapter(config) {
    return new Promise(function dispatchXhrRequest(resolve, reject) {
      var requestData = config.data;
      var requestHeaders = config.headers;
  
      if (utils.isFormData(requestData)) {
        delete requestHeaders['Content-Type']; // Let the browser set it
      }
  
      var request = new XMLHttpRequest();
      var loadEvent = 'onreadystatechange';
      var xDomain = false;
  
      // For IE 8/9 CORS support
      // Only supports POST and GET calls and doesn't returns the response headers.
      // DON'T do this for testing b/c XMLHttpRequest is mocked, not XDomainRequest.
      if (process.env.NODE_ENV !== 'test' &&
          typeof window !== 'undefined' &&
          window.XDomainRequest && !('withCredentials' in request) &&
          !isURLSameOrigin(config.url)) {
        request = new window.XDomainRequest();
        loadEvent = 'onload';
        xDomain = true;
        request.onprogress = function handleProgress() {};
        request.ontimeout = function handleTimeout() {};
      }
  
      // HTTP basic authentication
      if (config.auth) {
        var username = config.auth.username || '';
        var password = config.auth.password || '';
        requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
      }
  
      request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true);
  
      // Set the request timeout in MS
      request.timeout = config.timeout;
  
      // Listen for ready state
      request[loadEvent] = function handleLoad() {
        if (!request || (request.readyState !== 4 && !xDomain)) {
          return;
        }
  
        // The request errored out and we didn't get a response, this will be
        // handled by onerror instead
        // With one exception: request that using file: protocol, most browsers
        // will return status as 0 even though it's a successful request
        if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
          return;
        }
  
        // Prepare the response
        var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
        var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;
        var response = {
          data: responseData,
          // IE sends 1223 instead of 204 (https://github.com/axios/axios/issues/201)
          status: request.status === 1223 ? 204 : request.status,
          statusText: request.status === 1223 ? 'No Content' : request.statusText,
          headers: responseHeaders,
          config: config,
          request: request
        };
  
        settle(resolve, reject, response);
  
        // Clean up request
        request = null;
      };
  
      // Handle low level network errors
      request.onerror = function handleError() {
        // Real errors are hidden from us by the browser
        // onerror should only fire if it's a network error
        reject(createError('Network Error', config, null, request));
  
        // Clean up request
        request = null;
      };
  
      // Handle timeout
      request.ontimeout = function handleTimeout() {
        reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED',
          request));
  
        // Clean up request
        request = null;
      };
  
      // Add xsrf header
      // This is only done if running in a standard browser environment.
      // Specifically not if we're in a web worker, or react-native.
      if (utils.isStandardBrowserEnv()) {
        var cookies = __webpack_require__(25);
  
        // Add xsrf header
        var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?
            cookies.read(config.xsrfCookieName) :
            undefined;
  
        if (xsrfValue) {
          requestHeaders[config.xsrfHeaderName] = xsrfValue;
        }
      }
  
      // Add headers to the request
      if ('setRequestHeader' in request) {
        utils.forEach(requestHeaders, function setRequestHeader(val, key) {
          if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
            // Remove Content-Type if data is undefined
            delete requestHeaders[key];
          } else {
            // Otherwise add header to the request
            request.setRequestHeader(key, val);
          }
        });
      }
  
      // Add withCredentials to request if needed
      if (config.withCredentials) {
        request.withCredentials = true;
      }
  
      // Add responseType to request if needed
      if (config.responseType) {
        try {
          request.responseType = config.responseType;
        } catch (e) {
          // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
          // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
          if (config.responseType !== 'json') {
            throw e;
          }
        }
      }
  
      // Handle progress if needed
      if (typeof config.onDownloadProgress === 'function') {
        request.addEventListener('progress', config.onDownloadProgress);
      }
  
      // Not all browsers support upload events
      if (typeof config.onUploadProgress === 'function' && request.upload) {
        request.upload.addEventListener('progress', config.onUploadProgress);
      }
  
      if (config.cancelToken) {
        // Handle cancellation
        config.cancelToken.promise.then(function onCanceled(cancel) {
          if (!request) {
            return;
          }
  
          request.abort();
          reject(cancel);
          // Clean up request
          request = null;
        });
      }
  
      if (requestData === undefined) {
        requestData = null;
      }
  
      // Send the request
      request.send(requestData);
    });
  };
  
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(9)))
  
  /***/ }),
  /* 11 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var enhanceError = __webpack_require__(20);
  
  /**
   * Create an Error with the specified message, config, error code, request and response.
   *
   * @param {string} message The error message.
   * @param {Object} config The config.
   * @param {string} [code] The error code (for example, 'ECONNABORTED').
   * @param {Object} [request] The request.
   * @param {Object} [response] The response.
   * @returns {Error} The created error.
   */
  module.exports = function createError(message, config, code, request, response) {
    var error = new Error(message);
    return enhanceError(error, config, code, request, response);
  };
  
  
  /***/ }),
  /* 12 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  module.exports = function isCancel(value) {
    return !!(value && value.__CANCEL__);
  };
  
  
  /***/ }),
  /* 13 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  /**
   * A `Cancel` is an object that is thrown when an operation is canceled.
   *
   * @class
   * @param {string=} message The message.
   */
  function Cancel(message) {
    this.message = message;
  }
  
  Cancel.prototype.toString = function toString() {
    return 'Cancel' + (this.message ? ': ' + this.message : '');
  };
  
  Cancel.prototype.__CANCEL__ = true;
  
  module.exports = Cancel;
  
  
  /***/ }),
  /* 14 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
      name: 'step',
      props: ['details', 'type'],
      template: `
                 <div class="step step-positive" v-if="type === 'type_start'">
                      <div class="step__icon">
                      
                          <i class="ion-android-archive"></i>
                      
                      </div>
                      <div class="step__details">
                          <div class="step__description">{{details.stepName}}</div>
                          <div class="step__description">{{details.stepLocation}}</div>
                          <div class="step__time">Zeit: {{hours}}:{{minutes}}</div>
                          <div class="step__date">Datum: {{day}}.{{month}}.{{year}}</div>   
                      </div>
                 </div>
                 <div class="step step-positive" v-else-if="type === 'type_logistic'">
                      <div class="step__icon">
                      
                          <i class="ion-android-settings"></i>
                      
                      </div>
                      <div class="step__details">
                          <div class="step__description">{{details.stepName}}</div>
                          <div class="step__description">{{details.stepLocation}}</div>
                          <div class="step__time">Zeit: {{hours}}:{{minutes}}</div>
                          <div class="step__date">Datum: {{day}}.{{month}}.{{year}}</div>    
                      </div>
                 </div>
                 
                 <div class="step step-positive" v-else-if="type === 'type_ontheway'">
                      <div class="step__icon">
                      
                          <i class="ion-android-bus"></i>
                      
                      </div>
                      <div class="step__details">
                          <div class="step__description">{{details.stepName}}</div>
                          <div class="step__description">{{details.stepLocation}}</div>
                          <div class="step__time">Zeit: {{hours}}:{{minutes}}</div>
                          <div class="step__date">Datum: {{day}}.{{month}}.{{year}}</div>    
                      </div>
                 </div>
                 
                 <div class="step  step-negative" v-else-if="type === 'type_notmet'">
                      <div class="step__icon">
                      
                          <i class="ion-android-close"></i>
                      
                      </div>
                      <div class="step__details">
                          <div class="step__description">{{details.stepName}}</div>
                          <div class="step__description">{{details.stepLocation}}</div>
                          <div class="step__time">Zeit: {{hours}}:{{minutes}}</div>
                          <div class="step__date">Datum: {{day}}.{{month}}.{{year}}</div>    
                      </div>
                 </div>
                 <div class="step step-positive" v-else-if="type === 'type_shop'">
                      <div class="step__icon">
                      
                          <i class="ion-android-expand"></i>
                      
                      </div>
                      <div class="step__details">
                          <div class="step__description">{{details.stepName}}</div>
                          <div class="step__description">{{details.stepLocation}}</div>
                          <div class="step__time">Zeit: {{hours}}:{{minutes}}</div>
                          <div class="step__date">Datum: {{day}}.{{month}}.{{year}}</div>    
                      </div>
                 </div>
                 <div class="step step-positive" v-else-if="type === 'type_end'">
                      <div class="step__icon">
                      
                          <i class="ion-android-done"></i>
                      
                      </div>
                      <div class="step__details">
                          <div class="step__description">{{details.stepName}}</div>
                          <div class="step__description">{{details.stepLocation}}</div>
                          <div class="step__time">Zeit: {{hours}}:{{minutes}}</div>
                          <div class="step__date">Datum: {{day}}.{{month}}.{{year}}</div>    
                      </div>
                 </div>
                 <div class="step step-positive" v-else-if="type === 'type_toyou'">
                      <div class="step__icon">
                      
                          <i class="ion-android-walk"></i>
                      
                      </div>
                      <div class="step__details">
                          <div class="step__description">{{details.stepName}}</div>
                          <div class="step__description"> {{details.stepLocation}}</div>
                          <div class="step__time">Zeit: {{hours}}:{{minutes}}</div>
                          <div class="step__date">Datum: {{day}}.{{month}}.{{year}}</div>    
                      </div>
                 </div>
                `,
      computed: {
          date: function () {
            return new Date(this.details.stepDate);
          },
  
          day: function(){
              let day = this.date.getDate();
              if(day < 10){
                  return '0' + day;
              }
              return day;
          },
          month: function(){
  
              let month = this.date.getMonth()+1;
              if(month < 10){
                  return '0' + month;
              }
              return month;
          },
          year: function() {
  
              return this.date.getFullYear();
          },
          hours: function() {
  
              let hours = this.date.getHours();
              if(hours < 10){
                  return '0' + hours;
              }
              return hours;
          },
          minutes: function() {
  
              let minutes = this.date.getMinutes();
              if(minutes < 10){
                  return '0' + minutes;
              }
              return minutes;
          }
  
      }
  });
  
  /***/ }),
  /* 15 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__(0);
  var bind = __webpack_require__(8);
  var Axios = __webpack_require__(17);
  var defaults = __webpack_require__(4);
  
  /**
   * Create an instance of Axios
   *
   * @param {Object} defaultConfig The default config for the instance
   * @return {Axios} A new instance of Axios
   */
  function createInstance(defaultConfig) {
    var context = new Axios(defaultConfig);
    var instance = bind(Axios.prototype.request, context);
  
    // Copy axios.prototype to instance
    utils.extend(instance, Axios.prototype, context);
  
    // Copy context to instance
    utils.extend(instance, context);
  
    return instance;
  }
  
  // Create the default instance to be exported
  var axios = createInstance(defaults);
  
  // Expose Axios class to allow class inheritance
  axios.Axios = Axios;
  
  // Factory for creating new instances
  axios.create = function create(instanceConfig) {
    return createInstance(utils.merge(defaults, instanceConfig));
  };
  
  // Expose Cancel & CancelToken
  axios.Cancel = __webpack_require__(13);
  axios.CancelToken = __webpack_require__(31);
  axios.isCancel = __webpack_require__(12);
  
  // Expose all/spread
  axios.all = function all(promises) {
    return Promise.all(promises);
  };
  axios.spread = __webpack_require__(32);
  
  module.exports = axios;
  
  // Allow use of default import syntax in TypeScript
  module.exports.default = axios;
  
  
  /***/ }),
  /* 16 */
  /***/ (function(module, exports) {
  
  /*!
   * Determine if an object is a Buffer
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   */
  
  // The _isBuffer check is for Safari 5-7 support, because it's missing
  // Object.prototype.constructor. Remove this eventually
  module.exports = function (obj) {
    return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
  }
  
  function isBuffer (obj) {
    return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
  }
  
  // For Node v0.10 support. Remove this eventually.
  function isSlowBuffer (obj) {
    return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
  }
  
  
  /***/ }),
  /* 17 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var defaults = __webpack_require__(4);
  var utils = __webpack_require__(0);
  var InterceptorManager = __webpack_require__(26);
  var dispatchRequest = __webpack_require__(27);
  
  /**
   * Create a new instance of Axios
   *
   * @param {Object} instanceConfig The default config for the instance
   */
  function Axios(instanceConfig) {
    this.defaults = instanceConfig;
    this.interceptors = {
      request: new InterceptorManager(),
      response: new InterceptorManager()
    };
  }
  
  /**
   * Dispatch a request
   *
   * @param {Object} config The config specific for this request (merged with this.defaults)
   */
  Axios.prototype.request = function request(config) {
    /*eslint no-param-reassign:0*/
    // Allow for axios('example/url'[, config]) a la fetch API
    if (typeof config === 'string') {
      config = utils.merge({
        url: arguments[0]
      }, arguments[1]);
    }
  
    config = utils.merge(defaults, {method: 'get'}, this.defaults, config);
    config.method = config.method.toLowerCase();
  
    // Hook up interceptors middleware
    var chain = [dispatchRequest, undefined];
    var promise = Promise.resolve(config);
  
    this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
      chain.unshift(interceptor.fulfilled, interceptor.rejected);
    });
  
    this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
      chain.push(interceptor.fulfilled, interceptor.rejected);
    });
  
    while (chain.length) {
      promise = promise.then(chain.shift(), chain.shift());
    }
  
    return promise;
  };
  
  // Provide aliases for supported request methods
  utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
    /*eslint func-names:0*/
    Axios.prototype[method] = function(url, config) {
      return this.request(utils.merge(config || {}, {
        method: method,
        url: url
      }));
    };
  });
  
  utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
    /*eslint func-names:0*/
    Axios.prototype[method] = function(url, data, config) {
      return this.request(utils.merge(config || {}, {
        method: method,
        url: url,
        data: data
      }));
    };
  });
  
  module.exports = Axios;
  
  
  /***/ }),
  /* 18 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__(0);
  
  module.exports = function normalizeHeaderName(headers, normalizedName) {
    utils.forEach(headers, function processHeader(value, name) {
      if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
        headers[normalizedName] = value;
        delete headers[name];
      }
    });
  };
  
  
  /***/ }),
  /* 19 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var createError = __webpack_require__(11);
  
  /**
   * Resolve or reject a Promise based on response status.
   *
   * @param {Function} resolve A function that resolves the promise.
   * @param {Function} reject A function that rejects the promise.
   * @param {object} response The response.
   */
  module.exports = function settle(resolve, reject, response) {
    var validateStatus = response.config.validateStatus;
    // Note: status is not exposed by XDomainRequest
    if (!response.status || !validateStatus || validateStatus(response.status)) {
      resolve(response);
    } else {
      reject(createError(
        'Request failed with status code ' + response.status,
        response.config,
        null,
        response.request,
        response
      ));
    }
  };
  
  
  /***/ }),
  /* 20 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  /**
   * Update an Error with the specified config, error code, and response.
   *
   * @param {Error} error The error to update.
   * @param {Object} config The config.
   * @param {string} [code] The error code (for example, 'ECONNABORTED').
   * @param {Object} [request] The request.
   * @param {Object} [response] The response.
   * @returns {Error} The error.
   */
  module.exports = function enhanceError(error, config, code, request, response) {
    error.config = config;
    if (code) {
      error.code = code;
    }
    error.request = request;
    error.response = response;
    return error;
  };
  
  
  /***/ }),
  /* 21 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__(0);
  
  function encode(val) {
    return encodeURIComponent(val).
      replace(/%40/gi, '@').
      replace(/%3A/gi, ':').
      replace(/%24/g, '$').
      replace(/%2C/gi, ',').
      replace(/%20/g, '+').
      replace(/%5B/gi, '[').
      replace(/%5D/gi, ']');
  }
  
  /**
   * Build a URL by appending params to the end
   *
   * @param {string} url The base of the url (e.g., http://www.google.com)
   * @param {object} [params] The params to be appended
   * @returns {string} The formatted url
   */
  module.exports = function buildURL(url, params, paramsSerializer) {
    /*eslint no-param-reassign:0*/
    if (!params) {
      return url;
    }
  
    var serializedParams;
    if (paramsSerializer) {
      serializedParams = paramsSerializer(params);
    } else if (utils.isURLSearchParams(params)) {
      serializedParams = params.toString();
    } else {
      var parts = [];
  
      utils.forEach(params, function serialize(val, key) {
        if (val === null || typeof val === 'undefined') {
          return;
        }
  
        if (utils.isArray(val)) {
          key = key + '[]';
        } else {
          val = [val];
        }
  
        utils.forEach(val, function parseValue(v) {
          if (utils.isDate(v)) {
            v = v.toISOString();
          } else if (utils.isObject(v)) {
            v = JSON.stringify(v);
          }
          parts.push(encode(key) + '=' + encode(v));
        });
      });
  
      serializedParams = parts.join('&');
    }
  
    if (serializedParams) {
      url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
    }
  
    return url;
  };
  
  
  /***/ }),
  /* 22 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__(0);
  
  // Headers whose duplicates are ignored by node
  // c.f. https://nodejs.org/api/http.html#http_message_headers
  var ignoreDuplicateOf = [
    'age', 'authorization', 'content-length', 'content-type', 'etag',
    'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
    'last-modified', 'location', 'max-forwards', 'proxy-authorization',
    'referer', 'retry-after', 'user-agent'
  ];
  
  /**
   * Parse headers into an object
   *
   * ```
   * Date: Wed, 27 Aug 2014 08:58:49 GMT
   * Content-Type: application/json
   * Connection: keep-alive
   * Transfer-Encoding: chunked
   * ```
   *
   * @param {String} headers Headers needing to be parsed
   * @returns {Object} Headers parsed into an object
   */
  module.exports = function parseHeaders(headers) {
    var parsed = {};
    var key;
    var val;
    var i;
  
    if (!headers) { return parsed; }
  
    utils.forEach(headers.split('\n'), function parser(line) {
      i = line.indexOf(':');
      key = utils.trim(line.substr(0, i)).toLowerCase();
      val = utils.trim(line.substr(i + 1));
  
      if (key) {
        if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
          return;
        }
        if (key === 'set-cookie') {
          parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
        } else {
          parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
        }
      }
    });
  
    return parsed;
  };
  
  
  /***/ }),
  /* 23 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__(0);
  
  module.exports = (
    utils.isStandardBrowserEnv() ?
  
    // Standard browser envs have full support of the APIs needed to test
    // whether the request URL is of the same origin as current location.
    (function standardBrowserEnv() {
      var msie = /(msie|trident)/i.test(navigator.userAgent);
      var urlParsingNode = document.createElement('a');
      var originURL;
  
      /**
      * Parse a URL to discover it's components
      *
      * @param {String} url The URL to be parsed
      * @returns {Object}
      */
      function resolveURL(url) {
        var href = url;
  
        if (msie) {
          // IE needs attribute set twice to normalize properties
          urlParsingNode.setAttribute('href', href);
          href = urlParsingNode.href;
        }
  
        urlParsingNode.setAttribute('href', href);
  
        // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
        return {
          href: urlParsingNode.href,
          protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
          host: urlParsingNode.host,
          search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
          hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
          hostname: urlParsingNode.hostname,
          port: urlParsingNode.port,
          pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
                    urlParsingNode.pathname :
                    '/' + urlParsingNode.pathname
        };
      }
  
      originURL = resolveURL(window.location.href);
  
      /**
      * Determine if a URL shares the same origin as the current location
      *
      * @param {String} requestURL The URL to test
      * @returns {boolean} True if URL shares the same origin, otherwise false
      */
      return function isURLSameOrigin(requestURL) {
        var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
        return (parsed.protocol === originURL.protocol &&
              parsed.host === originURL.host);
      };
    })() :
  
    // Non standard browser envs (web workers, react-native) lack needed support.
    (function nonStandardBrowserEnv() {
      return function isURLSameOrigin() {
        return true;
      };
    })()
  );
  
  
  /***/ }),
  /* 24 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  // btoa polyfill for IE<10 courtesy https://github.com/davidchambers/Base64.js
  
  var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
  
  function E() {
    this.message = 'String contains an invalid character';
  }
  E.prototype = new Error;
  E.prototype.code = 5;
  E.prototype.name = 'InvalidCharacterError';
  
  function btoa(input) {
    var str = String(input);
    var output = '';
    for (
      // initialize result and counter
      var block, charCode, idx = 0, map = chars;
      // if the next str index does not exist:
      //   change the mapping table to "="
      //   check if d has no fractional digits
      str.charAt(idx | 0) || (map = '=', idx % 1);
      // "8 - idx % 1 * 8" generates the sequence 2, 4, 6, 8
      output += map.charAt(63 & block >> 8 - idx % 1 * 8)
    ) {
      charCode = str.charCodeAt(idx += 3 / 4);
      if (charCode > 0xFF) {
        throw new E();
      }
      block = block << 8 | charCode;
    }
    return output;
  }
  
  module.exports = btoa;
  
  
  /***/ }),
  /* 25 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__(0);
  
  module.exports = (
    utils.isStandardBrowserEnv() ?
  
    // Standard browser envs support document.cookie
    (function standardBrowserEnv() {
      return {
        write: function write(name, value, expires, path, domain, secure) {
          var cookie = [];
          cookie.push(name + '=' + encodeURIComponent(value));
  
          if (utils.isNumber(expires)) {
            cookie.push('expires=' + new Date(expires).toGMTString());
          }
  
          if (utils.isString(path)) {
            cookie.push('path=' + path);
          }
  
          if (utils.isString(domain)) {
            cookie.push('domain=' + domain);
          }
  
          if (secure === true) {
            cookie.push('secure');
          }
  
          document.cookie = cookie.join('; ');
        },
  
        read: function read(name) {
          var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
          return (match ? decodeURIComponent(match[3]) : null);
        },
  
        remove: function remove(name) {
          this.write(name, '', Date.now() - 86400000);
        }
      };
    })() :
  
    // Non standard browser env (web workers, react-native) lack needed support.
    (function nonStandardBrowserEnv() {
      return {
        write: function write() {},
        read: function read() { return null; },
        remove: function remove() {}
      };
    })()
  );
  
  
  /***/ }),
  /* 26 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__(0);
  
  function InterceptorManager() {
    this.handlers = [];
  }
  
  /**
   * Add a new interceptor to the stack
   *
   * @param {Function} fulfilled The function to handle `then` for a `Promise`
   * @param {Function} rejected The function to handle `reject` for a `Promise`
   *
   * @return {Number} An ID used to remove interceptor later
   */
  InterceptorManager.prototype.use = function use(fulfilled, rejected) {
    this.handlers.push({
      fulfilled: fulfilled,
      rejected: rejected
    });
    return this.handlers.length - 1;
  };
  
  /**
   * Remove an interceptor from the stack
   *
   * @param {Number} id The ID that was returned by `use`
   */
  InterceptorManager.prototype.eject = function eject(id) {
    if (this.handlers[id]) {
      this.handlers[id] = null;
    }
  };
  
  /**
   * Iterate over all the registered interceptors
   *
   * This method is particularly useful for skipping over any
   * interceptors that may have become `null` calling `eject`.
   *
   * @param {Function} fn The function to call for each interceptor
   */
  InterceptorManager.prototype.forEach = function forEach(fn) {
    utils.forEach(this.handlers, function forEachHandler(h) {
      if (h !== null) {
        fn(h);
      }
    });
  };
  
  module.exports = InterceptorManager;
  
  
  /***/ }),
  /* 27 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__(0);
  var transformData = __webpack_require__(28);
  var isCancel = __webpack_require__(12);
  var defaults = __webpack_require__(4);
  var isAbsoluteURL = __webpack_require__(29);
  var combineURLs = __webpack_require__(30);
  
  /**
   * Throws a `Cancel` if cancellation has been requested.
   */
  function throwIfCancellationRequested(config) {
    if (config.cancelToken) {
      config.cancelToken.throwIfRequested();
    }
  }
  
  /**
   * Dispatch a request to the server using the configured adapter.
   *
   * @param {object} config The config that is to be used for the request
   * @returns {Promise} The Promise to be fulfilled
   */
  module.exports = function dispatchRequest(config) {
    throwIfCancellationRequested(config);
  
    // Support baseURL config
    if (config.baseURL && !isAbsoluteURL(config.url)) {
      config.url = combineURLs(config.baseURL, config.url);
    }
  
    // Ensure headers exist
    config.headers = config.headers || {};
  
    // Transform request data
    config.data = transformData(
      config.data,
      config.headers,
      config.transformRequest
    );
  
    // Flatten headers
    config.headers = utils.merge(
      config.headers.common || {},
      config.headers[config.method] || {},
      config.headers || {}
    );
  
    utils.forEach(
      ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
      function cleanHeaderConfig(method) {
        delete config.headers[method];
      }
    );
  
    var adapter = config.adapter || defaults.adapter;
  
    return adapter(config).then(function onAdapterResolution(response) {
      throwIfCancellationRequested(config);
  
      // Transform response data
      response.data = transformData(
        response.data,
        response.headers,
        config.transformResponse
      );
  
      return response;
    }, function onAdapterRejection(reason) {
      if (!isCancel(reason)) {
        throwIfCancellationRequested(config);
  
        // Transform response data
        if (reason && reason.response) {
          reason.response.data = transformData(
            reason.response.data,
            reason.response.headers,
            config.transformResponse
          );
        }
      }
  
      return Promise.reject(reason);
    });
  };
  
  
  /***/ }),
  /* 28 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__(0);
  
  /**
   * Transform the data for a request or a response
   *
   * @param {Object|String} data The data to be transformed
   * @param {Array} headers The headers for the request or response
   * @param {Array|Function} fns A single function or Array of functions
   * @returns {*} The resulting transformed data
   */
  module.exports = function transformData(data, headers, fns) {
    /*eslint no-param-reassign:0*/
    utils.forEach(fns, function transform(fn) {
      data = fn(data, headers);
    });
  
    return data;
  };
  
  
  /***/ }),
  /* 29 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  /**
   * Determines whether the specified URL is absolute
   *
   * @param {string} url The URL to test
   * @returns {boolean} True if the specified URL is absolute, otherwise false
   */
  module.exports = function isAbsoluteURL(url) {
    // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
    // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
    // by any combination of letters, digits, plus, period, or hyphen.
    return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
  };
  
  
  /***/ }),
  /* 30 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  /**
   * Creates a new URL by combining the specified URLs
   *
   * @param {string} baseURL The base URL
   * @param {string} relativeURL The relative URL
   * @returns {string} The combined URL
   */
  module.exports = function combineURLs(baseURL, relativeURL) {
    return relativeURL
      ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
      : baseURL;
  };
  
  
  /***/ }),
  /* 31 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var Cancel = __webpack_require__(13);
  
  /**
   * A `CancelToken` is an object that can be used to request cancellation of an operation.
   *
   * @class
   * @param {Function} executor The executor function.
   */
  function CancelToken(executor) {
    if (typeof executor !== 'function') {
      throw new TypeError('executor must be a function.');
    }
  
    var resolvePromise;
    this.promise = new Promise(function promiseExecutor(resolve) {
      resolvePromise = resolve;
    });
  
    var token = this;
    executor(function cancel(message) {
      if (token.reason) {
        // Cancellation has already been requested
        return;
      }
  
      token.reason = new Cancel(message);
      resolvePromise(token.reason);
    });
  }
  
  /**
   * Throws a `Cancel` if cancellation has been requested.
   */
  CancelToken.prototype.throwIfRequested = function throwIfRequested() {
    if (this.reason) {
      throw this.reason;
    }
  };
  
  /**
   * Returns an object that contains a new `CancelToken` and a function that, when called,
   * cancels the `CancelToken`.
   */
  CancelToken.source = function source() {
    var cancel;
    var token = new CancelToken(function executor(c) {
      cancel = c;
    });
    return {
      token: token,
      cancel: cancel
    };
  };
  
  module.exports = CancelToken;
  
  
  /***/ }),
  /* 32 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  /**
   * Syntactic sugar for invoking a function and expanding an array for arguments.
   *
   * Common use case would be to use `Function.prototype.apply`.
   *
   *  ```js
   *  function f(x, y, z) {}
   *  var args = [1, 2, 3];
   *  f.apply(null, args);
   *  ```
   *
   * With `spread` this example can be re-written.
   *
   *  ```js
   *  spread(function(x, y, z) {})([1, 2, 3]);
   *  ```
   *
   * @param {Function} callback
   * @returns {Function}
   */
  module.exports = function spread(callback) {
    return function wrap(arr) {
      return callback.apply(null, arr);
    };
  };
  
  
  /***/ }),
  /* 33 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_methods__ = __webpack_require__(1);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
      name: 'page-header',
      props: [
          'loggedin',
          'username',
          'admin',
          'application'
      ],
      template: `
            
              <header class="pageheader container" v-if="application">
                      <div class="pageheader__logo col-4">Parcel Tracker</div>
          
                      <nav class="pageheader__nav col-8">
                          <router-link class="nav__link" to="/">Home</router-link>
                          <router-link class="nav__link" to="/login">Login</router-link>
                          <router-link class="nav__link" to="/register">Registrierung</router-link>
                          <router-link class="nav__link" v-if="loggedin" to="/dashboard">Übersicht</router-link>
                          <button class="nav__button button-primary" v-if="admin && loggedin" @click.prevent="gotoAdminPage">Admin</button>
                          <button class="nav__button button-primary" v-if="loggedin" @click.prevent="logout">Logout</button>
                      </nav>
                            
                      <div class="pageheader__burger col-8">
                          <i @click.preventt="mobileNav" class="ion-navicon-round pageheader__burger__icon"></i>
                      </div>  
              </header>
              <header class="pageheader container" v-else>
                      <div class="pageheader__logo col-4">Parcel Tracker</div>
          
                      <nav class="pageheader__nav col-8">
                          <router-link class="nav__link" v-if="loggedin" to="/dashboard">Übersicht</router-link>
                          <button class="nav__button" v-if="admin && loggedin" @click.prevent="gotoAppPage">App</button>
                          <button class="nav__button" v-if="loggedin" @click.prevent="logout">Logout</button>
                      </nav>
                      
                      <div class="pageheader__burger col-8">
                          <i @click.prevent="mobileNav" class="ion-navicon-round pageheader__burger__icon"></i>
                      </div>
                              
              </header>
      
      `,
      methods: {
          logout: function(){
             Object(__WEBPACK_IMPORTED_MODULE_0__common_methods__["i" /* logout */])().then(() => this.$emit('logout'));
          },
          gotoAdminPage: function () {
              let adminUrl = window.location.protocol + '//' + window.location.host + '/admin';
              window.location.href = adminUrl;
          },
          mobileNav: function () {
              this.$emit('toggle-navbar');
              if(this.application){
                  this.$router.push('/mobile/nav/app');
              }
              else {
                  this.$router.push('/mobile/nav/admin');
              }
          },
          gotoAppPage: function () {
              let adminUrl = window.location.protocol + '//' + window.location.host;
              window.location.href = adminUrl;
          }
      }
  });
  
  /***/ }),
  /* 34 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
      name: 'parcel-details',
      props: ['parcel', 'type'],
      template: `
                             <div class="address" v-if="type === 'receiver'">
                                  <h5 class="address__head">Empfänger</h5>
                                  <div class="address__details">
                                      <div class="address__details__item">{{parcel.toFirstName}}</div>
                                      <div class="address__details__item">{{parcel.toName}}</div>
                                      <div class="address__details__item">{{parcel.toCity}}</div>
                                      <div class="address__details__item">{{parcel.toPostCode}}</div>
                                      <div class="address__details__item">{{parcel.toAddress}}</div>
                                  
                                  </div>
                             </div>
                             <div class="address" v-else-if="type === 'sender'">
                                  <h5 class="address__head">Sender</h5>
                                  
                                  <div class="address__details">
                                  
                                      <div class="address__details__item">{{parcel.fromFirstName}}</div>
                                      <div class="address__details__item">{{parcel.fromName}}</div>
                                      <div class="address__details__item">{{parcel.fromCity}}</div>
                                      <div class="address__details__item">{{parcel.fromPostCode}}</div>
                                      <div class="address__details__item">{{parcel.fromAddress}}</div>
               
                                  </div>
                             </div>
                             <div class="address" v-else>
                              Error this template is not defined!!!
                             </div>
                             
      
                `
  });
  
  /***/ }),
  /* 35 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__step__ = __webpack_require__(14);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
      components: {
        'step': __WEBPACK_IMPORTED_MODULE_0__step__["a" /* default */]
      },
      name: 'history',
      props: ['parcel'],
      template: `
                          <div class="history">
                              <div class="history__steps">
                                  <h4 class="history__head">Sendungshistorie</h4>
                                  
                                  <div class="history__item" v-for="step in parcel.steps">
                                      <step :details="step" :type="step.stepType"></step>
                                  </div>
                              
                              </div>
                              
                              <div class="history_nextstep" v-if="parcel.nextStep">
                                  <h4 class="history__head">Nächste Station</h4>
                                  
                                  <div class="history__nextstep__item"">
                                          <step :details="parcel.nextStep" :type="parcel.nextStep.stepType"></step>
                                  </div>
                              
                              </div>
                          </div>
                `
  
  });
  
  /***/ }),
  /* 36 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios__ = __webpack_require__(3);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_axios__);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_methods__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components__ = __webpack_require__(2);
  
  
  
  
  const Login = {
      components: __WEBPACK_IMPORTED_MODULE_2__components__["a" /* default */],
      template: `
                  <div class="page page__login">
                                    
                      <h1>Login</h1>
                      
                      <form class="login container">
                          <div class="login__message" :style="messageStyle">{{message}}</div>
                          
                          <div class="login__input__container">
                          
                              <input class="login__input" v-model="email" placeholder="E-Mail" type="email">
                              <input class="login__input" v-model="password" placeholder="Passwort" type="password">                       
                              
                          </div>
                         <button class="login__submit button-primary" @click.prevent="submit">Abschicken</button>
                      
                      </form>
                  </div>
                `,
      mounted(){
          this.checkLogin()
              .then(data => {
                  if(data && data.username){
                      this.isLoggedIn = true;
                      this.username = data.username;
                      this.$emit('logged-in');
                  }
              });
      },
      data(){
          return {
              // Error and Information messages about the login form
              message: 'Bitte geben Sie ihr Anmeldedaten hier ein:',
              messageType: 100,
  
              // Login form models
              password: '',
              email: '',
  
              // Currently logged in?
              isLoggedIn: false,
              username: ''
  
          }
      },
      methods: {
          submit: function(){
  
  
              if(this.validateInput(this.email, this.password)){
                  __WEBPACK_IMPORTED_MODULE_0_axios___default.a.post('/login',{
                      email: this.email,
                      password: this.password
                  })
                      .then((response) => {
                          if(response && response.status === 200){
                              this.message = 'Sie haben sich erfolgreich angemeldet';
                              this.messageType = 200;
                              this.$emit('login_successful');
                              setTimeout(() => {
                                  this.$router.push({path: '/dashboard'});
                              }, 1000);
                          }
                      })
                      .catch((err) => {
                          console.error(err);
                          this.message = 'Benutzername oder Passwort sind inkorrekt!';
                          this.messageType = 400;
                      })
              }
  
          },
          validateInput: function(email, password) {
              //TODO: Validate if email is really an email by regex
              return true;
          },
          checkLogin: __WEBPACK_IMPORTED_MODULE_1__common_methods__["b" /* checkLogin */]
      },
      computed: {
          messageStyle: function(){
              if(this.messageType === 400){
                  return {
                      color: '#f00'
                  };
              }
              if(this.messageType === 200){
                  return {
                      color: '#0a0'
                  };
              }
              if(this.messageType === 100){
                  return {};
              }
          }
      }
  }
  
  /* harmony default export */ __webpack_exports__["a"] = (Login);
  
  /***/ }),
  /* 37 */
  /***/ (function(module, exports) {
  
  var toString = {}.toString;
  
  module.exports = Array.isArray || function (arr) {
    return toString.call(arr) == '[object Array]';
  };
  
  
  /***/ }),
  /* 38 */
  /***/ (function(module, exports) {
  
  exports.L = { bit: 1 }
  exports.M = { bit: 0 }
  exports.Q = { bit: 3 }
  exports.H = { bit: 2 }
  
  function fromString (string) {
    if (typeof string !== 'string') {
      throw new Error('Param is not a string')
    }
  
    var lcStr = string.toLowerCase()
  
    switch (lcStr) {
      case 'l':
      case 'low':
        return exports.L
  
      case 'm':
      case 'medium':
        return exports.M
  
      case 'q':
      case 'quartile':
        return exports.Q
  
      case 'h':
      case 'high':
        return exports.H
  
      default:
        throw new Error('Unknown EC Level: ' + string)
    }
  }
  
  exports.isValid = function isValid (level) {
    return level && typeof level.bit !== 'undefined' &&
      level.bit >= 0 && level.bit < 4
  }
  
  exports.from = function from (value, defaultValue) {
    if (exports.isValid(value)) {
      return value
    }
  
    try {
      return fromString(value)
    } catch (e) {
      return defaultValue
    }
  }
  
  
  /***/ }),
  /* 39 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_methods__ = __webpack_require__(1);
  
  
  const MobileNav = {
  
      template: `
                  <div v-if="app" class="page page__menu">
                          <button class="menu__button button-exit" @click.prevent="exit">X</button>
                          <router-link class="menu__link" @click.native="leave" to="/">Home</router-link>
                          <router-link class="menu__link" @click.native="leave" to="/login">Login</router-link>
                          <router-link class="menu__link" @click.native="leave" to="/register">Registrierung</router-link>
                          <router-link class="menu__link" @click.native="leave" v-if="isLoggedIn" to="/dashboard">Übersicht</router-link>
                          <button class="menu__button" v-if="admin && isLoggedIn" @click.prevent="gotoAdminPage">Admin</button>
                          <button class="menu__button" v-if="isLoggedIn" @click.prevent="logout">Logout</button>
                  </div>
                  <div v-else class="page page__menu">
                          <button class="menu__button button-exit" @click.prevent="exit">X</button>
                          <router-link class="menu__link" @click.native="leave" to="/">Home</router-link>
                          <router-link class="menu__link" @click.native="leave" v-if="isLoggedIn" to="/dashboard">Übersicht</router-link>
                          <button class="menu__button" v-if="admin && isLoggedIn" @click.prevent="gotoAppPage">App</button>
                          <button class="menu__button" v-if="isLoggedIn" @click.prevent="logout">Logout</button>
                  </div>
                `,
      methods: {
          logout: function(){
              this.$emit('toggle-navbar');
              Object(__WEBPACK_IMPORTED_MODULE_0__common_methods__["i" /* logout */])().then(() => this.$emit('logout'));
              this.$router.push('/');
          },
          gotoAdminPage: function () {
              this.$emit('toggle-navbar');
              let appUrl = window.location.protocol + '//' + window.location.host + '/admin';
              window.location.href = appUrl;
          },
          gotoAppPage: function () {
              this.$emit('toggle-navbar');
              let adminUrl = window.location.protocol + '//' + window.location.host;
              window.location.href = adminUrl;
          },
          checkLogin: __WEBPACK_IMPORTED_MODULE_0__common_methods__["b" /* checkLogin */],
          exit: function(){
              this.$emit('toggle-navbar');
              this.$router.push('/dashboard');
          },
          leave: function () {
              this.$emit('toggle-navbar');
          }
      },
      mounted(){
  
          if(this.$route.params.app === 'admin'){
              this.app = false;
          }
  
          this.checkLogin()
              .then(data => {
                  if(data && data.username){
                      this.isLoggedIn = true;
                      this.username = data.username;
                      this.admin = data.admin;
                  }
              });
      },
      data(){
          return {
  
              // Currently logged in?
              isLoggedIn: false,
              username: '',
              admin: false,
              app: true
  
          }
      }
  
  }
  
  /* harmony default export */ __webpack_exports__["a"] = (MobileNav);
  
  /***/ }),
  /* 40 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var canPromise = __webpack_require__(51)
  var QRCode = __webpack_require__(54)
  var CanvasRenderer = __webpack_require__(70)
  var SvgRenderer = __webpack_require__(71)
  
  function renderCanvas (renderFunc, canvas, text, opts, cb) {
    var args = [].slice.call(arguments, 1)
    var argsNum = args.length
    var isLastArgCb = typeof args[argsNum - 1] === 'function'
  
    if (!isLastArgCb && !canPromise()) {
      throw new Error('Callback required as last argument')
    }
  
    if (isLastArgCb) {
      if (argsNum < 2) {
        throw new Error('Too few arguments provided')
      }
  
      if (argsNum === 2) {
        cb = text
        text = canvas
        canvas = opts = undefined
      } else if (argsNum === 3) {
        if (canvas.getContext && typeof cb === 'undefined') {
          cb = opts
          opts = undefined
        } else {
          cb = opts
          opts = text
          text = canvas
          canvas = undefined
        }
      }
    } else {
      if (argsNum < 1) {
        throw new Error('Too few arguments provided')
      }
  
      if (argsNum === 1) {
        text = canvas
        canvas = opts = undefined
      } else if (argsNum === 2 && !canvas.getContext) {
        opts = text
        text = canvas
        canvas = undefined
      }
  
      return new Promise(function (resolve, reject) {
        try {
          var data = QRCode.create(text, opts)
          resolve(renderFunc(data, canvas, opts))
        } catch (e) {
          reject(e)
        }
      })
    }
  
    try {
      var data = QRCode.create(text, opts)
      cb(null, renderFunc(data, canvas, opts))
    } catch (e) {
      cb(e)
    }
  }
  
  exports.create = QRCode.create
  exports.toCanvas = renderCanvas.bind(null, CanvasRenderer.render)
  exports.toDataURL = renderCanvas.bind(null, CanvasRenderer.renderToDataURL)
  
  // only svg for now.
  exports.toString = renderCanvas.bind(null, function (data, _, opts) {
    return SvgRenderer.render(data, opts)
  })
  
  
  /***/ }),
  /* 41 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var ECLevel = __webpack_require__(38)
  
  var EC_BLOCKS_TABLE = [
  // L  M  Q  H
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 2, 2,
    1, 2, 2, 4,
    1, 2, 4, 4,
    2, 4, 4, 4,
    2, 4, 6, 5,
    2, 4, 6, 6,
    2, 5, 8, 8,
    4, 5, 8, 8,
    4, 5, 8, 11,
    4, 8, 10, 11,
    4, 9, 12, 16,
    4, 9, 16, 16,
    6, 10, 12, 18,
    6, 10, 17, 16,
    6, 11, 16, 19,
    6, 13, 18, 21,
    7, 14, 21, 25,
    8, 16, 20, 25,
    8, 17, 23, 25,
    9, 17, 23, 34,
    9, 18, 25, 30,
    10, 20, 27, 32,
    12, 21, 29, 35,
    12, 23, 34, 37,
    12, 25, 34, 40,
    13, 26, 35, 42,
    14, 28, 38, 45,
    15, 29, 40, 48,
    16, 31, 43, 51,
    17, 33, 45, 54,
    18, 35, 48, 57,
    19, 37, 51, 60,
    19, 38, 53, 63,
    20, 40, 56, 66,
    21, 43, 59, 70,
    22, 45, 62, 74,
    24, 47, 65, 77,
    25, 49, 68, 81
  ]
  
  var EC_CODEWORDS_TABLE = [
  // L  M  Q  H
    7, 10, 13, 17,
    10, 16, 22, 28,
    15, 26, 36, 44,
    20, 36, 52, 64,
    26, 48, 72, 88,
    36, 64, 96, 112,
    40, 72, 108, 130,
    48, 88, 132, 156,
    60, 110, 160, 192,
    72, 130, 192, 224,
    80, 150, 224, 264,
    96, 176, 260, 308,
    104, 198, 288, 352,
    120, 216, 320, 384,
    132, 240, 360, 432,
    144, 280, 408, 480,
    168, 308, 448, 532,
    180, 338, 504, 588,
    196, 364, 546, 650,
    224, 416, 600, 700,
    224, 442, 644, 750,
    252, 476, 690, 816,
    270, 504, 750, 900,
    300, 560, 810, 960,
    312, 588, 870, 1050,
    336, 644, 952, 1110,
    360, 700, 1020, 1200,
    390, 728, 1050, 1260,
    420, 784, 1140, 1350,
    450, 812, 1200, 1440,
    480, 868, 1290, 1530,
    510, 924, 1350, 1620,
    540, 980, 1440, 1710,
    570, 1036, 1530, 1800,
    570, 1064, 1590, 1890,
    600, 1120, 1680, 1980,
    630, 1204, 1770, 2100,
    660, 1260, 1860, 2220,
    720, 1316, 1950, 2310,
    750, 1372, 2040, 2430
  ]
  
  /**
   * Returns the number of error correction block that the QR Code should contain
   * for the specified version and error correction level.
   *
   * @param  {Number} version              QR Code version
   * @param  {Number} errorCorrectionLevel Error correction level
   * @return {Number}                      Number of error correction blocks
   */
  exports.getBlocksCount = function getBlocksCount (version, errorCorrectionLevel) {
    switch (errorCorrectionLevel) {
      case ECLevel.L:
        return EC_BLOCKS_TABLE[(version - 1) * 4 + 0]
      case ECLevel.M:
        return EC_BLOCKS_TABLE[(version - 1) * 4 + 1]
      case ECLevel.Q:
        return EC_BLOCKS_TABLE[(version - 1) * 4 + 2]
      case ECLevel.H:
        return EC_BLOCKS_TABLE[(version - 1) * 4 + 3]
      default:
        return undefined
    }
  }
  
  /**
   * Returns the number of error correction codewords to use for the specified
   * version and error correction level.
   *
   * @param  {Number} version              QR Code version
   * @param  {Number} errorCorrectionLevel Error correction level
   * @return {Number}                      Number of error correction codewords
   */
  exports.getTotalCodewordsCount = function getTotalCodewordsCount (version, errorCorrectionLevel) {
    switch (errorCorrectionLevel) {
      case ECLevel.L:
        return EC_CODEWORDS_TABLE[(version - 1) * 4 + 0]
      case ECLevel.M:
        return EC_CODEWORDS_TABLE[(version - 1) * 4 + 1]
      case ECLevel.Q:
        return EC_CODEWORDS_TABLE[(version - 1) * 4 + 2]
      case ECLevel.H:
        return EC_CODEWORDS_TABLE[(version - 1) * 4 + 3]
      default:
        return undefined
    }
  }
  
  
  /***/ }),
  /* 42 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Utils = __webpack_require__(5)
  var ECCode = __webpack_require__(41)
  var ECLevel = __webpack_require__(38)
  var Mode = __webpack_require__(6)
  var isArray = __webpack_require__(37)
  
  // Generator polynomial used to encode version information
  var G18 = (1 << 12) | (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) | (1 << 5) | (1 << 2) | (1 << 0)
  var G18_BCH = Utils.getBCHDigit(G18)
  
  function getBestVersionForDataLength (mode, length, errorCorrectionLevel) {
    for (var currentVersion = 1; currentVersion <= 40; currentVersion++) {
      if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, mode)) {
        return currentVersion
      }
    }
  
    return undefined
  }
  
  function getReservedBitsCount (mode, version) {
    // Character count indicator + mode indicator bits
    return Mode.getCharCountIndicator(mode, version) + 4
  }
  
  function getTotalBitsFromDataArray (segments, version) {
    var totalBits = 0
  
    segments.forEach(function (data) {
      var reservedBits = getReservedBitsCount(data.mode, version)
      totalBits += reservedBits + data.getBitsLength()
    })
  
    return totalBits
  }
  
  function getBestVersionForMixedData (segments, errorCorrectionLevel) {
    for (var currentVersion = 1; currentVersion <= 40; currentVersion++) {
      var length = getTotalBitsFromDataArray(segments, currentVersion)
      if (length <= exports.getCapacity(currentVersion, errorCorrectionLevel, Mode.MIXED)) {
        return currentVersion
      }
    }
  
    return undefined
  }
  
  /**
   * Check if QR Code version is valid
   *
   * @param  {Number}  version QR Code version
   * @return {Boolean}         true if valid version, false otherwise
   */
  exports.isValid = function isValid (version) {
    return !isNaN(version) && version >= 1 && version <= 40
  }
  
  /**
   * Returns version number from a value.
   * If value is not a valid version, returns defaultValue
   *
   * @param  {Number|String} value        QR Code version
   * @param  {Number}        defaultValue Fallback value
   * @return {Number}                     QR Code version number
   */
  exports.from = function from (value, defaultValue) {
    if (exports.isValid(value)) {
      return parseInt(value, 10)
    }
  
    return defaultValue
  }
  
  /**
   * Returns how much data can be stored with the specified QR code version
   * and error correction level
   *
   * @param  {Number} version              QR Code version (1-40)
   * @param  {Number} errorCorrectionLevel Error correction level
   * @param  {Mode}   mode                 Data mode
   * @return {Number}                      Quantity of storable data
   */
  exports.getCapacity = function getCapacity (version, errorCorrectionLevel, mode) {
    if (!exports.isValid(version)) {
      throw new Error('Invalid QR Code version')
    }
  
    // Use Byte mode as default
    if (typeof mode === 'undefined') mode = Mode.BYTE
  
    // Total codewords for this QR code version (Data + Error correction)
    var totalCodewords = Utils.getSymbolTotalCodewords(version)
  
    // Total number of error correction codewords
    var ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)
  
    // Total number of data codewords
    var dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8
  
    if (mode === Mode.MIXED) return dataTotalCodewordsBits
  
    var usableBits = dataTotalCodewordsBits - getReservedBitsCount(mode, version)
  
    // Return max number of storable codewords
    switch (mode) {
      case Mode.NUMERIC:
        return Math.floor((usableBits / 10) * 3)
  
      case Mode.ALPHANUMERIC:
        return Math.floor((usableBits / 11) * 2)
  
      case Mode.KANJI:
        return Math.floor(usableBits / 13)
  
      case Mode.BYTE:
      default:
        return Math.floor(usableBits / 8)
    }
  }
  
  /**
   * Returns the minimum version needed to contain the amount of data
   *
   * @param  {Segment} data                    Segment of data
   * @param  {Number} [errorCorrectionLevel=H] Error correction level
   * @param  {Mode} mode                       Data mode
   * @return {Number}                          QR Code version
   */
  exports.getBestVersionForData = function getBestVersionForData (data, errorCorrectionLevel) {
    var seg
  
    var ecl = ECLevel.from(errorCorrectionLevel, ECLevel.M)
  
    if (isArray(data)) {
      if (data.length > 1) {
        return getBestVersionForMixedData(data, ecl)
      }
  
      if (data.length === 0) {
        return 1
      }
  
      seg = data[0]
    } else {
      seg = data
    }
  
    return getBestVersionForDataLength(seg.mode, seg.getLength(), ecl)
  }
  
  /**
   * Returns version information with relative error correction bits
   *
   * The version information is included in QR Code symbols of version 7 or larger.
   * It consists of an 18-bit sequence containing 6 data bits,
   * with 12 error correction bits calculated using the (18, 6) Golay code.
   *
   * @param  {Number} version QR Code version
   * @return {Number}         Encoded version info bits
   */
  exports.getEncodedBits = function getEncodedBits (version) {
    if (!exports.isValid(version) || version < 7) {
      throw new Error('Invalid QR Code version')
    }
  
    var d = version << 12
  
    while (Utils.getBCHDigit(d) - G18_BCH >= 0) {
      d ^= (G18 << (Utils.getBCHDigit(d) - G18_BCH))
    }
  
    return (version << 12) | d
  }
  
  
  /***/ }),
  /* 43 */
  /***/ (function(module, exports) {
  
  var numeric = '[0-9]+'
  var alphanumeric = '[A-Z $%*+\\-./:]+'
  var kanji = '(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|' +
    '[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|' +
    '[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|' +
    '[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+'
  kanji = kanji.replace(/u/g, '\\u')
  
  var byte = '(?:(?![A-Z0-9 $%*+\\-./:]|' + kanji + ').)+'
  
  exports.KANJI = new RegExp(kanji, 'g')
  exports.BYTE_KANJI = new RegExp('[^A-Z0-9 $%*+\\-./:]+', 'g')
  exports.BYTE = new RegExp(byte, 'g')
  exports.NUMERIC = new RegExp(numeric, 'g')
  exports.ALPHANUMERIC = new RegExp(alphanumeric, 'g')
  
  var TEST_KANJI = new RegExp('^' + kanji + '$')
  var TEST_NUMERIC = new RegExp('^' + numeric + '$')
  var TEST_ALPHANUMERIC = new RegExp('^[A-Z0-9 $%*+\\-./:]+$')
  
  exports.testKanji = function testKanji (str) {
    return TEST_KANJI.test(str)
  }
  
  exports.testNumeric = function testNumeric (str) {
    return TEST_NUMERIC.test(str)
  }
  
  exports.testAlphanumeric = function testAlphanumeric (str) {
    return TEST_ALPHANUMERIC.test(str)
  }
  
  
  /***/ }),
  /* 44 */
  /***/ (function(module, exports) {
  
  function hex2rgba (hex) {
    if (typeof hex !== 'string') {
      throw new Error('Color should be defined as hex string')
    }
  
    var hexCode = hex.slice().replace('#', '').split('')
    if (hexCode.length < 3 || hexCode.length === 5 || hexCode.length > 8) {
      throw new Error('Invalid hex color: ' + hex)
    }
  
    // Convert from short to long form (fff -> ffffff)
    if (hexCode.length === 3 || hexCode.length === 4) {
      hexCode = Array.prototype.concat.apply([], hexCode.map(function (c) {
        return [c, c]
      }))
    }
  
    // Add default alpha value
    if (hexCode.length === 6) hexCode.push('F', 'F')
  
    var hexValue = parseInt(hexCode.join(''), 16)
  
    return {
      r: (hexValue >> 24) & 255,
      g: (hexValue >> 16) & 255,
      b: (hexValue >> 8) & 255,
      a: hexValue & 255,
      hex: '#' + hexCode.slice(0, 6).join('')
    }
  }
  
  exports.getOptions = function getOptions (options) {
    if (!options) options = {}
    if (!options.color) options.color = {}
  
    var margin = typeof options.margin === 'undefined' ||
      options.margin === null ||
      options.margin < 0 ? 4 : options.margin
  
    var width = options.width && options.width >= 21 ? options.width : undefined
    var scale = options.scale || 4
  
    return {
      width: width,
      scale: width ? 4 : scale,
      margin: margin,
      color: {
        dark: hex2rgba(options.color.dark || '#000000ff'),
        light: hex2rgba(options.color.light || '#ffffffff')
      },
      type: options.type,
      rendererOpts: options.rendererOpts || {}
    }
  }
  
  exports.getScale = function getScale (qrSize, opts) {
    return opts.width && opts.width >= qrSize + opts.margin * 2
      ? opts.width / (qrSize + opts.margin * 2)
      : opts.scale
  }
  
  exports.getImageWidth = function getImageWidth (qrSize, opts) {
    var scale = exports.getScale(qrSize, opts)
    return Math.floor((qrSize + opts.margin * 2) * scale)
  }
  
  exports.qrToImageData = function qrToImageData (imgData, qr, opts) {
    var size = qr.modules.size
    var data = qr.modules.data
    var scale = exports.getScale(size, opts)
    var symbolSize = Math.floor((size + opts.margin * 2) * scale)
    var scaledMargin = opts.margin * scale
    var palette = [opts.color.light, opts.color.dark]
  
    for (var i = 0; i < symbolSize; i++) {
      for (var j = 0; j < symbolSize; j++) {
        var posDst = (i * symbolSize + j) * 4
        var pxColor = opts.color.light
  
        if (i >= scaledMargin && j >= scaledMargin &&
          i < symbolSize - scaledMargin && j < symbolSize - scaledMargin) {
          var iSrc = Math.floor((i - scaledMargin) / scale)
          var jSrc = Math.floor((j - scaledMargin) / scale)
          pxColor = palette[data[iSrc * size + jSrc] ? 1 : 0]
        }
  
        imgData[posDst++] = pxColor.r
        imgData[posDst++] = pxColor.g
        imgData[posDst++] = pxColor.b
        imgData[posDst] = pxColor.a
      }
    }
  }
  
  
  /***/ }),
  /* 45 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__settings_routes__ = __webpack_require__(46);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_methods__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components__ = __webpack_require__(2);
  
  
  
  
  const router = new VueRouter({
      relative: true,
      routes: __WEBPACK_IMPORTED_MODULE_0__settings_routes__["a" /* default */]
  });
  
  
  // The main application body
  const app = new Vue({
      components: __WEBPACK_IMPORTED_MODULE_2__components__["a" /* default */] ,
      router,
      el: '#app',
      mounted(){
  
        Object(__WEBPACK_IMPORTED_MODULE_1__common_methods__["b" /* checkLogin */])()
              .then(data => {
                  if(data && data.username){
                      this.isLoggedIn = true;
                      this.username = data.username;
                      this.isAdmin = data.admin;
                  }
                  else {
                      this.$router.push('/');
                  }
              });
      },
      data(){
        return {
  
            isLoggedIn: false,
            username: '',
            isAdmin: false,
            navHidden: false
        }
      },
      methods: {
          logout: function(){
              this.isLoggedIn = false;
              this.username = '';
              this.isAdmin = false;
              this.$router.push('/');
          },
          checkLogin: function () {
              Object(__WEBPACK_IMPORTED_MODULE_1__common_methods__["b" /* checkLogin */])()
                  .then(data => {
                      if(data && data.username){
                          this.isLoggedIn = true;
                          this.username = data.username;
                          this.isAdmin = data.admin;
                      }
                      else {
                          this.$router.push('/');
                      }
                  });
          },
          toggleNav: function(){
              this.navHidden = !this.navHidden;
          }
      }
  });
  
  
  /***/ }),
  /* 46 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__pages_home__ = __webpack_require__(47);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__pages_login__ = __webpack_require__(36);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__pages_register__ = __webpack_require__(48);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__pages_dashboard__ = __webpack_require__(49);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_parcel__ = __webpack_require__(50);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pages_new_parcel__ = __webpack_require__(72);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__pages_parcel_created__ = __webpack_require__(74);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__pages_parcel_tracking__ = __webpack_require__(75);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_navigation__ = __webpack_require__(39);
  
  
  
  
  
  
  
  
  
  
  
  const routes = [
      //Index route
      {
          path: '/',
          component: __WEBPACK_IMPORTED_MODULE_0__pages_home__["a" /* default */]
      },
  
      //Auth routes
      {
          path: '/login',
          component: __WEBPACK_IMPORTED_MODULE_1__pages_login__["a" /* default */]
      },
      {
          path: '/register',
          component: __WEBPACK_IMPORTED_MODULE_2__pages_register__["a" /* default */]
      },
  
      // User routes
      {
          path: '/dashboard',
          component: __WEBPACK_IMPORTED_MODULE_3__pages_dashboard__["a" /* default */]
      },
      {
          path: '/new-parcel',
          component: __WEBPACK_IMPORTED_MODULE_5__pages_new_parcel__["a" /* default */]
      },
      {
          path: '/parcel/:trackingNr',
          component: __WEBPACK_IMPORTED_MODULE_4__pages_parcel__["a" /* default */]
      },
      {
          path: '/parcel/:trackingNr/created',
          component: __WEBPACK_IMPORTED_MODULE_6__pages_parcel_created__["a" /* default */]
      },
      {
          path: '/tracking/:trackingNr',
          component: __WEBPACK_IMPORTED_MODULE_7__pages_parcel_tracking__["a" /* default */]
      },
      {
          path: '/mobile/nav/:app',
          component: __WEBPACK_IMPORTED_MODULE_8__pages_navigation__["a" /* default */]
      }
  ];
  
  /* harmony default export */ __webpack_exports__["a"] = (routes);
  
  /***/ }),
  /* 47 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_methods__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components__ = __webpack_require__(2);
  
  
  
  const Home = {
      components: __WEBPACK_IMPORTED_MODULE_1__components__["a" /* default */],
      template: `
                  <div class="page page__home">
                                     
                      <h1 class="page__home__head col-12">Willkommen beim Parcel-Tracker!</h1>
                      
                      <div class="tracking col-12">
                      
                          <div class="tracking__description col-12">Bitte geben Sie Ihre Sendungsnummer ein:</div>
                      
                          <div class="tracking__message col-12">{{message}}</div>
                          <form class="tracking__form">
                          
                               <input class="tracking__form__input" type="text" v-model="trackingNr">
                               <button class="tracking__form__button" @click="searchTrackingNumber">Suchen</button>
                                              
                          </form>
                      </div>
                      
                  </div>
                `,
      mounted(){
        this.checkLogin()
            .then(data => {
                if(data && data.username){
                    this.isLoggedIn = true;
                    this.username = data.username;
                    this.$emit('logged-in');
                }
            });
      },
      data(){
          return {
  
              // Currently logged in?
              isLoggedIn: false,
              username: '',
  
              trackingNr: '',
              message: ''
  
          }
      },
      methods: {
          checkLogin: __WEBPACK_IMPORTED_MODULE_0__common_methods__["b" /* checkLogin */],
          reload: __WEBPACK_IMPORTED_MODULE_0__common_methods__["j" /* reload */],
          searchTrackingNumber: function () {
              Object(__WEBPACK_IMPORTED_MODULE_0__common_methods__["f" /* getParcelTracking */])(this.trackingNr).then(response => {
                  if(response.status === 200){
                      this.$router.push('/tracking/' + this.trackingNr);
                  }
                  else {
                          this.message = 'Eine Sendung mit dieser Nummer ist nicht in unserem System verzeichnet. ' +
                              'Bitte überprüfen Sie Ihre Eingabe oder wenden Sie sich an den Kundendienst!';
                  }
              }).catch(err => {
                      this.message = 'Eine Sendung mit dieser Nummer ist nicht in unserem System verzeichnet. ' +
                          'Bitte überprüfen Sie Ihre Eingabe oder wenden Sie sich an den Kundendienst!';
              });
  
          }
      },
      computed: {
      }
  }
  
  /* harmony default export */ __webpack_exports__["a"] = (Home);
  
  /***/ }),
  /* 48 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios__ = __webpack_require__(3);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_axios__);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_methods__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components__ = __webpack_require__(2);
  
  
  
  
  
  const Register = {
      components: __WEBPACK_IMPORTED_MODULE_2__components__["a" /* default */],
      template: `
                  <div class="page page__register">
                                
                      <main>
                      
                          <h1>Registrierung</h1>
                          
                          <form class="register">
                              
                              <div class="register__message" :style="messageStyle">{{message}}</div>
                          
                              <input class="register__input" placeholder="E-Mail" v-model="email" type="email">
                              <input class="register__input" placeholder="Passwort" v-model="password" type="password">
                              <input class="register__input" placeholder="Passwort (Wiederholung)" v-model="passwordRepeat" type="password">
                              <input class="register__input" placeholder="Vorname" v-model="firstname" type="text">
                              <input class="register__input" placeholder="Nachname" v-model="lastname" type="text">
                              <input class="register__input" placeholder="Stadt" v-model="city" type="text">
                              <input class="register__input" placeholder="PLZ" v-model="postcode" type="number">
                              <input class="register__input" placeholder="Adresse" v-model="address" type="text">
                              
                              <button class="register__submit button-primary" @click.prevent="submit">Abschicken</button>
      
                          </form>
                      
                      </main>
                      
                      
                  </div>
                `,
                  mounted(){
                  },
                data() {
                  return {
                      //Message related models
                      message: 'Bitte geben Sie die folgenden Informationen zu Ihrer Person ein:',
                      messageType: 100,
  
                      //Registration related models:
                      email: '',
                      password: '',
                      passwordRepeat: '',
                      firstname: '',
                      lastname: '',
                      city: '',
                      postcode: '',
                      address: '',
  
                  }
                },
              methods: {
                  submit: function () {
                      if(this.validateInput()){
                          __WEBPACK_IMPORTED_MODULE_0_axios___default.a.post('/register', {
                              email: this.email,
                              password: this.password,
                              firstname: this.firstname,
                              lastname: this.lastname,
                              city: this.city,
                              address: this.address,
                              postcode: this.postcode
                          })
                              .then((res) => {
                                  if(res.status === 200){
                                      this.messageType = 200;
                                      this.message = 'Sie wurden erfolgreich angemeldet. Viel Spaß mit dem Parcel-Tracker!'
                                      this.$router.push('/login');
                                  }
                              })
                              .catch(err => {
                                  console.error(err);
                                  this.message = 'Bitte überprüfen Sie Ihre Eingaben und wiederholen Sie die Registrierung!';
                                  this.messageType = 400;
                              })
                      }
                  },
                  validateInput: function () {
  
                      //TODO: Validate the input before the information is sent to the server!
                      if(this.password == this.passwordRepeat){
                          return true;
                      }
                      else {
                          return false;
                      }
                  },
                  checkLogin: __WEBPACK_IMPORTED_MODULE_1__common_methods__["b" /* checkLogin */]
              },
              computed: {
                  messageStyle: function () {
                      if(this.messageType === 100){
                          return {};
                      }
                      if(this.messageType === 200){
                          return {
                              color: '#0a0'
                          };
                      }
                      if(this.messageType === 400){
                          return {
                              color: '#f00'
                          };
                      }
                  }
              }
  }
  
  /* harmony default export */ __webpack_exports__["a"] = (Register);
  
  /***/ }),
  /* 49 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_methods__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components__ = __webpack_require__(2);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_axios__ = __webpack_require__(3);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_axios__);
  
  
  
  
  const Home = {
      components: __WEBPACK_IMPORTED_MODULE_1__components__["a" /* default */],
      template: `
                  <div class="page page__dashboard">
                                     
                      <main>
                      
                       <h1>Übersicht</h1>
                       
                       <div class="parcels">
                          <h2>Neue Sendung</h2> 
                          
                          <div class="parcel__new">
                              <router-link class="parcels__new__link" to="/new-parcel">Neue Sendung beantragen</router-link>
                          </div>
                          
                       </div>
                       
                       <div class="parcels">
                          <h2>Offene Sendungen</h2>
                          <ul class="parcels__list container">
                              <li class="parcels__list__item" v-for="parcel in openParcels">
                                  <router-link class="parcel__link" :to="'/parcel/' + parcel.trackingNr">{{parcel.trackingNr}}</router-link>
                              </li>
                          </ul>
                           
                      </div>
                      
                      <div class="parcels">
                          <h2>Abgeschlossene Sendungen</h2>
                          <ul class="parcels__list container">
                              <li class="parcels__list__item" v-for="parcel in arrivedParcels">
                                  <router-link class="parcel__link" :to="'/parcel/' + parcel.trackingNr">{{parcel.trackingNr}}</router-link>
                              </li>
                          </ul>
                           
                      </div>
                      
                      
                      </main>
                      
                  </div>
                `,
      mounted(){
          // Check if user is logged in.
          this.checkLogin()
              .then(data => {
                  if(data && data.username){
                      this.isLoggedIn = true;
                      this.username = data.username;
                      this.$emit('logged-in');
                  }
                  else {
                      this.$router.push('/login');
                  }
              });
  
          this.loadAllParcels()
              .then((response) => {
                  if(response.status === 200 && response.data && response.data.parcels){
                      this.parcels = response.data.parcels;
                  }
              });
      },
      data(){
          return {
              // Error and Information messages about the login form
              message: 'Bitte geben Sie ihr Anmeldedaten hier ein:',
              messageType: 100,
  
              // Currently logged in?
              isLoggedIn: false,
              username: '',
  
              // Parcels
              parcels: []
  
          }
      },
      methods: {
          checkLogin: __WEBPACK_IMPORTED_MODULE_0__common_methods__["b" /* checkLogin */],
          loadAllParcels: __WEBPACK_IMPORTED_MODULE_0__common_methods__["g" /* loadAllParcels */]
  
      },
      computed: {
          messageStyle: function(){
              if(this.messageType === 400){
                  return {
                      color: '#ff0000'
                  };
              }
              if(this.messageType === 200){
                  return {
                      color: '#0a0'
                  };
              }
              if(this.messageType === 100){
                  return {};
              }
          },
          openParcels: function () {
              return this.parcels.filter((parcel) => !parcel.arrived);
          },
          arrivedParcels: function () {
              return this.parcels.filter((parcel) => parcel.arrived);
          }
  
      }
  }
  
  /* harmony default export */ __webpack_exports__["a"] = (Home);
  
  /***/ }),
  /* 50 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_methods__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components__ = __webpack_require__(2);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_qrcode__ = __webpack_require__(40);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_qrcode___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_qrcode__);
  
  
  
  
  const Parcel = {
      components: __WEBPACK_IMPORTED_MODULE_1__components__["a" /* default */],
      template: `
                  <div class="page page__parcel">
                      
                      <main>
                      
                          <h1>Paket - {{$route.params.trackingNr}}</h1>
                          
                          <div class="qrcode">
                              <h4 class="qrcode__head">Mit folgendem QR-Code können Sie den Status jederzeit problemlos verfolgen:</h4>
                          
                              <canvas id="qrcode" height="200" width="200">
                              
                              </canvas>
                          </div>
                          
                          <div class="details">
                              
                              <h4 class="details__head">Details</h4>
                              
                              <div class="details__addresses">
                              
                                  <parcel-details :parcel="details" :type="'receiver'"></parcel-details>
                                  <parcel-details :parcel="details" :type="'sender'"></parcel-details>
                           
                              
                              </div>
                               
                              <history :parcel="details"></history>
                          
                          </div>
                      
                      </main>
                     
                      
                      
                      
                  </div>
                `,
      mounted(){
          this.checkLogin()
              .then(data => {
                  if(data && data.username){
                      this.isLoggedIn = true;
                      this.username = data.username;
                      this.$emit('logged-in');
                  }
                  else {
                      this.$router.push('/login');
                  }
              });
  
          this.getParcelDetails(this.$route.params.trackingNr)
              .then((response) => {
                  if(response.status === 200 && response.data && response.data.parcel){
                      this.details = response.data.parcel;
                  }
              });
  
          this.generateQRCode(this.$route.params.trackingNr, 'qrcode')
              .catch(err => {
                  console.error(err);
              });
      },
      data(){
          return {
  
              // Parcel details
              details: {},
              username: '',
              isLoggedIn: false
  
          }
      },
      methods: {
          checkLogin: __WEBPACK_IMPORTED_MODULE_0__common_methods__["b" /* checkLogin */],
          getParcelDetails: __WEBPACK_IMPORTED_MODULE_0__common_methods__["d" /* getParcelDetails */],
          generateQRCode: function (trackingNr, canvasId) {
              let baseUrl = window.location.protocol + '//' + window.location.host + '/#/tracking/' + trackingNr;
              return __WEBPACK_IMPORTED_MODULE_2_qrcode___default.a.toCanvas(document.getElementById(canvasId), baseUrl);
          }
      },
      computed: {
      }
  }
  
  /* harmony default export */ __webpack_exports__["a"] = (Parcel);
  
  /***/ }),
  /* 51 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var G = __webpack_require__(52)
  
  module.exports = function() {
    return (
      typeof G.Promise === 'function' &&
      typeof G.Promise.prototype.then === 'function'
    )
  }
  
  
  /***/ }),
  /* 52 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  /* WEBPACK VAR INJECTION */(function(global) {
  module.exports = (typeof self === 'object' && self.self === self && self) ||
    (typeof global === 'object' && global.global === global && global) ||
    this
  
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(53)))
  
  /***/ }),
  /* 53 */
  /***/ (function(module, exports) {
  
  var g;
  
  // This works in non-strict mode
  g = (function() {
  	return this;
  })();
  
  try {
  	// This works if eval is allowed (see CSP)
  	g = g || Function("return this")() || (1,eval)("this");
  } catch(e) {
  	// This works if the window reference is available
  	if(typeof window === "object")
  		g = window;
  }
  
  // g can still be undefined, but nothing to do about it...
  // We return undefined, instead of nothing here, so it's
  // easier to handle this case. if(!global) { ...}
  
  module.exports = g;
  
  
  /***/ }),
  /* 54 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Buffer = __webpack_require__(7)
  var Utils = __webpack_require__(5)
  var ECLevel = __webpack_require__(38)
  var BitBuffer = __webpack_require__(55)
  var BitMatrix = __webpack_require__(56)
  var AlignmentPattern = __webpack_require__(57)
  var FinderPattern = __webpack_require__(58)
  var MaskPattern = __webpack_require__(59)
  var ECCode = __webpack_require__(41)
  var ReedSolomonEncoder = __webpack_require__(60)
  var Version = __webpack_require__(42)
  var FormatInfo = __webpack_require__(63)
  var Mode = __webpack_require__(6)
  var Segments = __webpack_require__(64)
  var isArray = __webpack_require__(37)
  
  /**
   * QRCode for JavaScript
   *
   * modified by Ryan Day for nodejs support
   * Copyright (c) 2011 Ryan Day
   *
   * Licensed under the MIT license:
   *   http://www.opensource.org/licenses/mit-license.php
   *
  //---------------------------------------------------------------------
  // QRCode for JavaScript
  //
  // Copyright (c) 2009 Kazuhiko Arase
  //
  // URL: http://www.d-project.com/
  //
  // Licensed under the MIT license:
  //   http://www.opensource.org/licenses/mit-license.php
  //
  // The word "QR Code" is registered trademark of
  // DENSO WAVE INCORPORATED
  //   http://www.denso-wave.com/qrcode/faqpatent-e.html
  //
  //---------------------------------------------------------------------
  */
  
  /**
   * Add finder patterns bits to matrix
   *
   * @param  {BitMatrix} matrix  Modules matrix
   * @param  {Number}    version QR Code version
   */
  function setupFinderPattern (matrix, version) {
    var size = matrix.size
    var pos = FinderPattern.getPositions(version)
  
    for (var i = 0; i < pos.length; i++) {
      var row = pos[i][0]
      var col = pos[i][1]
  
      for (var r = -1; r <= 7; r++) {
        if (row + r <= -1 || size <= row + r) continue
  
        for (var c = -1; c <= 7; c++) {
          if (col + c <= -1 || size <= col + c) continue
  
          if ((r >= 0 && r <= 6 && (c === 0 || c === 6)) ||
            (c >= 0 && c <= 6 && (r === 0 || r === 6)) ||
            (r >= 2 && r <= 4 && c >= 2 && c <= 4)) {
            matrix.set(row + r, col + c, true, true)
          } else {
            matrix.set(row + r, col + c, false, true)
          }
        }
      }
    }
  }
  
  /**
   * Add timing pattern bits to matrix
   *
   * Note: this function must be called before {@link setupAlignmentPattern}
   *
   * @param  {BitMatrix} matrix Modules matrix
   */
  function setupTimingPattern (matrix) {
    var size = matrix.size
  
    for (var r = 8; r < size - 8; r++) {
      var value = r % 2 === 0
      matrix.set(r, 6, value, true)
      matrix.set(6, r, value, true)
    }
  }
  
  /**
   * Add alignment patterns bits to matrix
   *
   * Note: this function must be called after {@link setupTimingPattern}
   *
   * @param  {BitMatrix} matrix  Modules matrix
   * @param  {Number}    version QR Code version
   */
  function setupAlignmentPattern (matrix, version) {
    var pos = AlignmentPattern.getPositions(version)
  
    for (var i = 0; i < pos.length; i++) {
      var row = pos[i][0]
      var col = pos[i][1]
  
      for (var r = -2; r <= 2; r++) {
        for (var c = -2; c <= 2; c++) {
          if (r === -2 || r === 2 || c === -2 || c === 2 ||
            (r === 0 && c === 0)) {
            matrix.set(row + r, col + c, true, true)
          } else {
            matrix.set(row + r, col + c, false, true)
          }
        }
      }
    }
  }
  
  /**
   * Add version info bits to matrix
   *
   * @param  {BitMatrix} matrix  Modules matrix
   * @param  {Number}    version QR Code version
   */
  function setupVersionInfo (matrix, version) {
    var size = matrix.size
    var bits = Version.getEncodedBits(version)
    var row, col, mod
  
    for (var i = 0; i < 18; i++) {
      row = Math.floor(i / 3)
      col = i % 3 + size - 8 - 3
      mod = ((bits >> i) & 1) === 1
  
      matrix.set(row, col, mod, true)
      matrix.set(col, row, mod, true)
    }
  }
  
  /**
   * Add format info bits to matrix
   *
   * @param  {BitMatrix} matrix               Modules matrix
   * @param  {ErrorCorrectionLevel}    errorCorrectionLevel Error correction level
   * @param  {Number}    maskPattern          Mask pattern reference value
   */
  function setupFormatInfo (matrix, errorCorrectionLevel, maskPattern) {
    var size = matrix.size
    var bits = FormatInfo.getEncodedBits(errorCorrectionLevel, maskPattern)
    var i, mod
  
    for (i = 0; i < 15; i++) {
      mod = ((bits >> i) & 1) === 1
  
      // vertical
      if (i < 6) {
        matrix.set(i, 8, mod, true)
      } else if (i < 8) {
        matrix.set(i + 1, 8, mod, true)
      } else {
        matrix.set(size - 15 + i, 8, mod, true)
      }
  
      // horizontal
      if (i < 8) {
        matrix.set(8, size - i - 1, mod, true)
      } else if (i < 9) {
        matrix.set(8, 15 - i - 1 + 1, mod, true)
      } else {
        matrix.set(8, 15 - i - 1, mod, true)
      }
    }
  
    // fixed module
    matrix.set(size - 8, 8, 1, true)
  }
  
  /**
   * Add encoded data bits to matrix
   *
   * @param  {BitMatrix} matrix Modules matrix
   * @param  {Buffer}    data   Data codewords
   */
  function setupData (matrix, data) {
    var size = matrix.size
    var inc = -1
    var row = size - 1
    var bitIndex = 7
    var byteIndex = 0
  
    for (var col = size - 1; col > 0; col -= 2) {
      if (col === 6) col--
  
      while (true) {
        for (var c = 0; c < 2; c++) {
          if (!matrix.isReserved(row, col - c)) {
            var dark = false
  
            if (byteIndex < data.length) {
              dark = (((data[byteIndex] >>> bitIndex) & 1) === 1)
            }
  
            matrix.set(row, col - c, dark)
            bitIndex--
  
            if (bitIndex === -1) {
              byteIndex++
              bitIndex = 7
            }
          }
        }
  
        row += inc
  
        if (row < 0 || size <= row) {
          row -= inc
          inc = -inc
          break
        }
      }
    }
  }
  
  /**
   * Create encoded codewords from data input
   *
   * @param  {Number}   version              QR Code version
   * @param  {ErrorCorrectionLevel}   errorCorrectionLevel Error correction level
   * @param  {ByteData} data                 Data input
   * @return {Buffer}                        Buffer containing encoded codewords
   */
  function createData (version, errorCorrectionLevel, segments) {
    // Prepare data buffer
    var buffer = new BitBuffer()
  
    segments.forEach(function (data) {
      // prefix data with mode indicator (4 bits)
      buffer.put(data.mode.bit, 4)
  
      // Prefix data with character count indicator.
      // The character count indicator is a string of bits that represents the
      // number of characters that are being encoded.
      // The character count indicator must be placed after the mode indicator
      // and must be a certain number of bits long, depending on the QR version
      // and data mode
      // @see {@link Mode.getCharCountIndicator}.
      buffer.put(data.getLength(), Mode.getCharCountIndicator(data.mode, version))
  
      // add binary data sequence to buffer
      data.write(buffer)
    })
  
    // Calculate required number of bits
    var totalCodewords = Utils.getSymbolTotalCodewords(version)
    var ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)
    var dataTotalCodewordsBits = (totalCodewords - ecTotalCodewords) * 8
  
    // Add a terminator.
    // If the bit string is shorter than the total number of required bits,
    // a terminator of up to four 0s must be added to the right side of the string.
    // If the bit string is more than four bits shorter than the required number of bits,
    // add four 0s to the end.
    if (buffer.getLengthInBits() + 4 <= dataTotalCodewordsBits) {
      buffer.put(0, 4)
    }
  
    // If the bit string is fewer than four bits shorter, add only the number of 0s that
    // are needed to reach the required number of bits.
  
    // After adding the terminator, if the number of bits in the string is not a multiple of 8,
    // pad the string on the right with 0s to make the string's length a multiple of 8.
    while (buffer.getLengthInBits() % 8 !== 0) {
      buffer.putBit(0)
    }
  
    // Add pad bytes if the string is still shorter than the total number of required bits.
    // Extend the buffer to fill the data capacity of the symbol corresponding to
    // the Version and Error Correction Level by adding the Pad Codewords 11101100 (0xEC)
    // and 00010001 (0x11) alternately.
    var remainingByte = (dataTotalCodewordsBits - buffer.getLengthInBits()) / 8
    for (var i = 0; i < remainingByte; i++) {
      buffer.put(i % 2 ? 0x11 : 0xEC, 8)
    }
  
    return createCodewords(buffer, version, errorCorrectionLevel)
  }
  
  /**
   * Encode input data with Reed-Solomon and return codewords with
   * relative error correction bits
   *
   * @param  {BitBuffer} bitBuffer            Data to encode
   * @param  {Number}    version              QR Code version
   * @param  {ErrorCorrectionLevel} errorCorrectionLevel Error correction level
   * @return {Buffer}                         Buffer containing encoded codewords
   */
  function createCodewords (bitBuffer, version, errorCorrectionLevel) {
    // Total codewords for this QR code version (Data + Error correction)
    var totalCodewords = Utils.getSymbolTotalCodewords(version)
  
    // Total number of error correction codewords
    var ecTotalCodewords = ECCode.getTotalCodewordsCount(version, errorCorrectionLevel)
  
    // Total number of data codewords
    var dataTotalCodewords = totalCodewords - ecTotalCodewords
  
    // Total number of blocks
    var ecTotalBlocks = ECCode.getBlocksCount(version, errorCorrectionLevel)
  
    // Calculate how many blocks each group should contain
    var blocksInGroup2 = totalCodewords % ecTotalBlocks
    var blocksInGroup1 = ecTotalBlocks - blocksInGroup2
  
    var totalCodewordsInGroup1 = Math.floor(totalCodewords / ecTotalBlocks)
  
    var dataCodewordsInGroup1 = Math.floor(dataTotalCodewords / ecTotalBlocks)
    var dataCodewordsInGroup2 = dataCodewordsInGroup1 + 1
  
    // Number of EC codewords is the same for both groups
    var ecCount = totalCodewordsInGroup1 - dataCodewordsInGroup1
  
    // Initialize a Reed-Solomon encoder with a generator polynomial of degree ecCount
    var rs = new ReedSolomonEncoder(ecCount)
  
    var offset = 0
    var dcData = new Array(ecTotalBlocks)
    var ecData = new Array(ecTotalBlocks)
    var maxDataSize = 0
    var buffer = new Buffer(bitBuffer.buffer)
  
    // Divide the buffer into the required number of blocks
    for (var b = 0; b < ecTotalBlocks; b++) {
      var dataSize = b < blocksInGroup1 ? dataCodewordsInGroup1 : dataCodewordsInGroup2
  
      // extract a block of data from buffer
      dcData[b] = buffer.slice(offset, offset + dataSize)
  
      // Calculate EC codewords for this data block
      ecData[b] = rs.encode(dcData[b])
  
      offset += dataSize
      maxDataSize = Math.max(maxDataSize, dataSize)
    }
  
    // Create final data
    // Interleave the data and error correction codewords from each block
    var data = new Buffer(totalCodewords)
    var index = 0
    var i, r
  
    // Add data codewords
    for (i = 0; i < maxDataSize; i++) {
      for (r = 0; r < ecTotalBlocks; r++) {
        if (i < dcData[r].length) {
          data[index++] = dcData[r][i]
        }
      }
    }
  
    // Apped EC codewords
    for (i = 0; i < ecCount; i++) {
      for (r = 0; r < ecTotalBlocks; r++) {
        data[index++] = ecData[r][i]
      }
    }
  
    return data
  }
  
  /**
   * Build QR Code symbol
   *
   * @param  {String} data                 Input string
   * @param  {Number} version              QR Code version
   * @param  {ErrorCorretionLevel} errorCorrectionLevel Error level
   * @param  {MaskPattern} maskPattern     Mask pattern
   * @return {Object}                      Object containing symbol data
   */
  function createSymbol (data, version, errorCorrectionLevel, maskPattern) {
    var segments
  
    if (isArray(data)) {
      segments = Segments.fromArray(data)
    } else if (typeof data === 'string') {
      var estimatedVersion = version
  
      if (!estimatedVersion) {
        var rawSegments = Segments.rawSplit(data)
  
        // Estimate best version that can contain raw splitted segments
        estimatedVersion = Version.getBestVersionForData(rawSegments,
          errorCorrectionLevel)
      }
  
      // Build optimized segments
      // If estimated version is undefined, try with the highest version
      segments = Segments.fromString(data, estimatedVersion || 40)
    } else {
      throw new Error('Invalid data')
    }
  
    // Get the min version that can contain data
    var bestVersion = Version.getBestVersionForData(segments,
        errorCorrectionLevel)
  
    // If no version is found, data cannot be stored
    if (!bestVersion) {
      throw new Error('The amount of data is too big to be stored in a QR Code')
    }
  
    // If not specified, use min version as default
    if (!version) {
      version = bestVersion
  
    // Check if the specified version can contain the data
    } else if (version < bestVersion) {
      throw new Error('\n' +
        'The chosen QR Code version cannot contain this amount of data.\n' +
        'Minimum version required to store current data is: ' + bestVersion + '.\n'
      )
    }
  
    var dataBits = createData(version, errorCorrectionLevel, segments)
  
    // Allocate matrix buffer
    var moduleCount = Utils.getSymbolSize(version)
    var modules = new BitMatrix(moduleCount)
  
    // Add function modules
    setupFinderPattern(modules, version)
    setupTimingPattern(modules)
    setupAlignmentPattern(modules, version)
  
    // Add temporary dummy bits for format info just to set them as reserved.
    // This is needed to prevent these bits from being masked by {@link MaskPattern.applyMask}
    // since the masking operation must be performed only on the encoding region.
    // These blocks will be replaced with correct values later in code.
    setupFormatInfo(modules, errorCorrectionLevel, 0)
  
    if (version >= 7) {
      setupVersionInfo(modules, version)
    }
  
    // Add data codewords
    setupData(modules, dataBits)
  
    if (!maskPattern) {
      // Find best mask pattern
      maskPattern = MaskPattern.getBestMask(modules,
        setupFormatInfo.bind(null, modules, errorCorrectionLevel))
    }
  
    // Apply mask pattern
    MaskPattern.applyMask(maskPattern, modules)
  
    // Replace format info bits with correct values
    setupFormatInfo(modules, errorCorrectionLevel, maskPattern)
  
    return {
      modules: modules,
      version: version,
      errorCorrectionLevel: errorCorrectionLevel,
      maskPattern: maskPattern,
      segments: segments
    }
  }
  
  /**
   * QR Code
   *
   * @param {String | Array} data                 Input data
   * @param {Object} options                      Optional configurations
   * @param {Number} options.version              QR Code version
   * @param {String} options.errorCorrectionLevel Error correction level
   * @param {Function} options.toSJISFunc         Helper func to convert utf8 to sjis
   */
  exports.create = function create (data, options) {
    if (typeof data === 'undefined' || data === '') {
      throw new Error('No input text')
    }
  
    var errorCorrectionLevel = ECLevel.M
    var version
    var mask
  
    if (typeof options !== 'undefined') {
      // Use higher error correction level as default
      errorCorrectionLevel = ECLevel.from(options.errorCorrectionLevel, ECLevel.M)
      version = Version.from(options.version)
      mask = MaskPattern.from(options.maskPattern)
  
      if (options.toSJISFunc) {
        Utils.setToSJISFunction(options.toSJISFunc)
      }
    }
  
    return createSymbol(data, version, errorCorrectionLevel, mask)
  }
  
  
  /***/ }),
  /* 55 */
  /***/ (function(module, exports) {
  
  function BitBuffer () {
    this.buffer = []
    this.length = 0
  }
  
  BitBuffer.prototype = {
  
    get: function (index) {
      var bufIndex = Math.floor(index / 8)
      return ((this.buffer[bufIndex] >>> (7 - index % 8)) & 1) === 1
    },
  
    put: function (num, length) {
      for (var i = 0; i < length; i++) {
        this.putBit(((num >>> (length - i - 1)) & 1) === 1)
      }
    },
  
    getLengthInBits: function () {
      return this.length
    },
  
    putBit: function (bit) {
      var bufIndex = Math.floor(this.length / 8)
      if (this.buffer.length <= bufIndex) {
        this.buffer.push(0)
      }
  
      if (bit) {
        this.buffer[bufIndex] |= (0x80 >>> (this.length % 8))
      }
  
      this.length++
    }
  }
  
  module.exports = BitBuffer
  
  
  /***/ }),
  /* 56 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Buffer = __webpack_require__(7)
  
  /**
   * Helper class to handle QR Code symbol modules
   *
   * @param {Number} size Symbol size
   */
  function BitMatrix (size) {
    if (!size || size < 1) {
      throw new Error('BitMatrix size must be defined and greater than 0')
    }
  
    this.size = size
    this.data = new Buffer(size * size)
    this.data.fill(0)
    this.reservedBit = new Buffer(size * size)
    this.reservedBit.fill(0)
  }
  
  /**
   * Set bit value at specified location
   * If reserved flag is set, this bit will be ignored during masking process
   *
   * @param {Number}  row
   * @param {Number}  col
   * @param {Boolean} value
   * @param {Boolean} reserved
   */
  BitMatrix.prototype.set = function (row, col, value, reserved) {
    var index = row * this.size + col
    this.data[index] = value
    if (reserved) this.reservedBit[index] = true
  }
  
  /**
   * Returns bit value at specified location
   *
   * @param  {Number}  row
   * @param  {Number}  col
   * @return {Boolean}
   */
  BitMatrix.prototype.get = function (row, col) {
    return this.data[row * this.size + col]
  }
  
  /**
   * Applies xor operator at specified location
   * (used during masking process)
   *
   * @param {Number}  row
   * @param {Number}  col
   * @param {Boolean} value
   */
  BitMatrix.prototype.xor = function (row, col, value) {
    this.data[row * this.size + col] ^= value
  }
  
  /**
   * Check if bit at specified location is reserved
   *
   * @param {Number}   row
   * @param {Number}   col
   * @return {Boolean}
   */
  BitMatrix.prototype.isReserved = function (row, col) {
    return this.reservedBit[row * this.size + col]
  }
  
  module.exports = BitMatrix
  
  
  /***/ }),
  /* 57 */
  /***/ (function(module, exports, __webpack_require__) {
  
  /**
   * Alignment pattern are fixed reference pattern in defined positions
   * in a matrix symbology, which enables the decode software to re-synchronise
   * the coordinate mapping of the image modules in the event of moderate amounts
   * of distortion of the image.
   *
   * Alignment patterns are present only in QR Code symbols of version 2 or larger
   * and their number depends on the symbol version.
   */
  
  var getSymbolSize = __webpack_require__(5).getSymbolSize
  
  /**
   * Calculate the row/column coordinates of the center module of each alignment pattern
   * for the specified QR Code version.
   *
   * The alignment patterns are positioned symmetrically on either side of the diagonal
   * running from the top left corner of the symbol to the bottom right corner.
   *
   * Since positions are simmetrical only half of the coordinates are returned.
   * Each item of the array will represent in turn the x and y coordinate.
   * @see {@link getPositions}
   *
   * @param  {Number} version QR Code version
   * @return {Array}          Array of coordinate
   */
  exports.getRowColCoords = function getRowColCoords (version) {
    if (version === 1) return []
  
    var posCount = Math.floor(version / 7) + 2
    var size = getSymbolSize(version)
    var intervals = size === 145 ? 26 : Math.ceil((size - 13) / (2 * posCount - 2)) * 2
    var positions = [size - 7] // Last coord is always (size - 7)
  
    for (var i = 1; i < posCount - 1; i++) {
      positions[i] = positions[i - 1] - intervals
    }
  
    positions.push(6) // First coord is always 6
  
    return positions.reverse()
  }
  
  /**
   * Returns an array containing the positions of each alignment pattern.
   * Each array's element represent the center point of the pattern as (x, y) coordinates
   *
   * Coordinates are calculated expanding the row/column coordinates returned by {@link getRowColCoords}
   * and filtering out the items that overlaps with finder pattern
   *
   * @example
   * For a Version 7 symbol {@link getRowColCoords} returns values 6, 22 and 38.
   * The alignment patterns, therefore, are to be centered on (row, column)
   * positions (6,22), (22,6), (22,22), (22,38), (38,22), (38,38).
   * Note that the coordinates (6,6), (6,38), (38,6) are occupied by finder patterns
   * and are not therefore used for alignment patterns.
   *
   * var pos = getPositions(7)
   * // [[6,22], [22,6], [22,22], [22,38], [38,22], [38,38]]
   *
   * @param  {Number} version QR Code version
   * @return {Array}          Array of coordinates
   */
  exports.getPositions = function getPositions (version) {
    var coords = []
    var pos = exports.getRowColCoords(version)
    var posLength = pos.length
  
    for (var i = 0; i < posLength; i++) {
      for (var j = 0; j < posLength; j++) {
        // Skip if position is occupied by finder patterns
        if ((i === 0 && j === 0) ||             // top-left
            (i === 0 && j === posLength - 1) || // bottom-left
            (i === posLength - 1 && j === 0)) { // top-right
          continue
        }
  
        coords.push([pos[i], pos[j]])
      }
    }
  
    return coords
  }
  
  
  /***/ }),
  /* 58 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var getSymbolSize = __webpack_require__(5).getSymbolSize
  var FINDER_PATTERN_SIZE = 7
  
  /**
   * Returns an array containing the positions of each finder pattern.
   * Each array's element represent the top-left point of the pattern as (x, y) coordinates
   *
   * @param  {Number} version QR Code version
   * @return {Array}          Array of coordinates
   */
  exports.getPositions = function getPositions (version) {
    var size = getSymbolSize(version)
  
    return [
      // top-left
      [0, 0],
      // top-right
      [size - FINDER_PATTERN_SIZE, 0],
      // bottom-left
      [0, size - FINDER_PATTERN_SIZE]
    ]
  }
  
  
  /***/ }),
  /* 59 */
  /***/ (function(module, exports) {
  
  /**
   * Data mask pattern reference
   * @type {Object}
   */
  exports.Patterns = {
    PATTERN000: 0,
    PATTERN001: 1,
    PATTERN010: 2,
    PATTERN011: 3,
    PATTERN100: 4,
    PATTERN101: 5,
    PATTERN110: 6,
    PATTERN111: 7
  }
  
  /**
   * Weighted penalty scores for the undesirable features
   * @type {Object}
   */
  var PenaltyScores = {
    N1: 3,
    N2: 3,
    N3: 40,
    N4: 10
  }
  
  /**
   * Check if mask pattern value is valid
   *
   * @param  {Number}  mask    Mask pattern
   * @return {Boolean}         true if valid, false otherwise
   */
  exports.isValid = function isValid (mask) {
    return mask && mask !== '' && !isNaN(mask) && mask >= 0 && mask <= 7
  }
  
  /**
   * Returns mask pattern from a value.
   * If value is not valid, returns undefined
   *
   * @param  {Number|String} value        Mask pattern value
   * @return {Number}                     Valid mask pattern or undefined
   */
  exports.from = function from (value) {
    return exports.isValid(value) ? parseInt(value, 10) : undefined
  }
  
  /**
  * Find adjacent modules in row/column with the same color
  * and assign a penalty value.
  *
  * Points: N1 + i
  * i is the amount by which the number of adjacent modules of the same color exceeds 5
  */
  exports.getPenaltyN1 = function getPenaltyN1 (data) {
    var size = data.size
    var points = 0
    var sameCountCol = 0
    var sameCountRow = 0
    var lastCol = null
    var lastRow = null
  
    for (var row = 0; row < size; row++) {
      sameCountCol = sameCountRow = 0
      lastCol = lastRow = null
  
      for (var col = 0; col < size; col++) {
        var module = data.get(row, col)
        if (module === lastCol) {
          sameCountCol++
        } else {
          if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5)
          lastCol = module
          sameCountCol = 1
        }
  
        module = data.get(col, row)
        if (module === lastRow) {
          sameCountRow++
        } else {
          if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5)
          lastRow = module
          sameCountRow = 1
        }
      }
  
      if (sameCountCol >= 5) points += PenaltyScores.N1 + (sameCountCol - 5)
      if (sameCountRow >= 5) points += PenaltyScores.N1 + (sameCountRow - 5)
    }
  
    return points
  }
  
  /**
   * Find 2x2 blocks with the same color and assign a penalty value
   *
   * Points: N2 * (m - 1) * (n - 1)
   */
  exports.getPenaltyN2 = function getPenaltyN2 (data) {
    var size = data.size
    var points = 0
  
    for (var row = 0; row < size - 1; row++) {
      for (var col = 0; col < size - 1; col++) {
        var last = data.get(row, col) +
          data.get(row, col + 1) +
          data.get(row + 1, col) +
          data.get(row + 1, col + 1)
  
        if (last === 4 || last === 0) points++
      }
    }
  
    return points * PenaltyScores.N2
  }
  
  /**
   * Find 1:1:3:1:1 ratio (dark:light:dark:light:dark) pattern in row/column,
   * preceded or followed by light area 4 modules wide
   *
   * Points: N3 * number of pattern found
   */
  exports.getPenaltyN3 = function getPenaltyN3 (data) {
    var size = data.size
    var points = 0
    var bitsCol = 0
    var bitsRow = 0
  
    for (var row = 0; row < size; row++) {
      bitsCol = bitsRow = 0
      for (var col = 0; col < size; col++) {
        bitsCol = ((bitsCol << 1) & 0x7FF) | data.get(row, col)
        if (col >= 10 && (bitsCol === 0x5D0 || bitsCol === 0x05D)) points++
  
        bitsRow = ((bitsRow << 1) & 0x7FF) | data.get(col, row)
        if (col >= 10 && (bitsRow === 0x5D0 || bitsRow === 0x05D)) points++
      }
    }
  
    return points * PenaltyScores.N3
  }
  
  /**
   * Calculate proportion of dark modules in entire symbol
   *
   * Points: N4 * k
   *
   * k is the rating of the deviation of the proportion of dark modules
   * in the symbol from 50% in steps of 5%
   */
  exports.getPenaltyN4 = function getPenaltyN4 (data) {
    var darkCount = 0
    var modulesCount = data.data.length
  
    for (var i = 0; i < modulesCount; i++) darkCount += data.data[i]
  
    var k = Math.abs(Math.ceil((darkCount * 100 / modulesCount) / 5) - 10)
  
    return k * PenaltyScores.N4
  }
  
  /**
   * Return mask value at given position
   *
   * @param  {Number} maskPattern Pattern reference value
   * @param  {Number} i           Row
   * @param  {Number} j           Column
   * @return {Boolean}            Mask value
   */
  function getMaskAt (maskPattern, i, j) {
    switch (maskPattern) {
      case exports.Patterns.PATTERN000: return (i + j) % 2 === 0
      case exports.Patterns.PATTERN001: return i % 2 === 0
      case exports.Patterns.PATTERN010: return j % 3 === 0
      case exports.Patterns.PATTERN011: return (i + j) % 3 === 0
      case exports.Patterns.PATTERN100: return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 === 0
      case exports.Patterns.PATTERN101: return (i * j) % 2 + (i * j) % 3 === 0
      case exports.Patterns.PATTERN110: return ((i * j) % 2 + (i * j) % 3) % 2 === 0
      case exports.Patterns.PATTERN111: return ((i * j) % 3 + (i + j) % 2) % 2 === 0
  
      default: throw new Error('bad maskPattern:' + maskPattern)
    }
  }
  
  /**
   * Apply a mask pattern to a BitMatrix
   *
   * @param  {Number}    pattern Pattern reference number
   * @param  {BitMatrix} data    BitMatrix data
   */
  exports.applyMask = function applyMask (pattern, data) {
    var size = data.size
  
    for (var col = 0; col < size; col++) {
      for (var row = 0; row < size; row++) {
        if (data.isReserved(row, col)) continue
        data.xor(row, col, getMaskAt(pattern, row, col))
      }
    }
  }
  
  /**
   * Returns the best mask pattern for data
   *
   * @param  {BitMatrix} data
   * @return {Number} Mask pattern reference number
   */
  exports.getBestMask = function getBestMask (data, setupFormatFunc) {
    var numPatterns = Object.keys(exports.Patterns).length
    var bestPattern = 0
    var lowerPenalty = Infinity
  
    for (var p = 0; p < numPatterns; p++) {
      setupFormatFunc(p)
      exports.applyMask(p, data)
  
      // Calculate penalty
      var penalty =
        exports.getPenaltyN1(data) +
        exports.getPenaltyN2(data) +
        exports.getPenaltyN3(data) +
        exports.getPenaltyN4(data)
  
      // Undo previously applied mask
      exports.applyMask(p, data)
  
      if (penalty < lowerPenalty) {
        lowerPenalty = penalty
        bestPattern = p
      }
    }
  
    return bestPattern
  }
  
  
  /***/ }),
  /* 60 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Buffer = __webpack_require__(7)
  var Polynomial = __webpack_require__(61)
  
  function ReedSolomonEncoder (degree) {
    this.genPoly = undefined
    this.degree = degree
  
    if (this.degree) this.initialize(this.degree)
  }
  
  /**
   * Initialize the encoder.
   * The input param should correspond to the number of error correction codewords.
   *
   * @param  {Number} degree
   */
  ReedSolomonEncoder.prototype.initialize = function initialize (degree) {
    // create an irreducible generator polynomial
    this.degree = degree
    this.genPoly = Polynomial.generateECPolynomial(this.degree)
  }
  
  /**
   * Encodes a chunk of data
   *
   * @param  {Buffer} data Buffer containing input data
   * @return {Buffer}      Buffer containing encoded data
   */
  ReedSolomonEncoder.prototype.encode = function encode (data) {
    if (!this.genPoly) {
      throw new Error('Encoder not initialized')
    }
  
    // Calculate EC for this data block
    // extends data size to data+genPoly size
    var pad = new Buffer(this.degree)
    pad.fill(0)
    var paddedData = Buffer.concat([data, pad], data.length + this.degree)
  
    // The error correction codewords are the remainder after dividing the data codewords
    // by a generator polynomial
    var remainder = Polynomial.mod(paddedData, this.genPoly)
  
    // return EC data blocks (last n byte, where n is the degree of genPoly)
    // If coefficients number in remainder are less than genPoly degree,
    // pad with 0s to the left to reach the needed number of coefficients
    var start = this.degree - remainder.length
    if (start > 0) {
      var buff = new Buffer(this.degree)
      buff.fill(0)
      remainder.copy(buff, start)
  
      return buff
    }
  
    return remainder
  }
  
  module.exports = ReedSolomonEncoder
  
  
  /***/ }),
  /* 61 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Buffer = __webpack_require__(7)
  var GF = __webpack_require__(62)
  
  /**
   * Multiplies two polynomials inside Galois Field
   *
   * @param  {Buffer} p1 Polynomial
   * @param  {Buffer} p2 Polynomial
   * @return {Buffer}    Product of p1 and p2
   */
  exports.mul = function mul (p1, p2) {
    var coeff = new Buffer(p1.length + p2.length - 1)
    coeff.fill(0)
  
    for (var i = 0; i < p1.length; i++) {
      for (var j = 0; j < p2.length; j++) {
        coeff[i + j] ^= GF.mul(p1[i], p2[j])
      }
    }
  
    return coeff
  }
  
  /**
   * Calculate the remainder of polynomials division
   *
   * @param  {Buffer} divident Polynomial
   * @param  {Buffer} divisor  Polynomial
   * @return {Buffer}          Remainder
   */
  exports.mod = function mod (divident, divisor) {
    var result = new Buffer(divident)
  
    while ((result.length - divisor.length) >= 0) {
      var coeff = result[0]
  
      for (var i = 0; i < divisor.length; i++) {
        result[i] ^= GF.mul(divisor[i], coeff)
      }
  
      // remove all zeros from buffer head
      var offset = 0
      while (offset < result.length && result[offset] === 0) offset++
      result = result.slice(offset)
    }
  
    return result
  }
  
  /**
   * Generate an irreducible generator polynomial of specified degree
   * (used by Reed-Solomon encoder)
   *
   * @param  {Number} degree Degree of the generator polynomial
   * @return {Buffer}        Buffer containing polynomial coefficients
   */
  exports.generateECPolynomial = function generateECPolynomial (degree) {
    var poly = new Buffer([1])
    for (var i = 0; i < degree; i++) {
      poly = exports.mul(poly, [1, GF.exp(i)])
    }
  
    return poly
  }
  
  
  /***/ }),
  /* 62 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Buffer = __webpack_require__(7)
  
  var EXP_TABLE = new Buffer(512)
  var LOG_TABLE = new Buffer(256)
  
  /**
   * Precompute the log and anti-log tables for faster computation later
   *
   * For each possible value in the galois field 2^8, we will pre-compute
   * the logarithm and anti-logarithm (exponential) of this value
   *
   * ref {@link https://en.wikiversity.org/wiki/Reed%E2%80%93Solomon_codes_for_coders#Introduction_to_mathematical_fields}
   */
  ;(function initTables () {
    var x = 1
    for (var i = 0; i < 255; i++) {
      EXP_TABLE[i] = x
      LOG_TABLE[x] = i
  
      x <<= 1 // multiply by 2
  
      // The QR code specification says to use byte-wise modulo 100011101 arithmetic.
      // This means that when a number is 256 or larger, it should be XORed with 0x11D.
      if (x & 0x100) { // similar to x >= 256, but a lot faster (because 0x100 == 256)
        x ^= 0x11D
      }
    }
  
    // Optimization: double the size of the anti-log table so that we don't need to mod 255 to
    // stay inside the bounds (because we will mainly use this table for the multiplication of
    // two GF numbers, no more).
    // @see {@link mul}
    for (i = 255; i < 512; i++) {
      EXP_TABLE[i] = EXP_TABLE[i - 255]
    }
  }())
  
  /**
   * Returns log value of n inside Galois Field
   *
   * @param  {Number} n
   * @return {Number}
   */
  exports.log = function log (n) {
    if (n < 1) throw new Error('log(' + n + ')')
    return LOG_TABLE[n]
  }
  
  /**
   * Returns anti-log value of n inside Galois Field
   *
   * @param  {Number} n
   * @return {Number}
   */
  exports.exp = function exp (n) {
    return EXP_TABLE[n]
  }
  
  /**
   * Multiplies two number inside Galois Field
   *
   * @param  {Number} x
   * @param  {Number} y
   * @return {Number}
   */
  exports.mul = function mul (x, y) {
    if (x === 0 || y === 0) return 0
  
    // should be EXP_TABLE[(LOG_TABLE[x] + LOG_TABLE[y]) % 255] if EXP_TABLE wasn't oversized
    // @see {@link initTables}
    return EXP_TABLE[LOG_TABLE[x] + LOG_TABLE[y]]
  }
  
  
  /***/ }),
  /* 63 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Utils = __webpack_require__(5)
  
  var G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0)
  var G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1)
  var G15_BCH = Utils.getBCHDigit(G15)
  
  /**
   * Returns format information with relative error correction bits
   *
   * The format information is a 15-bit sequence containing 5 data bits,
   * with 10 error correction bits calculated using the (15, 5) BCH code.
   *
   * @param  {Number} errorCorrectionLevel Error correction level
   * @param  {Number} mask                 Mask pattern
   * @return {Number}                      Encoded format information bits
   */
  exports.getEncodedBits = function getEncodedBits (errorCorrectionLevel, mask) {
    var data = ((errorCorrectionLevel.bit << 3) | mask)
    var d = data << 10
  
    while (Utils.getBCHDigit(d) - G15_BCH >= 0) {
      d ^= (G15 << (Utils.getBCHDigit(d) - G15_BCH))
    }
  
    // xor final data with mask pattern in order to ensure that
    // no combination of Error Correction Level and data mask pattern
    // will result in an all-zero data string
    return ((data << 10) | d) ^ G15_MASK
  }
  
  
  /***/ }),
  /* 64 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Mode = __webpack_require__(6)
  var NumericData = __webpack_require__(65)
  var AlphanumericData = __webpack_require__(66)
  var ByteData = __webpack_require__(67)
  var KanjiData = __webpack_require__(68)
  var Regex = __webpack_require__(43)
  var Utils = __webpack_require__(5)
  var dijkstra = __webpack_require__(69)
  
  /**
   * Returns UTF8 byte length
   *
   * @param  {String} str Input string
   * @return {Number}     Number of byte
   */
  function getStringByteLength (str) {
    return unescape(encodeURIComponent(str)).length
  }
  
  /**
   * Get a list of segments of the specified mode
   * from a string
   *
   * @param  {Mode}   mode Segment mode
   * @param  {String} str  String to process
   * @return {Array}       Array of object with segments data
   */
  function getSegments (regex, mode, str) {
    var segments = []
    var result
  
    while ((result = regex.exec(str)) !== null) {
      segments.push({
        data: result[0],
        index: result.index,
        mode: mode,
        length: result[0].length
      })
    }
  
    return segments
  }
  
  /**
   * Extracts a series of segments with the appropriate
   * modes from a string
   *
   * @param  {String} dataStr Input string
   * @return {Array}          Array of object with segments data
   */
  function getSegmentsFromString (dataStr) {
    var numSegs = getSegments(Regex.NUMERIC, Mode.NUMERIC, dataStr)
    var alphaNumSegs = getSegments(Regex.ALPHANUMERIC, Mode.ALPHANUMERIC, dataStr)
    var byteSegs
    var kanjiSegs
  
    if (Utils.isKanjiModeEnabled()) {
      byteSegs = getSegments(Regex.BYTE, Mode.BYTE, dataStr)
      kanjiSegs = getSegments(Regex.KANJI, Mode.KANJI, dataStr)
    } else {
      byteSegs = getSegments(Regex.BYTE_KANJI, Mode.BYTE, dataStr)
      kanjiSegs = []
    }
  
    var segs = numSegs.concat(alphaNumSegs, byteSegs, kanjiSegs)
  
    return segs
      .sort(function (s1, s2) {
        return s1.index - s2.index
      })
      .map(function (obj) {
        return {
          data: obj.data,
          mode: obj.mode,
          length: obj.length
        }
      })
  }
  
  /**
   * Returns how many bits are needed to encode a string of
   * specified length with the specified mode
   *
   * @param  {Number} length String length
   * @param  {Mode} mode     Segment mode
   * @return {Number}        Bit length
   */
  function getSegmentBitsLength (length, mode) {
    switch (mode) {
      case Mode.NUMERIC:
        return NumericData.getBitsLength(length)
      case Mode.ALPHANUMERIC:
        return AlphanumericData.getBitsLength(length)
      case Mode.KANJI:
        return KanjiData.getBitsLength(length)
      case Mode.BYTE:
        return ByteData.getBitsLength(length)
    }
  }
  
  /**
   * Merges adjacent segments which have the same mode
   *
   * @param  {Array} segs Array of object with segments data
   * @return {Array}      Array of object with segments data
   */
  function mergeSegments (segs) {
    return segs.reduce(function (acc, curr) {
      var prevSeg = acc.length - 1 >= 0 ? acc[acc.length - 1] : null
      if (prevSeg && prevSeg.mode === curr.mode) {
        acc[acc.length - 1].data += curr.data
        return acc
      }
  
      acc.push(curr)
      return acc
    }, [])
  }
  
  /**
   * Generates a list of all possible nodes combination which
   * will be used to build a segments graph.
   *
   * Nodes are divided by groups. Each group will contain a list of all the modes
   * in which is possible to encode the given text.
   *
   * For example the text '12345' can be encoded as Numeric, Alphanumeric or Byte.
   * The group for '12345' will contain then 3 objects, one for each
   * possible encoding mode.
   *
   * Each node represents a possible segment.
   *
   * @param  {Array} segs Array of object with segments data
   * @return {Array}      Array of object with segments data
   */
  function buildNodes (segs) {
    var nodes = []
    for (var i = 0; i < segs.length; i++) {
      var seg = segs[i]
  
      switch (seg.mode) {
        case Mode.NUMERIC:
          nodes.push([seg,
            { data: seg.data, mode: Mode.ALPHANUMERIC, length: seg.length },
            { data: seg.data, mode: Mode.BYTE, length: seg.length }
          ])
          break
        case Mode.ALPHANUMERIC:
          nodes.push([seg,
            { data: seg.data, mode: Mode.BYTE, length: seg.length }
          ])
          break
        case Mode.KANJI:
          nodes.push([seg,
            { data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }
          ])
          break
        case Mode.BYTE:
          nodes.push([
            { data: seg.data, mode: Mode.BYTE, length: getStringByteLength(seg.data) }
          ])
      }
    }
  
    return nodes
  }
  
  /**
   * Builds a graph from a list of nodes.
   * All segments in each node group will be connected with all the segments of
   * the next group and so on.
   *
   * At each connection will be assigned a weight depending on the
   * segment's byte length.
   *
   * @param  {Array} nodes    Array of object with segments data
   * @param  {Number} version QR Code version
   * @return {Object}         Graph of all possible segments
   */
  function buildGraph (nodes, version) {
    var table = {}
    var graph = {'start': {}}
    var prevNodeIds = ['start']
  
    for (var i = 0; i < nodes.length; i++) {
      var nodeGroup = nodes[i]
      var currentNodeIds = []
  
      for (var j = 0; j < nodeGroup.length; j++) {
        var node = nodeGroup[j]
        var key = '' + i + j
  
        currentNodeIds.push(key)
        table[key] = { node: node, lastCount: 0 }
        graph[key] = {}
  
        for (var n = 0; n < prevNodeIds.length; n++) {
          var prevNodeId = prevNodeIds[n]
  
          if (table[prevNodeId] && table[prevNodeId].node.mode === node.mode) {
            graph[prevNodeId][key] =
              getSegmentBitsLength(table[prevNodeId].lastCount + node.length, node.mode) -
              getSegmentBitsLength(table[prevNodeId].lastCount, node.mode)
  
            table[prevNodeId].lastCount += node.length
          } else {
            if (table[prevNodeId]) table[prevNodeId].lastCount = node.length
  
            graph[prevNodeId][key] = getSegmentBitsLength(node.length, node.mode) +
              4 + Mode.getCharCountIndicator(node.mode, version) // switch cost
          }
        }
      }
  
      prevNodeIds = currentNodeIds
    }
  
    for (n = 0; n < prevNodeIds.length; n++) {
      graph[prevNodeIds[n]]['end'] = 0
    }
  
    return { map: graph, table: table }
  }
  
  /**
   * Builds a segment from a specified data and mode.
   * If a mode is not specified, the more suitable will be used.
   *
   * @param  {String} data             Input data
   * @param  {Mode | String} modesHint Data mode
   * @return {Segment}                 Segment
   */
  function buildSingleSegment (data, modesHint) {
    var mode
    var bestMode = Mode.getBestModeForData(data)
  
    mode = Mode.from(modesHint, bestMode)
  
    // Make sure data can be encoded
    if (mode !== Mode.BYTE && mode.bit < bestMode.bit) {
      throw new Error('"' + data + '"' +
        ' cannot be encoded with mode ' + Mode.toString(mode) +
        '.\n Suggested mode is: ' + Mode.toString(bestMode))
    }
  
    // Use Mode.BYTE if Kanji support is disabled
    if (mode === Mode.KANJI && !Utils.isKanjiModeEnabled()) {
      mode = Mode.BYTE
    }
  
    switch (mode) {
      case Mode.NUMERIC:
        return new NumericData(data)
  
      case Mode.ALPHANUMERIC:
        return new AlphanumericData(data)
  
      case Mode.KANJI:
        return new KanjiData(data)
  
      case Mode.BYTE:
        return new ByteData(data)
    }
  }
  
  /**
   * Builds a list of segments from an array.
   * Array can contain Strings or Objects with segment's info.
   *
   * For each item which is a string, will be generated a segment with the given
   * string and the more appropriate encoding mode.
   *
   * For each item which is an object, will be generated a segment with the given
   * data and mode.
   * Objects must contain at least the property "data".
   * If property "mode" is not present, the more suitable mode will be used.
   *
   * @param  {Array} array Array of objects with segments data
   * @return {Array}       Array of Segments
   */
  exports.fromArray = function fromArray (array) {
    return array.reduce(function (acc, seg) {
      if (typeof seg === 'string') {
        acc.push(buildSingleSegment(seg, null))
      } else if (seg.data) {
        acc.push(buildSingleSegment(seg.data, seg.mode))
      }
  
      return acc
    }, [])
  }
  
  /**
   * Builds an optimized sequence of segments from a string,
   * which will produce the shortest possible bitstream.
   *
   * @param  {String} data    Input string
   * @param  {Number} version QR Code version
   * @return {Array}          Array of segments
   */
  exports.fromString = function fromString (data, version) {
    var segs = getSegmentsFromString(data, Utils.isKanjiModeEnabled())
  
    var nodes = buildNodes(segs)
    var graph = buildGraph(nodes, version)
    var path = dijkstra.find_path(graph.map, 'start', 'end')
  
    var optimizedSegs = []
    for (var i = 1; i < path.length - 1; i++) {
      optimizedSegs.push(graph.table[path[i]].node)
    }
  
    return exports.fromArray(mergeSegments(optimizedSegs))
  }
  
  /**
   * Splits a string in various segments with the modes which
   * best represent their content.
   * The produced segments are far from being optimized.
   * The output of this function is only used to estimate a QR Code version
   * which may contain the data.
   *
   * @param  {string} data Input string
   * @return {Array}       Array of segments
   */
  exports.rawSplit = function rawSplit (data) {
    return exports.fromArray(
      getSegmentsFromString(data, Utils.isKanjiModeEnabled())
    )
  }
  
  
  /***/ }),
  /* 65 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Mode = __webpack_require__(6)
  
  function NumericData (data) {
    this.mode = Mode.NUMERIC
    this.data = data.toString()
  }
  
  NumericData.getBitsLength = function getBitsLength (length) {
    return 10 * Math.floor(length / 3) + ((length % 3) ? ((length % 3) * 3 + 1) : 0)
  }
  
  NumericData.prototype.getLength = function getLength () {
    return this.data.length
  }
  
  NumericData.prototype.getBitsLength = function getBitsLength () {
    return NumericData.getBitsLength(this.data.length)
  }
  
  NumericData.prototype.write = function write (bitBuffer) {
    var i, group, value
  
    // The input data string is divided into groups of three digits,
    // and each group is converted to its 10-bit binary equivalent.
    for (i = 0; i + 3 <= this.data.length; i += 3) {
      group = this.data.substr(i, 3)
      value = parseInt(group, 10)
  
      bitBuffer.put(value, 10)
    }
  
    // If the number of input digits is not an exact multiple of three,
    // the final one or two digits are converted to 4 or 7 bits respectively.
    var remainingNum = this.data.length - i
    if (remainingNum > 0) {
      group = this.data.substr(i)
      value = parseInt(group, 10)
  
      bitBuffer.put(value, remainingNum * 3 + 1)
    }
  }
  
  module.exports = NumericData
  
  
  /***/ }),
  /* 66 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Mode = __webpack_require__(6)
  
  /**
   * Array of characters available in alphanumeric mode
   *
   * As per QR Code specification, to each character
   * is assigned a value from 0 to 44 which in this case coincides
   * with the array index
   *
   * @type {Array}
   */
  var ALPHA_NUM_CHARS = [
    '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
    'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
    'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
    ' ', '$', '%', '*', '+', '-', '.', '/', ':'
  ]
  
  function AlphanumericData (data) {
    this.mode = Mode.ALPHANUMERIC
    this.data = data
  }
  
  AlphanumericData.getBitsLength = function getBitsLength (length) {
    return 11 * Math.floor(length / 2) + 6 * (length % 2)
  }
  
  AlphanumericData.prototype.getLength = function getLength () {
    return this.data.length
  }
  
  AlphanumericData.prototype.getBitsLength = function getBitsLength () {
    return AlphanumericData.getBitsLength(this.data.length)
  }
  
  AlphanumericData.prototype.write = function write (bitBuffer) {
    var i
  
    // Input data characters are divided into groups of two characters
    // and encoded as 11-bit binary codes.
    for (i = 0; i + 2 <= this.data.length; i += 2) {
      // The character value of the first character is multiplied by 45
      var value = ALPHA_NUM_CHARS.indexOf(this.data[i]) * 45
  
      // The character value of the second digit is added to the product
      value += ALPHA_NUM_CHARS.indexOf(this.data[i + 1])
  
      // The sum is then stored as 11-bit binary number
      bitBuffer.put(value, 11)
    }
  
    // If the number of input data characters is not a multiple of two,
    // the character value of the final character is encoded as a 6-bit binary number.
    if (this.data.length % 2) {
      bitBuffer.put(ALPHA_NUM_CHARS.indexOf(this.data[i]), 6)
    }
  }
  
  module.exports = AlphanumericData
  
  
  /***/ }),
  /* 67 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Buffer = __webpack_require__(7)
  var Mode = __webpack_require__(6)
  
  function ByteData (data) {
    this.mode = Mode.BYTE
    this.data = new Buffer(data)
  }
  
  ByteData.getBitsLength = function getBitsLength (length) {
    return length * 8
  }
  
  ByteData.prototype.getLength = function getLength () {
    return this.data.length
  }
  
  ByteData.prototype.getBitsLength = function getBitsLength () {
    return ByteData.getBitsLength(this.data.length)
  }
  
  ByteData.prototype.write = function (bitBuffer) {
    for (var i = 0, l = this.data.length; i < l; i++) {
      bitBuffer.put(this.data[i], 8)
    }
  }
  
  module.exports = ByteData
  
  
  /***/ }),
  /* 68 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Mode = __webpack_require__(6)
  var Utils = __webpack_require__(5)
  
  function KanjiData (data) {
    this.mode = Mode.KANJI
    this.data = data
  }
  
  KanjiData.getBitsLength = function getBitsLength (length) {
    return length * 13
  }
  
  KanjiData.prototype.getLength = function getLength () {
    return this.data.length
  }
  
  KanjiData.prototype.getBitsLength = function getBitsLength () {
    return KanjiData.getBitsLength(this.data.length)
  }
  
  KanjiData.prototype.write = function (bitBuffer) {
    var i
  
    // In the Shift JIS system, Kanji characters are represented by a two byte combination.
    // These byte values are shifted from the JIS X 0208 values.
    // JIS X 0208 gives details of the shift coded representation.
    for (i = 0; i < this.data.length; i++) {
      var value = Utils.toSJIS(this.data[i])
  
      // For characters with Shift JIS values from 0x8140 to 0x9FFC:
      if (value >= 0x8140 && value <= 0x9FFC) {
        // Subtract 0x8140 from Shift JIS value
        value -= 0x8140
  
      // For characters with Shift JIS values from 0xE040 to 0xEBBF
      } else if (value >= 0xE040 && value <= 0xEBBF) {
        // Subtract 0xC140 from Shift JIS value
        value -= 0xC140
      } else {
        throw new Error(
          'Invalid SJIS character: ' + this.data[i] + '\n' +
          'Make sure your charset is UTF-8')
      }
  
      // Multiply most significant byte of result by 0xC0
      // and add least significant byte to product
      value = (((value >>> 8) & 0xff) * 0xC0) + (value & 0xff)
  
      // Convert result to a 13-bit binary string
      bitBuffer.put(value, 13)
    }
  }
  
  module.exports = KanjiData
  
  
  /***/ }),
  /* 69 */
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  /******************************************************************************
   * Created 2008-08-19.
   *
   * Dijkstra path-finding functions. Adapted from the Dijkstar Python project.
   *
   * Copyright (C) 2008
   *   Wyatt Baldwin <self@wyattbaldwin.com>
   *   All rights reserved
   *
   * Licensed under the MIT license.
   *
   *   http://www.opensource.org/licenses/mit-license.php
   *
   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
   * THE SOFTWARE.
   *****************************************************************************/
  var dijkstra = {
    single_source_shortest_paths: function(graph, s, d) {
      // Predecessor map for each node that has been encountered.
      // node ID => predecessor node ID
      var predecessors = {};
  
      // Costs of shortest paths from s to all nodes encountered.
      // node ID => cost
      var costs = {};
      costs[s] = 0;
  
      // Costs of shortest paths from s to all nodes encountered; differs from
      // `costs` in that it provides easy access to the node that currently has
      // the known shortest path from s.
      // XXX: Do we actually need both `costs` and `open`?
      var open = dijkstra.PriorityQueue.make();
      open.push(s, 0);
  
      var closest,
          u, v,
          cost_of_s_to_u,
          adjacent_nodes,
          cost_of_e,
          cost_of_s_to_u_plus_cost_of_e,
          cost_of_s_to_v,
          first_visit;
      while (!open.empty()) {
        // In the nodes remaining in graph that have a known cost from s,
        // find the node, u, that currently has the shortest path from s.
        closest = open.pop();
        u = closest.value;
        cost_of_s_to_u = closest.cost;
  
        // Get nodes adjacent to u...
        adjacent_nodes = graph[u] || {};
  
        // ...and explore the edges that connect u to those nodes, updating
        // the cost of the shortest paths to any or all of those nodes as
        // necessary. v is the node across the current edge from u.
        for (v in adjacent_nodes) {
          if (adjacent_nodes.hasOwnProperty(v)) {
            // Get the cost of the edge running from u to v.
            cost_of_e = adjacent_nodes[v];
  
            // Cost of s to u plus the cost of u to v across e--this is *a*
            // cost from s to v that may or may not be less than the current
            // known cost to v.
            cost_of_s_to_u_plus_cost_of_e = cost_of_s_to_u + cost_of_e;
  
            // If we haven't visited v yet OR if the current known cost from s to
            // v is greater than the new cost we just found (cost of s to u plus
            // cost of u to v across e), update v's cost in the cost list and
            // update v's predecessor in the predecessor list (it's now u).
            cost_of_s_to_v = costs[v];
            first_visit = (typeof costs[v] === 'undefined');
            if (first_visit || cost_of_s_to_v > cost_of_s_to_u_plus_cost_of_e) {
              costs[v] = cost_of_s_to_u_plus_cost_of_e;
              open.push(v, cost_of_s_to_u_plus_cost_of_e);
              predecessors[v] = u;
            }
          }
        }
      }
  
      if (typeof d !== 'undefined' && typeof costs[d] === 'undefined') {
        var msg = ['Could not find a path from ', s, ' to ', d, '.'].join('');
        throw new Error(msg);
      }
  
      return predecessors;
    },
  
    extract_shortest_path_from_predecessor_list: function(predecessors, d) {
      var nodes = [];
      var u = d;
      var predecessor;
      while (u) {
        nodes.push(u);
        predecessor = predecessors[u];
        u = predecessors[u];
      }
      nodes.reverse();
      return nodes;
    },
  
    find_path: function(graph, s, d) {
      var predecessors = dijkstra.single_source_shortest_paths(graph, s, d);
      return dijkstra.extract_shortest_path_from_predecessor_list(
        predecessors, d);
    },
  
    /**
     * A very naive priority queue implementation.
     */
    PriorityQueue: {
      make: function (opts) {
        var T = dijkstra.PriorityQueue,
            t = {},
            key;
        opts = opts || {};
        for (key in T) {
          if (T.hasOwnProperty(key)) {
            t[key] = T[key];
          }
        }
        t.queue = [];
        t.sorter = opts.sorter || T.default_sorter;
        return t;
      },
  
      default_sorter: function (a, b) {
        return a.cost - b.cost;
      },
  
      /**
       * Add a new item to the queue and ensure the highest priority element
       * is at the front of the queue.
       */
      push: function (value, cost) {
        var item = {value: value, cost: cost};
        this.queue.push(item);
        this.queue.sort(this.sorter);
      },
  
      /**
       * Return the highest priority element in the queue.
       */
      pop: function () {
        return this.queue.shift();
      },
  
      empty: function () {
        return this.queue.length === 0;
      }
    }
  };
  
  
  // node.js module exports
  if (true) {
    module.exports = dijkstra;
  }
  
  
  /***/ }),
  /* 70 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Utils = __webpack_require__(44)
  
  function clearCanvas (ctx, canvas, size) {
    ctx.clearRect(0, 0, canvas.width, canvas.height)
  
    if (!canvas.style) canvas.style = {}
    canvas.height = size
    canvas.width = size
    canvas.style.height = size + 'px'
    canvas.style.width = size + 'px'
  }
  
  function getCanvasElement () {
    try {
      return document.createElement('canvas')
    } catch (e) {
      throw new Error('You need to specify a canvas element')
    }
  }
  
  exports.render = function render (qrData, canvas, options) {
    var opts = options
    var canvasEl = canvas
  
    if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {
      opts = canvas
      canvas = undefined
    }
  
    if (!canvas) {
      canvasEl = getCanvasElement()
    }
  
    opts = Utils.getOptions(opts)
    var size = Utils.getImageWidth(qrData.modules.size, opts)
  
    var ctx = canvasEl.getContext('2d')
    var image = ctx.createImageData(size, size)
    Utils.qrToImageData(image.data, qrData, opts)
  
    clearCanvas(ctx, canvasEl, size)
    ctx.putImageData(image, 0, 0)
  
    return canvasEl
  }
  
  exports.renderToDataURL = function renderToDataURL (qrData, canvas, options) {
    var opts = options
  
    if (typeof opts === 'undefined' && (!canvas || !canvas.getContext)) {
      opts = canvas
      canvas = undefined
    }
  
    if (!opts) opts = {}
  
    var canvasEl = exports.render(qrData, canvas, opts)
  
    var type = opts.type || 'image/png'
    var rendererOpts = opts.rendererOpts || {}
  
    return canvasEl.toDataURL(type, rendererOpts.quality)
  }
  
  
  /***/ }),
  /* 71 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var Utils = __webpack_require__(44)
  
  function getColorAttrib (color, attrib) {
    var alpha = color.a / 255
    var str = attrib + '="' + color.hex + '"'
  
    return alpha < 1
      ? str + ' ' + attrib + '-opacity="' + alpha.toFixed(2).slice(1) + '"'
      : str
  }
  
  function svgCmd (cmd, x, y) {
    var str = cmd + x
    if (typeof y !== 'undefined') str += ' ' + y
  
    return str
  }
  
  function qrToPath (data, size, margin) {
    var path = ''
    var moveBy = 0
    var newRow = false
    var lineLength = 0
  
    for (var i = 0; i < data.length; i++) {
      var col = Math.floor(i % size)
      var row = Math.floor(i / size)
  
      if (!col && !newRow) newRow = true
  
      if (data[i]) {
        lineLength++
  
        if (!(i > 0 && col > 0 && data[i - 1])) {
          path += newRow
            ? svgCmd('M', col + margin, 0.5 + row + margin)
            : svgCmd('m', moveBy, 0)
  
          moveBy = 0
          newRow = false
        }
  
        if (!(col + 1 < size && data[i + 1])) {
          path += svgCmd('h', lineLength)
          lineLength = 0
        }
      } else {
        moveBy++
      }
    }
  
    return path
  }
  
  exports.render = function render (qrData, options, cb) {
    var opts = Utils.getOptions(options)
    var size = qrData.modules.size
    var data = qrData.modules.data
    var qrcodesize = size + opts.margin * 2
  
    var bg = !opts.color.light.a
      ? ''
      : '<path ' + getColorAttrib(opts.color.light, 'fill') +
        ' d="M0 0h' + qrcodesize + 'v' + qrcodesize + 'H0z"/>'
  
    var path =
      '<path ' + getColorAttrib(opts.color.dark, 'stroke') +
      ' d="' + qrToPath(data, size, opts.margin) + '"/>'
  
    var viewBox = 'viewBox="' + '0 0 ' + qrcodesize + ' ' + qrcodesize + '"'
  
    var width = !opts.width ? '' : 'width="' + opts.width + '" height="' + opts.width + '" '
  
    var svgTag = '<svg xmlns="http://www.w3.org/2000/svg" ' + width + viewBox + '>' + bg + path + '</svg>'
  
    if (typeof cb === 'function') {
      cb(null, svgTag)
    }
  
    return svgTag
  }
  
  
  /***/ }),
  /* 72 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_methods__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components__ = __webpack_require__(2);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_axios__ = __webpack_require__(3);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_axios__);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_underscore__ = __webpack_require__(73);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_underscore___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_underscore__);
  
  
  
  
  
  const NewParcel = {
      components: __WEBPACK_IMPORTED_MODULE_1__components__["a" /* default */],
      template: `
                  <div class="page page__home">
                  
                    <main class="page__body">
                      
                          <h1>Neue Sendung beantragen</h1>
                      
                          <form class="form">
                              
                              <div class="form__receiver container">
                              
                                  <h4 class="form__head">Empfängerdaten</h4>
                              
                                  <div class="form__message" :style="messageStyle">{{message}}</div>
                              
                                  <div class="form__input__container container">
                              
                                      <input class="form__input" v-model="receiverFirstname" placeholder="Vorname" type="text">
                                      <input class="form__input" v-model="receiverLastname" placeholder="Nachname" type="text">
                                      <input class="form__input" v-model="receiverCity" placeholder="Stadt" type="text" >
                                      <input class="form__input" v-model="receiverPostcode" placeholder="PLZ" pattern="[0-9]{5}" type="text">
                                      <input class="form__input" v-model="receiverAddress" placeholder="Adresse" type="text">
                                      
                                  </div>
                                  
                              </div>
                              
                              <div class="form__sender container">
                              
                                  <h4 class="form__head">Ansenderdaten</h4>
                                  
                                  <div class="form__input__container container">
                                  
                                      <input class="form__input" v-model="senderFirstname" placeholder="Vorname" type="text">
                                      <input class="form__input" v-model="senderLastname" placeholder="Nachname" type="text">
                                      <input class="form__input" v-model="senderCity" placeholder="Stadt" type="text">
                                      <input class="form__input" v-model="senderPostcode" placeholder="PLZ" pattern="[0-9]{5}" type="text">
                                      <input class="form__input" v-model="senderAddress" placeholder="Adresse" type="text">                                       
                                  
                                  </div>
                              
                                  
                              </div>
                              
                              <button class="form__button btn-primary" @click.prevent="submit">Abschicken</button>
                              
                          </form>
                      </main>
                      
                  </div>
                `,
      mounted(){
  
          this.checkLogin()
              .then(data => {
                  if(data && data.username){
                      this.isLoggedIn = true;
                      this.username = data.username;
                      this.user = data;
                      this.$emit('logged-in');
                  }
                  else {
                      this.$router.push('/login');
                  }
              });
      },
      data(){
          return {
              // Error and Information messages about the login form
              message: 'Bitte geben Sie ihr Anmeldedaten hier ein:',
              messageType: 100,
  
              // Currently logged in?
              isLoggedIn: false,
              username: '',
              user: null,
  
              // Component models
              receiverCity: '',
              receiverLastname: '',
              receiverFirstname: '',
              receiverPostcode: '',
              receiverAddress: '',
  
              senderCity: '',
              senderLastname: '',
              senderFirstname: '',
              senderPostcode: '',
              senderAddress: '',
  
              citiesList: [],
              addressList: []
  
          }
      },
      methods: {
          checkLogin: __WEBPACK_IMPORTED_MODULE_0__common_methods__["b" /* checkLogin */],
          submit: function () {
  
              if(this.validateInput({
                      firstname: this.receiverFirstname,
                      lastname: this.receiverLastname,
                      address: this.receiverAddress,
                      city: this.receiverCity,
                      postcode: this.receiverPostcode
                  })){
  
                  __WEBPACK_IMPORTED_MODULE_2_axios___default.a.post('/v1/parcels/new', {
                      fromCity: this.senderCity,
                      toCity: this.receiverCity,
                      fromName: this.senderLastname,
                      toName: this.receiverLastname,
                      fromFirstName: this.senderFirstname,
                      toFirstName: this.receiverFirstname,
                      fromPostCode: this.senderPostcode,
                      toPostCode: this.receiverPostcode,
                      fromAddress: this.senderAddress,
                      toAddress: this.receiverAddress
                  })
                      .then((response) => {
                          if(response.status === 200){
                              this.message = 'Sendung wurde erfolgreich erstellt';
                              this.messageType = 200;
                              setTimeout(() => {
                                  this.$router.push('/parcel/' + response.data.trackingNr + '/created' );
                              }, 500);
                          }
                      })
                      .catch((err) => {
                         console.error(err);
                         this.message = 'Fehler bei der Sendungserstellung.';
                         this.messageType = 400;
                      });
              }
  
          },
          validateInput: function (input) {
              //TODO: Validate user input
              return true;
          },
      },
      computed: {
          messageStyle: function(){
              if(this.messageType === 400){
                  return {
                      color: '#ff0000'
                  };
              }
              if(this.messageType === 200){
                  return {
                      color: '#0a0'
                  };
              }
              if(this.messageType === 100){
                  return {};
              }
          }
      },
      watch: {
          user: function (user) {
              if(user){
                  this.senderFirstname = user.firstname;
                  this.senderLastname = user.lastname;
                  this.senderCity = user.city;
                  this.senderAddress = user.address;
                  this.senderPostcode = user.postcode;
              }
          }
      }
  }
  
  /* harmony default export */ __webpack_exports__["a"] = (NewParcel);
  
  /***/ }),
  /* 73 */
  /***/ (function(module, exports, __webpack_require__) {
  
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;//     Underscore.js 1.8.3
  //     http://underscorejs.org
  //     (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  //     Underscore may be freely distributed under the MIT license.
  
  (function() {
  
    // Baseline setup
    // --------------
  
    // Establish the root object, `window` in the browser, or `exports` on the server.
    var root = this;
  
    // Save the previous value of the `_` variable.
    var previousUnderscore = root._;
  
    // Save bytes in the minified (but not gzipped) version:
    var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;
  
    // Create quick reference variables for speed access to core prototypes.
    var
      push             = ArrayProto.push,
      slice            = ArrayProto.slice,
      toString         = ObjProto.toString,
      hasOwnProperty   = ObjProto.hasOwnProperty;
  
    // All **ECMAScript 5** native function implementations that we hope to use
    // are declared here.
    var
      nativeIsArray      = Array.isArray,
      nativeKeys         = Object.keys,
      nativeBind         = FuncProto.bind,
      nativeCreate       = Object.create;
  
    // Naked function reference for surrogate-prototype-swapping.
    var Ctor = function(){};
  
    // Create a safe reference to the Underscore object for use below.
    var _ = function(obj) {
      if (obj instanceof _) return obj;
      if (!(this instanceof _)) return new _(obj);
      this._wrapped = obj;
    };
  
    // Export the Underscore object for **Node.js**, with
    // backwards-compatibility for the old `require()` API. If we're in
    // the browser, add `_` as a global object.
    if (true) {
      if (typeof module !== 'undefined' && module.exports) {
        exports = module.exports = _;
      }
      exports._ = _;
    } else {
      root._ = _;
    }
  
    // Current version.
    _.VERSION = '1.8.3';
  
    // Internal function that returns an efficient (for current engines) version
    // of the passed-in callback, to be repeatedly applied in other Underscore
    // functions.
    var optimizeCb = function(func, context, argCount) {
      if (context === void 0) return func;
      switch (argCount == null ? 3 : argCount) {
        case 1: return function(value) {
          return func.call(context, value);
        };
        case 2: return function(value, other) {
          return func.call(context, value, other);
        };
        case 3: return function(value, index, collection) {
          return func.call(context, value, index, collection);
        };
        case 4: return function(accumulator, value, index, collection) {
          return func.call(context, accumulator, value, index, collection);
        };
      }
      return function() {
        return func.apply(context, arguments);
      };
    };
  
    // A mostly-internal function to generate callbacks that can be applied
    // to each element in a collection, returning the desired result — either
    // identity, an arbitrary callback, a property matcher, or a property accessor.
    var cb = function(value, context, argCount) {
      if (value == null) return _.identity;
      if (_.isFunction(value)) return optimizeCb(value, context, argCount);
      if (_.isObject(value)) return _.matcher(value);
      return _.property(value);
    };
    _.iteratee = function(value, context) {
      return cb(value, context, Infinity);
    };
  
    // An internal function for creating assigner functions.
    var createAssigner = function(keysFunc, undefinedOnly) {
      return function(obj) {
        var length = arguments.length;
        if (length < 2 || obj == null) return obj;
        for (var index = 1; index < length; index++) {
          var source = arguments[index],
              keys = keysFunc(source),
              l = keys.length;
          for (var i = 0; i < l; i++) {
            var key = keys[i];
            if (!undefinedOnly || obj[key] === void 0) obj[key] = source[key];
          }
        }
        return obj;
      };
    };
  
    // An internal function for creating a new object that inherits from another.
    var baseCreate = function(prototype) {
      if (!_.isObject(prototype)) return {};
      if (nativeCreate) return nativeCreate(prototype);
      Ctor.prototype = prototype;
      var result = new Ctor;
      Ctor.prototype = null;
      return result;
    };
  
    var property = function(key) {
      return function(obj) {
        return obj == null ? void 0 : obj[key];
      };
    };
  
    // Helper for collection methods to determine whether a collection
    // should be iterated as an array or as an object
    // Related: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength
    // Avoids a very nasty iOS 8 JIT bug on ARM-64. #2094
    var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;
    var getLength = property('length');
    var isArrayLike = function(collection) {
      var length = getLength(collection);
      return typeof length == 'number' && length >= 0 && length <= MAX_ARRAY_INDEX;
    };
  
    // Collection Functions
    // --------------------
  
    // The cornerstone, an `each` implementation, aka `forEach`.
    // Handles raw objects in addition to array-likes. Treats all
    // sparse array-likes as if they were dense.
    _.each = _.forEach = function(obj, iteratee, context) {
      iteratee = optimizeCb(iteratee, context);
      var i, length;
      if (isArrayLike(obj)) {
        for (i = 0, length = obj.length; i < length; i++) {
          iteratee(obj[i], i, obj);
        }
      } else {
        var keys = _.keys(obj);
        for (i = 0, length = keys.length; i < length; i++) {
          iteratee(obj[keys[i]], keys[i], obj);
        }
      }
      return obj;
    };
  
    // Return the results of applying the iteratee to each element.
    _.map = _.collect = function(obj, iteratee, context) {
      iteratee = cb(iteratee, context);
      var keys = !isArrayLike(obj) && _.keys(obj),
          length = (keys || obj).length,
          results = Array(length);
      for (var index = 0; index < length; index++) {
        var currentKey = keys ? keys[index] : index;
        results[index] = iteratee(obj[currentKey], currentKey, obj);
      }
      return results;
    };
  
    // Create a reducing function iterating left or right.
    function createReduce(dir) {
      // Optimized iterator function as using arguments.length
      // in the main function will deoptimize the, see #1991.
      function iterator(obj, iteratee, memo, keys, index, length) {
        for (; index >= 0 && index < length; index += dir) {
          var currentKey = keys ? keys[index] : index;
          memo = iteratee(memo, obj[currentKey], currentKey, obj);
        }
        return memo;
      }
  
      return function(obj, iteratee, memo, context) {
        iteratee = optimizeCb(iteratee, context, 4);
        var keys = !isArrayLike(obj) && _.keys(obj),
            length = (keys || obj).length,
            index = dir > 0 ? 0 : length - 1;
        // Determine the initial value if none is provided.
        if (arguments.length < 3) {
          memo = obj[keys ? keys[index] : index];
          index += dir;
        }
        return iterator(obj, iteratee, memo, keys, index, length);
      };
    }
  
    // **Reduce** builds up a single result from a list of values, aka `inject`,
    // or `foldl`.
    _.reduce = _.foldl = _.inject = createReduce(1);
  
    // The right-associative version of reduce, also known as `foldr`.
    _.reduceRight = _.foldr = createReduce(-1);
  
    // Return the first value which passes a truth test. Aliased as `detect`.
    _.find = _.detect = function(obj, predicate, context) {
      var key;
      if (isArrayLike(obj)) {
        key = _.findIndex(obj, predicate, context);
      } else {
        key = _.findKey(obj, predicate, context);
      }
      if (key !== void 0 && key !== -1) return obj[key];
    };
  
    // Return all the elements that pass a truth test.
    // Aliased as `select`.
    _.filter = _.select = function(obj, predicate, context) {
      var results = [];
      predicate = cb(predicate, context);
      _.each(obj, function(value, index, list) {
        if (predicate(value, index, list)) results.push(value);
      });
      return results;
    };
  
    // Return all the elements for which a truth test fails.
    _.reject = function(obj, predicate, context) {
      return _.filter(obj, _.negate(cb(predicate)), context);
    };
  
    // Determine whether all of the elements match a truth test.
    // Aliased as `all`.
    _.every = _.all = function(obj, predicate, context) {
      predicate = cb(predicate, context);
      var keys = !isArrayLike(obj) && _.keys(obj),
          length = (keys || obj).length;
      for (var index = 0; index < length; index++) {
        var currentKey = keys ? keys[index] : index;
        if (!predicate(obj[currentKey], currentKey, obj)) return false;
      }
      return true;
    };
  
    // Determine if at least one element in the object matches a truth test.
    // Aliased as `any`.
    _.some = _.any = function(obj, predicate, context) {
      predicate = cb(predicate, context);
      var keys = !isArrayLike(obj) && _.keys(obj),
          length = (keys || obj).length;
      for (var index = 0; index < length; index++) {
        var currentKey = keys ? keys[index] : index;
        if (predicate(obj[currentKey], currentKey, obj)) return true;
      }
      return false;
    };
  
    // Determine if the array or object contains a given item (using `===`).
    // Aliased as `includes` and `include`.
    _.contains = _.includes = _.include = function(obj, item, fromIndex, guard) {
      if (!isArrayLike(obj)) obj = _.values(obj);
      if (typeof fromIndex != 'number' || guard) fromIndex = 0;
      return _.indexOf(obj, item, fromIndex) >= 0;
    };
  
    // Invoke a method (with arguments) on every item in a collection.
    _.invoke = function(obj, method) {
      var args = slice.call(arguments, 2);
      var isFunc = _.isFunction(method);
      return _.map(obj, function(value) {
        var func = isFunc ? method : value[method];
        return func == null ? func : func.apply(value, args);
      });
    };
  
    // Convenience version of a common use case of `map`: fetching a property.
    _.pluck = function(obj, key) {
      return _.map(obj, _.property(key));
    };
  
    // Convenience version of a common use case of `filter`: selecting only objects
    // containing specific `key:value` pairs.
    _.where = function(obj, attrs) {
      return _.filter(obj, _.matcher(attrs));
    };
  
    // Convenience version of a common use case of `find`: getting the first object
    // containing specific `key:value` pairs.
    _.findWhere = function(obj, attrs) {
      return _.find(obj, _.matcher(attrs));
    };
  
    // Return the maximum element (or element-based computation).
    _.max = function(obj, iteratee, context) {
      var result = -Infinity, lastComputed = -Infinity,
          value, computed;
      if (iteratee == null && obj != null) {
        obj = isArrayLike(obj) ? obj : _.values(obj);
        for (var i = 0, length = obj.length; i < length; i++) {
          value = obj[i];
          if (value > result) {
            result = value;
          }
        }
      } else {
        iteratee = cb(iteratee, context);
        _.each(obj, function(value, index, list) {
          computed = iteratee(value, index, list);
          if (computed > lastComputed || computed === -Infinity && result === -Infinity) {
            result = value;
            lastComputed = computed;
          }
        });
      }
      return result;
    };
  
    // Return the minimum element (or element-based computation).
    _.min = function(obj, iteratee, context) {
      var result = Infinity, lastComputed = Infinity,
          value, computed;
      if (iteratee == null && obj != null) {
        obj = isArrayLike(obj) ? obj : _.values(obj);
        for (var i = 0, length = obj.length; i < length; i++) {
          value = obj[i];
          if (value < result) {
            result = value;
          }
        }
      } else {
        iteratee = cb(iteratee, context);
        _.each(obj, function(value, index, list) {
          computed = iteratee(value, index, list);
          if (computed < lastComputed || computed === Infinity && result === Infinity) {
            result = value;
            lastComputed = computed;
          }
        });
      }
      return result;
    };
  
    // Shuffle a collection, using the modern version of the
    // [Fisher-Yates shuffle](http://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
    _.shuffle = function(obj) {
      var set = isArrayLike(obj) ? obj : _.values(obj);
      var length = set.length;
      var shuffled = Array(length);
      for (var index = 0, rand; index < length; index++) {
        rand = _.random(0, index);
        if (rand !== index) shuffled[index] = shuffled[rand];
        shuffled[rand] = set[index];
      }
      return shuffled;
    };
  
    // Sample **n** random values from a collection.
    // If **n** is not specified, returns a single random element.
    // The internal `guard` argument allows it to work with `map`.
    _.sample = function(obj, n, guard) {
      if (n == null || guard) {
        if (!isArrayLike(obj)) obj = _.values(obj);
        return obj[_.random(obj.length - 1)];
      }
      return _.shuffle(obj).slice(0, Math.max(0, n));
    };
  
    // Sort the object's values by a criterion produced by an iteratee.
    _.sortBy = function(obj, iteratee, context) {
      iteratee = cb(iteratee, context);
      return _.pluck(_.map(obj, function(value, index, list) {
        return {
          value: value,
          index: index,
          criteria: iteratee(value, index, list)
        };
      }).sort(function(left, right) {
        var a = left.criteria;
        var b = right.criteria;
        if (a !== b) {
          if (a > b || a === void 0) return 1;
          if (a < b || b === void 0) return -1;
        }
        return left.index - right.index;
      }), 'value');
    };
  
    // An internal function used for aggregate "group by" operations.
    var group = function(behavior) {
      return function(obj, iteratee, context) {
        var result = {};
        iteratee = cb(iteratee, context);
        _.each(obj, function(value, index) {
          var key = iteratee(value, index, obj);
          behavior(result, value, key);
        });
        return result;
      };
    };
  
    // Groups the object's values by a criterion. Pass either a string attribute
    // to group by, or a function that returns the criterion.
    _.groupBy = group(function(result, value, key) {
      if (_.has(result, key)) result[key].push(value); else result[key] = [value];
    });
  
    // Indexes the object's values by a criterion, similar to `groupBy`, but for
    // when you know that your index values will be unique.
    _.indexBy = group(function(result, value, key) {
      result[key] = value;
    });
  
    // Counts instances of an object that group by a certain criterion. Pass
    // either a string attribute to count by, or a function that returns the
    // criterion.
    _.countBy = group(function(result, value, key) {
      if (_.has(result, key)) result[key]++; else result[key] = 1;
    });
  
    // Safely create a real, live array from anything iterable.
    _.toArray = function(obj) {
      if (!obj) return [];
      if (_.isArray(obj)) return slice.call(obj);
      if (isArrayLike(obj)) return _.map(obj, _.identity);
      return _.values(obj);
    };
  
    // Return the number of elements in an object.
    _.size = function(obj) {
      if (obj == null) return 0;
      return isArrayLike(obj) ? obj.length : _.keys(obj).length;
    };
  
    // Split a collection into two arrays: one whose elements all satisfy the given
    // predicate, and one whose elements all do not satisfy the predicate.
    _.partition = function(obj, predicate, context) {
      predicate = cb(predicate, context);
      var pass = [], fail = [];
      _.each(obj, function(value, key, obj) {
        (predicate(value, key, obj) ? pass : fail).push(value);
      });
      return [pass, fail];
    };
  
    // Array Functions
    // ---------------
  
    // Get the first element of an array. Passing **n** will return the first N
    // values in the array. Aliased as `head` and `take`. The **guard** check
    // allows it to work with `_.map`.
    _.first = _.head = _.take = function(array, n, guard) {
      if (array == null) return void 0;
      if (n == null || guard) return array[0];
      return _.initial(array, array.length - n);
    };
  
    // Returns everything but the last entry of the array. Especially useful on
    // the arguments object. Passing **n** will return all the values in
    // the array, excluding the last N.
    _.initial = function(array, n, guard) {
      return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));
    };
  
    // Get the last element of an array. Passing **n** will return the last N
    // values in the array.
    _.last = function(array, n, guard) {
      if (array == null) return void 0;
      if (n == null || guard) return array[array.length - 1];
      return _.rest(array, Math.max(0, array.length - n));
    };
  
    // Returns everything but the first entry of the array. Aliased as `tail` and `drop`.
    // Especially useful on the arguments object. Passing an **n** will return
    // the rest N values in the array.
    _.rest = _.tail = _.drop = function(array, n, guard) {
      return slice.call(array, n == null || guard ? 1 : n);
    };
  
    // Trim out all falsy values from an array.
    _.compact = function(array) {
      return _.filter(array, _.identity);
    };
  
    // Internal implementation of a recursive `flatten` function.
    var flatten = function(input, shallow, strict, startIndex) {
      var output = [], idx = 0;
      for (var i = startIndex || 0, length = getLength(input); i < length; i++) {
        var value = input[i];
        if (isArrayLike(value) && (_.isArray(value) || _.isArguments(value))) {
          //flatten current level of array or arguments object
          if (!shallow) value = flatten(value, shallow, strict);
          var j = 0, len = value.length;
          output.length += len;
          while (j < len) {
            output[idx++] = value[j++];
          }
        } else if (!strict) {
          output[idx++] = value;
        }
      }
      return output;
    };
  
    // Flatten out an array, either recursively (by default), or just one level.
    _.flatten = function(array, shallow) {
      return flatten(array, shallow, false);
    };
  
    // Return a version of the array that does not contain the specified value(s).
    _.without = function(array) {
      return _.difference(array, slice.call(arguments, 1));
    };
  
    // Produce a duplicate-free version of the array. If the array has already
    // been sorted, you have the option of using a faster algorithm.
    // Aliased as `unique`.
    _.uniq = _.unique = function(array, isSorted, iteratee, context) {
      if (!_.isBoolean(isSorted)) {
        context = iteratee;
        iteratee = isSorted;
        isSorted = false;
      }
      if (iteratee != null) iteratee = cb(iteratee, context);
      var result = [];
      var seen = [];
      for (var i = 0, length = getLength(array); i < length; i++) {
        var value = array[i],
            computed = iteratee ? iteratee(value, i, array) : value;
        if (isSorted) {
          if (!i || seen !== computed) result.push(value);
          seen = computed;
        } else if (iteratee) {
          if (!_.contains(seen, computed)) {
            seen.push(computed);
            result.push(value);
          }
        } else if (!_.contains(result, value)) {
          result.push(value);
        }
      }
      return result;
    };
  
    // Produce an array that contains the union: each distinct element from all of
    // the passed-in arrays.
    _.union = function() {
      return _.uniq(flatten(arguments, true, true));
    };
  
    // Produce an array that contains every item shared between all the
    // passed-in arrays.
    _.intersection = function(array) {
      var result = [];
      var argsLength = arguments.length;
      for (var i = 0, length = getLength(array); i < length; i++) {
        var item = array[i];
        if (_.contains(result, item)) continue;
        for (var j = 1; j < argsLength; j++) {
          if (!_.contains(arguments[j], item)) break;
        }
        if (j === argsLength) result.push(item);
      }
      return result;
    };
  
    // Take the difference between one array and a number of other arrays.
    // Only the elements present in just the first array will remain.
    _.difference = function(array) {
      var rest = flatten(arguments, true, true, 1);
      return _.filter(array, function(value){
        return !_.contains(rest, value);
      });
    };
  
    // Zip together multiple lists into a single array -- elements that share
    // an index go together.
    _.zip = function() {
      return _.unzip(arguments);
    };
  
    // Complement of _.zip. Unzip accepts an array of arrays and groups
    // each array's elements on shared indices
    _.unzip = function(array) {
      var length = array && _.max(array, getLength).length || 0;
      var result = Array(length);
  
      for (var index = 0; index < length; index++) {
        result[index] = _.pluck(array, index);
      }
      return result;
    };
  
    // Converts lists into objects. Pass either a single array of `[key, value]`
    // pairs, or two parallel arrays of the same length -- one of keys, and one of
    // the corresponding values.
    _.object = function(list, values) {
      var result = {};
      for (var i = 0, length = getLength(list); i < length; i++) {
        if (values) {
          result[list[i]] = values[i];
        } else {
          result[list[i][0]] = list[i][1];
        }
      }
      return result;
    };
  
    // Generator function to create the findIndex and findLastIndex functions
    function createPredicateIndexFinder(dir) {
      return function(array, predicate, context) {
        predicate = cb(predicate, context);
        var length = getLength(array);
        var index = dir > 0 ? 0 : length - 1;
        for (; index >= 0 && index < length; index += dir) {
          if (predicate(array[index], index, array)) return index;
        }
        return -1;
      };
    }
  
    // Returns the first index on an array-like that passes a predicate test
    _.findIndex = createPredicateIndexFinder(1);
    _.findLastIndex = createPredicateIndexFinder(-1);
  
    // Use a comparator function to figure out the smallest index at which
    // an object should be inserted so as to maintain order. Uses binary search.
    _.sortedIndex = function(array, obj, iteratee, context) {
      iteratee = cb(iteratee, context, 1);
      var value = iteratee(obj);
      var low = 0, high = getLength(array);
      while (low < high) {
        var mid = Math.floor((low + high) / 2);
        if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;
      }
      return low;
    };
  
    // Generator function to create the indexOf and lastIndexOf functions
    function createIndexFinder(dir, predicateFind, sortedIndex) {
      return function(array, item, idx) {
        var i = 0, length = getLength(array);
        if (typeof idx == 'number') {
          if (dir > 0) {
              i = idx >= 0 ? idx : Math.max(idx + length, i);
          } else {
              length = idx >= 0 ? Math.min(idx + 1, length) : idx + length + 1;
          }
        } else if (sortedIndex && idx && length) {
          idx = sortedIndex(array, item);
          return array[idx] === item ? idx : -1;
        }
        if (item !== item) {
          idx = predicateFind(slice.call(array, i, length), _.isNaN);
          return idx >= 0 ? idx + i : -1;
        }
        for (idx = dir > 0 ? i : length - 1; idx >= 0 && idx < length; idx += dir) {
          if (array[idx] === item) return idx;
        }
        return -1;
      };
    }
  
    // Return the position of the first occurrence of an item in an array,
    // or -1 if the item is not included in the array.
    // If the array is large and already in sort order, pass `true`
    // for **isSorted** to use binary search.
    _.indexOf = createIndexFinder(1, _.findIndex, _.sortedIndex);
    _.lastIndexOf = createIndexFinder(-1, _.findLastIndex);
  
    // Generate an integer Array containing an arithmetic progression. A port of
    // the native Python `range()` function. See
    // [the Python documentation](http://docs.python.org/library/functions.html#range).
    _.range = function(start, stop, step) {
      if (stop == null) {
        stop = start || 0;
        start = 0;
      }
      step = step || 1;
  
      var length = Math.max(Math.ceil((stop - start) / step), 0);
      var range = Array(length);
  
      for (var idx = 0; idx < length; idx++, start += step) {
        range[idx] = start;
      }
  
      return range;
    };
  
    // Function (ahem) Functions
    // ------------------
  
    // Determines whether to execute a function as a constructor
    // or a normal function with the provided arguments
    var executeBound = function(sourceFunc, boundFunc, context, callingContext, args) {
      if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);
      var self = baseCreate(sourceFunc.prototype);
      var result = sourceFunc.apply(self, args);
      if (_.isObject(result)) return result;
      return self;
    };
  
    // Create a function bound to a given object (assigning `this`, and arguments,
    // optionally). Delegates to **ECMAScript 5**'s native `Function.bind` if
    // available.
    _.bind = function(func, context) {
      if (nativeBind && func.bind === nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
      if (!_.isFunction(func)) throw new TypeError('Bind must be called on a function');
      var args = slice.call(arguments, 2);
      var bound = function() {
        return executeBound(func, bound, context, this, args.concat(slice.call(arguments)));
      };
      return bound;
    };
  
    // Partially apply a function by creating a version that has had some of its
    // arguments pre-filled, without changing its dynamic `this` context. _ acts
    // as a placeholder, allowing any combination of arguments to be pre-filled.
    _.partial = function(func) {
      var boundArgs = slice.call(arguments, 1);
      var bound = function() {
        var position = 0, length = boundArgs.length;
        var args = Array(length);
        for (var i = 0; i < length; i++) {
          args[i] = boundArgs[i] === _ ? arguments[position++] : boundArgs[i];
        }
        while (position < arguments.length) args.push(arguments[position++]);
        return executeBound(func, bound, this, this, args);
      };
      return bound;
    };
  
    // Bind a number of an object's methods to that object. Remaining arguments
    // are the method names to be bound. Useful for ensuring that all callbacks
    // defined on an object belong to it.
    _.bindAll = function(obj) {
      var i, length = arguments.length, key;
      if (length <= 1) throw new Error('bindAll must be passed function names');
      for (i = 1; i < length; i++) {
        key = arguments[i];
        obj[key] = _.bind(obj[key], obj);
      }
      return obj;
    };
  
    // Memoize an expensive function by storing its results.
    _.memoize = function(func, hasher) {
      var memoize = function(key) {
        var cache = memoize.cache;
        var address = '' + (hasher ? hasher.apply(this, arguments) : key);
        if (!_.has(cache, address)) cache[address] = func.apply(this, arguments);
        return cache[address];
      };
      memoize.cache = {};
      return memoize;
    };
  
    // Delays a function for the given number of milliseconds, and then calls
    // it with the arguments supplied.
    _.delay = function(func, wait) {
      var args = slice.call(arguments, 2);
      return setTimeout(function(){
        return func.apply(null, args);
      }, wait);
    };
  
    // Defers a function, scheduling it to run after the current call stack has
    // cleared.
    _.defer = _.partial(_.delay, _, 1);
  
    // Returns a function, that, when invoked, will only be triggered at most once
    // during a given window of time. Normally, the throttled function will run
    // as much as it can, without ever going more than once per `wait` duration;
    // but if you'd like to disable the execution on the leading edge, pass
    // `{leading: false}`. To disable execution on the trailing edge, ditto.
    _.throttle = function(func, wait, options) {
      var context, args, result;
      var timeout = null;
      var previous = 0;
      if (!options) options = {};
      var later = function() {
        previous = options.leading === false ? 0 : _.now();
        timeout = null;
        result = func.apply(context, args);
        if (!timeout) context = args = null;
      };
      return function() {
        var now = _.now();
        if (!previous && options.leading === false) previous = now;
        var remaining = wait - (now - previous);
        context = this;
        args = arguments;
        if (remaining <= 0 || remaining > wait) {
          if (timeout) {
            clearTimeout(timeout);
            timeout = null;
          }
          previous = now;
          result = func.apply(context, args);
          if (!timeout) context = args = null;
        } else if (!timeout && options.trailing !== false) {
          timeout = setTimeout(later, remaining);
        }
        return result;
      };
    };
  
    // Returns a function, that, as long as it continues to be invoked, will not
    // be triggered. The function will be called after it stops being called for
    // N milliseconds. If `immediate` is passed, trigger the function on the
    // leading edge, instead of the trailing.
    _.debounce = function(func, wait, immediate) {
      var timeout, args, context, timestamp, result;
  
      var later = function() {
        var last = _.now() - timestamp;
  
        if (last < wait && last >= 0) {
          timeout = setTimeout(later, wait - last);
        } else {
          timeout = null;
          if (!immediate) {
            result = func.apply(context, args);
            if (!timeout) context = args = null;
          }
        }
      };
  
      return function() {
        context = this;
        args = arguments;
        timestamp = _.now();
        var callNow = immediate && !timeout;
        if (!timeout) timeout = setTimeout(later, wait);
        if (callNow) {
          result = func.apply(context, args);
          context = args = null;
        }
  
        return result;
      };
    };
  
    // Returns the first function passed as an argument to the second,
    // allowing you to adjust arguments, run code before and after, and
    // conditionally execute the original function.
    _.wrap = function(func, wrapper) {
      return _.partial(wrapper, func);
    };
  
    // Returns a negated version of the passed-in predicate.
    _.negate = function(predicate) {
      return function() {
        return !predicate.apply(this, arguments);
      };
    };
  
    // Returns a function that is the composition of a list of functions, each
    // consuming the return value of the function that follows.
    _.compose = function() {
      var args = arguments;
      var start = args.length - 1;
      return function() {
        var i = start;
        var result = args[start].apply(this, arguments);
        while (i--) result = args[i].call(this, result);
        return result;
      };
    };
  
    // Returns a function that will only be executed on and after the Nth call.
    _.after = function(times, func) {
      return function() {
        if (--times < 1) {
          return func.apply(this, arguments);
        }
      };
    };
  
    // Returns a function that will only be executed up to (but not including) the Nth call.
    _.before = function(times, func) {
      var memo;
      return function() {
        if (--times > 0) {
          memo = func.apply(this, arguments);
        }
        if (times <= 1) func = null;
        return memo;
      };
    };
  
    // Returns a function that will be executed at most one time, no matter how
    // often you call it. Useful for lazy initialization.
    _.once = _.partial(_.before, 2);
  
    // Object Functions
    // ----------------
  
    // Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.
    var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');
    var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',
                        'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
  
    function collectNonEnumProps(obj, keys) {
      var nonEnumIdx = nonEnumerableProps.length;
      var constructor = obj.constructor;
      var proto = (_.isFunction(constructor) && constructor.prototype) || ObjProto;
  
      // Constructor is a special case.
      var prop = 'constructor';
      if (_.has(obj, prop) && !_.contains(keys, prop)) keys.push(prop);
  
      while (nonEnumIdx--) {
        prop = nonEnumerableProps[nonEnumIdx];
        if (prop in obj && obj[prop] !== proto[prop] && !_.contains(keys, prop)) {
          keys.push(prop);
        }
      }
    }
  
    // Retrieve the names of an object's own properties.
    // Delegates to **ECMAScript 5**'s native `Object.keys`
    _.keys = function(obj) {
      if (!_.isObject(obj)) return [];
      if (nativeKeys) return nativeKeys(obj);
      var keys = [];
      for (var key in obj) if (_.has(obj, key)) keys.push(key);
      // Ahem, IE < 9.
      if (hasEnumBug) collectNonEnumProps(obj, keys);
      return keys;
    };
  
    // Retrieve all the property names of an object.
    _.allKeys = function(obj) {
      if (!_.isObject(obj)) return [];
      var keys = [];
      for (var key in obj) keys.push(key);
      // Ahem, IE < 9.
      if (hasEnumBug) collectNonEnumProps(obj, keys);
      return keys;
    };
  
    // Retrieve the values of an object's properties.
    _.values = function(obj) {
      var keys = _.keys(obj);
      var length = keys.length;
      var values = Array(length);
      for (var i = 0; i < length; i++) {
        values[i] = obj[keys[i]];
      }
      return values;
    };
  
    // Returns the results of applying the iteratee to each element of the object
    // In contrast to _.map it returns an object
    _.mapObject = function(obj, iteratee, context) {
      iteratee = cb(iteratee, context);
      var keys =  _.keys(obj),
            length = keys.length,
            results = {},
            currentKey;
        for (var index = 0; index < length; index++) {
          currentKey = keys[index];
          results[currentKey] = iteratee(obj[currentKey], currentKey, obj);
        }
        return results;
    };
  
    // Convert an object into a list of `[key, value]` pairs.
    _.pairs = function(obj) {
      var keys = _.keys(obj);
      var length = keys.length;
      var pairs = Array(length);
      for (var i = 0; i < length; i++) {
        pairs[i] = [keys[i], obj[keys[i]]];
      }
      return pairs;
    };
  
    // Invert the keys and values of an object. The values must be serializable.
    _.invert = function(obj) {
      var result = {};
      var keys = _.keys(obj);
      for (var i = 0, length = keys.length; i < length; i++) {
        result[obj[keys[i]]] = keys[i];
      }
      return result;
    };
  
    // Return a sorted list of the function names available on the object.
    // Aliased as `methods`
    _.functions = _.methods = function(obj) {
      var names = [];
      for (var key in obj) {
        if (_.isFunction(obj[key])) names.push(key);
      }
      return names.sort();
    };
  
    // Extend a given object with all the properties in passed-in object(s).
    _.extend = createAssigner(_.allKeys);
  
    // Assigns a given object with all the own properties in the passed-in object(s)
    // (https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
    _.extendOwn = _.assign = createAssigner(_.keys);
  
    // Returns the first key on an object that passes a predicate test
    _.findKey = function(obj, predicate, context) {
      predicate = cb(predicate, context);
      var keys = _.keys(obj), key;
      for (var i = 0, length = keys.length; i < length; i++) {
        key = keys[i];
        if (predicate(obj[key], key, obj)) return key;
      }
    };
  
    // Return a copy of the object only containing the whitelisted properties.
    _.pick = function(object, oiteratee, context) {
      var result = {}, obj = object, iteratee, keys;
      if (obj == null) return result;
      if (_.isFunction(oiteratee)) {
        keys = _.allKeys(obj);
        iteratee = optimizeCb(oiteratee, context);
      } else {
        keys = flatten(arguments, false, false, 1);
        iteratee = function(value, key, obj) { return key in obj; };
        obj = Object(obj);
      }
      for (var i = 0, length = keys.length; i < length; i++) {
        var key = keys[i];
        var value = obj[key];
        if (iteratee(value, key, obj)) result[key] = value;
      }
      return result;
    };
  
     // Return a copy of the object without the blacklisted properties.
    _.omit = function(obj, iteratee, context) {
      if (_.isFunction(iteratee)) {
        iteratee = _.negate(iteratee);
      } else {
        var keys = _.map(flatten(arguments, false, false, 1), String);
        iteratee = function(value, key) {
          return !_.contains(keys, key);
        };
      }
      return _.pick(obj, iteratee, context);
    };
  
    // Fill in a given object with default properties.
    _.defaults = createAssigner(_.allKeys, true);
  
    // Creates an object that inherits from the given prototype object.
    // If additional properties are provided then they will be added to the
    // created object.
    _.create = function(prototype, props) {
      var result = baseCreate(prototype);
      if (props) _.extendOwn(result, props);
      return result;
    };
  
    // Create a (shallow-cloned) duplicate of an object.
    _.clone = function(obj) {
      if (!_.isObject(obj)) return obj;
      return _.isArray(obj) ? obj.slice() : _.extend({}, obj);
    };
  
    // Invokes interceptor with the obj, and then returns obj.
    // The primary purpose of this method is to "tap into" a method chain, in
    // order to perform operations on intermediate results within the chain.
    _.tap = function(obj, interceptor) {
      interceptor(obj);
      return obj;
    };
  
    // Returns whether an object has a given set of `key:value` pairs.
    _.isMatch = function(object, attrs) {
      var keys = _.keys(attrs), length = keys.length;
      if (object == null) return !length;
      var obj = Object(object);
      for (var i = 0; i < length; i++) {
        var key = keys[i];
        if (attrs[key] !== obj[key] || !(key in obj)) return false;
      }
      return true;
    };
  
  
    // Internal recursive comparison function for `isEqual`.
    var eq = function(a, b, aStack, bStack) {
      // Identical objects are equal. `0 === -0`, but they aren't identical.
      // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).
      if (a === b) return a !== 0 || 1 / a === 1 / b;
      // A strict comparison is necessary because `null == undefined`.
      if (a == null || b == null) return a === b;
      // Unwrap any wrapped objects.
      if (a instanceof _) a = a._wrapped;
      if (b instanceof _) b = b._wrapped;
      // Compare `[[Class]]` names.
      var className = toString.call(a);
      if (className !== toString.call(b)) return false;
      switch (className) {
        // Strings, numbers, regular expressions, dates, and booleans are compared by value.
        case '[object RegExp]':
        // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')
        case '[object String]':
          // Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
          // equivalent to `new String("5")`.
          return '' + a === '' + b;
        case '[object Number]':
          // `NaN`s are equivalent, but non-reflexive.
          // Object(NaN) is equivalent to NaN
          if (+a !== +a) return +b !== +b;
          // An `egal` comparison is performed for other numeric values.
          return +a === 0 ? 1 / +a === 1 / b : +a === +b;
        case '[object Date]':
        case '[object Boolean]':
          // Coerce dates and booleans to numeric primitive values. Dates are compared by their
          // millisecond representations. Note that invalid dates with millisecond representations
          // of `NaN` are not equivalent.
          return +a === +b;
      }
  
      var areArrays = className === '[object Array]';
      if (!areArrays) {
        if (typeof a != 'object' || typeof b != 'object') return false;
  
        // Objects with different constructors are not equivalent, but `Object`s or `Array`s
        // from different frames are.
        var aCtor = a.constructor, bCtor = b.constructor;
        if (aCtor !== bCtor && !(_.isFunction(aCtor) && aCtor instanceof aCtor &&
                                 _.isFunction(bCtor) && bCtor instanceof bCtor)
                            && ('constructor' in a && 'constructor' in b)) {
          return false;
        }
      }
      // Assume equality for cyclic structures. The algorithm for detecting cyclic
      // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
  
      // Initializing stack of traversed objects.
      // It's done here since we only need them for objects and arrays comparison.
      aStack = aStack || [];
      bStack = bStack || [];
      var length = aStack.length;
      while (length--) {
        // Linear search. Performance is inversely proportional to the number of
        // unique nested structures.
        if (aStack[length] === a) return bStack[length] === b;
      }
  
      // Add the first object to the stack of traversed objects.
      aStack.push(a);
      bStack.push(b);
  
      // Recursively compare objects and arrays.
      if (areArrays) {
        // Compare array lengths to determine if a deep comparison is necessary.
        length = a.length;
        if (length !== b.length) return false;
        // Deep compare the contents, ignoring non-numeric properties.
        while (length--) {
          if (!eq(a[length], b[length], aStack, bStack)) return false;
        }
      } else {
        // Deep compare objects.
        var keys = _.keys(a), key;
        length = keys.length;
        // Ensure that both objects contain the same number of properties before comparing deep equality.
        if (_.keys(b).length !== length) return false;
        while (length--) {
          // Deep compare each member
          key = keys[length];
          if (!(_.has(b, key) && eq(a[key], b[key], aStack, bStack))) return false;
        }
      }
      // Remove the first object from the stack of traversed objects.
      aStack.pop();
      bStack.pop();
      return true;
    };
  
    // Perform a deep comparison to check if two objects are equal.
    _.isEqual = function(a, b) {
      return eq(a, b);
    };
  
    // Is a given array, string, or object empty?
    // An "empty" object has no enumerable own-properties.
    _.isEmpty = function(obj) {
      if (obj == null) return true;
      if (isArrayLike(obj) && (_.isArray(obj) || _.isString(obj) || _.isArguments(obj))) return obj.length === 0;
      return _.keys(obj).length === 0;
    };
  
    // Is a given value a DOM element?
    _.isElement = function(obj) {
      return !!(obj && obj.nodeType === 1);
    };
  
    // Is a given value an array?
    // Delegates to ECMA5's native Array.isArray
    _.isArray = nativeIsArray || function(obj) {
      return toString.call(obj) === '[object Array]';
    };
  
    // Is a given variable an object?
    _.isObject = function(obj) {
      var type = typeof obj;
      return type === 'function' || type === 'object' && !!obj;
    };
  
    // Add some isType methods: isArguments, isFunction, isString, isNumber, isDate, isRegExp, isError.
    _.each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp', 'Error'], function(name) {
      _['is' + name] = function(obj) {
        return toString.call(obj) === '[object ' + name + ']';
      };
    });
  
    // Define a fallback version of the method in browsers (ahem, IE < 9), where
    // there isn't any inspectable "Arguments" type.
    if (!_.isArguments(arguments)) {
      _.isArguments = function(obj) {
        return _.has(obj, 'callee');
      };
    }
  
    // Optimize `isFunction` if appropriate. Work around some typeof bugs in old v8,
    // IE 11 (#1621), and in Safari 8 (#1929).
    if (typeof /./ != 'function' && typeof Int8Array != 'object') {
      _.isFunction = function(obj) {
        return typeof obj == 'function' || false;
      };
    }
  
    // Is a given object a finite number?
    _.isFinite = function(obj) {
      return isFinite(obj) && !isNaN(parseFloat(obj));
    };
  
    // Is the given value `NaN`? (NaN is the only number which does not equal itself).
    _.isNaN = function(obj) {
      return _.isNumber(obj) && obj !== +obj;
    };
  
    // Is a given value a boolean?
    _.isBoolean = function(obj) {
      return obj === true || obj === false || toString.call(obj) === '[object Boolean]';
    };
  
    // Is a given value equal to null?
    _.isNull = function(obj) {
      return obj === null;
    };
  
    // Is a given variable undefined?
    _.isUndefined = function(obj) {
      return obj === void 0;
    };
  
    // Shortcut function for checking if an object has a given property directly
    // on itself (in other words, not on a prototype).
    _.has = function(obj, key) {
      return obj != null && hasOwnProperty.call(obj, key);
    };
  
    // Utility Functions
    // -----------------
  
    // Run Underscore.js in *noConflict* mode, returning the `_` variable to its
    // previous owner. Returns a reference to the Underscore object.
    _.noConflict = function() {
      root._ = previousUnderscore;
      return this;
    };
  
    // Keep the identity function around for default iteratees.
    _.identity = function(value) {
      return value;
    };
  
    // Predicate-generating functions. Often useful outside of Underscore.
    _.constant = function(value) {
      return function() {
        return value;
      };
    };
  
    _.noop = function(){};
  
    _.property = property;
  
    // Generates a function for a given object that returns a given property.
    _.propertyOf = function(obj) {
      return obj == null ? function(){} : function(key) {
        return obj[key];
      };
    };
  
    // Returns a predicate for checking whether an object has a given set of
    // `key:value` pairs.
    _.matcher = _.matches = function(attrs) {
      attrs = _.extendOwn({}, attrs);
      return function(obj) {
        return _.isMatch(obj, attrs);
      };
    };
  
    // Run a function **n** times.
    _.times = function(n, iteratee, context) {
      var accum = Array(Math.max(0, n));
      iteratee = optimizeCb(iteratee, context, 1);
      for (var i = 0; i < n; i++) accum[i] = iteratee(i);
      return accum;
    };
  
    // Return a random integer between min and max (inclusive).
    _.random = function(min, max) {
      if (max == null) {
        max = min;
        min = 0;
      }
      return min + Math.floor(Math.random() * (max - min + 1));
    };
  
    // A (possibly faster) way to get the current timestamp as an integer.
    _.now = Date.now || function() {
      return new Date().getTime();
    };
  
     // List of HTML entities for escaping.
    var escapeMap = {
      '&': '&amp;',
      '<': '&lt;',
      '>': '&gt;',
      '"': '&quot;',
      "'": '&#x27;',
      '`': '&#x60;'
    };
    var unescapeMap = _.invert(escapeMap);
  
    // Functions for escaping and unescaping strings to/from HTML interpolation.
    var createEscaper = function(map) {
      var escaper = function(match) {
        return map[match];
      };
      // Regexes for identifying a key that needs to be escaped
      var source = '(?:' + _.keys(map).join('|') + ')';
      var testRegexp = RegExp(source);
      var replaceRegexp = RegExp(source, 'g');
      return function(string) {
        string = string == null ? '' : '' + string;
        return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;
      };
    };
    _.escape = createEscaper(escapeMap);
    _.unescape = createEscaper(unescapeMap);
  
    // If the value of the named `property` is a function then invoke it with the
    // `object` as context; otherwise, return it.
    _.result = function(object, property, fallback) {
      var value = object == null ? void 0 : object[property];
      if (value === void 0) {
        value = fallback;
      }
      return _.isFunction(value) ? value.call(object) : value;
    };
  
    // Generate a unique integer id (unique within the entire client session).
    // Useful for temporary DOM ids.
    var idCounter = 0;
    _.uniqueId = function(prefix) {
      var id = ++idCounter + '';
      return prefix ? prefix + id : id;
    };
  
    // By default, Underscore uses ERB-style template delimiters, change the
    // following template settings to use alternative delimiters.
    _.templateSettings = {
      evaluate    : /<%([\s\S]+?)%>/g,
      interpolate : /<%=([\s\S]+?)%>/g,
      escape      : /<%-([\s\S]+?)%>/g
    };
  
    // When customizing `templateSettings`, if you don't want to define an
    // interpolation, evaluation or escaping regex, we need one that is
    // guaranteed not to match.
    var noMatch = /(.)^/;
  
    // Certain characters need to be escaped so that they can be put into a
    // string literal.
    var escapes = {
      "'":      "'",
      '\\':     '\\',
      '\r':     'r',
      '\n':     'n',
      '\u2028': 'u2028',
      '\u2029': 'u2029'
    };
  
    var escaper = /\\|'|\r|\n|\u2028|\u2029/g;
  
    var escapeChar = function(match) {
      return '\\' + escapes[match];
    };
  
    // JavaScript micro-templating, similar to John Resig's implementation.
    // Underscore templating handles arbitrary delimiters, preserves whitespace,
    // and correctly escapes quotes within interpolated code.
    // NB: `oldSettings` only exists for backwards compatibility.
    _.template = function(text, settings, oldSettings) {
      if (!settings && oldSettings) settings = oldSettings;
      settings = _.defaults({}, settings, _.templateSettings);
  
      // Combine delimiters into one regular expression via alternation.
      var matcher = RegExp([
        (settings.escape || noMatch).source,
        (settings.interpolate || noMatch).source,
        (settings.evaluate || noMatch).source
      ].join('|') + '|$', 'g');
  
      // Compile the template source, escaping string literals appropriately.
      var index = 0;
      var source = "__p+='";
      text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {
        source += text.slice(index, offset).replace(escaper, escapeChar);
        index = offset + match.length;
  
        if (escape) {
          source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'";
        } else if (interpolate) {
          source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'";
        } else if (evaluate) {
          source += "';\n" + evaluate + "\n__p+='";
        }
  
        // Adobe VMs need the match returned to produce the correct offest.
        return match;
      });
      source += "';\n";
  
      // If a variable is not specified, place data values in local scope.
      if (!settings.variable) source = 'with(obj||{}){\n' + source + '}\n';
  
      source = "var __t,__p='',__j=Array.prototype.join," +
        "print=function(){__p+=__j.call(arguments,'');};\n" +
        source + 'return __p;\n';
  
      try {
        var render = new Function(settings.variable || 'obj', '_', source);
      } catch (e) {
        e.source = source;
        throw e;
      }
  
      var template = function(data) {
        return render.call(this, data, _);
      };
  
      // Provide the compiled source as a convenience for precompilation.
      var argument = settings.variable || 'obj';
      template.source = 'function(' + argument + '){\n' + source + '}';
  
      return template;
    };
  
    // Add a "chain" function. Start chaining a wrapped Underscore object.
    _.chain = function(obj) {
      var instance = _(obj);
      instance._chain = true;
      return instance;
    };
  
    // OOP
    // ---------------
    // If Underscore is called as a function, it returns a wrapped object that
    // can be used OO-style. This wrapper holds altered versions of all the
    // underscore functions. Wrapped objects may be chained.
  
    // Helper function to continue chaining intermediate results.
    var result = function(instance, obj) {
      return instance._chain ? _(obj).chain() : obj;
    };
  
    // Add your own custom functions to the Underscore object.
    _.mixin = function(obj) {
      _.each(_.functions(obj), function(name) {
        var func = _[name] = obj[name];
        _.prototype[name] = function() {
          var args = [this._wrapped];
          push.apply(args, arguments);
          return result(this, func.apply(_, args));
        };
      });
    };
  
    // Add all of the Underscore functions to the wrapper object.
    _.mixin(_);
  
    // Add all mutator Array functions to the wrapper.
    _.each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
      var method = ArrayProto[name];
      _.prototype[name] = function() {
        var obj = this._wrapped;
        method.apply(obj, arguments);
        if ((name === 'shift' || name === 'splice') && obj.length === 0) delete obj[0];
        return result(this, obj);
      };
    });
  
    // Add all accessor Array functions to the wrapper.
    _.each(['concat', 'join', 'slice'], function(name) {
      var method = ArrayProto[name];
      _.prototype[name] = function() {
        return result(this, method.apply(this._wrapped, arguments));
      };
    });
  
    // Extracts the result from a wrapped and chained object.
    _.prototype.value = function() {
      return this._wrapped;
    };
  
    // Provide unwrapping proxy for some methods used in engine operations
    // such as arithmetic and JSON stringification.
    _.prototype.valueOf = _.prototype.toJSON = _.prototype.value;
  
    _.prototype.toString = function() {
      return '' + this._wrapped;
    };
  
    // AMD registration happens at the end for compatibility with AMD loaders
    // that may not enforce next-turn semantics on modules. Even though general
    // practice for AMD registration is to be anonymous, underscore registers
    // as a named module because, like jQuery, it is a base library that is
    // popular enough to be bundled in a third party lib, but not be part of
    // an AMD load request. Those cases could generate an error when an
    // anonymous define() is called outside of a loader request.
    if (true) {
      !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function() {
        return _;
      }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  				__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
    }
  }.call(this));
  
  
  /***/ }),
  /* 74 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_methods__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components__ = __webpack_require__(2);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_qrcode__ = __webpack_require__(40);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_qrcode___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_qrcode__);
  
  
  
  
  const ParcelCreated = {
      components: __WEBPACK_IMPORTED_MODULE_1__components__["a" /* default */],
      template: `
                  <div class="page page__home">
                  
                      <main>
                      
                          <h1>Ihre Sendung wurde erstellt! - Buchungsübersicht</h1>
                          
                          <div class="qrcode">
                              <h4 class="qrcode__head">Scannen Sie den folgenden Barcode um den aktuellen Status ihrer Sendung zu verfolgen:</h4>
                          
                              <canvas id="qrcode" height="200" width="200">
                              
                              </canvas>
                          </div>
                          
                          <div class="details">
                              
                              <h4 class="details__head">Details</h4>
                              
                              <div class="details__addresses">
                              
                                  <parcel-details :parcel="details" :type="'receiver'"></parcel-details>
                                  <parcel-details :parcel="details" :type="'sender'"></parcel-details>
  
                              </div>
                          </div>
                      
                      </main>
                     
                      
                      
                      
                  </div>
                `,
      mounted(){
          this.checkLogin()
              .then(data => {
                  if(data && data.username){
                      this.isLoggedIn = true;
                      this.username = data.username;
                      this.$emit('logged-in');
                  }
                  else {
                      this.$router.push('/login');
                  }
              });
  
          this.getParcelDetails(this.$route.params.trackingNr)
              .then((response) => {
                  if(response.status === 200 && response.data && response.data.parcel){
                      this.details = response.data.parcel;
                  }
              });
  
          this.generateQRCode(this.$route.params.trackingNr, 'qrcode')
              .catch(err => {
                  console.error(err);
              });
      },
      data(){
          return {
              // Parcel details
              details: {},
              username: '',
              isLoggedIn: false
  
          }
      },
      methods: {
          checkLogin: __WEBPACK_IMPORTED_MODULE_0__common_methods__["b" /* checkLogin */],
          getParcelDetails: __WEBPACK_IMPORTED_MODULE_0__common_methods__["d" /* getParcelDetails */],
          generateQRCode: function (trackingNr, canvasId) {
              let baseUrl = window.location.protocol + '//' + window.location.host + '/#/tracking/' + trackingNr;
              return __WEBPACK_IMPORTED_MODULE_2_qrcode___default.a.toCanvas(document.getElementById(canvasId), baseUrl);
          }
      },
      computed: {
      }
  }
  
  /* harmony default export */ __webpack_exports__["a"] = (ParcelCreated);
  
  /***/ }),
  /* 75 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_methods__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components__ = __webpack_require__(2);
  
  
  
  const Parcel = {
      components: __WEBPACK_IMPORTED_MODULE_1__components__["a" /* default */],
      template: `
                  <div class="page page__home">
                  
                    <main>
                      
                          <h1>Paket - Sendungsnummer {{$route.params.trackingNr}}</h1>
                          
                          <div class="details">
                              
                              <h4 class="details__head">Details</h4>
                              
                               <div class="details_currentstep" v-if="details.currentStep">
                                  <h5>Letzte Station</h5>
                                  
                                  <step :details="details.currentStep" :type="details.currentStep.stepType"></step>
                              
                              </div>
                              
                              
                              <div class="details_nextstep" v-if="details.nextStep">
                                  <h5>Aktuelle Station</h5>
                                  
                                  <step :details="details.nextStep" :type="details.nextStep.stepType"></step>
                              
                              </div>
                          
                          </div>
                      
                      </main>
                     
                      
                      
                      
                  </div>
                `,
      mounted(){
  
          this.getParcelTracking(this.$route.params.trackingNr)
              .then((response) => {
                  if(response.status === 200 && response.data && response.data.parcel){
                      this.details = response.data.parcel;
                  }
              });
  
      },
      data(){
          return {
  
              // Parcel details
              details: {}
  
          }
      },
      methods: {
          getParcelTracking: __WEBPACK_IMPORTED_MODULE_0__common_methods__["f" /* getParcelTracking */]
      },
      computed: {
      }
  }
  
  /* harmony default export */ __webpack_exports__["a"] = (Parcel);
  
  /***/ })
  /******/ ]);