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;
  /******/
  /******/ 	// identity function for calling harmony imports with the correct context
  /******/ 	__webpack_require__.i = function(value) { return value; };
  /******/
  /******/ 	// 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 = 2);
  /******/ })
  /************************************************************************/
  /******/ ({
  
  /***/ "./node_modules/axios/index.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  module.exports = __webpack_require__("./node_modules/axios/lib/axios.js");
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/adapters/xhr.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
  var settle = __webpack_require__("./node_modules/axios/lib/core/settle.js");
  var buildURL = __webpack_require__("./node_modules/axios/lib/helpers/buildURL.js");
  var parseHeaders = __webpack_require__("./node_modules/axios/lib/helpers/parseHeaders.js");
  var isURLSameOrigin = __webpack_require__("./node_modules/axios/lib/helpers/isURLSameOrigin.js");
  var createError = __webpack_require__("./node_modules/axios/lib/core/createError.js");
  var btoa = (typeof window !== 'undefined' && window.btoa && window.btoa.bind(window)) || __webpack_require__("./node_modules/axios/lib/helpers/btoa.js");
  
  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 ("development" !== '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/mzabriskie/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));
  
        // Clean up request
        request = null;
      };
  
      // Handle timeout
      request.ontimeout = function handleTimeout() {
        reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED'));
  
        // 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__("./node_modules/axios/lib/helpers/cookies.js");
  
        // 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) {
          if (request.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);
    });
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/axios.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
  var bind = __webpack_require__("./node_modules/axios/lib/helpers/bind.js");
  var Axios = __webpack_require__("./node_modules/axios/lib/core/Axios.js");
  var defaults = __webpack_require__("./node_modules/axios/lib/defaults.js");
  
  /**
   * 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__("./node_modules/axios/lib/cancel/Cancel.js");
  axios.CancelToken = __webpack_require__("./node_modules/axios/lib/cancel/CancelToken.js");
  axios.isCancel = __webpack_require__("./node_modules/axios/lib/cancel/isCancel.js");
  
  // Expose all/spread
  axios.all = function all(promises) {
    return Promise.all(promises);
  };
  axios.spread = __webpack_require__("./node_modules/axios/lib/helpers/spread.js");
  
  module.exports = axios;
  
  // Allow use of default import syntax in TypeScript
  module.exports.default = axios;
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/cancel/Cancel.js":
  /***/ (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;
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/cancel/CancelToken.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var Cancel = __webpack_require__("./node_modules/axios/lib/cancel/Cancel.js");
  
  /**
   * 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;
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/cancel/isCancel.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  module.exports = function isCancel(value) {
    return !!(value && value.__CANCEL__);
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/core/Axios.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var defaults = __webpack_require__("./node_modules/axios/lib/defaults.js");
  var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
  var InterceptorManager = __webpack_require__("./node_modules/axios/lib/core/InterceptorManager.js");
  var dispatchRequest = __webpack_require__("./node_modules/axios/lib/core/dispatchRequest.js");
  var isAbsoluteURL = __webpack_require__("./node_modules/axios/lib/helpers/isAbsoluteURL.js");
  var combineURLs = __webpack_require__("./node_modules/axios/lib/helpers/combineURLs.js");
  
  /**
   * 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, this.defaults, { method: 'get' }, config);
  
    // Support baseURL config
    if (config.baseURL && !isAbsoluteURL(config.url)) {
      config.url = combineURLs(config.baseURL, config.url);
    }
  
    // 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'], 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;
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/core/InterceptorManager.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
  
  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;
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/core/createError.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var enhanceError = __webpack_require__("./node_modules/axios/lib/core/enhanceError.js");
  
  /**
   * Create an Error with the specified message, config, error code, and response.
   *
   * @param {string} message The error message.
   * @param {Object} config The config.
   * @param {string} [code] The error code (for example, 'ECONNABORTED').
   @ @param {Object} [response] The response.
   * @returns {Error} The created error.
   */
  module.exports = function createError(message, config, code, response) {
    var error = new Error(message);
    return enhanceError(error, config, code, response);
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/core/dispatchRequest.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
  var transformData = __webpack_require__("./node_modules/axios/lib/core/transformData.js");
  var isCancel = __webpack_require__("./node_modules/axios/lib/cancel/isCancel.js");
  var defaults = __webpack_require__("./node_modules/axios/lib/defaults.js");
  
  /**
   * 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);
  
    // 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);
    });
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/core/enhanceError.js":
  /***/ (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} [response] The response.
   * @returns {Error} The error.
   */
  module.exports = function enhanceError(error, config, code, response) {
    error.config = config;
    if (code) {
      error.code = code;
    }
    error.response = response;
    return error;
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/core/settle.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var createError = __webpack_require__("./node_modules/axios/lib/core/createError.js");
  
  /**
   * 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
      ));
    }
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/core/transformData.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
  
  /**
   * 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;
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/defaults.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  /* WEBPACK VAR INJECTION */(function(process) {
  
  var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
  var normalizeHeaderName = __webpack_require__("./node_modules/axios/lib/helpers/normalizeHeaderName.js");
  
  var PROTECTION_PREFIX = /^\)\]\}',?\n/;
  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__("./node_modules/axios/lib/adapters/xhr.js");
    } else if (typeof process !== 'undefined') {
      // For node use HTTP adapter
      adapter = __webpack_require__("./node_modules/axios/lib/adapters/xhr.js");
    }
    return adapter;
  }
  
  var defaults = {
    adapter: getDefaultAdapter(),
  
    transformRequest: [function transformRequest(data, headers) {
      normalizeHeaderName(headers, 'Content-Type');
      if (utils.isFormData(data) ||
        utils.isArrayBuffer(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') {
        data = data.replace(PROTECTION_PREFIX, '');
        try {
          data = JSON.parse(data);
        } catch (e) { /* Ignore */ }
      }
      return data;
    }],
  
    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 forEachMehtodNoData(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__("./node_modules/process/browser.js")))
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/helpers/bind.js":
  /***/ (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);
    };
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/helpers/btoa.js":
  /***/ (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;
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/helpers/buildURL.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
  
  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 + '[]';
        }
  
        if (!utils.isArray(val)) {
          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;
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/helpers/combineURLs.js":
  /***/ (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 baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '');
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/helpers/cookies.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
  
  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() {}
      };
    })()
  );
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js":
  /***/ (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);
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
  
  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;
      };
    })()
  );
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
  
  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];
      }
    });
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/helpers/parseHeaders.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var utils = __webpack_require__("./node_modules/axios/lib/utils.js");
  
  /**
   * 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) {
        parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
      }
    });
  
    return parsed;
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/helpers/spread.js":
  /***/ (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);
    };
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/axios/lib/utils.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var bind = __webpack_require__("./node_modules/axios/lib/helpers/bind.js");
  
  /*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:
   *  typeof document.createElement -> undefined
   */
  function isStandardBrowserEnv() {
    return (
      typeof window !== 'undefined' &&
      typeof document !== 'undefined' &&
      typeof document.createElement === 'function'
    );
  }
  
  /**
   * 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' && !isArray(obj)) {
      /*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,
    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
  };
  
  
  /***/ }),
  
  /***/ "./node_modules/babel-loader/lib/index.js?cacheDirectory!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/components/Application.vue":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _accountDetails;
  
  var _validators = __webpack_require__("./node_modules/vuelidate/lib/validators/index.js");
  
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  
  exports.default = {
    data: function data() {
      return {
        showStep1Errors: false,
        showStep2Errors: false,
        showStep3Errors: false,
        accountTypes: ["Cheque", "Savings"],
        packageOptions: [],
        unFilteredpackageOptions: [],
        selectedPackageOption: "",
        locations: [],
        selectedLocation: "",
        applicationMeta: {
          applicationId: 0,
          personalDetailsId: 0,
          serviceTypeId: 0,
          bankingDetailsId: 0
        },
        basicDetails: {
          name: "",
          surname: "",
          phone: "",
          location: "",
          serviceType: "",
          package: ""
        },
        accountDetails: {
          email: "",
          password: "",
          repeatPassword: ""
        }
      };
    },
  
    validations: {
      basicDetails: {
        name: { required: _validators.required },
        surname: { required: _validators.required },
        phone: { required: _validators.required },
        package: { required: _validators.required },
        location: { required: _validators.required },
        serviceType: { required: _validators.required }
      },
      accountDetails: (_accountDetails = {
        email: { required: _validators.required },
        password: { required: _validators.required }
      }, _defineProperty(_accountDetails, "password", {
        required: _validators.required,
        minLength: (0, _validators.minLength)(6)
      }), _defineProperty(_accountDetails, "repeatPassword", {
        required: _validators.required,
        sameAsPassword: (0, _validators.sameAs)("password")
      }), _accountDetails)
    },
    mounted: function mounted() {
      this.setpackgeTypeFromParam();
      this.getLookups();
    },
  
    methods: {
      placeApplication: function placeApplication() {
        var _this = this;
  
        axios.post("./api/place-application", Object.assign({}, this.basicDetails, this.accountDetails)).then(function (response) {
          _this.$noty.success("Application Placed! We shall get back to you.", {
            theme: "metroui",
            layout: "center"
          }).on("onClose", function () {
            window.location.href = "../";
          });
        }).catch(function (error) {
          _this.$noty.error("Oops! An error has occured. Please try again.", {
            theme: "metroui",
            layout: "center"
          });
        });
      },
      validateStep1: function validateStep1($v) {
        this.showStep1Errors = true;
        return !$v.basicDetails.name.$invalid && !$v.basicDetails.surname.$invalid && !$v.basicDetails.package.$invalid && !$v.basicDetails.location.$invalid && !$v.basicDetails.serviceType.$invalid;
      },
      validateStep2: function validateStep2($v) {
        this.showStep2Errors = true;
  
        return !$v.accountDetails.email.$invalid && !$v.accountDetails.password.$invalid && !$v.accountDetails.repeatPassword.$invalid && !this.passwordNotConfirmed;
      },
      getPackagesFromServer: function getPackagesFromServer() {
        var _this2 = this;
  
        axios.get("/packages?type=").then(function (resp) {
          _this2.packageOptions = [];
          resp.data.filter(function (item) {
            if (item.type == _this2.basicDetails.serviceType) {
              _this2.packageOptions.push(item);
            }
          });
          _this2.setSelectedPackgeFromParam();
        });
      },
      getFtthLocationsFromServer: function getFtthLocationsFromServer() {
        var _this3 = this;
  
        axios.get("/api/ftth-locations").then(function (resp) {
          _this3.locations = resp.data;
          _this3.setSelectedLocationFromParam();
        });
      },
      getLookups: function getLookups() {
        this.getPackagesFromServer();
        this.getFtthLocationsFromServer();
      },
      getParameterByName: function getParameterByName(name, url) {
        if (!url) url = window.location.href;
        name = name.replace(/[\[\]]/g, "\\$&");
        var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
            results = regex.exec(url);
        if (!results) return null;
        if (!results[2]) return "";
        return decodeURIComponent(results[2].replace(/\+/g, " "));
      },
      setSelectedPackgeFromParam: function setSelectedPackgeFromParam() {
        var _this4 = this;
  
        this.packageOptions.forEach(function (item) {
          var packageParam = _this4.getParameterByName("package");
          if (packageParam) {
            _this4.selectedPackageOption = _this4.packageOptions.filter(function (pkg) {
              return pkg.id == packageParam;
            })[0];
          }
        });
      },
      setpackgeTypeFromParam: function setpackgeTypeFromParam() {
        var packageTypeParam = this.getParameterByName("type");
        if (packageTypeParam) {
          this.basicDetails.serviceType = packageTypeParam;
        }
      },
      setSelectedLocationFromParam: function setSelectedLocationFromParam() {
        var _this5 = this;
  
        this.packageOptions.forEach(function (item) {
          var locationParam = _this5.getParameterByName("location");
          if (locationParam) {
            _this5.selectedLocation = _this5.locations.filter(function (loc) {
              return loc.id == locationParam;
            })[0];
          }
        });
      }
    },
    computed: {
      passwordNotConfirmed: function passwordNotConfirmed() {
        return this.accountDetails.password != this.accountDetails.repeatPassword;
      },
      rules: function rules() {
        return this.basicDetails.adslCustomer ? "required" : "";
      }
    },
    watch: {
      selectedLocation: function selectedLocation(newValue, oldValue) {
        if (newValue) {
          this.basicDetails.location = newValue.id;
        } else {
          this.basicDetails.location = oldValue.id;
        }
      },
      selectedPackageOption: function selectedPackageOption(newValue, oldValue) {
        if (newValue && newValue.id) {
          this.basicDetails.package = newValue.id;
        } else if (oldValue && oldValue.id) {
          this.basicDetails.package = oldValue.id;
        } else {
          this.basicDetails.package = "";
        }
      },
      "basicDetails.serviceType": function basicDetailsServiceType(newValue, oldValue) {
        this.getPackagesFromServer();
      }
    }
  };
  
  /***/ }),
  
  /***/ "./node_modules/babel-loader/lib/index.js?cacheDirectory!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/components/admin/Admin-app.vue":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  
  exports.default = {
    data: function data() {
      return {
        drawer: true,
        items: [{ title: 'Home', icon: 'dashboard' }, { title: 'About', icon: 'question_answer' }],
        mini: true,
        right: true
      };
    }
  };
  
  /***/ }),
  
  /***/ "./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-2bd5e1aa\",\"scoped\":true,\"hasInlineConfig\":true}!./node_modules/sass-loader/lib/loader.js!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./resources/assets/js/components/Application.vue":
  /***/ (function(module, exports, __webpack_require__) {
  
  exports = module.exports = __webpack_require__("./node_modules/css-loader/lib/css-base.js")(false);
  // imports
  
  
  // module
  exports.push([module.i, "\n.form-group.error label.control-label[data-v-2bd5e1aa],\n.form-group.error .help-block[data-v-2bd5e1aa] {\n  color: #f44336;\n}\na[data-v-2bd5e1aa],\na[data-v-2bd5e1aa]:hover,\na[data-v-2bd5e1aa]:focus {\n  color: #b4cff9;\n}\n.container[data-v-2bd5e1aa] {\n  padding-top: 20px;\n}\n.section-container .section-title[data-v-2bd5e1aa] {\n  font-weight: 600;\n  font-size: 1.5rem;\n  color: rgba(0, 0, 0, 0.5);\n  margin-bottom: 5px;\n  margin-top: 15px;\n}\n.section-container .item-container[data-v-2bd5e1aa] {\n  display: -ms-flexbox;\n  display: flex;\n  -ms-flex-pack: justify;\n      justify-content: space-between;\n  -ms-flex-align: center;\n      align-items: center;\n  border-bottom: 1px solid rgba(0, 0, 0, 0.2);\n  padding: 5px 0;\n}\n.section-container .item-container .item-title[data-v-2bd5e1aa] {\n    font-size: 1.2rem;\n    font-weight: 300;\n    color: rgba(0, 0, 0, 0.5);\n}\n.section-container .item-container .item-content[data-v-2bd5e1aa] {\n    font-size: 1.2rem;\n    font-weight: 500;\n    color: rgba(0, 0, 0, 0.6);\n}\n.service-type[data-v-2bd5e1aa] {\n  margin-top: 27px !important;\n}\n.service-type label[data-v-2bd5e1aa] {\n    font-size: 11px;\n}\n.service-type .radio-container[data-v-2bd5e1aa] {\n    display: -ms-flexbox;\n    display: flex;\n    width: 100%;\n    -ms-flex-align: center;\n        align-items: center;\n}\n", ""]);
  
  // exports
  
  
  /***/ }),
  
  /***/ "./node_modules/css-loader/lib/css-base.js":
  /***/ (function(module, exports) {
  
  /*
  	MIT License http://www.opensource.org/licenses/mit-license.php
  	Author Tobias Koppers @sokra
  */
  // css base code, injected by the css-loader
  module.exports = function(useSourceMap) {
  	var list = [];
  
  	// return the list of modules as css string
  	list.toString = function toString() {
  		return this.map(function (item) {
  			var content = cssWithMappingToString(item, useSourceMap);
  			if(item[2]) {
  				return "@media " + item[2] + "{" + content + "}";
  			} else {
  				return content;
  			}
  		}).join("");
  	};
  
  	// import a list of modules into the list
  	list.i = function(modules, mediaQuery) {
  		if(typeof modules === "string")
  			modules = [[null, modules, ""]];
  		var alreadyImportedModules = {};
  		for(var i = 0; i < this.length; i++) {
  			var id = this[i][0];
  			if(typeof id === "number")
  				alreadyImportedModules[id] = true;
  		}
  		for(i = 0; i < modules.length; i++) {
  			var item = modules[i];
  			// skip already imported module
  			// this implementation is not 100% perfect for weird media query combinations
  			//  when a module is imported multiple times with different media queries.
  			//  I hope this will never occur (Hey this way we have smaller bundles)
  			if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
  				if(mediaQuery && !item[2]) {
  					item[2] = mediaQuery;
  				} else if(mediaQuery) {
  					item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
  				}
  				list.push(item);
  			}
  		}
  	};
  	return list;
  };
  
  function cssWithMappingToString(item, useSourceMap) {
  	var content = item[1] || '';
  	var cssMapping = item[3];
  	if (!cssMapping) {
  		return content;
  	}
  
  	if (useSourceMap && typeof btoa === 'function') {
  		var sourceMapping = toComment(cssMapping);
  		var sourceURLs = cssMapping.sources.map(function (source) {
  			return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
  		});
  
  		return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  	}
  
  	return [content].join('\n');
  }
  
  // Adapted from convert-source-map (MIT)
  function toComment(sourceMap) {
  	// eslint-disable-next-line no-undef
  	var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  	var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  
  	return '/*# ' + data + ' */';
  }
  
  
  /***/ }),
  
  /***/ "./node_modules/process/browser.js":
  /***/ (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; };
  
  
  /***/ }),
  
  /***/ "./node_modules/setimmediate/setImmediate.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  /* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
      "use strict";
  
      if (global.setImmediate) {
          return;
      }
  
      var nextHandle = 1; // Spec says greater than zero
      var tasksByHandle = {};
      var currentlyRunningATask = false;
      var doc = global.document;
      var registerImmediate;
  
      function setImmediate(callback) {
        // Callback can either be a function or a string
        if (typeof callback !== "function") {
          callback = new Function("" + callback);
        }
        // Copy function arguments
        var args = new Array(arguments.length - 1);
        for (var i = 0; i < args.length; i++) {
            args[i] = arguments[i + 1];
        }
        // Store and register the task
        var task = { callback: callback, args: args };
        tasksByHandle[nextHandle] = task;
        registerImmediate(nextHandle);
        return nextHandle++;
      }
  
      function clearImmediate(handle) {
          delete tasksByHandle[handle];
      }
  
      function run(task) {
          var callback = task.callback;
          var args = task.args;
          switch (args.length) {
          case 0:
              callback();
              break;
          case 1:
              callback(args[0]);
              break;
          case 2:
              callback(args[0], args[1]);
              break;
          case 3:
              callback(args[0], args[1], args[2]);
              break;
          default:
              callback.apply(undefined, args);
              break;
          }
      }
  
      function runIfPresent(handle) {
          // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
          // So if we're currently running a task, we'll need to delay this invocation.
          if (currentlyRunningATask) {
              // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
              // "too much recursion" error.
              setTimeout(runIfPresent, 0, handle);
          } else {
              var task = tasksByHandle[handle];
              if (task) {
                  currentlyRunningATask = true;
                  try {
                      run(task);
                  } finally {
                      clearImmediate(handle);
                      currentlyRunningATask = false;
                  }
              }
          }
      }
  
      function installNextTickImplementation() {
          registerImmediate = function(handle) {
              process.nextTick(function () { runIfPresent(handle); });
          };
      }
  
      function canUsePostMessage() {
          // The test against `importScripts` prevents this implementation from being installed inside a web worker,
          // where `global.postMessage` means something completely different and can't be used for this purpose.
          if (global.postMessage && !global.importScripts) {
              var postMessageIsAsynchronous = true;
              var oldOnMessage = global.onmessage;
              global.onmessage = function() {
                  postMessageIsAsynchronous = false;
              };
              global.postMessage("", "*");
              global.onmessage = oldOnMessage;
              return postMessageIsAsynchronous;
          }
      }
  
      function installPostMessageImplementation() {
          // Installs an event handler on `global` for the `message` event: see
          // * https://developer.mozilla.org/en/DOM/window.postMessage
          // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
  
          var messagePrefix = "setImmediate$" + Math.random() + "$";
          var onGlobalMessage = function(event) {
              if (event.source === global &&
                  typeof event.data === "string" &&
                  event.data.indexOf(messagePrefix) === 0) {
                  runIfPresent(+event.data.slice(messagePrefix.length));
              }
          };
  
          if (global.addEventListener) {
              global.addEventListener("message", onGlobalMessage, false);
          } else {
              global.attachEvent("onmessage", onGlobalMessage);
          }
  
          registerImmediate = function(handle) {
              global.postMessage(messagePrefix + handle, "*");
          };
      }
  
      function installMessageChannelImplementation() {
          var channel = new MessageChannel();
          channel.port1.onmessage = function(event) {
              var handle = event.data;
              runIfPresent(handle);
          };
  
          registerImmediate = function(handle) {
              channel.port2.postMessage(handle);
          };
      }
  
      function installReadyStateChangeImplementation() {
          var html = doc.documentElement;
          registerImmediate = function(handle) {
              // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
              // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
              var script = doc.createElement("script");
              script.onreadystatechange = function () {
                  runIfPresent(handle);
                  script.onreadystatechange = null;
                  html.removeChild(script);
                  script = null;
              };
              html.appendChild(script);
          };
      }
  
      function installSetTimeoutImplementation() {
          registerImmediate = function(handle) {
              setTimeout(runIfPresent, 0, handle);
          };
      }
  
      // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
      var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
      attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
  
      // Don't get fooled by e.g. browserify environments.
      if ({}.toString.call(global.process) === "[object process]") {
          // For Node.js before 0.9
          installNextTickImplementation();
  
      } else if (canUsePostMessage()) {
          // For non-IE10 modern browsers
          installPostMessageImplementation();
  
      } else if (global.MessageChannel) {
          // For web workers, where supported
          installMessageChannelImplementation();
  
      } else if (doc && "onreadystatechange" in doc.createElement("script")) {
          // For IE 6–8
          installReadyStateChangeImplementation();
  
      } else {
          // For older browsers
          installSetTimeoutImplementation();
      }
  
      attachTo.setImmediate = setImmediate;
      attachTo.clearImmediate = clearImmediate;
  }(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
  
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("./node_modules/webpack/buildin/global.js"), __webpack_require__("./node_modules/process/browser.js")))
  
  /***/ }),
  
  /***/ "./node_modules/sweetalert2/dist/sweetalert2.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  /*!
   * sweetalert2 v6.11.5
   * Released under the MIT License.
   */
  (function (global, factory) {
  	 true ? module.exports = factory() :
  	typeof define === 'function' && define.amd ? define(factory) :
  	(global.Sweetalert2 = factory());
  }(this, (function () { 'use strict';
  
  var defaultParams = {
    title: '',
    titleText: '',
    text: '',
    html: '',
    type: null,
    customClass: '',
    target: 'body',
    animation: true,
    allowOutsideClick: true,
    allowEscapeKey: true,
    allowEnterKey: true,
    showConfirmButton: true,
    showCancelButton: false,
    preConfirm: null,
    confirmButtonText: 'OK',
    confirmButtonAriaLabel: '',
    confirmButtonColor: '#3085d6',
    confirmButtonClass: null,
    cancelButtonText: 'Cancel',
    cancelButtonAriaLabel: '',
    cancelButtonColor: '#aaa',
    cancelButtonClass: null,
    buttonsStyling: true,
    reverseButtons: false,
    focusConfirm: true,
    focusCancel: false,
    showCloseButton: false,
    closeButtonAriaLabel: 'Close this dialog',
    showLoaderOnConfirm: false,
    imageUrl: null,
    imageWidth: null,
    imageHeight: null,
    imageAlt: '',
    imageClass: null,
    timer: null,
    width: 500,
    padding: 20,
    background: '#fff',
    input: null,
    inputPlaceholder: '',
    inputValue: '',
    inputOptions: {},
    inputAutoTrim: true,
    inputClass: null,
    inputAttributes: {},
    inputValidator: null,
    grow: false,
    position: 'center',
    progressSteps: [],
    currentProgressStep: null,
    progressStepsDistance: '40px',
    onBeforeOpen: null,
    onOpen: null,
    onClose: null,
    useRejections: true
  };
  
  var swalPrefix = 'swal2-';
  
  var prefix = function prefix(items) {
    var result = {};
    for (var i in items) {
      result[items[i]] = swalPrefix + items[i];
    }
    return result;
  };
  
  var swalClasses = prefix(['container', 'shown', 'iosfix', 'modal', 'overlay', 'fade', 'show', 'hide', 'noanimation', 'close', 'title', 'content', 'buttonswrapper', 'confirm', 'cancel', 'icon', 'image', 'input', 'file', 'range', 'select', 'radio', 'checkbox', 'textarea', 'inputerror', 'validationerror', 'progresssteps', 'activeprogressstep', 'progresscircle', 'progressline', 'loading', 'styled', 'top', 'top-left', 'top-right', 'center', 'center-left', 'center-right', 'bottom', 'bottom-left', 'bottom-right', 'grow-row', 'grow-column', 'grow-fullscreen']);
  
  var iconTypes = prefix(['success', 'warning', 'info', 'question', 'error']);
  
  var consolePrefix = 'SweetAlert2:';
  
  /*
   * Set hover, active and focus-states for buttons (source: http://www.sitepoint.com/javascript-generate-lighter-darker-color)
   */
  var colorLuminance = function colorLuminance(hex, lum) {
    // Validate hex string
    hex = String(hex).replace(/[^0-9a-f]/gi, '');
    if (hex.length < 6) {
      hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
    }
    lum = lum || 0;
  
    // Convert to decimal and change luminosity
    var rgb = '#';
    for (var i = 0; i < 3; i++) {
      var c = parseInt(hex.substr(i * 2, 2), 16);
      c = Math.round(Math.min(Math.max(0, c + c * lum), 255)).toString(16);
      rgb += ('00' + c).substr(c.length);
    }
  
    return rgb;
  };
  
  var uniqueArray = function uniqueArray(arr) {
    var result = [];
    for (var i in arr) {
      if (result.indexOf(arr[i]) === -1) {
        result.push(arr[i]);
      }
    }
    return result;
  };
  
  /**
   * Standardise console warnings
   * @param message
   */
  var warn = function warn(message) {
    console.warn(consolePrefix + ' ' + message);
  };
  
  /**
   * Standardise console errors
   * @param message
   */
  var error = function error(message) {
    console.error(consolePrefix + ' ' + message);
  };
  
  // Remember state in cases where opening and handling a modal will fiddle with it.
  var states = {
    previousWindowKeyDown: null,
    previousActiveElement: null,
    previousBodyPadding: null
  
    /*
     * Add modal + overlay to DOM
     */
  };var init = function init(params) {
    // Clean up the old modal if it exists
    var c = getContainer();
    if (c) {
      c.parentNode.removeChild(c);
    }
  
    if (typeof document === 'undefined') {
      error('SweetAlert2 requires document to initialize');
      return;
    }
  
    var container = document.createElement('div');
    container.className = swalClasses.container;
    container.innerHTML = sweetHTML;
  
    var targetElement = typeof params.target === 'string' ? document.querySelector(params.target) : params.target;
    targetElement.appendChild(container);
  
    var modal = getModal();
    var input = getChildByClass(modal, swalClasses.input);
    var file = getChildByClass(modal, swalClasses.file);
    var range = modal.querySelector('.' + swalClasses.range + ' input');
    var rangeOutput = modal.querySelector('.' + swalClasses.range + ' output');
    var select = getChildByClass(modal, swalClasses.select);
    var checkbox = modal.querySelector('.' + swalClasses.checkbox + ' input');
    var textarea = getChildByClass(modal, swalClasses.textarea);
  
    input.oninput = function () {
      sweetAlert.resetValidationError();
    };
  
    file.onchange = function () {
      sweetAlert.resetValidationError();
    };
  
    range.oninput = function () {
      sweetAlert.resetValidationError();
      rangeOutput.value = range.value;
    };
  
    range.onchange = function () {
      sweetAlert.resetValidationError();
      range.previousSibling.value = range.value;
    };
  
    select.onchange = function () {
      sweetAlert.resetValidationError();
    };
  
    checkbox.onchange = function () {
      sweetAlert.resetValidationError();
    };
  
    textarea.oninput = function () {
      sweetAlert.resetValidationError();
    };
  
    return modal;
  };
  
  /*
   * Manipulate DOM
   */
  
  var sweetHTML = ('\n <div role="dialog" aria-modal="true" aria-labelledby="' + swalClasses.title + '" aria-describedby="' + swalClasses.content + '" class="' + swalClasses.modal + '" tabindex="-1">\n   <ul class="' + swalClasses.progresssteps + '"></ul>\n   <div class="' + swalClasses.icon + ' ' + iconTypes.error + '">\n     <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"></span><span class="swal2-x-mark-line-right"></span></span>\n   </div>\n   <div class="' + swalClasses.icon + ' ' + iconTypes.question + '">?</div>\n   <div class="' + swalClasses.icon + ' ' + iconTypes.warning + '">!</div>\n   <div class="' + swalClasses.icon + ' ' + iconTypes.info + '">i</div>\n   <div class="' + swalClasses.icon + ' ' + iconTypes.success + '">\n     <div class="swal2-success-circular-line-left"></div>\n     <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n     <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n     <div class="swal2-success-circular-line-right"></div>\n   </div>\n   <img class="' + swalClasses.image + '" />\n   <h2 class="' + swalClasses.title + '" id="' + swalClasses.title + '"></h2>\n   <div id="' + swalClasses.content + '" class="' + swalClasses.content + '"></div>\n   <input class="' + swalClasses.input + '" />\n   <input type="file" class="' + swalClasses.file + '" />\n   <div class="' + swalClasses.range + '">\n     <output></output>\n     <input type="range" />\n   </div>\n   <select class="' + swalClasses.select + '"></select>\n   <div class="' + swalClasses.radio + '"></div>\n   <label for="' + swalClasses.checkbox + '" class="' + swalClasses.checkbox + '">\n     <input type="checkbox" />\n   </label>\n   <textarea class="' + swalClasses.textarea + '"></textarea>\n   <div class="' + swalClasses.validationerror + '" id="' + swalClasses.validationerror + '"></div>\n   <div class="' + swalClasses.buttonswrapper + '">\n     <button type="button" class="' + swalClasses.confirm + '">OK</button>\n     <button type="button" class="' + swalClasses.cancel + '">Cancel</button>\n   </div>\n   <button type="button" class="' + swalClasses.close + '">\xD7</button>\n </div>\n').replace(/(^|\n)\s*/g, '');
  
  var getContainer = function getContainer() {
    return document.body.querySelector('.' + swalClasses.container);
  };
  
  var getModal = function getModal() {
    return getContainer() ? getContainer().querySelector('.' + swalClasses.modal) : null;
  };
  
  var getIcons = function getIcons() {
    var modal = getModal();
    return modal.querySelectorAll('.' + swalClasses.icon);
  };
  
  var elementByClass = function elementByClass(className) {
    return getContainer() ? getContainer().querySelector('.' + className) : null;
  };
  
  var getTitle = function getTitle() {
    return elementByClass(swalClasses.title);
  };
  
  var getContent = function getContent() {
    return elementByClass(swalClasses.content);
  };
  
  var getImage = function getImage() {
    return elementByClass(swalClasses.image);
  };
  
  var getProgressSteps = function getProgressSteps() {
    return elementByClass(swalClasses.progresssteps);
  };
  
  var getValidationError = function getValidationError() {
    return elementByClass(swalClasses.validationerror);
  };
  
  var getConfirmButton = function getConfirmButton() {
    return elementByClass(swalClasses.confirm);
  };
  
  var getCancelButton = function getCancelButton() {
    return elementByClass(swalClasses.cancel);
  };
  
  var getButtonsWrapper = function getButtonsWrapper() {
    return elementByClass(swalClasses.buttonswrapper);
  };
  
  var getCloseButton = function getCloseButton() {
    return elementByClass(swalClasses.close);
  };
  
  var getFocusableElements = function getFocusableElements() {
    var focusableElementsWithTabindex = Array.from(getModal().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'))
    // sort according to tabindex
    .sort(function (a, b) {
      a = parseInt(a.getAttribute('tabindex'));
      b = parseInt(b.getAttribute('tabindex'));
      if (a > b) {
        return 1;
      } else if (a < b) {
        return -1;
      }
      return 0;
    });
  
    var otherFocusableElements = Array.prototype.slice.call(getModal().querySelectorAll('button, input:not([type=hidden]), textarea, select, a, [tabindex="0"]'));
  
    return uniqueArray(focusableElementsWithTabindex.concat(otherFocusableElements));
  };
  
  var hasClass = function hasClass(elem, className) {
    if (elem.classList) {
      return elem.classList.contains(className);
    }
    return false;
  };
  
  var focusInput = function focusInput(input) {
    input.focus();
  
    // place cursor at end of text in text input
    if (input.type !== 'file') {
      // http://stackoverflow.com/a/2345915/1331425
      var val = input.value;
      input.value = '';
      input.value = val;
    }
  };
  
  var addClass = function addClass(elem, className) {
    if (!elem || !className) {
      return;
    }
    var classes = className.split(/\s+/).filter(Boolean);
    classes.forEach(function (className) {
      elem.classList.add(className);
    });
  };
  
  var removeClass = function removeClass(elem, className) {
    if (!elem || !className) {
      return;
    }
    var classes = className.split(/\s+/).filter(Boolean);
    classes.forEach(function (className) {
      elem.classList.remove(className);
    });
  };
  
  var getChildByClass = function getChildByClass(elem, className) {
    for (var i = 0; i < elem.childNodes.length; i++) {
      if (hasClass(elem.childNodes[i], className)) {
        return elem.childNodes[i];
      }
    }
  };
  
  var show = function show(elem, display) {
    if (!display) {
      display = 'block';
    }
    elem.style.opacity = '';
    elem.style.display = display;
  };
  
  var hide = function hide(elem) {
    elem.style.opacity = '';
    elem.style.display = 'none';
  };
  
  var empty = function empty(elem) {
    while (elem.firstChild) {
      elem.removeChild(elem.firstChild);
    }
  };
  
  // borrowed from jquery $(elem).is(':visible') implementation
  var isVisible = function isVisible(elem) {
    return elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length;
  };
  
  var removeStyleProperty = function removeStyleProperty(elem, property) {
    if (elem.style.removeProperty) {
      elem.style.removeProperty(property);
    } else {
      elem.style.removeAttribute(property);
    }
  };
  
  var animationEndEvent = function () {
    var testEl = document.createElement('div');
    var transEndEventNames = {
      'WebkitAnimation': 'webkitAnimationEnd',
      'OAnimation': 'oAnimationEnd oanimationend',
      'animation': 'animationend'
    };
    for (var i in transEndEventNames) {
      if (transEndEventNames.hasOwnProperty(i) && testEl.style[i] !== undefined) {
        return transEndEventNames[i];
      }
    }
  
    return false;
  }();
  
  // Reset previous window keydown handler and focued element
  var resetPrevState = function resetPrevState() {
    window.onkeydown = states.previousWindowKeyDown;
    if (states.previousActiveElement && states.previousActiveElement.focus) {
      var x = window.scrollX;
      var y = window.scrollY;
      states.previousActiveElement.focus();
      if (x && y) {
        // IE has no scrollX/scrollY support
        window.scrollTo(x, y);
      }
    }
  };
  
  // Measure width of scrollbar
  // https://github.com/twbs/bootstrap/blob/master/js/modal.js#L279-L286
  var measureScrollbar = function measureScrollbar() {
    var supportsTouch = 'ontouchstart' in window || navigator.msMaxTouchPoints;
    if (supportsTouch) {
      return 0;
    }
    var scrollDiv = document.createElement('div');
    scrollDiv.style.width = '50px';
    scrollDiv.style.height = '50px';
    scrollDiv.style.overflow = 'scroll';
    document.body.appendChild(scrollDiv);
    var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
    document.body.removeChild(scrollDiv);
    return scrollbarWidth;
  };
  
  /**
   * Inject a string of CSS into the page header
   *
   * @param {String} css
   */
  
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
    return typeof obj;
  } : function (obj) {
    return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  };
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  var _extends = Object.assign || function (target) {
    for (var i = 1; i < arguments.length; i++) {
      var source = arguments[i];
  
      for (var key in source) {
        if (Object.prototype.hasOwnProperty.call(source, key)) {
          target[key] = source[key];
        }
      }
    }
  
    return target;
  };
  
  var modalParams = _extends({}, defaultParams);
  var queue = [];
  
  /*
   * Check for the existence of Promise
   * Hopefully to avoid many github issues
   */
  if (typeof Promise === 'undefined') {
    error('This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/limonte/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)');
  }
  
  /**
   * Set type, text and actions on modal
   *
   * @param params
   * @returns {boolean}
   */
  var setParameters = function setParameters(params) {
    // If a custom element is set, determine if it is valid
    if (typeof params.target === 'string' && !document.querySelector(params.target) || typeof params.target !== 'string' && !params.target.appendChild) {
      warn('Target parameter is not valid, defaulting to "body"');
      params.target = 'body';
    }
  
    var modal = void 0;
    var oldModal = getModal();
    var targetElement = typeof params.target === 'string' ? document.querySelector(params.target) : params.target;
    // If the model target has changed, refresh the modal
    if (oldModal && targetElement && oldModal.parentNode !== targetElement.parentNode) {
      modal = init(params);
    } else {
      modal = oldModal || init(params);
    }
  
    for (var param in params) {
      if (!sweetAlert.isValidParameter(param)) {
        warn('Unknown parameter "' + param + '"');
      }
    }
  
    // Set modal width
    modal.style.width = typeof params.width === 'number' ? params.width + 'px' : params.width;
  
    modal.style.padding = params.padding + 'px';
    modal.style.background = params.background;
    var successIconParts = modal.querySelectorAll('[class^=swal2-success-circular-line], .swal2-success-fix');
    for (var i = 0; i < successIconParts.length; i++) {
      successIconParts[i].style.background = params.background;
    }
  
    var container = getContainer();
    var title = getTitle();
    var content = getContent();
    var buttonsWrapper = getButtonsWrapper();
    var confirmButton = getConfirmButton();
    var cancelButton = getCancelButton();
    var closeButton = getCloseButton();
  
    // Title
    if (params.titleText) {
      title.innerText = params.titleText;
    } else {
      title.innerHTML = params.title.split('\n').join('<br />');
    }
  
    // Content
    if (params.text || params.html) {
      if (_typeof(params.html) === 'object') {
        content.innerHTML = '';
        if (0 in params.html) {
          for (var _i = 0; _i in params.html; _i++) {
            content.appendChild(params.html[_i].cloneNode(true));
          }
        } else {
          content.appendChild(params.html.cloneNode(true));
        }
      } else if (params.html) {
        content.innerHTML = params.html;
      } else if (params.text) {
        content.textContent = params.text;
      }
      show(content);
    } else {
      hide(content);
    }
  
    // Position
    if (params.position in swalClasses) {
      addClass(container, swalClasses[params.position]);
    }
  
    // Grow
    if (params.grow && typeof params.grow === 'string') {
      var growClass = 'grow-' + params.grow;
      if (growClass in swalClasses) {
        addClass(container, swalClasses[growClass]);
      }
    }
  
    // Close button
    if (params.showCloseButton) {
      closeButton.setAttribute('aria-label', params.closeButtonAriaLabel);
      show(closeButton);
    } else {
      hide(closeButton);
    }
  
    // Custom Class
    modal.className = swalClasses.modal;
    if (params.customClass) {
      addClass(modal, params.customClass);
    }
  
    // Progress steps
    var progressStepsContainer = getProgressSteps();
    var currentProgressStep = parseInt(params.currentProgressStep === null ? sweetAlert.getQueueStep() : params.currentProgressStep, 10);
    if (params.progressSteps.length) {
      show(progressStepsContainer);
      empty(progressStepsContainer);
      if (currentProgressStep >= params.progressSteps.length) {
        warn('Invalid currentProgressStep parameter, it should be less than progressSteps.length ' + '(currentProgressStep like JS arrays starts from 0)');
      }
      params.progressSteps.forEach(function (step, index) {
        var circle = document.createElement('li');
        addClass(circle, swalClasses.progresscircle);
        circle.innerHTML = step;
        if (index === currentProgressStep) {
          addClass(circle, swalClasses.activeprogressstep);
        }
        progressStepsContainer.appendChild(circle);
        if (index !== params.progressSteps.length - 1) {
          var line = document.createElement('li');
          addClass(line, swalClasses.progressline);
          line.style.width = params.progressStepsDistance;
          progressStepsContainer.appendChild(line);
        }
      });
    } else {
      hide(progressStepsContainer);
    }
  
    // Icon
    var icons = getIcons();
    for (var _i2 = 0; _i2 < icons.length; _i2++) {
      hide(icons[_i2]);
    }
    if (params.type) {
      var validType = false;
      for (var iconType in iconTypes) {
        if (params.type === iconType) {
          validType = true;
          break;
        }
      }
      if (!validType) {
        error('Unknown alert type: ' + params.type);
        return false;
      }
      var icon = modal.querySelector('.' + swalClasses.icon + '.' + iconTypes[params.type]);
      show(icon);
  
      // Animate icon
      if (params.animation) {
        switch (params.type) {
          case 'success':
            addClass(icon, 'swal2-animate-success-icon');
            addClass(icon.querySelector('.swal2-success-line-tip'), 'swal2-animate-success-line-tip');
            addClass(icon.querySelector('.swal2-success-line-long'), 'swal2-animate-success-line-long');
            break;
          case 'error':
            addClass(icon, 'swal2-animate-error-icon');
            addClass(icon.querySelector('.swal2-x-mark'), 'swal2-animate-x-mark');
            break;
          default:
            break;
        }
      }
    }
  
    // Custom image
    var image = getImage();
    if (params.imageUrl) {
      image.setAttribute('src', params.imageUrl);
      image.setAttribute('alt', params.imageAlt);
      show(image);
  
      if (params.imageWidth) {
        image.setAttribute('width', params.imageWidth);
      } else {
        image.removeAttribute('width');
      }
  
      if (params.imageHeight) {
        image.setAttribute('height', params.imageHeight);
      } else {
        image.removeAttribute('height');
      }
  
      image.className = swalClasses.image;
      if (params.imageClass) {
        addClass(image, params.imageClass);
      }
    } else {
      hide(image);
    }
  
    // Cancel button
    if (params.showCancelButton) {
      cancelButton.style.display = 'inline-block';
    } else {
      hide(cancelButton);
    }
  
    // Confirm button
    if (params.showConfirmButton) {
      removeStyleProperty(confirmButton, 'display');
    } else {
      hide(confirmButton);
    }
  
    // Buttons wrapper
    if (!params.showConfirmButton && !params.showCancelButton) {
      hide(buttonsWrapper);
    } else {
      show(buttonsWrapper);
    }
  
    // Edit text on confirm and cancel buttons
    confirmButton.innerHTML = params.confirmButtonText;
    cancelButton.innerHTML = params.cancelButtonText;
  
    // ARIA labels for confirm and cancel buttons
    confirmButton.setAttribute('aria-label', params.confirmButtonAriaLabel);
    cancelButton.setAttribute('aria-label', params.cancelButtonAriaLabel);
  
    // Set buttons to selected background colors
    if (params.buttonsStyling) {
      confirmButton.style.backgroundColor = params.confirmButtonColor;
      cancelButton.style.backgroundColor = params.cancelButtonColor;
    }
  
    // Add buttons custom classes
    confirmButton.className = swalClasses.confirm;
    addClass(confirmButton, params.confirmButtonClass);
    cancelButton.className = swalClasses.cancel;
    addClass(cancelButton, params.cancelButtonClass);
  
    // Buttons styling
    if (params.buttonsStyling) {
      addClass(confirmButton, swalClasses.styled);
      addClass(cancelButton, swalClasses.styled);
    } else {
      removeClass(confirmButton, swalClasses.styled);
      removeClass(cancelButton, swalClasses.styled);
  
      confirmButton.style.backgroundColor = confirmButton.style.borderLeftColor = confirmButton.style.borderRightColor = '';
      cancelButton.style.backgroundColor = cancelButton.style.borderLeftColor = cancelButton.style.borderRightColor = '';
    }
  
    // CSS animation
    if (params.animation === true) {
      removeClass(modal, swalClasses.noanimation);
    } else {
      addClass(modal, swalClasses.noanimation);
    }
  
    // showLoaderOnConfirm && preConfirm
    if (params.showLoaderOnConfirm && !params.preConfirm) {
      warn('showLoaderOnConfirm is set to true, but preConfirm is not defined.\n' + 'showLoaderOnConfirm should be used together with preConfirm, see usage example:\n' + 'https://limonte.github.io/sweetalert2/#ajax-request');
    }
  };
  
  /**
   * Animations
   *
   * @param animation
   * @param onBeforeOpen
   * @param onComplete
   */
  var openModal = function openModal(animation, onBeforeOpen, onComplete) {
    var container = getContainer();
    var modal = getModal();
  
    if (onBeforeOpen !== null && typeof onBeforeOpen === 'function') {
      onBeforeOpen(modal);
    }
  
    if (animation) {
      addClass(modal, swalClasses.show);
      addClass(container, swalClasses.fade);
      removeClass(modal, swalClasses.hide);
    } else {
      removeClass(modal, swalClasses.fade);
    }
    show(modal);
  
    // scrolling is 'hidden' until animation is done, after that 'auto'
    container.style.overflowY = 'hidden';
    if (animationEndEvent && !hasClass(modal, swalClasses.noanimation)) {
      modal.addEventListener(animationEndEvent, function swalCloseEventFinished() {
        modal.removeEventListener(animationEndEvent, swalCloseEventFinished);
        container.style.overflowY = 'auto';
      });
    } else {
      container.style.overflowY = 'auto';
    }
  
    addClass(document.documentElement, swalClasses.shown);
    addClass(document.body, swalClasses.shown);
    addClass(container, swalClasses.shown);
    fixScrollbar();
    iOSfix();
    states.previousActiveElement = document.activeElement;
    if (onComplete !== null && typeof onComplete === 'function') {
      setTimeout(function () {
        onComplete(modal);
      });
    }
  };
  
  var fixScrollbar = function fixScrollbar() {
    // for queues, do not do this more than once
    if (states.previousBodyPadding !== null) {
      return;
    }
    // if the body has overflow
    if (document.body.scrollHeight > window.innerHeight) {
      // add padding so the content doesn't shift after removal of scrollbar
      states.previousBodyPadding = document.body.style.paddingRight;
      document.body.style.paddingRight = measureScrollbar() + 'px';
    }
  };
  
  var undoScrollbar = function undoScrollbar() {
    if (states.previousBodyPadding !== null) {
      document.body.style.paddingRight = states.previousBodyPadding;
      states.previousBodyPadding = null;
    }
  };
  
  // Fix iOS scrolling http://stackoverflow.com/q/39626302/1331425
  var iOSfix = function iOSfix() {
    var iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
    if (iOS && !hasClass(document.body, swalClasses.iosfix)) {
      var offset = document.body.scrollTop;
      document.body.style.top = offset * -1 + 'px';
      addClass(document.body, swalClasses.iosfix);
    }
  };
  
  var undoIOSfix = function undoIOSfix() {
    if (hasClass(document.body, swalClasses.iosfix)) {
      var offset = parseInt(document.body.style.top, 10);
      removeClass(document.body, swalClasses.iosfix);
      document.body.style.top = '';
      document.body.scrollTop = offset * -1;
    }
  };
  
  // SweetAlert entry point
  var sweetAlert = function sweetAlert() {
    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }
  
    if (args[0] === undefined) {
      error('SweetAlert2 expects at least 1 attribute!');
      return false;
    }
  
    var params = _extends({}, modalParams);
  
    switch (_typeof(args[0])) {
      case 'string':
        params.title = args[0];
        params.html = args[1];
        params.type = args[2];
  
        break;
  
      case 'object':
        _extends(params, args[0]);
        params.extraParams = args[0].extraParams;
  
        if (params.input === 'email' && params.inputValidator === null) {
          params.inputValidator = function (email) {
            return new Promise(function (resolve, reject) {
              var emailRegex = /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/;
              if (emailRegex.test(email)) {
                resolve();
              } else {
                reject('Invalid email address');
              }
            });
          };
        }
  
        if (params.input === 'url' && params.inputValidator === null) {
          params.inputValidator = function (url) {
            return new Promise(function (resolve, reject) {
              // taken from https://stackoverflow.com/a/3809435/1331425
              var urlRegex = /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/;
              if (urlRegex.test(url)) {
                resolve();
              } else {
                reject('Invalid URL');
              }
            });
          };
        }
        break;
  
      default:
        error('Unexpected type of argument! Expected "string" or "object", got ' + _typeof(args[0]));
        return false;
    }
  
    setParameters(params);
  
    var container = getContainer();
    var modal = getModal();
  
    return new Promise(function (resolve, reject) {
      // Close on timer
      if (params.timer) {
        modal.timeout = setTimeout(function () {
          sweetAlert.closeModal(params.onClose);
          if (params.useRejections) {
            reject('timer');
          } else {
            resolve({ dismiss: 'timer' });
          }
        }, params.timer);
      }
  
      // Get input element by specified type or, if type isn't specified, by params.input
      var getInput = function getInput(inputType) {
        inputType = inputType || params.input;
        if (!inputType) {
          return null;
        }
        switch (inputType) {
          case 'select':
          case 'textarea':
          case 'file':
            return getChildByClass(modal, swalClasses[inputType]);
          case 'checkbox':
            return modal.querySelector('.' + swalClasses.checkbox + ' input');
          case 'radio':
            return modal.querySelector('.' + swalClasses.radio + ' input:checked') || modal.querySelector('.' + swalClasses.radio + ' input:first-child');
          case 'range':
            return modal.querySelector('.' + swalClasses.range + ' input');
          default:
            return getChildByClass(modal, swalClasses.input);
        }
      };
  
      // Get the value of the modal input
      var getInputValue = function getInputValue() {
        var input = getInput();
        if (!input) {
          return null;
        }
        switch (params.input) {
          case 'checkbox':
            return input.checked ? 1 : 0;
          case 'radio':
            return input.checked ? input.value : null;
          case 'file':
            return input.files.length ? input.files[0] : null;
          default:
            return params.inputAutoTrim ? input.value.trim() : input.value;
        }
      };
  
      // input autofocus
      if (params.input) {
        setTimeout(function () {
          var input = getInput();
          if (input) {
            focusInput(input);
          }
        }, 0);
      }
  
      var confirm = function confirm(value) {
        if (params.showLoaderOnConfirm) {
          sweetAlert.showLoading();
        }
  
        if (params.preConfirm) {
          params.preConfirm(value, params.extraParams).then(function (preConfirmValue) {
            sweetAlert.closeModal(params.onClose);
            resolve(preConfirmValue || value);
          }, function (error$$1) {
            sweetAlert.hideLoading();
            if (error$$1) {
              sweetAlert.showValidationError(error$$1);
            }
          });
        } else {
          sweetAlert.closeModal(params.onClose);
          if (params.useRejections) {
            resolve(value);
          } else {
            resolve({ value: value });
          }
        }
      };
  
      // Mouse interactions
      var onButtonEvent = function onButtonEvent(event) {
        var e = event || window.event;
        var target = e.target || e.srcElement;
        var confirmButton = getConfirmButton();
        var cancelButton = getCancelButton();
        var targetedConfirm = confirmButton && (confirmButton === target || confirmButton.contains(target));
        var targetedCancel = cancelButton && (cancelButton === target || cancelButton.contains(target));
  
        switch (e.type) {
          case 'mouseover':
          case 'mouseup':
            if (params.buttonsStyling) {
              if (targetedConfirm) {
                confirmButton.style.backgroundColor = colorLuminance(params.confirmButtonColor, -0.1);
              } else if (targetedCancel) {
                cancelButton.style.backgroundColor = colorLuminance(params.cancelButtonColor, -0.1);
              }
            }
            break;
          case 'mouseout':
            if (params.buttonsStyling) {
              if (targetedConfirm) {
                confirmButton.style.backgroundColor = params.confirmButtonColor;
              } else if (targetedCancel) {
                cancelButton.style.backgroundColor = params.cancelButtonColor;
              }
            }
            break;
          case 'mousedown':
            if (params.buttonsStyling) {
              if (targetedConfirm) {
                confirmButton.style.backgroundColor = colorLuminance(params.confirmButtonColor, -0.2);
              } else if (targetedCancel) {
                cancelButton.style.backgroundColor = colorLuminance(params.cancelButtonColor, -0.2);
              }
            }
            break;
          case 'click':
            // Clicked 'confirm'
            if (targetedConfirm && sweetAlert.isVisible()) {
              sweetAlert.disableButtons();
              if (params.input) {
                var inputValue = getInputValue();
  
                if (params.inputValidator) {
                  sweetAlert.disableInput();
                  params.inputValidator(inputValue, params.extraParams).then(function () {
                    sweetAlert.enableButtons();
                    sweetAlert.enableInput();
                    confirm(inputValue);
                  }, function (error$$1) {
                    sweetAlert.enableButtons();
                    sweetAlert.enableInput();
                    if (error$$1) {
                      sweetAlert.showValidationError(error$$1);
                    }
                  });
                } else {
                  confirm(inputValue);
                }
              } else {
                confirm(true);
              }
  
              // Clicked 'cancel'
            } else if (targetedCancel && sweetAlert.isVisible()) {
              sweetAlert.disableButtons();
              sweetAlert.closeModal(params.onClose);
              if (params.useRejections) {
                reject('cancel');
              } else {
                resolve({ dismiss: 'cancel' });
              }
            }
            break;
          default:
        }
      };
  
      var buttons = modal.querySelectorAll('button');
      for (var i = 0; i < buttons.length; i++) {
        buttons[i].onclick = onButtonEvent;
        buttons[i].onmouseover = onButtonEvent;
        buttons[i].onmouseout = onButtonEvent;
        buttons[i].onmousedown = onButtonEvent;
      }
  
      // Closing modal by close button
      getCloseButton().onclick = function () {
        sweetAlert.closeModal(params.onClose);
        if (params.useRejections) {
          reject('close');
        } else {
          resolve({ dismiss: 'close' });
        }
      };
  
      // Closing modal by overlay click
      container.onclick = function (e) {
        if (e.target !== container) {
          return;
        }
        if (params.allowOutsideClick) {
          sweetAlert.closeModal(params.onClose);
          if (params.useRejections) {
            reject('overlay');
          } else {
            resolve({ dismiss: 'overlay' });
          }
        }
      };
  
      var buttonsWrapper = getButtonsWrapper();
      var confirmButton = getConfirmButton();
      var cancelButton = getCancelButton();
  
      // Reverse buttons (Confirm on the right side)
      if (params.reverseButtons) {
        confirmButton.parentNode.insertBefore(cancelButton, confirmButton);
      } else {
        confirmButton.parentNode.insertBefore(confirmButton, cancelButton);
      }
  
      // Focus handling
      var setFocus = function setFocus(index, increment) {
        var focusableElements = getFocusableElements(params.focusCancel);
        // search for visible elements and select the next possible match
        for (var _i3 = 0; _i3 < focusableElements.length; _i3++) {
          index = index + increment;
  
          // rollover to first item
          if (index === focusableElements.length) {
            index = 0;
  
            // go to last item
          } else if (index === -1) {
            index = focusableElements.length - 1;
          }
  
          // determine if element is visible
          var el = focusableElements[index];
          if (isVisible(el)) {
            return el.focus();
          }
        }
      };
  
      var handleKeyDown = function handleKeyDown(event) {
        var e = event || window.event;
  
        if (e.key === 'Enter') {
          if (e.target === getInput()) {
            if (e.target.tagName.toLowerCase() === 'textarea') {
              return; // do not submit
            }
            sweetAlert.clickConfirm();
            e.preventDefault();
          }
  
          // TAB
        } else if (e.key === 'Tab') {
          var targetElement = e.target || e.srcElement;
  
          var focusableElements = getFocusableElements(params.focusCancel);
          var btnIndex = -1; // Find the button - note, this is a nodelist, not an array.
          for (var _i4 = 0; _i4 < focusableElements.length; _i4++) {
            if (targetElement === focusableElements[_i4]) {
              btnIndex = _i4;
              break;
            }
          }
  
          if (!e.shiftKey) {
            // Cycle to the next button
            setFocus(btnIndex, 1);
          } else {
            // Cycle to the prev button
            setFocus(btnIndex, -1);
          }
          e.stopPropagation();
          e.preventDefault();
  
          // ARROWS - switch focus between buttons
        } else if (['ArrowLeft', 'ArrowRight', 'ArrowUp', 'Arrowdown'].indexOf(e.key) !== -1) {
          // focus Cancel button if Confirm button is currently focused
          if (document.activeElement === confirmButton && isVisible(cancelButton)) {
            cancelButton.focus();
            // and vice versa
          } else if (document.activeElement === cancelButton && isVisible(confirmButton)) {
            confirmButton.focus();
          }
  
          // ESC
        } else if ((e.key === 'Escape' || e.key === 'Esc') && params.allowEscapeKey === true) {
          sweetAlert.closeModal(params.onClose);
          if (params.useRejections) {
            reject('esc');
          } else {
            resolve({ dismiss: 'esc' });
          }
        }
      };
  
      if (!window.onkeydown || window.onkeydown.toString() !== handleKeyDown.toString()) {
        states.previousWindowKeyDown = window.onkeydown;
        window.onkeydown = handleKeyDown;
      }
  
      // Loading state
      if (params.buttonsStyling) {
        confirmButton.style.borderLeftColor = params.confirmButtonColor;
        confirmButton.style.borderRightColor = params.confirmButtonColor;
      }
  
      /**
       * Show spinner instead of Confirm button and disable Cancel button
       */
      sweetAlert.hideLoading = sweetAlert.disableLoading = function () {
        if (!params.showConfirmButton) {
          hide(confirmButton);
          if (!params.showCancelButton) {
            hide(getButtonsWrapper());
          }
        }
        removeClass(buttonsWrapper, swalClasses.loading);
        removeClass(modal, swalClasses.loading);
        modal.removeAttribute('aria-busy');
        confirmButton.disabled = false;
        cancelButton.disabled = false;
      };
  
      sweetAlert.getTitle = function () {
        return getTitle();
      };
      sweetAlert.getContent = function () {
        return getContent();
      };
      sweetAlert.getInput = function () {
        return getInput();
      };
      sweetAlert.getImage = function () {
        return getImage();
      };
      sweetAlert.getButtonsWrapper = function () {
        return getButtonsWrapper();
      };
      sweetAlert.getConfirmButton = function () {
        return getConfirmButton();
      };
      sweetAlert.getCancelButton = function () {
        return getCancelButton();
      };
  
      sweetAlert.enableButtons = function () {
        confirmButton.disabled = false;
        cancelButton.disabled = false;
      };
  
      sweetAlert.disableButtons = function () {
        confirmButton.disabled = true;
        cancelButton.disabled = true;
      };
  
      sweetAlert.enableConfirmButton = function () {
        confirmButton.disabled = false;
      };
  
      sweetAlert.disableConfirmButton = function () {
        confirmButton.disabled = true;
      };
  
      sweetAlert.enableInput = function () {
        var input = getInput();
        if (!input) {
          return false;
        }
        if (input.type === 'radio') {
          var radiosContainer = input.parentNode.parentNode;
          var radios = radiosContainer.querySelectorAll('input');
          for (var _i5 = 0; _i5 < radios.length; _i5++) {
            radios[_i5].disabled = false;
          }
        } else {
          input.disabled = false;
        }
      };
  
      sweetAlert.disableInput = function () {
        var input = getInput();
        if (!input) {
          return false;
        }
        if (input && input.type === 'radio') {
          var radiosContainer = input.parentNode.parentNode;
          var radios = radiosContainer.querySelectorAll('input');
          for (var _i6 = 0; _i6 < radios.length; _i6++) {
            radios[_i6].disabled = true;
          }
        } else {
          input.disabled = true;
        }
      };
  
      // Show block with validation error
      sweetAlert.showValidationError = function (error$$1) {
        var validationError = getValidationError();
        validationError.innerHTML = error$$1;
        show(validationError);
  
        var input = getInput();
        if (input) {
          input.setAttribute('aria-invalid', true);
          input.setAttribute('aria-describedBy', swalClasses.validationerror);
          focusInput(input);
          addClass(input, swalClasses.inputerror);
        }
      };
  
      // Hide block with validation error
      sweetAlert.resetValidationError = function () {
        var validationError = getValidationError();
        hide(validationError);
  
        var input = getInput();
        if (input) {
          input.removeAttribute('aria-invalid');
          input.removeAttribute('aria-describedBy');
          removeClass(input, swalClasses.inputerror);
        }
      };
  
      sweetAlert.getProgressSteps = function () {
        return params.progressSteps;
      };
  
      sweetAlert.setProgressSteps = function (progressSteps) {
        params.progressSteps = progressSteps;
        setParameters(params);
      };
  
      sweetAlert.showProgressSteps = function () {
        show(getProgressSteps());
      };
  
      sweetAlert.hideProgressSteps = function () {
        hide(getProgressSteps());
      };
  
      sweetAlert.enableButtons();
      sweetAlert.hideLoading();
      sweetAlert.resetValidationError();
  
      // inputs
      var inputTypes = ['input', 'file', 'range', 'select', 'radio', 'checkbox', 'textarea'];
      var input = void 0;
      for (var _i7 = 0; _i7 < inputTypes.length; _i7++) {
        var inputClass = swalClasses[inputTypes[_i7]];
        var inputContainer = getChildByClass(modal, inputClass);
        input = getInput(inputTypes[_i7]);
  
        // set attributes
        if (input) {
          for (var j in input.attributes) {
            if (input.attributes.hasOwnProperty(j)) {
              var attrName = input.attributes[j].name;
              if (attrName !== 'type' && attrName !== 'value') {
                input.removeAttribute(attrName);
              }
            }
          }
          for (var attr in params.inputAttributes) {
            input.setAttribute(attr, params.inputAttributes[attr]);
          }
        }
  
        // set class
        inputContainer.className = inputClass;
        if (params.inputClass) {
          addClass(inputContainer, params.inputClass);
        }
  
        hide(inputContainer);
      }
  
      var populateInputOptions = void 0;
      switch (params.input) {
        case 'text':
        case 'email':
        case 'password':
        case 'number':
        case 'tel':
        case 'url':
          input = getChildByClass(modal, swalClasses.input);
          input.value = params.inputValue;
          input.placeholder = params.inputPlaceholder;
          input.type = params.input;
          show(input);
          break;
        case 'file':
          input = getChildByClass(modal, swalClasses.file);
          input.placeholder = params.inputPlaceholder;
          input.type = params.input;
          show(input);
          break;
        case 'range':
          var range = getChildByClass(modal, swalClasses.range);
          var rangeInput = range.querySelector('input');
          var rangeOutput = range.querySelector('output');
          rangeInput.value = params.inputValue;
          rangeInput.type = params.input;
          rangeOutput.value = params.inputValue;
          show(range);
          break;
        case 'select':
          var select = getChildByClass(modal, swalClasses.select);
          select.innerHTML = '';
          if (params.inputPlaceholder) {
            var placeholder = document.createElement('option');
            placeholder.innerHTML = params.inputPlaceholder;
            placeholder.value = '';
            placeholder.disabled = true;
            placeholder.selected = true;
            select.appendChild(placeholder);
          }
          populateInputOptions = function populateInputOptions(inputOptions) {
            for (var optionValue in inputOptions) {
              var option = document.createElement('option');
              option.value = optionValue;
              option.innerHTML = inputOptions[optionValue];
              if (params.inputValue.toString() === optionValue) {
                option.selected = true;
              }
              select.appendChild(option);
            }
            show(select);
            select.focus();
          };
          break;
        case 'radio':
          var radio = getChildByClass(modal, swalClasses.radio);
          radio.innerHTML = '';
          populateInputOptions = function populateInputOptions(inputOptions) {
            for (var radioValue in inputOptions) {
              var radioInput = document.createElement('input');
              var radioLabel = document.createElement('label');
              var radioLabelSpan = document.createElement('span');
              radioInput.type = 'radio';
              radioInput.name = swalClasses.radio;
              radioInput.value = radioValue;
              if (params.inputValue.toString() === radioValue) {
                radioInput.checked = true;
              }
              radioLabelSpan.innerHTML = inputOptions[radioValue];
              radioLabel.appendChild(radioInput);
              radioLabel.appendChild(radioLabelSpan);
              radioLabel.for = radioInput.id;
              radio.appendChild(radioLabel);
            }
            show(radio);
            var radios = radio.querySelectorAll('input');
            if (radios.length) {
              radios[0].focus();
            }
          };
          break;
        case 'checkbox':
          var checkbox = getChildByClass(modal, swalClasses.checkbox);
          var checkboxInput = getInput('checkbox');
          checkboxInput.type = 'checkbox';
          checkboxInput.value = 1;
          checkboxInput.id = swalClasses.checkbox;
          checkboxInput.checked = Boolean(params.inputValue);
          var label = checkbox.getElementsByTagName('span');
          if (label.length) {
            checkbox.removeChild(label[0]);
          }
          label = document.createElement('span');
          label.innerHTML = params.inputPlaceholder;
          checkbox.appendChild(label);
          show(checkbox);
          break;
        case 'textarea':
          var textarea = getChildByClass(modal, swalClasses.textarea);
          textarea.value = params.inputValue;
          textarea.placeholder = params.inputPlaceholder;
          show(textarea);
          break;
        case null:
          break;
        default:
          error('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "' + params.input + '"');
          break;
      }
  
      if (params.input === 'select' || params.input === 'radio') {
        if (params.inputOptions instanceof Promise) {
          sweetAlert.showLoading();
          params.inputOptions.then(function (inputOptions) {
            sweetAlert.hideLoading();
            populateInputOptions(inputOptions);
          });
        } else if (_typeof(params.inputOptions) === 'object') {
          populateInputOptions(params.inputOptions);
        } else {
          error('Unexpected type of inputOptions! Expected object or Promise, got ' + _typeof(params.inputOptions));
        }
      }
  
      openModal(params.animation, params.onBeforeOpen, params.onOpen);
  
      if (!params.allowEnterKey) {
        if (document.activeElement) {
          document.activeElement.blur();
        }
      } else if (params.focusCancel && isVisible(cancelButton)) {
        cancelButton.focus();
      } else if (params.focusConfirm && isVisible(confirmButton)) {
        confirmButton.focus();
      } else {
        setFocus(-1, 1);
      }
  
      // fix scroll
      getContainer().scrollTop = 0;
    });
  };
  
  /*
   * Global function to determine if swal2 modal is shown
   */
  sweetAlert.isVisible = function () {
    return !!getModal();
  };
  
  /*
   * Global function for chaining sweetAlert modals
   */
  sweetAlert.queue = function (steps) {
    queue = steps;
    var resetQueue = function resetQueue() {
      queue = [];
      document.body.removeAttribute('data-swal2-queue-step');
    };
    var queueResult = [];
    return new Promise(function (resolve, reject) {
      (function step(i, callback) {
        if (i < queue.length) {
          document.body.setAttribute('data-swal2-queue-step', i);
  
          sweetAlert(queue[i]).then(function (result) {
            queueResult.push(result);
            step(i + 1, callback);
          }, function (dismiss) {
            resetQueue();
            reject(dismiss);
          });
        } else {
          resetQueue();
          resolve(queueResult);
        }
      })(0);
    });
  };
  
  /*
   * Global function for getting the index of current modal in queue
   */
  sweetAlert.getQueueStep = function () {
    return document.body.getAttribute('data-swal2-queue-step');
  };
  
  /*
   * Global function for inserting a modal to the queue
   */
  sweetAlert.insertQueueStep = function (step, index) {
    if (index && index < queue.length) {
      return queue.splice(index, 0, step);
    }
    return queue.push(step);
  };
  
  /*
   * Global function for deleting a modal from the queue
   */
  sweetAlert.deleteQueueStep = function (index) {
    if (typeof queue[index] !== 'undefined') {
      queue.splice(index, 1);
    }
  };
  
  /*
   * Global function to close sweetAlert
   */
  sweetAlert.close = sweetAlert.closeModal = function (onComplete) {
    var container = getContainer();
    var modal = getModal();
    if (!modal) {
      return;
    }
    removeClass(modal, swalClasses.show);
    addClass(modal, swalClasses.hide);
    clearTimeout(modal.timeout);
  
    resetPrevState();
  
    var removeModalAndResetState = function removeModalAndResetState() {
      if (container.parentNode) {
        container.parentNode.removeChild(container);
      }
      removeClass(document.documentElement, swalClasses.shown);
      removeClass(document.body, swalClasses.shown);
      undoScrollbar();
      undoIOSfix();
    };
  
    // If animation is supported, animate
    if (animationEndEvent && !hasClass(modal, swalClasses.noanimation)) {
      modal.addEventListener(animationEndEvent, function swalCloseEventFinished() {
        modal.removeEventListener(animationEndEvent, swalCloseEventFinished);
        if (hasClass(modal, swalClasses.hide)) {
          removeModalAndResetState();
        }
      });
    } else {
      // Otherwise, remove immediately
      removeModalAndResetState();
    }
    if (onComplete !== null && typeof onComplete === 'function') {
      setTimeout(function () {
        onComplete(modal);
      });
    }
  };
  
  /*
   * Global function to click 'Confirm' button
   */
  sweetAlert.clickConfirm = function () {
    return getConfirmButton().click();
  };
  
  /*
   * Global function to click 'Cancel' button
   */
  sweetAlert.clickCancel = function () {
    return getCancelButton().click();
  };
  
  /**
   * Show spinner instead of Confirm button and disable Cancel button
   */
  sweetAlert.showLoading = sweetAlert.enableLoading = function () {
    var modal = getModal();
    if (!modal) {
      sweetAlert('');
    }
    modal = getModal();
    var buttonsWrapper = getButtonsWrapper();
    var confirmButton = getConfirmButton();
    var cancelButton = getCancelButton();
  
    show(buttonsWrapper);
    show(confirmButton, 'inline-block');
    addClass(buttonsWrapper, swalClasses.loading);
    addClass(modal, swalClasses.loading);
    confirmButton.disabled = true;
    cancelButton.disabled = true;
  
    modal.setAttribute('aria-busy', true);
    modal.focus();
  };
  
  /**
   * Is valid parameter
   * @param {String} paramName
   */
  sweetAlert.isValidParameter = function (paramName) {
    return defaultParams.hasOwnProperty(paramName) || paramName === 'extraParams';
  };
  
  /**
   * Set default params for each popup
   * @param {Object} userParams
   */
  sweetAlert.setDefaults = function (userParams) {
    if (!userParams || (typeof userParams === 'undefined' ? 'undefined' : _typeof(userParams)) !== 'object') {
      return error('the argument for setDefaults() is required and has to be a object');
    }
  
    for (var param in userParams) {
      if (!sweetAlert.isValidParameter(param)) {
        warn('Unknown parameter "' + param + '"');
        delete userParams[param];
      }
    }
  
    _extends(modalParams, userParams);
  };
  
  /**
   * Reset default params for each popup
   */
  sweetAlert.resetDefaults = function () {
    modalParams = _extends({}, defaultParams);
  };
  
  sweetAlert.noop = function () {};
  
  sweetAlert.version = '6.11.5';
  
  sweetAlert.default = sweetAlert;
  
  return sweetAlert;
  
  })));
  if (window.Sweetalert2) window.sweetAlert = window.swal = window.Sweetalert2;
  
  
  /***/ }),
  
  /***/ "./node_modules/timers-browserify/main.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  /* WEBPACK VAR INJECTION */(function(global) {var apply = Function.prototype.apply;
  
  // DOM APIs, for completeness
  
  exports.setTimeout = function() {
    return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout);
  };
  exports.setInterval = function() {
    return new Timeout(apply.call(setInterval, window, arguments), clearInterval);
  };
  exports.clearTimeout =
  exports.clearInterval = function(timeout) {
    if (timeout) {
      timeout.close();
    }
  };
  
  function Timeout(id, clearFn) {
    this._id = id;
    this._clearFn = clearFn;
  }
  Timeout.prototype.unref = Timeout.prototype.ref = function() {};
  Timeout.prototype.close = function() {
    this._clearFn.call(window, this._id);
  };
  
  // Does not start the time, just sets up the members needed.
  exports.enroll = function(item, msecs) {
    clearTimeout(item._idleTimeoutId);
    item._idleTimeout = msecs;
  };
  
  exports.unenroll = function(item) {
    clearTimeout(item._idleTimeoutId);
    item._idleTimeout = -1;
  };
  
  exports._unrefActive = exports.active = function(item) {
    clearTimeout(item._idleTimeoutId);
  
    var msecs = item._idleTimeout;
    if (msecs >= 0) {
      item._idleTimeoutId = setTimeout(function onTimeout() {
        if (item._onTimeout)
          item._onTimeout();
      }, msecs);
    }
  };
  
  // setimmediate attaches itself to the global object
  __webpack_require__("./node_modules/setimmediate/setImmediate.js");
  // On some exotic environments, it's not clear which object `setimmeidate` was
  // able to install onto.  Search each possibility in the same order as the
  // `setimmediate` library.
  exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
                         (typeof global !== "undefined" && global.setImmediate) ||
                         (this && this.setImmediate);
  exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
                           (typeof global !== "undefined" && global.clearImmediate) ||
                           (this && this.clearImmediate);
  
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("./node_modules/webpack/buildin/global.js")))
  
  /***/ }),
  
  /***/ "./node_modules/vee-validate/dist/vee-validate.esm.js":
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "use", function() { return use; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "directive", function() { return directive; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mixin", function() { return mixin; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapFields", function() { return mapFields; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Validator", function() { return Validator; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ErrorBag", function() { return ErrorBag; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Rules", function() { return Rules; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; });
  /**
    * vee-validate v2.0.4
    * (c) 2018 Abdelrahman Awad
    * @license MIT
    */
  // 
  
  /**
   * Gets the data attribute. the name must be kebab-case.
   */
  var getDataAttribute = function (el, name) { return el.getAttribute(("data-vv-" + name)); };
  
  /**
   * Checks if the value is either null or undefined.
   */
  var isNullOrUndefined = function (value) {
    return value === null || value === undefined;
  };
  
  /**
   * Sets the data attribute.
   */
  var setDataAttribute = function (el, name, value) { return el.setAttribute(("data-vv-" + name), value); };
  
  /**
   * Creates the default flags object.
   */
  var createFlags = function () { return ({
    untouched: true,
    touched: false,
    dirty: false,
    pristine: true,
    valid: null,
    invalid: null,
    validated: false,
    pending: false,
    required: false
  }); };
  
  /**
   * Shallow object comparison.
   */
  var isEqual = function (lhs, rhs) {
    if (lhs instanceof RegExp && rhs instanceof RegExp) {
      return isEqual(lhs.source, rhs.source) && isEqual(lhs.flags, rhs.flags);
    }
  
    if (Array.isArray(lhs) && Array.isArray(rhs)) {
      if (lhs.length !== rhs.length) { return false; }
  
      for (var i = 0; i < lhs.length; i++) {
        if (!isEqual(lhs[i], rhs[i])) {
          return false;
        }
      }
  
      return true;
    }
  
    // if both are objects, compare each key recursively.
    if (isObject(lhs) && isObject(rhs)) {
      return Object.keys(lhs).every(function (key) {
        return isEqual(lhs[key], rhs[key]);
      }) && Object.keys(rhs).every(function (key) {
        return isEqual(lhs[key], rhs[key]);
      });
    }
  
    return lhs === rhs;
  };
  
  /**
   * Determines the input field scope.
   */
  var getScope = function (el) {
    var scope = getDataAttribute(el, 'scope');
    if (isNullOrUndefined(scope) && el.form) {
      scope = getDataAttribute(el.form, 'scope');
    }
  
    return !isNullOrUndefined(scope) ? scope : null;
  };
  
  /**
   * Gets the value in an object safely.
   */
  var getPath = function (path, target, def) {
    if ( def === void 0 ) def = undefined;
  
    if (!path || !target) { return def; }
  
    var value = target;
    path.split('.').every(function (prop) {
      if (! Object.prototype.hasOwnProperty.call(value, prop) && value[prop] === undefined) {
        value = def;
  
        return false;
      }
  
      value = value[prop];
  
      return true;
    });
  
    return value;
  };
  
  /**
   * Checks if path exists within an object.
   */
  var hasPath = function (path, target) {
    var obj = target;
    return path.split('.').every(function (prop) {
      if (! Object.prototype.hasOwnProperty.call(obj, prop)) {
        return false;
      }
  
      obj = obj[prop];
  
      return true;
    });
  };
  
  /**
   * Parses a rule string expression.
   */
  var parseRule = function (rule) {
    var params = [];
    var name = rule.split(':')[0];
  
    if (~rule.indexOf(':')) {
      params = rule.split(':').slice(1).join(':').split(',');
    }
  
    return { name: name, params: params };
  };
  
  /**
   * Debounces a function.
   */
  var debounce = function (fn, wait, immediate) {
    if ( wait === void 0 ) wait = 0;
    if ( immediate === void 0 ) immediate = false;
  
    if (wait === 0) {
      return fn;
    }
  
    var timeout;
  
    return function () {
      var args = [], len = arguments.length;
      while ( len-- ) args[ len ] = arguments[ len ];
  
      var later = function () {
        timeout = null;
        if (!immediate) { fn.apply(void 0, args); }
      };
      /* istanbul ignore next */
      var callNow = immediate && !timeout;
      clearTimeout(timeout);
      timeout = setTimeout(later, wait);
      /* istanbul ignore next */
      if (callNow) { fn.apply(void 0, args); }
    };
  };
  
  /**
   * Normalizes the given rules expression.
   */
  var normalizeRules = function (rules) {
    // if falsy value return an empty object.
    if (!rules) {
      return {};
    }
  
    if (isObject(rules)) {
      // $FlowFixMe
      return Object.keys(rules).reduce(function (prev, curr) {
        var params = [];
        // $FlowFixMe
        if (rules[curr] === true) {
          params = [];
        } else if (Array.isArray(rules[curr])) {
          params = rules[curr];
        } else {
          params = [rules[curr]];
        }
  
        // $FlowFixMe
        if (rules[curr] !== false) {
          prev[curr] = params;
        }
  
        return prev;
      }, {});
    }
  
    if (typeof rules !== 'string') {
      warn('rules must be either a string or an object.');
      return {};
    }
  
    return rules.split('|').reduce(function (prev, rule) {
      var parsedRule = parseRule(rule);
      if (!parsedRule.name) {
        return prev;
      }
  
      prev[parsedRule.name] = parsedRule.params;
      return prev;
    }, {});
  };
  
  /**
   * Emits a warning to the console.
   */
  var warn = function (message) {
    console.warn(("[vee-validate] " + message)); // eslint-disable-line
  };
  
  /**
   * Creates a branded error object.
   */
  var createError = function (message) { return new Error(("[vee-validate] " + message)); };
  
  /**
   * Checks if the value is an object.
   */
  var isObject = function (obj) { return obj !== null && obj && typeof obj === 'object' && ! Array.isArray(obj); };
  
  /**
   * Checks if a function is callable.
   */
  var isCallable = function (func) { return typeof func === 'function'; };
  
  /**
   * Check if element has the css class on it.
   */
  var hasClass = function (el, className) {
    if (el.classList) {
      return el.classList.contains(className);
    }
  
    return !!el.className.match(new RegExp(("(\\s|^)" + className + "(\\s|$)")));
  };
  
  /**
   * Adds the provided css className to the element.
   */
  var addClass = function (el, className) {
    if (el.classList) {
      el.classList.add(className);
      return;
    }
  
    if (!hasClass(el, className)) {
      el.className += " " + className;
    }
  };
  
  /**
   * Remove the provided css className from the element.
   */
  var removeClass = function (el, className) {
    if (el.classList) {
      el.classList.remove(className);
      return;
    }
  
    if (hasClass(el, className)) {
      var reg = new RegExp(("(\\s|^)" + className + "(\\s|$)"));
      el.className = el.className.replace(reg, ' ');
    }
  };
  
  /**
   * Adds or removes a class name on the input depending on the status flag.
   */
  var toggleClass = function (el, className, status) {
    if (!el || !className) { return; }
  
    if (Array.isArray(className)) {
      className.forEach(function (item) { return toggleClass(el, item, status); });
      return;
    }
  
    if (status) {
      return addClass(el, className);
    }
  
    removeClass(el, className);
  };
  
  /**
   * Converts an array-like object to array, provides a simple polyfill for Array.from
   */
  var toArray = function (arrayLike) {
    if (isCallable(Array.from)) {
      return Array.from(arrayLike);
    }
  
    var array = [];
    var length = arrayLike.length;
    for (var i = 0; i < length; i++) {
      array.push(arrayLike[i]);
    }
  
    return array;
  };
  
  /**
   * Assign polyfill from the mdn.
   */
  var assign = function (target) {
    var others = [], len = arguments.length - 1;
    while ( len-- > 0 ) others[ len ] = arguments[ len + 1 ];
  
    /* istanbul ignore else */
    if (isCallable(Object.assign)) {
      return Object.assign.apply(Object, [ target ].concat( others ));
    }
  
    /* istanbul ignore next */
    if (target == null) {
      throw new TypeError('Cannot convert undefined or null to object');
    }
  
    /* istanbul ignore next */
    var to = Object(target);
    /* istanbul ignore next */
    others.forEach(function (arg) {
      // Skip over if undefined or null
      if (arg != null) {
        Object.keys(arg).forEach(function (key) {
          to[key] = arg[key];
        });
      }
    });
    /* istanbul ignore next */
    return to;
  };
  
  var id = 0;
  var idTemplate = '{id}';
  
  /**
   * Generates a unique id.
   */
  var uniqId = function () {
    // handle too many uses of uniqId, although unlikely.
    if (id >= 9999) {
      id = 0;
      // shift the template.
      idTemplate = idTemplate.replace('{id}', '_{id}');
    }
  
    id++;
    var newId = idTemplate.replace('{id}', String(id));
  
    return newId;
  };
  
  /**
   * finds the first element that satisfies the predicate callback, polyfills array.find
   */
  var find = function (arrayLike, predicate) {
    var array = Array.isArray(arrayLike) ? arrayLike : toArray(arrayLike);
    for (var i = 0; i < array.length; i++) {
      if (predicate(array[i])) {
        return array[i];
      }
    }
  
    return undefined;
  };
  
  /**
   * Returns a suitable event name for the input element.
   */
  var getInputEventName = function (el) {
    if (el && (el.tagName === 'SELECT' || ~['radio', 'checkbox', 'file'].indexOf(el.type))) {
      return 'change';
    }
  
    return 'input';
  };
  
  var isBuiltInComponent = function (vnode) {
    if (!vnode) {
      return false;
    }
  
    var tag = vnode.componentOptions.tag;
  
    return /keep-alive|transition|transition-group/.test(tag);
  };
  
  var makeEventsArray = function (events) {
    return (typeof events === 'string' && events.length) ? events.split('|') : [];
  };
  
  var makeDelayObject = function (events, delay, delayConfig) {
    if (typeof delay === 'number') {
      return events.reduce(function (prev, e) {
        prev[e] = delay;
        return prev;
      }, {});
    }
  
    return events.reduce(function (prev, e) {
      if (typeof delay === 'object' && e in delay) {
        prev[e] = delay[e];
        return prev;
      }
  
      if (typeof delayConfig === 'number') {
        prev[e] = delayConfig;
        return prev;
      }
  
      prev[e] = (delayConfig && delayConfig[e]) || 0;
  
      return prev;
    }, {});
  };
  
  var deepParseInt = function (input) {
    if (typeof input === 'number') { return input; }
  
    if (typeof input === 'string') { return parseInt(input); }
  
    var map = {};
    for (var element in input) {
      map[element] = parseInt(input[element]);
    }
  
    return map;
  };
  
  var merge = function (target, source) {
    if (! (isObject(target) && isObject(source))) {
      return target;
    }
  
    Object.keys(source).forEach(function (key) {
      if (isObject(source[key])) {
        if (! target[key]) {
          assign(target, ( obj = {}, obj[key] = {}, obj ));
          var obj;
        }
  
        merge(target[key], source[key]);
        return;
      }
  
      assign(target, ( obj$1 = {}, obj$1[key] = source[key], obj$1 ));
      var obj$1;
    });
  
    return target;
  };
  
  // 
  
  var ErrorBag = function ErrorBag () {
    this.items = [];
  };
  
  /**
   * Adds an error to the internal array.
   */
  ErrorBag.prototype.add = function add (error) {
    // handle old signature.
    if (arguments.length > 1) {
      error = {
        field: arguments[0],
        msg: arguments[1],
        rule: arguments[2],
        scope: !isNullOrUndefined(arguments[3]) ? arguments[3] : null,
        regenerate: null
      };
    }
  
    error.scope = !isNullOrUndefined(error.scope) ? error.scope : null;
    this.items.push(error);
  };
  
  /**
   * Regenrates error messages if they have a generator function.
   */
  ErrorBag.prototype.regenerate = function regenerate () {
    this.items.forEach(function (i) {
      i.msg = isCallable(i.regenerate) ? i.regenerate() : i.msg;
    });
  };
  
  /**
   * Updates a field error with the new field scope.
   */
  ErrorBag.prototype.update = function update (id, error) {
    var item = find(this.items, function (i) { return i.id === id; });
    if (!item) {
      return;
    }
  
    var idx = this.items.indexOf(item);
    this.items.splice(idx, 1);
    item.scope = error.scope;
    this.items.push(item);
  };
  
  /**
   * Gets all error messages from the internal array.
   */
  ErrorBag.prototype.all = function all (scope) {
    if (isNullOrUndefined(scope)) {
      return this.items.map(function (e) { return e.msg; });
    }
  
    return this.items.filter(function (e) { return e.scope === scope; }).map(function (e) { return e.msg; });
  };
  
  /**
   * Checks if there are any errors in the internal array.
   */
  ErrorBag.prototype.any = function any (scope) {
    if (isNullOrUndefined(scope)) {
      return !!this.items.length;
    }
  
    return !!this.items.filter(function (e) { return e.scope === scope; }).length;
  };
  
  /**
   * Removes all items from the internal array.
   */
  ErrorBag.prototype.clear = function clear (scope) {
      var this$1 = this;
  
    if (isNullOrUndefined(scope)) {
      scope = null;
    }
  
    for (var i = 0; i < this.items.length; ++i) {
      if (this$1.items[i].scope === scope) {
        this$1.items.splice(i, 1);
        --i;
      }
    }
  };
  
  /**
   * Collects errors into groups or for a specific field.
   */
  ErrorBag.prototype.collect = function collect (field, scope, map) {
      if ( map === void 0 ) map = true;
  
    if (!field) {
      var collection = {};
      this.items.forEach(function (e) {
        if (! collection[e.field]) {
          collection[e.field] = [];
        }
  
        collection[e.field].push(map ? e.msg : e);
      });
  
      return collection;
    }
  
    field = !isNullOrUndefined(field) ? String(field) : field;
    if (isNullOrUndefined(scope)) {
      return this.items.filter(function (e) { return e.field === field; }).map(function (e) { return (map ? e.msg : e); });
    }
  
    return this.items.filter(function (e) { return e.field === field && e.scope === scope; })
      .map(function (e) { return (map ? e.msg : e); });
  };
  /**
   * Gets the internal array length.
   */
  ErrorBag.prototype.count = function count () {
    return this.items.length;
  };
  
  /**
   * Finds and fetches the first error message for the specified field id.
   */
  ErrorBag.prototype.firstById = function firstById (id) {
    var error = find(this.items, function (i) { return i.id === id; });
  
    return error ? error.msg : null;
  };
  
  /**
   * Gets the first error message for a specific field.
   */
  ErrorBag.prototype.first = function first (field, scope) {
      var this$1 = this;
      if ( scope === void 0 ) scope = null;
  
    if (isNullOrUndefined(field)) {
      return null;
    }
  
    field = String(field);
    var selector = this._selector(field);
    var scoped = this._scope(field);
  
    if (scoped) {
      var result = this.first(scoped.name, scoped.scope);
      // if such result exist, return it. otherwise it could be a field.
      // with dot in its name.
      if (result) {
        return result;
      }
    }
  
    if (selector) {
      return this.firstByRule(selector.name, selector.rule, scope);
    }
  
    for (var i = 0; i < this.items.length; ++i) {
      if (this$1.items[i].field === field && (this$1.items[i].scope === scope)) {
        return this$1.items[i].msg;
      }
    }
  
    return null;
  };
  
  /**
   * Returns the first error rule for the specified field
   */
  ErrorBag.prototype.firstRule = function firstRule (field, scope) {
    var errors = this.collect(field, scope, false);
  
    return (errors.length && errors[0].rule) || null;
  };
  
  /**
   * Checks if the internal array has at least one error for the specified field.
   */
  ErrorBag.prototype.has = function has (field, scope) {
      if ( scope === void 0 ) scope = null;
  
    return !!this.first(field, scope);
  };
  
  /**
   * Gets the first error message for a specific field and a rule.
   */
  ErrorBag.prototype.firstByRule = function firstByRule (name, rule, scope) {
      if ( scope === void 0 ) scope = null;
  
    var error = this.collect(name, scope, false).filter(function (e) { return e.rule === rule; })[0];
  
    return (error && error.msg) || null;
  };
  
  /**
   * Gets the first error message for a specific field that not match the rule.
   */
  ErrorBag.prototype.firstNot = function firstNot (name, rule, scope) {
      if ( rule === void 0 ) rule = 'required';
      if ( scope === void 0 ) scope = null;
  
    var error = this.collect(name, scope, false).filter(function (e) { return e.rule !== rule; })[0];
  
    return (error && error.msg) || null;
  };
  
  /**
   * Removes errors by matching against the id.
   */
  ErrorBag.prototype.removeById = function removeById (id) {
      var this$1 = this;
  
    for (var i = 0; i < this.items.length; ++i) {
      if (this$1.items[i].id === id) {
        this$1.items.splice(i, 1);
        --i;
      }
    }
  };
  
  /**
   * Removes all error messages associated with a specific field.
   */
  ErrorBag.prototype.remove = function remove (field, scope, id) {
      var this$1 = this;
  
    field = !isNullOrUndefined(field) ? String(field) : field;
    var removeCondition = function (e) {
      if (e.id && id) {
        return e.id === id;
      }
  
      if (!isNullOrUndefined(scope)) {
        return e.field === field && e.scope === scope;
      }
  
      return e.field === field && e.scope === null;
    };
  
    for (var i = 0; i < this.items.length; ++i) {
      if (removeCondition(this$1.items[i])) {
        this$1.items.splice(i, 1);
        --i;
      }
    }
  };
  
  /**
   * Get the field attributes if there's a rule selector.
   */
  ErrorBag.prototype._selector = function _selector (field) {
    if (field.indexOf(':') > -1) {
      var ref = field.split(':');
        var name = ref[0];
        var rule = ref[1];
  
      return { name: name, rule: rule };
    }
  
    return null;
  };
  
  /**
   * Get the field scope if specified using dot notation.
   */
  ErrorBag.prototype._scope = function _scope (field) {
    if (field.indexOf('.') > -1) {
      var ref = field.split('.');
        var scope = ref[0];
        var name = ref.slice(1);
  
      return { name: name.join('.'), scope: scope };
    }
  
    return null;
  };
  
  // 
  
  var LOCALE = 'en';
  
  var Dictionary = function Dictionary (dictionary) {
    if ( dictionary === void 0 ) dictionary = {};
  
    this.container = {};
    this.merge(dictionary);
  };
  
  var prototypeAccessors$2 = { locale: {} };
  
  prototypeAccessors$2.locale.get = function () {
    return LOCALE;
  };
  
  prototypeAccessors$2.locale.set = function (value) {
    LOCALE = value || 'en';
  };
  
  Dictionary.prototype.hasLocale = function hasLocale (locale) {
    return !!this.container[locale];
  };
  
  Dictionary.prototype.setDateFormat = function setDateFormat (locale, format) {
    if (!this.container[locale]) {
      this.container[locale] = {};
    }
  
    this.container[locale].dateFormat = format;
  };
  
  Dictionary.prototype.getDateFormat = function getDateFormat (locale) {
    if (!this.container[locale] || !this.container[locale].dateFormat) {
      return null;
    }
  
    return this.container[locale].dateFormat;
  };
  
  Dictionary.prototype.getMessage = function getMessage (locale, key, data) {
    var message = null;
    if (!this.hasMessage(locale, key)) {
      message = this._getDefaultMessage(locale);
    } else {
      message = this.container[locale].messages[key];
    }
  
    return isCallable(message) ? message.apply(void 0, data) : message;
  };
  
  /**
   * Gets a specific message for field. falls back to the rule message.
   */
  Dictionary.prototype.getFieldMessage = function getFieldMessage (locale, field, key, data) {
    if (!this.hasLocale(locale)) {
      return this.getMessage(locale, key, data);
    }
  
    var dict = this.container[locale].custom && this.container[locale].custom[field];
    if (!dict || !dict[key]) {
      return this.getMessage(locale, key, data);
    }
  
    var message = dict[key];
    return isCallable(message) ? message.apply(void 0, data) : message;
  };
  
  Dictionary.prototype._getDefaultMessage = function _getDefaultMessage (locale) {
    if (this.hasMessage(locale, '_default')) {
      return this.container[locale].messages._default;
    }
  
    return this.container.en.messages._default;
  };
  
  Dictionary.prototype.getAttribute = function getAttribute (locale, key, fallback) {
      if ( fallback === void 0 ) fallback = '';
  
    if (!this.hasAttribute(locale, key)) {
      return fallback;
    }
  
    return this.container[locale].attributes[key];
  };
  
  Dictionary.prototype.hasMessage = function hasMessage (locale, key) {
    return !! (
      this.hasLocale(locale) &&
            this.container[locale].messages &&
            this.container[locale].messages[key]
    );
  };
  
  Dictionary.prototype.hasAttribute = function hasAttribute (locale, key) {
    return !! (
      this.hasLocale(locale) &&
            this.container[locale].attributes &&
            this.container[locale].attributes[key]
    );
  };
  
  Dictionary.prototype.merge = function merge$1 (dictionary) {
    merge(this.container, dictionary);
  };
  
  Dictionary.prototype.setMessage = function setMessage (locale, key, message) {
    if (! this.hasLocale(locale)) {
      this.container[locale] = {
        messages: {},
        attributes: {}
      };
    }
  
    this.container[locale].messages[key] = message;
  };
  
  Dictionary.prototype.setAttribute = function setAttribute (locale, key, attribute) {
    if (! this.hasLocale(locale)) {
      this.container[locale] = {
        messages: {},
        attributes: {}
      };
    }
  
    this.container[locale].attributes[key] = attribute;
  };
  
  Object.defineProperties( Dictionary.prototype, prototypeAccessors$2 );
  
  // 
  
  var normalizeValue = function (value) {
    if (isObject(value)) {
      return Object.keys(value).reduce(function (prev, key) {
        prev[key] = normalizeValue(value[key]);
  
        return prev;
      }, {});
    }
  
    if (isCallable(value)) {
      return value('{0}', ['{1}', '{2}', '{3}']);
    }
  
    return value;
  };
  
  var normalizeFormat = function (locale) {
    // normalize messages
    var messages = normalizeValue(locale.messages);
    var custom = normalizeValue(locale.custom);
  
    return {
      messages: messages,
      custom: custom,
      attributes: locale.attributes,
      dateFormat: locale.dateFormat
    };
  };
  
  var I18nDictionary = function I18nDictionary (i18n, rootKey) {
    this.i18n = i18n;
    this.rootKey = rootKey;
  };
  
  var prototypeAccessors$3 = { locale: {} };
  
  prototypeAccessors$3.locale.get = function () {
    return this.i18n.locale;
  };
  
  prototypeAccessors$3.locale.set = function (value) {
    warn('Cannot set locale from the validator when using vue-i18n, use i18n.locale setter instead');
  };
  
  I18nDictionary.prototype.getDateFormat = function getDateFormat (locale) {
    return this.i18n.getDateTimeFormat(locale || this.locale);
  };
  
  I18nDictionary.prototype.setDateFormat = function setDateFormat (locale, value) {
    this.i18n.setDateTimeFormat(locale || this.locale, value);
  };
  
  I18nDictionary.prototype.getMessage = function getMessage (locale, key, data) {
    var path = (this.rootKey) + ".messages." + key;
    if (!this.i18n.te(path)) {
      return this.i18n.t(((this.rootKey) + ".messages._default"), locale, data);
    }
  
    return this.i18n.t(path, locale, data);
  };
  
  I18nDictionary.prototype.getAttribute = function getAttribute (locale, key, fallback) {
      if ( fallback === void 0 ) fallback = '';
  
    var path = (this.rootKey) + ".attributes." + key;
    if (!this.i18n.te(path)) {
      return fallback;
    }
  
    return this.i18n.t(path, locale);
  };
  
  I18nDictionary.prototype.getFieldMessage = function getFieldMessage (locale, field, key, data) {
    var path = (this.rootKey) + ".custom." + field + "." + key;
    if (this.i18n.te(path)) {
      return this.i18n.t(path);
    }
  
    return this.getMessage(locale, key, data);
  };
  
  I18nDictionary.prototype.merge = function merge$1 (dictionary) {
      var this$1 = this;
  
    Object.keys(dictionary).forEach(function (localeKey) {
      // i18n doesn't deep merge
      // first clone the existing locale (avoid mutations to locale)
      var clone = merge({}, getPath((localeKey + "." + (this$1.rootKey)), this$1.i18n.messages, {}));
      // Merge cloned locale with new one
      var locale = merge(clone, normalizeFormat(dictionary[localeKey]));
      this$1.i18n.mergeLocaleMessage(localeKey, ( obj = {}, obj[this$1.rootKey] = locale, obj ));
        var obj;
      if (locale.dateFormat) {
        this$1.i18n.setDateTimeFormat(localeKey, locale.dateFormat);
      }
    });
  };
  
  I18nDictionary.prototype.setMessage = function setMessage (locale, key, value) {
    this.merge(( obj$1 = {}, obj$1[locale] = {
        messages: ( obj = {}, obj[key] = value, obj )
      }, obj$1 ));
      var obj;
      var obj$1;
  };
  
  I18nDictionary.prototype.setAttribute = function setAttribute (locale, key, value) {
    this.merge(( obj$1 = {}, obj$1[locale] = {
        attributes: ( obj = {}, obj[key] = value, obj )
      }, obj$1 ));
      var obj;
      var obj$1;
  };
  
  Object.defineProperties( I18nDictionary.prototype, prototypeAccessors$3 );
  
  // 
  
  var defaultConfig = {
    locale: 'en',
    delay: 0,
    errorBagName: 'errors',
    dictionary: null,
    strict: true,
    fieldsBagName: 'fields',
    classes: false,
    classNames: null,
    events: 'input|blur',
    inject: true,
    fastExit: true,
    aria: true,
    validity: false,
    i18n: null,
    i18nRootKey: 'validation'
  };
  
  var currentConfig = assign({}, defaultConfig);
  var dependencies = {
    dictionary: new Dictionary({
      en: {
        messages: {},
        attributes: {},
        custom: {}
      }
    })
  };
  
  var Config = function Config () {};
  
  var staticAccessors$1 = { default: {},current: {} };
  
  staticAccessors$1.default.get = function () {
    return defaultConfig;
  };
  
  staticAccessors$1.current.get = function () {
    return currentConfig;
  };
  
  Config.dependency = function dependency (key) {
    return dependencies[key];
  };
  
  /**
   * Merges the config with a new one.
   */
  Config.merge = function merge$$1 (config) {
    currentConfig = assign({}, currentConfig, config);
    if (currentConfig.i18n) {
      Config.register('dictionary', new I18nDictionary(currentConfig.i18n, currentConfig.i18nRootKey));
    }
  };
  
  /**
   * Registers a dependency.
   */
  Config.register = function register (key, value) {
    dependencies[key] = value;
  };
  
  /**
   * Resolves the working config from a Vue instance.
   */
  Config.resolve = function resolve (context) {
    var selfConfig = getPath('$options.$_veeValidate', context, {});
  
    return assign({}, Config.current, selfConfig);
  };
  
  Object.defineProperties( Config, staticAccessors$1 );
  
  /**
   * Generates the options required to construct a field.
   */
  var Generator = function Generator () {};
  
  Generator.generate = function generate (el, binding, vnode) {
    var model = Generator.resolveModel(binding, vnode);
    var options = Config.resolve(vnode.context);
  
    return {
      name: Generator.resolveName(el, vnode),
      el: el,
      listen: !binding.modifiers.disable,
      scope: Generator.resolveScope(el, binding, vnode),
      vm: Generator.makeVM(vnode.context),
      expression: binding.value,
      component: vnode.child,
      classes: options.classes,
      classNames: options.classNames,
      getter: Generator.resolveGetter(el, vnode, model),
      events: Generator.resolveEvents(el, vnode) || options.events,
      model: model,
      delay: Generator.resolveDelay(el, vnode, options),
      rules: Generator.resolveRules(el, binding),
      initial: !!binding.modifiers.initial,
      validity: options.validity,
      aria: options.aria,
      initialValue: Generator.resolveInitialValue(vnode)
    };
  };
  
  Generator.getCtorConfig = function getCtorConfig (vnode) {
    if (!vnode.child) { return null; }
  
    var config = getPath('child.$options.$_veeValidate', vnode);
  
    return config;
  };
  
  /**
   * Resolves the rules defined on an element.
   */
  Generator.resolveRules = function resolveRules (el, binding) {
    if (!binding.value && (!binding || !binding.expression)) {
      return getDataAttribute(el, 'rules');
    }
  
    if (~['string', 'object'].indexOf(typeof binding.value.rules)) {
      return binding.value.rules;
    }
  
    return binding.value;
  };
  
  /**
   * @param {*} vnode
   */
  Generator.resolveInitialValue = function resolveInitialValue (vnode) {
    var model = vnode.data.model || find(vnode.data.directives, function (d) { return d.name === 'model'; });
  
    return model && model.value;
  };
  
  /**
   * Creates a non-circular partial VM instance from a Vue instance.
   * @param {*} vm
   */
  Generator.makeVM = function makeVM (vm) {
    return {
      get $el () {
        return vm.$el;
      },
      get $refs () {
        return vm.$refs;
      },
      $watch: vm.$watch ? vm.$watch.bind(vm) : function () {},
      $validator: vm.$validator ? {
        errors: vm.$validator.errors,
        validate: vm.$validator.validate.bind(vm.$validator),
        update: vm.$validator.update.bind(vm.$validator)
      } : null
    };
  };
  
  /**
   * Resolves the delay value.
   * @param {*} el
   * @param {*} vnode
   * @param {Object} options
   */
  Generator.resolveDelay = function resolveDelay (el, vnode, options) {
    var delay = getDataAttribute(el, 'delay');
    var globalDelay = (options && 'delay' in options) ? options.delay : 0;
  
    if (!delay && vnode.child && vnode.child.$attrs) {
      delay = vnode.child.$attrs['data-vv-delay'];
    }
  
    if (!isObject(globalDelay)) {
      return deepParseInt(delay || globalDelay);
    }
  
    globalDelay.input = delay || 0;
  
    return deepParseInt(globalDelay);
  };
  
  /**
   * Resolves the events to validate in response to.
   * @param {*} el
   * @param {*} vnode
   */
  Generator.resolveEvents = function resolveEvents (el, vnode) {
    var events = getDataAttribute(el, 'validate-on');
  
    if (!events && vnode.child && vnode.child.$attrs) {
      events = vnode.child.$attrs['data-vv-validate-on'];
    }
  
    if (!events && vnode.child) {
      var config = Generator.getCtorConfig(vnode);
      events = config && config.events;
    }
  
    return events;
  };
  
  /**
   * Resolves the scope for the field.
   * @param {*} el
   * @param {*} binding
   */
  Generator.resolveScope = function resolveScope (el, binding, vnode) {
      if ( vnode === void 0 ) vnode = {};
  
    var scope = null;
    if (vnode.child && isNullOrUndefined(scope)) {
      scope = vnode.child.$attrs && vnode.child.$attrs['data-vv-scope'];
    }
  
    return !isNullOrUndefined(scope) ? scope : getScope(el);
  };
  
  /**
   * Checks if the node directives contains a v-model or a specified arg.
   * Args take priority over models.
   *
   * @return {Object}
   */
  Generator.resolveModel = function resolveModel (binding, vnode) {
    if (binding.arg) {
      return binding.arg;
    }
  
    var model = vnode.data.model || find(vnode.data.directives, function (d) { return d.name === 'model'; });
    if (!model) {
      return null;
    }
  
    var watchable = /^[a-z_]+[0-9]*(\w*\.[a-z_]\w*)*$/i.test(model.expression) && hasPath(model.expression, vnode.context);
    if (!watchable) {
      return null;
    }
  
    return model.expression;
  };
  
  /**
     * Resolves the field name to trigger validations.
     * @return {String} The field name.
     */
  Generator.resolveName = function resolveName (el, vnode) {
    var name = getDataAttribute(el, 'name');
  
    if (!name && !vnode.child) {
      return el.name;
    }
  
    if (!name && vnode.child && vnode.child.$attrs) {
      name = vnode.child.$attrs['data-vv-name'] || vnode.child.$attrs['name'];
    }
  
    if (!name && vnode.child) {
      var config = Generator.getCtorConfig(vnode);
      if (config && isCallable(config.name)) {
        var boundGetter = config.name.bind(vnode.child);
  
        return boundGetter();
      }
  
      return vnode.child.name;
    }
  
    return name;
  };
  
  /**
   * Returns a value getter input type.
   */
  Generator.resolveGetter = function resolveGetter (el, vnode, model) {
    if (model) {
      return function () {
        return getPath(model, vnode.context);
      };
    }
  
    if (vnode.child) {
      var path = getDataAttribute(el, 'value-path') || (vnode.child.$attrs && vnode.child.$attrs['data-vv-value-path']);
      if (path) {
        return function () {
          return getPath(path, vnode.child);
        };
      }
  
      var config = Generator.getCtorConfig(vnode);
      if (config && isCallable(config.value)) {
        var boundGetter = config.value.bind(vnode.child);
  
        return function () {
          return boundGetter();
        };
      }
  
      return function () {
        return vnode.child.value;
      };
    }
  
    switch (el.type) {
    case 'checkbox': return function () {
      var els = document.querySelectorAll(("input[name=\"" + (el.name) + "\"]"));
  
      els = toArray(els).filter(function (el) { return el.checked; });
      if (!els.length) { return undefined; }
  
      return els.map(function (checkbox) { return checkbox.value; });
    };
    case 'radio': return function () {
      var els = document.querySelectorAll(("input[name=\"" + (el.name) + "\"]"));
      var elm = find(els, function (el) { return el.checked; });
  
      return elm && elm.value;
    };
    case 'file': return function (context) {
      return toArray(el.files);
    };
    case 'select-multiple': return function () {
      return toArray(el.options).filter(function (opt) { return opt.selected; }).map(function (opt) { return opt.value; });
    };
    default: return function () {
      return el && el.value;
    };
    }
  };
  
  // 
  
  var DEFAULT_OPTIONS = {
    targetOf: null,
    initial: false,
    scope: null,
    listen: true,
    name: null,
    rules: {},
    vm: null,
    classes: false,
    validity: true,
    aria: true,
    events: 'input|blur',
    delay: 0,
    classNames: {
      touched: 'touched', // the control has been blurred
      untouched: 'untouched', // the control hasn't been blurred
      valid: 'valid', // model is valid
      invalid: 'invalid', // model is invalid
      pristine: 'pristine', // control has not been interacted with
      dirty: 'dirty' // control has been interacted with
    }
  };
  
  var Field = function Field (el, options) {
    if ( options === void 0 ) options = {};
  
    this.id = uniqId();
    this.el = el;
    this.updated = false;
    this.dependencies = [];
    this.watchers = [];
    this.events = [];
    this.delay = 0;
    this.rules = {};
    this._cacheId(options);
    this.classNames = assign({}, DEFAULT_OPTIONS.classNames);
    options = assign({}, DEFAULT_OPTIONS, options);
    this._delay = !isNullOrUndefined(options.delay) ? options.delay : 0; // cache initial delay
    this.validity = options.validity;
    this.aria = options.aria;
    this.flags = createFlags();
    this.vm = options.vm;
    this.component = options.component;
    this.ctorConfig = this.component ? getPath('$options.$_veeValidate', this.component) : undefined;
    this.update(options);
    this.updated = false;
  };
  
  var prototypeAccessors$1 = { validator: {},isRequired: {},isDisabled: {},alias: {},value: {},rejectsFalse: {} };
  
  prototypeAccessors$1.validator.get = function () {
    if (!this.vm || !this.vm.$validator) {
      warn('No validator instance detected.');
      return { validate: function () {} };
    }
  
    return this.vm.$validator;
  };
  
  prototypeAccessors$1.isRequired.get = function () {
    return !!this.rules.required;
  };
  
  prototypeAccessors$1.isDisabled.get = function () {
    return !!(this.component && this.component.disabled) || !!(this.el && this.el.disabled);
  };
  
  /**
   * Gets the display name (user-friendly name).
   */
  prototypeAccessors$1.alias.get = function () {
    if (this._alias) {
      return this._alias;
    }
  
    var alias = null;
    if (this.el) {
      alias = getDataAttribute(this.el, 'as');
    }
  
    if (!alias && this.component) {
      return this.component.$attrs && this.component.$attrs['data-vv-as'];
    }
  
    return alias;
  };
  
  /**
   * Gets the input value.
   */
  
  prototypeAccessors$1.value.get = function () {
    if (!isCallable(this.getter)) {
      return undefined;
    }
  
    return this.getter();
  };
  
  /**
   * If the field rejects false as a valid value for the required rule.
   */
  
  prototypeAccessors$1.rejectsFalse.get = function () {
    if (this.component && this.ctorConfig) {
      return !!this.ctorConfig.rejectsFalse;
    }
  
    if (!this.el) {
      return false;
    }
  
    return this.el.type === 'checkbox';
  };
  
  /**
   * Determines if the instance matches the options provided.
   */
  Field.prototype.matches = function matches (options) {
    if (options.id) {
      return this.id === options.id;
    }
  
    if (options.name === undefined && options.scope === undefined) {
      return true;
    }
  
    if (options.scope === undefined) {
      return this.name === options.name;
    }
  
    if (options.name === undefined) {
      return this.scope === options.scope;
    }
  
    return options.name === this.name && options.scope === this.scope;
  };
  
  /**
   * Caches the field id.
   */
  Field.prototype._cacheId = function _cacheId (options) {
    if (this.el && !options.targetOf) {
      setDataAttribute(this.el, 'id', this.id); // cache field id if it is independent and has a root element.
    }
  };
  
  /**
   * Updates the field with changed data.
   */
  Field.prototype.update = function update (options) {
    this.targetOf = options.targetOf || null;
    this.initial = options.initial || this.initial || false;
  
    // update errors scope if the field scope was changed.
    if (!isNullOrUndefined(options.scope) && options.scope !== this.scope && isCallable(this.validator.update)) {
      this.validator.update(this.id, { scope: options.scope });
    }
    this.scope = !isNullOrUndefined(options.scope) ? options.scope
      : !isNullOrUndefined(this.scope) ? this.scope : null;
    this.name = (!isNullOrUndefined(options.name) ? String(options.name) : options.name) || this.name || null;
    this.rules = options.rules !== undefined ? normalizeRules(options.rules) : this.rules;
    this.model = options.model || this.model;
    this.listen = options.listen !== undefined ? options.listen : this.listen;
    this.classes = (options.classes || this.classes || false) && !this.component;
    this.classNames = isObject(options.classNames) ? merge(this.classNames, options.classNames) : this.classNames;
    this.getter = isCallable(options.getter) ? options.getter : this.getter;
    this._alias = options.alias || this._alias;
    this.events = (options.events) ? makeEventsArray(options.events) : this.events;
    this.delay = (options.delay) ? makeDelayObject(this.events, options.delay, this._delay) : makeDelayObject(this.events, this.delay, this._delay);
    this.updateDependencies();
    this.addActionListeners();
  
    // update required flag flags
    if (options.rules !== undefined) {
      this.flags.required = this.isRequired;
    }
  
    // validate if it was validated before and field was updated and there was a rules mutation.
    if (this.flags.validated && options.rules !== undefined && this.updated) {
      this.validator.validate(("#" + (this.id)));
    }
  
    this.updated = true;
    this.addValueListeners();
  
    // no need to continue.
    if (!this.el) {
      return;
    }
  
    this.updateClasses();
    this.updateAriaAttrs();
  };
  
  /**
   * Resets field flags and errors.
   */
  Field.prototype.reset = function reset () {
      var this$1 = this;
  
    var defaults = createFlags();
    Object.keys(this.flags).filter(function (flag) { return flag !== 'required'; }).forEach(function (flag) {
      this$1.flags[flag] = defaults[flag];
    });
  
    this.addActionListeners();
    this.updateClasses();
    this.updateAriaAttrs();
    this.updateCustomValidity();
  };
  
  /**
   * Sets the flags and their negated counterparts, and updates the classes and re-adds action listeners.
   */
  Field.prototype.setFlags = function setFlags (flags) {
      var this$1 = this;
  
    var negated = {
      pristine: 'dirty',
      dirty: 'pristine',
      valid: 'invalid',
      invalid: 'valid',
      touched: 'untouched',
      untouched: 'touched'
    };
  
    Object.keys(flags).forEach(function (flag) {
      this$1.flags[flag] = flags[flag];
      // if it has a negation and was not specified, set it as well.
      if (negated[flag] && flags[negated[flag]] === undefined) {
        this$1.flags[negated[flag]] = !flags[flag];
      }
    });
  
    if (
      flags.untouched !== undefined ||
      flags.touched !== undefined ||
      flags.dirty !== undefined ||
      flags.pristine !== undefined
    ) {
      this.addActionListeners();
    }
    this.updateClasses();
    this.updateAriaAttrs();
    this.updateCustomValidity();
  };
  
  /**
   * Determines if the field requires references to target fields.
  */
  Field.prototype.updateDependencies = function updateDependencies () {
      var this$1 = this;
  
    // reset dependencies.
    this.dependencies.forEach(function (d) { return d.field.destroy(); });
    this.dependencies = [];
  
    // we get the selectors for each field.
    var fields = Object.keys(this.rules).reduce(function (prev, r) {
      if (Validator.isTargetRule(r)) {
        var selector = this$1.rules[r][0];
        if (r === 'confirmed' && !selector) {
          selector = (this$1.name) + "_confirmation";
        }
  
        prev.push({ selector: selector, name: r });
      }
  
      return prev;
    }, []);
  
    if (!fields.length || !this.vm || !this.vm.$el) { return; }
  
    // must be contained within the same component, so we use the vm root element constrain our dom search.
    fields.forEach(function (ref) {
        var selector = ref.selector;
        var name = ref.name;
  
      var el = null;
      // vue ref selector.
      if (selector[0] === '$') {
        var ref$1 = this$1.vm.$refs[selector.slice(1)];
        el = Array.isArray(ref$1) ? ref$1[0] : ref$1;
      } else {
        try {
          // try query selector
          el = this$1.vm.$el.querySelector(selector);
        } catch (err) {
          el = null;
        }
      }
  
      if (!el) {
        try {
          el = this$1.vm.$el.querySelector(("input[name=\"" + selector + "\"]"));
        } catch (err) {
          el = null;
        }
      }
  
      if (!el) {
        return;
      }
  
      var options = {
        vm: this$1.vm,
        classes: this$1.classes,
        classNames: this$1.classNames,
        delay: this$1.delay,
        scope: this$1.scope,
        events: this$1.events.join('|'),
        initial: this$1.initial,
        targetOf: this$1.id
      };
  
      // probably a component.
      if (isCallable(el.$watch)) {
        options.component = el;
        options.el = el.$el;
        options.getter = Generator.resolveGetter(el.$el, { child: el });
      } else {
        options.el = el;
        options.getter = Generator.resolveGetter(el, {});
      }
  
      this$1.dependencies.push({ name: name, field: new Field(options.el, options) });
    });
  };
  
  /**
   * Removes listeners.
   */
  Field.prototype.unwatch = function unwatch (tag) {
      if ( tag === void 0 ) tag = null;
  
    if (!tag) {
      this.watchers.forEach(function (w) { return w.unwatch(); });
      this.watchers = [];
      return;
    }
  
    this.watchers.filter(function (w) { return tag.test(w.tag); }).forEach(function (w) { return w.unwatch(); });
    this.watchers = this.watchers.filter(function (w) { return !tag.test(w.tag); });
  };
  
  /**
   * Updates the element classes depending on each field flag status.
   */
  Field.prototype.updateClasses = function updateClasses () {
    if (!this.classes || this.isDisabled) { return; }
  
    toggleClass(this.el, this.classNames.dirty, this.flags.dirty);
    toggleClass(this.el, this.classNames.pristine, this.flags.pristine);
    toggleClass(this.el, this.classNames.touched, this.flags.touched);
    toggleClass(this.el, this.classNames.untouched, this.flags.untouched);
    // make sure we don't set any classes if the state is undetermined.
    if (!isNullOrUndefined(this.flags.valid) && this.flags.validated) {
      toggleClass(this.el, this.classNames.valid, this.flags.valid);
    }
  
    if (!isNullOrUndefined(this.flags.invalid) && this.flags.validated) {
      toggleClass(this.el, this.classNames.invalid, this.flags.invalid);
    }
  };
  
  /**
   * Adds the listeners required for automatic classes and some flags.
   */
  Field.prototype.addActionListeners = function addActionListeners () {
      var this$1 = this;
  
    // remove previous listeners.
    this.unwatch(/class/);
  
    var onBlur = function () {
      this$1.flags.touched = true;
      this$1.flags.untouched = false;
      if (this$1.classes) {
        toggleClass(this$1.el, this$1.classNames.touched, true);
        toggleClass(this$1.el, this$1.classNames.untouched, false);
      }
  
      // only needed once.
      this$1.unwatch(/^class_blur$/);
    };
  
    var inputEvent = getInputEventName(this.el);
    var onInput = function () {
      this$1.flags.dirty = true;
      this$1.flags.pristine = false;
      if (this$1.classes) {
        toggleClass(this$1.el, this$1.classNames.pristine, false);
        toggleClass(this$1.el, this$1.classNames.dirty, true);
      }
  
      // only needed once.
      this$1.unwatch(/^class_input$/);
    };
  
    if (this.component && isCallable(this.component.$once)) {
      this.component.$once('input', onInput);
      this.component.$once('blur', onBlur);
      this.watchers.push({
        tag: 'class_input',
        unwatch: function () {
          this$1.component.$off('input', onInput);
        }
      });
      this.watchers.push({
        tag: 'class_blur',
        unwatch: function () {
          this$1.component.$off('blur', onBlur);
        }
      });
      return;
    }
  
    if (!this.el) { return; }
  
    this.el.addEventListener(inputEvent, onInput);
    // Checkboxes and radio buttons on Mac don't emit blur naturally, so we listen on click instead.
    var blurEvent = ['radio', 'checkbox'].indexOf(this.el.type) === -1 ? 'blur' : 'click';
    this.el.addEventListener(blurEvent, onBlur);
    this.watchers.push({
      tag: 'class_input',
      unwatch: function () {
        this$1.el.removeEventListener(inputEvent, onInput);
      }
    });
  
    this.watchers.push({
      tag: 'class_blur',
      unwatch: function () {
        this$1.el.removeEventListener(blurEvent, onBlur);
      }
    });
  };
  
  /**
   * Adds the listeners required for validation.
   */
  Field.prototype.addValueListeners = function addValueListeners () {
      var this$1 = this;
  
    this.unwatch(/^input_.+/);
    if (!this.listen) { return; }
  
    var fn = this.targetOf ? function () {
      this$1.validator.validate(("#" + (this$1.targetOf)));
    } : function () {
        var args = [], len = arguments.length;
        while ( len-- ) args[ len ] = arguments[ len ];
  
      // if its a DOM event, resolve the value, otherwise use the first parameter as the value.
      if (args.length === 0 || (isCallable(Event) && args[0] instanceof Event) || (args[0] && args[0].srcElement)) {
        args[0] = this$1.value;
      }
      this$1.validator.validate(("#" + (this$1.id)), args[0]);
    };
  
    var inputEvent = getInputEventName(this.el);
    // replace input event with suitable one.
    var events = this.events.map(function (e) {
      return e === 'input' ? inputEvent : e;
    });
  
    // if there is a watchable model and an on input validation is requested.
    if (this.model && events.indexOf(inputEvent) !== -1) {
      var debouncedFn = debounce(fn, this.delay[inputEvent]);
      var unwatch = this.vm.$watch(this.model, function () {
          var args = [], len = arguments.length;
          while ( len-- ) args[ len ] = arguments[ len ];
  
        this$1.flags.pending = true;
        debouncedFn.apply(void 0, args);
      });
      this.watchers.push({
        tag: 'input_model',
        unwatch: unwatch
      });
      // filter out input event as it is already handled by the watcher API.
      events = events.filter(function (e) { return e !== inputEvent; });
    }
  
    // Add events.
    events.forEach(function (e) {
      var debouncedFn = debounce(fn, this$1.delay[e]);
      var validate = function () {
          var args = [], len = arguments.length;
          while ( len-- ) args[ len ] = arguments[ len ];
  
        this$1.flags.pending = true;
        debouncedFn.apply(void 0, args);
      };
  
      this$1._addComponentEventListener(e, validate);
      this$1._addHTMLEventListener(e, validate);
    });
  };
  
  Field.prototype._addComponentEventListener = function _addComponentEventListener (evt, validate) {
      var this$1 = this;
  
    if (!this.component) { return; }
  
    this.component.$on(evt, validate);
    this.watchers.push({
      tag: 'input_vue',
      unwatch: function () {
        this$1.component.$off(evt, validate);
      }
    });
  };
  
  Field.prototype._addHTMLEventListener = function _addHTMLEventListener (evt, validate) {
      var this$1 = this;
  
    if (!this.el) { return; }
  
    if (~['radio', 'checkbox'].indexOf(this.el.type)) {
      var els = document.querySelectorAll(("input[name=\"" + (this.el.name) + "\"]"));
      toArray(els).forEach(function (el) {
        el.addEventListener(evt, validate);
        this$1.watchers.push({
          tag: 'input_native',
          unwatch: function () {
            el.removeEventListener(evt, validate);
          }
        });
      });
  
      return;
    }
  
    this.el.addEventListener(evt, validate);
    this.watchers.push({
      tag: 'input_native',
      unwatch: function () {
        this$1.el.removeEventListener(evt, validate);
      }
    });
  };
  
  /**
   * Updates aria attributes on the element.
   */
  Field.prototype.updateAriaAttrs = function updateAriaAttrs () {
    if (!this.aria || !this.el || !isCallable(this.el.setAttribute)) { return; }
  
    this.el.setAttribute('aria-required', this.isRequired ? 'true' : 'false');
    this.el.setAttribute('aria-invalid', this.flags.invalid ? 'true' : 'false');
  };
  
  /**
   * Updates the custom validity for the field.
   */
  Field.prototype.updateCustomValidity = function updateCustomValidity () {
    if (!this.validity || !this.el || !isCallable(this.el.setCustomValidity)) { return; }
  
    this.el.setCustomValidity(this.flags.valid ? '' : (this.validator.errors.firstById(this.id) || ''));
  };
  
  /**
   * Removes all listeners.
   */
  Field.prototype.destroy = function destroy () {
    this.unwatch();
    this.dependencies.forEach(function (d) { return d.field.destroy(); });
    this.dependencies = [];
  };
  
  Object.defineProperties( Field.prototype, prototypeAccessors$1 );
  
  // 
  
  var FieldBag = function FieldBag () {
    this.items = [];
  };
  
  var prototypeAccessors$4 = { length: {} };
  
  /**
   * Gets the current items length.
   */
  
  prototypeAccessors$4.length.get = function () {
    return this.items.length;
  };
  
  /**
   * Finds the first field that matches the provided matcher object.
   */
  FieldBag.prototype.find = function find$1 (matcher) {
    return find(this.items, function (item) { return item.matches(matcher); });
  };
  
  /**
   * Filters the items down to the matched fields.
   */
  FieldBag.prototype.filter = function filter (matcher) {
    // multiple matchers to be tried.
    if (Array.isArray(matcher)) {
      return this.items.filter(function (item) { return matcher.some(function (m) { return item.matches(m); }); });
    }
  
    return this.items.filter(function (item) { return item.matches(matcher); });
  };
  
  /**
   * Maps the field items using the mapping function.
   */
  FieldBag.prototype.map = function map (mapper) {
    return this.items.map(mapper);
  };
  
  /**
   * Finds and removes the first field that matches the provided matcher object, returns the removed item.
   */
  FieldBag.prototype.remove = function remove (matcher) {
    var item = null;
    if (matcher instanceof Field) {
      item = matcher;
    } else {
      item = this.find(matcher);
    }
  
    if (!item) { return null; }
  
    var index = this.items.indexOf(item);
    this.items.splice(index, 1);
  
    return item;
  };
  
  /**
   * Adds a field item to the list.
   */
  FieldBag.prototype.push = function push (item) {
    if (! (item instanceof Field)) {
      throw createError('FieldBag only accepts instances of Field that has an id defined.');
    }
  
    if (!item.id) {
      throw createError('Field id must be defined.');
    }
  
    if (this.find({ id: item.id })) {
      throw createError(("Field with id " + (item.id) + " is already added."));
    }
  
    this.items.push(item);
  };
  
  Object.defineProperties( FieldBag.prototype, prototypeAccessors$4 );
  
  // 
  
  var RULES = {};
  var STRICT_MODE = true;
  var TARGET_RULES = ['confirmed', 'after', 'before'];
  var ERRORS = []; // HOLD errors references to trigger regeneration.
  
  var Validator = function Validator (validations, options) {
    var this$1 = this;
    if ( options === void 0 ) options = { vm: null, fastExit: true };
  
    this.strict = STRICT_MODE;
    this.errors = new ErrorBag();
  
    // We are running in SSR Mode. Do not keep a reference. It prevent garbage collection.
    if (typeof window !== 'undefined') {
      ERRORS.push(this.errors);
    }
    this.fields = new FieldBag();
    this.flags = {};
    this._createFields(validations);
    this.paused = false;
    this.fastExit = options.fastExit || false;
    this.ownerId = options.vm && options.vm._uid;
    // create it statically since we don't need constant access to the vm.
    this.reset = options.vm && isCallable(options.vm.$nextTick) ? function (matcher) {
      return new Promise(function (resolve) {
        options.vm.$nextTick(function () {
          options.vm.$nextTick(function () {
            resolve(this$1._reset(matcher));
          });
        });
      });
    } : this._reset;
  };
  
  var prototypeAccessors = { dictionary: {},locale: {},rules: {} };
  var staticAccessors = { dictionary: {},locale: {},rules: {} };
  
  /**
   * Getter for the dictionary.
   */
  prototypeAccessors.dictionary.get = function () {
    return Config.dependency('dictionary');
  };
  
  /**
   * Static Getter for the dictionary.
   */
  staticAccessors.dictionary.get = function () {
    return Config.dependency('dictionary');
  };
  
  /**
   * Getter for the current locale.
   */
  prototypeAccessors.locale.get = function () {
    return this.dictionary.locale;
  };
  
  /**
   * Setter for the validator locale.
   */
  prototypeAccessors.locale.set = function (value) {
    Validator.locale = value;
  };
  
  /**
  * Static getter for the validator locale.
  */
  staticAccessors.locale.get = function () {
    return Validator.dictionary.locale;
  };
  
  /**
   * Static setter for the validator locale.
   */
  staticAccessors.locale.set = function (value) {
    var hasChanged = value !== Validator.dictionary.locale;
    Validator.dictionary.locale = value;
    if (hasChanged) {
      Validator.regenerate();
    }
  };
  
  /**
   * Getter for the rules object.
   */
  prototypeAccessors.rules.get = function () {
    return RULES;
  };
  
  /**
   * Static Getter for the rules object.
   */
  staticAccessors.rules.get = function () {
    return RULES;
  };
  
  /**
   * Static constructor.
   */
  Validator.create = function create (validations, options) {
    return new Validator(validations, options);
  };
  
  /**
   * Adds a custom validator to the list of validation rules.
   */
  Validator.extend = function extend (name, validator, options) {
      if ( options === void 0 ) options = {};
  
    Validator._guardExtend(name, validator);
    Validator._merge(name, validator);
    if (options && options.hasTarget) {
      TARGET_RULES.push(name);
    }
  };
  
  /**
   * Regenerates error messages across all validators.
   */
  Validator.regenerate = function regenerate () {
    ERRORS.forEach(function (errorBag) { return errorBag.regenerate(); });
  };
  
  /**
   * Removes a rule from the list of validators.
   */
  Validator.remove = function remove (name) {
    delete RULES[name];
    var idx = TARGET_RULES.indexOf(name);
    if (idx === -1) { return; }
  
    TARGET_RULES.splice(idx, 1);
  };
  
  /**
   * Checks if the given rule name is a rule that targets other fields.
   */
  Validator.isTargetRule = function isTargetRule (name) {
    return TARGET_RULES.indexOf(name) !== -1;
  };
  
  /**
   * Sets the operating mode for all newly created validators.
   * strictMode = true: Values without a rule are invalid and cause failure.
   * strictMode = false: Values without a rule are valid and are skipped.
   */
  Validator.setStrictMode = function setStrictMode (strictMode) {
      if ( strictMode === void 0 ) strictMode = true;
  
    STRICT_MODE = strictMode;
  };
  
  /**
   * Adds and sets the current locale for the validator.
   */
  Validator.prototype.localize = function localize (lang, dictionary) {
    Validator.localize(lang, dictionary);
  };
  
  /**
   * Adds and sets the current locale for the validator.
   */
  Validator.localize = function localize (lang, dictionary) {
    if (isObject(lang)) {
      Validator.dictionary.merge(lang);
      return;
    }
  
    // merge the dictionary.
    if (dictionary) {
      var locale = lang || dictionary.name;
      dictionary = assign({}, dictionary);
      Validator.dictionary.merge(( obj = {}, obj[locale] = dictionary, obj ));
        var obj;
    }
  
    if (lang) {
      // set the locale.
      Validator.locale = lang;
    }
  };
  
  /**
   * Registers a field to be validated.
   */
  Validator.prototype.attach = function attach (field) {
    // deprecate: handle old signature.
    if (arguments.length > 1) {
      warn('This signature of the attach method has been deprecated, please consult the docs.');
      field = assign({}, {
        name: arguments[0],
        rules: arguments[1]
      }, arguments[2] || { vm: { $validator: this } });
    }
  
    // fixes initial value detection with v-model and select elements.
    var value = field.initialValue;
    if (!(field instanceof Field)) {
      field = new Field(field.el || null, field);
    }
  
    this.fields.push(field);
  
    // validate the field initially
    if (field.initial) {
      this.validate(("#" + (field.id)), value || field.value);
    } else {
      this._validate(field, value || field.value, true).then(function (result) {
        field.flags.valid = result.valid;
        field.flags.invalid = !result.valid;
      });
    }
  
    this._addFlag(field, field.scope);
    return field;
  };
  
  /**
   * Sets the flags on a field.
   */
  Validator.prototype.flag = function flag (name, flags) {
    var field = this._resolveField(name);
    if (! field || !flags) {
      return;
    }
  
    field.setFlags(flags);
  };
  
  /**
   * Removes a field from the validator.
   */
  Validator.prototype.detach = function detach (name, scope) {
    var field = name instanceof Field ? name : this._resolveField(name, scope);
    if (!field) { return; }
  
    field.destroy();
    this.errors.remove(field.name, field.scope, field.id);
    this.fields.remove(field);
    var flags = this.flags;
    if (!isNullOrUndefined(field.scope) && flags[("$" + (field.scope))]) {
      delete flags[("$" + (field.scope))][field.name];
    } else if (isNullOrUndefined(field.scope)) {
      delete flags[field.name];
    }
  
    this.flags = assign({}, flags);
  };
  
  /**
   * Adds a custom validator to the list of validation rules.
   */
  Validator.prototype.extend = function extend (name, validator, options) {
      if ( options === void 0 ) options = {};
  
    Validator.extend(name, validator, options);
  };
  
  /**
   * Updates a field, updating both errors and flags.
   */
  Validator.prototype.update = function update (id, ref) {
      var scope = ref.scope;
  
    var field = this._resolveField(("#" + id));
    if (!field) { return; }
  
    // remove old scope.
    this.errors.update(id, { scope: scope });
    if (!isNullOrUndefined(field.scope) && this.flags[("$" + (field.scope))]) {
      delete this.flags[("$" + (field.scope))][field.name];
    } else if (isNullOrUndefined(field.scope)) {
      delete this.flags[field.name];
    }
  
    this._addFlag(field, scope);
  };
  
  /**
   * Removes a rule from the list of validators.
   */
  Validator.prototype.remove = function remove (name) {
    Validator.remove(name);
  };
  
  /**
   * Validates a value against a registered field validations.
   */
  Validator.prototype.validate = function validate (name, value, scope) {
      var this$1 = this;
      if ( scope === void 0 ) scope = null;
  
    if (this.paused) { return Promise.resolve(true); }
  
    // overload to validate all.
    if (arguments.length === 0) {
      return this.validateScopes();
    }
  
    // overload to validate scope-less fields.
    if (arguments.length === 1 && arguments[0] === '*') {
      return this.validateAll();
    }
  
    // overload to validate a scope.
    if (arguments.length === 1 && typeof arguments[0] === 'string' && /^(.+)\.\*$/.test(arguments[0])) {
      var matched = arguments[0].match(/^(.+)\.\*$/)[1];
      return this.validateAll(matched);
    }
  
    var field = this._resolveField(name, scope);
    if (!field) {
      return this._handleFieldNotFound(name, scope);
    }
  
    field.flags.pending = true;
    if (arguments.length === 1) {
      value = field.value;
    }
  
    var silentRun = field.isDisabled;
  
    return this._validate(field, value, silentRun).then(function (result) {
      this$1.errors.remove(field.name, field.scope, field.id);
      if (silentRun) {
        return Promise.resolve(true);
      } else if (result.errors) {
        result.errors.forEach(function (e) { return this$1.errors.add(e); });
      }
  
      field.setFlags({
        pending: false,
        valid: result.valid,
        validated: true
      });
  
      return result.valid;
    });
  };
  
  /**
   * Pauses the validator.
   */
  Validator.prototype.pause = function pause () {
    this.paused = true;
  
    return this;
  };
  
  /**
   * Resumes the validator.
   */
  Validator.prototype.resume = function resume () {
    this.paused = false;
  
    return this;
  };
  
  /**
   * Validates each value against the corresponding field validations.
   */
  Validator.prototype.validateAll = function validateAll (values) {
      var arguments$1 = arguments;
      var this$1 = this;
  
    if (this.paused) { return Promise.resolve(true); }
  
    var matcher = null;
    var providedValues = false;
  
    if (typeof values === 'string') {
      matcher = { scope: values };
    } else if (isObject(values)) {
      matcher = Object.keys(values).map(function (key) {
        return { name: key, scope: arguments$1[1] || null };
      });
      providedValues = true;
    } else if (arguments.length === 0) {
      matcher = { scope: null }; // global scope.
    } else if (Array.isArray(values)) {
      matcher = values.map(function (key) {
        return { name: key, scope: arguments$1[1] || null };
      });
    }
  
    var promises = this.fields.filter(matcher).map(function (field) { return this$1.validate(
      ("#" + (field.id)),
      providedValues ? values[field.name] : field.value
    ); });
  
    return Promise.all(promises).then(function (results) { return results.every(function (t) { return t; }); });
  };
  
  /**
   * Validates all scopes.
   */
  Validator.prototype.validateScopes = function validateScopes () {
      var this$1 = this;
  
    if (this.paused) { return Promise.resolve(true); }
  
    var promises = this.fields.map(function (field) { return this$1.validate(
      ("#" + (field.id)),
      field.value
    ); });
  
    return Promise.all(promises).then(function (results) { return results.every(function (t) { return t; }); });
  };
  
  /**
   * Perform cleanup.
   */
  Validator.prototype.destroy = function destroy () {
    // Remove ErrorBag instance.
    var idx = ERRORS.indexOf(this.errors);
    if (idx === -1) { return; }
  
    ERRORS.splice(idx, 1);
  };
  
  /**
   * Creates the fields to be validated.
   */
  Validator.prototype._createFields = function _createFields (validations) {
      var this$1 = this;
  
    if (!validations) { return; }
  
    Object.keys(validations).forEach(function (field) {
      var options = assign({}, { name: field, rules: validations[field] });
      this$1.attach(options);
    });
  };
  
  /**
   * Date rules need the existence of a format, so date_format must be supplied.
   */
  Validator.prototype._getDateFormat = function _getDateFormat (validations) {
    var format = null;
    if (validations.date_format && Array.isArray(validations.date_format)) {
      format = validations.date_format[0];
    }
  
    return format || this.dictionary.getDateFormat(this.locale);
  };
  
  /**
   * Checks if the passed rule is a date rule.
   */
  Validator.prototype._isADateRule = function _isADateRule (rule) {
    return !! ~['after', 'before', 'date_between', 'date_format'].indexOf(rule);
  };
  
  /**
   * Formats an error message for field and a rule.
   */
  Validator.prototype._formatErrorMessage = function _formatErrorMessage (field, rule, data, targetName) {
      if ( data === void 0 ) data = {};
      if ( targetName === void 0 ) targetName = null;
  
    var name = this._getFieldDisplayName(field);
    var params = this._getLocalizedParams(rule, targetName);
  
    return this.dictionary.getFieldMessage(this.locale, field.name, rule.name, [name, params, data]);
  };
  
  /**
   * Translates the parameters passed to the rule (mainly for target fields).
   */
  Validator.prototype._getLocalizedParams = function _getLocalizedParams (rule, targetName) {
      if ( targetName === void 0 ) targetName = null;
  
    if (~TARGET_RULES.indexOf(rule.name) && rule.params && rule.params[0]) {
      var localizedName = targetName || this.dictionary.getAttribute(this.locale, rule.params[0], rule.params[0]);
      return [localizedName].concat(rule.params.slice(1));
    }
  
    return rule.params;
  };
  
  /**
   * Resolves an appropriate display name, first checking 'data-as' or the registered 'prettyName'
   */
  Validator.prototype._getFieldDisplayName = function _getFieldDisplayName (field) {
    return field.alias || this.dictionary.getAttribute(this.locale, field.name, field.name);
  };
  
  /**
   * Adds a field flags to the flags collection.
   */
  Validator.prototype._addFlag = function _addFlag (field, scope) {
      if ( scope === void 0 ) scope = null;
  
    if (isNullOrUndefined(scope)) {
      this.flags = assign({}, this.flags, ( obj = {}, obj[("" + (field.name))] = field.flags, obj ));
        var obj;
      return;
    }
  
    var scopeObj = assign({}, this.flags[("$" + scope)] || {}, ( obj$1 = {}, obj$1[("" + (field.name))] = field.flags, obj$1 ));
      var obj$1;
    this.flags = assign({}, this.flags, ( obj$2 = {}, obj$2[("$" + scope)] = scopeObj, obj$2 ));
      var obj$2;
  };
  
  /**
   * Resets fields that matches the matcher options or all fields if not specified.
   */
  Validator.prototype._reset = function _reset (matcher) {
      var this$1 = this;
  
    return new Promise(function (resolve) {
      if (matcher) {
        this$1.fields.filter(matcher).forEach(function (field) {
          field.reset(); // reset field flags.
          this$1.errors.remove(field.name, field.scope, field.id);
        });
  
        return resolve();
      }
  
      this$1.fields.items.forEach(function (i) { return i.reset(); });
      this$1.errors.clear();
      resolve();
    });
  };
  
  /**
   * Tests a single input value against a rule.
   */
  Validator.prototype._test = function _test (field, value, rule) {
      var this$1 = this;
  
    var validator = RULES[rule.name];
    var params = Array.isArray(rule.params) ? toArray(rule.params) : [];
    var targetName = null;
    if (!validator || typeof validator !== 'function') {
      throw createError(("No such validator '" + (rule.name) + "' exists."));
    }
  
    // has field dependencies.
    if (TARGET_RULES.indexOf(rule.name) !== -1) {
      var target = find(field.dependencies, function (d) { return d.name === rule.name; });
      if (target) {
        targetName = target.field.alias;
        params = [target.field.value].concat(params.slice(1));
      }
    } else if (rule.name === 'required' && field.rejectsFalse) {
      // invalidate false if no args were specified and the field rejects false by default.
      params = params.length ? params : [true];
    }
  
    if (this._isADateRule(rule.name)) {
      var dateFormat = this._getDateFormat(field.rules);
      if (rule.name !== 'date_format') {
        params.push(dateFormat);
      }
    }
  
    var result = validator(value, params);
  
    // If it is a promise.
    if (isCallable(result.then)) {
      return result.then(function (values) {
        var allValid = true;
        var data = {};
        if (Array.isArray(values)) {
          allValid = values.every(function (t) { return (isObject(t) ? t.valid : t); });
        } else { // Is a single object/boolean.
          allValid = isObject(values) ? values.valid : values;
          data = values.data;
        }
  
        return {
          valid: allValid,
          error: allValid ? undefined : this$1._createFieldError(field, rule, data, targetName)
        };
      });
    }
  
    if (!isObject(result)) {
      result = { valid: result, data: {} };
    }
  
    return {
      valid: result.valid,
      error: result.valid ? undefined : this._createFieldError(field, rule, result.data, targetName)
    };
  };
  
  /**
   * Merges a validator object into the RULES and Messages.
   */
  Validator._merge = function _merge (name, validator) {
    if (isCallable(validator)) {
      RULES[name] = validator;
      return;
    }
  
    RULES[name] = validator.validate;
    if (validator.getMessage) {
      Validator.dictionary.setMessage(this.locale, name, validator.getMessage);
    }
  };
  
  /**
   * Guards from extension violations.
   */
  Validator._guardExtend = function _guardExtend (name, validator) {
    if (isCallable(validator)) {
      return;
    }
  
    if (!isCallable(validator.validate)) {
      throw createError(
        ("Extension Error: The validator '" + name + "' must be a function or have a 'validate' method.")
      );
    }
  
    if (!isCallable(validator.getMessage) && typeof validator.getMessage !== 'string') {
      throw createError(
        ("Extension Error: The validator '" + name + "' object must have a 'getMessage' method or string.")
      );
    }
  };
  
  /**
   * Creates a Field Error Object.
   */
  Validator.prototype._createFieldError = function _createFieldError (field, rule, data, targetName) {
      var this$1 = this;
  
    return {
      id: field.id,
      field: field.name,
      msg: this._formatErrorMessage(field, rule, data, targetName),
      rule: rule.name,
      scope: field.scope,
      regenerate: function () {
        return this$1._formatErrorMessage(field, rule, data, targetName);
      }
    };
  };
  
  /**
   * Tries different strategies to find a field.
   */
  Validator.prototype._resolveField = function _resolveField (name, scope) {
    if (!isNullOrUndefined(scope)) {
      return this.fields.find({ name: name, scope: scope });
    }
  
    if (name[0] === '#') {
      return this.fields.find({ id: name.slice(1) });
    }
  
    if (name.indexOf('.') > -1) {
      var ref = name.split('.');
        var fieldScope = ref[0];
        var fieldName = ref.slice(1);
      var field = this.fields.find({ name: fieldName.join('.'), scope: fieldScope });
      if (field) {
        return field;
      }
    }
  
    return this.fields.find({ name: name, scope: null });
  };
  
  /**
   * Handles when a field is not found depending on the strict flag.
   */
  Validator.prototype._handleFieldNotFound = function _handleFieldNotFound (name, scope) {
    if (!this.strict) { return Promise.resolve(true); }
  
    var fullName = isNullOrUndefined(scope) ? name : ("" + (!isNullOrUndefined(scope) ? scope + '.' : '') + name);
    throw createError(
      ("Validating a non-existent field: \"" + fullName + "\". Use \"attach()\" first.")
    );
  };
  
  /**
   * Starts the validation process.
   */
  Validator.prototype._validate = function _validate (field, value, silent) {
      var this$1 = this;
      if ( silent === void 0 ) silent = false;
  
    if (!field.isRequired && (isNullOrUndefined(value) || value === '')) {
      return Promise.resolve({ valid: true });
    }
  
    var promises = [];
    var errors = [];
    var isExitEarly = false;
    // use of '.some()' is to break iteration in middle by returning true
    Object.keys(field.rules).some(function (rule) {
      var result = this$1._test(field, value, { name: rule, params: field.rules[rule] });
      if (isCallable(result.then)) {
        promises.push(result);
      } else if (this$1.fastExit && !result.valid) {
        errors.push(result.error);
        isExitEarly = true;
      } else {
        // promisify the result.
        promises.push(new Promise(function (resolve) {
          resolve(result);
        }));
      }
  
      return isExitEarly;
    });
  
    if (isExitEarly) {
      return Promise.resolve({
        valid: false,
        errors: errors
      });
    }
  
    return Promise.all(promises).then(function (values) { return values.map(function (v) {
      if (!v.valid) {
        errors.push(v.error);
      }
  
      return v.valid;
    }).every(function (t) { return t; }); }
    ).then(function (result) {
      return {
        valid: result,
        errors: errors
      };
    });
  };
  
  Object.defineProperties( Validator.prototype, prototypeAccessors );
  Object.defineProperties( Validator, staticAccessors );
  
  // 
  
  /**
   * Checks if a parent validator instance was requested.
   */
  var requestsValidator = function (injections) {
    if (isObject(injections) && injections.$validator) {
      return true;
    }
  
    return false;
  };
  
  /**
   * Creates a validator instance.
   */
  var createValidator = function (vm, options) { return new Validator(null, { vm: vm, fastExit: options.fastExit }); };
  
  var mixin = {
    provide: function provide () {
      if (this.$validator && !isBuiltInComponent(this.$vnode)) {
        return {
          $validator: this.$validator
        };
      }
  
      return {};
    },
    beforeCreate: function beforeCreate () {
      // if built in do nothing.
      if (isBuiltInComponent(this.$vnode)) {
        return;
      }
  
      // if its a root instance set the config if it exists.
      if (!this.$parent) {
        Config.merge(this.$options.$_veeValidate || {});
      }
  
      var options = Config.resolve(this);
      var Vue = this.$options._base; // the vue constructor.
      // TODO: Deprecate
      /* istanbul ignore next */
      if (this.$options.$validates) {
        warn('The ctor $validates option has been deprecated please set the $_veeValidate.validator option to "new" instead');
        this.$validator = createValidator(this, options);
      }
  
      // if its a root instance, inject anyways, or if it requested a new instance.
      if (!this.$parent || (this.$options.$_veeValidate && /new/.test(this.$options.$_veeValidate.validator))) {
        this.$validator = createValidator(this, options);
      }
  
      var requested = requestsValidator(this.$options.inject);
  
      // if automatic injection is enabled and no instance was requested.
      if (! this.$validator && options.inject && !requested) {
        this.$validator = createValidator(this, options);
      }
  
      // don't inject errors or fieldBag as no validator was resolved.
      if (! requested && ! this.$validator) {
        return;
      }
  
      // There is a validator but it isn't injected, mark as reactive.
      if (! requested && this.$validator) {
        Vue.util.defineReactive(this.$validator, 'errors', this.$validator.errors);
        Vue.util.defineReactive(this.$validator, 'flags', this.$validator.flags);
      }
  
      if (! this.$options.computed) {
        this.$options.computed = {};
      }
  
      this.$options.computed[options.errorBagName || 'errors'] = function errorBagGetter () {
        return this.$validator.errors;
      };
      this.$options.computed[options.fieldsBagName || 'fields'] = function fieldBagGetter () {
        return this.$validator.flags;
      };
    },
    beforeDestroy: function beforeDestroy () {
      if (isBuiltInComponent(this.$vnode)) { return; }
  
      // mark the validator paused to prevent delayed validation.
      if (this.$validator && this.$validator.ownerId === this._uid) {
        this.$validator.pause();
        this.$validator.destroy();
      }
    }
  };
  
  // 
  
  /**
   * Finds the requested field by id from the context object.
   */
  var findField = function (el, context) {
    if (!context || !context.$validator) {
      return null;
    }
  
    return context.$validator.fields.find({ id: getDataAttribute(el, 'id') });
  };
  
  var directive = {
    bind: function bind (el, binding, vnode) {
      var validator = vnode.context.$validator;
      if (! validator) {
        warn("No validator instance is present on vm, did you forget to inject '$validator'?");
        return;
      }
  
      var fieldOptions = Generator.generate(el, binding, vnode);
      validator.attach(fieldOptions);
    },
    inserted: function (el, binding, vnode) {
      var field = findField(el, vnode.context);
      var scope = Generator.resolveScope(el, binding, vnode);
  
      // skip if scope hasn't changed.
      if (!field || scope === field.scope) { return; }
  
      // only update scope.
      field.update({ scope: scope });
  
      // allows the field to re-evaluated once more in the update hook.
      field.updated = false;
    },
    update: function (el, binding, vnode) {
      var field = findField(el, vnode.context);
  
      // make sure we don't do unneccasary work if no important change was done.
      if (!field || (field.updated && isEqual(binding.value, binding.oldValue))) { return; }
      var scope = Generator.resolveScope(el, binding, vnode);
      var rules = Generator.resolveRules(el, binding);
  
      field.update({
        scope: scope,
        rules: rules
      });
    },
    unbind: function unbind (el, binding, ref) {
      var context = ref.context;
  
      var field = findField(el, context);
      if (!field) { return; }
  
      context.$validator.detach(field);
    }
  };
  
  var Vue;
  
  function install (_Vue, options) {
    if ( options === void 0 ) options = {};
  
    if (Vue && _Vue === Vue) {
      if (true) {
        warn('already installed, Vue.use(VeeValidate) should only be called once.');
      }
      return;
    }
  
    Vue = _Vue;
    Config.merge(options);
    var ref = Config.current;
    var dictionary = ref.dictionary;
    var i18n = ref.i18n;
  
    if (dictionary) {
      Validator.localize(dictionary); // merge the dictionary.
    }
  
    // try to watch locale changes.
    if (i18n && i18n._vm && isCallable(i18n._vm.$watch)) {
      i18n._vm.$watch('locale', function () {
        Validator.regenerate();
      });
    }
  
    if (!i18n && options.locale) {
      Validator.localize(options.locale); // set the locale
    }
  
    Validator.setStrictMode(Config.current.strict);
  
    Vue.mixin(mixin);
    Vue.directive('validate', directive);
  }
  
  /**
   * Formates file size.
   *
   * @param {Number|String} size
   */
  var formatFileSize = function (size) {
    var units = ['Byte', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
    var threshold = 1024;
    size = Number(size) * threshold;
    var i = size === 0 ? 0 : Math.floor(Math.log(size) / Math.log(threshold));
    return (((size / Math.pow(threshold, i)).toFixed(2) * 1) + " " + (units[i]));
  };
  
  /**
   * Checks if vee-validate is defined globally.
   */
  var isDefinedGlobally = function () {
    return typeof VeeValidate !== 'undefined';
  };
  
  var messages = {
    _default: function (field) { return ("The " + field + " value is not valid."); },
    after: function (field, ref) {
      var target = ref[0];
      var inclusion = ref[1];
  
      return ("The " + field + " must be after " + (inclusion ? 'or equal to ' : '') + target + ".");
  },
    alpha_dash: function (field) { return ("The " + field + " field may contain alpha-numeric characters as well as dashes and underscores."); },
    alpha_num: function (field) { return ("The " + field + " field may only contain alpha-numeric characters."); },
    alpha_spaces: function (field) { return ("The " + field + " field may only contain alphabetic characters as well as spaces."); },
    alpha: function (field) { return ("The " + field + " field may only contain alphabetic characters."); },
    before: function (field, ref) {
      var target = ref[0];
      var inclusion = ref[1];
  
      return ("The " + field + " must be before " + (inclusion ? 'or equal to ' : '') + target + ".");
  },
    between: function (field, ref) {
      var min = ref[0];
      var max = ref[1];
  
      return ("The " + field + " field must be between " + min + " and " + max + ".");
  },
    confirmed: function (field) { return ("The " + field + " confirmation does not match."); },
    credit_card: function (field) { return ("The " + field + " field is invalid."); },
    date_between: function (field, ref) {
      var min = ref[0];
      var max = ref[1];
  
      return ("The " + field + " must be between " + min + " and " + max + ".");
  },
    date_format: function (field, ref) {
      var format = ref[0];
  
      return ("The " + field + " must be in the format " + format + ".");
  },
    decimal: function (field, ref) {
      if ( ref === void 0 ) ref = [];
      var decimals = ref[0]; if ( decimals === void 0 ) decimals = '*';
  
      return ("The " + field + " field must be numeric and may contain " + (!decimals || decimals === '*' ? '' : decimals) + " decimal points.");
  },
    digits: function (field, ref) {
      var length = ref[0];
  
      return ("The " + field + " field must be numeric and exactly contain " + length + " digits.");
  },
    dimensions: function (field, ref) {
      var width = ref[0];
      var height = ref[1];
  
      return ("The " + field + " field must be " + width + " pixels by " + height + " pixels.");
  },
    email: function (field) { return ("The " + field + " field must be a valid email."); },
    ext: function (field) { return ("The " + field + " field must be a valid file."); },
    image: function (field) { return ("The " + field + " field must be an image."); },
    in: function (field) { return ("The " + field + " field must be a valid value."); },
    integer: function (field) { return ("The " + field + " field must be an integer."); },
    ip: function (field) { return ("The " + field + " field must be a valid ip address."); },
    length: function (field, ref) {
      var length = ref[0];
      var max = ref[1];
  
      if (max) {
        return ("The " + field + " length be between " + length + " and " + max + ".");
      }
  
      return ("The " + field + " length must be " + length + ".");
    },
    max: function (field, ref) {
      var length = ref[0];
  
      return ("The " + field + " field may not be greater than " + length + " characters.");
  },
    max_value: function (field, ref) {
      var max = ref[0];
  
      return ("The " + field + " field must be " + max + " or less.");
  },
    mimes: function (field) { return ("The " + field + " field must have a valid file type."); },
    min: function (field, ref) {
      var length = ref[0];
  
      return ("The " + field + " field must be at least " + length + " characters.");
  },
    min_value: function (field, ref) {
      var min = ref[0];
  
      return ("The " + field + " field must be " + min + " or more.");
  },
    not_in: function (field) { return ("The " + field + " field must be a valid value."); },
    numeric: function (field) { return ("The " + field + " field may only contain numeric characters."); },
    regex: function (field) { return ("The " + field + " field format is invalid."); },
    required: function (field) { return ("The " + field + " field is required."); },
    size: function (field, ref) {
      var size = ref[0];
  
      return ("The " + field + " size must be less than " + (formatFileSize(size)) + ".");
  },
    url: function (field) { return ("The " + field + " field is not a valid URL."); }
  };
  
  var locale = {
    name: 'en',
    messages: messages,
    attributes: {}
  };
  
  if (isDefinedGlobally()) {
    // eslint-disable-next-line
    VeeValidate.Validator.localize(( obj = {}, obj[locale.name] = locale, obj ));
    var obj;
  }
  
  // 
  
  function use (plugin, options) {
    if ( options === void 0 ) options = {};
  
    if (!isCallable(plugin)) {
      return warn('The plugin must be a callable function');
    }
  
    plugin({ Validator: Validator, ErrorBag: ErrorBag, Rules: Validator.rules }, options);
  }
  
  var MILLISECONDS_IN_HOUR = 3600000;
  var MILLISECONDS_IN_MINUTE = 60000;
  var DEFAULT_ADDITIONAL_DIGITS = 2;
  
  var patterns = {
    dateTimeDelimeter: /[T ]/,
    plainTime: /:/,
  
    // year tokens
    YY: /^(\d{2})$/,
    YYY: [
      /^([+-]\d{2})$/, // 0 additional digits
      /^([+-]\d{3})$/, // 1 additional digit
      /^([+-]\d{4})$/ // 2 additional digits
    ],
    YYYY: /^(\d{4})/,
    YYYYY: [
      /^([+-]\d{4})/, // 0 additional digits
      /^([+-]\d{5})/, // 1 additional digit
      /^([+-]\d{6})/ // 2 additional digits
    ],
  
    // date tokens
    MM: /^-(\d{2})$/,
    DDD: /^-?(\d{3})$/,
    MMDD: /^-?(\d{2})-?(\d{2})$/,
    Www: /^-?W(\d{2})$/,
    WwwD: /^-?W(\d{2})-?(\d{1})$/,
  
    HH: /^(\d{2}([.,]\d*)?)$/,
    HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
    HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
  
    // timezone tokens
    timezone: /([Z+-].*)$/,
    timezoneZ: /^(Z)$/,
    timezoneHH: /^([+-])(\d{2})$/,
    timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
  };
  
  /**
   * @name toDate
   * @category Common Helpers
   * @summary Convert the given argument to an instance of Date.
   *
   * @description
   * Convert the given argument to an instance of Date.
   *
   * If the argument is an instance of Date, the function returns its clone.
   *
   * If the argument is a number, it is treated as a timestamp.
   *
   * If an argument is a string, the function tries to parse it.
   * Function accepts complete ISO 8601 formats as well as partial implementations.
   * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601
   *
   * If the argument is null, it is treated as an invalid date.
   *
   * If all above fails, the function passes the given argument to Date constructor.
   *
   * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
   * All *date-fns* functions will throw `RangeError` if `options.additionalDigits` is not 0, 1, 2 or undefined.
   *
   * @param {*} argument - the value to convert
   * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}
   * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format
   * @returns {Date} the parsed date in the local time zone
   * @throws {TypeError} 1 argument required
   * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
   *
   * @example
   * // Convert string '2014-02-11T11:30:30' to date:
   * var result = toDate('2014-02-11T11:30:30')
   * //=> Tue Feb 11 2014 11:30:30
   *
   * @example
   * // Convert string '+02014101' to date,
   * // if the additional number of digits in the extended year format is 1:
   * var result = toDate('+02014101', {additionalDigits: 1})
   * //=> Fri Apr 11 2014 00:00:00
   */
  function toDate (argument, dirtyOptions) {
    if (arguments.length < 1) {
      throw new TypeError('1 argument required, but only ' + arguments.length + ' present')
    }
  
    if (argument === null) {
      return new Date(NaN)
    }
  
    var options = dirtyOptions || {};
  
    var additionalDigits = options.additionalDigits === undefined ? DEFAULT_ADDITIONAL_DIGITS : Number(options.additionalDigits);
    if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) {
      throw new RangeError('additionalDigits must be 0, 1 or 2')
    }
  
    // Clone the date
    if (argument instanceof Date) {
      // Prevent the date to lose the milliseconds when passed to new Date() in IE10
      return new Date(argument.getTime())
    } else if (typeof argument !== 'string') {
      return new Date(argument)
    }
  
    var dateStrings = splitDateString(argument);
  
    var parseYearResult = parseYear(dateStrings.date, additionalDigits);
    var year = parseYearResult.year;
    var restDateString = parseYearResult.restDateString;
  
    var date = parseDate(restDateString, year);
  
    if (date) {
      var timestamp = date.getTime();
      var time = 0;
      var offset;
  
      if (dateStrings.time) {
        time = parseTime(dateStrings.time);
      }
  
      if (dateStrings.timezone) {
        offset = parseTimezone(dateStrings.timezone);
      } else {
        // get offset accurate to hour in timezones that change offset
        offset = new Date(timestamp + time).getTimezoneOffset();
        offset = new Date(timestamp + time + offset * MILLISECONDS_IN_MINUTE).getTimezoneOffset();
      }
  
      return new Date(timestamp + time + offset * MILLISECONDS_IN_MINUTE)
    } else {
      return new Date(argument)
    }
  }
  
  function splitDateString (dateString) {
    var dateStrings = {};
    var array = dateString.split(patterns.dateTimeDelimeter);
    var timeString;
  
    if (patterns.plainTime.test(array[0])) {
      dateStrings.date = null;
      timeString = array[0];
    } else {
      dateStrings.date = array[0];
      timeString = array[1];
    }
  
    if (timeString) {
      var token = patterns.timezone.exec(timeString);
      if (token) {
        dateStrings.time = timeString.replace(token[1], '');
        dateStrings.timezone = token[1];
      } else {
        dateStrings.time = timeString;
      }
    }
  
    return dateStrings
  }
  
  function parseYear (dateString, additionalDigits) {
    var patternYYY = patterns.YYY[additionalDigits];
    var patternYYYYY = patterns.YYYYY[additionalDigits];
  
    var token;
  
    // YYYY or ±YYYYY
    token = patterns.YYYY.exec(dateString) || patternYYYYY.exec(dateString);
    if (token) {
      var yearString = token[1];
      return {
        year: parseInt(yearString, 10),
        restDateString: dateString.slice(yearString.length)
      }
    }
  
    // YY or ±YYY
    token = patterns.YY.exec(dateString) || patternYYY.exec(dateString);
    if (token) {
      var centuryString = token[1];
      return {
        year: parseInt(centuryString, 10) * 100,
        restDateString: dateString.slice(centuryString.length)
      }
    }
  
    // Invalid ISO-formatted year
    return {
      year: null
    }
  }
  
  function parseDate (dateString, year) {
    // Invalid ISO-formatted year
    if (year === null) {
      return null
    }
  
    var token;
    var date;
    var month;
    var week;
  
    // YYYY
    if (dateString.length === 0) {
      date = new Date(0);
      date.setUTCFullYear(year);
      return date
    }
  
    // YYYY-MM
    token = patterns.MM.exec(dateString);
    if (token) {
      date = new Date(0);
      month = parseInt(token[1], 10) - 1;
      date.setUTCFullYear(year, month);
      return date
    }
  
    // YYYY-DDD or YYYYDDD
    token = patterns.DDD.exec(dateString);
    if (token) {
      date = new Date(0);
      var dayOfYear = parseInt(token[1], 10);
      date.setUTCFullYear(year, 0, dayOfYear);
      return date
    }
  
    // YYYY-MM-DD or YYYYMMDD
    token = patterns.MMDD.exec(dateString);
    if (token) {
      date = new Date(0);
      month = parseInt(token[1], 10) - 1;
      var day = parseInt(token[2], 10);
      date.setUTCFullYear(year, month, day);
      return date
    }
  
    // YYYY-Www or YYYYWww
    token = patterns.Www.exec(dateString);
    if (token) {
      week = parseInt(token[1], 10) - 1;
      return dayOfISOYear(year, week)
    }
  
    // YYYY-Www-D or YYYYWwwD
    token = patterns.WwwD.exec(dateString);
    if (token) {
      week = parseInt(token[1], 10) - 1;
      var dayOfWeek = parseInt(token[2], 10) - 1;
      return dayOfISOYear(year, week, dayOfWeek)
    }
  
    // Invalid ISO-formatted date
    return null
  }
  
  function parseTime (timeString) {
    var token;
    var hours;
    var minutes;
  
    // hh
    token = patterns.HH.exec(timeString);
    if (token) {
      hours = parseFloat(token[1].replace(',', '.'));
      return (hours % 24) * MILLISECONDS_IN_HOUR
    }
  
    // hh:mm or hhmm
    token = patterns.HHMM.exec(timeString);
    if (token) {
      hours = parseInt(token[1], 10);
      minutes = parseFloat(token[2].replace(',', '.'));
      return (hours % 24) * MILLISECONDS_IN_HOUR +
        minutes * MILLISECONDS_IN_MINUTE
    }
  
    // hh:mm:ss or hhmmss
    token = patterns.HHMMSS.exec(timeString);
    if (token) {
      hours = parseInt(token[1], 10);
      minutes = parseInt(token[2], 10);
      var seconds = parseFloat(token[3].replace(',', '.'));
      return (hours % 24) * MILLISECONDS_IN_HOUR +
        minutes * MILLISECONDS_IN_MINUTE +
        seconds * 1000
    }
  
    // Invalid ISO-formatted time
    return null
  }
  
  function parseTimezone (timezoneString) {
    var token;
    var absoluteOffset;
  
    // Z
    token = patterns.timezoneZ.exec(timezoneString);
    if (token) {
      return 0
    }
  
    // ±hh
    token = patterns.timezoneHH.exec(timezoneString);
    if (token) {
      absoluteOffset = parseInt(token[2], 10) * 60;
      return (token[1] === '+') ? -absoluteOffset : absoluteOffset
    }
  
    // ±hh:mm or ±hhmm
    token = patterns.timezoneHHMM.exec(timezoneString);
    if (token) {
      absoluteOffset = parseInt(token[2], 10) * 60 + parseInt(token[3], 10);
      return (token[1] === '+') ? -absoluteOffset : absoluteOffset
    }
  
    return 0
  }
  
  function dayOfISOYear (isoYear, week, day) {
    week = week || 0;
    day = day || 0;
    var date = new Date(0);
    date.setUTCFullYear(isoYear, 0, 4);
    var fourthOfJanuaryDay = date.getUTCDay() || 7;
    var diff = week * 7 + day + 1 - fourthOfJanuaryDay;
    date.setUTCDate(date.getUTCDate() + diff);
    return date
  }
  
  /**
   * @name addMilliseconds
   * @category Millisecond Helpers
   * @summary Add the specified number of milliseconds to the given date.
   *
   * @description
   * Add the specified number of milliseconds to the given date.
   *
   * @param {Date|String|Number} date - the date to be changed
   * @param {Number} amount - the amount of milliseconds to be added
   * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}
   * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
   * @returns {Date} the new date with the milliseconds added
   * @throws {TypeError} 2 arguments required
   * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
   *
   * @example
   * // Add 750 milliseconds to 10 July 2014 12:45:30.000:
   * var result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
   * //=> Thu Jul 10 2014 12:45:30.750
   */
  function addMilliseconds (dirtyDate, dirtyAmount, dirtyOptions) {
    if (arguments.length < 2) {
      throw new TypeError('2 arguments required, but only ' + arguments.length + ' present')
    }
  
    var timestamp = toDate(dirtyDate, dirtyOptions).getTime();
    var amount = Number(dirtyAmount);
    return new Date(timestamp + amount)
  }
  
  function cloneObject (dirtyObject) {
    dirtyObject = dirtyObject || {};
    var object = {};
  
    for (var property in dirtyObject) {
      if (dirtyObject.hasOwnProperty(property)) {
        object[property] = dirtyObject[property];
      }
    }
  
    return object
  }
  
  var MILLISECONDS_IN_MINUTE$2 = 60000;
  
  /**
   * @name addMinutes
   * @category Minute Helpers
   * @summary Add the specified number of minutes to the given date.
   *
   * @description
   * Add the specified number of minutes to the given date.
   *
   * @param {Date|String|Number} date - the date to be changed
   * @param {Number} amount - the amount of minutes to be added
   * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}
   * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
   * @returns {Date} the new date with the minutes added
   * @throws {TypeError} 2 arguments required
   * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
   *
   * @example
   * // Add 30 minutes to 10 July 2014 12:00:00:
   * var result = addMinutes(new Date(2014, 6, 10, 12, 0), 30)
   * //=> Thu Jul 10 2014 12:30:00
   */
  function addMinutes (dirtyDate, dirtyAmount, dirtyOptions) {
    if (arguments.length < 2) {
      throw new TypeError('2 arguments required, but only ' + arguments.length + ' present')
    }
  
    var amount = Number(dirtyAmount);
    return addMilliseconds(dirtyDate, amount * MILLISECONDS_IN_MINUTE$2, dirtyOptions)
  }
  
  /**
   * @name isValid
   * @category Common Helpers
   * @summary Is the given date valid?
   *
   * @description
   * Returns false if argument is Invalid Date and true otherwise.
   * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
   * Invalid Date is a Date, whose time value is NaN.
   *
   * Time value of Date: http://es5.github.io/#x15.9.1.1
   *
   * @param {*} date - the date to check
   * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}
   * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
   * @returns {Boolean} the date is valid
   * @throws {TypeError} 1 argument required
   * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
   *
   * @example
   * // For the valid date:
   * var result = isValid(new Date(2014, 1, 31))
   * //=> true
   *
   * @example
   * // For the value, convertable into a date:
   * var result = isValid('2014-02-31')
   * //=> true
   *
   * @example
   * // For the invalid date:
   * var result = isValid(new Date(''))
   * //=> false
   */
  function isValid (dirtyDate, dirtyOptions) {
    if (arguments.length < 1) {
      throw new TypeError('1 argument required, but only ' + arguments.length + ' present')
    }
  
    var date = toDate(dirtyDate, dirtyOptions);
    return !isNaN(date)
  }
  
  var formatDistanceLocale = {
    lessThanXSeconds: {
      one: 'less than a second',
      other: 'less than {{count}} seconds'
    },
  
    xSeconds: {
      one: '1 second',
      other: '{{count}} seconds'
    },
  
    halfAMinute: 'half a minute',
  
    lessThanXMinutes: {
      one: 'less than a minute',
      other: 'less than {{count}} minutes'
    },
  
    xMinutes: {
      one: '1 minute',
      other: '{{count}} minutes'
    },
  
    aboutXHours: {
      one: 'about 1 hour',
      other: 'about {{count}} hours'
    },
  
    xHours: {
      one: '1 hour',
      other: '{{count}} hours'
    },
  
    xDays: {
      one: '1 day',
      other: '{{count}} days'
    },
  
    aboutXMonths: {
      one: 'about 1 month',
      other: 'about {{count}} months'
    },
  
    xMonths: {
      one: '1 month',
      other: '{{count}} months'
    },
  
    aboutXYears: {
      one: 'about 1 year',
      other: 'about {{count}} years'
    },
  
    xYears: {
      one: '1 year',
      other: '{{count}} years'
    },
  
    overXYears: {
      one: 'over 1 year',
      other: 'over {{count}} years'
    },
  
    almostXYears: {
      one: 'almost 1 year',
      other: 'almost {{count}} years'
    }
  };
  
  function formatDistance (token, count, options) {
    options = options || {};
  
    var result;
    if (typeof formatDistanceLocale[token] === 'string') {
      result = formatDistanceLocale[token];
    } else if (count === 1) {
      result = formatDistanceLocale[token].one;
    } else {
      result = formatDistanceLocale[token].other.replace('{{count}}', count);
    }
  
    if (options.addSuffix) {
      if (options.comparison > 0) {
        return 'in ' + result
      } else {
        return result + ' ago'
      }
    }
  
    return result
  }
  
  var tokensToBeShortedPattern = /MMMM|MM|DD|dddd/g;
  
  function buildShortLongFormat (format) {
    return format.replace(tokensToBeShortedPattern, function (token) {
      return token.slice(1)
    })
  }
  
  /**
   * @name buildFormatLongFn
   * @category Locale Helpers
   * @summary Build `formatLong` property for locale used by `format`, `formatRelative` and `parse` functions.
   *
   * @description
   * Build `formatLong` property for locale used by `format`, `formatRelative` and `parse` functions.
   * Returns a function which takes one of the following tokens as the argument:
   * `'LTS'`, `'LT'`, `'L'`, `'LL'`, `'LLL'`, `'l'`, `'ll'`, `'lll'`, `'llll'`
   * and returns a long format string written as `format` token strings.
   * See [format]{@link https://date-fns.org/docs/format}
   *
   * `'l'`, `'ll'`, `'lll'` and `'llll'` formats are built automatically
   * by shortening some of the tokens from corresponding unshortened formats
   * (e.g., if `LL` is `'MMMM DD YYYY'` then `ll` will be `MMM D YYYY`)
   *
   * @param {Object} obj - the object with long formats written as `format` token strings
   * @param {String} obj.LT - time format: hours and minutes
   * @param {String} obj.LTS - time format: hours, minutes and seconds
   * @param {String} obj.L - short date format: numeric day, month and year
   * @param {String} [obj.l] - short date format: numeric day, month and year (shortened)
   * @param {String} obj.LL - long date format: day, month in words, and year
   * @param {String} [obj.ll] - long date format: day, month in words, and year (shortened)
   * @param {String} obj.LLL - long date and time format
   * @param {String} [obj.lll] - long date and time format (shortened)
   * @param {String} obj.LLLL - long date, time and weekday format
   * @param {String} [obj.llll] - long date, time and weekday format (shortened)
   * @returns {Function} `formatLong` property of the locale
   *
   * @example
   * // For `en-US` locale:
   * locale.formatLong = buildFormatLongFn({
   *   LT: 'h:mm aa',
   *   LTS: 'h:mm:ss aa',
   *   L: 'MM/DD/YYYY',
   *   LL: 'MMMM D YYYY',
   *   LLL: 'MMMM D YYYY h:mm aa',
   *   LLLL: 'dddd, MMMM D YYYY h:mm aa'
   * })
   */
  function buildFormatLongFn (obj) {
    var formatLongLocale = {
      LTS: obj.LTS,
      LT: obj.LT,
      L: obj.L,
      LL: obj.LL,
      LLL: obj.LLL,
      LLLL: obj.LLLL,
      l: obj.l || buildShortLongFormat(obj.L),
      ll: obj.ll || buildShortLongFormat(obj.LL),
      lll: obj.lll || buildShortLongFormat(obj.LLL),
      llll: obj.llll || buildShortLongFormat(obj.LLLL)
    };
  
    return function (token) {
      return formatLongLocale[token]
    }
  }
  
  var formatLong = buildFormatLongFn({
    LT: 'h:mm aa',
    LTS: 'h:mm:ss aa',
    L: 'MM/DD/YYYY',
    LL: 'MMMM D YYYY',
    LLL: 'MMMM D YYYY h:mm aa',
    LLLL: 'dddd, MMMM D YYYY h:mm aa'
  });
  
  var formatRelativeLocale = {
    lastWeek: '[last] dddd [at] LT',
    yesterday: '[yesterday at] LT',
    today: '[today at] LT',
    tomorrow: '[tomorrow at] LT',
    nextWeek: 'dddd [at] LT',
    other: 'L'
  };
  
  function formatRelative (token, date, baseDate, options) {
    return formatRelativeLocale[token]
  }
  
  /**
   * @name buildLocalizeFn
   * @category Locale Helpers
   * @summary Build `localize.weekday`, `localize.month` and `localize.timeOfDay` properties for the locale.
   *
   * @description
   * Build `localize.weekday`, `localize.month` and `localize.timeOfDay` properties for the locale
   * used by `format` function.
   * If no `type` is supplied to the options of the resulting function, `defaultType` will be used (see example).
   *
   * `localize.weekday` function takes the weekday index as argument (0 - Sunday).
   * `localize.month` takes the month index (0 - January).
   * `localize.timeOfDay` takes the hours. Use `indexCallback` to convert them to an array index (see example).
   *
   * @param {Object} values - the object with arrays of values
   * @param {String} defaultType - the default type for the localize function
   * @param {Function} [indexCallback] - the callback which takes the resulting function argument
   *   and converts it into value array index
   * @returns {Function} the resulting function
   *
   * @example
   * var timeOfDayValues = {
   *   uppercase: ['AM', 'PM'],
   *   lowercase: ['am', 'pm'],
   *   long: ['a.m.', 'p.m.']
   * }
   * locale.localize.timeOfDay = buildLocalizeFn(timeOfDayValues, 'long', function (hours) {
   *   // 0 is a.m. array index, 1 is p.m. array index
   *   return (hours / 12) >= 1 ? 1 : 0
   * })
   * locale.localize.timeOfDay(16, {type: 'uppercase'}) //=> 'PM'
   * locale.localize.timeOfDay(5) //=> 'a.m.'
   */
  function buildLocalizeFn (values, defaultType, indexCallback) {
    return function (dirtyIndex, dirtyOptions) {
      var options = dirtyOptions || {};
      var type = options.type ? String(options.type) : defaultType;
      var valuesArray = values[type] || values[defaultType];
      var index = indexCallback ? indexCallback(Number(dirtyIndex)) : Number(dirtyIndex);
      return valuesArray[index]
    }
  }
  
  /**
   * @name buildLocalizeArrayFn
   * @category Locale Helpers
   * @summary Build `localize.weekdays`, `localize.months` and `localize.timesOfDay` properties for the locale.
   *
   * @description
   * Build `localize.weekdays`, `localize.months` and `localize.timesOfDay` properties for the locale.
   * If no `type` is supplied to the options of the resulting function, `defaultType` will be used (see example).
   *
   * @param {Object} values - the object with arrays of values
   * @param {String} defaultType - the default type for the localize function
   * @returns {Function} the resulting function
   *
   * @example
   * var weekdayValues = {
   *   narrow: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
   *   short: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
   *   long: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
   * }
   * locale.localize.weekdays = buildLocalizeArrayFn(weekdayValues, 'long')
   * locale.localize.weekdays({type: 'narrow'}) //=> ['Su', 'Mo', ...]
   * locale.localize.weekdays() //=> ['Sunday', 'Monday', ...]
   */
  function buildLocalizeArrayFn (values, defaultType) {
    return function (dirtyOptions) {
      var options = dirtyOptions || {};
      var type = options.type ? String(options.type) : defaultType;
      return values[type] || values[defaultType]
    }
  }
  
  // Note: in English, the names of days of the week and months are capitalized.
  // If you are making a new locale based on this one, check if the same is true for the language you're working on.
  // Generally, formatted dates should look like they are in the middle of a sentence,
  // e.g. in Spanish language the weekdays and months should be in the lowercase.
  var weekdayValues = {
    narrow: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
    short: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
    long: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
  };
  
  var monthValues = {
    short: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
    long: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
  };
  
  // `timeOfDay` is used to designate which part of the day it is, when used with 12-hour clock.
  // Use the system which is used the most commonly in the locale.
  // For example, if the country doesn't use a.m./p.m., you can use `night`/`morning`/`afternoon`/`evening`:
  //
  //   var timeOfDayValues = {
  //     any: ['in the night', 'in the morning', 'in the afternoon', 'in the evening']
  //   }
  //
  // And later:
  //
  //   var localize = {
  //     // The callback takes the hours as the argument and returns the array index
  //     timeOfDay: buildLocalizeFn(timeOfDayValues, 'any', function (hours) {
  //       if (hours >= 17) {
  //         return 3
  //       } else if (hours >= 12) {
  //         return 2
  //       } else if (hours >= 4) {
  //         return 1
  //       } else {
  //         return 0
  //       }
  //     }),
  //     timesOfDay: buildLocalizeArrayFn(timeOfDayValues, 'any')
  //   }
  var timeOfDayValues = {
    uppercase: ['AM', 'PM'],
    lowercase: ['am', 'pm'],
    long: ['a.m.', 'p.m.']
  };
  
  function ordinalNumber (dirtyNumber, dirtyOptions) {
    var number = Number(dirtyNumber);
  
    // If ordinal numbers depend on context, for example,
    // if they are different for different grammatical genders,
    // use `options.unit`:
    //
    //   var options = dirtyOptions || {}
    //   var unit = String(options.unit)
    //
    // where `unit` can be 'month', 'quarter', 'week', 'isoWeek', 'dayOfYear',
    // 'dayOfMonth' or 'dayOfWeek'
  
    var rem100 = number % 100;
    if (rem100 > 20 || rem100 < 10) {
      switch (rem100 % 10) {
        case 1:
          return number + 'st'
        case 2:
          return number + 'nd'
        case 3:
          return number + 'rd'
      }
    }
    return number + 'th'
  }
  
  var localize = {
    ordinalNumber: ordinalNumber,
    weekday: buildLocalizeFn(weekdayValues, 'long'),
    weekdays: buildLocalizeArrayFn(weekdayValues, 'long'),
    month: buildLocalizeFn(monthValues, 'long'),
    months: buildLocalizeArrayFn(monthValues, 'long'),
    timeOfDay: buildLocalizeFn(timeOfDayValues, 'long', function (hours) {
      return (hours / 12) >= 1 ? 1 : 0
    }),
    timesOfDay: buildLocalizeArrayFn(timeOfDayValues, 'long')
  };
  
  /**
   * @name buildMatchFn
   * @category Locale Helpers
   * @summary Build `match.weekdays`, `match.months` and `match.timesOfDay` properties for the locale.
   *
   * @description
   * Build `match.weekdays`, `match.months` and `match.timesOfDay` properties for the locale used by `parse` function.
   * If no `type` is supplied to the options of the resulting function, `defaultType` will be used (see example).
   * The result of the match function will be passed into corresponding parser function
   * (`match.weekday`, `match.month` or `match.timeOfDay` respectively. See `buildParseFn`).
   *
   * @param {Object} values - the object with RegExps
   * @param {String} defaultType - the default type for the match function
   * @returns {Function} the resulting function
   *
   * @example
   * var matchWeekdaysPatterns = {
   *   narrow: /^(su|mo|tu|we|th|fr|sa)/i,
   *   short: /^(sun|mon|tue|wed|thu|fri|sat)/i,
   *   long: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
   * }
   * locale.match.weekdays = buildMatchFn(matchWeekdaysPatterns, 'long')
   * locale.match.weekdays('Sunday', {type: 'narrow'}) //=> ['Su', 'Su', ...]
   * locale.match.weekdays('Sunday') //=> ['Sunday', 'Sunday', ...]
   */
  function buildMatchFn (patterns, defaultType) {
    return function (dirtyString, dirtyOptions) {
      var options = dirtyOptions || {};
      var type = options.type ? String(options.type) : defaultType;
      var pattern = patterns[type] || patterns[defaultType];
      var string = String(dirtyString);
      return string.match(pattern)
    }
  }
  
  /**
   * @name buildParseFn
   * @category Locale Helpers
   * @summary Build `match.weekday`, `match.month` and `match.timeOfDay` properties for the locale.
   *
   * @description
   * Build `match.weekday`, `match.month` and `match.timeOfDay` properties for the locale used by `parse` function.
   * The argument of the resulting function is the result of the corresponding match function
   * (`match.weekdays`, `match.months` or `match.timesOfDay` respectively. See `buildMatchFn`).
   *
   * @param {Object} values - the object with arrays of RegExps
   * @param {String} defaultType - the default type for the parser function
   * @returns {Function} the resulting function
   *
   * @example
   * var parseWeekdayPatterns = {
   *   any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
   * }
   * locale.match.weekday = buildParseFn(matchWeekdaysPatterns, 'long')
   * var matchResult = locale.match.weekdays('Friday')
   * locale.match.weekday(matchResult) //=> 5
   */
  function buildParseFn (patterns, defaultType) {
    return function (matchResult, dirtyOptions) {
      var options = dirtyOptions || {};
      var type = options.type ? String(options.type) : defaultType;
      var patternsArray = patterns[type] || patterns[defaultType];
      var string = matchResult[1];
  
      return patternsArray.findIndex(function (pattern) {
        return pattern.test(string)
      })
    }
  }
  
  /**
   * @name buildMatchPatternFn
   * @category Locale Helpers
   * @summary Build match function from a single RegExp.
   *
   * @description
   * Build match function from a single RegExp.
   * Usually used for building `match.ordinalNumbers` property of the locale.
   *
   * @param {Object} pattern - the RegExp
   * @returns {Function} the resulting function
   *
   * @example
   * locale.match.ordinalNumbers = buildMatchPatternFn(/^(\d+)(th|st|nd|rd)?/i)
   * locale.match.ordinalNumbers('3rd') //=> ['3rd', '3', 'rd', ...]
   */
  function buildMatchPatternFn (pattern) {
    return function (dirtyString) {
      var string = String(dirtyString);
      return string.match(pattern)
    }
  }
  
  /**
   * @name parseDecimal
   * @category Locale Helpers
   * @summary Parses the match result into decimal number.
   *
   * @description
   * Parses the match result into decimal number.
   * Uses the string matched with the first set of parentheses of match RegExp.
   *
   * @param {Array} matchResult - the object returned by matching function
   * @returns {Number} the parsed value
   *
   * @example
   * locale.match = {
   *   ordinalNumbers: (dirtyString) {
   *     return String(dirtyString).match(/^(\d+)(th|st|nd|rd)?/i)
   *   },
   *   ordinalNumber: parseDecimal
   * }
   */
  function parseDecimal (matchResult) {
    return parseInt(matchResult[1], 10)
  }
  
  var matchOrdinalNumbersPattern = /^(\d+)(th|st|nd|rd)?/i;
  
  var matchWeekdaysPatterns = {
    narrow: /^(su|mo|tu|we|th|fr|sa)/i,
    short: /^(sun|mon|tue|wed|thu|fri|sat)/i,
    long: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
  };
  
  var parseWeekdayPatterns = {
    any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
  };
  
  var matchMonthsPatterns = {
    short: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
    long: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
  };
  
  var parseMonthPatterns = {
    any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
  };
  
  // `timeOfDay` is used to designate which part of the day it is, when used with 12-hour clock.
  // Use the system which is used the most commonly in the locale.
  // For example, if the country doesn't use a.m./p.m., you can use `night`/`morning`/`afternoon`/`evening`:
  //
  //   var matchTimesOfDayPatterns = {
  //     long: /^((in the)? (night|morning|afternoon|evening?))/i
  //   }
  //
  //   var parseTimeOfDayPatterns = {
  //     any: [/(night|morning)/i, /(afternoon|evening)/i]
  //   }
  var matchTimesOfDayPatterns = {
    short: /^(am|pm)/i,
    long: /^([ap]\.?\s?m\.?)/i
  };
  
  var parseTimeOfDayPatterns = {
    any: [/^a/i, /^p/i]
  };
  
  var match = {
    ordinalNumbers: buildMatchPatternFn(matchOrdinalNumbersPattern),
    ordinalNumber: parseDecimal,
    weekdays: buildMatchFn(matchWeekdaysPatterns, 'long'),
    weekday: buildParseFn(parseWeekdayPatterns, 'any'),
    months: buildMatchFn(matchMonthsPatterns, 'long'),
    month: buildParseFn(parseMonthPatterns, 'any'),
    timesOfDay: buildMatchFn(matchTimesOfDayPatterns, 'long'),
    timeOfDay: buildParseFn(parseTimeOfDayPatterns, 'any')
  };
  
  /**
   * @type {Locale}
   * @category Locales
   * @summary English locale (United States).
   * @language English
   * @iso-639-2 eng
   */
  var locale$1 = {
    formatDistance: formatDistance,
    formatLong: formatLong,
    formatRelative: formatRelative,
    localize: localize,
    match: match,
    options: {
      weekStartsOn: 0 /* Sunday */,
      firstWeekContainsDate: 1
    }
  };
  
  var MILLISECONDS_IN_DAY$1 = 86400000;
  
  // This function will be a part of public API when UTC function will be implemented.
  // See issue: https://github.com/date-fns/date-fns/issues/376
  function getUTCDayOfYear (dirtyDate, dirtyOptions) {
    var date = toDate(dirtyDate, dirtyOptions);
    var timestamp = date.getTime();
    date.setUTCMonth(0, 1);
    date.setUTCHours(0, 0, 0, 0);
    var startOfYearTimestamp = date.getTime();
    var difference = timestamp - startOfYearTimestamp;
    return Math.floor(difference / MILLISECONDS_IN_DAY$1) + 1
  }
  
  // This function will be a part of public API when UTC function will be implemented.
  // See issue: https://github.com/date-fns/date-fns/issues/376
  function startOfUTCISOWeek (dirtyDate, dirtyOptions) {
    var weekStartsOn = 1;
  
    var date = toDate(dirtyDate, dirtyOptions);
    var day = date.getUTCDay();
    var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
  
    date.setUTCDate(date.getUTCDate() - diff);
    date.setUTCHours(0, 0, 0, 0);
    return date
  }
  
  // This function will be a part of public API when UTC function will be implemented.
  // See issue: https://github.com/date-fns/date-fns/issues/376
  function getUTCISOWeekYear (dirtyDate, dirtyOptions) {
    var date = toDate(dirtyDate, dirtyOptions);
    var year = date.getUTCFullYear();
  
    var fourthOfJanuaryOfNextYear = new Date(0);
    fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
    fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
    var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear, dirtyOptions);
  
    var fourthOfJanuaryOfThisYear = new Date(0);
    fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
    fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
    var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear, dirtyOptions);
  
    if (date.getTime() >= startOfNextYear.getTime()) {
      return year + 1
    } else if (date.getTime() >= startOfThisYear.getTime()) {
      return year
    } else {
      return year - 1
    }
  }
  
  // This function will be a part of public API when UTC function will be implemented.
  // See issue: https://github.com/date-fns/date-fns/issues/376
  function startOfUTCISOWeekYear (dirtyDate, dirtyOptions) {
    var year = getUTCISOWeekYear(dirtyDate, dirtyOptions);
    var fourthOfJanuary = new Date(0);
    fourthOfJanuary.setUTCFullYear(year, 0, 4);
    fourthOfJanuary.setUTCHours(0, 0, 0, 0);
    var date = startOfUTCISOWeek(fourthOfJanuary, dirtyOptions);
    return date
  }
  
  var MILLISECONDS_IN_WEEK$2 = 604800000;
  
  // This function will be a part of public API when UTC function will be implemented.
  // See issue: https://github.com/date-fns/date-fns/issues/376
  function getUTCISOWeek (dirtyDate, dirtyOptions) {
    var date = toDate(dirtyDate, dirtyOptions);
    var diff = startOfUTCISOWeek(date, dirtyOptions).getTime() - startOfUTCISOWeekYear(date, dirtyOptions).getTime();
  
    // Round the number of days to the nearest integer
    // because the number of milliseconds in a week is not constant
    // (e.g. it's different in the week of the daylight saving time clock shift)
    return Math.round(diff / MILLISECONDS_IN_WEEK$2) + 1
  }
  
  var formatters = {
    // Month: 1, 2, ..., 12
    'M': function (date) {
      return date.getUTCMonth() + 1
    },
  
    // Month: 1st, 2nd, ..., 12th
    'Mo': function (date, options) {
      var month = date.getUTCMonth() + 1;
      return options.locale.localize.ordinalNumber(month, {unit: 'month'})
    },
  
    // Month: 01, 02, ..., 12
    'MM': function (date) {
      return addLeadingZeros(date.getUTCMonth() + 1, 2)
    },
  
    // Month: Jan, Feb, ..., Dec
    'MMM': function (date, options) {
      return options.locale.localize.month(date.getUTCMonth(), {type: 'short'})
    },
  
    // Month: January, February, ..., December
    'MMMM': function (date, options) {
      return options.locale.localize.month(date.getUTCMonth(), {type: 'long'})
    },
  
    // Quarter: 1, 2, 3, 4
    'Q': function (date) {
      return Math.ceil((date.getUTCMonth() + 1) / 3)
    },
  
    // Quarter: 1st, 2nd, 3rd, 4th
    'Qo': function (date, options) {
      var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
      return options.locale.localize.ordinalNumber(quarter, {unit: 'quarter'})
    },
  
    // Day of month: 1, 2, ..., 31
    'D': function (date) {
      return date.getUTCDate()
    },
  
    // Day of month: 1st, 2nd, ..., 31st
    'Do': function (date, options) {
      return options.locale.localize.ordinalNumber(date.getUTCDate(), {unit: 'dayOfMonth'})
    },
  
    // Day of month: 01, 02, ..., 31
    'DD': function (date) {
      return addLeadingZeros(date.getUTCDate(), 2)
    },
  
    // Day of year: 1, 2, ..., 366
    'DDD': function (date) {
      return getUTCDayOfYear(date)
    },
  
    // Day of year: 1st, 2nd, ..., 366th
    'DDDo': function (date, options) {
      return options.locale.localize.ordinalNumber(getUTCDayOfYear(date), {unit: 'dayOfYear'})
    },
  
    // Day of year: 001, 002, ..., 366
    'DDDD': function (date) {
      return addLeadingZeros(getUTCDayOfYear(date), 3)
    },
  
    // Day of week: Su, Mo, ..., Sa
    'dd': function (date, options) {
      return options.locale.localize.weekday(date.getUTCDay(), {type: 'narrow'})
    },
  
    // Day of week: Sun, Mon, ..., Sat
    'ddd': function (date, options) {
      return options.locale.localize.weekday(date.getUTCDay(), {type: 'short'})
    },
  
    // Day of week: Sunday, Monday, ..., Saturday
    'dddd': function (date, options) {
      return options.locale.localize.weekday(date.getUTCDay(), {type: 'long'})
    },
  
    // Day of week: 0, 1, ..., 6
    'd': function (date) {
      return date.getUTCDay()
    },
  
    // Day of week: 0th, 1st, 2nd, ..., 6th
    'do': function (date, options) {
      return options.locale.localize.ordinalNumber(date.getUTCDay(), {unit: 'dayOfWeek'})
    },
  
    // Day of ISO week: 1, 2, ..., 7
    'E': function (date) {
      return date.getUTCDay() || 7
    },
  
    // ISO week: 1, 2, ..., 53
    'W': function (date) {
      return getUTCISOWeek(date)
    },
  
    // ISO week: 1st, 2nd, ..., 53th
    'Wo': function (date, options) {
      return options.locale.localize.ordinalNumber(getUTCISOWeek(date), {unit: 'isoWeek'})
    },
  
    // ISO week: 01, 02, ..., 53
    'WW': function (date) {
      return addLeadingZeros(getUTCISOWeek(date), 2)
    },
  
    // Year: 00, 01, ..., 99
    'YY': function (date) {
      return addLeadingZeros(date.getUTCFullYear(), 4).substr(2)
    },
  
    // Year: 1900, 1901, ..., 2099
    'YYYY': function (date) {
      return addLeadingZeros(date.getUTCFullYear(), 4)
    },
  
    // ISO week-numbering year: 00, 01, ..., 99
    'GG': function (date) {
      return String(getUTCISOWeekYear(date)).substr(2)
    },
  
    // ISO week-numbering year: 1900, 1901, ..., 2099
    'GGGG': function (date) {
      return getUTCISOWeekYear(date)
    },
  
    // Hour: 0, 1, ... 23
    'H': function (date) {
      return date.getUTCHours()
    },
  
    // Hour: 00, 01, ..., 23
    'HH': function (date) {
      return addLeadingZeros(date.getUTCHours(), 2)
    },
  
    // Hour: 1, 2, ..., 12
    'h': function (date) {
      var hours = date.getUTCHours();
      if (hours === 0) {
        return 12
      } else if (hours > 12) {
        return hours % 12
      } else {
        return hours
      }
    },
  
    // Hour: 01, 02, ..., 12
    'hh': function (date) {
      return addLeadingZeros(formatters['h'](date), 2)
    },
  
    // Minute: 0, 1, ..., 59
    'm': function (date) {
      return date.getUTCMinutes()
    },
  
    // Minute: 00, 01, ..., 59
    'mm': function (date) {
      return addLeadingZeros(date.getUTCMinutes(), 2)
    },
  
    // Second: 0, 1, ..., 59
    's': function (date) {
      return date.getUTCSeconds()
    },
  
    // Second: 00, 01, ..., 59
    'ss': function (date) {
      return addLeadingZeros(date.getUTCSeconds(), 2)
    },
  
    // 1/10 of second: 0, 1, ..., 9
    'S': function (date) {
      return Math.floor(date.getUTCMilliseconds() / 100)
    },
  
    // 1/100 of second: 00, 01, ..., 99
    'SS': function (date) {
      return addLeadingZeros(Math.floor(date.getUTCMilliseconds() / 10), 2)
    },
  
    // Millisecond: 000, 001, ..., 999
    'SSS': function (date) {
      return addLeadingZeros(date.getUTCMilliseconds(), 3)
    },
  
    // Timezone: -01:00, +00:00, ... +12:00
    'Z': function (date, options) {
      var originalDate = options._originalDate || date;
      return formatTimezone(originalDate.getTimezoneOffset(), ':')
    },
  
    // Timezone: -0100, +0000, ... +1200
    'ZZ': function (date, options) {
      var originalDate = options._originalDate || date;
      return formatTimezone(originalDate.getTimezoneOffset())
    },
  
    // Seconds timestamp: 512969520
    'X': function (date, options) {
      var originalDate = options._originalDate || date;
      return Math.floor(originalDate.getTime() / 1000)
    },
  
    // Milliseconds timestamp: 512969520900
    'x': function (date, options) {
      var originalDate = options._originalDate || date;
      return originalDate.getTime()
    },
  
    // AM, PM
    'A': function (date, options) {
      return options.locale.localize.timeOfDay(date.getUTCHours(), {type: 'uppercase'})
    },
  
    // am, pm
    'a': function (date, options) {
      return options.locale.localize.timeOfDay(date.getUTCHours(), {type: 'lowercase'})
    },
  
    // a.m., p.m.
    'aa': function (date, options) {
      return options.locale.localize.timeOfDay(date.getUTCHours(), {type: 'long'})
    }
  };
  
  function formatTimezone (offset, delimeter) {
    delimeter = delimeter || '';
    var sign = offset > 0 ? '-' : '+';
    var absOffset = Math.abs(offset);
    var hours = Math.floor(absOffset / 60);
    var minutes = absOffset % 60;
    return sign + addLeadingZeros(hours, 2) + delimeter + addLeadingZeros(minutes, 2)
  }
  
  function addLeadingZeros (number, targetLength) {
    var output = Math.abs(number).toString();
    while (output.length < targetLength) {
      output = '0' + output;
    }
    return output
  }
  
  // This function will be a part of public API when UTC function will be implemented.
  // See issue: https://github.com/date-fns/date-fns/issues/376
  function addUTCMinutes (dirtyDate, dirtyAmount, dirtyOptions) {
    var date = toDate(dirtyDate, dirtyOptions);
    var amount = Number(dirtyAmount);
    date.setUTCMinutes(date.getUTCMinutes() + amount);
    return date
  }
  
  var longFormattingTokensRegExp = /(\[[^[]*])|(\\)?(LTS|LT|LLLL|LLL|LL|L|llll|lll|ll|l)/g;
  var defaultFormattingTokensRegExp = /(\[[^[]*])|(\\)?(x|ss|s|mm|m|hh|h|do|dddd|ddd|dd|d|aa|a|ZZ|Z|YYYY|YY|X|Wo|WW|W|SSS|SS|S|Qo|Q|Mo|MMMM|MMM|MM|M|HH|H|GGGG|GG|E|Do|DDDo|DDDD|DDD|DD|D|A|.)/g;
  
  /**
   * @name format
   * @category Common Helpers
   * @summary Format the date.
   *
   * @description
   * Return the formatted date string in the given format.
   *
   * Accepted tokens:
   * | Unit                    | Token | Result examples                  |
   * |-------------------------|-------|----------------------------------|
   * | Month                   | M     | 1, 2, ..., 12                    |
   * |                         | Mo    | 1st, 2nd, ..., 12th              |
   * |                         | MM    | 01, 02, ..., 12                  |
   * |                         | MMM   | Jan, Feb, ..., Dec               |
   * |                         | MMMM  | January, February, ..., December |
   * | Quarter                 | Q     | 1, 2, 3, 4                       |
   * |                         | Qo    | 1st, 2nd, 3rd, 4th               |
   * | Day of month            | D     | 1, 2, ..., 31                    |
   * |                         | Do    | 1st, 2nd, ..., 31st              |
   * |                         | DD    | 01, 02, ..., 31                  |
   * | Day of year             | DDD   | 1, 2, ..., 366                   |
   * |                         | DDDo  | 1st, 2nd, ..., 366th             |
   * |                         | DDDD  | 001, 002, ..., 366               |
   * | Day of week             | d     | 0, 1, ..., 6                     |
   * |                         | do    | 0th, 1st, ..., 6th               |
   * |                         | dd    | Su, Mo, ..., Sa                  |
   * |                         | ddd   | Sun, Mon, ..., Sat               |
   * |                         | dddd  | Sunday, Monday, ..., Saturday    |
   * | Day of ISO week         | E     | 1, 2, ..., 7                     |
   * | ISO week                | W     | 1, 2, ..., 53                    |
   * |                         | Wo    | 1st, 2nd, ..., 53rd              |
   * |                         | WW    | 01, 02, ..., 53                  |
   * | Year                    | YY    | 00, 01, ..., 99                  |
   * |                         | YYYY  | 1900, 1901, ..., 2099            |
   * | ISO week-numbering year | GG    | 00, 01, ..., 99                  |
   * |                         | GGGG  | 1900, 1901, ..., 2099            |
   * | AM/PM                   | A     | AM, PM                           |
   * |                         | a     | am, pm                           |
   * |                         | aa    | a.m., p.m.                       |
   * | Hour                    | H     | 0, 1, ... 23                     |
   * |                         | HH    | 00, 01, ... 23                   |
   * |                         | h     | 1, 2, ..., 12                    |
   * |                         | hh    | 01, 02, ..., 12                  |
   * | Minute                  | m     | 0, 1, ..., 59                    |
   * |                         | mm    | 00, 01, ..., 59                  |
   * | Second                  | s     | 0, 1, ..., 59                    |
   * |                         | ss    | 00, 01, ..., 59                  |
   * | 1/10 of second          | S     | 0, 1, ..., 9                     |
   * | 1/100 of second         | SS    | 00, 01, ..., 99                  |
   * | Millisecond             | SSS   | 000, 001, ..., 999               |
   * | Timezone                | Z     | -01:00, +00:00, ... +12:00       |
   * |                         | ZZ    | -0100, +0000, ..., +1200         |
   * | Seconds timestamp       | X     | 512969520                        |
   * | Milliseconds timestamp  | x     | 512969520900                     |
   * | Long format             | LT    | 05:30 a.m.                       |
   * |                         | LTS   | 05:30:15 a.m.                    |
   * |                         | L     | 07/02/1995                       |
   * |                         | l     | 7/2/1995                         |
   * |                         | LL    | July 2 1995                      |
   * |                         | ll    | Jul 2 1995                       |
   * |                         | LLL   | July 2 1995 05:30 a.m.           |
   * |                         | lll   | Jul 2 1995 05:30 a.m.            |
   * |                         | LLLL  | Sunday, July 2 1995 05:30 a.m.   |
   * |                         | llll  | Sun, Jul 2 1995 05:30 a.m.       |
   *
   * The characters wrapped in square brackets are escaped.
   *
   * The result may vary by locale.
   *
   * @param {Date|String|Number} date - the original date
   * @param {String} format - the string of tokens
   * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}
   * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
   * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
   * @returns {String} the formatted date string
   * @throws {TypeError} 2 arguments required
   * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
   * @throws {RangeError} `options.locale` must contain `localize` property
   * @throws {RangeError} `options.locale` must contain `formatLong` property
   *
   * @example
   * // Represent 11 February 2014 in middle-endian format:
   * var result = format(
   *   new Date(2014, 1, 11),
   *   'MM/DD/YYYY'
   * )
   * //=> '02/11/2014'
   *
   * @example
   * // Represent 2 July 2014 in Esperanto:
   * import { eoLocale } from 'date-fns/locale/eo'
   * var result = format(
   *   new Date(2014, 6, 2),
   *   'Do [de] MMMM YYYY',
   *   {locale: eoLocale}
   * )
   * //=> '2-a de julio 2014'
   */
  function format (dirtyDate, dirtyFormatStr, dirtyOptions) {
    if (arguments.length < 2) {
      throw new TypeError('2 arguments required, but only ' + arguments.length + ' present')
    }
  
    var formatStr = String(dirtyFormatStr);
    var options = dirtyOptions || {};
  
    var locale = options.locale || locale$1;
  
    if (!locale.localize) {
      throw new RangeError('locale must contain localize property')
    }
  
    if (!locale.formatLong) {
      throw new RangeError('locale must contain formatLong property')
    }
  
    var localeFormatters = locale.formatters || {};
    var formattingTokensRegExp = locale.formattingTokensRegExp || defaultFormattingTokensRegExp;
    var formatLong = locale.formatLong;
  
    var originalDate = toDate(dirtyDate, options);
  
    if (!isValid(originalDate, options)) {
      return 'Invalid Date'
    }
  
    // Convert the date in system timezone to the same date in UTC+00:00 timezone.
    // This ensures that when UTC functions will be implemented, locales will be compatible with them.
    // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
    var timezoneOffset = originalDate.getTimezoneOffset();
    var utcDate = addUTCMinutes(originalDate, -timezoneOffset, options);
  
    var formatterOptions = cloneObject(options);
    formatterOptions.locale = locale;
    formatterOptions.formatters = formatters;
  
    // When UTC functions will be implemented, options._originalDate will likely be a part of public API.
    // Right now, please don't use it in locales. If you have to use an original date,
    // please restore it from `date`, adding a timezone offset to it.
    formatterOptions._originalDate = originalDate;
  
    var result = formatStr
      .replace(longFormattingTokensRegExp, function (substring) {
        if (substring[0] === '[') {
          return substring
        }
  
        if (substring[0] === '\\') {
          return cleanEscapedString(substring)
        }
  
        return formatLong(substring)
      })
      .replace(formattingTokensRegExp, function (substring) {
        var formatter = localeFormatters[substring] || formatters[substring];
  
        if (formatter) {
          return formatter(utcDate, formatterOptions)
        } else {
          return cleanEscapedString(substring)
        }
      });
  
    return result
  }
  
  function cleanEscapedString (input) {
    if (input.match(/\[[\s\S]/)) {
      return input.replace(/^\[|]$/g, '')
    }
    return input.replace(/\\/g, '')
  }
  
  /**
   * @name subMinutes
   * @category Minute Helpers
   * @summary Subtract the specified number of minutes from the given date.
   *
   * @description
   * Subtract the specified number of minutes from the given date.
   *
   * @param {Date|String|Number} date - the date to be changed
   * @param {Number} amount - the amount of minutes to be subtracted
   * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}
   * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
   * @returns {Date} the new date with the mintues subtracted
   * @throws {TypeError} 2 arguments required
   * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
   *
   * @example
   * // Subtract 30 minutes from 10 July 2014 12:00:00:
   * var result = subMinutes(new Date(2014, 6, 10, 12, 0), 30)
   * //=> Thu Jul 10 2014 11:30:00
   */
  function subMinutes (dirtyDate, dirtyAmount, dirtyOptions) {
    if (arguments.length < 2) {
      throw new TypeError('2 arguments required, but only ' + arguments.length + ' present')
    }
  
    var amount = Number(dirtyAmount);
    return addMinutes(dirtyDate, -amount, dirtyOptions)
  }
  
  /**
   * @name isAfter
   * @category Common Helpers
   * @summary Is the first date after the second one?
   *
   * @description
   * Is the first date after the second one?
   *
   * @param {Date|String|Number} date - the date that should be after the other one to return true
   * @param {Date|String|Number} dateToCompare - the date to compare with
   * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}
   * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
   * @returns {Boolean} the first date is after the second date
   * @throws {TypeError} 2 arguments required
   * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
   *
   * @example
   * // Is 10 July 1989 after 11 February 1987?
   * var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
   * //=> true
   */
  function isAfter (dirtyDate, dirtyDateToCompare, dirtyOptions) {
    if (arguments.length < 2) {
      throw new TypeError('2 arguments required, but only ' + arguments.length + ' present')
    }
  
    var date = toDate(dirtyDate, dirtyOptions);
    var dateToCompare = toDate(dirtyDateToCompare, dirtyOptions);
    return date.getTime() > dateToCompare.getTime()
  }
  
  /**
   * @name isBefore
   * @category Common Helpers
   * @summary Is the first date before the second one?
   *
   * @description
   * Is the first date before the second one?
   *
   * @param {Date|String|Number} date - the date that should be before the other one to return true
   * @param {Date|String|Number} dateToCompare - the date to compare with
   * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}
   * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
   * @returns {Boolean} the first date is before the second date
   * @throws {TypeError} 2 arguments required
   * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
   *
   * @example
   * // Is 10 July 1989 before 11 February 1987?
   * var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
   * //=> false
   */
  function isBefore (dirtyDate, dirtyDateToCompare, dirtyOptions) {
    if (arguments.length < 2) {
      throw new TypeError('2 arguments required, but only ' + arguments.length + ' present')
    }
  
    var date = toDate(dirtyDate, dirtyOptions);
    var dateToCompare = toDate(dirtyDateToCompare, dirtyOptions);
    return date.getTime() < dateToCompare.getTime()
  }
  
  /**
   * @name isEqual
   * @category Common Helpers
   * @summary Are the given dates equal?
   *
   * @description
   * Are the given dates equal?
   *
   * @param {Date|String|Number} dateLeft - the first date to compare
   * @param {Date|String|Number} dateRight - the second date to compare
   * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}
   * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
   * @returns {Boolean} the dates are equal
   * @throws {TypeError} 2 arguments required
   * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
   *
   * @example
   * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal?
   * var result = isEqual(
   *   new Date(2014, 6, 2, 6, 30, 45, 0)
   *   new Date(2014, 6, 2, 6, 30, 45, 500)
   * )
   * //=> false
   */
  function isEqual$1 (dirtyLeftDate, dirtyRightDate, dirtyOptions) {
    if (arguments.length < 2) {
      throw new TypeError('2 arguments required, but only ' + arguments.length + ' present')
    }
  
    var dateLeft = toDate(dirtyLeftDate, dirtyOptions);
    var dateRight = toDate(dirtyRightDate, dirtyOptions);
    return dateLeft.getTime() === dateRight.getTime()
  }
  
  var patterns$1 = {
    'M': /^(1[0-2]|0?\d)/, // 0 to 12
    'D': /^(3[0-1]|[0-2]?\d)/, // 0 to 31
    'DDD': /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, // 0 to 366
    'W': /^(5[0-3]|[0-4]?\d)/, // 0 to 53
    'YYYY': /^(\d{1,4})/, // 0 to 9999
    'H': /^(2[0-3]|[0-1]?\d)/, // 0 to 23
    'm': /^([0-5]?\d)/, // 0 to 59
    'Z': /^([+-])(\d{2}):(\d{2})/,
    'ZZ': /^([+-])(\d{2})(\d{2})/,
    singleDigit: /^(\d)/,
    twoDigits: /^(\d{2})/,
    threeDigits: /^(\d{3})/,
    fourDigits: /^(\d{4})/,
    anyDigits: /^(\d+)/
  };
  
  function parseDecimal$1 (matchResult) {
    return parseInt(matchResult[1], 10)
  }
  
  var parsers = {
    // Year: 00, 01, ..., 99
    'YY': {
      unit: 'twoDigitYear',
      match: patterns$1.twoDigits,
      parse: function (matchResult) {
        return parseDecimal$1(matchResult)
      }
    },
  
    // Year: 1900, 1901, ..., 2099
    'YYYY': {
      unit: 'year',
      match: patterns$1.YYYY,
      parse: parseDecimal$1
    },
  
    // ISO week-numbering year: 00, 01, ..., 99
    'GG': {
      unit: 'isoYear',
      match: patterns$1.twoDigits,
      parse: function (matchResult) {
        return parseDecimal$1(matchResult) + 1900
      }
    },
  
    // ISO week-numbering year: 1900, 1901, ..., 2099
    'GGGG': {
      unit: 'isoYear',
      match: patterns$1.YYYY,
      parse: parseDecimal$1
    },
  
    // Quarter: 1, 2, 3, 4
    'Q': {
      unit: 'quarter',
      match: patterns$1.singleDigit,
      parse: parseDecimal$1
    },
  
    // Ordinal quarter
    'Qo': {
      unit: 'quarter',
      match: function (string, options) {
        return options.locale.match.ordinalNumbers(string, {unit: 'quarter'})
      },
      parse: function (matchResult, options) {
        return options.locale.match.ordinalNumber(matchResult, {unit: 'quarter'})
      }
    },
  
    // Month: 1, 2, ..., 12
    'M': {
      unit: 'month',
      match: patterns$1.M,
      parse: function (matchResult) {
        return parseDecimal$1(matchResult) - 1
      }
    },
  
    // Ordinal month
    'Mo': {
      unit: 'month',
      match: function (string, options) {
        return options.locale.match.ordinalNumbers(string, {unit: 'month'})
      },
      parse: function (matchResult, options) {
        return options.locale.match.ordinalNumber(matchResult, {unit: 'month'}) - 1
      }
    },
  
    // Month: 01, 02, ..., 12
    'MM': {
      unit: 'month',
      match: patterns$1.twoDigits,
      parse: function (matchResult) {
        return parseDecimal$1(matchResult) - 1
      }
    },
  
    // Month: Jan, Feb, ..., Dec
    'MMM': {
      unit: 'month',
      match: function (string, options) {
        return options.locale.match.months(string, {type: 'short'})
      },
      parse: function (matchResult, options) {
        return options.locale.match.month(matchResult, {type: 'short'})
      }
    },
  
    // Month: January, February, ..., December
    'MMMM': {
      unit: 'month',
      match: function (string, options) {
        return options.locale.match.months(string, {type: 'long'}) ||
          options.locale.match.months(string, {type: 'short'})
      },
      parse: function (matchResult, options) {
        var parseResult = options.locale.match.month(matchResult, {type: 'long'});
  
        if (parseResult == null) {
          parseResult = options.locale.match.month(matchResult, {type: 'short'});
        }
  
        return parseResult
      }
    },
  
    // ISO week: 1, 2, ..., 53
    'W': {
      unit: 'isoWeek',
      match: patterns$1.W,
      parse: parseDecimal$1
    },
  
    // Ordinal ISO week
    'Wo': {
      unit: 'isoWeek',
      match: function (string, options) {
        return options.locale.match.ordinalNumbers(string, {unit: 'isoWeek'})
      },
      parse: function (matchResult, options) {
        return options.locale.match.ordinalNumber(matchResult, {unit: 'isoWeek'})
      }
    },
  
    // ISO week: 01, 02, ..., 53
    'WW': {
      unit: 'isoWeek',
      match: patterns$1.twoDigits,
      parse: parseDecimal$1
    },
  
    // Day of week: 0, 1, ..., 6
    'd': {
      unit: 'dayOfWeek',
      match: patterns$1.singleDigit,
      parse: parseDecimal$1
    },
  
    // Ordinal day of week
    'do': {
      unit: 'dayOfWeek',
      match: function (string, options) {
        return options.locale.match.ordinalNumbers(string, {unit: 'dayOfWeek'})
      },
      parse: function (matchResult, options) {
        return options.locale.match.ordinalNumber(matchResult, {unit: 'dayOfWeek'})
      }
    },
  
    // Day of week: Su, Mo, ..., Sa
    'dd': {
      unit: 'dayOfWeek',
      match: function (string, options) {
        return options.locale.match.weekdays(string, {type: 'narrow'})
      },
      parse: function (matchResult, options) {
        return options.locale.match.weekday(matchResult, {type: 'narrow'})
      }
    },
  
    // Day of week: Sun, Mon, ..., Sat
    'ddd': {
      unit: 'dayOfWeek',
      match: function (string, options) {
        return options.locale.match.weekdays(string, {type: 'short'}) ||
          options.locale.match.weekdays(string, {type: 'narrow'})
      },
      parse: function (matchResult, options) {
        var parseResult = options.locale.match.weekday(matchResult, {type: 'short'});
  
        if (parseResult == null) {
          parseResult = options.locale.match.weekday(matchResult, {type: 'narrow'});
        }
  
        return parseResult
      }
    },
  
    // Day of week: Sunday, Monday, ..., Saturday
    'dddd': {
      unit: 'dayOfWeek',
      match: function (string, options) {
        return options.locale.match.weekdays(string, {type: 'long'}) ||
          options.locale.match.weekdays(string, {type: 'short'}) ||
          options.locale.match.weekdays(string, {type: 'narrow'})
      },
      parse: function (matchResult, options) {
        var parseResult = options.locale.match.weekday(matchResult, {type: 'long'});
  
        if (parseResult == null) {
          parseResult = options.locale.match.weekday(matchResult, {type: 'short'});
  
          if (parseResult == null) {
            parseResult = options.locale.match.weekday(matchResult, {type: 'narrow'});
          }
        }
  
        return parseResult
      }
    },
  
    // Day of ISO week: 1, 2, ..., 7
    'E': {
      unit: 'dayOfISOWeek',
      match: patterns$1.singleDigit,
      parse: function (matchResult) {
        return parseDecimal$1(matchResult)
      }
    },
  
    // Day of month: 1, 2, ..., 31
    'D': {
      unit: 'dayOfMonth',
      match: patterns$1.D,
      parse: parseDecimal$1
    },
  
    // Ordinal day of month
    'Do': {
      unit: 'dayOfMonth',
      match: function (string, options) {
        return options.locale.match.ordinalNumbers(string, {unit: 'dayOfMonth'})
      },
      parse: function (matchResult, options) {
        return options.locale.match.ordinalNumber(matchResult, {unit: 'dayOfMonth'})
      }
    },
  
    // Day of month: 01, 02, ..., 31
    'DD': {
      unit: 'dayOfMonth',
      match: patterns$1.twoDigits,
      parse: parseDecimal$1
    },
  
    // Day of year: 1, 2, ..., 366
    'DDD': {
      unit: 'dayOfYear',
      match: patterns$1.DDD,
      parse: parseDecimal$1
    },
  
    // Ordinal day of year
    'DDDo': {
      unit: 'dayOfYear',
      match: function (string, options) {
        return options.locale.match.ordinalNumbers(string, {unit: 'dayOfYear'})
      },
      parse: function (matchResult, options) {
        return options.locale.match.ordinalNumber(matchResult, {unit: 'dayOfYear'})
      }
    },
  
    // Day of year: 001, 002, ..., 366
    'DDDD': {
      unit: 'dayOfYear',
      match: patterns$1.threeDigits,
      parse: parseDecimal$1
    },
  
    // AM, PM
    'A': {
      unit: 'timeOfDay',
      match: function (string, options) {
        return options.locale.match.timesOfDay(string, {type: 'short'})
      },
      parse: function (matchResult, options) {
        return options.locale.match.timeOfDay(matchResult, {type: 'short'})
      }
    },
  
    // a.m., p.m.
    'aa': {
      unit: 'timeOfDay',
      match: function (string, options) {
        return options.locale.match.timesOfDay(string, {type: 'long'}) ||
          options.locale.match.timesOfDay(string, {type: 'short'})
      },
      parse: function (matchResult, options) {
        var parseResult = options.locale.match.timeOfDay(matchResult, {type: 'long'});
  
        if (parseResult == null) {
          parseResult = options.locale.match.timeOfDay(matchResult, {type: 'short'});
        }
  
        return parseResult
      }
    },
  
    // Hour: 0, 1, ... 23
    'H': {
      unit: 'hours',
      match: patterns$1.H,
      parse: parseDecimal$1
    },
  
    // Hour: 00, 01, ..., 23
    'HH': {
      unit: 'hours',
      match: patterns$1.twoDigits,
      parse: parseDecimal$1
    },
  
    // Hour: 1, 2, ..., 12
    'h': {
      unit: 'timeOfDayHours',
      match: patterns$1.M,
      parse: parseDecimal$1
    },
  
    // Hour: 01, 02, ..., 12
    'hh': {
      unit: 'timeOfDayHours',
      match: patterns$1.twoDigits,
      parse: parseDecimal$1
    },
  
    // Minute: 0, 1, ..., 59
    'm': {
      unit: 'minutes',
      match: patterns$1.m,
      parse: parseDecimal$1
    },
  
    // Minute: 00, 01, ..., 59
    'mm': {
      unit: 'minutes',
      match: patterns$1.twoDigits,
      parse: parseDecimal$1
    },
  
    // Second: 0, 1, ..., 59
    's': {
      unit: 'seconds',
      match: patterns$1.m,
      parse: parseDecimal$1
    },
  
    // Second: 00, 01, ..., 59
    'ss': {
      unit: 'seconds',
      match: patterns$1.twoDigits,
      parse: parseDecimal$1
    },
  
    // 1/10 of second: 0, 1, ..., 9
    'S': {
      unit: 'milliseconds',
      match: patterns$1.singleDigit,
      parse: function (matchResult) {
        return parseDecimal$1(matchResult) * 100
      }
    },
  
    // 1/100 of second: 00, 01, ..., 99
    'SS': {
      unit: 'milliseconds',
      match: patterns$1.twoDigits,
      parse: function (matchResult) {
        return parseDecimal$1(matchResult) * 10
      }
    },
  
    // Millisecond: 000, 001, ..., 999
    'SSS': {
      unit: 'milliseconds',
      match: patterns$1.threeDigits,
      parse: parseDecimal$1
    },
  
    // Timezone: -01:00, +00:00, ... +12:00
    'Z': {
      unit: 'timezone',
      match: patterns$1.Z,
      parse: function (matchResult) {
        var sign = matchResult[1];
        var hours = parseInt(matchResult[2], 10);
        var minutes = parseInt(matchResult[3], 10);
        var absoluteOffset = hours * 60 + minutes;
        return (sign === '+') ? absoluteOffset : -absoluteOffset
      }
    },
  
    // Timezone: -0100, +0000, ... +1200
    'ZZ': {
      unit: 'timezone',
      match: patterns$1.ZZ,
      parse: function (matchResult) {
        var sign = matchResult[1];
        var hours = parseInt(matchResult[2], 10);
        var minutes = parseInt(matchResult[3], 10);
        var absoluteOffset = hours * 60 + minutes;
        return (sign === '+') ? absoluteOffset : -absoluteOffset
      }
    },
  
    // Seconds timestamp: 512969520
    'X': {
      unit: 'timestamp',
      match: patterns$1.anyDigits,
      parse: function (matchResult) {
        return parseDecimal$1(matchResult) * 1000
      }
    },
  
    // Milliseconds timestamp: 512969520900
    'x': {
      unit: 'timestamp',
      match: patterns$1.anyDigits,
      parse: parseDecimal$1
    }
  };
  
  parsers['a'] = parsers['A'];
  
  // This function will be a part of public API when UTC function will be implemented.
  // See issue: https://github.com/date-fns/date-fns/issues/376
  function setUTCDay (dirtyDate, dirtyDay, dirtyOptions) {
    var options = dirtyOptions || {};
    var locale = options.locale;
    var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;
    var defaultWeekStartsOn = localeWeekStartsOn === undefined ? 0 : Number(localeWeekStartsOn);
    var weekStartsOn = options.weekStartsOn === undefined ? defaultWeekStartsOn : Number(options.weekStartsOn);
  
    // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
    if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
      throw new RangeError('weekStartsOn must be between 0 and 6 inclusively')
    }
  
    var date = toDate(dirtyDate, dirtyOptions);
    var day = Number(dirtyDay);
  
    var currentDay = date.getUTCDay();
  
    var remainder = day % 7;
    var dayIndex = (remainder + 7) % 7;
  
    var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
  
    date.setUTCDate(date.getUTCDate() + diff);
    return date
  }
  
  // This function will be a part of public API when UTC function will be implemented.
  // See issue: https://github.com/date-fns/date-fns/issues/376
  function setUTCISODay (dirtyDate, dirtyDay, dirtyOptions) {
    var day = Number(dirtyDay);
  
    if (day % 7 === 0) {
      day = day - 7;
    }
  
    var weekStartsOn = 1;
    var date = toDate(dirtyDate, dirtyOptions);
    var currentDay = date.getUTCDay();
  
    var remainder = day % 7;
    var dayIndex = (remainder + 7) % 7;
  
    var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;
  
    date.setUTCDate(date.getUTCDate() + diff);
    return date
  }
  
  // This function will be a part of public API when UTC function will be implemented.
  // See issue: https://github.com/date-fns/date-fns/issues/376
  function setUTCISOWeek (dirtyDate, dirtyISOWeek, dirtyOptions) {
    var date = toDate(dirtyDate, dirtyOptions);
    var isoWeek = Number(dirtyISOWeek);
    var diff = getUTCISOWeek(date, dirtyOptions) - isoWeek;
    date.setUTCDate(date.getUTCDate() - diff * 7);
    return date
  }
  
  var MILLISECONDS_IN_DAY$3 = 86400000;
  
  // This function will be a part of public API when UTC function will be implemented.
  // See issue: https://github.com/date-fns/date-fns/issues/376
  function setUTCISOWeekYear (dirtyDate, dirtyISOYear, dirtyOptions) {
    var date = toDate(dirtyDate, dirtyOptions);
    var isoYear = Number(dirtyISOYear);
    var dateStartOfYear = startOfUTCISOWeekYear(date, dirtyOptions);
    var diff = Math.floor((date.getTime() - dateStartOfYear.getTime()) / MILLISECONDS_IN_DAY$3);
    var fourthOfJanuary = new Date(0);
    fourthOfJanuary.setUTCFullYear(isoYear, 0, 4);
    fourthOfJanuary.setUTCHours(0, 0, 0, 0);
    date = startOfUTCISOWeekYear(fourthOfJanuary, dirtyOptions);
    date.setUTCDate(date.getUTCDate() + diff);
    return date
  }
  
  var MILLISECONDS_IN_MINUTE$7 = 60000;
  
  function setTimeOfDay (hours, timeOfDay) {
    var isAM = timeOfDay === 0;
  
    if (isAM) {
      if (hours === 12) {
        return 0
      }
    } else {
      if (hours !== 12) {
        return 12 + hours
      }
    }
  
    return hours
  }
  
  var units = {
    twoDigitYear: {
      priority: 10,
      set: function (dateValues, value) {
        var century = Math.floor(dateValues.date.getUTCFullYear() / 100);
        var year = century * 100 + value;
        dateValues.date.setUTCFullYear(year, 0, 1);
        dateValues.date.setUTCHours(0, 0, 0, 0);
        return dateValues
      }
    },
  
    year: {
      priority: 10,
      set: function (dateValues, value) {
        dateValues.date.setUTCFullYear(value, 0, 1);
        dateValues.date.setUTCHours(0, 0, 0, 0);
        return dateValues
      }
    },
  
    isoYear: {
      priority: 10,
      set: function (dateValues, value, options) {
        dateValues.date = startOfUTCISOWeekYear(setUTCISOWeekYear(dateValues.date, value, options), options);
        return dateValues
      }
    },
  
    quarter: {
      priority: 20,
      set: function (dateValues, value) {
        dateValues.date.setUTCMonth((value - 1) * 3, 1);
        dateValues.date.setUTCHours(0, 0, 0, 0);
        return dateValues
      }
    },
  
    month: {
      priority: 30,
      set: function (dateValues, value) {
        dateValues.date.setUTCMonth(value, 1);
        dateValues.date.setUTCHours(0, 0, 0, 0);
        return dateValues
      }
    },
  
    isoWeek: {
      priority: 40,
      set: function (dateValues, value, options) {
        dateValues.date = startOfUTCISOWeek(setUTCISOWeek(dateValues.date, value, options), options);
        return dateValues
      }
    },
  
    dayOfWeek: {
      priority: 50,
      set: function (dateValues, value, options) {
        dateValues.date = setUTCDay(dateValues.date, value, options);
        dateValues.date.setUTCHours(0, 0, 0, 0);
        return dateValues
      }
    },
  
    dayOfISOWeek: {
      priority: 50,
      set: function (dateValues, value, options) {
        dateValues.date = setUTCISODay(dateValues.date, value, options);
        dateValues.date.setUTCHours(0, 0, 0, 0);
        return dateValues
      }
    },
  
    dayOfMonth: {
      priority: 50,
      set: function (dateValues, value) {
        dateValues.date.setUTCDate(value);
        dateValues.date.setUTCHours(0, 0, 0, 0);
        return dateValues
      }
    },
  
    dayOfYear: {
      priority: 50,
      set: function (dateValues, value) {
        dateValues.date.setUTCMonth(0, value);
        dateValues.date.setUTCHours(0, 0, 0, 0);
        return dateValues
      }
    },
  
    timeOfDay: {
      priority: 60,
      set: function (dateValues, value, options) {
        dateValues.timeOfDay = value;
        return dateValues
      }
    },
  
    hours: {
      priority: 70,
      set: function (dateValues, value, options) {
        dateValues.date.setUTCHours(value, 0, 0, 0);
        return dateValues
      }
    },
  
    timeOfDayHours: {
      priority: 70,
      set: function (dateValues, value, options) {
        var timeOfDay = dateValues.timeOfDay;
        if (timeOfDay != null) {
          value = setTimeOfDay(value, timeOfDay);
        }
        dateValues.date.setUTCHours(value, 0, 0, 0);
        return dateValues
      }
    },
  
    minutes: {
      priority: 80,
      set: function (dateValues, value) {
        dateValues.date.setUTCMinutes(value, 0, 0);
        return dateValues
      }
    },
  
    seconds: {
      priority: 90,
      set: function (dateValues, value) {
        dateValues.date.setUTCSeconds(value, 0);
        return dateValues
      }
    },
  
    milliseconds: {
      priority: 100,
      set: function (dateValues, value) {
        dateValues.date.setUTCMilliseconds(value);
        return dateValues
      }
    },
  
    timezone: {
      priority: 110,
      set: function (dateValues, value) {
        dateValues.date = new Date(dateValues.date.getTime() - value * MILLISECONDS_IN_MINUTE$7);
        return dateValues
      }
    },
  
    timestamp: {
      priority: 120,
      set: function (dateValues, value) {
        dateValues.date = new Date(value);
        return dateValues
      }
    }
  };
  
  var TIMEZONE_UNIT_PRIORITY = 110;
  var MILLISECONDS_IN_MINUTE$6 = 60000;
  
  var longFormattingTokensRegExp$1 = /(\[[^[]*])|(\\)?(LTS|LT|LLLL|LLL|LL|L|llll|lll|ll|l)/g;
  var defaultParsingTokensRegExp = /(\[[^[]*])|(\\)?(x|ss|s|mm|m|hh|h|do|dddd|ddd|dd|d|aa|a|ZZ|Z|YYYY|YY|X|Wo|WW|W|SSS|SS|S|Qo|Q|Mo|MMMM|MMM|MM|M|HH|H|GGGG|GG|E|Do|DDDo|DDDD|DDD|DD|D|A|.)/g;
  
  /**
   * @name parse
   * @category Common Helpers
   * @summary Parse the date.
   *
   * @description
   * Return the date parsed from string using the given format.
   *
   * Accepted format tokens:
   * | Unit                    | Priority | Token | Input examples                   |
   * |-------------------------|----------|-------|----------------------------------|
   * | Year                    | 10       | YY    | 00, 01, ..., 99                  |
   * |                         |          | YYYY  | 1900, 1901, ..., 2099            |
   * | ISO week-numbering year | 10       | GG    | 00, 01, ..., 99                  |
   * |                         |          | GGGG  | 1900, 1901, ..., 2099            |
   * | Quarter                 | 20       | Q     | 1, 2, 3, 4                       |
   * |                         |          | Qo    | 1st, 2nd, 3rd, 4th               |
   * | Month                   | 30       | M     | 1, 2, ..., 12                    |
   * |                         |          | Mo    | 1st, 2nd, ..., 12th              |
   * |                         |          | MM    | 01, 02, ..., 12                  |
   * |                         |          | MMM   | Jan, Feb, ..., Dec               |
   * |                         |          | MMMM  | January, February, ..., December |
   * | ISO week                | 40       | W     | 1, 2, ..., 53                    |
   * |                         |          | Wo    | 1st, 2nd, ..., 53rd              |
   * |                         |          | WW    | 01, 02, ..., 53                  |
   * | Day of week             | 50       | d     | 0, 1, ..., 6                     |
   * |                         |          | do    | 0th, 1st, ..., 6th               |
   * |                         |          | dd    | Su, Mo, ..., Sa                  |
   * |                         |          | ddd   | Sun, Mon, ..., Sat               |
   * |                         |          | dddd  | Sunday, Monday, ..., Saturday    |
   * | Day of ISO week         | 50       | E     | 1, 2, ..., 7                     |
   * | Day of month            | 50       | D     | 1, 2, ..., 31                    |
   * |                         |          | Do    | 1st, 2nd, ..., 31st              |
   * |                         |          | DD    | 01, 02, ..., 31                  |
   * | Day of year             | 50       | DDD   | 1, 2, ..., 366                   |
   * |                         |          | DDDo  | 1st, 2nd, ..., 366th             |
   * |                         |          | DDDD  | 001, 002, ..., 366               |
   * | Time of day             | 60       | A     | AM, PM                           |
   * |                         |          | a     | am, pm                           |
   * |                         |          | aa    | a.m., p.m.                       |
   * | Hour                    | 70       | H     | 0, 1, ... 23                     |
   * |                         |          | HH    | 00, 01, ... 23                   |
   * | Time of day hour        | 70       | h     | 1, 2, ..., 12                    |
   * |                         |          | hh    | 01, 02, ..., 12                  |
   * | Minute                  | 80       | m     | 0, 1, ..., 59                    |
   * |                         |          | mm    | 00, 01, ..., 59                  |
   * | Second                  | 90       | s     | 0, 1, ..., 59                    |
   * |                         |          | ss    | 00, 01, ..., 59                  |
   * | 1/10 of second          | 100      | S     | 0, 1, ..., 9                     |
   * | 1/100 of second         | 100      | SS    | 00, 01, ..., 99                  |
   * | Millisecond             | 100      | SSS   | 000, 001, ..., 999               |
   * | Timezone                | 110      | Z     | -01:00, +00:00, ... +12:00       |
   * |                         |          | ZZ    | -0100, +0000, ..., +1200         |
   * | Seconds timestamp       | 120      | X     | 512969520                        |
   * | Milliseconds timestamp  | 120      | x     | 512969520900                     |
   *
   * Values will be assigned to the date in the ascending order of its unit's priority.
   * Units of an equal priority overwrite each other in the order of appearance.
   *
   * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),
   * the values will be taken from 3rd argument `baseDate` which works as a context of parsing.
   *
   * `baseDate` must be passed for correct work of the function.
   * If you're not sure which `baseDate` to supply, create a new instance of Date:
   * `parse('02/11/2014', 'MM/DD/YYYY', new Date())`
   * In this case parsing will be done in the context of the current date.
   * If `baseDate` is `Invalid Date` or a value not convertible to valid `Date`,
   * then `Invalid Date` will be returned.
   *
   * Also, `parse` unfolds long formats like those in [format]{@link https://date-fns.org/docs/format}:
   * | Token | Input examples                 |
   * |-------|--------------------------------|
   * | LT    | 05:30 a.m.                     |
   * | LTS   | 05:30:15 a.m.                  |
   * | L     | 07/02/1995                     |
   * | l     | 7/2/1995                       |
   * | LL    | July 2 1995                    |
   * | ll    | Jul 2 1995                     |
   * | LLL   | July 2 1995 05:30 a.m.         |
   * | lll   | Jul 2 1995 05:30 a.m.          |
   * | LLLL  | Sunday, July 2 1995 05:30 a.m. |
   * | llll  | Sun, Jul 2 1995 05:30 a.m.     |
   *
   * The characters wrapped in square brackets in the format string are escaped.
   *
   * The result may vary by locale.
   *
   * If `formatString` matches with `dateString` but does not provides tokens, `baseDate` will be returned.
   *
   * If parsing failed, `Invalid Date` will be returned.
   * Invalid Date is a Date, whose time value is NaN.
   * Time value of Date: http://es5.github.io/#x15.9.1.1
   *
   * @param {String} dateString - the string to parse
   * @param {String} formatString - the string of tokens
   * @param {Date|String|Number} baseDate - the date to took the missing higher priority values from
   * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}
   * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
   * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
   * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
   * @returns {Date} the parsed date
   * @throws {TypeError} 3 arguments required
   * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2
   * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
   * @throws {RangeError} `options.locale` must contain `match` property
   * @throws {RangeError} `options.locale` must contain `formatLong` property
   *
   * @example
   * // Parse 11 February 2014 from middle-endian format:
   * var result = parse(
   *   '02/11/2014',
   *   'MM/DD/YYYY',
   *   new Date()
   * )
   * //=> Tue Feb 11 2014 00:00:00
   *
   * @example
   * // Parse 28th of February in English locale in the context of 2010 year:
   * import eoLocale from 'date-fns/locale/eo'
   * var result = parse(
   *   '28-a de februaro',
   *   'Do [de] MMMM',
   *   new Date(2010, 0, 1)
   *   {locale: eoLocale}
   * )
   * //=> Sun Feb 28 2010 00:00:00
   */
  function parse (dirtyDateString, dirtyFormatString, dirtyBaseDate, dirtyOptions) {
    if (arguments.length < 3) {
      throw new TypeError('3 arguments required, but only ' + arguments.length + ' present')
    }
  
    var dateString = String(dirtyDateString);
    var options = dirtyOptions || {};
  
    var weekStartsOn = options.weekStartsOn === undefined ? 0 : Number(options.weekStartsOn);
  
    // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
    if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
      throw new RangeError('weekStartsOn must be between 0 and 6 inclusively')
    }
  
    var locale = options.locale || locale$1;
    var localeParsers = locale.parsers || {};
    var localeUnits = locale.units || {};
  
    if (!locale.match) {
      throw new RangeError('locale must contain match property')
    }
  
    if (!locale.formatLong) {
      throw new RangeError('locale must contain formatLong property')
    }
  
    var formatString = String(dirtyFormatString)
      .replace(longFormattingTokensRegExp$1, function (substring) {
        if (substring[0] === '[') {
          return substring
        }
  
        if (substring[0] === '\\') {
          return cleanEscapedString$1(substring)
        }
  
        return locale.formatLong(substring)
      });
  
    if (formatString === '') {
      if (dateString === '') {
        return toDate(dirtyBaseDate, options)
      } else {
        return new Date(NaN)
      }
    }
  
    var subFnOptions = cloneObject(options);
    subFnOptions.locale = locale;
  
    var tokens = formatString.match(locale.parsingTokensRegExp || defaultParsingTokensRegExp);
    var tokensLength = tokens.length;
  
    // If timezone isn't specified, it will be set to the system timezone
    var setters = [{
      priority: TIMEZONE_UNIT_PRIORITY,
      set: dateToSystemTimezone,
      index: 0
    }];
  
    var i;
    for (i = 0; i < tokensLength; i++) {
      var token = tokens[i];
      var parser = localeParsers[token] || parsers[token];
      if (parser) {
        var matchResult;
  
        if (parser.match instanceof RegExp) {
          matchResult = parser.match.exec(dateString);
        } else {
          matchResult = parser.match(dateString, subFnOptions);
        }
  
        if (!matchResult) {
          return new Date(NaN)
        }
  
        var unitName = parser.unit;
        var unit = localeUnits[unitName] || units[unitName];
  
        setters.push({
          priority: unit.priority,
          set: unit.set,
          value: parser.parse(matchResult, subFnOptions),
          index: setters.length
        });
  
        var substring = matchResult[0];
        dateString = dateString.slice(substring.length);
      } else {
        var head = tokens[i].match(/^\[.*]$/) ? tokens[i].replace(/^\[|]$/g, '') : tokens[i];
        if (dateString.indexOf(head) === 0) {
          dateString = dateString.slice(head.length);
        } else {
          return new Date(NaN)
        }
      }
    }
  
    var uniquePrioritySetters = setters
      .map(function (setter) {
        return setter.priority
      })
      .sort(function (a, b) {
        return a - b
      })
      .filter(function (priority, index, array) {
        return array.indexOf(priority) === index
      })
      .map(function (priority) {
        return setters
          .filter(function (setter) {
            return setter.priority === priority
          })
          .reverse()
      })
      .map(function (setterArray) {
        return setterArray[0]
      });
  
    var date = toDate(dirtyBaseDate, options);
  
    if (isNaN(date)) {
      return new Date(NaN)
    }
  
    // Convert the date in system timezone to the same date in UTC+00:00 timezone.
    // This ensures that when UTC functions will be implemented, locales will be compatible with them.
    // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37
    var utcDate = subMinutes(date, date.getTimezoneOffset());
  
    var dateValues = {date: utcDate};
  
    var settersLength = uniquePrioritySetters.length;
    for (i = 0; i < settersLength; i++) {
      var setter = uniquePrioritySetters[i];
      dateValues = setter.set(dateValues, setter.value, subFnOptions);
    }
  
    return dateValues.date
  }
  
  function dateToSystemTimezone (dateValues) {
    var date = dateValues.date;
    var time = date.getTime();
  
    // Get the system timezone offset at (moment of time - offset)
    var offset = date.getTimezoneOffset();
  
    // Get the system timezone offset at the exact moment of time
    offset = new Date(time + offset * MILLISECONDS_IN_MINUTE$6).getTimezoneOffset();
  
    // Convert date in timezone "UTC+00:00" to the system timezone
    dateValues.date = new Date(time + offset * MILLISECONDS_IN_MINUTE$6);
  
    return dateValues
  }
  
  function cleanEscapedString$1 (input) {
    if (input.match(/\[[\s\S]/)) {
      return input.replace(/^\[|]$/g, '')
    }
    return input.replace(/\\/g, '')
  }
  
  // This file is generated automatically by `scripts/build/indices.js`. Please, don't change it.
  
  // 
  
  /**
   * Custom parse behavior on top of date-fns parse function.
   */
  function parseDate$1 (date, format$$1) {
    if (typeof date !== 'string') {
      return isValid(date) ? date : null;
    }
  
    var parsed = parse(date, format$$1, new Date());
  
    // if date is not valid or the formatted output after parsing does not match
    // the string value passed in (avoids overflows)
    if (!isValid(parsed) || format(parsed, format$$1) !== date) {
      return null;
    }
  
    return parsed;
  }
  
  var after = function (value, ref) {
    var otherValue = ref[0];
    var inclusion = ref[1];
    var format = ref[2];
  
    if (typeof format === 'undefined') {
      format = inclusion;
      inclusion = false;
    }
    value = parseDate$1(value, format);
    otherValue = parseDate$1(otherValue, format);
  
    // if either is not valid.
    if (!value || !otherValue) {
      return false;
    }
  
    return isAfter(value, otherValue) || (inclusion && isEqual$1(value, otherValue));
  };
  
  /**
   * Some Alpha Regex helpers.
   * https://github.com/chriso/validator.js/blob/master/src/lib/alpha.js
   */
  
  var alpha$1 = {
    en: /^[A-Z]*$/i,
    cs: /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,
    da: /^[A-ZÆØÅ]*$/i,
    de: /^[A-ZÄÖÜß]*$/i,
    es: /^[A-ZÁÉÍÑÓÚÜ]*$/i,
    fr: /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,
    lt: /^[A-ZĄČĘĖĮŠŲŪŽ]*$/i,
    nl: /^[A-ZÉËÏÓÖÜ]*$/i,
    hu: /^[A-ZÁÉÍÓÖŐÚÜŰ]*$/i,
    pl: /^[A-ZĄĆĘŚŁŃÓŻŹ]*$/i,
    pt: /^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,
    ru: /^[А-ЯЁ]*$/i,
    sk: /^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,
    sr: /^[A-ZČĆŽŠĐ]*$/i,
    tr: /^[A-ZÇĞİıÖŞÜ]*$/i,
    uk: /^[А-ЩЬЮЯЄІЇҐ]*$/i,
    ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/
  };
  
  var alphaSpaces = {
    en: /^[A-Z\s]*$/i,
    cs: /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ\s]*$/i,
    da: /^[A-ZÆØÅ\s]*$/i,
    de: /^[A-ZÄÖÜß\s]*$/i,
    es: /^[A-ZÁÉÍÑÓÚÜ\s]*$/i,
    fr: /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ\s]*$/i,
    lt: /^[A-ZĄČĘĖĮŠŲŪŽ\s]*$/i,
    nl: /^[A-ZÉËÏÓÖÜ\s]*$/i,
    hu: /^[A-ZÁÉÍÓÖŐÚÜŰ\s]*$/i,
    pl: /^[A-ZĄĆĘŚŁŃÓŻŹ\s]*$/i,
    pt: /^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ\s]*$/i,
    ru: /^[А-ЯЁ\s]*$/i,
    sk: /^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ\s]*$/i,
    sr: /^[A-ZČĆŽŠĐ\s]*$/i,
    tr: /^[A-ZÇĞİıÖŞÜ\s]*$/i,
    uk: /^[А-ЩЬЮЯЄІЇҐ\s]*$/i,
    ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ\s]*$/
  };
  
  var alphanumeric = {
    en: /^[0-9A-Z]*$/i,
    cs: /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,
    da: /^[0-9A-ZÆØÅ]$/i,
    de: /^[0-9A-ZÄÖÜß]*$/i,
    es: /^[0-9A-ZÁÉÍÑÓÚÜ]*$/i,
    fr: /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,
    lt: /^[0-9A-ZĄČĘĖĮŠŲŪŽ]*$/i,
    hu: /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]*$/i,
    nl: /^[0-9A-ZÉËÏÓÖÜ]*$/i,
    pl: /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]*$/i,
    pt: /^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,
    ru: /^[0-9А-ЯЁ]*$/i,
    sk: /^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,
    sr: /^[0-9A-ZČĆŽŠĐ]*$/i,
    tr: /^[0-9A-ZÇĞİıÖŞÜ]*$/i,
    uk: /^[0-9А-ЩЬЮЯЄІЇҐ]*$/i,
    ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/
  };
  
  var alphaDash = {
    en: /^[0-9A-Z_-]*$/i,
    cs: /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ_-]*$/i,
    da: /^[0-9A-ZÆØÅ_-]*$/i,
    de: /^[0-9A-ZÄÖÜß_-]*$/i,
    es: /^[0-9A-ZÁÉÍÑÓÚÜ_-]*$/i,
    fr: /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ_-]*$/i,
    lt: /^[0-9A-ZĄČĘĖĮŠŲŪŽ_-]*$/i,
    nl: /^[0-9A-ZÉËÏÓÖÜ_-]*$/i,
    hu: /^[0-9A-ZÁÉÍÓÖŐÚÜŰ_-]*$/i,
    pl: /^[0-9A-ZĄĆĘŚŁŃÓŻŹ_-]*$/i,
    pt: /^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ_-]*$/i,
    ru: /^[0-9А-ЯЁ_-]*$/i,
    sk: /^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ_-]*$/i,
    sr: /^[0-9A-ZČĆŽŠĐ_-]*$/i,
    tr: /^[0-9A-ZÇĞİıÖŞÜ_-]*$/i,
    uk: /^[0-9А-ЩЬЮЯЄІЇҐ_-]*$/i,
    ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ_-]*$/
  };
  
  var validate = function (value, ref) {
    if ( ref === void 0 ) ref = [];
    var locale = ref[0]; if ( locale === void 0 ) locale = null;
  
    if (Array.isArray(value)) {
      return value.every(function (val) { return validate(val, [locale]); });
    }
  
    // Match at least one locale.
    if (! locale) {
      return Object.keys(alpha$1).some(function (loc) { return alpha$1[loc].test(value); });
    }
  
    return (alpha$1[locale] || alpha$1.en).test(value);
  };
  
  var validate$1 = function (value, ref) {
    if ( ref === void 0 ) ref = [];
    var locale = ref[0]; if ( locale === void 0 ) locale = null;
  
    if (Array.isArray(value)) {
      return value.every(function (val) { return validate$1(val, [locale]); });
    }
  
    // Match at least one locale.
    if (! locale) {
      return Object.keys(alphaDash).some(function (loc) { return alphaDash[loc].test(value); });
    }
  
    return (alphaDash[locale] || alphaDash.en).test(value);
  };
  
  var validate$2 = function (value, ref) {
    if ( ref === void 0 ) ref = [];
    var locale = ref[0]; if ( locale === void 0 ) locale = null;
  
    if (Array.isArray(value)) {
      return value.every(function (val) { return validate$2(val, [locale]); });
    }
  
    // Match at least one locale.
    if (! locale) {
      return Object.keys(alphanumeric).some(function (loc) { return alphanumeric[loc].test(value); });
    }
  
    return (alphanumeric[locale] || alphanumeric.en).test(value);
  };
  
  var validate$3 = function (value, ref) {
    if ( ref === void 0 ) ref = [];
    var locale = ref[0]; if ( locale === void 0 ) locale = null;
  
    if (Array.isArray(value)) {
      return value.every(function (val) { return validate$3(val, [locale]); });
    }
  
    // Match at least one locale.
    if (! locale) {
      return Object.keys(alphaSpaces).some(function (loc) { return alphaSpaces[loc].test(value); });
    }
  
    return (alphaSpaces[locale] || alphaSpaces.en).test(value);
  };
  
  var before = function (value, ref) {
    var otherValue = ref[0];
    var inclusion = ref[1];
    var format = ref[2];
  
    if (typeof format === 'undefined') {
      format = inclusion;
      inclusion = false;
    }
    value = parseDate$1(value, format);
    otherValue = parseDate$1(otherValue, format);
  
    // if either is not valid.
    if (!value || !otherValue) {
      return false;
    }
  
    return isBefore(value, otherValue) || (inclusion && isEqual$1(value, otherValue));
  };
  
  var validate$4 = function (value, ref) {
    var min = ref[0];
    var max = ref[1];
  
    if (Array.isArray(value)) {
      return value.every(function (val) { return validate$4(val, [min, max]); });
    }
  
    return Number(min) <= value && Number(max) >= value;
  };
  
  var confirmed = function (value, other) { return String(value) === String(other); };
  
  function unwrapExports (x) {
  	return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
  }
  
  function createCommonjsModule(fn, module) {
  	return module = { exports: {} }, fn(module, module.exports), module.exports;
  }
  
  var assertString_1 = createCommonjsModule(function (module, exports) {
  'use strict';
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = assertString;
  function assertString(input) {
    var isString = typeof input === 'string' || input instanceof String;
  
    if (!isString) {
      throw new TypeError('This library (validator.js) validates strings only');
    }
  }
  module.exports = exports['default'];
  });
  
  unwrapExports(assertString_1);
  
  var isCreditCard_1 = createCommonjsModule(function (module, exports) {
  'use strict';
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = isCreditCard;
  
  
  
  var _assertString2 = _interopRequireDefault(assertString_1);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  /* eslint-disable max-len */
  var creditCard = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|62[0-9]{14})$/;
  /* eslint-enable max-len */
  
  function isCreditCard(str) {
    (0, _assertString2.default)(str);
    var sanitized = str.replace(/[- ]+/g, '');
    if (!creditCard.test(sanitized)) {
      return false;
    }
    var sum = 0;
    var digit = void 0;
    var tmpNum = void 0;
    var shouldDouble = void 0;
    for (var i = sanitized.length - 1; i >= 0; i--) {
      digit = sanitized.substring(i, i + 1);
      tmpNum = parseInt(digit, 10);
      if (shouldDouble) {
        tmpNum *= 2;
        if (tmpNum >= 10) {
          sum += tmpNum % 10 + 1;
        } else {
          sum += tmpNum;
        }
      } else {
        sum += tmpNum;
      }
      shouldDouble = !shouldDouble;
    }
    return !!(sum % 10 === 0 ? sanitized : false);
  }
  module.exports = exports['default'];
  });
  
  var isCreditCard = unwrapExports(isCreditCard_1);
  
  var credit_card = function (value) { return isCreditCard(String(value)); };
  
  var validate$5 = function (value, ref) {
    if ( ref === void 0 ) ref = [];
    var decimals = ref[0]; if ( decimals === void 0 ) decimals = '*';
    var separator = ref[1]; if ( separator === void 0 ) separator = '.';
  
    if (Array.isArray(value)) {
      return value.every(function (val) { return validate$5(val, [decimals, separator]); });
    }
  
    if (value === null || value === undefined || value === '') {
      return true;
    }
  
    // if is 0.
    if (Number(decimals) === 0) {
      return /^-?\d*$/.test(value);
    }
  
    var regexPart = decimals === '*' ? '+' : ("{1," + decimals + "}");
    var regex = new RegExp(("^-?\\d*(\\" + separator + "\\d" + regexPart + ")?$"));
  
    if (! regex.test(value)) {
      return false;
    }
  
    var parsedValue = parseFloat(value);
  
    // eslint-disable-next-line
      return parsedValue === parsedValue;
  };
  
  var date_between = function (value, params) {
    var min;
    var max;
    var format;
    var inclusivity = '()';
  
    if (params.length > 3) {
      var assign;
      (assign = params, min = assign[0], max = assign[1], inclusivity = assign[2], format = assign[3]);
    } else {
      var assign$1;
      (assign$1 = params, min = assign$1[0], max = assign$1[1], format = assign$1[2]);
    }
  
    var minDate = parseDate$1(String(min), format);
    var maxDate = parseDate$1(String(max), format);
    var dateVal = parseDate$1(String(value), format);
  
    if (!minDate || !maxDate || !dateVal) {
      return false;
    }
  
    if (inclusivity === '()') {
      return isAfter(dateVal, minDate) && isBefore(dateVal, maxDate);
    }
  
    if (inclusivity === '(]') {
      return isAfter(dateVal, minDate) && (isEqual$1(dateVal, maxDate) || isBefore(dateVal, maxDate));
    }
  
    if (inclusivity === '[)') {
      return isBefore(dateVal, maxDate) && (isEqual$1(dateVal, minDate) || isAfter(dateVal, minDate));
    }
  
    return isEqual$1(dateVal, maxDate) || isEqual$1(dateVal, minDate) ||
          (isBefore(dateVal, maxDate) && isAfter(dateVal, minDate));
  };
  
  var date_format = function (value, ref) {
    var format = ref[0];
  
    return !!parseDate$1(value, format);
  };
  
  var validate$6 = function (value, ref) {
    var length = ref[0];
  
    if (Array.isArray(value)) {
      return value.every(function (val) { return validate$6(val, [length]); });
    }
    var strVal = String(value);
  
    return /^[0-9]*$/.test(strVal) && strVal.length === Number(length);
  };
  
  var validateImage = function (file, width, height) {
    var URL = window.URL || window.webkitURL;
    return new Promise(function (resolve) {
      var image = new Image();
      image.onerror = function () { return resolve({ valid: false }); };
      image.onload = function () { return resolve({
        valid: image.width === Number(width) && image.height === Number(height)
      }); };
  
      image.src = URL.createObjectURL(file);
    });
  };
  
  var dimensions = function (files, ref) {
    var width = ref[0];
    var height = ref[1];
  
    var list = [];
    for (var i = 0; i < files.length; i++) {
      // if file is not an image, reject.
      if (! /\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(files[i].name)) {
        return false;
      }
  
      list.push(files[i]);
    }
  
    return Promise.all(list.map(function (file) { return validateImage(file, width, height); }));
  };
  
  var merge_1 = createCommonjsModule(function (module, exports) {
  'use strict';
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = merge;
  function merge() {
    var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    var defaults = arguments[1];
  
    for (var key in defaults) {
      if (typeof obj[key] === 'undefined') {
        obj[key] = defaults[key];
      }
    }
    return obj;
  }
  module.exports = exports['default'];
  });
  
  unwrapExports(merge_1);
  
  var isByteLength_1 = createCommonjsModule(function (module, exports) {
  'use strict';
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  
  exports.default = isByteLength;
  
  
  
  var _assertString2 = _interopRequireDefault(assertString_1);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  /* eslint-disable prefer-rest-params */
  function isByteLength(str, options) {
    (0, _assertString2.default)(str);
    var min = void 0;
    var max = void 0;
    if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object') {
      min = options.min || 0;
      max = options.max;
    } else {
      // backwards compatibility: isByteLength(str, min [, max])
      min = arguments[1];
      max = arguments[2];
    }
    var len = encodeURI(str).split(/%..|./).length - 1;
    return len >= min && (typeof max === 'undefined' || len <= max);
  }
  module.exports = exports['default'];
  });
  
  unwrapExports(isByteLength_1);
  
  var isFQDN = createCommonjsModule(function (module, exports) {
  'use strict';
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = isFDQN;
  
  
  
  var _assertString2 = _interopRequireDefault(assertString_1);
  
  
  
  var _merge2 = _interopRequireDefault(merge_1);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  var default_fqdn_options = {
    require_tld: true,
    allow_underscores: false,
    allow_trailing_dot: false
  };
  
  function isFDQN(str, options) {
    (0, _assertString2.default)(str);
    options = (0, _merge2.default)(options, default_fqdn_options);
  
    /* Remove the optional trailing dot before checking validity */
    if (options.allow_trailing_dot && str[str.length - 1] === '.') {
      str = str.substring(0, str.length - 1);
    }
    var parts = str.split('.');
    if (options.require_tld) {
      var tld = parts.pop();
      if (!parts.length || !/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {
        return false;
      }
      // disallow spaces
      if (/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(tld)) {
        return false;
      }
    }
    for (var part, i = 0; i < parts.length; i++) {
      part = parts[i];
      if (options.allow_underscores) {
        part = part.replace(/_/g, '');
      }
      if (!/^[a-z\u00a1-\uffff0-9-]+$/i.test(part)) {
        return false;
      }
      // disallow full-width chars
      if (/[\uff01-\uff5e]/.test(part)) {
        return false;
      }
      if (part[0] === '-' || part[part.length - 1] === '-') {
        return false;
      }
    }
    return true;
  }
  module.exports = exports['default'];
  });
  
  unwrapExports(isFQDN);
  
  var isEmail_1 = createCommonjsModule(function (module, exports) {
  'use strict';
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = isEmail;
  
  
  
  var _assertString2 = _interopRequireDefault(assertString_1);
  
  
  
  var _merge2 = _interopRequireDefault(merge_1);
  
  
  
  var _isByteLength2 = _interopRequireDefault(isByteLength_1);
  
  
  
  var _isFQDN2 = _interopRequireDefault(isFQDN);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  var default_email_options = {
    allow_display_name: false,
    require_display_name: false,
    allow_utf8_local_part: true,
    require_tld: true
  };
  
  /* eslint-disable max-len */
  /* eslint-disable no-control-regex */
  var displayName = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\,\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s]*<(.+)>$/i;
  var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i;
  var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i;
  var emailUserUtf8Part = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i;
  var quotedEmailUserUtf8 = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;
  /* eslint-enable max-len */
  /* eslint-enable no-control-regex */
  
  function isEmail(str, options) {
    (0, _assertString2.default)(str);
    options = (0, _merge2.default)(options, default_email_options);
  
    if (options.require_display_name || options.allow_display_name) {
      var display_email = str.match(displayName);
      if (display_email) {
        str = display_email[1];
      } else if (options.require_display_name) {
        return false;
      }
    }
  
    var parts = str.split('@');
    var domain = parts.pop();
    var user = parts.join('@');
  
    var lower_domain = domain.toLowerCase();
    if (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com') {
      user = user.replace(/\./g, '').toLowerCase();
    }
  
    if (!(0, _isByteLength2.default)(user, { max: 64 }) || !(0, _isByteLength2.default)(domain, { max: 254 })) {
      return false;
    }
  
    if (!(0, _isFQDN2.default)(domain, { require_tld: options.require_tld })) {
      return false;
    }
  
    if (user[0] === '"') {
      user = user.slice(1, user.length - 1);
      return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);
    }
  
    var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;
  
    var user_parts = user.split('.');
    for (var i = 0; i < user_parts.length; i++) {
      if (!pattern.test(user_parts[i])) {
        return false;
      }
    }
  
    return true;
  }
  module.exports = exports['default'];
  });
  
  var isEmail = unwrapExports(isEmail_1);
  
  var validate$7 = function (value) {
    if (Array.isArray(value)) {
      return value.every(function (val) { return isEmail(String(val)); });
    }
  
    return isEmail(String(value));
  };
  
  var ext = function (files, extensions) {
    var regex = new RegExp((".(" + (extensions.join('|')) + ")$"), 'i');
  
    return files.every(function (file) { return regex.test(file.name); });
  };
  
  var image = function (files) { return files.every(function (file) { return /\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(file.name); }
  ); };
  
  var validate$8 = function (value, options) {
    if (Array.isArray(value)) {
      return value.every(function (val) { return validate$8(val, options); });
    }
  
    // eslint-disable-next-line
    return !! options.filter(function (option) { return option == value; }).length;
  };
  
  var isIP_1 = createCommonjsModule(function (module, exports) {
  'use strict';
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = isIP;
  
  
  
  var _assertString2 = _interopRequireDefault(assertString_1);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  var ipv4Maybe = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/;
  var ipv6Block = /^[0-9A-F]{1,4}$/i;
  
  function isIP(str) {
    var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  
    (0, _assertString2.default)(str);
    version = String(version);
    if (!version) {
      return isIP(str, 4) || isIP(str, 6);
    } else if (version === '4') {
      if (!ipv4Maybe.test(str)) {
        return false;
      }
      var parts = str.split('.').sort(function (a, b) {
        return a - b;
      });
      return parts[3] <= 255;
    } else if (version === '6') {
      var blocks = str.split(':');
      var foundOmissionBlock = false; // marker to indicate ::
  
      // At least some OS accept the last 32 bits of an IPv6 address
      // (i.e. 2 of the blocks) in IPv4 notation, and RFC 3493 says
      // that '::ffff:a.b.c.d' is valid for IPv4-mapped IPv6 addresses,
      // and '::a.b.c.d' is deprecated, but also valid.
      var foundIPv4TransitionBlock = isIP(blocks[blocks.length - 1], 4);
      var expectedNumberOfBlocks = foundIPv4TransitionBlock ? 7 : 8;
  
      if (blocks.length > expectedNumberOfBlocks) {
        return false;
      }
      // initial or final ::
      if (str === '::') {
        return true;
      } else if (str.substr(0, 2) === '::') {
        blocks.shift();
        blocks.shift();
        foundOmissionBlock = true;
      } else if (str.substr(str.length - 2) === '::') {
        blocks.pop();
        blocks.pop();
        foundOmissionBlock = true;
      }
  
      for (var i = 0; i < blocks.length; ++i) {
        // test for a :: which can not be at the string start/end
        // since those cases have been handled above
        if (blocks[i] === '' && i > 0 && i < blocks.length - 1) {
          if (foundOmissionBlock) {
            return false; // multiple :: in address
          }
          foundOmissionBlock = true;
        } else if (foundIPv4TransitionBlock && i === blocks.length - 1) {
          // it has been checked before that the last
          // block is a valid IPv4 address
        } else if (!ipv6Block.test(blocks[i])) {
          return false;
        }
      }
      if (foundOmissionBlock) {
        return blocks.length >= 1;
      }
      return blocks.length === expectedNumberOfBlocks;
    }
    return false;
  }
  module.exports = exports['default'];
  });
  
  var isIP = unwrapExports(isIP_1);
  
  var ip = function (value, ref) {
    if ( ref === void 0 ) ref = [];
    var version = ref[0]; if ( version === void 0 ) version = 4;
  
    if (isNullOrUndefined(value)) {
      value = '';
    }
  
    if (Array.isArray(value)) {
      return value.every(function (val) { return isIP(val, version); });
    }
  
    return isIP(value, version);
  };
  
  var is = function (value, ref) {
    if ( ref === void 0 ) ref = [];
    var other = ref[0];
  
    return value === other;
  };
  
  var is_not = function (value, ref) {
    if ( ref === void 0 ) ref = [];
    var other = ref[0];
  
    return value !== other;
  };
  
  /**
   * @param {Array|String} value
   * @param {Number} length
   * @param {Number} max
   */
  var compare = function (value, length, max) {
    if (max === undefined) {
      return value.length === length;
    }
  
    // cast to number.
    max = Number(max);
  
    return value.length >= length && value.length <= max;
  };
  
  var length = function (value, ref) {
    var length = ref[0];
    var max = ref[1]; if ( max === void 0 ) max = undefined;
  
    length = Number(length);
    if (value === undefined || value === null) {
      return false;
    }
  
    if (typeof value === 'number') {
      value = String(value);
    }
  
    if (!value.length) {
      value = toArray(value);
    }
  
    return compare(value, length, max);
  };
  
  var integer = function (value) {
    if (Array.isArray(value)) {
      return value.every(function (val) { return /^-?[0-9]+$/.test(String(val)); });
    }
  
    return /^-?[0-9]+$/.test(String(value));
  };
  
  var max$1 = function (value, ref) {
    var length = ref[0];
  
    if (value === undefined || value === null) {
      return length >= 0;
    }
  
    return String(value).length <= length;
  };
  
  var max_value = function (value, ref) {
    var max = ref[0];
  
    if (Array.isArray(value) || value === null || value === undefined || value === '') {
      return false;
    }
  
    return Number(value) <= max;
  };
  
  var mimes = function (files, mimes) {
    var regex = new RegExp(((mimes.join('|').replace('*', '.+')) + "$"), 'i');
  
    return files.every(function (file) { return regex.test(file.type); });
  };
  
  var min$1 = function (value, ref) {
    var length = ref[0];
  
    if (value === undefined || value === null) {
      return false;
    }
    return String(value).length >= length;
  };
  
  var min_value = function (value, ref) {
    var min = ref[0];
  
    if (Array.isArray(value) || value === null || value === undefined || value === '') {
      return false;
    }
  
    return Number(value) >= min;
  };
  
  var validate$9 = function (value, options) {
    if (Array.isArray(value)) {
      return value.every(function (val) { return validate$9(val, options); });
    }
  
    // eslint-disable-next-line
    return ! options.filter(function (option) { return option == value; }).length;
  };
  
  var numeric = function (value) {
    if (Array.isArray(value)) {
      return value.every(function (val) { return /^[0-9]+$/.test(String(val)); });
    }
  
    return /^[0-9]+$/.test(String(value));
  };
  
  var regex = function (value, ref) {
    var regex = ref[0];
    var flags = ref.slice(1);
  
    if (regex instanceof RegExp) {
      return regex.test(value);
    }
  
    return new RegExp(regex, flags).test(String(value));
  };
  
  var required = function (value, ref) {
    if ( ref === void 0 ) ref = [];
    var invalidateFalse = ref[0]; if ( invalidateFalse === void 0 ) invalidateFalse = false;
  
    if (Array.isArray(value)) {
      return !! value.length;
    }
  
    // incase a field considers `false` as an empty value like checkboxes.
    if (value === false && invalidateFalse) {
      return false;
    }
  
    if (value === undefined || value === null) {
      return false;
    }
  
    return !! String(value).trim().length;
  };
  
  var size = function (files, ref) {
    var size = ref[0];
  
    if (isNaN(size)) {
      return false;
    }
  
    var nSize = Number(size) * 1024;
    for (var i = 0; i < files.length; i++) {
      if (files[i].size > nSize) {
        return false;
      }
    }
  
    return true;
  };
  
  var isURL_1 = createCommonjsModule(function (module, exports) {
  'use strict';
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = isURL;
  
  
  
  var _assertString2 = _interopRequireDefault(assertString_1);
  
  
  
  var _isFQDN2 = _interopRequireDefault(isFQDN);
  
  
  
  var _isIP2 = _interopRequireDefault(isIP_1);
  
  
  
  var _merge2 = _interopRequireDefault(merge_1);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  var default_url_options = {
    protocols: ['http', 'https', 'ftp'],
    require_tld: true,
    require_protocol: false,
    require_host: true,
    require_valid_protocol: true,
    allow_underscores: false,
    allow_trailing_dot: false,
    allow_protocol_relative_urls: false
  };
  
  var wrapped_ipv6 = /^\[([^\]]+)\](?::([0-9]+))?$/;
  
  function isRegExp(obj) {
    return Object.prototype.toString.call(obj) === '[object RegExp]';
  }
  
  function checkHost(host, matches) {
    for (var i = 0; i < matches.length; i++) {
      var match = matches[i];
      if (host === match || isRegExp(match) && match.test(host)) {
        return true;
      }
    }
    return false;
  }
  
  function isURL(url, options) {
    (0, _assertString2.default)(url);
    if (!url || url.length >= 2083 || /[\s<>]/.test(url)) {
      return false;
    }
    if (url.indexOf('mailto:') === 0) {
      return false;
    }
    options = (0, _merge2.default)(options, default_url_options);
    var protocol = void 0,
        auth = void 0,
        host = void 0,
        hostname = void 0,
        port = void 0,
        port_str = void 0,
        split = void 0,
        ipv6 = void 0;
  
    split = url.split('#');
    url = split.shift();
  
    split = url.split('?');
    url = split.shift();
  
    split = url.split('://');
    if (split.length > 1) {
      protocol = split.shift();
      if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) {
        return false;
      }
    } else if (options.require_protocol) {
      return false;
    } else if (options.allow_protocol_relative_urls && url.substr(0, 2) === '//') {
      split[0] = url.substr(2);
    }
    url = split.join('://');
  
    if (url === '') {
      return false;
    }
  
    split = url.split('/');
    url = split.shift();
  
    if (url === '' && !options.require_host) {
      return true;
    }
  
    split = url.split('@');
    if (split.length > 1) {
      auth = split.shift();
      if (auth.indexOf(':') >= 0 && auth.split(':').length > 2) {
        return false;
      }
    }
    hostname = split.join('@');
  
    port_str = null;
    ipv6 = null;
    var ipv6_match = hostname.match(wrapped_ipv6);
    if (ipv6_match) {
      host = '';
      ipv6 = ipv6_match[1];
      port_str = ipv6_match[2] || null;
    } else {
      split = hostname.split(':');
      host = split.shift();
      if (split.length) {
        port_str = split.join(':');
      }
    }
  
    if (port_str !== null) {
      port = parseInt(port_str, 10);
      if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) {
        return false;
      }
    }
  
    if (!(0, _isIP2.default)(host) && !(0, _isFQDN2.default)(host, options) && (!ipv6 || !(0, _isIP2.default)(ipv6, 6))) {
      return false;
    }
  
    host = host || ipv6;
  
    if (options.host_whitelist && !checkHost(host, options.host_whitelist)) {
      return false;
    }
    if (options.host_blacklist && checkHost(host, options.host_blacklist)) {
      return false;
    }
  
    return true;
  }
  module.exports = exports['default'];
  });
  
  var isURL = unwrapExports(isURL_1);
  
  var url = function (value, ref) {
    if ( ref === void 0 ) ref = [];
    var requireProtocol = ref[0]; if ( requireProtocol === void 0 ) requireProtocol = false;
  
    var options = { require_protocol: !!requireProtocol, allow_underscores: true };
    if (isNullOrUndefined(value)) {
      value = '';
    }
  
    if (Array.isArray(value)) {
      return value.every(function (val) { return isURL(val, options); });
    }
  
    return isURL(value, options);
  };
  
  /* eslint-disable camelcase */
  var Rules = {
    after: after,
    alpha_dash: validate$1,
    alpha_num: validate$2,
    alpha_spaces: validate$3,
    alpha: validate,
    before: before,
    between: validate$4,
    confirmed: confirmed,
    credit_card: credit_card,
    date_between: date_between,
    date_format: date_format,
    decimal: validate$5,
    digits: validate$6,
    dimensions: dimensions,
    email: validate$7,
    ext: ext,
    image: image,
    in: validate$8,
    integer: integer,
    length: length,
    ip: ip,
    is_not: is_not,
    is: is,
    max: max$1,
    max_value: max_value,
    mimes: mimes,
    min: min$1,
    min_value: min_value,
    not_in: validate$9,
    numeric: numeric,
    regex: regex,
    required: required,
    size: size,
    url: url
  };
  
  // 
  
  var normalize = function (fields) {
    if (Array.isArray(fields)) {
      return fields.reduce(function (prev, curr) {
        if (~curr.indexOf('.')) {
          prev[curr.split('.')[1]] = curr;
        } else {
          prev[curr] = curr;
        }
  
        return prev;
      }, {});
    }
  
    return fields;
  };
  
  // Combines two flags using either AND or OR depending on the flag type.
  var combine = function (lhs, rhs) {
    var mapper = {
      pristine: function (lhs, rhs) { return lhs && rhs; },
      dirty: function (lhs, rhs) { return lhs || rhs; },
      touched: function (lhs, rhs) { return lhs || rhs; },
      untouched: function (lhs, rhs) { return lhs && rhs; },
      valid: function (lhs, rhs) { return lhs && rhs; },
      invalid: function (lhs, rhs) { return lhs || rhs; },
      pending: function (lhs, rhs) { return lhs || rhs; },
      required: function (lhs, rhs) { return lhs || rhs; },
      validated: function (lhs, rhs) { return lhs && rhs; }
    };
  
    return Object.keys(mapper).reduce(function (flags, flag) {
      flags[flag] = mapper[flag](lhs[flag], rhs[flag]);
  
      return flags;
    }, {});
  };
  
  var mapScope = function (scope, deep) {
    if ( deep === void 0 ) deep = true;
  
    return Object.keys(scope).reduce(function (flags, field) {
      if (!flags) {
        flags = assign({}, scope[field]);
        return flags;
      }
  
      // scope.
      var isScope = field.indexOf('$') === 0;
      if (deep && isScope) {
        return combine(mapScope(scope[field]), flags);
      } else if (!deep && isScope) {
        return flags;
      }
  
      flags = combine(flags, scope[field]);
  
      return flags;
    }, null);
  };
  
  /**
   * Maps fields to computed functions.
   */
  var mapFields = function (fields) {
    if (!fields) {
      return function () {
        return mapScope(this.$validator.flags);
      };
    }
  
    var normalized = normalize(fields);
    return Object.keys(normalized).reduce(function (prev, curr) {
      var field = normalized[curr];
      prev[curr] = function mappedField () {
        // if field exists
        if (this.$validator.flags[field]) {
          return this.$validator.flags[field];
        }
  
        // scopeless fields were selected.
        if (normalized[curr] === '*') {
          return mapScope(this.$validator.flags, false);
        }
  
        // if it has a scope defined
        var index = field.indexOf('.');
        if (index <= 0) {
          return {};
        }
  
        var ref = field.split('.');
        var scope = ref[0];
        var name = ref.slice(1);
  
        scope = this.$validator.flags[("$" + scope)];
        name = name.join('.');
  
        // an entire scope was selected: scope.*
        if (name === '*' && scope) {
          return mapScope(scope);
        }
  
        if (scope && scope[name]) {
          return scope[name];
        }
  
        return {};
      };
  
      return prev;
    }, {});
  };
  
  var version = '2.0.4';
  
  var rulesPlugin = function (ref) {
    var Validator$$1 = ref.Validator;
  
    Object.keys(Rules).forEach(function (rule) {
      Validator$$1.extend(rule, Rules[rule]);
    });
  
    // Merge the english messages.
    Validator$$1.localize('en', locale);
  };
  
  use(rulesPlugin);
  
  var index_esm = {
    install: install,
    use: use,
    directive: directive,
    mixin: mixin,
    mapFields: mapFields,
    Validator: Validator,
    ErrorBag: ErrorBag,
    Rules: Rules,
    version: version
  };
  
  
  /* harmony default export */ __webpack_exports__["default"] = (index_esm);
  
  
  /***/ }),
  
  /***/ "./node_modules/vue-loader/lib/component-normalizer.js":
  /***/ (function(module, exports) {
  
  // this module is a runtime utility for cleaner component module output and will
  // be included in the final webpack user bundle
  
  module.exports = function normalizeComponent (
    rawScriptExports,
    compiledTemplate,
    scopeId,
    cssModules
  ) {
    var esModule
    var scriptExports = rawScriptExports = rawScriptExports || {}
  
    // ES6 modules interop
    var type = typeof rawScriptExports.default
    if (type === 'object' || type === 'function') {
      esModule = rawScriptExports
      scriptExports = rawScriptExports.default
    }
  
    // Vue.extend constructor export interop
    var options = typeof scriptExports === 'function'
      ? scriptExports.options
      : scriptExports
  
    // render functions
    if (compiledTemplate) {
      options.render = compiledTemplate.render
      options.staticRenderFns = compiledTemplate.staticRenderFns
    }
  
    // scopedId
    if (scopeId) {
      options._scopeId = scopeId
    }
  
    // inject cssModules
    if (cssModules) {
      var computed = Object.create(options.computed || null)
      Object.keys(cssModules).forEach(function (key) {
        var module = cssModules[key]
        computed[key] = function () { return module }
      })
      options.computed = computed
    }
  
    return {
      esModule: esModule,
      exports: scriptExports,
      options: options
    }
  }
  
  
  /***/ }),
  
  /***/ "./node_modules/vue-loader/lib/template-compiler/index.js?{\"id\":\"data-v-15c81486\"}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./resources/assets/js/components/admin/Admin-app.vue":
  /***/ (function(module, exports, __webpack_require__) {
  
  module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
    return _c('v-app', {
      attrs: {
        "id": "example-2",
        "standalone": ""
      }
    }, [_c('v-navigation-drawer', {
      attrs: {
        "persistent": "",
        "light": "",
        "mini-variant": _vm.mini,
        "overflow": ""
      },
      on: {
        "update:miniVariant": function($event) {
          _vm.mini = $event
        }
      },
      model: {
        value: (_vm.drawer),
        callback: function($$v) {
          _vm.drawer = $$v
        },
        expression: "drawer"
      }
    }, [_c('v-toolbar', {
      staticClass: "transparent",
      attrs: {
        "flat": ""
      }
    }, [_c('v-list', {
      staticClass: "pa-0"
    }, [_c('v-list-tile', {
      attrs: {
        "avatar": "",
        "tag": "div"
      }
    }, [_c('v-list-tile-avatar', [_c('img', {
      attrs: {
        "src": "https://randomuser.me/api/portraits/men/85.jpg"
      }
    })]), _vm._v(" "), _c('v-list-tile-content', [_c('v-list-tile-title', [_vm._v("John Leider")])], 1), _vm._v(" "), _c('v-list-tile-action', [_c('v-btn', {
      attrs: {
        "icon": ""
      },
      nativeOn: {
        "click": function($event) {
          $event.stopPropagation();
          _vm.mini = !_vm.mini
        }
      }
    }, [_c('v-icon', [_vm._v("chevron_left")])], 1)], 1)], 1)], 1)], 1), _vm._v(" "), _c('v-list', {
      staticClass: "pt-0",
      attrs: {
        "dense": ""
      }
    }, [_c('v-divider'), _vm._v(" "), _vm._l((_vm.items), function(item) {
      return _c('v-list-tile', {
        key: item.title
      }, [_c('v-list-tile-action', [_c('v-icon', [_vm._v(_vm._s(item.icon))])], 1), _vm._v(" "), _c('v-list-tile-content', [_c('v-list-tile-title', [_vm._v(_vm._s(item.title))])], 1)], 1)
    })], 2)], 1), _vm._v(" "), _c('v-toolbar', {
      staticClass: "indigo darken-4",
      attrs: {
        "fixed": "",
        "dark": ""
      }
    }, [_c('v-toolbar-side-icon', {
      nativeOn: {
        "click": function($event) {
          $event.stopPropagation();
          _vm.drawer = !_vm.drawer
        }
      }
    }), _vm._v(" "), _c('v-toolbar-title', [_vm._v("Econet FTTH")])], 1), _vm._v(" "), _c('main', [_c('v-container', {
      attrs: {
        "fluid": ""
      }
    }, [_c('div', {
      staticClass: "title"
    }, [_vm._v("Click on sidebar to re-open.")])])], 1)], 1)
  },staticRenderFns: []}
  module.exports.render._withStripped = true
  if (false) {
    module.hot.accept()
    if (module.hot.data) {
       require("vue-hot-reload-api").rerender("data-v-15c81486", module.exports)
    }
  }
  
  /***/ }),
  
  /***/ "./node_modules/vue-loader/lib/template-compiler/index.js?{\"id\":\"data-v-2bd5e1aa\"}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./resources/assets/js/components/Application.vue":
  /***/ (function(module, exports, __webpack_require__) {
  
  module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
    return _c('form-wizard', {
      attrs: {
        "title": "Complete 2 Easy Steps Below",
        "subtitle": "",
        "finishButtonText": 'Submit',
        "color": '#eb443b'
      },
      on: {
        "on-complete": function($event) {
          _vm.placeApplication()
        }
      }
    }, [_c('tab-content', {
      attrs: {
        "title": "Package & Location Selection",
        "beforeChange": function () { return _vm.validateStep1(_vm.$v); }
      }
    }, [_c('div', {
      staticClass: "row"
    }, [_c('div', {
      staticClass: "col-xs-12 col-md-4 "
    }, [_c('div', {
      staticClass: "form-group label-floating padding-right-10",
      class: {
        error: _vm.$v.basicDetails.name.$invalid
      }
    }, [_c('label', {
      staticClass: " control-label",
      attrs: {
        "for": "name"
      }
    }, [_vm._v("Name \r\n                                "), (_vm.$v.basicDetails.name.$invalid) ? _c('span', {
      staticClass: "required-star"
    }, [_vm._v("*")]) : _vm._e()]), _vm._v(" "), _c('div', {}, [_c('input', {
      directives: [{
        name: "model",
        rawName: "v-model.trim",
        value: (_vm.basicDetails.name),
        expression: "basicDetails.name",
        modifiers: {
          "trim": true
        }
      }],
      staticClass: "form-control",
      attrs: {
        "id": "name",
        "type": "text",
        "name": "name"
      },
      domProps: {
        "value": (_vm.basicDetails.name)
      },
      on: {
        "input": [function($event) {
          if ($event.target.composing) { return; }
          _vm.$set(_vm.basicDetails, "name", $event.target.value.trim())
        }, function($event) {
          _vm.$v.basicDetails.name.$touch()
        }],
        "blur": function($event) {
          _vm.$forceUpdate()
        }
      }
    }), _vm._v(" "), (_vm.$v.basicDetails.name.$invalid && (_vm.$v.basicDetails.name.$dirty || _vm.showStep1Errors)) ? _c('span', {
      staticClass: "help-block"
    }, [_vm._v("\r\n                                    Name is required\r\n                                ")]) : _vm._e()])])]), _vm._v(" "), _c('div', {
      staticClass: "col-xs-12 col-md-4"
    }, [_c('div', {
      staticClass: "form-group label-floating padding-right-10",
      class: {
        error: _vm.$v.basicDetails.surname.$invalid
      }
    }, [_c('label', {
      staticClass: " control-label",
      attrs: {
        "for": "surname"
      }
    }, [_vm._v("Surname"), (_vm.$v.basicDetails.surname.$invalid) ? _c('span', {
      staticClass: "required-star"
    }, [_vm._v("*")]) : _vm._e()]), _vm._v(" "), _c('div', {}, [_c('input', {
      directives: [{
        name: "model",
        rawName: "v-model.trim",
        value: (_vm.basicDetails.surname),
        expression: "basicDetails.surname",
        modifiers: {
          "trim": true
        }
      }],
      staticClass: "form-control",
      attrs: {
        "id": "surname",
        "type": "text",
        "name": "surname"
      },
      domProps: {
        "value": (_vm.basicDetails.surname)
      },
      on: {
        "input": [function($event) {
          if ($event.target.composing) { return; }
          _vm.$set(_vm.basicDetails, "surname", $event.target.value.trim())
        }, function($event) {
          _vm.$v.basicDetails.surname.$touch()
        }],
        "blur": function($event) {
          _vm.$forceUpdate()
        }
      }
    }), _vm._v(" "), (_vm.$v.basicDetails.surname.$invalid && (_vm.$v.basicDetails.surname.$dirty || _vm.showStep1Errors)) ? _c('span', {
      staticClass: "help-block"
    }, [_vm._v("\r\n                                        Surname is required \r\n                                     ")]) : _vm._e()])])]), _vm._v(" "), _c('div', {
      staticClass: "col-xs-12 col-md-4"
    }, [_c('div', {
      staticClass: "form-group label-floating padding-right-10",
      class: {
        error: _vm.$v.basicDetails.phone.$invalid
      }
    }, [_c('label', {
      staticClass: " control-label",
      attrs: {
        "for": "phone-mobile"
      }
    }, [_vm._v("Phone"), _c('span', {
      staticClass: "required-star"
    }, [_vm._v("*")])]), _vm._v(" "), _c('div', {}, [_c('input', {
      directives: [{
        name: "model",
        rawName: "v-model.trim",
        value: (_vm.basicDetails.phone),
        expression: "basicDetails.phone",
        modifiers: {
          "trim": true
        }
      }],
      staticClass: "form-control",
      attrs: {
        "id": "phone-mobile",
        "type": "text",
        "name": "phone"
      },
      domProps: {
        "value": (_vm.basicDetails.phone)
      },
      on: {
        "input": [function($event) {
          if ($event.target.composing) { return; }
          _vm.$set(_vm.basicDetails, "phone", $event.target.value.trim())
        }, function($event) {
          _vm.$v.basicDetails.phone.$touch()
        }],
        "blur": function($event) {
          _vm.$forceUpdate()
        }
      }
    }), _vm._v(" "), (_vm.$v.basicDetails.phone.$invalid && (_vm.$v.basicDetails.phone.$dirty || _vm.showStep1Errors)) ? _c('span', {
      staticClass: "help-block"
    }, [_c('span', [_vm._v("Phone is required")])]) : _vm._e()])])])]), _vm._v(" "), _c('div', {
      staticClass: "row margin-top-20"
    }, [_c('div', {
      staticClass: "col-xs-12 col-md-8"
    }, [_c('div', {
      staticClass: "col-xs-6"
    }, [_c('div', {
      staticClass: "form-group label-floating margin-top-0 service-type",
      class: {
        error: _vm.$v.basicDetails.serviceType.$invalid
      }
    }, [_c('label', {
      staticClass: "label-text"
    }, [_vm._v("Service Type")]), _vm._v(" "), _c('div', {
      staticClass: "radio-container"
    }, [_c('div', {
      staticClass: "radio margin-0"
    }, [_c('label', [_c('input', {
      directives: [{
        name: "model",
        rawName: "v-model",
        value: (_vm.basicDetails.serviceType),
        expression: "basicDetails.serviceType"
      }],
      attrs: {
        "type": "radio",
        "name": "serviceType",
        "checked": ""
      },
      domProps: {
        "value": 'contract',
        "checked": _vm._q(_vm.basicDetails.serviceType, 'contract')
      },
      on: {
        "change": function($event) {
          _vm.$set(_vm.basicDetails, "serviceType", 'contract')
        }
      }
    }), _vm._v(" "), _c('span', {
      staticClass: "circle"
    }), _c('span', {
      staticClass: "check"
    }), _vm._v("\r\n                                        Contract\r\n                                ")])]), _vm._v(" "), _c('div', {
      staticClass: "radio margin-0"
    }, [_c('label', [_c('input', {
      directives: [{
        name: "model",
        rawName: "v-model",
        value: (_vm.basicDetails.serviceType),
        expression: "basicDetails.serviceType"
      }],
      attrs: {
        "type": "radio",
        "name": "serviceType"
      },
      domProps: {
        "value": 'prepaid',
        "checked": _vm._q(_vm.basicDetails.serviceType, 'prepaid')
      },
      on: {
        "change": function($event) {
          _vm.$set(_vm.basicDetails, "serviceType", 'prepaid')
        }
      }
    }), _vm._v(" "), _c('span', {
      staticClass: "circle"
    }), _c('span', {
      staticClass: "check"
    }), _vm._v("\r\n                                        Prepaid\r\n                                    ")])])]), _vm._v(" "), (_vm.$v.basicDetails.serviceType.$invalid && _vm.showStep1Errors) ? _c('div', {
      staticClass: "help-block"
    }, [_c('span', [_vm._v("Select Service Type ")])]) : _vm._e()])]), _vm._v(" "), _c('div', {
      staticClass: "col-xs-6"
    }, [_c('div', {
      staticClass: "form-group  label-floating padding-right-10",
      class: {
        error: _vm.$v.basicDetails.package.$invalid
      }
    }, [_c('label', {
      staticClass: "control-label",
      staticStyle: {
        "text-transform": "capitalize"
      },
      attrs: {
        "for": "package"
      }
    }, [_vm._v("Select " + _vm._s(_vm.basicDetails.serviceType) + " package"), _c('span', {
      staticClass: "required-star"
    }, [_vm._v("*")])]), _vm._v(" "), _c('div', {}, [_c('v-select', {
      attrs: {
        "label": "data_bundle",
        "options": _vm.packageOptions
      },
      scopedSlots: _vm._u([{
        key: "option",
        fn: function(option) {
          return [_c('span', [_vm._v(_vm._s(option.data_bundle))]), _vm._v(" "), _c('span', [_vm._v("|")]), _vm._v(" "), _c('span', [_vm._v(" M" + _vm._s(option.price))])]
        }
      }]),
      model: {
        value: (_vm.selectedPackageOption),
        callback: function($$v) {
          _vm.selectedPackageOption = $$v
        },
        expression: "selectedPackageOption"
      }
    }), _vm._v(" "), (_vm.$v.basicDetails.package.$invalid && _vm.showStep1Errors) ? _c('div', {
      staticClass: "help-block"
    }, [_c('span', [_vm._v("Select Package ")])]) : _vm._e()], 1)])])]), _vm._v(" "), _c('div', {
      staticClass: "col-xs-12 col-md-4"
    }, [_c('div', {
      staticClass: "form-group label-floating padding-right-10 ",
      class: {
        error: _vm.$v.basicDetails.location.$invalid
      }
    }, [_c('label', {
      staticClass: "control-label ",
      attrs: {
        "for": "location"
      }
    }, [_vm._v("Select Your Area"), _c('span', {
      staticClass: "required-star"
    }, [_vm._v("*")])]), _vm._v(" "), _c('div', {}, [_c('v-select', {
      attrs: {
        "label": "name",
        "options": _vm.locations
      },
      model: {
        value: (_vm.selectedLocation),
        callback: function($$v) {
          _vm.selectedLocation = $$v
        },
        expression: "selectedLocation"
      }
    }), _vm._v(" "), (_vm.$v.basicDetails.location.$invalid && (_vm.$v.basicDetails.location.$dirty || _vm.showStep1Errors)) ? _c('div', {
      staticClass: "help-block"
    }, [_c('span', [_vm._v("Select your Area")])]) : _vm._e()], 1)])])])]), _vm._v(" "), _c('tab-content', {
      attrs: {
        "title": "Account",
        "beforeChange": function () { return _vm.validateStep2(_vm.$v); }
      }
    }, [_c('div', {
      staticClass: "row"
    }, [_c('div', {
      staticClass: "col-xs-12 col-md-12 "
    }, [_c('div', {
      staticClass: "form-group label-floating padding-right-10",
      class: {
        error: _vm.$v.accountDetails.email.$invalid
      }
    }, [_c('label', {
      staticClass: " control-label",
      attrs: {
        "for": "email"
      }
    }, [_vm._v("Email \r\n                          "), (_vm.$v.accountDetails.email.$invalid) ? _c('span', {
      staticClass: "required-star"
    }, [_vm._v("*")]) : _vm._e()]), _vm._v(" "), _c('div', {}, [_c('input', {
      directives: [{
        name: "model",
        rawName: "v-model",
        value: (_vm.accountDetails.email),
        expression: "accountDetails.email"
      }],
      staticClass: "form-control",
      attrs: {
        "id": "email",
        "type": "text",
        "name": "email"
      },
      domProps: {
        "value": (_vm.accountDetails.email)
      },
      on: {
        "input": function($event) {
          if ($event.target.composing) { return; }
          _vm.$set(_vm.accountDetails, "email", $event.target.value)
        }
      }
    }), _vm._v(" "), (_vm.$v.accountDetails.email.$invalid && (_vm.$v.accountDetails.email.$dirty || _vm.showStep2Errors)) ? _c('span', {
      staticClass: "help-block"
    }, [_vm._v("\r\n                              Provide valid email address\r\n                          ")]) : _vm._e()])])])]), _vm._v(" "), _c('div', {
      staticClass: "row margin-top-20 margin-bottom-20"
    }, [_c('div', {
      staticClass: "col-xs-12 col-md-6 "
    }, [_c('div', {
      staticClass: "form-group label-floating padding-right-10",
      class: {
        error: _vm.$v.accountDetails.password.$invalid
      }
    }, [_c('label', {
      staticClass: " control-label",
      attrs: {
        "for": "password"
      }
    }, [_vm._v("Password \r\n                          "), (_vm.$v.accountDetails.password.$invalid) ? _c('span', {
      staticClass: "required-star"
    }, [_vm._v("*")]) : _vm._e()]), _vm._v(" "), _c('div', {}, [_c('input', {
      directives: [{
        name: "model",
        rawName: "v-model",
        value: (_vm.accountDetails.password),
        expression: "accountDetails.password"
      }],
      staticClass: "form-control",
      attrs: {
        "id": "password",
        "type": "password",
        "name": "password"
      },
      domProps: {
        "value": (_vm.accountDetails.password)
      },
      on: {
        "input": function($event) {
          if ($event.target.composing) { return; }
          _vm.$set(_vm.accountDetails, "password", $event.target.value)
        }
      }
    }), _vm._v(" "), (!_vm.$v.accountDetails.password.required && (_vm.$v.accountDetails.password.$dirty || _vm.showStep2Errors)) ? _c('span', {
      staticClass: "help-block"
    }, [_vm._v("\r\n                              Password is required\r\n                          ")]) : _vm._e(), _vm._v(" "), (!_vm.$v.accountDetails.password.minLength) ? _c('span', {
      staticClass: "help-block"
    }, [_vm._v("\r\n                              Password must have at least 6 charecters.\r\n                          ")]) : _vm._e()])])]), _vm._v(" "), _c('div', {
      staticClass: "col-xs-12 col-md-6 "
    }, [_c('div', {
      staticClass: "form-group label-floating padding-right-10 error"
    }, [_c('label', {
      staticClass: " control-label",
      attrs: {
        "for": "repeatPassword"
      }
    }, [_vm._v("Confirm Password\r\n                          "), (_vm.$v.accountDetails.repeatPassword.$invalid) ? _c('span', {
      staticClass: "required-star"
    }, [_vm._v("*")]) : _vm._e()]), _vm._v(" "), _c('div', {}, [_c('input', {
      directives: [{
        name: "model",
        rawName: "v-model",
        value: (_vm.accountDetails.repeatPassword),
        expression: "accountDetails.repeatPassword"
      }],
      staticClass: "form-control",
      attrs: {
        "id": "repeatPassword",
        "type": "password",
        "name": "repeatPassword"
      },
      domProps: {
        "value": (_vm.accountDetails.repeatPassword)
      },
      on: {
        "input": function($event) {
          if ($event.target.composing) { return; }
          _vm.$set(_vm.accountDetails, "repeatPassword", $event.target.value)
        }
      }
    }), _vm._v(" "), ((!_vm.$v.accountDetails.password.$invalid && _vm.$v.accountDetails.password.$minLength) || _vm.passwordNotConfirmed) ? _c('span', {
      staticClass: "help-block"
    }, [_vm._v("\r\n                              Not Matching\r\n                          ")]) : _vm._e()])])])])])], 1)
  },staticRenderFns: []}
  module.exports.render._withStripped = true
  if (false) {
    module.hot.accept()
    if (module.hot.data) {
       require("vue-hot-reload-api").rerender("data-v-2bd5e1aa", module.exports)
    }
  }
  
  /***/ }),
  
  /***/ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-2bd5e1aa\",\"scoped\":true,\"hasInlineConfig\":true}!./node_modules/sass-loader/lib/loader.js!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./resources/assets/js/components/Application.vue":
  /***/ (function(module, exports, __webpack_require__) {
  
  // style-loader: Adds some css to the DOM by adding a <style> tag
  
  // load the styles
  var content = __webpack_require__("./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-2bd5e1aa\",\"scoped\":true,\"hasInlineConfig\":true}!./node_modules/sass-loader/lib/loader.js!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./resources/assets/js/components/Application.vue");
  if(typeof content === 'string') content = [[module.i, content, '']];
  if(content.locals) module.exports = content.locals;
  // add the styles to the DOM
  var update = __webpack_require__("./node_modules/vue-style-loader/lib/addStylesClient.js")("85e885aa", content, false);
  // Hot Module Replacement
  if(false) {
   // When the styles change, update the <style> tags
   if(!content.locals) {
     module.hot.accept("!!../../../../node_modules/css-loader/index.js!../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-2bd5e1aa\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../node_modules/sass-loader/lib/loader.js!../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./Application.vue", function() {
       var newContent = require("!!../../../../node_modules/css-loader/index.js!../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-2bd5e1aa\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../node_modules/sass-loader/lib/loader.js!../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./Application.vue");
       if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
       update(newContent);
     });
   }
   // When the module is disposed, remove the <style> tags
   module.hot.dispose(function() { update(); });
  }
  
  /***/ }),
  
  /***/ "./node_modules/vue-style-loader/lib/addStylesClient.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  /*
    MIT License http://www.opensource.org/licenses/mit-license.php
    Author Tobias Koppers @sokra
    Modified by Evan You @yyx990803
  */
  
  var hasDocument = typeof document !== 'undefined'
  
  if (typeof DEBUG !== 'undefined' && DEBUG) {
    if (!hasDocument) {
      throw new Error(
      'vue-style-loader cannot be used in a non-browser environment. ' +
      "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
    ) }
  }
  
  var listToStyles = __webpack_require__("./node_modules/vue-style-loader/lib/listToStyles.js")
  
  /*
  type StyleObject = {
    id: number;
    parts: Array<StyleObjectPart>
  }
  
  type StyleObjectPart = {
    css: string;
    media: string;
    sourceMap: ?string
  }
  */
  
  var stylesInDom = {/*
    [id: number]: {
      id: number,
      refs: number,
      parts: Array<(obj?: StyleObjectPart) => void>
    }
  */}
  
  var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
  var singletonElement = null
  var singletonCounter = 0
  var isProduction = false
  var noop = function () {}
  
  // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  // tags it will allow on a page
  var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
  
  module.exports = function (parentId, list, _isProduction) {
    isProduction = _isProduction
  
    var styles = listToStyles(parentId, list)
    addStylesToDom(styles)
  
    return function update (newList) {
      var mayRemove = []
      for (var i = 0; i < styles.length; i++) {
        var item = styles[i]
        var domStyle = stylesInDom[item.id]
        domStyle.refs--
        mayRemove.push(domStyle)
      }
      if (newList) {
        styles = listToStyles(parentId, newList)
        addStylesToDom(styles)
      } else {
        styles = []
      }
      for (var i = 0; i < mayRemove.length; i++) {
        var domStyle = mayRemove[i]
        if (domStyle.refs === 0) {
          for (var j = 0; j < domStyle.parts.length; j++) {
            domStyle.parts[j]()
          }
          delete stylesInDom[domStyle.id]
        }
      }
    }
  }
  
  function addStylesToDom (styles /* Array<StyleObject> */) {
    for (var i = 0; i < styles.length; i++) {
      var item = styles[i]
      var domStyle = stylesInDom[item.id]
      if (domStyle) {
        domStyle.refs++
        for (var j = 0; j < domStyle.parts.length; j++) {
          domStyle.parts[j](item.parts[j])
        }
        for (; j < item.parts.length; j++) {
          domStyle.parts.push(addStyle(item.parts[j]))
        }
        if (domStyle.parts.length > item.parts.length) {
          domStyle.parts.length = item.parts.length
        }
      } else {
        var parts = []
        for (var j = 0; j < item.parts.length; j++) {
          parts.push(addStyle(item.parts[j]))
        }
        stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
      }
    }
  }
  
  function createStyleElement () {
    var styleElement = document.createElement('style')
    styleElement.type = 'text/css'
    head.appendChild(styleElement)
    return styleElement
  }
  
  function addStyle (obj /* StyleObjectPart */) {
    var update, remove
    var styleElement = document.querySelector('style[data-vue-ssr-id~="' + obj.id + '"]')
  
    if (styleElement) {
      if (isProduction) {
        // has SSR styles and in production mode.
        // simply do nothing.
        return noop
      } else {
        // has SSR styles but in dev mode.
        // for some reason Chrome can't handle source map in server-rendered
        // style tags - source maps in <style> only works if the style tag is
        // created and inserted dynamically. So we remove the server rendered
        // styles and inject new ones.
        styleElement.parentNode.removeChild(styleElement)
      }
    }
  
    if (isOldIE) {
      // use singleton mode for IE9.
      var styleIndex = singletonCounter++
      styleElement = singletonElement || (singletonElement = createStyleElement())
      update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
      remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
    } else {
      // use multi-style-tag mode in all other cases
      styleElement = createStyleElement()
      update = applyToTag.bind(null, styleElement)
      remove = function () {
        styleElement.parentNode.removeChild(styleElement)
      }
    }
  
    update(obj)
  
    return function updateStyle (newObj /* StyleObjectPart */) {
      if (newObj) {
        if (newObj.css === obj.css &&
            newObj.media === obj.media &&
            newObj.sourceMap === obj.sourceMap) {
          return
        }
        update(obj = newObj)
      } else {
        remove()
      }
    }
  }
  
  var replaceText = (function () {
    var textStore = []
  
    return function (index, replacement) {
      textStore[index] = replacement
      return textStore.filter(Boolean).join('\n')
    }
  })()
  
  function applyToSingletonTag (styleElement, index, remove, obj) {
    var css = remove ? '' : obj.css
  
    if (styleElement.styleSheet) {
      styleElement.styleSheet.cssText = replaceText(index, css)
    } else {
      var cssNode = document.createTextNode(css)
      var childNodes = styleElement.childNodes
      if (childNodes[index]) styleElement.removeChild(childNodes[index])
      if (childNodes.length) {
        styleElement.insertBefore(cssNode, childNodes[index])
      } else {
        styleElement.appendChild(cssNode)
      }
    }
  }
  
  function applyToTag (styleElement, obj) {
    var css = obj.css
    var media = obj.media
    var sourceMap = obj.sourceMap
  
    if (media) {
      styleElement.setAttribute('media', media)
    }
  
    if (sourceMap) {
      // https://developer.chrome.com/devtools/docs/javascript-debugging
      // this makes source maps inside style tags work properly in Chrome
      css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
      // http://stackoverflow.com/a/26603875
      css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
    }
  
    if (styleElement.styleSheet) {
      styleElement.styleSheet.cssText = css
    } else {
      while (styleElement.firstChild) {
        styleElement.removeChild(styleElement.firstChild)
      }
      styleElement.appendChild(document.createTextNode(css))
    }
  }
  
  
  /***/ }),
  
  /***/ "./node_modules/vue-style-loader/lib/listToStyles.js":
  /***/ (function(module, exports) {
  
  /**
   * Translates the list format produced by css-loader into something
   * easier to manipulate.
   */
  module.exports = function listToStyles (parentId, list) {
    var styles = []
    var newStyles = {}
    for (var i = 0; i < list.length; i++) {
      var item = list[i]
      var id = item[0]
      var css = item[1]
      var media = item[2]
      var sourceMap = item[3]
      var part = {
        id: parentId + ':' + i,
        css: css,
        media: media,
        sourceMap: sourceMap
      }
      if (!newStyles[id]) {
        styles.push(newStyles[id] = { id: id, parts: [part] })
      } else {
        newStyles[id].parts.push(part)
      }
    }
    return styles
  }
  
  
  /***/ }),
  
  /***/ "./node_modules/vue/dist/vue.common.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  /* WEBPACK VAR INJECTION */(function(global, setImmediate) {/*!
   * Vue.js v2.5.13
   * (c) 2014-2017 Evan You
   * Released under the MIT License.
   */
  
  
  /*  */
  
  var emptyObject = Object.freeze({});
  
  // these helpers produces better vm code in JS engines due to their
  // explicitness and function inlining
  function isUndef (v) {
    return v === undefined || v === null
  }
  
  function isDef (v) {
    return v !== undefined && v !== null
  }
  
  function isTrue (v) {
    return v === true
  }
  
  function isFalse (v) {
    return v === false
  }
  
  /**
   * Check if value is primitive
   */
  function isPrimitive (value) {
    return (
      typeof value === 'string' ||
      typeof value === 'number' ||
      // $flow-disable-line
      typeof value === 'symbol' ||
      typeof value === 'boolean'
    )
  }
  
  /**
   * Quick object check - this is primarily used to tell
   * Objects from primitive values when we know the value
   * is a JSON-compliant type.
   */
  function isObject (obj) {
    return obj !== null && typeof obj === 'object'
  }
  
  /**
   * Get the raw type string of a value e.g. [object Object]
   */
  var _toString = Object.prototype.toString;
  
  function toRawType (value) {
    return _toString.call(value).slice(8, -1)
  }
  
  /**
   * Strict object type check. Only returns true
   * for plain JavaScript objects.
   */
  function isPlainObject (obj) {
    return _toString.call(obj) === '[object Object]'
  }
  
  function isRegExp (v) {
    return _toString.call(v) === '[object RegExp]'
  }
  
  /**
   * Check if val is a valid array index.
   */
  function isValidArrayIndex (val) {
    var n = parseFloat(String(val));
    return n >= 0 && Math.floor(n) === n && isFinite(val)
  }
  
  /**
   * Convert a value to a string that is actually rendered.
   */
  function toString (val) {
    return val == null
      ? ''
      : typeof val === 'object'
        ? JSON.stringify(val, null, 2)
        : String(val)
  }
  
  /**
   * Convert a input value to a number for persistence.
   * If the conversion fails, return original string.
   */
  function toNumber (val) {
    var n = parseFloat(val);
    return isNaN(n) ? val : n
  }
  
  /**
   * Make a map and return a function for checking if a key
   * is in that map.
   */
  function makeMap (
    str,
    expectsLowerCase
  ) {
    var map = Object.create(null);
    var list = str.split(',');
    for (var i = 0; i < list.length; i++) {
      map[list[i]] = true;
    }
    return expectsLowerCase
      ? function (val) { return map[val.toLowerCase()]; }
      : function (val) { return map[val]; }
  }
  
  /**
   * Check if a tag is a built-in tag.
   */
  var isBuiltInTag = makeMap('slot,component', true);
  
  /**
   * Check if a attribute is a reserved attribute.
   */
  var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
  
  /**
   * Remove an item from an array
   */
  function remove (arr, item) {
    if (arr.length) {
      var index = arr.indexOf(item);
      if (index > -1) {
        return arr.splice(index, 1)
      }
    }
  }
  
  /**
   * Check whether the object has the property.
   */
  var hasOwnProperty = Object.prototype.hasOwnProperty;
  function hasOwn (obj, key) {
    return hasOwnProperty.call(obj, key)
  }
  
  /**
   * Create a cached version of a pure function.
   */
  function cached (fn) {
    var cache = Object.create(null);
    return (function cachedFn (str) {
      var hit = cache[str];
      return hit || (cache[str] = fn(str))
    })
  }
  
  /**
   * Camelize a hyphen-delimited string.
   */
  var camelizeRE = /-(\w)/g;
  var camelize = cached(function (str) {
    return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
  });
  
  /**
   * Capitalize a string.
   */
  var capitalize = cached(function (str) {
    return str.charAt(0).toUpperCase() + str.slice(1)
  });
  
  /**
   * Hyphenate a camelCase string.
   */
  var hyphenateRE = /\B([A-Z])/g;
  var hyphenate = cached(function (str) {
    return str.replace(hyphenateRE, '-$1').toLowerCase()
  });
  
  /**
   * Simple bind, faster than native
   */
  function bind (fn, ctx) {
    function boundFn (a) {
      var l = arguments.length;
      return l
        ? l > 1
          ? fn.apply(ctx, arguments)
          : fn.call(ctx, a)
        : fn.call(ctx)
    }
    // record original fn length
    boundFn._length = fn.length;
    return boundFn
  }
  
  /**
   * Convert an Array-like object to a real Array.
   */
  function toArray (list, start) {
    start = start || 0;
    var i = list.length - start;
    var ret = new Array(i);
    while (i--) {
      ret[i] = list[i + start];
    }
    return ret
  }
  
  /**
   * Mix properties into target object.
   */
  function extend (to, _from) {
    for (var key in _from) {
      to[key] = _from[key];
    }
    return to
  }
  
  /**
   * Merge an Array of Objects into a single Object.
   */
  function toObject (arr) {
    var res = {};
    for (var i = 0; i < arr.length; i++) {
      if (arr[i]) {
        extend(res, arr[i]);
      }
    }
    return res
  }
  
  /**
   * Perform no operation.
   * Stubbing args to make Flow happy without leaving useless transpiled code
   * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/)
   */
  function noop (a, b, c) {}
  
  /**
   * Always return false.
   */
  var no = function (a, b, c) { return false; };
  
  /**
   * Return same value
   */
  var identity = function (_) { return _; };
  
  /**
   * Generate a static keys string from compiler modules.
   */
  function genStaticKeys (modules) {
    return modules.reduce(function (keys, m) {
      return keys.concat(m.staticKeys || [])
    }, []).join(',')
  }
  
  /**
   * Check if two values are loosely equal - that is,
   * if they are plain objects, do they have the same shape?
   */
  function looseEqual (a, b) {
    if (a === b) { return true }
    var isObjectA = isObject(a);
    var isObjectB = isObject(b);
    if (isObjectA && isObjectB) {
      try {
        var isArrayA = Array.isArray(a);
        var isArrayB = Array.isArray(b);
        if (isArrayA && isArrayB) {
          return a.length === b.length && a.every(function (e, i) {
            return looseEqual(e, b[i])
          })
        } else if (!isArrayA && !isArrayB) {
          var keysA = Object.keys(a);
          var keysB = Object.keys(b);
          return keysA.length === keysB.length && keysA.every(function (key) {
            return looseEqual(a[key], b[key])
          })
        } else {
          /* istanbul ignore next */
          return false
        }
      } catch (e) {
        /* istanbul ignore next */
        return false
      }
    } else if (!isObjectA && !isObjectB) {
      return String(a) === String(b)
    } else {
      return false
    }
  }
  
  function looseIndexOf (arr, val) {
    for (var i = 0; i < arr.length; i++) {
      if (looseEqual(arr[i], val)) { return i }
    }
    return -1
  }
  
  /**
   * Ensure a function is called only once.
   */
  function once (fn) {
    var called = false;
    return function () {
      if (!called) {
        called = true;
        fn.apply(this, arguments);
      }
    }
  }
  
  var SSR_ATTR = 'data-server-rendered';
  
  var ASSET_TYPES = [
    'component',
    'directive',
    'filter'
  ];
  
  var LIFECYCLE_HOOKS = [
    'beforeCreate',
    'created',
    'beforeMount',
    'mounted',
    'beforeUpdate',
    'updated',
    'beforeDestroy',
    'destroyed',
    'activated',
    'deactivated',
    'errorCaptured'
  ];
  
  /*  */
  
  var config = ({
    /**
     * Option merge strategies (used in core/util/options)
     */
    // $flow-disable-line
    optionMergeStrategies: Object.create(null),
  
    /**
     * Whether to suppress warnings.
     */
    silent: false,
  
    /**
     * Show production mode tip message on boot?
     */
    productionTip: "development" !== 'production',
  
    /**
     * Whether to enable devtools
     */
    devtools: "development" !== 'production',
  
    /**
     * Whether to record perf
     */
    performance: false,
  
    /**
     * Error handler for watcher errors
     */
    errorHandler: null,
  
    /**
     * Warn handler for watcher warns
     */
    warnHandler: null,
  
    /**
     * Ignore certain custom elements
     */
    ignoredElements: [],
  
    /**
     * Custom user key aliases for v-on
     */
    // $flow-disable-line
    keyCodes: Object.create(null),
  
    /**
     * Check if a tag is reserved so that it cannot be registered as a
     * component. This is platform-dependent and may be overwritten.
     */
    isReservedTag: no,
  
    /**
     * Check if an attribute is reserved so that it cannot be used as a component
     * prop. This is platform-dependent and may be overwritten.
     */
    isReservedAttr: no,
  
    /**
     * Check if a tag is an unknown element.
     * Platform-dependent.
     */
    isUnknownElement: no,
  
    /**
     * Get the namespace of an element
     */
    getTagNamespace: noop,
  
    /**
     * Parse the real tag name for the specific platform.
     */
    parsePlatformTagName: identity,
  
    /**
     * Check if an attribute must be bound using property, e.g. value
     * Platform-dependent.
     */
    mustUseProp: no,
  
    /**
     * Exposed for legacy reasons
     */
    _lifecycleHooks: LIFECYCLE_HOOKS
  });
  
  /*  */
  
  /**
   * Check if a string starts with $ or _
   */
  function isReserved (str) {
    var c = (str + '').charCodeAt(0);
    return c === 0x24 || c === 0x5F
  }
  
  /**
   * Define a property.
   */
  function def (obj, key, val, enumerable) {
    Object.defineProperty(obj, key, {
      value: val,
      enumerable: !!enumerable,
      writable: true,
      configurable: true
    });
  }
  
  /**
   * Parse simple path.
   */
  var bailRE = /[^\w.$]/;
  function parsePath (path) {
    if (bailRE.test(path)) {
      return
    }
    var segments = path.split('.');
    return function (obj) {
      for (var i = 0; i < segments.length; i++) {
        if (!obj) { return }
        obj = obj[segments[i]];
      }
      return obj
    }
  }
  
  /*  */
  
  
  // can we use __proto__?
  var hasProto = '__proto__' in {};
  
  // Browser environment sniffing
  var inBrowser = typeof window !== 'undefined';
  var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
  var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
  var UA = inBrowser && window.navigator.userAgent.toLowerCase();
  var isIE = UA && /msie|trident/.test(UA);
  var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
  var isEdge = UA && UA.indexOf('edge/') > 0;
  var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
  var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
  var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
  
  // Firefox has a "watch" function on Object.prototype...
  var nativeWatch = ({}).watch;
  
  var supportsPassive = false;
  if (inBrowser) {
    try {
      var opts = {};
      Object.defineProperty(opts, 'passive', ({
        get: function get () {
          /* istanbul ignore next */
          supportsPassive = true;
        }
      })); // https://github.com/facebook/flow/issues/285
      window.addEventListener('test-passive', null, opts);
    } catch (e) {}
  }
  
  // this needs to be lazy-evaled because vue may be required before
  // vue-server-renderer can set VUE_ENV
  var _isServer;
  var isServerRendering = function () {
    if (_isServer === undefined) {
      /* istanbul ignore if */
      if (!inBrowser && typeof global !== 'undefined') {
        // detect presence of vue-server-renderer and avoid
        // Webpack shimming the process
        _isServer = global['process'].env.VUE_ENV === 'server';
      } else {
        _isServer = false;
      }
    }
    return _isServer
  };
  
  // detect devtools
  var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
  
  /* istanbul ignore next */
  function isNative (Ctor) {
    return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
  }
  
  var hasSymbol =
    typeof Symbol !== 'undefined' && isNative(Symbol) &&
    typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
  
  var _Set;
  /* istanbul ignore if */ // $flow-disable-line
  if (typeof Set !== 'undefined' && isNative(Set)) {
    // use native Set when available.
    _Set = Set;
  } else {
    // a non-standard Set polyfill that only works with primitive keys.
    _Set = (function () {
      function Set () {
        this.set = Object.create(null);
      }
      Set.prototype.has = function has (key) {
        return this.set[key] === true
      };
      Set.prototype.add = function add (key) {
        this.set[key] = true;
      };
      Set.prototype.clear = function clear () {
        this.set = Object.create(null);
      };
  
      return Set;
    }());
  }
  
  /*  */
  
  var warn = noop;
  var tip = noop;
  var generateComponentTrace = (noop); // work around flow check
  var formatComponentName = (noop);
  
  if (true) {
    var hasConsole = typeof console !== 'undefined';
    var classifyRE = /(?:^|[-_])(\w)/g;
    var classify = function (str) { return str
      .replace(classifyRE, function (c) { return c.toUpperCase(); })
      .replace(/[-_]/g, ''); };
  
    warn = function (msg, vm) {
      var trace = vm ? generateComponentTrace(vm) : '';
  
      if (config.warnHandler) {
        config.warnHandler.call(null, msg, vm, trace);
      } else if (hasConsole && (!config.silent)) {
        console.error(("[Vue warn]: " + msg + trace));
      }
    };
  
    tip = function (msg, vm) {
      if (hasConsole && (!config.silent)) {
        console.warn("[Vue tip]: " + msg + (
          vm ? generateComponentTrace(vm) : ''
        ));
      }
    };
  
    formatComponentName = function (vm, includeFile) {
      if (vm.$root === vm) {
        return '<Root>'
      }
      var options = typeof vm === 'function' && vm.cid != null
        ? vm.options
        : vm._isVue
          ? vm.$options || vm.constructor.options
          : vm || {};
      var name = options.name || options._componentTag;
      var file = options.__file;
      if (!name && file) {
        var match = file.match(/([^/\\]+)\.vue$/);
        name = match && match[1];
      }
  
      return (
        (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
        (file && includeFile !== false ? (" at " + file) : '')
      )
    };
  
    var repeat = function (str, n) {
      var res = '';
      while (n) {
        if (n % 2 === 1) { res += str; }
        if (n > 1) { str += str; }
        n >>= 1;
      }
      return res
    };
  
    generateComponentTrace = function (vm) {
      if (vm._isVue && vm.$parent) {
        var tree = [];
        var currentRecursiveSequence = 0;
        while (vm) {
          if (tree.length > 0) {
            var last = tree[tree.length - 1];
            if (last.constructor === vm.constructor) {
              currentRecursiveSequence++;
              vm = vm.$parent;
              continue
            } else if (currentRecursiveSequence > 0) {
              tree[tree.length - 1] = [last, currentRecursiveSequence];
              currentRecursiveSequence = 0;
            }
          }
          tree.push(vm);
          vm = vm.$parent;
        }
        return '\n\nfound in\n\n' + tree
          .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
              ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
              : formatComponentName(vm))); })
          .join('\n')
      } else {
        return ("\n\n(found in " + (formatComponentName(vm)) + ")")
      }
    };
  }
  
  /*  */
  
  
  var uid = 0;
  
  /**
   * A dep is an observable that can have multiple
   * directives subscribing to it.
   */
  var Dep = function Dep () {
    this.id = uid++;
    this.subs = [];
  };
  
  Dep.prototype.addSub = function addSub (sub) {
    this.subs.push(sub);
  };
  
  Dep.prototype.removeSub = function removeSub (sub) {
    remove(this.subs, sub);
  };
  
  Dep.prototype.depend = function depend () {
    if (Dep.target) {
      Dep.target.addDep(this);
    }
  };
  
  Dep.prototype.notify = function notify () {
    // stabilize the subscriber list first
    var subs = this.subs.slice();
    for (var i = 0, l = subs.length; i < l; i++) {
      subs[i].update();
    }
  };
  
  // the current target watcher being evaluated.
  // this is globally unique because there could be only one
  // watcher being evaluated at any time.
  Dep.target = null;
  var targetStack = [];
  
  function pushTarget (_target) {
    if (Dep.target) { targetStack.push(Dep.target); }
    Dep.target = _target;
  }
  
  function popTarget () {
    Dep.target = targetStack.pop();
  }
  
  /*  */
  
  var VNode = function VNode (
    tag,
    data,
    children,
    text,
    elm,
    context,
    componentOptions,
    asyncFactory
  ) {
    this.tag = tag;
    this.data = data;
    this.children = children;
    this.text = text;
    this.elm = elm;
    this.ns = undefined;
    this.context = context;
    this.fnContext = undefined;
    this.fnOptions = undefined;
    this.fnScopeId = undefined;
    this.key = data && data.key;
    this.componentOptions = componentOptions;
    this.componentInstance = undefined;
    this.parent = undefined;
    this.raw = false;
    this.isStatic = false;
    this.isRootInsert = true;
    this.isComment = false;
    this.isCloned = false;
    this.isOnce = false;
    this.asyncFactory = asyncFactory;
    this.asyncMeta = undefined;
    this.isAsyncPlaceholder = false;
  };
  
  var prototypeAccessors = { child: { configurable: true } };
  
  // DEPRECATED: alias for componentInstance for backwards compat.
  /* istanbul ignore next */
  prototypeAccessors.child.get = function () {
    return this.componentInstance
  };
  
  Object.defineProperties( VNode.prototype, prototypeAccessors );
  
  var createEmptyVNode = function (text) {
    if ( text === void 0 ) text = '';
  
    var node = new VNode();
    node.text = text;
    node.isComment = true;
    return node
  };
  
  function createTextVNode (val) {
    return new VNode(undefined, undefined, undefined, String(val))
  }
  
  // optimized shallow clone
  // used for static nodes and slot nodes because they may be reused across
  // multiple renders, cloning them avoids errors when DOM manipulations rely
  // on their elm reference.
  function cloneVNode (vnode, deep) {
    var componentOptions = vnode.componentOptions;
    var cloned = new VNode(
      vnode.tag,
      vnode.data,
      vnode.children,
      vnode.text,
      vnode.elm,
      vnode.context,
      componentOptions,
      vnode.asyncFactory
    );
    cloned.ns = vnode.ns;
    cloned.isStatic = vnode.isStatic;
    cloned.key = vnode.key;
    cloned.isComment = vnode.isComment;
    cloned.fnContext = vnode.fnContext;
    cloned.fnOptions = vnode.fnOptions;
    cloned.fnScopeId = vnode.fnScopeId;
    cloned.isCloned = true;
    if (deep) {
      if (vnode.children) {
        cloned.children = cloneVNodes(vnode.children, true);
      }
      if (componentOptions && componentOptions.children) {
        componentOptions.children = cloneVNodes(componentOptions.children, true);
      }
    }
    return cloned
  }
  
  function cloneVNodes (vnodes, deep) {
    var len = vnodes.length;
    var res = new Array(len);
    for (var i = 0; i < len; i++) {
      res[i] = cloneVNode(vnodes[i], deep);
    }
    return res
  }
  
  /*
   * not type checking this file because flow doesn't play well with
   * dynamically accessing methods on Array prototype
   */
  
  var arrayProto = Array.prototype;
  var arrayMethods = Object.create(arrayProto);[
    'push',
    'pop',
    'shift',
    'unshift',
    'splice',
    'sort',
    'reverse'
  ].forEach(function (method) {
    // cache original method
    var original = arrayProto[method];
    def(arrayMethods, method, function mutator () {
      var args = [], len = arguments.length;
      while ( len-- ) args[ len ] = arguments[ len ];
  
      var result = original.apply(this, args);
      var ob = this.__ob__;
      var inserted;
      switch (method) {
        case 'push':
        case 'unshift':
          inserted = args;
          break
        case 'splice':
          inserted = args.slice(2);
          break
      }
      if (inserted) { ob.observeArray(inserted); }
      // notify change
      ob.dep.notify();
      return result
    });
  });
  
  /*  */
  
  var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
  
  /**
   * By default, when a reactive property is set, the new value is
   * also converted to become reactive. However when passing down props,
   * we don't want to force conversion because the value may be a nested value
   * under a frozen data structure. Converting it would defeat the optimization.
   */
  var observerState = {
    shouldConvert: true
  };
  
  /**
   * Observer class that are attached to each observed
   * object. Once attached, the observer converts target
   * object's property keys into getter/setters that
   * collect dependencies and dispatches updates.
   */
  var Observer = function Observer (value) {
    this.value = value;
    this.dep = new Dep();
    this.vmCount = 0;
    def(value, '__ob__', this);
    if (Array.isArray(value)) {
      var augment = hasProto
        ? protoAugment
        : copyAugment;
      augment(value, arrayMethods, arrayKeys);
      this.observeArray(value);
    } else {
      this.walk(value);
    }
  };
  
  /**
   * Walk through each property and convert them into
   * getter/setters. This method should only be called when
   * value type is Object.
   */
  Observer.prototype.walk = function walk (obj) {
    var keys = Object.keys(obj);
    for (var i = 0; i < keys.length; i++) {
      defineReactive(obj, keys[i], obj[keys[i]]);
    }
  };
  
  /**
   * Observe a list of Array items.
   */
  Observer.prototype.observeArray = function observeArray (items) {
    for (var i = 0, l = items.length; i < l; i++) {
      observe(items[i]);
    }
  };
  
  // helpers
  
  /**
   * Augment an target Object or Array by intercepting
   * the prototype chain using __proto__
   */
  function protoAugment (target, src, keys) {
    /* eslint-disable no-proto */
    target.__proto__ = src;
    /* eslint-enable no-proto */
  }
  
  /**
   * Augment an target Object or Array by defining
   * hidden properties.
   */
  /* istanbul ignore next */
  function copyAugment (target, src, keys) {
    for (var i = 0, l = keys.length; i < l; i++) {
      var key = keys[i];
      def(target, key, src[key]);
    }
  }
  
  /**
   * Attempt to create an observer instance for a value,
   * returns the new observer if successfully observed,
   * or the existing observer if the value already has one.
   */
  function observe (value, asRootData) {
    if (!isObject(value) || value instanceof VNode) {
      return
    }
    var ob;
    if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
      ob = value.__ob__;
    } else if (
      observerState.shouldConvert &&
      !isServerRendering() &&
      (Array.isArray(value) || isPlainObject(value)) &&
      Object.isExtensible(value) &&
      !value._isVue
    ) {
      ob = new Observer(value);
    }
    if (asRootData && ob) {
      ob.vmCount++;
    }
    return ob
  }
  
  /**
   * Define a reactive property on an Object.
   */
  function defineReactive (
    obj,
    key,
    val,
    customSetter,
    shallow
  ) {
    var dep = new Dep();
  
    var property = Object.getOwnPropertyDescriptor(obj, key);
    if (property && property.configurable === false) {
      return
    }
  
    // cater for pre-defined getter/setters
    var getter = property && property.get;
    var setter = property && property.set;
  
    var childOb = !shallow && observe(val);
    Object.defineProperty(obj, key, {
      enumerable: true,
      configurable: true,
      get: function reactiveGetter () {
        var value = getter ? getter.call(obj) : val;
        if (Dep.target) {
          dep.depend();
          if (childOb) {
            childOb.dep.depend();
            if (Array.isArray(value)) {
              dependArray(value);
            }
          }
        }
        return value
      },
      set: function reactiveSetter (newVal) {
        var value = getter ? getter.call(obj) : val;
        /* eslint-disable no-self-compare */
        if (newVal === value || (newVal !== newVal && value !== value)) {
          return
        }
        /* eslint-enable no-self-compare */
        if ("development" !== 'production' && customSetter) {
          customSetter();
        }
        if (setter) {
          setter.call(obj, newVal);
        } else {
          val = newVal;
        }
        childOb = !shallow && observe(newVal);
        dep.notify();
      }
    });
  }
  
  /**
   * Set a property on an object. Adds the new property and
   * triggers change notification if the property doesn't
   * already exist.
   */
  function set (target, key, val) {
    if (Array.isArray(target) && isValidArrayIndex(key)) {
      target.length = Math.max(target.length, key);
      target.splice(key, 1, val);
      return val
    }
    if (key in target && !(key in Object.prototype)) {
      target[key] = val;
      return val
    }
    var ob = (target).__ob__;
    if (target._isVue || (ob && ob.vmCount)) {
      "development" !== 'production' && warn(
        'Avoid adding reactive properties to a Vue instance or its root $data ' +
        'at runtime - declare it upfront in the data option.'
      );
      return val
    }
    if (!ob) {
      target[key] = val;
      return val
    }
    defineReactive(ob.value, key, val);
    ob.dep.notify();
    return val
  }
  
  /**
   * Delete a property and trigger change if necessary.
   */
  function del (target, key) {
    if (Array.isArray(target) && isValidArrayIndex(key)) {
      target.splice(key, 1);
      return
    }
    var ob = (target).__ob__;
    if (target._isVue || (ob && ob.vmCount)) {
      "development" !== 'production' && warn(
        'Avoid deleting properties on a Vue instance or its root $data ' +
        '- just set it to null.'
      );
      return
    }
    if (!hasOwn(target, key)) {
      return
    }
    delete target[key];
    if (!ob) {
      return
    }
    ob.dep.notify();
  }
  
  /**
   * Collect dependencies on array elements when the array is touched, since
   * we cannot intercept array element access like property getters.
   */
  function dependArray (value) {
    for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
      e = value[i];
      e && e.__ob__ && e.__ob__.dep.depend();
      if (Array.isArray(e)) {
        dependArray(e);
      }
    }
  }
  
  /*  */
  
  /**
   * Option overwriting strategies are functions that handle
   * how to merge a parent option value and a child option
   * value into the final value.
   */
  var strats = config.optionMergeStrategies;
  
  /**
   * Options with restrictions
   */
  if (true) {
    strats.el = strats.propsData = function (parent, child, vm, key) {
      if (!vm) {
        warn(
          "option \"" + key + "\" can only be used during instance " +
          'creation with the `new` keyword.'
        );
      }
      return defaultStrat(parent, child)
    };
  }
  
  /**
   * Helper that recursively merges two data objects together.
   */
  function mergeData (to, from) {
    if (!from) { return to }
    var key, toVal, fromVal;
    var keys = Object.keys(from);
    for (var i = 0; i < keys.length; i++) {
      key = keys[i];
      toVal = to[key];
      fromVal = from[key];
      if (!hasOwn(to, key)) {
        set(to, key, fromVal);
      } else if (isPlainObject(toVal) && isPlainObject(fromVal)) {
        mergeData(toVal, fromVal);
      }
    }
    return to
  }
  
  /**
   * Data
   */
  function mergeDataOrFn (
    parentVal,
    childVal,
    vm
  ) {
    if (!vm) {
      // in a Vue.extend merge, both should be functions
      if (!childVal) {
        return parentVal
      }
      if (!parentVal) {
        return childVal
      }
      // when parentVal & childVal are both present,
      // we need to return a function that returns the
      // merged result of both functions... no need to
      // check if parentVal is a function here because
      // it has to be a function to pass previous merges.
      return function mergedDataFn () {
        return mergeData(
          typeof childVal === 'function' ? childVal.call(this, this) : childVal,
          typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
        )
      }
    } else {
      return function mergedInstanceDataFn () {
        // instance merge
        var instanceData = typeof childVal === 'function'
          ? childVal.call(vm, vm)
          : childVal;
        var defaultData = typeof parentVal === 'function'
          ? parentVal.call(vm, vm)
          : parentVal;
        if (instanceData) {
          return mergeData(instanceData, defaultData)
        } else {
          return defaultData
        }
      }
    }
  }
  
  strats.data = function (
    parentVal,
    childVal,
    vm
  ) {
    if (!vm) {
      if (childVal && typeof childVal !== 'function') {
        "development" !== 'production' && warn(
          'The "data" option should be a function ' +
          'that returns a per-instance value in component ' +
          'definitions.',
          vm
        );
  
        return parentVal
      }
      return mergeDataOrFn(parentVal, childVal)
    }
  
    return mergeDataOrFn(parentVal, childVal, vm)
  };
  
  /**
   * Hooks and props are merged as arrays.
   */
  function mergeHook (
    parentVal,
    childVal
  ) {
    return childVal
      ? parentVal
        ? parentVal.concat(childVal)
        : Array.isArray(childVal)
          ? childVal
          : [childVal]
      : parentVal
  }
  
  LIFECYCLE_HOOKS.forEach(function (hook) {
    strats[hook] = mergeHook;
  });
  
  /**
   * Assets
   *
   * When a vm is present (instance creation), we need to do
   * a three-way merge between constructor options, instance
   * options and parent options.
   */
  function mergeAssets (
    parentVal,
    childVal,
    vm,
    key
  ) {
    var res = Object.create(parentVal || null);
    if (childVal) {
      "development" !== 'production' && assertObjectType(key, childVal, vm);
      return extend(res, childVal)
    } else {
      return res
    }
  }
  
  ASSET_TYPES.forEach(function (type) {
    strats[type + 's'] = mergeAssets;
  });
  
  /**
   * Watchers.
   *
   * Watchers hashes should not overwrite one
   * another, so we merge them as arrays.
   */
  strats.watch = function (
    parentVal,
    childVal,
    vm,
    key
  ) {
    // work around Firefox's Object.prototype.watch...
    if (parentVal === nativeWatch) { parentVal = undefined; }
    if (childVal === nativeWatch) { childVal = undefined; }
    /* istanbul ignore if */
    if (!childVal) { return Object.create(parentVal || null) }
    if (true) {
      assertObjectType(key, childVal, vm);
    }
    if (!parentVal) { return childVal }
    var ret = {};
    extend(ret, parentVal);
    for (var key$1 in childVal) {
      var parent = ret[key$1];
      var child = childVal[key$1];
      if (parent && !Array.isArray(parent)) {
        parent = [parent];
      }
      ret[key$1] = parent
        ? parent.concat(child)
        : Array.isArray(child) ? child : [child];
    }
    return ret
  };
  
  /**
   * Other object hashes.
   */
  strats.props =
  strats.methods =
  strats.inject =
  strats.computed = function (
    parentVal,
    childVal,
    vm,
    key
  ) {
    if (childVal && "development" !== 'production') {
      assertObjectType(key, childVal, vm);
    }
    if (!parentVal) { return childVal }
    var ret = Object.create(null);
    extend(ret, parentVal);
    if (childVal) { extend(ret, childVal); }
    return ret
  };
  strats.provide = mergeDataOrFn;
  
  /**
   * Default strategy.
   */
  var defaultStrat = function (parentVal, childVal) {
    return childVal === undefined
      ? parentVal
      : childVal
  };
  
  /**
   * Validate component names
   */
  function checkComponents (options) {
    for (var key in options.components) {
      validateComponentName(key);
    }
  }
  
  function validateComponentName (name) {
    if (!/^[a-zA-Z][\w-]*$/.test(name)) {
      warn(
        'Invalid component name: "' + name + '". Component names ' +
        'can only contain alphanumeric characters and the hyphen, ' +
        'and must start with a letter.'
      );
    }
    if (isBuiltInTag(name) || config.isReservedTag(name)) {
      warn(
        'Do not use built-in or reserved HTML elements as component ' +
        'id: ' + name
      );
    }
  }
  
  /**
   * Ensure all props option syntax are normalized into the
   * Object-based format.
   */
  function normalizeProps (options, vm) {
    var props = options.props;
    if (!props) { return }
    var res = {};
    var i, val, name;
    if (Array.isArray(props)) {
      i = props.length;
      while (i--) {
        val = props[i];
        if (typeof val === 'string') {
          name = camelize(val);
          res[name] = { type: null };
        } else if (true) {
          warn('props must be strings when using array syntax.');
        }
      }
    } else if (isPlainObject(props)) {
      for (var key in props) {
        val = props[key];
        name = camelize(key);
        res[name] = isPlainObject(val)
          ? val
          : { type: val };
      }
    } else if (true) {
      warn(
        "Invalid value for option \"props\": expected an Array or an Object, " +
        "but got " + (toRawType(props)) + ".",
        vm
      );
    }
    options.props = res;
  }
  
  /**
   * Normalize all injections into Object-based format
   */
  function normalizeInject (options, vm) {
    var inject = options.inject;
    if (!inject) { return }
    var normalized = options.inject = {};
    if (Array.isArray(inject)) {
      for (var i = 0; i < inject.length; i++) {
        normalized[inject[i]] = { from: inject[i] };
      }
    } else if (isPlainObject(inject)) {
      for (var key in inject) {
        var val = inject[key];
        normalized[key] = isPlainObject(val)
          ? extend({ from: key }, val)
          : { from: val };
      }
    } else if (true) {
      warn(
        "Invalid value for option \"inject\": expected an Array or an Object, " +
        "but got " + (toRawType(inject)) + ".",
        vm
      );
    }
  }
  
  /**
   * Normalize raw function directives into object format.
   */
  function normalizeDirectives (options) {
    var dirs = options.directives;
    if (dirs) {
      for (var key in dirs) {
        var def = dirs[key];
        if (typeof def === 'function') {
          dirs[key] = { bind: def, update: def };
        }
      }
    }
  }
  
  function assertObjectType (name, value, vm) {
    if (!isPlainObject(value)) {
      warn(
        "Invalid value for option \"" + name + "\": expected an Object, " +
        "but got " + (toRawType(value)) + ".",
        vm
      );
    }
  }
  
  /**
   * Merge two option objects into a new one.
   * Core utility used in both instantiation and inheritance.
   */
  function mergeOptions (
    parent,
    child,
    vm
  ) {
    if (true) {
      checkComponents(child);
    }
  
    if (typeof child === 'function') {
      child = child.options;
    }
  
    normalizeProps(child, vm);
    normalizeInject(child, vm);
    normalizeDirectives(child);
    var extendsFrom = child.extends;
    if (extendsFrom) {
      parent = mergeOptions(parent, extendsFrom, vm);
    }
    if (child.mixins) {
      for (var i = 0, l = child.mixins.length; i < l; i++) {
        parent = mergeOptions(parent, child.mixins[i], vm);
      }
    }
    var options = {};
    var key;
    for (key in parent) {
      mergeField(key);
    }
    for (key in child) {
      if (!hasOwn(parent, key)) {
        mergeField(key);
      }
    }
    function mergeField (key) {
      var strat = strats[key] || defaultStrat;
      options[key] = strat(parent[key], child[key], vm, key);
    }
    return options
  }
  
  /**
   * Resolve an asset.
   * This function is used because child instances need access
   * to assets defined in its ancestor chain.
   */
  function resolveAsset (
    options,
    type,
    id,
    warnMissing
  ) {
    /* istanbul ignore if */
    if (typeof id !== 'string') {
      return
    }
    var assets = options[type];
    // check local registration variations first
    if (hasOwn(assets, id)) { return assets[id] }
    var camelizedId = camelize(id);
    if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
    var PascalCaseId = capitalize(camelizedId);
    if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
    // fallback to prototype chain
    var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
    if ("development" !== 'production' && warnMissing && !res) {
      warn(
        'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
        options
      );
    }
    return res
  }
  
  /*  */
  
  function validateProp (
    key,
    propOptions,
    propsData,
    vm
  ) {
    var prop = propOptions[key];
    var absent = !hasOwn(propsData, key);
    var value = propsData[key];
    // handle boolean props
    if (isType(Boolean, prop.type)) {
      if (absent && !hasOwn(prop, 'default')) {
        value = false;
      } else if (!isType(String, prop.type) && (value === '' || value === hyphenate(key))) {
        value = true;
      }
    }
    // check default value
    if (value === undefined) {
      value = getPropDefaultValue(vm, prop, key);
      // since the default value is a fresh copy,
      // make sure to observe it.
      var prevShouldConvert = observerState.shouldConvert;
      observerState.shouldConvert = true;
      observe(value);
      observerState.shouldConvert = prevShouldConvert;
    }
    if (
      true
    ) {
      assertProp(prop, key, value, vm, absent);
    }
    return value
  }
  
  /**
   * Get the default value of a prop.
   */
  function getPropDefaultValue (vm, prop, key) {
    // no default, return undefined
    if (!hasOwn(prop, 'default')) {
      return undefined
    }
    var def = prop.default;
    // warn against non-factory defaults for Object & Array
    if ("development" !== 'production' && isObject(def)) {
      warn(
        'Invalid default value for prop "' + key + '": ' +
        'Props with type Object/Array must use a factory function ' +
        'to return the default value.',
        vm
      );
    }
    // the raw prop value was also undefined from previous render,
    // return previous default value to avoid unnecessary watcher trigger
    if (vm && vm.$options.propsData &&
      vm.$options.propsData[key] === undefined &&
      vm._props[key] !== undefined
    ) {
      return vm._props[key]
    }
    // call factory function for non-Function types
    // a value is Function if its prototype is function even across different execution context
    return typeof def === 'function' && getType(prop.type) !== 'Function'
      ? def.call(vm)
      : def
  }
  
  /**
   * Assert whether a prop is valid.
   */
  function assertProp (
    prop,
    name,
    value,
    vm,
    absent
  ) {
    if (prop.required && absent) {
      warn(
        'Missing required prop: "' + name + '"',
        vm
      );
      return
    }
    if (value == null && !prop.required) {
      return
    }
    var type = prop.type;
    var valid = !type || type === true;
    var expectedTypes = [];
    if (type) {
      if (!Array.isArray(type)) {
        type = [type];
      }
      for (var i = 0; i < type.length && !valid; i++) {
        var assertedType = assertType(value, type[i]);
        expectedTypes.push(assertedType.expectedType || '');
        valid = assertedType.valid;
      }
    }
    if (!valid) {
      warn(
        "Invalid prop: type check failed for prop \"" + name + "\"." +
        " Expected " + (expectedTypes.map(capitalize).join(', ')) +
        ", got " + (toRawType(value)) + ".",
        vm
      );
      return
    }
    var validator = prop.validator;
    if (validator) {
      if (!validator(value)) {
        warn(
          'Invalid prop: custom validator check failed for prop "' + name + '".',
          vm
        );
      }
    }
  }
  
  var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
  
  function assertType (value, type) {
    var valid;
    var expectedType = getType(type);
    if (simpleCheckRE.test(expectedType)) {
      var t = typeof value;
      valid = t === expectedType.toLowerCase();
      // for primitive wrapper objects
      if (!valid && t === 'object') {
        valid = value instanceof type;
      }
    } else if (expectedType === 'Object') {
      valid = isPlainObject(value);
    } else if (expectedType === 'Array') {
      valid = Array.isArray(value);
    } else {
      valid = value instanceof type;
    }
    return {
      valid: valid,
      expectedType: expectedType
    }
  }
  
  /**
   * Use function string name to check built-in types,
   * because a simple equality check will fail when running
   * across different vms / iframes.
   */
  function getType (fn) {
    var match = fn && fn.toString().match(/^\s*function (\w+)/);
    return match ? match[1] : ''
  }
  
  function isType (type, fn) {
    if (!Array.isArray(fn)) {
      return getType(fn) === getType(type)
    }
    for (var i = 0, len = fn.length; i < len; i++) {
      if (getType(fn[i]) === getType(type)) {
        return true
      }
    }
    /* istanbul ignore next */
    return false
  }
  
  /*  */
  
  function handleError (err, vm, info) {
    if (vm) {
      var cur = vm;
      while ((cur = cur.$parent)) {
        var hooks = cur.$options.errorCaptured;
        if (hooks) {
          for (var i = 0; i < hooks.length; i++) {
            try {
              var capture = hooks[i].call(cur, err, vm, info) === false;
              if (capture) { return }
            } catch (e) {
              globalHandleError(e, cur, 'errorCaptured hook');
            }
          }
        }
      }
    }
    globalHandleError(err, vm, info);
  }
  
  function globalHandleError (err, vm, info) {
    if (config.errorHandler) {
      try {
        return config.errorHandler.call(null, err, vm, info)
      } catch (e) {
        logError(e, null, 'config.errorHandler');
      }
    }
    logError(err, vm, info);
  }
  
  function logError (err, vm, info) {
    if (true) {
      warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
    }
    /* istanbul ignore else */
    if ((inBrowser || inWeex) && typeof console !== 'undefined') {
      console.error(err);
    } else {
      throw err
    }
  }
  
  /*  */
  /* globals MessageChannel */
  
  var callbacks = [];
  var pending = false;
  
  function flushCallbacks () {
    pending = false;
    var copies = callbacks.slice(0);
    callbacks.length = 0;
    for (var i = 0; i < copies.length; i++) {
      copies[i]();
    }
  }
  
  // Here we have async deferring wrappers using both micro and macro tasks.
  // In < 2.4 we used micro tasks everywhere, but there are some scenarios where
  // micro tasks have too high a priority and fires in between supposedly
  // sequential events (e.g. #4521, #6690) or even between bubbling of the same
  // event (#6566). However, using macro tasks everywhere also has subtle problems
  // when state is changed right before repaint (e.g. #6813, out-in transitions).
  // Here we use micro task by default, but expose a way to force macro task when
  // needed (e.g. in event handlers attached by v-on).
  var microTimerFunc;
  var macroTimerFunc;
  var useMacroTask = false;
  
  // Determine (macro) Task defer implementation.
  // Technically setImmediate should be the ideal choice, but it's only available
  // in IE. The only polyfill that consistently queues the callback after all DOM
  // events triggered in the same loop is by using MessageChannel.
  /* istanbul ignore if */
  if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
    macroTimerFunc = function () {
      setImmediate(flushCallbacks);
    };
  } else if (typeof MessageChannel !== 'undefined' && (
    isNative(MessageChannel) ||
    // PhantomJS
    MessageChannel.toString() === '[object MessageChannelConstructor]'
  )) {
    var channel = new MessageChannel();
    var port = channel.port2;
    channel.port1.onmessage = flushCallbacks;
    macroTimerFunc = function () {
      port.postMessage(1);
    };
  } else {
    /* istanbul ignore next */
    macroTimerFunc = function () {
      setTimeout(flushCallbacks, 0);
    };
  }
  
  // Determine MicroTask defer implementation.
  /* istanbul ignore next, $flow-disable-line */
  if (typeof Promise !== 'undefined' && isNative(Promise)) {
    var p = Promise.resolve();
    microTimerFunc = function () {
      p.then(flushCallbacks);
      // in problematic UIWebViews, Promise.then doesn't completely break, but
      // it can get stuck in a weird state where callbacks are pushed into the
      // microtask queue but the queue isn't being flushed, until the browser
      // needs to do some other work, e.g. handle a timer. Therefore we can
      // "force" the microtask queue to be flushed by adding an empty timer.
      if (isIOS) { setTimeout(noop); }
    };
  } else {
    // fallback to macro
    microTimerFunc = macroTimerFunc;
  }
  
  /**
   * Wrap a function so that if any code inside triggers state change,
   * the changes are queued using a Task instead of a MicroTask.
   */
  function withMacroTask (fn) {
    return fn._withTask || (fn._withTask = function () {
      useMacroTask = true;
      var res = fn.apply(null, arguments);
      useMacroTask = false;
      return res
    })
  }
  
  function nextTick (cb, ctx) {
    var _resolve;
    callbacks.push(function () {
      if (cb) {
        try {
          cb.call(ctx);
        } catch (e) {
          handleError(e, ctx, 'nextTick');
        }
      } else if (_resolve) {
        _resolve(ctx);
      }
    });
    if (!pending) {
      pending = true;
      if (useMacroTask) {
        macroTimerFunc();
      } else {
        microTimerFunc();
      }
    }
    // $flow-disable-line
    if (!cb && typeof Promise !== 'undefined') {
      return new Promise(function (resolve) {
        _resolve = resolve;
      })
    }
  }
  
  /*  */
  
  var mark;
  var measure;
  
  if (true) {
    var perf = inBrowser && window.performance;
    /* istanbul ignore if */
    if (
      perf &&
      perf.mark &&
      perf.measure &&
      perf.clearMarks &&
      perf.clearMeasures
    ) {
      mark = function (tag) { return perf.mark(tag); };
      measure = function (name, startTag, endTag) {
        perf.measure(name, startTag, endTag);
        perf.clearMarks(startTag);
        perf.clearMarks(endTag);
        perf.clearMeasures(name);
      };
    }
  }
  
  /* not type checking this file because flow doesn't play well with Proxy */
  
  var initProxy;
  
  if (true) {
    var allowedGlobals = makeMap(
      'Infinity,undefined,NaN,isFinite,isNaN,' +
      'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
      'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
      'require' // for Webpack/Browserify
    );
  
    var warnNonPresent = function (target, key) {
      warn(
        "Property or method \"" + key + "\" is not defined on the instance but " +
        'referenced during render. Make sure that this property is reactive, ' +
        'either in the data option, or for class-based components, by ' +
        'initializing the property. ' +
        'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
        target
      );
    };
  
    var hasProxy =
      typeof Proxy !== 'undefined' &&
      Proxy.toString().match(/native code/);
  
    if (hasProxy) {
      var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
      config.keyCodes = new Proxy(config.keyCodes, {
        set: function set (target, key, value) {
          if (isBuiltInModifier(key)) {
            warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
            return false
          } else {
            target[key] = value;
            return true
          }
        }
      });
    }
  
    var hasHandler = {
      has: function has (target, key) {
        var has = key in target;
        var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';
        if (!has && !isAllowed) {
          warnNonPresent(target, key);
        }
        return has || !isAllowed
      }
    };
  
    var getHandler = {
      get: function get (target, key) {
        if (typeof key === 'string' && !(key in target)) {
          warnNonPresent(target, key);
        }
        return target[key]
      }
    };
  
    initProxy = function initProxy (vm) {
      if (hasProxy) {
        // determine which proxy handler to use
        var options = vm.$options;
        var handlers = options.render && options.render._withStripped
          ? getHandler
          : hasHandler;
        vm._renderProxy = new Proxy(vm, handlers);
      } else {
        vm._renderProxy = vm;
      }
    };
  }
  
  /*  */
  
  var seenObjects = new _Set();
  
  /**
   * Recursively traverse an object to evoke all converted
   * getters, so that every nested property inside the object
   * is collected as a "deep" dependency.
   */
  function traverse (val) {
    _traverse(val, seenObjects);
    seenObjects.clear();
  }
  
  function _traverse (val, seen) {
    var i, keys;
    var isA = Array.isArray(val);
    if ((!isA && !isObject(val)) || Object.isFrozen(val)) {
      return
    }
    if (val.__ob__) {
      var depId = val.__ob__.dep.id;
      if (seen.has(depId)) {
        return
      }
      seen.add(depId);
    }
    if (isA) {
      i = val.length;
      while (i--) { _traverse(val[i], seen); }
    } else {
      keys = Object.keys(val);
      i = keys.length;
      while (i--) { _traverse(val[keys[i]], seen); }
    }
  }
  
  /*  */
  
  var normalizeEvent = cached(function (name) {
    var passive = name.charAt(0) === '&';
    name = passive ? name.slice(1) : name;
    var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
    name = once$$1 ? name.slice(1) : name;
    var capture = name.charAt(0) === '!';
    name = capture ? name.slice(1) : name;
    return {
      name: name,
      once: once$$1,
      capture: capture,
      passive: passive
    }
  });
  
  function createFnInvoker (fns) {
    function invoker () {
      var arguments$1 = arguments;
  
      var fns = invoker.fns;
      if (Array.isArray(fns)) {
        var cloned = fns.slice();
        for (var i = 0; i < cloned.length; i++) {
          cloned[i].apply(null, arguments$1);
        }
      } else {
        // return handler return value for single handlers
        return fns.apply(null, arguments)
      }
    }
    invoker.fns = fns;
    return invoker
  }
  
  function updateListeners (
    on,
    oldOn,
    add,
    remove$$1,
    vm
  ) {
    var name, def, cur, old, event;
    for (name in on) {
      def = cur = on[name];
      old = oldOn[name];
      event = normalizeEvent(name);
      /* istanbul ignore if */
      if (isUndef(cur)) {
        "development" !== 'production' && warn(
          "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
          vm
        );
      } else if (isUndef(old)) {
        if (isUndef(cur.fns)) {
          cur = on[name] = createFnInvoker(cur);
        }
        add(event.name, cur, event.once, event.capture, event.passive, event.params);
      } else if (cur !== old) {
        old.fns = cur;
        on[name] = old;
      }
    }
    for (name in oldOn) {
      if (isUndef(on[name])) {
        event = normalizeEvent(name);
        remove$$1(event.name, oldOn[name], event.capture);
      }
    }
  }
  
  /*  */
  
  function mergeVNodeHook (def, hookKey, hook) {
    if (def instanceof VNode) {
      def = def.data.hook || (def.data.hook = {});
    }
    var invoker;
    var oldHook = def[hookKey];
  
    function wrappedHook () {
      hook.apply(this, arguments);
      // important: remove merged hook to ensure it's called only once
      // and prevent memory leak
      remove(invoker.fns, wrappedHook);
    }
  
    if (isUndef(oldHook)) {
      // no existing hook
      invoker = createFnInvoker([wrappedHook]);
    } else {
      /* istanbul ignore if */
      if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {
        // already a merged invoker
        invoker = oldHook;
        invoker.fns.push(wrappedHook);
      } else {
        // existing plain hook
        invoker = createFnInvoker([oldHook, wrappedHook]);
      }
    }
  
    invoker.merged = true;
    def[hookKey] = invoker;
  }
  
  /*  */
  
  function extractPropsFromVNodeData (
    data,
    Ctor,
    tag
  ) {
    // we are only extracting raw values here.
    // validation and default values are handled in the child
    // component itself.
    var propOptions = Ctor.options.props;
    if (isUndef(propOptions)) {
      return
    }
    var res = {};
    var attrs = data.attrs;
    var props = data.props;
    if (isDef(attrs) || isDef(props)) {
      for (var key in propOptions) {
        var altKey = hyphenate(key);
        if (true) {
          var keyInLowerCase = key.toLowerCase();
          if (
            key !== keyInLowerCase &&
            attrs && hasOwn(attrs, keyInLowerCase)
          ) {
            tip(
              "Prop \"" + keyInLowerCase + "\" is passed to component " +
              (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
              " \"" + key + "\". " +
              "Note that HTML attributes are case-insensitive and camelCased " +
              "props need to use their kebab-case equivalents when using in-DOM " +
              "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
            );
          }
        }
        checkProp(res, props, key, altKey, true) ||
        checkProp(res, attrs, key, altKey, false);
      }
    }
    return res
  }
  
  function checkProp (
    res,
    hash,
    key,
    altKey,
    preserve
  ) {
    if (isDef(hash)) {
      if (hasOwn(hash, key)) {
        res[key] = hash[key];
        if (!preserve) {
          delete hash[key];
        }
        return true
      } else if (hasOwn(hash, altKey)) {
        res[key] = hash[altKey];
        if (!preserve) {
          delete hash[altKey];
        }
        return true
      }
    }
    return false
  }
  
  /*  */
  
  // The template compiler attempts to minimize the need for normalization by
  // statically analyzing the template at compile time.
  //
  // For plain HTML markup, normalization can be completely skipped because the
  // generated render function is guaranteed to return Array<VNode>. There are
  // two cases where extra normalization is needed:
  
  // 1. When the children contains components - because a functional component
  // may return an Array instead of a single root. In this case, just a simple
  // normalization is needed - if any child is an Array, we flatten the whole
  // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
  // because functional components already normalize their own children.
  function simpleNormalizeChildren (children) {
    for (var i = 0; i < children.length; i++) {
      if (Array.isArray(children[i])) {
        return Array.prototype.concat.apply([], children)
      }
    }
    return children
  }
  
  // 2. When the children contains constructs that always generated nested Arrays,
  // e.g. <template>, <slot>, v-for, or when the children is provided by user
  // with hand-written render functions / JSX. In such cases a full normalization
  // is needed to cater to all possible types of children values.
  function normalizeChildren (children) {
    return isPrimitive(children)
      ? [createTextVNode(children)]
      : Array.isArray(children)
        ? normalizeArrayChildren(children)
        : undefined
  }
  
  function isTextNode (node) {
    return isDef(node) && isDef(node.text) && isFalse(node.isComment)
  }
  
  function normalizeArrayChildren (children, nestedIndex) {
    var res = [];
    var i, c, lastIndex, last;
    for (i = 0; i < children.length; i++) {
      c = children[i];
      if (isUndef(c) || typeof c === 'boolean') { continue }
      lastIndex = res.length - 1;
      last = res[lastIndex];
      //  nested
      if (Array.isArray(c)) {
        if (c.length > 0) {
          c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
          // merge adjacent text nodes
          if (isTextNode(c[0]) && isTextNode(last)) {
            res[lastIndex] = createTextVNode(last.text + (c[0]).text);
            c.shift();
          }
          res.push.apply(res, c);
        }
      } else if (isPrimitive(c)) {
        if (isTextNode(last)) {
          // merge adjacent text nodes
          // this is necessary for SSR hydration because text nodes are
          // essentially merged when rendered to HTML strings
          res[lastIndex] = createTextVNode(last.text + c);
        } else if (c !== '') {
          // convert primitive to vnode
          res.push(createTextVNode(c));
        }
      } else {
        if (isTextNode(c) && isTextNode(last)) {
          // merge adjacent text nodes
          res[lastIndex] = createTextVNode(last.text + c.text);
        } else {
          // default key for nested array children (likely generated by v-for)
          if (isTrue(children._isVList) &&
            isDef(c.tag) &&
            isUndef(c.key) &&
            isDef(nestedIndex)) {
            c.key = "__vlist" + nestedIndex + "_" + i + "__";
          }
          res.push(c);
        }
      }
    }
    return res
  }
  
  /*  */
  
  function ensureCtor (comp, base) {
    if (
      comp.__esModule ||
      (hasSymbol && comp[Symbol.toStringTag] === 'Module')
    ) {
      comp = comp.default;
    }
    return isObject(comp)
      ? base.extend(comp)
      : comp
  }
  
  function createAsyncPlaceholder (
    factory,
    data,
    context,
    children,
    tag
  ) {
    var node = createEmptyVNode();
    node.asyncFactory = factory;
    node.asyncMeta = { data: data, context: context, children: children, tag: tag };
    return node
  }
  
  function resolveAsyncComponent (
    factory,
    baseCtor,
    context
  ) {
    if (isTrue(factory.error) && isDef(factory.errorComp)) {
      return factory.errorComp
    }
  
    if (isDef(factory.resolved)) {
      return factory.resolved
    }
  
    if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
      return factory.loadingComp
    }
  
    if (isDef(factory.contexts)) {
      // already pending
      factory.contexts.push(context);
    } else {
      var contexts = factory.contexts = [context];
      var sync = true;
  
      var forceRender = function () {
        for (var i = 0, l = contexts.length; i < l; i++) {
          contexts[i].$forceUpdate();
        }
      };
  
      var resolve = once(function (res) {
        // cache resolved
        factory.resolved = ensureCtor(res, baseCtor);
        // invoke callbacks only if this is not a synchronous resolve
        // (async resolves are shimmed as synchronous during SSR)
        if (!sync) {
          forceRender();
        }
      });
  
      var reject = once(function (reason) {
        "development" !== 'production' && warn(
          "Failed to resolve async component: " + (String(factory)) +
          (reason ? ("\nReason: " + reason) : '')
        );
        if (isDef(factory.errorComp)) {
          factory.error = true;
          forceRender();
        }
      });
  
      var res = factory(resolve, reject);
  
      if (isObject(res)) {
        if (typeof res.then === 'function') {
          // () => Promise
          if (isUndef(factory.resolved)) {
            res.then(resolve, reject);
          }
        } else if (isDef(res.component) && typeof res.component.then === 'function') {
          res.component.then(resolve, reject);
  
          if (isDef(res.error)) {
            factory.errorComp = ensureCtor(res.error, baseCtor);
          }
  
          if (isDef(res.loading)) {
            factory.loadingComp = ensureCtor(res.loading, baseCtor);
            if (res.delay === 0) {
              factory.loading = true;
            } else {
              setTimeout(function () {
                if (isUndef(factory.resolved) && isUndef(factory.error)) {
                  factory.loading = true;
                  forceRender();
                }
              }, res.delay || 200);
            }
          }
  
          if (isDef(res.timeout)) {
            setTimeout(function () {
              if (isUndef(factory.resolved)) {
                reject(
                   true
                    ? ("timeout (" + (res.timeout) + "ms)")
                    : null
                );
              }
            }, res.timeout);
          }
        }
      }
  
      sync = false;
      // return in case resolved synchronously
      return factory.loading
        ? factory.loadingComp
        : factory.resolved
    }
  }
  
  /*  */
  
  function isAsyncPlaceholder (node) {
    return node.isComment && node.asyncFactory
  }
  
  /*  */
  
  function getFirstComponentChild (children) {
    if (Array.isArray(children)) {
      for (var i = 0; i < children.length; i++) {
        var c = children[i];
        if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
          return c
        }
      }
    }
  }
  
  /*  */
  
  /*  */
  
  function initEvents (vm) {
    vm._events = Object.create(null);
    vm._hasHookEvent = false;
    // init parent attached events
    var listeners = vm.$options._parentListeners;
    if (listeners) {
      updateComponentListeners(vm, listeners);
    }
  }
  
  var target;
  
  function add (event, fn, once) {
    if (once) {
      target.$once(event, fn);
    } else {
      target.$on(event, fn);
    }
  }
  
  function remove$1 (event, fn) {
    target.$off(event, fn);
  }
  
  function updateComponentListeners (
    vm,
    listeners,
    oldListeners
  ) {
    target = vm;
    updateListeners(listeners, oldListeners || {}, add, remove$1, vm);
    target = undefined;
  }
  
  function eventsMixin (Vue) {
    var hookRE = /^hook:/;
    Vue.prototype.$on = function (event, fn) {
      var this$1 = this;
  
      var vm = this;
      if (Array.isArray(event)) {
        for (var i = 0, l = event.length; i < l; i++) {
          this$1.$on(event[i], fn);
        }
      } else {
        (vm._events[event] || (vm._events[event] = [])).push(fn);
        // optimize hook:event cost by using a boolean flag marked at registration
        // instead of a hash lookup
        if (hookRE.test(event)) {
          vm._hasHookEvent = true;
        }
      }
      return vm
    };
  
    Vue.prototype.$once = function (event, fn) {
      var vm = this;
      function on () {
        vm.$off(event, on);
        fn.apply(vm, arguments);
      }
      on.fn = fn;
      vm.$on(event, on);
      return vm
    };
  
    Vue.prototype.$off = function (event, fn) {
      var this$1 = this;
  
      var vm = this;
      // all
      if (!arguments.length) {
        vm._events = Object.create(null);
        return vm
      }
      // array of events
      if (Array.isArray(event)) {
        for (var i = 0, l = event.length; i < l; i++) {
          this$1.$off(event[i], fn);
        }
        return vm
      }
      // specific event
      var cbs = vm._events[event];
      if (!cbs) {
        return vm
      }
      if (!fn) {
        vm._events[event] = null;
        return vm
      }
      if (fn) {
        // specific handler
        var cb;
        var i$1 = cbs.length;
        while (i$1--) {
          cb = cbs[i$1];
          if (cb === fn || cb.fn === fn) {
            cbs.splice(i$1, 1);
            break
          }
        }
      }
      return vm
    };
  
    Vue.prototype.$emit = function (event) {
      var vm = this;
      if (true) {
        var lowerCaseEvent = event.toLowerCase();
        if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
          tip(
            "Event \"" + lowerCaseEvent + "\" is emitted in component " +
            (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
            "Note that HTML attributes are case-insensitive and you cannot use " +
            "v-on to listen to camelCase events when using in-DOM templates. " +
            "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
          );
        }
      }
      var cbs = vm._events[event];
      if (cbs) {
        cbs = cbs.length > 1 ? toArray(cbs) : cbs;
        var args = toArray(arguments, 1);
        for (var i = 0, l = cbs.length; i < l; i++) {
          try {
            cbs[i].apply(vm, args);
          } catch (e) {
            handleError(e, vm, ("event handler for \"" + event + "\""));
          }
        }
      }
      return vm
    };
  }
  
  /*  */
  
  
  
  /**
   * Runtime helper for resolving raw children VNodes into a slot object.
   */
  function resolveSlots (
    children,
    context
  ) {
    var slots = {};
    if (!children) {
      return slots
    }
    for (var i = 0, l = children.length; i < l; i++) {
      var child = children[i];
      var data = child.data;
      // remove slot attribute if the node is resolved as a Vue slot node
      if (data && data.attrs && data.attrs.slot) {
        delete data.attrs.slot;
      }
      // named slots should only be respected if the vnode was rendered in the
      // same context.
      if ((child.context === context || child.fnContext === context) &&
        data && data.slot != null
      ) {
        var name = data.slot;
        var slot = (slots[name] || (slots[name] = []));
        if (child.tag === 'template') {
          slot.push.apply(slot, child.children || []);
        } else {
          slot.push(child);
        }
      } else {
        (slots.default || (slots.default = [])).push(child);
      }
    }
    // ignore slots that contains only whitespace
    for (var name$1 in slots) {
      if (slots[name$1].every(isWhitespace)) {
        delete slots[name$1];
      }
    }
    return slots
  }
  
  function isWhitespace (node) {
    return (node.isComment && !node.asyncFactory) || node.text === ' '
  }
  
  function resolveScopedSlots (
    fns, // see flow/vnode
    res
  ) {
    res = res || {};
    for (var i = 0; i < fns.length; i++) {
      if (Array.isArray(fns[i])) {
        resolveScopedSlots(fns[i], res);
      } else {
        res[fns[i].key] = fns[i].fn;
      }
    }
    return res
  }
  
  /*  */
  
  var activeInstance = null;
  var isUpdatingChildComponent = false;
  
  function initLifecycle (vm) {
    var options = vm.$options;
  
    // locate first non-abstract parent
    var parent = options.parent;
    if (parent && !options.abstract) {
      while (parent.$options.abstract && parent.$parent) {
        parent = parent.$parent;
      }
      parent.$children.push(vm);
    }
  
    vm.$parent = parent;
    vm.$root = parent ? parent.$root : vm;
  
    vm.$children = [];
    vm.$refs = {};
  
    vm._watcher = null;
    vm._inactive = null;
    vm._directInactive = false;
    vm._isMounted = false;
    vm._isDestroyed = false;
    vm._isBeingDestroyed = false;
  }
  
  function lifecycleMixin (Vue) {
    Vue.prototype._update = function (vnode, hydrating) {
      var vm = this;
      if (vm._isMounted) {
        callHook(vm, 'beforeUpdate');
      }
      var prevEl = vm.$el;
      var prevVnode = vm._vnode;
      var prevActiveInstance = activeInstance;
      activeInstance = vm;
      vm._vnode = vnode;
      // Vue.prototype.__patch__ is injected in entry points
      // based on the rendering backend used.
      if (!prevVnode) {
        // initial render
        vm.$el = vm.__patch__(
          vm.$el, vnode, hydrating, false /* removeOnly */,
          vm.$options._parentElm,
          vm.$options._refElm
        );
        // no need for the ref nodes after initial patch
        // this prevents keeping a detached DOM tree in memory (#5851)
        vm.$options._parentElm = vm.$options._refElm = null;
      } else {
        // updates
        vm.$el = vm.__patch__(prevVnode, vnode);
      }
      activeInstance = prevActiveInstance;
      // update __vue__ reference
      if (prevEl) {
        prevEl.__vue__ = null;
      }
      if (vm.$el) {
        vm.$el.__vue__ = vm;
      }
      // if parent is an HOC, update its $el as well
      if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
        vm.$parent.$el = vm.$el;
      }
      // updated hook is called by the scheduler to ensure that children are
      // updated in a parent's updated hook.
    };
  
    Vue.prototype.$forceUpdate = function () {
      var vm = this;
      if (vm._watcher) {
        vm._watcher.update();
      }
    };
  
    Vue.prototype.$destroy = function () {
      var vm = this;
      if (vm._isBeingDestroyed) {
        return
      }
      callHook(vm, 'beforeDestroy');
      vm._isBeingDestroyed = true;
      // remove self from parent
      var parent = vm.$parent;
      if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
        remove(parent.$children, vm);
      }
      // teardown watchers
      if (vm._watcher) {
        vm._watcher.teardown();
      }
      var i = vm._watchers.length;
      while (i--) {
        vm._watchers[i].teardown();
      }
      // remove reference from data ob
      // frozen object may not have observer.
      if (vm._data.__ob__) {
        vm._data.__ob__.vmCount--;
      }
      // call the last hook...
      vm._isDestroyed = true;
      // invoke destroy hooks on current rendered tree
      vm.__patch__(vm._vnode, null);
      // fire destroyed hook
      callHook(vm, 'destroyed');
      // turn off all instance listeners.
      vm.$off();
      // remove __vue__ reference
      if (vm.$el) {
        vm.$el.__vue__ = null;
      }
      // release circular reference (#6759)
      if (vm.$vnode) {
        vm.$vnode.parent = null;
      }
    };
  }
  
  function mountComponent (
    vm,
    el,
    hydrating
  ) {
    vm.$el = el;
    if (!vm.$options.render) {
      vm.$options.render = createEmptyVNode;
      if (true) {
        /* istanbul ignore if */
        if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
          vm.$options.el || el) {
          warn(
            'You are using the runtime-only build of Vue where the template ' +
            'compiler is not available. Either pre-compile the templates into ' +
            'render functions, or use the compiler-included build.',
            vm
          );
        } else {
          warn(
            'Failed to mount component: template or render function not defined.',
            vm
          );
        }
      }
    }
    callHook(vm, 'beforeMount');
  
    var updateComponent;
    /* istanbul ignore if */
    if ("development" !== 'production' && config.performance && mark) {
      updateComponent = function () {
        var name = vm._name;
        var id = vm._uid;
        var startTag = "vue-perf-start:" + id;
        var endTag = "vue-perf-end:" + id;
  
        mark(startTag);
        var vnode = vm._render();
        mark(endTag);
        measure(("vue " + name + " render"), startTag, endTag);
  
        mark(startTag);
        vm._update(vnode, hydrating);
        mark(endTag);
        measure(("vue " + name + " patch"), startTag, endTag);
      };
    } else {
      updateComponent = function () {
        vm._update(vm._render(), hydrating);
      };
    }
  
    // we set this to vm._watcher inside the watcher's constructor
    // since the watcher's initial patch may call $forceUpdate (e.g. inside child
    // component's mounted hook), which relies on vm._watcher being already defined
    new Watcher(vm, updateComponent, noop, null, true /* isRenderWatcher */);
    hydrating = false;
  
    // manually mounted instance, call mounted on self
    // mounted is called for render-created child components in its inserted hook
    if (vm.$vnode == null) {
      vm._isMounted = true;
      callHook(vm, 'mounted');
    }
    return vm
  }
  
  function updateChildComponent (
    vm,
    propsData,
    listeners,
    parentVnode,
    renderChildren
  ) {
    if (true) {
      isUpdatingChildComponent = true;
    }
  
    // determine whether component has slot children
    // we need to do this before overwriting $options._renderChildren
    var hasChildren = !!(
      renderChildren ||               // has new static slots
      vm.$options._renderChildren ||  // has old static slots
      parentVnode.data.scopedSlots || // has new scoped slots
      vm.$scopedSlots !== emptyObject // has old scoped slots
    );
  
    vm.$options._parentVnode = parentVnode;
    vm.$vnode = parentVnode; // update vm's placeholder node without re-render
  
    if (vm._vnode) { // update child tree's parent
      vm._vnode.parent = parentVnode;
    }
    vm.$options._renderChildren = renderChildren;
  
    // update $attrs and $listeners hash
    // these are also reactive so they may trigger child update if the child
    // used them during render
    vm.$attrs = (parentVnode.data && parentVnode.data.attrs) || emptyObject;
    vm.$listeners = listeners || emptyObject;
  
    // update props
    if (propsData && vm.$options.props) {
      observerState.shouldConvert = false;
      var props = vm._props;
      var propKeys = vm.$options._propKeys || [];
      for (var i = 0; i < propKeys.length; i++) {
        var key = propKeys[i];
        props[key] = validateProp(key, vm.$options.props, propsData, vm);
      }
      observerState.shouldConvert = true;
      // keep a copy of raw propsData
      vm.$options.propsData = propsData;
    }
  
    // update listeners
    if (listeners) {
      var oldListeners = vm.$options._parentListeners;
      vm.$options._parentListeners = listeners;
      updateComponentListeners(vm, listeners, oldListeners);
    }
    // resolve slots + force update if has children
    if (hasChildren) {
      vm.$slots = resolveSlots(renderChildren, parentVnode.context);
      vm.$forceUpdate();
    }
  
    if (true) {
      isUpdatingChildComponent = false;
    }
  }
  
  function isInInactiveTree (vm) {
    while (vm && (vm = vm.$parent)) {
      if (vm._inactive) { return true }
    }
    return false
  }
  
  function activateChildComponent (vm, direct) {
    if (direct) {
      vm._directInactive = false;
      if (isInInactiveTree(vm)) {
        return
      }
    } else if (vm._directInactive) {
      return
    }
    if (vm._inactive || vm._inactive === null) {
      vm._inactive = false;
      for (var i = 0; i < vm.$children.length; i++) {
        activateChildComponent(vm.$children[i]);
      }
      callHook(vm, 'activated');
    }
  }
  
  function deactivateChildComponent (vm, direct) {
    if (direct) {
      vm._directInactive = true;
      if (isInInactiveTree(vm)) {
        return
      }
    }
    if (!vm._inactive) {
      vm._inactive = true;
      for (var i = 0; i < vm.$children.length; i++) {
        deactivateChildComponent(vm.$children[i]);
      }
      callHook(vm, 'deactivated');
    }
  }
  
  function callHook (vm, hook) {
    var handlers = vm.$options[hook];
    if (handlers) {
      for (var i = 0, j = handlers.length; i < j; i++) {
        try {
          handlers[i].call(vm);
        } catch (e) {
          handleError(e, vm, (hook + " hook"));
        }
      }
    }
    if (vm._hasHookEvent) {
      vm.$emit('hook:' + hook);
    }
  }
  
  /*  */
  
  
  var MAX_UPDATE_COUNT = 100;
  
  var queue = [];
  var activatedChildren = [];
  var has = {};
  var circular = {};
  var waiting = false;
  var flushing = false;
  var index = 0;
  
  /**
   * Reset the scheduler's state.
   */
  function resetSchedulerState () {
    index = queue.length = activatedChildren.length = 0;
    has = {};
    if (true) {
      circular = {};
    }
    waiting = flushing = false;
  }
  
  /**
   * Flush both queues and run the watchers.
   */
  function flushSchedulerQueue () {
    flushing = true;
    var watcher, id;
  
    // Sort queue before flush.
    // This ensures that:
    // 1. Components are updated from parent to child. (because parent is always
    //    created before the child)
    // 2. A component's user watchers are run before its render watcher (because
    //    user watchers are created before the render watcher)
    // 3. If a component is destroyed during a parent component's watcher run,
    //    its watchers can be skipped.
    queue.sort(function (a, b) { return a.id - b.id; });
  
    // do not cache length because more watchers might be pushed
    // as we run existing watchers
    for (index = 0; index < queue.length; index++) {
      watcher = queue[index];
      id = watcher.id;
      has[id] = null;
      watcher.run();
      // in dev build, check and stop circular updates.
      if ("development" !== 'production' && has[id] != null) {
        circular[id] = (circular[id] || 0) + 1;
        if (circular[id] > MAX_UPDATE_COUNT) {
          warn(
            'You may have an infinite update loop ' + (
              watcher.user
                ? ("in watcher with expression \"" + (watcher.expression) + "\"")
                : "in a component render function."
            ),
            watcher.vm
          );
          break
        }
      }
    }
  
    // keep copies of post queues before resetting state
    var activatedQueue = activatedChildren.slice();
    var updatedQueue = queue.slice();
  
    resetSchedulerState();
  
    // call component updated and activated hooks
    callActivatedHooks(activatedQueue);
    callUpdatedHooks(updatedQueue);
  
    // devtool hook
    /* istanbul ignore if */
    if (devtools && config.devtools) {
      devtools.emit('flush');
    }
  }
  
  function callUpdatedHooks (queue) {
    var i = queue.length;
    while (i--) {
      var watcher = queue[i];
      var vm = watcher.vm;
      if (vm._watcher === watcher && vm._isMounted) {
        callHook(vm, 'updated');
      }
    }
  }
  
  /**
   * Queue a kept-alive component that was activated during patch.
   * The queue will be processed after the entire tree has been patched.
   */
  function queueActivatedComponent (vm) {
    // setting _inactive to false here so that a render function can
    // rely on checking whether it's in an inactive tree (e.g. router-view)
    vm._inactive = false;
    activatedChildren.push(vm);
  }
  
  function callActivatedHooks (queue) {
    for (var i = 0; i < queue.length; i++) {
      queue[i]._inactive = true;
      activateChildComponent(queue[i], true /* true */);
    }
  }
  
  /**
   * Push a watcher into the watcher queue.
   * Jobs with duplicate IDs will be skipped unless it's
   * pushed when the queue is being flushed.
   */
  function queueWatcher (watcher) {
    var id = watcher.id;
    if (has[id] == null) {
      has[id] = true;
      if (!flushing) {
        queue.push(watcher);
      } else {
        // if already flushing, splice the watcher based on its id
        // if already past its id, it will be run next immediately.
        var i = queue.length - 1;
        while (i > index && queue[i].id > watcher.id) {
          i--;
        }
        queue.splice(i + 1, 0, watcher);
      }
      // queue the flush
      if (!waiting) {
        waiting = true;
        nextTick(flushSchedulerQueue);
      }
    }
  }
  
  /*  */
  
  var uid$2 = 0;
  
  /**
   * A watcher parses an expression, collects dependencies,
   * and fires callback when the expression value changes.
   * This is used for both the $watch() api and directives.
   */
  var Watcher = function Watcher (
    vm,
    expOrFn,
    cb,
    options,
    isRenderWatcher
  ) {
    this.vm = vm;
    if (isRenderWatcher) {
      vm._watcher = this;
    }
    vm._watchers.push(this);
    // options
    if (options) {
      this.deep = !!options.deep;
      this.user = !!options.user;
      this.lazy = !!options.lazy;
      this.sync = !!options.sync;
    } else {
      this.deep = this.user = this.lazy = this.sync = false;
    }
    this.cb = cb;
    this.id = ++uid$2; // uid for batching
    this.active = true;
    this.dirty = this.lazy; // for lazy watchers
    this.deps = [];
    this.newDeps = [];
    this.depIds = new _Set();
    this.newDepIds = new _Set();
    this.expression =  true
      ? expOrFn.toString()
      : '';
    // parse expression for getter
    if (typeof expOrFn === 'function') {
      this.getter = expOrFn;
    } else {
      this.getter = parsePath(expOrFn);
      if (!this.getter) {
        this.getter = function () {};
        "development" !== 'production' && warn(
          "Failed watching path: \"" + expOrFn + "\" " +
          'Watcher only accepts simple dot-delimited paths. ' +
          'For full control, use a function instead.',
          vm
        );
      }
    }
    this.value = this.lazy
      ? undefined
      : this.get();
  };
  
  /**
   * Evaluate the getter, and re-collect dependencies.
   */
  Watcher.prototype.get = function get () {
    pushTarget(this);
    var value;
    var vm = this.vm;
    try {
      value = this.getter.call(vm, vm);
    } catch (e) {
      if (this.user) {
        handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
      } else {
        throw e
      }
    } finally {
      // "touch" every property so they are all tracked as
      // dependencies for deep watching
      if (this.deep) {
        traverse(value);
      }
      popTarget();
      this.cleanupDeps();
    }
    return value
  };
  
  /**
   * Add a dependency to this directive.
   */
  Watcher.prototype.addDep = function addDep (dep) {
    var id = dep.id;
    if (!this.newDepIds.has(id)) {
      this.newDepIds.add(id);
      this.newDeps.push(dep);
      if (!this.depIds.has(id)) {
        dep.addSub(this);
      }
    }
  };
  
  /**
   * Clean up for dependency collection.
   */
  Watcher.prototype.cleanupDeps = function cleanupDeps () {
      var this$1 = this;
  
    var i = this.deps.length;
    while (i--) {
      var dep = this$1.deps[i];
      if (!this$1.newDepIds.has(dep.id)) {
        dep.removeSub(this$1);
      }
    }
    var tmp = this.depIds;
    this.depIds = this.newDepIds;
    this.newDepIds = tmp;
    this.newDepIds.clear();
    tmp = this.deps;
    this.deps = this.newDeps;
    this.newDeps = tmp;
    this.newDeps.length = 0;
  };
  
  /**
   * Subscriber interface.
   * Will be called when a dependency changes.
   */
  Watcher.prototype.update = function update () {
    /* istanbul ignore else */
    if (this.lazy) {
      this.dirty = true;
    } else if (this.sync) {
      this.run();
    } else {
      queueWatcher(this);
    }
  };
  
  /**
   * Scheduler job interface.
   * Will be called by the scheduler.
   */
  Watcher.prototype.run = function run () {
    if (this.active) {
      var value = this.get();
      if (
        value !== this.value ||
        // Deep watchers and watchers on Object/Arrays should fire even
        // when the value is the same, because the value may
        // have mutated.
        isObject(value) ||
        this.deep
      ) {
        // set new value
        var oldValue = this.value;
        this.value = value;
        if (this.user) {
          try {
            this.cb.call(this.vm, value, oldValue);
          } catch (e) {
            handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
          }
        } else {
          this.cb.call(this.vm, value, oldValue);
        }
      }
    }
  };
  
  /**
   * Evaluate the value of the watcher.
   * This only gets called for lazy watchers.
   */
  Watcher.prototype.evaluate = function evaluate () {
    this.value = this.get();
    this.dirty = false;
  };
  
  /**
   * Depend on all deps collected by this watcher.
   */
  Watcher.prototype.depend = function depend () {
      var this$1 = this;
  
    var i = this.deps.length;
    while (i--) {
      this$1.deps[i].depend();
    }
  };
  
  /**
   * Remove self from all dependencies' subscriber list.
   */
  Watcher.prototype.teardown = function teardown () {
      var this$1 = this;
  
    if (this.active) {
      // remove self from vm's watcher list
      // this is a somewhat expensive operation so we skip it
      // if the vm is being destroyed.
      if (!this.vm._isBeingDestroyed) {
        remove(this.vm._watchers, this);
      }
      var i = this.deps.length;
      while (i--) {
        this$1.deps[i].removeSub(this$1);
      }
      this.active = false;
    }
  };
  
  /*  */
  
  var sharedPropertyDefinition = {
    enumerable: true,
    configurable: true,
    get: noop,
    set: noop
  };
  
  function proxy (target, sourceKey, key) {
    sharedPropertyDefinition.get = function proxyGetter () {
      return this[sourceKey][key]
    };
    sharedPropertyDefinition.set = function proxySetter (val) {
      this[sourceKey][key] = val;
    };
    Object.defineProperty(target, key, sharedPropertyDefinition);
  }
  
  function initState (vm) {
    vm._watchers = [];
    var opts = vm.$options;
    if (opts.props) { initProps(vm, opts.props); }
    if (opts.methods) { initMethods(vm, opts.methods); }
    if (opts.data) {
      initData(vm);
    } else {
      observe(vm._data = {}, true /* asRootData */);
    }
    if (opts.computed) { initComputed(vm, opts.computed); }
    if (opts.watch && opts.watch !== nativeWatch) {
      initWatch(vm, opts.watch);
    }
  }
  
  function initProps (vm, propsOptions) {
    var propsData = vm.$options.propsData || {};
    var props = vm._props = {};
    // cache prop keys so that future props updates can iterate using Array
    // instead of dynamic object key enumeration.
    var keys = vm.$options._propKeys = [];
    var isRoot = !vm.$parent;
    // root instance props should be converted
    observerState.shouldConvert = isRoot;
    var loop = function ( key ) {
      keys.push(key);
      var value = validateProp(key, propsOptions, propsData, vm);
      /* istanbul ignore else */
      if (true) {
        var hyphenatedKey = hyphenate(key);
        if (isReservedAttribute(hyphenatedKey) ||
            config.isReservedAttr(hyphenatedKey)) {
          warn(
            ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
            vm
          );
        }
        defineReactive(props, key, value, function () {
          if (vm.$parent && !isUpdatingChildComponent) {
            warn(
              "Avoid mutating a prop directly since the value will be " +
              "overwritten whenever the parent component re-renders. " +
              "Instead, use a data or computed property based on the prop's " +
              "value. Prop being mutated: \"" + key + "\"",
              vm
            );
          }
        });
      } else {
        defineReactive(props, key, value);
      }
      // static props are already proxied on the component's prototype
      // during Vue.extend(). We only need to proxy props defined at
      // instantiation here.
      if (!(key in vm)) {
        proxy(vm, "_props", key);
      }
    };
  
    for (var key in propsOptions) loop( key );
    observerState.shouldConvert = true;
  }
  
  function initData (vm) {
    var data = vm.$options.data;
    data = vm._data = typeof data === 'function'
      ? getData(data, vm)
      : data || {};
    if (!isPlainObject(data)) {
      data = {};
      "development" !== 'production' && warn(
        'data functions should return an object:\n' +
        'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
        vm
      );
    }
    // proxy data on instance
    var keys = Object.keys(data);
    var props = vm.$options.props;
    var methods = vm.$options.methods;
    var i = keys.length;
    while (i--) {
      var key = keys[i];
      if (true) {
        if (methods && hasOwn(methods, key)) {
          warn(
            ("Method \"" + key + "\" has already been defined as a data property."),
            vm
          );
        }
      }
      if (props && hasOwn(props, key)) {
        "development" !== 'production' && warn(
          "The data property \"" + key + "\" is already declared as a prop. " +
          "Use prop default value instead.",
          vm
        );
      } else if (!isReserved(key)) {
        proxy(vm, "_data", key);
      }
    }
    // observe data
    observe(data, true /* asRootData */);
  }
  
  function getData (data, vm) {
    try {
      return data.call(vm, vm)
    } catch (e) {
      handleError(e, vm, "data()");
      return {}
    }
  }
  
  var computedWatcherOptions = { lazy: true };
  
  function initComputed (vm, computed) {
    // $flow-disable-line
    var watchers = vm._computedWatchers = Object.create(null);
    // computed properties are just getters during SSR
    var isSSR = isServerRendering();
  
    for (var key in computed) {
      var userDef = computed[key];
      var getter = typeof userDef === 'function' ? userDef : userDef.get;
      if ("development" !== 'production' && getter == null) {
        warn(
          ("Getter is missing for computed property \"" + key + "\"."),
          vm
        );
      }
  
      if (!isSSR) {
        // create internal watcher for the computed property.
        watchers[key] = new Watcher(
          vm,
          getter || noop,
          noop,
          computedWatcherOptions
        );
      }
  
      // component-defined computed properties are already defined on the
      // component prototype. We only need to define computed properties defined
      // at instantiation here.
      if (!(key in vm)) {
        defineComputed(vm, key, userDef);
      } else if (true) {
        if (key in vm.$data) {
          warn(("The computed property \"" + key + "\" is already defined in data."), vm);
        } else if (vm.$options.props && key in vm.$options.props) {
          warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
        }
      }
    }
  }
  
  function defineComputed (
    target,
    key,
    userDef
  ) {
    var shouldCache = !isServerRendering();
    if (typeof userDef === 'function') {
      sharedPropertyDefinition.get = shouldCache
        ? createComputedGetter(key)
        : userDef;
      sharedPropertyDefinition.set = noop;
    } else {
      sharedPropertyDefinition.get = userDef.get
        ? shouldCache && userDef.cache !== false
          ? createComputedGetter(key)
          : userDef.get
        : noop;
      sharedPropertyDefinition.set = userDef.set
        ? userDef.set
        : noop;
    }
    if ("development" !== 'production' &&
        sharedPropertyDefinition.set === noop) {
      sharedPropertyDefinition.set = function () {
        warn(
          ("Computed property \"" + key + "\" was assigned to but it has no setter."),
          this
        );
      };
    }
    Object.defineProperty(target, key, sharedPropertyDefinition);
  }
  
  function createComputedGetter (key) {
    return function computedGetter () {
      var watcher = this._computedWatchers && this._computedWatchers[key];
      if (watcher) {
        if (watcher.dirty) {
          watcher.evaluate();
        }
        if (Dep.target) {
          watcher.depend();
        }
        return watcher.value
      }
    }
  }
  
  function initMethods (vm, methods) {
    var props = vm.$options.props;
    for (var key in methods) {
      if (true) {
        if (methods[key] == null) {
          warn(
            "Method \"" + key + "\" has an undefined value in the component definition. " +
            "Did you reference the function correctly?",
            vm
          );
        }
        if (props && hasOwn(props, key)) {
          warn(
            ("Method \"" + key + "\" has already been defined as a prop."),
            vm
          );
        }
        if ((key in vm) && isReserved(key)) {
          warn(
            "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
            "Avoid defining component methods that start with _ or $."
          );
        }
      }
      vm[key] = methods[key] == null ? noop : bind(methods[key], vm);
    }
  }
  
  function initWatch (vm, watch) {
    for (var key in watch) {
      var handler = watch[key];
      if (Array.isArray(handler)) {
        for (var i = 0; i < handler.length; i++) {
          createWatcher(vm, key, handler[i]);
        }
      } else {
        createWatcher(vm, key, handler);
      }
    }
  }
  
  function createWatcher (
    vm,
    keyOrFn,
    handler,
    options
  ) {
    if (isPlainObject(handler)) {
      options = handler;
      handler = handler.handler;
    }
    if (typeof handler === 'string') {
      handler = vm[handler];
    }
    return vm.$watch(keyOrFn, handler, options)
  }
  
  function stateMixin (Vue) {
    // flow somehow has problems with directly declared definition object
    // when using Object.defineProperty, so we have to procedurally build up
    // the object here.
    var dataDef = {};
    dataDef.get = function () { return this._data };
    var propsDef = {};
    propsDef.get = function () { return this._props };
    if (true) {
      dataDef.set = function (newData) {
        warn(
          'Avoid replacing instance root $data. ' +
          'Use nested data properties instead.',
          this
        );
      };
      propsDef.set = function () {
        warn("$props is readonly.", this);
      };
    }
    Object.defineProperty(Vue.prototype, '$data', dataDef);
    Object.defineProperty(Vue.prototype, '$props', propsDef);
  
    Vue.prototype.$set = set;
    Vue.prototype.$delete = del;
  
    Vue.prototype.$watch = function (
      expOrFn,
      cb,
      options
    ) {
      var vm = this;
      if (isPlainObject(cb)) {
        return createWatcher(vm, expOrFn, cb, options)
      }
      options = options || {};
      options.user = true;
      var watcher = new Watcher(vm, expOrFn, cb, options);
      if (options.immediate) {
        cb.call(vm, watcher.value);
      }
      return function unwatchFn () {
        watcher.teardown();
      }
    };
  }
  
  /*  */
  
  function initProvide (vm) {
    var provide = vm.$options.provide;
    if (provide) {
      vm._provided = typeof provide === 'function'
        ? provide.call(vm)
        : provide;
    }
  }
  
  function initInjections (vm) {
    var result = resolveInject(vm.$options.inject, vm);
    if (result) {
      observerState.shouldConvert = false;
      Object.keys(result).forEach(function (key) {
        /* istanbul ignore else */
        if (true) {
          defineReactive(vm, key, result[key], function () {
            warn(
              "Avoid mutating an injected value directly since the changes will be " +
              "overwritten whenever the provided component re-renders. " +
              "injection being mutated: \"" + key + "\"",
              vm
            );
          });
        } else {
          defineReactive(vm, key, result[key]);
        }
      });
      observerState.shouldConvert = true;
    }
  }
  
  function resolveInject (inject, vm) {
    if (inject) {
      // inject is :any because flow is not smart enough to figure out cached
      var result = Object.create(null);
      var keys = hasSymbol
        ? Reflect.ownKeys(inject).filter(function (key) {
          /* istanbul ignore next */
          return Object.getOwnPropertyDescriptor(inject, key).enumerable
        })
        : Object.keys(inject);
  
      for (var i = 0; i < keys.length; i++) {
        var key = keys[i];
        var provideKey = inject[key].from;
        var source = vm;
        while (source) {
          if (source._provided && provideKey in source._provided) {
            result[key] = source._provided[provideKey];
            break
          }
          source = source.$parent;
        }
        if (!source) {
          if ('default' in inject[key]) {
            var provideDefault = inject[key].default;
            result[key] = typeof provideDefault === 'function'
              ? provideDefault.call(vm)
              : provideDefault;
          } else if (true) {
            warn(("Injection \"" + key + "\" not found"), vm);
          }
        }
      }
      return result
    }
  }
  
  /*  */
  
  /**
   * Runtime helper for rendering v-for lists.
   */
  function renderList (
    val,
    render
  ) {
    var ret, i, l, keys, key;
    if (Array.isArray(val) || typeof val === 'string') {
      ret = new Array(val.length);
      for (i = 0, l = val.length; i < l; i++) {
        ret[i] = render(val[i], i);
      }
    } else if (typeof val === 'number') {
      ret = new Array(val);
      for (i = 0; i < val; i++) {
        ret[i] = render(i + 1, i);
      }
    } else if (isObject(val)) {
      keys = Object.keys(val);
      ret = new Array(keys.length);
      for (i = 0, l = keys.length; i < l; i++) {
        key = keys[i];
        ret[i] = render(val[key], key, i);
      }
    }
    if (isDef(ret)) {
      (ret)._isVList = true;
    }
    return ret
  }
  
  /*  */
  
  /**
   * Runtime helper for rendering <slot>
   */
  function renderSlot (
    name,
    fallback,
    props,
    bindObject
  ) {
    var scopedSlotFn = this.$scopedSlots[name];
    var nodes;
    if (scopedSlotFn) { // scoped slot
      props = props || {};
      if (bindObject) {
        if ("development" !== 'production' && !isObject(bindObject)) {
          warn(
            'slot v-bind without argument expects an Object',
            this
          );
        }
        props = extend(extend({}, bindObject), props);
      }
      nodes = scopedSlotFn(props) || fallback;
    } else {
      var slotNodes = this.$slots[name];
      // warn duplicate slot usage
      if (slotNodes) {
        if ("development" !== 'production' && slotNodes._rendered) {
          warn(
            "Duplicate presence of slot \"" + name + "\" found in the same render tree " +
            "- this will likely cause render errors.",
            this
          );
        }
        slotNodes._rendered = true;
      }
      nodes = slotNodes || fallback;
    }
  
    var target = props && props.slot;
    if (target) {
      return this.$createElement('template', { slot: target }, nodes)
    } else {
      return nodes
    }
  }
  
  /*  */
  
  /**
   * Runtime helper for resolving filters
   */
  function resolveFilter (id) {
    return resolveAsset(this.$options, 'filters', id, true) || identity
  }
  
  /*  */
  
  /**
   * Runtime helper for checking keyCodes from config.
   * exposed as Vue.prototype._k
   * passing in eventKeyName as last argument separately for backwards compat
   */
  function checkKeyCodes (
    eventKeyCode,
    key,
    builtInAlias,
    eventKeyName
  ) {
    var keyCodes = config.keyCodes[key] || builtInAlias;
    if (keyCodes) {
      if (Array.isArray(keyCodes)) {
        return keyCodes.indexOf(eventKeyCode) === -1
      } else {
        return keyCodes !== eventKeyCode
      }
    } else if (eventKeyName) {
      return hyphenate(eventKeyName) !== key
    }
  }
  
  /*  */
  
  /**
   * Runtime helper for merging v-bind="object" into a VNode's data.
   */
  function bindObjectProps (
    data,
    tag,
    value,
    asProp,
    isSync
  ) {
    if (value) {
      if (!isObject(value)) {
        "development" !== 'production' && warn(
          'v-bind without argument expects an Object or Array value',
          this
        );
      } else {
        if (Array.isArray(value)) {
          value = toObject(value);
        }
        var hash;
        var loop = function ( key ) {
          if (
            key === 'class' ||
            key === 'style' ||
            isReservedAttribute(key)
          ) {
            hash = data;
          } else {
            var type = data.attrs && data.attrs.type;
            hash = asProp || config.mustUseProp(tag, type, key)
              ? data.domProps || (data.domProps = {})
              : data.attrs || (data.attrs = {});
          }
          if (!(key in hash)) {
            hash[key] = value[key];
  
            if (isSync) {
              var on = data.on || (data.on = {});
              on[("update:" + key)] = function ($event) {
                value[key] = $event;
              };
            }
          }
        };
  
        for (var key in value) loop( key );
      }
    }
    return data
  }
  
  /*  */
  
  /**
   * Runtime helper for rendering static trees.
   */
  function renderStatic (
    index,
    isInFor
  ) {
    var cached = this._staticTrees || (this._staticTrees = []);
    var tree = cached[index];
    // if has already-rendered static tree and not inside v-for,
    // we can reuse the same tree by doing a shallow clone.
    if (tree && !isInFor) {
      return Array.isArray(tree)
        ? cloneVNodes(tree)
        : cloneVNode(tree)
    }
    // otherwise, render a fresh tree.
    tree = cached[index] = this.$options.staticRenderFns[index].call(
      this._renderProxy,
      null,
      this // for render fns generated for functional component templates
    );
    markStatic(tree, ("__static__" + index), false);
    return tree
  }
  
  /**
   * Runtime helper for v-once.
   * Effectively it means marking the node as static with a unique key.
   */
  function markOnce (
    tree,
    index,
    key
  ) {
    markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
    return tree
  }
  
  function markStatic (
    tree,
    key,
    isOnce
  ) {
    if (Array.isArray(tree)) {
      for (var i = 0; i < tree.length; i++) {
        if (tree[i] && typeof tree[i] !== 'string') {
          markStaticNode(tree[i], (key + "_" + i), isOnce);
        }
      }
    } else {
      markStaticNode(tree, key, isOnce);
    }
  }
  
  function markStaticNode (node, key, isOnce) {
    node.isStatic = true;
    node.key = key;
    node.isOnce = isOnce;
  }
  
  /*  */
  
  function bindObjectListeners (data, value) {
    if (value) {
      if (!isPlainObject(value)) {
        "development" !== 'production' && warn(
          'v-on without argument expects an Object value',
          this
        );
      } else {
        var on = data.on = data.on ? extend({}, data.on) : {};
        for (var key in value) {
          var existing = on[key];
          var ours = value[key];
          on[key] = existing ? [].concat(existing, ours) : ours;
        }
      }
    }
    return data
  }
  
  /*  */
  
  function installRenderHelpers (target) {
    target._o = markOnce;
    target._n = toNumber;
    target._s = toString;
    target._l = renderList;
    target._t = renderSlot;
    target._q = looseEqual;
    target._i = looseIndexOf;
    target._m = renderStatic;
    target._f = resolveFilter;
    target._k = checkKeyCodes;
    target._b = bindObjectProps;
    target._v = createTextVNode;
    target._e = createEmptyVNode;
    target._u = resolveScopedSlots;
    target._g = bindObjectListeners;
  }
  
  /*  */
  
  function FunctionalRenderContext (
    data,
    props,
    children,
    parent,
    Ctor
  ) {
    var options = Ctor.options;
    this.data = data;
    this.props = props;
    this.children = children;
    this.parent = parent;
    this.listeners = data.on || emptyObject;
    this.injections = resolveInject(options.inject, parent);
    this.slots = function () { return resolveSlots(children, parent); };
  
    // ensure the createElement function in functional components
    // gets a unique context - this is necessary for correct named slot check
    var contextVm = Object.create(parent);
    var isCompiled = isTrue(options._compiled);
    var needNormalization = !isCompiled;
  
    // support for compiled functional template
    if (isCompiled) {
      // exposing $options for renderStatic()
      this.$options = options;
      // pre-resolve slots for renderSlot()
      this.$slots = this.slots();
      this.$scopedSlots = data.scopedSlots || emptyObject;
    }
  
    if (options._scopeId) {
      this._c = function (a, b, c, d) {
        var vnode = createElement(contextVm, a, b, c, d, needNormalization);
        if (vnode) {
          vnode.fnScopeId = options._scopeId;
          vnode.fnContext = parent;
        }
        return vnode
      };
    } else {
      this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
    }
  }
  
  installRenderHelpers(FunctionalRenderContext.prototype);
  
  function createFunctionalComponent (
    Ctor,
    propsData,
    data,
    contextVm,
    children
  ) {
    var options = Ctor.options;
    var props = {};
    var propOptions = options.props;
    if (isDef(propOptions)) {
      for (var key in propOptions) {
        props[key] = validateProp(key, propOptions, propsData || emptyObject);
      }
    } else {
      if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
      if (isDef(data.props)) { mergeProps(props, data.props); }
    }
  
    var renderContext = new FunctionalRenderContext(
      data,
      props,
      children,
      contextVm,
      Ctor
    );
  
    var vnode = options.render.call(null, renderContext._c, renderContext);
  
    if (vnode instanceof VNode) {
      vnode.fnContext = contextVm;
      vnode.fnOptions = options;
      if (data.slot) {
        (vnode.data || (vnode.data = {})).slot = data.slot;
      }
    }
  
    return vnode
  }
  
  function mergeProps (to, from) {
    for (var key in from) {
      to[camelize(key)] = from[key];
    }
  }
  
  /*  */
  
  
  
  
  // Register the component hook to weex native render engine.
  // The hook will be triggered by native, not javascript.
  
  
  // Updates the state of the component to weex native render engine.
  
  /*  */
  
  // https://github.com/Hanks10100/weex-native-directive/tree/master/component
  
  // listening on native callback
  
  /*  */
  
  /*  */
  
  // hooks to be invoked on component VNodes during patch
  var componentVNodeHooks = {
    init: function init (
      vnode,
      hydrating,
      parentElm,
      refElm
    ) {
      if (!vnode.componentInstance || vnode.componentInstance._isDestroyed) {
        var child = vnode.componentInstance = createComponentInstanceForVnode(
          vnode,
          activeInstance,
          parentElm,
          refElm
        );
        child.$mount(hydrating ? vnode.elm : undefined, hydrating);
      } else if (vnode.data.keepAlive) {
        // kept-alive components, treat as a patch
        var mountedNode = vnode; // work around flow
        componentVNodeHooks.prepatch(mountedNode, mountedNode);
      }
    },
  
    prepatch: function prepatch (oldVnode, vnode) {
      var options = vnode.componentOptions;
      var child = vnode.componentInstance = oldVnode.componentInstance;
      updateChildComponent(
        child,
        options.propsData, // updated props
        options.listeners, // updated listeners
        vnode, // new parent vnode
        options.children // new children
      );
    },
  
    insert: function insert (vnode) {
      var context = vnode.context;
      var componentInstance = vnode.componentInstance;
      if (!componentInstance._isMounted) {
        componentInstance._isMounted = true;
        callHook(componentInstance, 'mounted');
      }
      if (vnode.data.keepAlive) {
        if (context._isMounted) {
          // vue-router#1212
          // During updates, a kept-alive component's child components may
          // change, so directly walking the tree here may call activated hooks
          // on incorrect children. Instead we push them into a queue which will
          // be processed after the whole patch process ended.
          queueActivatedComponent(componentInstance);
        } else {
          activateChildComponent(componentInstance, true /* direct */);
        }
      }
    },
  
    destroy: function destroy (vnode) {
      var componentInstance = vnode.componentInstance;
      if (!componentInstance._isDestroyed) {
        if (!vnode.data.keepAlive) {
          componentInstance.$destroy();
        } else {
          deactivateChildComponent(componentInstance, true /* direct */);
        }
      }
    }
  };
  
  var hooksToMerge = Object.keys(componentVNodeHooks);
  
  function createComponent (
    Ctor,
    data,
    context,
    children,
    tag
  ) {
    if (isUndef(Ctor)) {
      return
    }
  
    var baseCtor = context.$options._base;
  
    // plain options object: turn it into a constructor
    if (isObject(Ctor)) {
      Ctor = baseCtor.extend(Ctor);
    }
  
    // if at this stage it's not a constructor or an async component factory,
    // reject.
    if (typeof Ctor !== 'function') {
      if (true) {
        warn(("Invalid Component definition: " + (String(Ctor))), context);
      }
      return
    }
  
    // async component
    var asyncFactory;
    if (isUndef(Ctor.cid)) {
      asyncFactory = Ctor;
      Ctor = resolveAsyncComponent(asyncFactory, baseCtor, context);
      if (Ctor === undefined) {
        // return a placeholder node for async component, which is rendered
        // as a comment node but preserves all the raw information for the node.
        // the information will be used for async server-rendering and hydration.
        return createAsyncPlaceholder(
          asyncFactory,
          data,
          context,
          children,
          tag
        )
      }
    }
  
    data = data || {};
  
    // resolve constructor options in case global mixins are applied after
    // component constructor creation
    resolveConstructorOptions(Ctor);
  
    // transform component v-model data into props & events
    if (isDef(data.model)) {
      transformModel(Ctor.options, data);
    }
  
    // extract props
    var propsData = extractPropsFromVNodeData(data, Ctor, tag);
  
    // functional component
    if (isTrue(Ctor.options.functional)) {
      return createFunctionalComponent(Ctor, propsData, data, context, children)
    }
  
    // extract listeners, since these needs to be treated as
    // child component listeners instead of DOM listeners
    var listeners = data.on;
    // replace with listeners with .native modifier
    // so it gets processed during parent component patch.
    data.on = data.nativeOn;
  
    if (isTrue(Ctor.options.abstract)) {
      // abstract components do not keep anything
      // other than props & listeners & slot
  
      // work around flow
      var slot = data.slot;
      data = {};
      if (slot) {
        data.slot = slot;
      }
    }
  
    // merge component management hooks onto the placeholder node
    mergeHooks(data);
  
    // return a placeholder vnode
    var name = Ctor.options.name || tag;
    var vnode = new VNode(
      ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
      data, undefined, undefined, undefined, context,
      { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
      asyncFactory
    );
  
    // Weex specific: invoke recycle-list optimized @render function for
    // extracting cell-slot template.
    // https://github.com/Hanks10100/weex-native-directive/tree/master/component
    /* istanbul ignore if */
    return vnode
  }
  
  function createComponentInstanceForVnode (
    vnode, // we know it's MountedComponentVNode but flow doesn't
    parent, // activeInstance in lifecycle state
    parentElm,
    refElm
  ) {
    var options = {
      _isComponent: true,
      parent: parent,
      _parentVnode: vnode,
      _parentElm: parentElm || null,
      _refElm: refElm || null
    };
    // check inline-template render functions
    var inlineTemplate = vnode.data.inlineTemplate;
    if (isDef(inlineTemplate)) {
      options.render = inlineTemplate.render;
      options.staticRenderFns = inlineTemplate.staticRenderFns;
    }
    return new vnode.componentOptions.Ctor(options)
  }
  
  function mergeHooks (data) {
    if (!data.hook) {
      data.hook = {};
    }
    for (var i = 0; i < hooksToMerge.length; i++) {
      var key = hooksToMerge[i];
      var fromParent = data.hook[key];
      var ours = componentVNodeHooks[key];
      data.hook[key] = fromParent ? mergeHook$1(ours, fromParent) : ours;
    }
  }
  
  function mergeHook$1 (one, two) {
    return function (a, b, c, d) {
      one(a, b, c, d);
      two(a, b, c, d);
    }
  }
  
  // transform component v-model info (value and callback) into
  // prop and event handler respectively.
  function transformModel (options, data) {
    var prop = (options.model && options.model.prop) || 'value';
    var event = (options.model && options.model.event) || 'input';(data.props || (data.props = {}))[prop] = data.model.value;
    var on = data.on || (data.on = {});
    if (isDef(on[event])) {
      on[event] = [data.model.callback].concat(on[event]);
    } else {
      on[event] = data.model.callback;
    }
  }
  
  /*  */
  
  var SIMPLE_NORMALIZE = 1;
  var ALWAYS_NORMALIZE = 2;
  
  // wrapper function for providing a more flexible interface
  // without getting yelled at by flow
  function createElement (
    context,
    tag,
    data,
    children,
    normalizationType,
    alwaysNormalize
  ) {
    if (Array.isArray(data) || isPrimitive(data)) {
      normalizationType = children;
      children = data;
      data = undefined;
    }
    if (isTrue(alwaysNormalize)) {
      normalizationType = ALWAYS_NORMALIZE;
    }
    return _createElement(context, tag, data, children, normalizationType)
  }
  
  function _createElement (
    context,
    tag,
    data,
    children,
    normalizationType
  ) {
    if (isDef(data) && isDef((data).__ob__)) {
      "development" !== 'production' && warn(
        "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
        'Always create fresh vnode data objects in each render!',
        context
      );
      return createEmptyVNode()
    }
    // object syntax in v-bind
    if (isDef(data) && isDef(data.is)) {
      tag = data.is;
    }
    if (!tag) {
      // in case of component :is set to falsy value
      return createEmptyVNode()
    }
    // warn against non-primitive key
    if ("development" !== 'production' &&
      isDef(data) && isDef(data.key) && !isPrimitive(data.key)
    ) {
      {
        warn(
          'Avoid using non-primitive value as key, ' +
          'use string/number value instead.',
          context
        );
      }
    }
    // support single function children as default scoped slot
    if (Array.isArray(children) &&
      typeof children[0] === 'function'
    ) {
      data = data || {};
      data.scopedSlots = { default: children[0] };
      children.length = 0;
    }
    if (normalizationType === ALWAYS_NORMALIZE) {
      children = normalizeChildren(children);
    } else if (normalizationType === SIMPLE_NORMALIZE) {
      children = simpleNormalizeChildren(children);
    }
    var vnode, ns;
    if (typeof tag === 'string') {
      var Ctor;
      ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
      if (config.isReservedTag(tag)) {
        // platform built-in elements
        vnode = new VNode(
          config.parsePlatformTagName(tag), data, children,
          undefined, undefined, context
        );
      } else if (isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
        // component
        vnode = createComponent(Ctor, data, context, children, tag);
      } else {
        // unknown or unlisted namespaced elements
        // check at runtime because it may get assigned a namespace when its
        // parent normalizes children
        vnode = new VNode(
          tag, data, children,
          undefined, undefined, context
        );
      }
    } else {
      // direct component options / constructor
      vnode = createComponent(tag, data, context, children);
    }
    if (isDef(vnode)) {
      if (ns) { applyNS(vnode, ns); }
      return vnode
    } else {
      return createEmptyVNode()
    }
  }
  
  function applyNS (vnode, ns, force) {
    vnode.ns = ns;
    if (vnode.tag === 'foreignObject') {
      // use default namespace inside foreignObject
      ns = undefined;
      force = true;
    }
    if (isDef(vnode.children)) {
      for (var i = 0, l = vnode.children.length; i < l; i++) {
        var child = vnode.children[i];
        if (isDef(child.tag) && (isUndef(child.ns) || isTrue(force))) {
          applyNS(child, ns, force);
        }
      }
    }
  }
  
  /*  */
  
  function initRender (vm) {
    vm._vnode = null; // the root of the child tree
    vm._staticTrees = null; // v-once cached trees
    var options = vm.$options;
    var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
    var renderContext = parentVnode && parentVnode.context;
    vm.$slots = resolveSlots(options._renderChildren, renderContext);
    vm.$scopedSlots = emptyObject;
    // bind the createElement fn to this instance
    // so that we get proper render context inside it.
    // args order: tag, data, children, normalizationType, alwaysNormalize
    // internal version is used by render functions compiled from templates
    vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
    // normalization is always applied for the public version, used in
    // user-written render functions.
    vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
  
    // $attrs & $listeners are exposed for easier HOC creation.
    // they need to be reactive so that HOCs using them are always updated
    var parentData = parentVnode && parentVnode.data;
  
    /* istanbul ignore else */
    if (true) {
      defineReactive(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
        !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
      }, true);
      defineReactive(vm, '$listeners', options._parentListeners || emptyObject, function () {
        !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
      }, true);
    } else {
      defineReactive(vm, '$attrs', parentData && parentData.attrs || emptyObject, null, true);
      defineReactive(vm, '$listeners', options._parentListeners || emptyObject, null, true);
    }
  }
  
  function renderMixin (Vue) {
    // install runtime convenience helpers
    installRenderHelpers(Vue.prototype);
  
    Vue.prototype.$nextTick = function (fn) {
      return nextTick(fn, this)
    };
  
    Vue.prototype._render = function () {
      var vm = this;
      var ref = vm.$options;
      var render = ref.render;
      var _parentVnode = ref._parentVnode;
  
      if (vm._isMounted) {
        // if the parent didn't update, the slot nodes will be the ones from
        // last render. They need to be cloned to ensure "freshness" for this render.
        for (var key in vm.$slots) {
          var slot = vm.$slots[key];
          // _rendered is a flag added by renderSlot, but may not be present
          // if the slot is passed from manually written render functions
          if (slot._rendered || (slot[0] && slot[0].elm)) {
            vm.$slots[key] = cloneVNodes(slot, true /* deep */);
          }
        }
      }
  
      vm.$scopedSlots = (_parentVnode && _parentVnode.data.scopedSlots) || emptyObject;
  
      // set parent vnode. this allows render functions to have access
      // to the data on the placeholder node.
      vm.$vnode = _parentVnode;
      // render self
      var vnode;
      try {
        vnode = render.call(vm._renderProxy, vm.$createElement);
      } catch (e) {
        handleError(e, vm, "render");
        // return error render result,
        // or previous vnode to prevent render error causing blank component
        /* istanbul ignore else */
        if (true) {
          if (vm.$options.renderError) {
            try {
              vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
            } catch (e) {
              handleError(e, vm, "renderError");
              vnode = vm._vnode;
            }
          } else {
            vnode = vm._vnode;
          }
        } else {
          vnode = vm._vnode;
        }
      }
      // return empty vnode in case the render function errored out
      if (!(vnode instanceof VNode)) {
        if ("development" !== 'production' && Array.isArray(vnode)) {
          warn(
            'Multiple root nodes returned from render function. Render function ' +
            'should return a single root node.',
            vm
          );
        }
        vnode = createEmptyVNode();
      }
      // set parent
      vnode.parent = _parentVnode;
      return vnode
    };
  }
  
  /*  */
  
  var uid$1 = 0;
  
  function initMixin (Vue) {
    Vue.prototype._init = function (options) {
      var vm = this;
      // a uid
      vm._uid = uid$1++;
  
      var startTag, endTag;
      /* istanbul ignore if */
      if ("development" !== 'production' && config.performance && mark) {
        startTag = "vue-perf-start:" + (vm._uid);
        endTag = "vue-perf-end:" + (vm._uid);
        mark(startTag);
      }
  
      // a flag to avoid this being observed
      vm._isVue = true;
      // merge options
      if (options && options._isComponent) {
        // optimize internal component instantiation
        // since dynamic options merging is pretty slow, and none of the
        // internal component options needs special treatment.
        initInternalComponent(vm, options);
      } else {
        vm.$options = mergeOptions(
          resolveConstructorOptions(vm.constructor),
          options || {},
          vm
        );
      }
      /* istanbul ignore else */
      if (true) {
        initProxy(vm);
      } else {
        vm._renderProxy = vm;
      }
      // expose real self
      vm._self = vm;
      initLifecycle(vm);
      initEvents(vm);
      initRender(vm);
      callHook(vm, 'beforeCreate');
      initInjections(vm); // resolve injections before data/props
      initState(vm);
      initProvide(vm); // resolve provide after data/props
      callHook(vm, 'created');
  
      /* istanbul ignore if */
      if ("development" !== 'production' && config.performance && mark) {
        vm._name = formatComponentName(vm, false);
        mark(endTag);
        measure(("vue " + (vm._name) + " init"), startTag, endTag);
      }
  
      if (vm.$options.el) {
        vm.$mount(vm.$options.el);
      }
    };
  }
  
  function initInternalComponent (vm, options) {
    var opts = vm.$options = Object.create(vm.constructor.options);
    // doing this because it's faster than dynamic enumeration.
    var parentVnode = options._parentVnode;
    opts.parent = options.parent;
    opts._parentVnode = parentVnode;
    opts._parentElm = options._parentElm;
    opts._refElm = options._refElm;
  
    var vnodeComponentOptions = parentVnode.componentOptions;
    opts.propsData = vnodeComponentOptions.propsData;
    opts._parentListeners = vnodeComponentOptions.listeners;
    opts._renderChildren = vnodeComponentOptions.children;
    opts._componentTag = vnodeComponentOptions.tag;
  
    if (options.render) {
      opts.render = options.render;
      opts.staticRenderFns = options.staticRenderFns;
    }
  }
  
  function resolveConstructorOptions (Ctor) {
    var options = Ctor.options;
    if (Ctor.super) {
      var superOptions = resolveConstructorOptions(Ctor.super);
      var cachedSuperOptions = Ctor.superOptions;
      if (superOptions !== cachedSuperOptions) {
        // super option changed,
        // need to resolve new options.
        Ctor.superOptions = superOptions;
        // check if there are any late-modified/attached options (#4976)
        var modifiedOptions = resolveModifiedOptions(Ctor);
        // update base extend options
        if (modifiedOptions) {
          extend(Ctor.extendOptions, modifiedOptions);
        }
        options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
        if (options.name) {
          options.components[options.name] = Ctor;
        }
      }
    }
    return options
  }
  
  function resolveModifiedOptions (Ctor) {
    var modified;
    var latest = Ctor.options;
    var extended = Ctor.extendOptions;
    var sealed = Ctor.sealedOptions;
    for (var key in latest) {
      if (latest[key] !== sealed[key]) {
        if (!modified) { modified = {}; }
        modified[key] = dedupe(latest[key], extended[key], sealed[key]);
      }
    }
    return modified
  }
  
  function dedupe (latest, extended, sealed) {
    // compare latest and sealed to ensure lifecycle hooks won't be duplicated
    // between merges
    if (Array.isArray(latest)) {
      var res = [];
      sealed = Array.isArray(sealed) ? sealed : [sealed];
      extended = Array.isArray(extended) ? extended : [extended];
      for (var i = 0; i < latest.length; i++) {
        // push original options and not sealed options to exclude duplicated options
        if (extended.indexOf(latest[i]) >= 0 || sealed.indexOf(latest[i]) < 0) {
          res.push(latest[i]);
        }
      }
      return res
    } else {
      return latest
    }
  }
  
  function Vue$3 (options) {
    if ("development" !== 'production' &&
      !(this instanceof Vue$3)
    ) {
      warn('Vue is a constructor and should be called with the `new` keyword');
    }
    this._init(options);
  }
  
  initMixin(Vue$3);
  stateMixin(Vue$3);
  eventsMixin(Vue$3);
  lifecycleMixin(Vue$3);
  renderMixin(Vue$3);
  
  /*  */
  
  function initUse (Vue) {
    Vue.use = function (plugin) {
      var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
      if (installedPlugins.indexOf(plugin) > -1) {
        return this
      }
  
      // additional parameters
      var args = toArray(arguments, 1);
      args.unshift(this);
      if (typeof plugin.install === 'function') {
        plugin.install.apply(plugin, args);
      } else if (typeof plugin === 'function') {
        plugin.apply(null, args);
      }
      installedPlugins.push(plugin);
      return this
    };
  }
  
  /*  */
  
  function initMixin$1 (Vue) {
    Vue.mixin = function (mixin) {
      this.options = mergeOptions(this.options, mixin);
      return this
    };
  }
  
  /*  */
  
  function initExtend (Vue) {
    /**
     * Each instance constructor, including Vue, has a unique
     * cid. This enables us to create wrapped "child
     * constructors" for prototypal inheritance and cache them.
     */
    Vue.cid = 0;
    var cid = 1;
  
    /**
     * Class inheritance
     */
    Vue.extend = function (extendOptions) {
      extendOptions = extendOptions || {};
      var Super = this;
      var SuperId = Super.cid;
      var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
      if (cachedCtors[SuperId]) {
        return cachedCtors[SuperId]
      }
  
      var name = extendOptions.name || Super.options.name;
      if ("development" !== 'production' && name) {
        validateComponentName(name);
      }
  
      var Sub = function VueComponent (options) {
        this._init(options);
      };
      Sub.prototype = Object.create(Super.prototype);
      Sub.prototype.constructor = Sub;
      Sub.cid = cid++;
      Sub.options = mergeOptions(
        Super.options,
        extendOptions
      );
      Sub['super'] = Super;
  
      // For props and computed properties, we define the proxy getters on
      // the Vue instances at extension time, on the extended prototype. This
      // avoids Object.defineProperty calls for each instance created.
      if (Sub.options.props) {
        initProps$1(Sub);
      }
      if (Sub.options.computed) {
        initComputed$1(Sub);
      }
  
      // allow further extension/mixin/plugin usage
      Sub.extend = Super.extend;
      Sub.mixin = Super.mixin;
      Sub.use = Super.use;
  
      // create asset registers, so extended classes
      // can have their private assets too.
      ASSET_TYPES.forEach(function (type) {
        Sub[type] = Super[type];
      });
      // enable recursive self-lookup
      if (name) {
        Sub.options.components[name] = Sub;
      }
  
      // keep a reference to the super options at extension time.
      // later at instantiation we can check if Super's options have
      // been updated.
      Sub.superOptions = Super.options;
      Sub.extendOptions = extendOptions;
      Sub.sealedOptions = extend({}, Sub.options);
  
      // cache constructor
      cachedCtors[SuperId] = Sub;
      return Sub
    };
  }
  
  function initProps$1 (Comp) {
    var props = Comp.options.props;
    for (var key in props) {
      proxy(Comp.prototype, "_props", key);
    }
  }
  
  function initComputed$1 (Comp) {
    var computed = Comp.options.computed;
    for (var key in computed) {
      defineComputed(Comp.prototype, key, computed[key]);
    }
  }
  
  /*  */
  
  function initAssetRegisters (Vue) {
    /**
     * Create asset registration methods.
     */
    ASSET_TYPES.forEach(function (type) {
      Vue[type] = function (
        id,
        definition
      ) {
        if (!definition) {
          return this.options[type + 's'][id]
        } else {
          /* istanbul ignore if */
          if ("development" !== 'production' && type === 'component') {
            validateComponentName(id);
          }
          if (type === 'component' && isPlainObject(definition)) {
            definition.name = definition.name || id;
            definition = this.options._base.extend(definition);
          }
          if (type === 'directive' && typeof definition === 'function') {
            definition = { bind: definition, update: definition };
          }
          this.options[type + 's'][id] = definition;
          return definition
        }
      };
    });
  }
  
  /*  */
  
  function getComponentName (opts) {
    return opts && (opts.Ctor.options.name || opts.tag)
  }
  
  function matches (pattern, name) {
    if (Array.isArray(pattern)) {
      return pattern.indexOf(name) > -1
    } else if (typeof pattern === 'string') {
      return pattern.split(',').indexOf(name) > -1
    } else if (isRegExp(pattern)) {
      return pattern.test(name)
    }
    /* istanbul ignore next */
    return false
  }
  
  function pruneCache (keepAliveInstance, filter) {
    var cache = keepAliveInstance.cache;
    var keys = keepAliveInstance.keys;
    var _vnode = keepAliveInstance._vnode;
    for (var key in cache) {
      var cachedNode = cache[key];
      if (cachedNode) {
        var name = getComponentName(cachedNode.componentOptions);
        if (name && !filter(name)) {
          pruneCacheEntry(cache, key, keys, _vnode);
        }
      }
    }
  }
  
  function pruneCacheEntry (
    cache,
    key,
    keys,
    current
  ) {
    var cached$$1 = cache[key];
    if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
      cached$$1.componentInstance.$destroy();
    }
    cache[key] = null;
    remove(keys, key);
  }
  
  var patternTypes = [String, RegExp, Array];
  
  var KeepAlive = {
    name: 'keep-alive',
    abstract: true,
  
    props: {
      include: patternTypes,
      exclude: patternTypes,
      max: [String, Number]
    },
  
    created: function created () {
      this.cache = Object.create(null);
      this.keys = [];
    },
  
    destroyed: function destroyed () {
      var this$1 = this;
  
      for (var key in this$1.cache) {
        pruneCacheEntry(this$1.cache, key, this$1.keys);
      }
    },
  
    watch: {
      include: function include (val) {
        pruneCache(this, function (name) { return matches(val, name); });
      },
      exclude: function exclude (val) {
        pruneCache(this, function (name) { return !matches(val, name); });
      }
    },
  
    render: function render () {
      var slot = this.$slots.default;
      var vnode = getFirstComponentChild(slot);
      var componentOptions = vnode && vnode.componentOptions;
      if (componentOptions) {
        // check pattern
        var name = getComponentName(componentOptions);
        var ref = this;
        var include = ref.include;
        var exclude = ref.exclude;
        if (
          // not included
          (include && (!name || !matches(include, name))) ||
          // excluded
          (exclude && name && matches(exclude, name))
        ) {
          return vnode
        }
  
        var ref$1 = this;
        var cache = ref$1.cache;
        var keys = ref$1.keys;
        var key = vnode.key == null
          // same constructor may get registered as different local components
          // so cid alone is not enough (#3269)
          ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
          : vnode.key;
        if (cache[key]) {
          vnode.componentInstance = cache[key].componentInstance;
          // make current key freshest
          remove(keys, key);
          keys.push(key);
        } else {
          cache[key] = vnode;
          keys.push(key);
          // prune oldest entry
          if (this.max && keys.length > parseInt(this.max)) {
            pruneCacheEntry(cache, keys[0], keys, this._vnode);
          }
        }
  
        vnode.data.keepAlive = true;
      }
      return vnode || (slot && slot[0])
    }
  };
  
  var builtInComponents = {
    KeepAlive: KeepAlive
  };
  
  /*  */
  
  function initGlobalAPI (Vue) {
    // config
    var configDef = {};
    configDef.get = function () { return config; };
    if (true) {
      configDef.set = function () {
        warn(
          'Do not replace the Vue.config object, set individual fields instead.'
        );
      };
    }
    Object.defineProperty(Vue, 'config', configDef);
  
    // exposed util methods.
    // NOTE: these are not considered part of the public API - avoid relying on
    // them unless you are aware of the risk.
    Vue.util = {
      warn: warn,
      extend: extend,
      mergeOptions: mergeOptions,
      defineReactive: defineReactive
    };
  
    Vue.set = set;
    Vue.delete = del;
    Vue.nextTick = nextTick;
  
    Vue.options = Object.create(null);
    ASSET_TYPES.forEach(function (type) {
      Vue.options[type + 's'] = Object.create(null);
    });
  
    // this is used to identify the "base" constructor to extend all plain-object
    // components with in Weex's multi-instance scenarios.
    Vue.options._base = Vue;
  
    extend(Vue.options.components, builtInComponents);
  
    initUse(Vue);
    initMixin$1(Vue);
    initExtend(Vue);
    initAssetRegisters(Vue);
  }
  
  initGlobalAPI(Vue$3);
  
  Object.defineProperty(Vue$3.prototype, '$isServer', {
    get: isServerRendering
  });
  
  Object.defineProperty(Vue$3.prototype, '$ssrContext', {
    get: function get () {
      /* istanbul ignore next */
      return this.$vnode && this.$vnode.ssrContext
    }
  });
  
  Vue$3.version = '2.5.13';
  
  /*  */
  
  // these are reserved for web because they are directly compiled away
  // during template compilation
  var isReservedAttr = makeMap('style,class');
  
  // attributes that should be using props for binding
  var acceptValue = makeMap('input,textarea,option,select,progress');
  var mustUseProp = function (tag, type, attr) {
    return (
      (attr === 'value' && acceptValue(tag)) && type !== 'button' ||
      (attr === 'selected' && tag === 'option') ||
      (attr === 'checked' && tag === 'input') ||
      (attr === 'muted' && tag === 'video')
    )
  };
  
  var isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');
  
  var isBooleanAttr = makeMap(
    'allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,' +
    'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +
    'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +
    'muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,' +
    'required,reversed,scoped,seamless,selected,sortable,translate,' +
    'truespeed,typemustmatch,visible'
  );
  
  var xlinkNS = 'http://www.w3.org/1999/xlink';
  
  var isXlink = function (name) {
    return name.charAt(5) === ':' && name.slice(0, 5) === 'xlink'
  };
  
  var getXlinkProp = function (name) {
    return isXlink(name) ? name.slice(6, name.length) : ''
  };
  
  var isFalsyAttrValue = function (val) {
    return val == null || val === false
  };
  
  /*  */
  
  function genClassForVnode (vnode) {
    var data = vnode.data;
    var parentNode = vnode;
    var childNode = vnode;
    while (isDef(childNode.componentInstance)) {
      childNode = childNode.componentInstance._vnode;
      if (childNode && childNode.data) {
        data = mergeClassData(childNode.data, data);
      }
    }
    while (isDef(parentNode = parentNode.parent)) {
      if (parentNode && parentNode.data) {
        data = mergeClassData(data, parentNode.data);
      }
    }
    return renderClass(data.staticClass, data.class)
  }
  
  function mergeClassData (child, parent) {
    return {
      staticClass: concat(child.staticClass, parent.staticClass),
      class: isDef(child.class)
        ? [child.class, parent.class]
        : parent.class
    }
  }
  
  function renderClass (
    staticClass,
    dynamicClass
  ) {
    if (isDef(staticClass) || isDef(dynamicClass)) {
      return concat(staticClass, stringifyClass(dynamicClass))
    }
    /* istanbul ignore next */
    return ''
  }
  
  function concat (a, b) {
    return a ? b ? (a + ' ' + b) : a : (b || '')
  }
  
  function stringifyClass (value) {
    if (Array.isArray(value)) {
      return stringifyArray(value)
    }
    if (isObject(value)) {
      return stringifyObject(value)
    }
    if (typeof value === 'string') {
      return value
    }
    /* istanbul ignore next */
    return ''
  }
  
  function stringifyArray (value) {
    var res = '';
    var stringified;
    for (var i = 0, l = value.length; i < l; i++) {
      if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
        if (res) { res += ' '; }
        res += stringified;
      }
    }
    return res
  }
  
  function stringifyObject (value) {
    var res = '';
    for (var key in value) {
      if (value[key]) {
        if (res) { res += ' '; }
        res += key;
      }
    }
    return res
  }
  
  /*  */
  
  var namespaceMap = {
    svg: 'http://www.w3.org/2000/svg',
    math: 'http://www.w3.org/1998/Math/MathML'
  };
  
  var isHTMLTag = makeMap(
    'html,body,base,head,link,meta,style,title,' +
    'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
    'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
    'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +
    's,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,' +
    'embed,object,param,source,canvas,script,noscript,del,ins,' +
    'caption,col,colgroup,table,thead,tbody,td,th,tr,' +
    'button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,' +
    'output,progress,select,textarea,' +
    'details,dialog,menu,menuitem,summary,' +
    'content,element,shadow,template,blockquote,iframe,tfoot'
  );
  
  // this map is intentionally selective, only covering SVG elements that may
  // contain child elements.
  var isSVG = makeMap(
    'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
    'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
    'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
    true
  );
  
  var isPreTag = function (tag) { return tag === 'pre'; };
  
  var isReservedTag = function (tag) {
    return isHTMLTag(tag) || isSVG(tag)
  };
  
  function getTagNamespace (tag) {
    if (isSVG(tag)) {
      return 'svg'
    }
    // basic support for MathML
    // note it doesn't support other MathML elements being component roots
    if (tag === 'math') {
      return 'math'
    }
  }
  
  var unknownElementCache = Object.create(null);
  function isUnknownElement (tag) {
    /* istanbul ignore if */
    if (!inBrowser) {
      return true
    }
    if (isReservedTag(tag)) {
      return false
    }
    tag = tag.toLowerCase();
    /* istanbul ignore if */
    if (unknownElementCache[tag] != null) {
      return unknownElementCache[tag]
    }
    var el = document.createElement(tag);
    if (tag.indexOf('-') > -1) {
      // http://stackoverflow.com/a/28210364/1070244
      return (unknownElementCache[tag] = (
        el.constructor === window.HTMLUnknownElement ||
        el.constructor === window.HTMLElement
      ))
    } else {
      return (unknownElementCache[tag] = /HTMLUnknownElement/.test(el.toString()))
    }
  }
  
  var isTextInputType = makeMap('text,number,password,search,email,tel,url');
  
  /*  */
  
  /**
   * Query an element selector if it's not an element already.
   */
  function query (el) {
    if (typeof el === 'string') {
      var selected = document.querySelector(el);
      if (!selected) {
        "development" !== 'production' && warn(
          'Cannot find element: ' + el
        );
        return document.createElement('div')
      }
      return selected
    } else {
      return el
    }
  }
  
  /*  */
  
  function createElement$1 (tagName, vnode) {
    var elm = document.createElement(tagName);
    if (tagName !== 'select') {
      return elm
    }
    // false or null will remove the attribute but undefined will not
    if (vnode.data && vnode.data.attrs && vnode.data.attrs.multiple !== undefined) {
      elm.setAttribute('multiple', 'multiple');
    }
    return elm
  }
  
  function createElementNS (namespace, tagName) {
    return document.createElementNS(namespaceMap[namespace], tagName)
  }
  
  function createTextNode (text) {
    return document.createTextNode(text)
  }
  
  function createComment (text) {
    return document.createComment(text)
  }
  
  function insertBefore (parentNode, newNode, referenceNode) {
    parentNode.insertBefore(newNode, referenceNode);
  }
  
  function removeChild (node, child) {
    node.removeChild(child);
  }
  
  function appendChild (node, child) {
    node.appendChild(child);
  }
  
  function parentNode (node) {
    return node.parentNode
  }
  
  function nextSibling (node) {
    return node.nextSibling
  }
  
  function tagName (node) {
    return node.tagName
  }
  
  function setTextContent (node, text) {
    node.textContent = text;
  }
  
  function setAttribute (node, key, val) {
    node.setAttribute(key, val);
  }
  
  
  var nodeOps = Object.freeze({
  	createElement: createElement$1,
  	createElementNS: createElementNS,
  	createTextNode: createTextNode,
  	createComment: createComment,
  	insertBefore: insertBefore,
  	removeChild: removeChild,
  	appendChild: appendChild,
  	parentNode: parentNode,
  	nextSibling: nextSibling,
  	tagName: tagName,
  	setTextContent: setTextContent,
  	setAttribute: setAttribute
  });
  
  /*  */
  
  var ref = {
    create: function create (_, vnode) {
      registerRef(vnode);
    },
    update: function update (oldVnode, vnode) {
      if (oldVnode.data.ref !== vnode.data.ref) {
        registerRef(oldVnode, true);
        registerRef(vnode);
      }
    },
    destroy: function destroy (vnode) {
      registerRef(vnode, true);
    }
  };
  
  function registerRef (vnode, isRemoval) {
    var key = vnode.data.ref;
    if (!key) { return }
  
    var vm = vnode.context;
    var ref = vnode.componentInstance || vnode.elm;
    var refs = vm.$refs;
    if (isRemoval) {
      if (Array.isArray(refs[key])) {
        remove(refs[key], ref);
      } else if (refs[key] === ref) {
        refs[key] = undefined;
      }
    } else {
      if (vnode.data.refInFor) {
        if (!Array.isArray(refs[key])) {
          refs[key] = [ref];
        } else if (refs[key].indexOf(ref) < 0) {
          // $flow-disable-line
          refs[key].push(ref);
        }
      } else {
        refs[key] = ref;
      }
    }
  }
  
  /**
   * Virtual DOM patching algorithm based on Snabbdom by
   * Simon Friis Vindum (@paldepind)
   * Licensed under the MIT License
   * https://github.com/paldepind/snabbdom/blob/master/LICENSE
   *
   * modified by Evan You (@yyx990803)
   *
   * Not type-checking this because this file is perf-critical and the cost
   * of making flow understand it is not worth it.
   */
  
  var emptyNode = new VNode('', {}, []);
  
  var hooks = ['create', 'activate', 'update', 'remove', 'destroy'];
  
  function sameVnode (a, b) {
    return (
      a.key === b.key && (
        (
          a.tag === b.tag &&
          a.isComment === b.isComment &&
          isDef(a.data) === isDef(b.data) &&
          sameInputType(a, b)
        ) || (
          isTrue(a.isAsyncPlaceholder) &&
          a.asyncFactory === b.asyncFactory &&
          isUndef(b.asyncFactory.error)
        )
      )
    )
  }
  
  function sameInputType (a, b) {
    if (a.tag !== 'input') { return true }
    var i;
    var typeA = isDef(i = a.data) && isDef(i = i.attrs) && i.type;
    var typeB = isDef(i = b.data) && isDef(i = i.attrs) && i.type;
    return typeA === typeB || isTextInputType(typeA) && isTextInputType(typeB)
  }
  
  function createKeyToOldIdx (children, beginIdx, endIdx) {
    var i, key;
    var map = {};
    for (i = beginIdx; i <= endIdx; ++i) {
      key = children[i].key;
      if (isDef(key)) { map[key] = i; }
    }
    return map
  }
  
  function createPatchFunction (backend) {
    var i, j;
    var cbs = {};
  
    var modules = backend.modules;
    var nodeOps = backend.nodeOps;
  
    for (i = 0; i < hooks.length; ++i) {
      cbs[hooks[i]] = [];
      for (j = 0; j < modules.length; ++j) {
        if (isDef(modules[j][hooks[i]])) {
          cbs[hooks[i]].push(modules[j][hooks[i]]);
        }
      }
    }
  
    function emptyNodeAt (elm) {
      return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)
    }
  
    function createRmCb (childElm, listeners) {
      function remove () {
        if (--remove.listeners === 0) {
          removeNode(childElm);
        }
      }
      remove.listeners = listeners;
      return remove
    }
  
    function removeNode (el) {
      var parent = nodeOps.parentNode(el);
      // element may have already been removed due to v-html / v-text
      if (isDef(parent)) {
        nodeOps.removeChild(parent, el);
      }
    }
  
    function isUnknownElement$$1 (vnode, inVPre) {
      return (
        !inVPre &&
        !vnode.ns &&
        !(
          config.ignoredElements.length &&
          config.ignoredElements.some(function (ignore) {
            return isRegExp(ignore)
              ? ignore.test(vnode.tag)
              : ignore === vnode.tag
          })
        ) &&
        config.isUnknownElement(vnode.tag)
      )
    }
  
    var creatingElmInVPre = 0;
    function createElm (vnode, insertedVnodeQueue, parentElm, refElm, nested) {
      vnode.isRootInsert = !nested; // for transition enter check
      if (createComponent(vnode, insertedVnodeQueue, parentElm, refElm)) {
        return
      }
  
      var data = vnode.data;
      var children = vnode.children;
      var tag = vnode.tag;
      if (isDef(tag)) {
        if (true) {
          if (data && data.pre) {
            creatingElmInVPre++;
          }
          if (isUnknownElement$$1(vnode, creatingElmInVPre)) {
            warn(
              'Unknown custom element: <' + tag + '> - did you ' +
              'register the component correctly? For recursive components, ' +
              'make sure to provide the "name" option.',
              vnode.context
            );
          }
        }
        vnode.elm = vnode.ns
          ? nodeOps.createElementNS(vnode.ns, tag)
          : nodeOps.createElement(tag, vnode);
        setScope(vnode);
  
        /* istanbul ignore if */
        {
          createChildren(vnode, children, insertedVnodeQueue);
          if (isDef(data)) {
            invokeCreateHooks(vnode, insertedVnodeQueue);
          }
          insert(parentElm, vnode.elm, refElm);
        }
  
        if ("development" !== 'production' && data && data.pre) {
          creatingElmInVPre--;
        }
      } else if (isTrue(vnode.isComment)) {
        vnode.elm = nodeOps.createComment(vnode.text);
        insert(parentElm, vnode.elm, refElm);
      } else {
        vnode.elm = nodeOps.createTextNode(vnode.text);
        insert(parentElm, vnode.elm, refElm);
      }
    }
  
    function createComponent (vnode, insertedVnodeQueue, parentElm, refElm) {
      var i = vnode.data;
      if (isDef(i)) {
        var isReactivated = isDef(vnode.componentInstance) && i.keepAlive;
        if (isDef(i = i.hook) && isDef(i = i.init)) {
          i(vnode, false /* hydrating */, parentElm, refElm);
        }
        // after calling the init hook, if the vnode is a child component
        // it should've created a child instance and mounted it. the child
        // component also has set the placeholder vnode's elm.
        // in that case we can just return the element and be done.
        if (isDef(vnode.componentInstance)) {
          initComponent(vnode, insertedVnodeQueue);
          if (isTrue(isReactivated)) {
            reactivateComponent(vnode, insertedVnodeQueue, parentElm, refElm);
          }
          return true
        }
      }
    }
  
    function initComponent (vnode, insertedVnodeQueue) {
      if (isDef(vnode.data.pendingInsert)) {
        insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert);
        vnode.data.pendingInsert = null;
      }
      vnode.elm = vnode.componentInstance.$el;
      if (isPatchable(vnode)) {
        invokeCreateHooks(vnode, insertedVnodeQueue);
        setScope(vnode);
      } else {
        // empty component root.
        // skip all element-related modules except for ref (#3455)
        registerRef(vnode);
        // make sure to invoke the insert hook
        insertedVnodeQueue.push(vnode);
      }
    }
  
    function reactivateComponent (vnode, insertedVnodeQueue, parentElm, refElm) {
      var i;
      // hack for #4339: a reactivated component with inner transition
      // does not trigger because the inner node's created hooks are not called
      // again. It's not ideal to involve module-specific logic in here but
      // there doesn't seem to be a better way to do it.
      var innerNode = vnode;
      while (innerNode.componentInstance) {
        innerNode = innerNode.componentInstance._vnode;
        if (isDef(i = innerNode.data) && isDef(i = i.transition)) {
          for (i = 0; i < cbs.activate.length; ++i) {
            cbs.activate[i](emptyNode, innerNode);
          }
          insertedVnodeQueue.push(innerNode);
          break
        }
      }
      // unlike a newly created component,
      // a reactivated keep-alive component doesn't insert itself
      insert(parentElm, vnode.elm, refElm);
    }
  
    function insert (parent, elm, ref$$1) {
      if (isDef(parent)) {
        if (isDef(ref$$1)) {
          if (ref$$1.parentNode === parent) {
            nodeOps.insertBefore(parent, elm, ref$$1);
          }
        } else {
          nodeOps.appendChild(parent, elm);
        }
      }
    }
  
    function createChildren (vnode, children, insertedVnodeQueue) {
      if (Array.isArray(children)) {
        if (true) {
          checkDuplicateKeys(children);
        }
        for (var i = 0; i < children.length; ++i) {
          createElm(children[i], insertedVnodeQueue, vnode.elm, null, true);
        }
      } else if (isPrimitive(vnode.text)) {
        nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(String(vnode.text)));
      }
    }
  
    function isPatchable (vnode) {
      while (vnode.componentInstance) {
        vnode = vnode.componentInstance._vnode;
      }
      return isDef(vnode.tag)
    }
  
    function invokeCreateHooks (vnode, insertedVnodeQueue) {
      for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {
        cbs.create[i$1](emptyNode, vnode);
      }
      i = vnode.data.hook; // Reuse variable
      if (isDef(i)) {
        if (isDef(i.create)) { i.create(emptyNode, vnode); }
        if (isDef(i.insert)) { insertedVnodeQueue.push(vnode); }
      }
    }
  
    // set scope id attribute for scoped CSS.
    // this is implemented as a special case to avoid the overhead
    // of going through the normal attribute patching process.
    function setScope (vnode) {
      var i;
      if (isDef(i = vnode.fnScopeId)) {
        nodeOps.setAttribute(vnode.elm, i, '');
      } else {
        var ancestor = vnode;
        while (ancestor) {
          if (isDef(i = ancestor.context) && isDef(i = i.$options._scopeId)) {
            nodeOps.setAttribute(vnode.elm, i, '');
          }
          ancestor = ancestor.parent;
        }
      }
      // for slot content they should also get the scopeId from the host instance.
      if (isDef(i = activeInstance) &&
        i !== vnode.context &&
        i !== vnode.fnContext &&
        isDef(i = i.$options._scopeId)
      ) {
        nodeOps.setAttribute(vnode.elm, i, '');
      }
    }
  
    function addVnodes (parentElm, refElm, vnodes, startIdx, endIdx, insertedVnodeQueue) {
      for (; startIdx <= endIdx; ++startIdx) {
        createElm(vnodes[startIdx], insertedVnodeQueue, parentElm, refElm);
      }
    }
  
    function invokeDestroyHook (vnode) {
      var i, j;
      var data = vnode.data;
      if (isDef(data)) {
        if (isDef(i = data.hook) && isDef(i = i.destroy)) { i(vnode); }
        for (i = 0; i < cbs.destroy.length; ++i) { cbs.destroy[i](vnode); }
      }
      if (isDef(i = vnode.children)) {
        for (j = 0; j < vnode.children.length; ++j) {
          invokeDestroyHook(vnode.children[j]);
        }
      }
    }
  
    function removeVnodes (parentElm, vnodes, startIdx, endIdx) {
      for (; startIdx <= endIdx; ++startIdx) {
        var ch = vnodes[startIdx];
        if (isDef(ch)) {
          if (isDef(ch.tag)) {
            removeAndInvokeRemoveHook(ch);
            invokeDestroyHook(ch);
          } else { // Text node
            removeNode(ch.elm);
          }
        }
      }
    }
  
    function removeAndInvokeRemoveHook (vnode, rm) {
      if (isDef(rm) || isDef(vnode.data)) {
        var i;
        var listeners = cbs.remove.length + 1;
        if (isDef(rm)) {
          // we have a recursively passed down rm callback
          // increase the listeners count
          rm.listeners += listeners;
        } else {
          // directly removing
          rm = createRmCb(vnode.elm, listeners);
        }
        // recursively invoke hooks on child component root node
        if (isDef(i = vnode.componentInstance) && isDef(i = i._vnode) && isDef(i.data)) {
          removeAndInvokeRemoveHook(i, rm);
        }
        for (i = 0; i < cbs.remove.length; ++i) {
          cbs.remove[i](vnode, rm);
        }
        if (isDef(i = vnode.data.hook) && isDef(i = i.remove)) {
          i(vnode, rm);
        } else {
          rm();
        }
      } else {
        removeNode(vnode.elm);
      }
    }
  
    function updateChildren (parentElm, oldCh, newCh, insertedVnodeQueue, removeOnly) {
      var oldStartIdx = 0;
      var newStartIdx = 0;
      var oldEndIdx = oldCh.length - 1;
      var oldStartVnode = oldCh[0];
      var oldEndVnode = oldCh[oldEndIdx];
      var newEndIdx = newCh.length - 1;
      var newStartVnode = newCh[0];
      var newEndVnode = newCh[newEndIdx];
      var oldKeyToIdx, idxInOld, vnodeToMove, refElm;
  
      // removeOnly is a special flag used only by <transition-group>
      // to ensure removed elements stay in correct relative positions
      // during leaving transitions
      var canMove = !removeOnly;
  
      if (true) {
        checkDuplicateKeys(newCh);
      }
  
      while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
        if (isUndef(oldStartVnode)) {
          oldStartVnode = oldCh[++oldStartIdx]; // Vnode has been moved left
        } else if (isUndef(oldEndVnode)) {
          oldEndVnode = oldCh[--oldEndIdx];
        } else if (sameVnode(oldStartVnode, newStartVnode)) {
          patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue);
          oldStartVnode = oldCh[++oldStartIdx];
          newStartVnode = newCh[++newStartIdx];
        } else if (sameVnode(oldEndVnode, newEndVnode)) {
          patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue);
          oldEndVnode = oldCh[--oldEndIdx];
          newEndVnode = newCh[--newEndIdx];
        } else if (sameVnode(oldStartVnode, newEndVnode)) { // Vnode moved right
          patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue);
          canMove && nodeOps.insertBefore(parentElm, oldStartVnode.elm, nodeOps.nextSibling(oldEndVnode.elm));
          oldStartVnode = oldCh[++oldStartIdx];
          newEndVnode = newCh[--newEndIdx];
        } else if (sameVnode(oldEndVnode, newStartVnode)) { // Vnode moved left
          patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue);
          canMove && nodeOps.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm);
          oldEndVnode = oldCh[--oldEndIdx];
          newStartVnode = newCh[++newStartIdx];
        } else {
          if (isUndef(oldKeyToIdx)) { oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx); }
          idxInOld = isDef(newStartVnode.key)
            ? oldKeyToIdx[newStartVnode.key]
            : findIdxInOld(newStartVnode, oldCh, oldStartIdx, oldEndIdx);
          if (isUndef(idxInOld)) { // New element
            createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm);
          } else {
            vnodeToMove = oldCh[idxInOld];
            if (sameVnode(vnodeToMove, newStartVnode)) {
              patchVnode(vnodeToMove, newStartVnode, insertedVnodeQueue);
              oldCh[idxInOld] = undefined;
              canMove && nodeOps.insertBefore(parentElm, vnodeToMove.elm, oldStartVnode.elm);
            } else {
              // same key but different element. treat as new element
              createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm);
            }
          }
          newStartVnode = newCh[++newStartIdx];
        }
      }
      if (oldStartIdx > oldEndIdx) {
        refElm = isUndef(newCh[newEndIdx + 1]) ? null : newCh[newEndIdx + 1].elm;
        addVnodes(parentElm, refElm, newCh, newStartIdx, newEndIdx, insertedVnodeQueue);
      } else if (newStartIdx > newEndIdx) {
        removeVnodes(parentElm, oldCh, oldStartIdx, oldEndIdx);
      }
    }
  
    function checkDuplicateKeys (children) {
      var seenKeys = {};
      for (var i = 0; i < children.length; i++) {
        var vnode = children[i];
        var key = vnode.key;
        if (isDef(key)) {
          if (seenKeys[key]) {
            warn(
              ("Duplicate keys detected: '" + key + "'. This may cause an update error."),
              vnode.context
            );
          } else {
            seenKeys[key] = true;
          }
        }
      }
    }
  
    function findIdxInOld (node, oldCh, start, end) {
      for (var i = start; i < end; i++) {
        var c = oldCh[i];
        if (isDef(c) && sameVnode(node, c)) { return i }
      }
    }
  
    function patchVnode (oldVnode, vnode, insertedVnodeQueue, removeOnly) {
      if (oldVnode === vnode) {
        return
      }
  
      var elm = vnode.elm = oldVnode.elm;
  
      if (isTrue(oldVnode.isAsyncPlaceholder)) {
        if (isDef(vnode.asyncFactory.resolved)) {
          hydrate(oldVnode.elm, vnode, insertedVnodeQueue);
        } else {
          vnode.isAsyncPlaceholder = true;
        }
        return
      }
  
      // reuse element for static trees.
      // note we only do this if the vnode is cloned -
      // if the new node is not cloned it means the render functions have been
      // reset by the hot-reload-api and we need to do a proper re-render.
      if (isTrue(vnode.isStatic) &&
        isTrue(oldVnode.isStatic) &&
        vnode.key === oldVnode.key &&
        (isTrue(vnode.isCloned) || isTrue(vnode.isOnce))
      ) {
        vnode.componentInstance = oldVnode.componentInstance;
        return
      }
  
      var i;
      var data = vnode.data;
      if (isDef(data) && isDef(i = data.hook) && isDef(i = i.prepatch)) {
        i(oldVnode, vnode);
      }
  
      var oldCh = oldVnode.children;
      var ch = vnode.children;
      if (isDef(data) && isPatchable(vnode)) {
        for (i = 0; i < cbs.update.length; ++i) { cbs.update[i](oldVnode, vnode); }
        if (isDef(i = data.hook) && isDef(i = i.update)) { i(oldVnode, vnode); }
      }
      if (isUndef(vnode.text)) {
        if (isDef(oldCh) && isDef(ch)) {
          if (oldCh !== ch) { updateChildren(elm, oldCh, ch, insertedVnodeQueue, removeOnly); }
        } else if (isDef(ch)) {
          if (isDef(oldVnode.text)) { nodeOps.setTextContent(elm, ''); }
          addVnodes(elm, null, ch, 0, ch.length - 1, insertedVnodeQueue);
        } else if (isDef(oldCh)) {
          removeVnodes(elm, oldCh, 0, oldCh.length - 1);
        } else if (isDef(oldVnode.text)) {
          nodeOps.setTextContent(elm, '');
        }
      } else if (oldVnode.text !== vnode.text) {
        nodeOps.setTextContent(elm, vnode.text);
      }
      if (isDef(data)) {
        if (isDef(i = data.hook) && isDef(i = i.postpatch)) { i(oldVnode, vnode); }
      }
    }
  
    function invokeInsertHook (vnode, queue, initial) {
      // delay insert hooks for component root nodes, invoke them after the
      // element is really inserted
      if (isTrue(initial) && isDef(vnode.parent)) {
        vnode.parent.data.pendingInsert = queue;
      } else {
        for (var i = 0; i < queue.length; ++i) {
          queue[i].data.hook.insert(queue[i]);
        }
      }
    }
  
    var hydrationBailed = false;
    // list of modules that can skip create hook during hydration because they
    // are already rendered on the client or has no need for initialization
    // Note: style is excluded because it relies on initial clone for future
    // deep updates (#7063).
    var isRenderedModule = makeMap('attrs,class,staticClass,staticStyle,key');
  
    // Note: this is a browser-only function so we can assume elms are DOM nodes.
    function hydrate (elm, vnode, insertedVnodeQueue, inVPre) {
      var i;
      var tag = vnode.tag;
      var data = vnode.data;
      var children = vnode.children;
      inVPre = inVPre || (data && data.pre);
      vnode.elm = elm;
  
      if (isTrue(vnode.isComment) && isDef(vnode.asyncFactory)) {
        vnode.isAsyncPlaceholder = true;
        return true
      }
      // assert node match
      if (true) {
        if (!assertNodeMatch(elm, vnode, inVPre)) {
          return false
        }
      }
      if (isDef(data)) {
        if (isDef(i = data.hook) && isDef(i = i.init)) { i(vnode, true /* hydrating */); }
        if (isDef(i = vnode.componentInstance)) {
          // child component. it should have hydrated its own tree.
          initComponent(vnode, insertedVnodeQueue);
          return true
        }
      }
      if (isDef(tag)) {
        if (isDef(children)) {
          // empty element, allow client to pick up and populate children
          if (!elm.hasChildNodes()) {
            createChildren(vnode, children, insertedVnodeQueue);
          } else {
            // v-html and domProps: innerHTML
            if (isDef(i = data) && isDef(i = i.domProps) && isDef(i = i.innerHTML)) {
              if (i !== elm.innerHTML) {
                /* istanbul ignore if */
                if ("development" !== 'production' &&
                  typeof console !== 'undefined' &&
                  !hydrationBailed
                ) {
                  hydrationBailed = true;
                  console.warn('Parent: ', elm);
                  console.warn('server innerHTML: ', i);
                  console.warn('client innerHTML: ', elm.innerHTML);
                }
                return false
              }
            } else {
              // iterate and compare children lists
              var childrenMatch = true;
              var childNode = elm.firstChild;
              for (var i$1 = 0; i$1 < children.length; i$1++) {
                if (!childNode || !hydrate(childNode, children[i$1], insertedVnodeQueue, inVPre)) {
                  childrenMatch = false;
                  break
                }
                childNode = childNode.nextSibling;
              }
              // if childNode is not null, it means the actual childNodes list is
              // longer than the virtual children list.
              if (!childrenMatch || childNode) {
                /* istanbul ignore if */
                if ("development" !== 'production' &&
                  typeof console !== 'undefined' &&
                  !hydrationBailed
                ) {
                  hydrationBailed = true;
                  console.warn('Parent: ', elm);
                  console.warn('Mismatching childNodes vs. VNodes: ', elm.childNodes, children);
                }
                return false
              }
            }
          }
        }
        if (isDef(data)) {
          var fullInvoke = false;
          for (var key in data) {
            if (!isRenderedModule(key)) {
              fullInvoke = true;
              invokeCreateHooks(vnode, insertedVnodeQueue);
              break
            }
          }
          if (!fullInvoke && data['class']) {
            // ensure collecting deps for deep class bindings for future updates
            traverse(data['class']);
          }
        }
      } else if (elm.data !== vnode.text) {
        elm.data = vnode.text;
      }
      return true
    }
  
    function assertNodeMatch (node, vnode, inVPre) {
      if (isDef(vnode.tag)) {
        return vnode.tag.indexOf('vue-component') === 0 || (
          !isUnknownElement$$1(vnode, inVPre) &&
          vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())
        )
      } else {
        return node.nodeType === (vnode.isComment ? 8 : 3)
      }
    }
  
    return function patch (oldVnode, vnode, hydrating, removeOnly, parentElm, refElm) {
      if (isUndef(vnode)) {
        if (isDef(oldVnode)) { invokeDestroyHook(oldVnode); }
        return
      }
  
      var isInitialPatch = false;
      var insertedVnodeQueue = [];
  
      if (isUndef(oldVnode)) {
        // empty mount (likely as component), create new root element
        isInitialPatch = true;
        createElm(vnode, insertedVnodeQueue, parentElm, refElm);
      } else {
        var isRealElement = isDef(oldVnode.nodeType);
        if (!isRealElement && sameVnode(oldVnode, vnode)) {
          // patch existing root node
          patchVnode(oldVnode, vnode, insertedVnodeQueue, removeOnly);
        } else {
          if (isRealElement) {
            // mounting to a real element
            // check if this is server-rendered content and if we can perform
            // a successful hydration.
            if (oldVnode.nodeType === 1 && oldVnode.hasAttribute(SSR_ATTR)) {
              oldVnode.removeAttribute(SSR_ATTR);
              hydrating = true;
            }
            if (isTrue(hydrating)) {
              if (hydrate(oldVnode, vnode, insertedVnodeQueue)) {
                invokeInsertHook(vnode, insertedVnodeQueue, true);
                return oldVnode
              } else if (true) {
                warn(
                  'The client-side rendered virtual DOM tree is not matching ' +
                  'server-rendered content. This is likely caused by incorrect ' +
                  'HTML markup, for example nesting block-level elements inside ' +
                  '<p>, or missing <tbody>. Bailing hydration and performing ' +
                  'full client-side render.'
                );
              }
            }
            // either not server-rendered, or hydration failed.
            // create an empty node and replace it
            oldVnode = emptyNodeAt(oldVnode);
          }
  
          // replacing existing element
          var oldElm = oldVnode.elm;
          var parentElm$1 = nodeOps.parentNode(oldElm);
  
          // create new node
          createElm(
            vnode,
            insertedVnodeQueue,
            // extremely rare edge case: do not insert if old element is in a
            // leaving transition. Only happens when combining transition +
            // keep-alive + HOCs. (#4590)
            oldElm._leaveCb ? null : parentElm$1,
            nodeOps.nextSibling(oldElm)
          );
  
          // update parent placeholder node element, recursively
          if (isDef(vnode.parent)) {
            var ancestor = vnode.parent;
            var patchable = isPatchable(vnode);
            while (ancestor) {
              for (var i = 0; i < cbs.destroy.length; ++i) {
                cbs.destroy[i](ancestor);
              }
              ancestor.elm = vnode.elm;
              if (patchable) {
                for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {
                  cbs.create[i$1](emptyNode, ancestor);
                }
                // #6513
                // invoke insert hooks that may have been merged by create hooks.
                // e.g. for directives that uses the "inserted" hook.
                var insert = ancestor.data.hook.insert;
                if (insert.merged) {
                  // start at index 1 to avoid re-invoking component mounted hook
                  for (var i$2 = 1; i$2 < insert.fns.length; i$2++) {
                    insert.fns[i$2]();
                  }
                }
              } else {
                registerRef(ancestor);
              }
              ancestor = ancestor.parent;
            }
          }
  
          // destroy old node
          if (isDef(parentElm$1)) {
            removeVnodes(parentElm$1, [oldVnode], 0, 0);
          } else if (isDef(oldVnode.tag)) {
            invokeDestroyHook(oldVnode);
          }
        }
      }
  
      invokeInsertHook(vnode, insertedVnodeQueue, isInitialPatch);
      return vnode.elm
    }
  }
  
  /*  */
  
  var directives = {
    create: updateDirectives,
    update: updateDirectives,
    destroy: function unbindDirectives (vnode) {
      updateDirectives(vnode, emptyNode);
    }
  };
  
  function updateDirectives (oldVnode, vnode) {
    if (oldVnode.data.directives || vnode.data.directives) {
      _update(oldVnode, vnode);
    }
  }
  
  function _update (oldVnode, vnode) {
    var isCreate = oldVnode === emptyNode;
    var isDestroy = vnode === emptyNode;
    var oldDirs = normalizeDirectives$1(oldVnode.data.directives, oldVnode.context);
    var newDirs = normalizeDirectives$1(vnode.data.directives, vnode.context);
  
    var dirsWithInsert = [];
    var dirsWithPostpatch = [];
  
    var key, oldDir, dir;
    for (key in newDirs) {
      oldDir = oldDirs[key];
      dir = newDirs[key];
      if (!oldDir) {
        // new directive, bind
        callHook$1(dir, 'bind', vnode, oldVnode);
        if (dir.def && dir.def.inserted) {
          dirsWithInsert.push(dir);
        }
      } else {
        // existing directive, update
        dir.oldValue = oldDir.value;
        callHook$1(dir, 'update', vnode, oldVnode);
        if (dir.def && dir.def.componentUpdated) {
          dirsWithPostpatch.push(dir);
        }
      }
    }
  
    if (dirsWithInsert.length) {
      var callInsert = function () {
        for (var i = 0; i < dirsWithInsert.length; i++) {
          callHook$1(dirsWithInsert[i], 'inserted', vnode, oldVnode);
        }
      };
      if (isCreate) {
        mergeVNodeHook(vnode, 'insert', callInsert);
      } else {
        callInsert();
      }
    }
  
    if (dirsWithPostpatch.length) {
      mergeVNodeHook(vnode, 'postpatch', function () {
        for (var i = 0; i < dirsWithPostpatch.length; i++) {
          callHook$1(dirsWithPostpatch[i], 'componentUpdated', vnode, oldVnode);
        }
      });
    }
  
    if (!isCreate) {
      for (key in oldDirs) {
        if (!newDirs[key]) {
          // no longer present, unbind
          callHook$1(oldDirs[key], 'unbind', oldVnode, oldVnode, isDestroy);
        }
      }
    }
  }
  
  var emptyModifiers = Object.create(null);
  
  function normalizeDirectives$1 (
    dirs,
    vm
  ) {
    var res = Object.create(null);
    if (!dirs) {
      // $flow-disable-line
      return res
    }
    var i, dir;
    for (i = 0; i < dirs.length; i++) {
      dir = dirs[i];
      if (!dir.modifiers) {
        // $flow-disable-line
        dir.modifiers = emptyModifiers;
      }
      res[getRawDirName(dir)] = dir;
      dir.def = resolveAsset(vm.$options, 'directives', dir.name, true);
    }
    // $flow-disable-line
    return res
  }
  
  function getRawDirName (dir) {
    return dir.rawName || ((dir.name) + "." + (Object.keys(dir.modifiers || {}).join('.')))
  }
  
  function callHook$1 (dir, hook, vnode, oldVnode, isDestroy) {
    var fn = dir.def && dir.def[hook];
    if (fn) {
      try {
        fn(vnode.elm, dir, vnode, oldVnode, isDestroy);
      } catch (e) {
        handleError(e, vnode.context, ("directive " + (dir.name) + " " + hook + " hook"));
      }
    }
  }
  
  var baseModules = [
    ref,
    directives
  ];
  
  /*  */
  
  function updateAttrs (oldVnode, vnode) {
    var opts = vnode.componentOptions;
    if (isDef(opts) && opts.Ctor.options.inheritAttrs === false) {
      return
    }
    if (isUndef(oldVnode.data.attrs) && isUndef(vnode.data.attrs)) {
      return
    }
    var key, cur, old;
    var elm = vnode.elm;
    var oldAttrs = oldVnode.data.attrs || {};
    var attrs = vnode.data.attrs || {};
    // clone observed objects, as the user probably wants to mutate it
    if (isDef(attrs.__ob__)) {
      attrs = vnode.data.attrs = extend({}, attrs);
    }
  
    for (key in attrs) {
      cur = attrs[key];
      old = oldAttrs[key];
      if (old !== cur) {
        setAttr(elm, key, cur);
      }
    }
    // #4391: in IE9, setting type can reset value for input[type=radio]
    // #6666: IE/Edge forces progress value down to 1 before setting a max
    /* istanbul ignore if */
    if ((isIE || isEdge) && attrs.value !== oldAttrs.value) {
      setAttr(elm, 'value', attrs.value);
    }
    for (key in oldAttrs) {
      if (isUndef(attrs[key])) {
        if (isXlink(key)) {
          elm.removeAttributeNS(xlinkNS, getXlinkProp(key));
        } else if (!isEnumeratedAttr(key)) {
          elm.removeAttribute(key);
        }
      }
    }
  }
  
  function setAttr (el, key, value) {
    if (isBooleanAttr(key)) {
      // set attribute for blank value
      // e.g. <option disabled>Select one</option>
      if (isFalsyAttrValue(value)) {
        el.removeAttribute(key);
      } else {
        // technically allowfullscreen is a boolean attribute for <iframe>,
        // but Flash expects a value of "true" when used on <embed> tag
        value = key === 'allowfullscreen' && el.tagName === 'EMBED'
          ? 'true'
          : key;
        el.setAttribute(key, value);
      }
    } else if (isEnumeratedAttr(key)) {
      el.setAttribute(key, isFalsyAttrValue(value) || value === 'false' ? 'false' : 'true');
    } else if (isXlink(key)) {
      if (isFalsyAttrValue(value)) {
        el.removeAttributeNS(xlinkNS, getXlinkProp(key));
      } else {
        el.setAttributeNS(xlinkNS, key, value);
      }
    } else {
      if (isFalsyAttrValue(value)) {
        el.removeAttribute(key);
      } else {
        // #7138: IE10 & 11 fires input event when setting placeholder on
        // <textarea>... block the first input event and remove the blocker
        // immediately.
        /* istanbul ignore if */
        if (
          isIE && !isIE9 &&
          el.tagName === 'TEXTAREA' &&
          key === 'placeholder' && !el.__ieph
        ) {
          var blocker = function (e) {
            e.stopImmediatePropagation();
            el.removeEventListener('input', blocker);
          };
          el.addEventListener('input', blocker);
          // $flow-disable-line
          el.__ieph = true; /* IE placeholder patched */
        }
        el.setAttribute(key, value);
      }
    }
  }
  
  var attrs = {
    create: updateAttrs,
    update: updateAttrs
  };
  
  /*  */
  
  function updateClass (oldVnode, vnode) {
    var el = vnode.elm;
    var data = vnode.data;
    var oldData = oldVnode.data;
    if (
      isUndef(data.staticClass) &&
      isUndef(data.class) && (
        isUndef(oldData) || (
          isUndef(oldData.staticClass) &&
          isUndef(oldData.class)
        )
      )
    ) {
      return
    }
  
    var cls = genClassForVnode(vnode);
  
    // handle transition classes
    var transitionClass = el._transitionClasses;
    if (isDef(transitionClass)) {
      cls = concat(cls, stringifyClass(transitionClass));
    }
  
    // set the class
    if (cls !== el._prevClass) {
      el.setAttribute('class', cls);
      el._prevClass = cls;
    }
  }
  
  var klass = {
    create: updateClass,
    update: updateClass
  };
  
  /*  */
  
  var validDivisionCharRE = /[\w).+\-_$\]]/;
  
  function parseFilters (exp) {
    var inSingle = false;
    var inDouble = false;
    var inTemplateString = false;
    var inRegex = false;
    var curly = 0;
    var square = 0;
    var paren = 0;
    var lastFilterIndex = 0;
    var c, prev, i, expression, filters;
  
    for (i = 0; i < exp.length; i++) {
      prev = c;
      c = exp.charCodeAt(i);
      if (inSingle) {
        if (c === 0x27 && prev !== 0x5C) { inSingle = false; }
      } else if (inDouble) {
        if (c === 0x22 && prev !== 0x5C) { inDouble = false; }
      } else if (inTemplateString) {
        if (c === 0x60 && prev !== 0x5C) { inTemplateString = false; }
      } else if (inRegex) {
        if (c === 0x2f && prev !== 0x5C) { inRegex = false; }
      } else if (
        c === 0x7C && // pipe
        exp.charCodeAt(i + 1) !== 0x7C &&
        exp.charCodeAt(i - 1) !== 0x7C &&
        !curly && !square && !paren
      ) {
        if (expression === undefined) {
          // first filter, end of expression
          lastFilterIndex = i + 1;
          expression = exp.slice(0, i).trim();
        } else {
          pushFilter();
        }
      } else {
        switch (c) {
          case 0x22: inDouble = true; break         // "
          case 0x27: inSingle = true; break         // '
          case 0x60: inTemplateString = true; break // `
          case 0x28: paren++; break                 // (
          case 0x29: paren--; break                 // )
          case 0x5B: square++; break                // [
          case 0x5D: square--; break                // ]
          case 0x7B: curly++; break                 // {
          case 0x7D: curly--; break                 // }
        }
        if (c === 0x2f) { // /
          var j = i - 1;
          var p = (void 0);
          // find first non-whitespace prev char
          for (; j >= 0; j--) {
            p = exp.charAt(j);
            if (p !== ' ') { break }
          }
          if (!p || !validDivisionCharRE.test(p)) {
            inRegex = true;
          }
        }
      }
    }
  
    if (expression === undefined) {
      expression = exp.slice(0, i).trim();
    } else if (lastFilterIndex !== 0) {
      pushFilter();
    }
  
    function pushFilter () {
      (filters || (filters = [])).push(exp.slice(lastFilterIndex, i).trim());
      lastFilterIndex = i + 1;
    }
  
    if (filters) {
      for (i = 0; i < filters.length; i++) {
        expression = wrapFilter(expression, filters[i]);
      }
    }
  
    return expression
  }
  
  function wrapFilter (exp, filter) {
    var i = filter.indexOf('(');
    if (i < 0) {
      // _f: resolveFilter
      return ("_f(\"" + filter + "\")(" + exp + ")")
    } else {
      var name = filter.slice(0, i);
      var args = filter.slice(i + 1);
      return ("_f(\"" + name + "\")(" + exp + "," + args)
    }
  }
  
  /*  */
  
  function baseWarn (msg) {
    console.error(("[Vue compiler]: " + msg));
  }
  
  function pluckModuleFunction (
    modules,
    key
  ) {
    return modules
      ? modules.map(function (m) { return m[key]; }).filter(function (_) { return _; })
      : []
  }
  
  function addProp (el, name, value) {
    (el.props || (el.props = [])).push({ name: name, value: value });
    el.plain = false;
  }
  
  function addAttr (el, name, value) {
    (el.attrs || (el.attrs = [])).push({ name: name, value: value });
    el.plain = false;
  }
  
  // add a raw attr (use this in preTransforms)
  function addRawAttr (el, name, value) {
    el.attrsMap[name] = value;
    el.attrsList.push({ name: name, value: value });
  }
  
  function addDirective (
    el,
    name,
    rawName,
    value,
    arg,
    modifiers
  ) {
    (el.directives || (el.directives = [])).push({ name: name, rawName: rawName, value: value, arg: arg, modifiers: modifiers });
    el.plain = false;
  }
  
  function addHandler (
    el,
    name,
    value,
    modifiers,
    important,
    warn
  ) {
    modifiers = modifiers || emptyObject;
    // warn prevent and passive modifier
    /* istanbul ignore if */
    if (
      "development" !== 'production' && warn &&
      modifiers.prevent && modifiers.passive
    ) {
      warn(
        'passive and prevent can\'t be used together. ' +
        'Passive handler can\'t prevent default event.'
      );
    }
  
    // check capture modifier
    if (modifiers.capture) {
      delete modifiers.capture;
      name = '!' + name; // mark the event as captured
    }
    if (modifiers.once) {
      delete modifiers.once;
      name = '~' + name; // mark the event as once
    }
    /* istanbul ignore if */
    if (modifiers.passive) {
      delete modifiers.passive;
      name = '&' + name; // mark the event as passive
    }
  
    // normalize click.right and click.middle since they don't actually fire
    // this is technically browser-specific, but at least for now browsers are
    // the only target envs that have right/middle clicks.
    if (name === 'click') {
      if (modifiers.right) {
        name = 'contextmenu';
        delete modifiers.right;
      } else if (modifiers.middle) {
        name = 'mouseup';
      }
    }
  
    var events;
    if (modifiers.native) {
      delete modifiers.native;
      events = el.nativeEvents || (el.nativeEvents = {});
    } else {
      events = el.events || (el.events = {});
    }
  
    var newHandler = { value: value };
    if (modifiers !== emptyObject) {
      newHandler.modifiers = modifiers;
    }
  
    var handlers = events[name];
    /* istanbul ignore if */
    if (Array.isArray(handlers)) {
      important ? handlers.unshift(newHandler) : handlers.push(newHandler);
    } else if (handlers) {
      events[name] = important ? [newHandler, handlers] : [handlers, newHandler];
    } else {
      events[name] = newHandler;
    }
  
    el.plain = false;
  }
  
  function getBindingAttr (
    el,
    name,
    getStatic
  ) {
    var dynamicValue =
      getAndRemoveAttr(el, ':' + name) ||
      getAndRemoveAttr(el, 'v-bind:' + name);
    if (dynamicValue != null) {
      return parseFilters(dynamicValue)
    } else if (getStatic !== false) {
      var staticValue = getAndRemoveAttr(el, name);
      if (staticValue != null) {
        return JSON.stringify(staticValue)
      }
    }
  }
  
  // note: this only removes the attr from the Array (attrsList) so that it
  // doesn't get processed by processAttrs.
  // By default it does NOT remove it from the map (attrsMap) because the map is
  // needed during codegen.
  function getAndRemoveAttr (
    el,
    name,
    removeFromMap
  ) {
    var val;
    if ((val = el.attrsMap[name]) != null) {
      var list = el.attrsList;
      for (var i = 0, l = list.length; i < l; i++) {
        if (list[i].name === name) {
          list.splice(i, 1);
          break
        }
      }
    }
    if (removeFromMap) {
      delete el.attrsMap[name];
    }
    return val
  }
  
  /*  */
  
  /**
   * Cross-platform code generation for component v-model
   */
  function genComponentModel (
    el,
    value,
    modifiers
  ) {
    var ref = modifiers || {};
    var number = ref.number;
    var trim = ref.trim;
  
    var baseValueExpression = '$$v';
    var valueExpression = baseValueExpression;
    if (trim) {
      valueExpression =
        "(typeof " + baseValueExpression + " === 'string'" +
          "? " + baseValueExpression + ".trim()" +
          ": " + baseValueExpression + ")";
    }
    if (number) {
      valueExpression = "_n(" + valueExpression + ")";
    }
    var assignment = genAssignmentCode(value, valueExpression);
  
    el.model = {
      value: ("(" + value + ")"),
      expression: ("\"" + value + "\""),
      callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
    };
  }
  
  /**
   * Cross-platform codegen helper for generating v-model value assignment code.
   */
  function genAssignmentCode (
    value,
    assignment
  ) {
    var res = parseModel(value);
    if (res.key === null) {
      return (value + "=" + assignment)
    } else {
      return ("$set(" + (res.exp) + ", " + (res.key) + ", " + assignment + ")")
    }
  }
  
  /**
   * Parse a v-model expression into a base path and a final key segment.
   * Handles both dot-path and possible square brackets.
   *
   * Possible cases:
   *
   * - test
   * - test[key]
   * - test[test1[key]]
   * - test["a"][key]
   * - xxx.test[a[a].test1[key]]
   * - test.xxx.a["asa"][test1[key]]
   *
   */
  
  var len;
  var str;
  var chr;
  var index$1;
  var expressionPos;
  var expressionEndPos;
  
  
  
  function parseModel (val) {
    len = val.length;
  
    if (val.indexOf('[') < 0 || val.lastIndexOf(']') < len - 1) {
      index$1 = val.lastIndexOf('.');
      if (index$1 > -1) {
        return {
          exp: val.slice(0, index$1),
          key: '"' + val.slice(index$1 + 1) + '"'
        }
      } else {
        return {
          exp: val,
          key: null
        }
      }
    }
  
    str = val;
    index$1 = expressionPos = expressionEndPos = 0;
  
    while (!eof()) {
      chr = next();
      /* istanbul ignore if */
      if (isStringStart(chr)) {
        parseString(chr);
      } else if (chr === 0x5B) {
        parseBracket(chr);
      }
    }
  
    return {
      exp: val.slice(0, expressionPos),
      key: val.slice(expressionPos + 1, expressionEndPos)
    }
  }
  
  function next () {
    return str.charCodeAt(++index$1)
  }
  
  function eof () {
    return index$1 >= len
  }
  
  function isStringStart (chr) {
    return chr === 0x22 || chr === 0x27
  }
  
  function parseBracket (chr) {
    var inBracket = 1;
    expressionPos = index$1;
    while (!eof()) {
      chr = next();
      if (isStringStart(chr)) {
        parseString(chr);
        continue
      }
      if (chr === 0x5B) { inBracket++; }
      if (chr === 0x5D) { inBracket--; }
      if (inBracket === 0) {
        expressionEndPos = index$1;
        break
      }
    }
  }
  
  function parseString (chr) {
    var stringQuote = chr;
    while (!eof()) {
      chr = next();
      if (chr === stringQuote) {
        break
      }
    }
  }
  
  /*  */
  
  var warn$1;
  
  // in some cases, the event used has to be determined at runtime
  // so we used some reserved tokens during compile.
  var RANGE_TOKEN = '__r';
  var CHECKBOX_RADIO_TOKEN = '__c';
  
  function model (
    el,
    dir,
    _warn
  ) {
    warn$1 = _warn;
    var value = dir.value;
    var modifiers = dir.modifiers;
    var tag = el.tag;
    var type = el.attrsMap.type;
  
    if (true) {
      // inputs with type="file" are read only and setting the input's
      // value will throw an error.
      if (tag === 'input' && type === 'file') {
        warn$1(
          "<" + (el.tag) + " v-model=\"" + value + "\" type=\"file\">:\n" +
          "File inputs are read only. Use a v-on:change listener instead."
        );
      }
    }
  
    if (el.component) {
      genComponentModel(el, value, modifiers);
      // component v-model doesn't need extra runtime
      return false
    } else if (tag === 'select') {
      genSelect(el, value, modifiers);
    } else if (tag === 'input' && type === 'checkbox') {
      genCheckboxModel(el, value, modifiers);
    } else if (tag === 'input' && type === 'radio') {
      genRadioModel(el, value, modifiers);
    } else if (tag === 'input' || tag === 'textarea') {
      genDefaultModel(el, value, modifiers);
    } else if (!config.isReservedTag(tag)) {
      genComponentModel(el, value, modifiers);
      // component v-model doesn't need extra runtime
      return false
    } else if (true) {
      warn$1(
        "<" + (el.tag) + " v-model=\"" + value + "\">: " +
        "v-model is not supported on this element type. " +
        'If you are working with contenteditable, it\'s recommended to ' +
        'wrap a library dedicated for that purpose inside a custom component.'
      );
    }
  
    // ensure runtime directive metadata
    return true
  }
  
  function genCheckboxModel (
    el,
    value,
    modifiers
  ) {
    var number = modifiers && modifiers.number;
    var valueBinding = getBindingAttr(el, 'value') || 'null';
    var trueValueBinding = getBindingAttr(el, 'true-value') || 'true';
    var falseValueBinding = getBindingAttr(el, 'false-value') || 'false';
    addProp(el, 'checked',
      "Array.isArray(" + value + ")" +
      "?_i(" + value + "," + valueBinding + ")>-1" + (
        trueValueBinding === 'true'
          ? (":(" + value + ")")
          : (":_q(" + value + "," + trueValueBinding + ")")
      )
    );
    addHandler(el, 'change',
      "var $$a=" + value + "," +
          '$$el=$event.target,' +
          "$$c=$$el.checked?(" + trueValueBinding + "):(" + falseValueBinding + ");" +
      'if(Array.isArray($$a)){' +
        "var $$v=" + (number ? '_n(' + valueBinding + ')' : valueBinding) + "," +
            '$$i=_i($$a,$$v);' +
        "if($$el.checked){$$i<0&&(" + value + "=$$a.concat([$$v]))}" +
        "else{$$i>-1&&(" + value + "=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}" +
      "}else{" + (genAssignmentCode(value, '$$c')) + "}",
      null, true
    );
  }
  
  function genRadioModel (
    el,
    value,
    modifiers
  ) {
    var number = modifiers && modifiers.number;
    var valueBinding = getBindingAttr(el, 'value') || 'null';
    valueBinding = number ? ("_n(" + valueBinding + ")") : valueBinding;
    addProp(el, 'checked', ("_q(" + value + "," + valueBinding + ")"));
    addHandler(el, 'change', genAssignmentCode(value, valueBinding), null, true);
  }
  
  function genSelect (
    el,
    value,
    modifiers
  ) {
    var number = modifiers && modifiers.number;
    var selectedVal = "Array.prototype.filter" +
      ".call($event.target.options,function(o){return o.selected})" +
      ".map(function(o){var val = \"_value\" in o ? o._value : o.value;" +
      "return " + (number ? '_n(val)' : 'val') + "})";
  
    var assignment = '$event.target.multiple ? $$selectedVal : $$selectedVal[0]';
    var code = "var $$selectedVal = " + selectedVal + ";";
    code = code + " " + (genAssignmentCode(value, assignment));
    addHandler(el, 'change', code, null, true);
  }
  
  function genDefaultModel (
    el,
    value,
    modifiers
  ) {
    var type = el.attrsMap.type;
  
    // warn if v-bind:value conflicts with v-model
    if (true) {
      var value$1 = el.attrsMap['v-bind:value'] || el.attrsMap[':value'];
      if (value$1) {
        var binding = el.attrsMap['v-bind:value'] ? 'v-bind:value' : ':value';
        warn$1(
          binding + "=\"" + value$1 + "\" conflicts with v-model on the same element " +
          'because the latter already expands to a value binding internally'
        );
      }
    }
  
    var ref = modifiers || {};
    var lazy = ref.lazy;
    var number = ref.number;
    var trim = ref.trim;
    var needCompositionGuard = !lazy && type !== 'range';
    var event = lazy
      ? 'change'
      : type === 'range'
        ? RANGE_TOKEN
        : 'input';
  
    var valueExpression = '$event.target.value';
    if (trim) {
      valueExpression = "$event.target.value.trim()";
    }
    if (number) {
      valueExpression = "_n(" + valueExpression + ")";
    }
  
    var code = genAssignmentCode(value, valueExpression);
    if (needCompositionGuard) {
      code = "if($event.target.composing)return;" + code;
    }
  
    addProp(el, 'value', ("(" + value + ")"));
    addHandler(el, event, code, null, true);
    if (trim || number) {
      addHandler(el, 'blur', '$forceUpdate()');
    }
  }
  
  /*  */
  
  // normalize v-model event tokens that can only be determined at runtime.
  // it's important to place the event as the first in the array because
  // the whole point is ensuring the v-model callback gets called before
  // user-attached handlers.
  function normalizeEvents (on) {
    /* istanbul ignore if */
    if (isDef(on[RANGE_TOKEN])) {
      // IE input[type=range] only supports `change` event
      var event = isIE ? 'change' : 'input';
      on[event] = [].concat(on[RANGE_TOKEN], on[event] || []);
      delete on[RANGE_TOKEN];
    }
    // This was originally intended to fix #4521 but no longer necessary
    // after 2.5. Keeping it for backwards compat with generated code from < 2.4
    /* istanbul ignore if */
    if (isDef(on[CHECKBOX_RADIO_TOKEN])) {
      on.change = [].concat(on[CHECKBOX_RADIO_TOKEN], on.change || []);
      delete on[CHECKBOX_RADIO_TOKEN];
    }
  }
  
  var target$1;
  
  function createOnceHandler (handler, event, capture) {
    var _target = target$1; // save current target element in closure
    return function onceHandler () {
      var res = handler.apply(null, arguments);
      if (res !== null) {
        remove$2(event, onceHandler, capture, _target);
      }
    }
  }
  
  function add$1 (
    event,
    handler,
    once$$1,
    capture,
    passive
  ) {
    handler = withMacroTask(handler);
    if (once$$1) { handler = createOnceHandler(handler, event, capture); }
    target$1.addEventListener(
      event,
      handler,
      supportsPassive
        ? { capture: capture, passive: passive }
        : capture
    );
  }
  
  function remove$2 (
    event,
    handler,
    capture,
    _target
  ) {
    (_target || target$1).removeEventListener(
      event,
      handler._withTask || handler,
      capture
    );
  }
  
  function updateDOMListeners (oldVnode, vnode) {
    if (isUndef(oldVnode.data.on) && isUndef(vnode.data.on)) {
      return
    }
    var on = vnode.data.on || {};
    var oldOn = oldVnode.data.on || {};
    target$1 = vnode.elm;
    normalizeEvents(on);
    updateListeners(on, oldOn, add$1, remove$2, vnode.context);
    target$1 = undefined;
  }
  
  var events = {
    create: updateDOMListeners,
    update: updateDOMListeners
  };
  
  /*  */
  
  function updateDOMProps (oldVnode, vnode) {
    if (isUndef(oldVnode.data.domProps) && isUndef(vnode.data.domProps)) {
      return
    }
    var key, cur;
    var elm = vnode.elm;
    var oldProps = oldVnode.data.domProps || {};
    var props = vnode.data.domProps || {};
    // clone observed objects, as the user probably wants to mutate it
    if (isDef(props.__ob__)) {
      props = vnode.data.domProps = extend({}, props);
    }
  
    for (key in oldProps) {
      if (isUndef(props[key])) {
        elm[key] = '';
      }
    }
    for (key in props) {
      cur = props[key];
      // ignore children if the node has textContent or innerHTML,
      // as these will throw away existing DOM nodes and cause removal errors
      // on subsequent patches (#3360)
      if (key === 'textContent' || key === 'innerHTML') {
        if (vnode.children) { vnode.children.length = 0; }
        if (cur === oldProps[key]) { continue }
        // #6601 work around Chrome version <= 55 bug where single textNode
        // replaced by innerHTML/textContent retains its parentNode property
        if (elm.childNodes.length === 1) {
          elm.removeChild(elm.childNodes[0]);
        }
      }
  
      if (key === 'value') {
        // store value as _value as well since
        // non-string values will be stringified
        elm._value = cur;
        // avoid resetting cursor position when value is the same
        var strCur = isUndef(cur) ? '' : String(cur);
        if (shouldUpdateValue(elm, strCur)) {
          elm.value = strCur;
        }
      } else {
        elm[key] = cur;
      }
    }
  }
  
  // check platforms/web/util/attrs.js acceptValue
  
  
  function shouldUpdateValue (elm, checkVal) {
    return (!elm.composing && (
      elm.tagName === 'OPTION' ||
      isNotInFocusAndDirty(elm, checkVal) ||
      isDirtyWithModifiers(elm, checkVal)
    ))
  }
  
  function isNotInFocusAndDirty (elm, checkVal) {
    // return true when textbox (.number and .trim) loses focus and its value is
    // not equal to the updated value
    var notInFocus = true;
    // #6157
    // work around IE bug when accessing document.activeElement in an iframe
    try { notInFocus = document.activeElement !== elm; } catch (e) {}
    return notInFocus && elm.value !== checkVal
  }
  
  function isDirtyWithModifiers (elm, newVal) {
    var value = elm.value;
    var modifiers = elm._vModifiers; // injected by v-model runtime
    if (isDef(modifiers)) {
      if (modifiers.lazy) {
        // inputs with lazy should only be updated when not in focus
        return false
      }
      if (modifiers.number) {
        return toNumber(value) !== toNumber(newVal)
      }
      if (modifiers.trim) {
        return value.trim() !== newVal.trim()
      }
    }
    return value !== newVal
  }
  
  var domProps = {
    create: updateDOMProps,
    update: updateDOMProps
  };
  
  /*  */
  
  var parseStyleText = cached(function (cssText) {
    var res = {};
    var listDelimiter = /;(?![^(]*\))/g;
    var propertyDelimiter = /:(.+)/;
    cssText.split(listDelimiter).forEach(function (item) {
      if (item) {
        var tmp = item.split(propertyDelimiter);
        tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
      }
    });
    return res
  });
  
  // merge static and dynamic style data on the same vnode
  function normalizeStyleData (data) {
    var style = normalizeStyleBinding(data.style);
    // static style is pre-processed into an object during compilation
    // and is always a fresh object, so it's safe to merge into it
    return data.staticStyle
      ? extend(data.staticStyle, style)
      : style
  }
  
  // normalize possible array / string values into Object
  function normalizeStyleBinding (bindingStyle) {
    if (Array.isArray(bindingStyle)) {
      return toObject(bindingStyle)
    }
    if (typeof bindingStyle === 'string') {
      return parseStyleText(bindingStyle)
    }
    return bindingStyle
  }
  
  /**
   * parent component style should be after child's
   * so that parent component's style could override it
   */
  function getStyle (vnode, checkChild) {
    var res = {};
    var styleData;
  
    if (checkChild) {
      var childNode = vnode;
      while (childNode.componentInstance) {
        childNode = childNode.componentInstance._vnode;
        if (
          childNode && childNode.data &&
          (styleData = normalizeStyleData(childNode.data))
        ) {
          extend(res, styleData);
        }
      }
    }
  
    if ((styleData = normalizeStyleData(vnode.data))) {
      extend(res, styleData);
    }
  
    var parentNode = vnode;
    while ((parentNode = parentNode.parent)) {
      if (parentNode.data && (styleData = normalizeStyleData(parentNode.data))) {
        extend(res, styleData);
      }
    }
    return res
  }
  
  /*  */
  
  var cssVarRE = /^--/;
  var importantRE = /\s*!important$/;
  var setProp = function (el, name, val) {
    /* istanbul ignore if */
    if (cssVarRE.test(name)) {
      el.style.setProperty(name, val);
    } else if (importantRE.test(val)) {
      el.style.setProperty(name, val.replace(importantRE, ''), 'important');
    } else {
      var normalizedName = normalize(name);
      if (Array.isArray(val)) {
        // Support values array created by autoprefixer, e.g.
        // {display: ["-webkit-box", "-ms-flexbox", "flex"]}
        // Set them one by one, and the browser will only set those it can recognize
        for (var i = 0, len = val.length; i < len; i++) {
          el.style[normalizedName] = val[i];
        }
      } else {
        el.style[normalizedName] = val;
      }
    }
  };
  
  var vendorNames = ['Webkit', 'Moz', 'ms'];
  
  var emptyStyle;
  var normalize = cached(function (prop) {
    emptyStyle = emptyStyle || document.createElement('div').style;
    prop = camelize(prop);
    if (prop !== 'filter' && (prop in emptyStyle)) {
      return prop
    }
    var capName = prop.charAt(0).toUpperCase() + prop.slice(1);
    for (var i = 0; i < vendorNames.length; i++) {
      var name = vendorNames[i] + capName;
      if (name in emptyStyle) {
        return name
      }
    }
  });
  
  function updateStyle (oldVnode, vnode) {
    var data = vnode.data;
    var oldData = oldVnode.data;
  
    if (isUndef(data.staticStyle) && isUndef(data.style) &&
      isUndef(oldData.staticStyle) && isUndef(oldData.style)
    ) {
      return
    }
  
    var cur, name;
    var el = vnode.elm;
    var oldStaticStyle = oldData.staticStyle;
    var oldStyleBinding = oldData.normalizedStyle || oldData.style || {};
  
    // if static style exists, stylebinding already merged into it when doing normalizeStyleData
    var oldStyle = oldStaticStyle || oldStyleBinding;
  
    var style = normalizeStyleBinding(vnode.data.style) || {};
  
    // store normalized style under a different key for next diff
    // make sure to clone it if it's reactive, since the user likely wants
    // to mutate it.
    vnode.data.normalizedStyle = isDef(style.__ob__)
      ? extend({}, style)
      : style;
  
    var newStyle = getStyle(vnode, true);
  
    for (name in oldStyle) {
      if (isUndef(newStyle[name])) {
        setProp(el, name, '');
      }
    }
    for (name in newStyle) {
      cur = newStyle[name];
      if (cur !== oldStyle[name]) {
        // ie9 setting to null has no effect, must use empty string
        setProp(el, name, cur == null ? '' : cur);
      }
    }
  }
  
  var style = {
    create: updateStyle,
    update: updateStyle
  };
  
  /*  */
  
  /**
   * Add class with compatibility for SVG since classList is not supported on
   * SVG elements in IE
   */
  function addClass (el, cls) {
    /* istanbul ignore if */
    if (!cls || !(cls = cls.trim())) {
      return
    }
  
    /* istanbul ignore else */
    if (el.classList) {
      if (cls.indexOf(' ') > -1) {
        cls.split(/\s+/).forEach(function (c) { return el.classList.add(c); });
      } else {
        el.classList.add(cls);
      }
    } else {
      var cur = " " + (el.getAttribute('class') || '') + " ";
      if (cur.indexOf(' ' + cls + ' ') < 0) {
        el.setAttribute('class', (cur + cls).trim());
      }
    }
  }
  
  /**
   * Remove class with compatibility for SVG since classList is not supported on
   * SVG elements in IE
   */
  function removeClass (el, cls) {
    /* istanbul ignore if */
    if (!cls || !(cls = cls.trim())) {
      return
    }
  
    /* istanbul ignore else */
    if (el.classList) {
      if (cls.indexOf(' ') > -1) {
        cls.split(/\s+/).forEach(function (c) { return el.classList.remove(c); });
      } else {
        el.classList.remove(cls);
      }
      if (!el.classList.length) {
        el.removeAttribute('class');
      }
    } else {
      var cur = " " + (el.getAttribute('class') || '') + " ";
      var tar = ' ' + cls + ' ';
      while (cur.indexOf(tar) >= 0) {
        cur = cur.replace(tar, ' ');
      }
      cur = cur.trim();
      if (cur) {
        el.setAttribute('class', cur);
      } else {
        el.removeAttribute('class');
      }
    }
  }
  
  /*  */
  
  function resolveTransition (def) {
    if (!def) {
      return
    }
    /* istanbul ignore else */
    if (typeof def === 'object') {
      var res = {};
      if (def.css !== false) {
        extend(res, autoCssTransition(def.name || 'v'));
      }
      extend(res, def);
      return res
    } else if (typeof def === 'string') {
      return autoCssTransition(def)
    }
  }
  
  var autoCssTransition = cached(function (name) {
    return {
      enterClass: (name + "-enter"),
      enterToClass: (name + "-enter-to"),
      enterActiveClass: (name + "-enter-active"),
      leaveClass: (name + "-leave"),
      leaveToClass: (name + "-leave-to"),
      leaveActiveClass: (name + "-leave-active")
    }
  });
  
  var hasTransition = inBrowser && !isIE9;
  var TRANSITION = 'transition';
  var ANIMATION = 'animation';
  
  // Transition property/event sniffing
  var transitionProp = 'transition';
  var transitionEndEvent = 'transitionend';
  var animationProp = 'animation';
  var animationEndEvent = 'animationend';
  if (hasTransition) {
    /* istanbul ignore if */
    if (window.ontransitionend === undefined &&
      window.onwebkittransitionend !== undefined
    ) {
      transitionProp = 'WebkitTransition';
      transitionEndEvent = 'webkitTransitionEnd';
    }
    if (window.onanimationend === undefined &&
      window.onwebkitanimationend !== undefined
    ) {
      animationProp = 'WebkitAnimation';
      animationEndEvent = 'webkitAnimationEnd';
    }
  }
  
  // binding to window is necessary to make hot reload work in IE in strict mode
  var raf = inBrowser
    ? window.requestAnimationFrame
      ? window.requestAnimationFrame.bind(window)
      : setTimeout
    : /* istanbul ignore next */ function (fn) { return fn(); };
  
  function nextFrame (fn) {
    raf(function () {
      raf(fn);
    });
  }
  
  function addTransitionClass (el, cls) {
    var transitionClasses = el._transitionClasses || (el._transitionClasses = []);
    if (transitionClasses.indexOf(cls) < 0) {
      transitionClasses.push(cls);
      addClass(el, cls);
    }
  }
  
  function removeTransitionClass (el, cls) {
    if (el._transitionClasses) {
      remove(el._transitionClasses, cls);
    }
    removeClass(el, cls);
  }
  
  function whenTransitionEnds (
    el,
    expectedType,
    cb
  ) {
    var ref = getTransitionInfo(el, expectedType);
    var type = ref.type;
    var timeout = ref.timeout;
    var propCount = ref.propCount;
    if (!type) { return cb() }
    var event = type === TRANSITION ? transitionEndEvent : animationEndEvent;
    var ended = 0;
    var end = function () {
      el.removeEventListener(event, onEnd);
      cb();
    };
    var onEnd = function (e) {
      if (e.target === el) {
        if (++ended >= propCount) {
          end();
        }
      }
    };
    setTimeout(function () {
      if (ended < propCount) {
        end();
      }
    }, timeout + 1);
    el.addEventListener(event, onEnd);
  }
  
  var transformRE = /\b(transform|all)(,|$)/;
  
  function getTransitionInfo (el, expectedType) {
    var styles = window.getComputedStyle(el);
    var transitionDelays = styles[transitionProp + 'Delay'].split(', ');
    var transitionDurations = styles[transitionProp + 'Duration'].split(', ');
    var transitionTimeout = getTimeout(transitionDelays, transitionDurations);
    var animationDelays = styles[animationProp + 'Delay'].split(', ');
    var animationDurations = styles[animationProp + 'Duration'].split(', ');
    var animationTimeout = getTimeout(animationDelays, animationDurations);
  
    var type;
    var timeout = 0;
    var propCount = 0;
    /* istanbul ignore if */
    if (expectedType === TRANSITION) {
      if (transitionTimeout > 0) {
        type = TRANSITION;
        timeout = transitionTimeout;
        propCount = transitionDurations.length;
      }
    } else if (expectedType === ANIMATION) {
      if (animationTimeout > 0) {
        type = ANIMATION;
        timeout = animationTimeout;
        propCount = animationDurations.length;
      }
    } else {
      timeout = Math.max(transitionTimeout, animationTimeout);
      type = timeout > 0
        ? transitionTimeout > animationTimeout
          ? TRANSITION
          : ANIMATION
        : null;
      propCount = type
        ? type === TRANSITION
          ? transitionDurations.length
          : animationDurations.length
        : 0;
    }
    var hasTransform =
      type === TRANSITION &&
      transformRE.test(styles[transitionProp + 'Property']);
    return {
      type: type,
      timeout: timeout,
      propCount: propCount,
      hasTransform: hasTransform
    }
  }
  
  function getTimeout (delays, durations) {
    /* istanbul ignore next */
    while (delays.length < durations.length) {
      delays = delays.concat(delays);
    }
  
    return Math.max.apply(null, durations.map(function (d, i) {
      return toMs(d) + toMs(delays[i])
    }))
  }
  
  function toMs (s) {
    return Number(s.slice(0, -1)) * 1000
  }
  
  /*  */
  
  function enter (vnode, toggleDisplay) {
    var el = vnode.elm;
  
    // call leave callback now
    if (isDef(el._leaveCb)) {
      el._leaveCb.cancelled = true;
      el._leaveCb();
    }
  
    var data = resolveTransition(vnode.data.transition);
    if (isUndef(data)) {
      return
    }
  
    /* istanbul ignore if */
    if (isDef(el._enterCb) || el.nodeType !== 1) {
      return
    }
  
    var css = data.css;
    var type = data.type;
    var enterClass = data.enterClass;
    var enterToClass = data.enterToClass;
    var enterActiveClass = data.enterActiveClass;
    var appearClass = data.appearClass;
    var appearToClass = data.appearToClass;
    var appearActiveClass = data.appearActiveClass;
    var beforeEnter = data.beforeEnter;
    var enter = data.enter;
    var afterEnter = data.afterEnter;
    var enterCancelled = data.enterCancelled;
    var beforeAppear = data.beforeAppear;
    var appear = data.appear;
    var afterAppear = data.afterAppear;
    var appearCancelled = data.appearCancelled;
    var duration = data.duration;
  
    // activeInstance will always be the <transition> component managing this
    // transition. One edge case to check is when the <transition> is placed
    // as the root node of a child component. In that case we need to check
    // <transition>'s parent for appear check.
    var context = activeInstance;
    var transitionNode = activeInstance.$vnode;
    while (transitionNode && transitionNode.parent) {
      transitionNode = transitionNode.parent;
      context = transitionNode.context;
    }
  
    var isAppear = !context._isMounted || !vnode.isRootInsert;
  
    if (isAppear && !appear && appear !== '') {
      return
    }
  
    var startClass = isAppear && appearClass
      ? appearClass
      : enterClass;
    var activeClass = isAppear && appearActiveClass
      ? appearActiveClass
      : enterActiveClass;
    var toClass = isAppear && appearToClass
      ? appearToClass
      : enterToClass;
  
    var beforeEnterHook = isAppear
      ? (beforeAppear || beforeEnter)
      : beforeEnter;
    var enterHook = isAppear
      ? (typeof appear === 'function' ? appear : enter)
      : enter;
    var afterEnterHook = isAppear
      ? (afterAppear || afterEnter)
      : afterEnter;
    var enterCancelledHook = isAppear
      ? (appearCancelled || enterCancelled)
      : enterCancelled;
  
    var explicitEnterDuration = toNumber(
      isObject(duration)
        ? duration.enter
        : duration
    );
  
    if ("development" !== 'production' && explicitEnterDuration != null) {
      checkDuration(explicitEnterDuration, 'enter', vnode);
    }
  
    var expectsCSS = css !== false && !isIE9;
    var userWantsControl = getHookArgumentsLength(enterHook);
  
    var cb = el._enterCb = once(function () {
      if (expectsCSS) {
        removeTransitionClass(el, toClass);
        removeTransitionClass(el, activeClass);
      }
      if (cb.cancelled) {
        if (expectsCSS) {
          removeTransitionClass(el, startClass);
        }
        enterCancelledHook && enterCancelledHook(el);
      } else {
        afterEnterHook && afterEnterHook(el);
      }
      el._enterCb = null;
    });
  
    if (!vnode.data.show) {
      // remove pending leave element on enter by injecting an insert hook
      mergeVNodeHook(vnode, 'insert', function () {
        var parent = el.parentNode;
        var pendingNode = parent && parent._pending && parent._pending[vnode.key];
        if (pendingNode &&
          pendingNode.tag === vnode.tag &&
          pendingNode.elm._leaveCb
        ) {
          pendingNode.elm._leaveCb();
        }
        enterHook && enterHook(el, cb);
      });
    }
  
    // start enter transition
    beforeEnterHook && beforeEnterHook(el);
    if (expectsCSS) {
      addTransitionClass(el, startClass);
      addTransitionClass(el, activeClass);
      nextFrame(function () {
        addTransitionClass(el, toClass);
        removeTransitionClass(el, startClass);
        if (!cb.cancelled && !userWantsControl) {
          if (isValidDuration(explicitEnterDuration)) {
            setTimeout(cb, explicitEnterDuration);
          } else {
            whenTransitionEnds(el, type, cb);
          }
        }
      });
    }
  
    if (vnode.data.show) {
      toggleDisplay && toggleDisplay();
      enterHook && enterHook(el, cb);
    }
  
    if (!expectsCSS && !userWantsControl) {
      cb();
    }
  }
  
  function leave (vnode, rm) {
    var el = vnode.elm;
  
    // call enter callback now
    if (isDef(el._enterCb)) {
      el._enterCb.cancelled = true;
      el._enterCb();
    }
  
    var data = resolveTransition(vnode.data.transition);
    if (isUndef(data) || el.nodeType !== 1) {
      return rm()
    }
  
    /* istanbul ignore if */
    if (isDef(el._leaveCb)) {
      return
    }
  
    var css = data.css;
    var type = data.type;
    var leaveClass = data.leaveClass;
    var leaveToClass = data.leaveToClass;
    var leaveActiveClass = data.leaveActiveClass;
    var beforeLeave = data.beforeLeave;
    var leave = data.leave;
    var afterLeave = data.afterLeave;
    var leaveCancelled = data.leaveCancelled;
    var delayLeave = data.delayLeave;
    var duration = data.duration;
  
    var expectsCSS = css !== false && !isIE9;
    var userWantsControl = getHookArgumentsLength(leave);
  
    var explicitLeaveDuration = toNumber(
      isObject(duration)
        ? duration.leave
        : duration
    );
  
    if ("development" !== 'production' && isDef(explicitLeaveDuration)) {
      checkDuration(explicitLeaveDuration, 'leave', vnode);
    }
  
    var cb = el._leaveCb = once(function () {
      if (el.parentNode && el.parentNode._pending) {
        el.parentNode._pending[vnode.key] = null;
      }
      if (expectsCSS) {
        removeTransitionClass(el, leaveToClass);
        removeTransitionClass(el, leaveActiveClass);
      }
      if (cb.cancelled) {
        if (expectsCSS) {
          removeTransitionClass(el, leaveClass);
        }
        leaveCancelled && leaveCancelled(el);
      } else {
        rm();
        afterLeave && afterLeave(el);
      }
      el._leaveCb = null;
    });
  
    if (delayLeave) {
      delayLeave(performLeave);
    } else {
      performLeave();
    }
  
    function performLeave () {
      // the delayed leave may have already been cancelled
      if (cb.cancelled) {
        return
      }
      // record leaving element
      if (!vnode.data.show) {
        (el.parentNode._pending || (el.parentNode._pending = {}))[(vnode.key)] = vnode;
      }
      beforeLeave && beforeLeave(el);
      if (expectsCSS) {
        addTransitionClass(el, leaveClass);
        addTransitionClass(el, leaveActiveClass);
        nextFrame(function () {
          addTransitionClass(el, leaveToClass);
          removeTransitionClass(el, leaveClass);
          if (!cb.cancelled && !userWantsControl) {
            if (isValidDuration(explicitLeaveDuration)) {
              setTimeout(cb, explicitLeaveDuration);
            } else {
              whenTransitionEnds(el, type, cb);
            }
          }
        });
      }
      leave && leave(el, cb);
      if (!expectsCSS && !userWantsControl) {
        cb();
      }
    }
  }
  
  // only used in dev mode
  function checkDuration (val, name, vnode) {
    if (typeof val !== 'number') {
      warn(
        "<transition> explicit " + name + " duration is not a valid number - " +
        "got " + (JSON.stringify(val)) + ".",
        vnode.context
      );
    } else if (isNaN(val)) {
      warn(
        "<transition> explicit " + name + " duration is NaN - " +
        'the duration expression might be incorrect.',
        vnode.context
      );
    }
  }
  
  function isValidDuration (val) {
    return typeof val === 'number' && !isNaN(val)
  }
  
  /**
   * Normalize a transition hook's argument length. The hook may be:
   * - a merged hook (invoker) with the original in .fns
   * - a wrapped component method (check ._length)
   * - a plain function (.length)
   */
  function getHookArgumentsLength (fn) {
    if (isUndef(fn)) {
      return false
    }
    var invokerFns = fn.fns;
    if (isDef(invokerFns)) {
      // invoker
      return getHookArgumentsLength(
        Array.isArray(invokerFns)
          ? invokerFns[0]
          : invokerFns
      )
    } else {
      return (fn._length || fn.length) > 1
    }
  }
  
  function _enter (_, vnode) {
    if (vnode.data.show !== true) {
      enter(vnode);
    }
  }
  
  var transition = inBrowser ? {
    create: _enter,
    activate: _enter,
    remove: function remove$$1 (vnode, rm) {
      /* istanbul ignore else */
      if (vnode.data.show !== true) {
        leave(vnode, rm);
      } else {
        rm();
      }
    }
  } : {};
  
  var platformModules = [
    attrs,
    klass,
    events,
    domProps,
    style,
    transition
  ];
  
  /*  */
  
  // the directive module should be applied last, after all
  // built-in modules have been applied.
  var modules = platformModules.concat(baseModules);
  
  var patch = createPatchFunction({ nodeOps: nodeOps, modules: modules });
  
  /**
   * Not type checking this file because flow doesn't like attaching
   * properties to Elements.
   */
  
  /* istanbul ignore if */
  if (isIE9) {
    // http://www.matts411.com/post/internet-explorer-9-oninput/
    document.addEventListener('selectionchange', function () {
      var el = document.activeElement;
      if (el && el.vmodel) {
        trigger(el, 'input');
      }
    });
  }
  
  var directive = {
    inserted: function inserted (el, binding, vnode, oldVnode) {
      if (vnode.tag === 'select') {
        // #6903
        if (oldVnode.elm && !oldVnode.elm._vOptions) {
          mergeVNodeHook(vnode, 'postpatch', function () {
            directive.componentUpdated(el, binding, vnode);
          });
        } else {
          setSelected(el, binding, vnode.context);
        }
        el._vOptions = [].map.call(el.options, getValue);
      } else if (vnode.tag === 'textarea' || isTextInputType(el.type)) {
        el._vModifiers = binding.modifiers;
        if (!binding.modifiers.lazy) {
          // Safari < 10.2 & UIWebView doesn't fire compositionend when
          // switching focus before confirming composition choice
          // this also fixes the issue where some browsers e.g. iOS Chrome
          // fires "change" instead of "input" on autocomplete.
          el.addEventListener('change', onCompositionEnd);
          if (!isAndroid) {
            el.addEventListener('compositionstart', onCompositionStart);
            el.addEventListener('compositionend', onCompositionEnd);
          }
          /* istanbul ignore if */
          if (isIE9) {
            el.vmodel = true;
          }
        }
      }
    },
  
    componentUpdated: function componentUpdated (el, binding, vnode) {
      if (vnode.tag === 'select') {
        setSelected(el, binding, vnode.context);
        // in case the options rendered by v-for have changed,
        // it's possible that the value is out-of-sync with the rendered options.
        // detect such cases and filter out values that no longer has a matching
        // option in the DOM.
        var prevOptions = el._vOptions;
        var curOptions = el._vOptions = [].map.call(el.options, getValue);
        if (curOptions.some(function (o, i) { return !looseEqual(o, prevOptions[i]); })) {
          // trigger change event if
          // no matching option found for at least one value
          var needReset = el.multiple
            ? binding.value.some(function (v) { return hasNoMatchingOption(v, curOptions); })
            : binding.value !== binding.oldValue && hasNoMatchingOption(binding.value, curOptions);
          if (needReset) {
            trigger(el, 'change');
          }
        }
      }
    }
  };
  
  function setSelected (el, binding, vm) {
    actuallySetSelected(el, binding, vm);
    /* istanbul ignore if */
    if (isIE || isEdge) {
      setTimeout(function () {
        actuallySetSelected(el, binding, vm);
      }, 0);
    }
  }
  
  function actuallySetSelected (el, binding, vm) {
    var value = binding.value;
    var isMultiple = el.multiple;
    if (isMultiple && !Array.isArray(value)) {
      "development" !== 'production' && warn(
        "<select multiple v-model=\"" + (binding.expression) + "\"> " +
        "expects an Array value for its binding, but got " + (Object.prototype.toString.call(value).slice(8, -1)),
        vm
      );
      return
    }
    var selected, option;
    for (var i = 0, l = el.options.length; i < l; i++) {
      option = el.options[i];
      if (isMultiple) {
        selected = looseIndexOf(value, getValue(option)) > -1;
        if (option.selected !== selected) {
          option.selected = selected;
        }
      } else {
        if (looseEqual(getValue(option), value)) {
          if (el.selectedIndex !== i) {
            el.selectedIndex = i;
          }
          return
        }
      }
    }
    if (!isMultiple) {
      el.selectedIndex = -1;
    }
  }
  
  function hasNoMatchingOption (value, options) {
    return options.every(function (o) { return !looseEqual(o, value); })
  }
  
  function getValue (option) {
    return '_value' in option
      ? option._value
      : option.value
  }
  
  function onCompositionStart (e) {
    e.target.composing = true;
  }
  
  function onCompositionEnd (e) {
    // prevent triggering an input event for no reason
    if (!e.target.composing) { return }
    e.target.composing = false;
    trigger(e.target, 'input');
  }
  
  function trigger (el, type) {
    var e = document.createEvent('HTMLEvents');
    e.initEvent(type, true, true);
    el.dispatchEvent(e);
  }
  
  /*  */
  
  // recursively search for possible transition defined inside the component root
  function locateNode (vnode) {
    return vnode.componentInstance && (!vnode.data || !vnode.data.transition)
      ? locateNode(vnode.componentInstance._vnode)
      : vnode
  }
  
  var show = {
    bind: function bind (el, ref, vnode) {
      var value = ref.value;
  
      vnode = locateNode(vnode);
      var transition$$1 = vnode.data && vnode.data.transition;
      var originalDisplay = el.__vOriginalDisplay =
        el.style.display === 'none' ? '' : el.style.display;
      if (value && transition$$1) {
        vnode.data.show = true;
        enter(vnode, function () {
          el.style.display = originalDisplay;
        });
      } else {
        el.style.display = value ? originalDisplay : 'none';
      }
    },
  
    update: function update (el, ref, vnode) {
      var value = ref.value;
      var oldValue = ref.oldValue;
  
      /* istanbul ignore if */
      if (value === oldValue) { return }
      vnode = locateNode(vnode);
      var transition$$1 = vnode.data && vnode.data.transition;
      if (transition$$1) {
        vnode.data.show = true;
        if (value) {
          enter(vnode, function () {
            el.style.display = el.__vOriginalDisplay;
          });
        } else {
          leave(vnode, function () {
            el.style.display = 'none';
          });
        }
      } else {
        el.style.display = value ? el.__vOriginalDisplay : 'none';
      }
    },
  
    unbind: function unbind (
      el,
      binding,
      vnode,
      oldVnode,
      isDestroy
    ) {
      if (!isDestroy) {
        el.style.display = el.__vOriginalDisplay;
      }
    }
  };
  
  var platformDirectives = {
    model: directive,
    show: show
  };
  
  /*  */
  
  // Provides transition support for a single element/component.
  // supports transition mode (out-in / in-out)
  
  var transitionProps = {
    name: String,
    appear: Boolean,
    css: Boolean,
    mode: String,
    type: String,
    enterClass: String,
    leaveClass: String,
    enterToClass: String,
    leaveToClass: String,
    enterActiveClass: String,
    leaveActiveClass: String,
    appearClass: String,
    appearActiveClass: String,
    appearToClass: String,
    duration: [Number, String, Object]
  };
  
  // in case the child is also an abstract component, e.g. <keep-alive>
  // we want to recursively retrieve the real component to be rendered
  function getRealChild (vnode) {
    var compOptions = vnode && vnode.componentOptions;
    if (compOptions && compOptions.Ctor.options.abstract) {
      return getRealChild(getFirstComponentChild(compOptions.children))
    } else {
      return vnode
    }
  }
  
  function extractTransitionData (comp) {
    var data = {};
    var options = comp.$options;
    // props
    for (var key in options.propsData) {
      data[key] = comp[key];
    }
    // events.
    // extract listeners and pass them directly to the transition methods
    var listeners = options._parentListeners;
    for (var key$1 in listeners) {
      data[camelize(key$1)] = listeners[key$1];
    }
    return data
  }
  
  function placeholder (h, rawChild) {
    if (/\d-keep-alive$/.test(rawChild.tag)) {
      return h('keep-alive', {
        props: rawChild.componentOptions.propsData
      })
    }
  }
  
  function hasParentTransition (vnode) {
    while ((vnode = vnode.parent)) {
      if (vnode.data.transition) {
        return true
      }
    }
  }
  
  function isSameChild (child, oldChild) {
    return oldChild.key === child.key && oldChild.tag === child.tag
  }
  
  var Transition = {
    name: 'transition',
    props: transitionProps,
    abstract: true,
  
    render: function render (h) {
      var this$1 = this;
  
      var children = this.$slots.default;
      if (!children) {
        return
      }
  
      // filter out text nodes (possible whitespaces)
      children = children.filter(function (c) { return c.tag || isAsyncPlaceholder(c); });
      /* istanbul ignore if */
      if (!children.length) {
        return
      }
  
      // warn multiple elements
      if ("development" !== 'production' && children.length > 1) {
        warn(
          '<transition> can only be used on a single element. Use ' +
          '<transition-group> for lists.',
          this.$parent
        );
      }
  
      var mode = this.mode;
  
      // warn invalid mode
      if ("development" !== 'production' &&
        mode && mode !== 'in-out' && mode !== 'out-in'
      ) {
        warn(
          'invalid <transition> mode: ' + mode,
          this.$parent
        );
      }
  
      var rawChild = children[0];
  
      // if this is a component root node and the component's
      // parent container node also has transition, skip.
      if (hasParentTransition(this.$vnode)) {
        return rawChild
      }
  
      // apply transition data to child
      // use getRealChild() to ignore abstract components e.g. keep-alive
      var child = getRealChild(rawChild);
      /* istanbul ignore if */
      if (!child) {
        return rawChild
      }
  
      if (this._leaving) {
        return placeholder(h, rawChild)
      }
  
      // ensure a key that is unique to the vnode type and to this transition
      // component instance. This key will be used to remove pending leaving nodes
      // during entering.
      var id = "__transition-" + (this._uid) + "-";
      child.key = child.key == null
        ? child.isComment
          ? id + 'comment'
          : id + child.tag
        : isPrimitive(child.key)
          ? (String(child.key).indexOf(id) === 0 ? child.key : id + child.key)
          : child.key;
  
      var data = (child.data || (child.data = {})).transition = extractTransitionData(this);
      var oldRawChild = this._vnode;
      var oldChild = getRealChild(oldRawChild);
  
      // mark v-show
      // so that the transition module can hand over the control to the directive
      if (child.data.directives && child.data.directives.some(function (d) { return d.name === 'show'; })) {
        child.data.show = true;
      }
  
      if (
        oldChild &&
        oldChild.data &&
        !isSameChild(child, oldChild) &&
        !isAsyncPlaceholder(oldChild) &&
        // #6687 component root is a comment node
        !(oldChild.componentInstance && oldChild.componentInstance._vnode.isComment)
      ) {
        // replace old child transition data with fresh one
        // important for dynamic transitions!
        var oldData = oldChild.data.transition = extend({}, data);
        // handle transition mode
        if (mode === 'out-in') {
          // return placeholder node and queue update when leave finishes
          this._leaving = true;
          mergeVNodeHook(oldData, 'afterLeave', function () {
            this$1._leaving = false;
            this$1.$forceUpdate();
          });
          return placeholder(h, rawChild)
        } else if (mode === 'in-out') {
          if (isAsyncPlaceholder(child)) {
            return oldRawChild
          }
          var delayedLeave;
          var performLeave = function () { delayedLeave(); };
          mergeVNodeHook(data, 'afterEnter', performLeave);
          mergeVNodeHook(data, 'enterCancelled', performLeave);
          mergeVNodeHook(oldData, 'delayLeave', function (leave) { delayedLeave = leave; });
        }
      }
  
      return rawChild
    }
  };
  
  /*  */
  
  // Provides transition support for list items.
  // supports move transitions using the FLIP technique.
  
  // Because the vdom's children update algorithm is "unstable" - i.e.
  // it doesn't guarantee the relative positioning of removed elements,
  // we force transition-group to update its children into two passes:
  // in the first pass, we remove all nodes that need to be removed,
  // triggering their leaving transition; in the second pass, we insert/move
  // into the final desired state. This way in the second pass removed
  // nodes will remain where they should be.
  
  var props = extend({
    tag: String,
    moveClass: String
  }, transitionProps);
  
  delete props.mode;
  
  var TransitionGroup = {
    props: props,
  
    render: function render (h) {
      var tag = this.tag || this.$vnode.data.tag || 'span';
      var map = Object.create(null);
      var prevChildren = this.prevChildren = this.children;
      var rawChildren = this.$slots.default || [];
      var children = this.children = [];
      var transitionData = extractTransitionData(this);
  
      for (var i = 0; i < rawChildren.length; i++) {
        var c = rawChildren[i];
        if (c.tag) {
          if (c.key != null && String(c.key).indexOf('__vlist') !== 0) {
            children.push(c);
            map[c.key] = c
            ;(c.data || (c.data = {})).transition = transitionData;
          } else if (true) {
            var opts = c.componentOptions;
            var name = opts ? (opts.Ctor.options.name || opts.tag || '') : c.tag;
            warn(("<transition-group> children must be keyed: <" + name + ">"));
          }
        }
      }
  
      if (prevChildren) {
        var kept = [];
        var removed = [];
        for (var i$1 = 0; i$1 < prevChildren.length; i$1++) {
          var c$1 = prevChildren[i$1];
          c$1.data.transition = transitionData;
          c$1.data.pos = c$1.elm.getBoundingClientRect();
          if (map[c$1.key]) {
            kept.push(c$1);
          } else {
            removed.push(c$1);
          }
        }
        this.kept = h(tag, null, kept);
        this.removed = removed;
      }
  
      return h(tag, null, children)
    },
  
    beforeUpdate: function beforeUpdate () {
      // force removing pass
      this.__patch__(
        this._vnode,
        this.kept,
        false, // hydrating
        true // removeOnly (!important avoids unnecessary moves)
      );
      this._vnode = this.kept;
    },
  
    updated: function updated () {
      var children = this.prevChildren;
      var moveClass = this.moveClass || ((this.name || 'v') + '-move');
      if (!children.length || !this.hasMove(children[0].elm, moveClass)) {
        return
      }
  
      // we divide the work into three loops to avoid mixing DOM reads and writes
      // in each iteration - which helps prevent layout thrashing.
      children.forEach(callPendingCbs);
      children.forEach(recordPosition);
      children.forEach(applyTranslation);
  
      // force reflow to put everything in position
      // assign to this to avoid being removed in tree-shaking
      // $flow-disable-line
      this._reflow = document.body.offsetHeight;
  
      children.forEach(function (c) {
        if (c.data.moved) {
          var el = c.elm;
          var s = el.style;
          addTransitionClass(el, moveClass);
          s.transform = s.WebkitTransform = s.transitionDuration = '';
          el.addEventListener(transitionEndEvent, el._moveCb = function cb (e) {
            if (!e || /transform$/.test(e.propertyName)) {
              el.removeEventListener(transitionEndEvent, cb);
              el._moveCb = null;
              removeTransitionClass(el, moveClass);
            }
          });
        }
      });
    },
  
    methods: {
      hasMove: function hasMove (el, moveClass) {
        /* istanbul ignore if */
        if (!hasTransition) {
          return false
        }
        /* istanbul ignore if */
        if (this._hasMove) {
          return this._hasMove
        }
        // Detect whether an element with the move class applied has
        // CSS transitions. Since the element may be inside an entering
        // transition at this very moment, we make a clone of it and remove
        // all other transition classes applied to ensure only the move class
        // is applied.
        var clone = el.cloneNode();
        if (el._transitionClasses) {
          el._transitionClasses.forEach(function (cls) { removeClass(clone, cls); });
        }
        addClass(clone, moveClass);
        clone.style.display = 'none';
        this.$el.appendChild(clone);
        var info = getTransitionInfo(clone);
        this.$el.removeChild(clone);
        return (this._hasMove = info.hasTransform)
      }
    }
  };
  
  function callPendingCbs (c) {
    /* istanbul ignore if */
    if (c.elm._moveCb) {
      c.elm._moveCb();
    }
    /* istanbul ignore if */
    if (c.elm._enterCb) {
      c.elm._enterCb();
    }
  }
  
  function recordPosition (c) {
    c.data.newPos = c.elm.getBoundingClientRect();
  }
  
  function applyTranslation (c) {
    var oldPos = c.data.pos;
    var newPos = c.data.newPos;
    var dx = oldPos.left - newPos.left;
    var dy = oldPos.top - newPos.top;
    if (dx || dy) {
      c.data.moved = true;
      var s = c.elm.style;
      s.transform = s.WebkitTransform = "translate(" + dx + "px," + dy + "px)";
      s.transitionDuration = '0s';
    }
  }
  
  var platformComponents = {
    Transition: Transition,
    TransitionGroup: TransitionGroup
  };
  
  /*  */
  
  // install platform specific utils
  Vue$3.config.mustUseProp = mustUseProp;
  Vue$3.config.isReservedTag = isReservedTag;
  Vue$3.config.isReservedAttr = isReservedAttr;
  Vue$3.config.getTagNamespace = getTagNamespace;
  Vue$3.config.isUnknownElement = isUnknownElement;
  
  // install platform runtime directives & components
  extend(Vue$3.options.directives, platformDirectives);
  extend(Vue$3.options.components, platformComponents);
  
  // install platform patch function
  Vue$3.prototype.__patch__ = inBrowser ? patch : noop;
  
  // public mount method
  Vue$3.prototype.$mount = function (
    el,
    hydrating
  ) {
    el = el && inBrowser ? query(el) : undefined;
    return mountComponent(this, el, hydrating)
  };
  
  // devtools global hook
  /* istanbul ignore next */
  Vue$3.nextTick(function () {
    if (config.devtools) {
      if (devtools) {
        devtools.emit('init', Vue$3);
      } else if ("development" !== 'production' && isChrome) {
        console[console.info ? 'info' : 'log'](
          'Download the Vue Devtools extension for a better development experience:\n' +
          'https://github.com/vuejs/vue-devtools'
        );
      }
    }
    if ("development" !== 'production' &&
      config.productionTip !== false &&
      inBrowser && typeof console !== 'undefined'
    ) {
      console[console.info ? 'info' : 'log'](
        "You are running Vue in development mode.\n" +
        "Make sure to turn on production mode when deploying for production.\n" +
        "See more tips at https://vuejs.org/guide/deployment.html"
      );
    }
  }, 0);
  
  /*  */
  
  var defaultTagRE = /\{\{((?:.|\n)+?)\}\}/g;
  var regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g;
  
  var buildRegex = cached(function (delimiters) {
    var open = delimiters[0].replace(regexEscapeRE, '\\$&');
    var close = delimiters[1].replace(regexEscapeRE, '\\$&');
    return new RegExp(open + '((?:.|\\n)+?)' + close, 'g')
  });
  
  
  
  function parseText (
    text,
    delimiters
  ) {
    var tagRE = delimiters ? buildRegex(delimiters) : defaultTagRE;
    if (!tagRE.test(text)) {
      return
    }
    var tokens = [];
    var rawTokens = [];
    var lastIndex = tagRE.lastIndex = 0;
    var match, index, tokenValue;
    while ((match = tagRE.exec(text))) {
      index = match.index;
      // push text token
      if (index > lastIndex) {
        rawTokens.push(tokenValue = text.slice(lastIndex, index));
        tokens.push(JSON.stringify(tokenValue));
      }
      // tag token
      var exp = parseFilters(match[1].trim());
      tokens.push(("_s(" + exp + ")"));
      rawTokens.push({ '@binding': exp });
      lastIndex = index + match[0].length;
    }
    if (lastIndex < text.length) {
      rawTokens.push(tokenValue = text.slice(lastIndex));
      tokens.push(JSON.stringify(tokenValue));
    }
    return {
      expression: tokens.join('+'),
      tokens: rawTokens
    }
  }
  
  /*  */
  
  function transformNode (el, options) {
    var warn = options.warn || baseWarn;
    var staticClass = getAndRemoveAttr(el, 'class');
    if ("development" !== 'production' && staticClass) {
      var res = parseText(staticClass, options.delimiters);
      if (res) {
        warn(
          "class=\"" + staticClass + "\": " +
          'Interpolation inside attributes has been removed. ' +
          'Use v-bind or the colon shorthand instead. For example, ' +
          'instead of <div class="{{ val }}">, use <div :class="val">.'
        );
      }
    }
    if (staticClass) {
      el.staticClass = JSON.stringify(staticClass);
    }
    var classBinding = getBindingAttr(el, 'class', false /* getStatic */);
    if (classBinding) {
      el.classBinding = classBinding;
    }
  }
  
  function genData (el) {
    var data = '';
    if (el.staticClass) {
      data += "staticClass:" + (el.staticClass) + ",";
    }
    if (el.classBinding) {
      data += "class:" + (el.classBinding) + ",";
    }
    return data
  }
  
  var klass$1 = {
    staticKeys: ['staticClass'],
    transformNode: transformNode,
    genData: genData
  };
  
  /*  */
  
  function transformNode$1 (el, options) {
    var warn = options.warn || baseWarn;
    var staticStyle = getAndRemoveAttr(el, 'style');
    if (staticStyle) {
      /* istanbul ignore if */
      if (true) {
        var res = parseText(staticStyle, options.delimiters);
        if (res) {
          warn(
            "style=\"" + staticStyle + "\": " +
            'Interpolation inside attributes has been removed. ' +
            'Use v-bind or the colon shorthand instead. For example, ' +
            'instead of <div style="{{ val }}">, use <div :style="val">.'
          );
        }
      }
      el.staticStyle = JSON.stringify(parseStyleText(staticStyle));
    }
  
    var styleBinding = getBindingAttr(el, 'style', false /* getStatic */);
    if (styleBinding) {
      el.styleBinding = styleBinding;
    }
  }
  
  function genData$1 (el) {
    var data = '';
    if (el.staticStyle) {
      data += "staticStyle:" + (el.staticStyle) + ",";
    }
    if (el.styleBinding) {
      data += "style:(" + (el.styleBinding) + "),";
    }
    return data
  }
  
  var style$1 = {
    staticKeys: ['staticStyle'],
    transformNode: transformNode$1,
    genData: genData$1
  };
  
  /*  */
  
  var decoder;
  
  var he = {
    decode: function decode (html) {
      decoder = decoder || document.createElement('div');
      decoder.innerHTML = html;
      return decoder.textContent
    }
  };
  
  /*  */
  
  var isUnaryTag = makeMap(
    'area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +
    'link,meta,param,source,track,wbr'
  );
  
  // Elements that you can, intentionally, leave open
  // (and which close themselves)
  var canBeLeftOpenTag = makeMap(
    'colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source'
  );
  
  // HTML5 tags https://html.spec.whatwg.org/multipage/indices.html#elements-3
  // Phrasing Content https://html.spec.whatwg.org/multipage/dom.html#phrasing-content
  var isNonPhrasingTag = makeMap(
    'address,article,aside,base,blockquote,body,caption,col,colgroup,dd,' +
    'details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,' +
    'h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,' +
    'optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,' +
    'title,tr,track'
  );
  
  /**
   * Not type-checking this file because it's mostly vendor code.
   */
  
  /*!
   * HTML Parser By John Resig (ejohn.org)
   * Modified by Juriy "kangax" Zaytsev
   * Original code by Erik Arvidsson, Mozilla Public License
   * http://erik.eae.net/simplehtmlparser/simplehtmlparser.js
   */
  
  // Regular Expressions for parsing tags and attributes
  var attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
  // could use https://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-QName
  // but for Vue templates we can enforce a simple charset
  var ncname = '[a-zA-Z_][\\w\\-\\.]*';
  var qnameCapture = "((?:" + ncname + "\\:)?" + ncname + ")";
  var startTagOpen = new RegExp(("^<" + qnameCapture));
  var startTagClose = /^\s*(\/?)>/;
  var endTag = new RegExp(("^<\\/" + qnameCapture + "[^>]*>"));
  var doctype = /^<!DOCTYPE [^>]+>/i;
  var comment = /^<!--/;
  var conditionalComment = /^<!\[/;
  
  var IS_REGEX_CAPTURING_BROKEN = false;
  'x'.replace(/x(.)?/g, function (m, g) {
    IS_REGEX_CAPTURING_BROKEN = g === '';
  });
  
  // Special Elements (can contain anything)
  var isPlainTextElement = makeMap('script,style,textarea', true);
  var reCache = {};
  
  var decodingMap = {
    '&lt;': '<',
    '&gt;': '>',
    '&quot;': '"',
    '&amp;': '&',
    '&#10;': '\n',
    '&#9;': '\t'
  };
  var encodedAttr = /&(?:lt|gt|quot|amp);/g;
  var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10|#9);/g;
  
  // #5992
  var isIgnoreNewlineTag = makeMap('pre,textarea', true);
  var shouldIgnoreFirstNewline = function (tag, html) { return tag && isIgnoreNewlineTag(tag) && html[0] === '\n'; };
  
  function decodeAttr (value, shouldDecodeNewlines) {
    var re = shouldDecodeNewlines ? encodedAttrWithNewLines : encodedAttr;
    return value.replace(re, function (match) { return decodingMap[match]; })
  }
  
  function parseHTML (html, options) {
    var stack = [];
    var expectHTML = options.expectHTML;
    var isUnaryTag$$1 = options.isUnaryTag || no;
    var canBeLeftOpenTag$$1 = options.canBeLeftOpenTag || no;
    var index = 0;
    var last, lastTag;
    while (html) {
      last = html;
      // Make sure we're not in a plaintext content element like script/style
      if (!lastTag || !isPlainTextElement(lastTag)) {
        var textEnd = html.indexOf('<');
        if (textEnd === 0) {
          // Comment:
          if (comment.test(html)) {
            var commentEnd = html.indexOf('-->');
  
            if (commentEnd >= 0) {
              if (options.shouldKeepComment) {
                options.comment(html.substring(4, commentEnd));
              }
              advance(commentEnd + 3);
              continue
            }
          }
  
          // http://en.wikipedia.org/wiki/Conditional_comment#Downlevel-revealed_conditional_comment
          if (conditionalComment.test(html)) {
            var conditionalEnd = html.indexOf(']>');
  
            if (conditionalEnd >= 0) {
              advance(conditionalEnd + 2);
              continue
            }
          }
  
          // Doctype:
          var doctypeMatch = html.match(doctype);
          if (doctypeMatch) {
            advance(doctypeMatch[0].length);
            continue
          }
  
          // End tag:
          var endTagMatch = html.match(endTag);
          if (endTagMatch) {
            var curIndex = index;
            advance(endTagMatch[0].length);
            parseEndTag(endTagMatch[1], curIndex, index);
            continue
          }
  
          // Start tag:
          var startTagMatch = parseStartTag();
          if (startTagMatch) {
            handleStartTag(startTagMatch);
            if (shouldIgnoreFirstNewline(lastTag, html)) {
              advance(1);
            }
            continue
          }
        }
  
        var text = (void 0), rest = (void 0), next = (void 0);
        if (textEnd >= 0) {
          rest = html.slice(textEnd);
          while (
            !endTag.test(rest) &&
            !startTagOpen.test(rest) &&
            !comment.test(rest) &&
            !conditionalComment.test(rest)
          ) {
            // < in plain text, be forgiving and treat it as text
            next = rest.indexOf('<', 1);
            if (next < 0) { break }
            textEnd += next;
            rest = html.slice(textEnd);
          }
          text = html.substring(0, textEnd);
          advance(textEnd);
        }
  
        if (textEnd < 0) {
          text = html;
          html = '';
        }
  
        if (options.chars && text) {
          options.chars(text);
        }
      } else {
        var endTagLength = 0;
        var stackedTag = lastTag.toLowerCase();
        var reStackedTag = reCache[stackedTag] || (reCache[stackedTag] = new RegExp('([\\s\\S]*?)(</' + stackedTag + '[^>]*>)', 'i'));
        var rest$1 = html.replace(reStackedTag, function (all, text, endTag) {
          endTagLength = endTag.length;
          if (!isPlainTextElement(stackedTag) && stackedTag !== 'noscript') {
            text = text
              .replace(/<!--([\s\S]*?)-->/g, '$1')
              .replace(/<!\[CDATA\[([\s\S]*?)]]>/g, '$1');
          }
          if (shouldIgnoreFirstNewline(stackedTag, text)) {
            text = text.slice(1);
          }
          if (options.chars) {
            options.chars(text);
          }
          return ''
        });
        index += html.length - rest$1.length;
        html = rest$1;
        parseEndTag(stackedTag, index - endTagLength, index);
      }
  
      if (html === last) {
        options.chars && options.chars(html);
        if ("development" !== 'production' && !stack.length && options.warn) {
          options.warn(("Mal-formatted tag at end of template: \"" + html + "\""));
        }
        break
      }
    }
  
    // Clean up any remaining tags
    parseEndTag();
  
    function advance (n) {
      index += n;
      html = html.substring(n);
    }
  
    function parseStartTag () {
      var start = html.match(startTagOpen);
      if (start) {
        var match = {
          tagName: start[1],
          attrs: [],
          start: index
        };
        advance(start[0].length);
        var end, attr;
        while (!(end = html.match(startTagClose)) && (attr = html.match(attribute))) {
          advance(attr[0].length);
          match.attrs.push(attr);
        }
        if (end) {
          match.unarySlash = end[1];
          advance(end[0].length);
          match.end = index;
          return match
        }
      }
    }
  
    function handleStartTag (match) {
      var tagName = match.tagName;
      var unarySlash = match.unarySlash;
  
      if (expectHTML) {
        if (lastTag === 'p' && isNonPhrasingTag(tagName)) {
          parseEndTag(lastTag);
        }
        if (canBeLeftOpenTag$$1(tagName) && lastTag === tagName) {
          parseEndTag(tagName);
        }
      }
  
      var unary = isUnaryTag$$1(tagName) || !!unarySlash;
  
      var l = match.attrs.length;
      var attrs = new Array(l);
      for (var i = 0; i < l; i++) {
        var args = match.attrs[i];
        // hackish work around FF bug https://bugzilla.mozilla.org/show_bug.cgi?id=369778
        if (IS_REGEX_CAPTURING_BROKEN && args[0].indexOf('""') === -1) {
          if (args[3] === '') { delete args[3]; }
          if (args[4] === '') { delete args[4]; }
          if (args[5] === '') { delete args[5]; }
        }
        var value = args[3] || args[4] || args[5] || '';
        var shouldDecodeNewlines = tagName === 'a' && args[1] === 'href'
          ? options.shouldDecodeNewlinesForHref
          : options.shouldDecodeNewlines;
        attrs[i] = {
          name: args[1],
          value: decodeAttr(value, shouldDecodeNewlines)
        };
      }
  
      if (!unary) {
        stack.push({ tag: tagName, lowerCasedTag: tagName.toLowerCase(), attrs: attrs });
        lastTag = tagName;
      }
  
      if (options.start) {
        options.start(tagName, attrs, unary, match.start, match.end);
      }
    }
  
    function parseEndTag (tagName, start, end) {
      var pos, lowerCasedTagName;
      if (start == null) { start = index; }
      if (end == null) { end = index; }
  
      if (tagName) {
        lowerCasedTagName = tagName.toLowerCase();
      }
  
      // Find the closest opened tag of the same type
      if (tagName) {
        for (pos = stack.length - 1; pos >= 0; pos--) {
          if (stack[pos].lowerCasedTag === lowerCasedTagName) {
            break
          }
        }
      } else {
        // If no tag name is provided, clean shop
        pos = 0;
      }
  
      if (pos >= 0) {
        // Close all the open elements, up the stack
        for (var i = stack.length - 1; i >= pos; i--) {
          if ("development" !== 'production' &&
            (i > pos || !tagName) &&
            options.warn
          ) {
            options.warn(
              ("tag <" + (stack[i].tag) + "> has no matching end tag.")
            );
          }
          if (options.end) {
            options.end(stack[i].tag, start, end);
          }
        }
  
        // Remove the open elements from the stack
        stack.length = pos;
        lastTag = pos && stack[pos - 1].tag;
      } else if (lowerCasedTagName === 'br') {
        if (options.start) {
          options.start(tagName, [], true, start, end);
        }
      } else if (lowerCasedTagName === 'p') {
        if (options.start) {
          options.start(tagName, [], false, start, end);
        }
        if (options.end) {
          options.end(tagName, start, end);
        }
      }
    }
  }
  
  /*  */
  
  var onRE = /^@|^v-on:/;
  var dirRE = /^v-|^@|^:/;
  var forAliasRE = /(.*?)\s+(?:in|of)\s+(.*)/;
  var forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/;
  var stripParensRE = /^\(|\)$/g;
  
  var argRE = /:(.*)$/;
  var bindRE = /^:|^v-bind:/;
  var modifierRE = /\.[^.]+/g;
  
  var decodeHTMLCached = cached(he.decode);
  
  // configurable state
  var warn$2;
  var delimiters;
  var transforms;
  var preTransforms;
  var postTransforms;
  var platformIsPreTag;
  var platformMustUseProp;
  var platformGetTagNamespace;
  
  
  
  function createASTElement (
    tag,
    attrs,
    parent
  ) {
    return {
      type: 1,
      tag: tag,
      attrsList: attrs,
      attrsMap: makeAttrsMap(attrs),
      parent: parent,
      children: []
    }
  }
  
  /**
   * Convert HTML string to AST.
   */
  function parse (
    template,
    options
  ) {
    warn$2 = options.warn || baseWarn;
  
    platformIsPreTag = options.isPreTag || no;
    platformMustUseProp = options.mustUseProp || no;
    platformGetTagNamespace = options.getTagNamespace || no;
  
    transforms = pluckModuleFunction(options.modules, 'transformNode');
    preTransforms = pluckModuleFunction(options.modules, 'preTransformNode');
    postTransforms = pluckModuleFunction(options.modules, 'postTransformNode');
  
    delimiters = options.delimiters;
  
    var stack = [];
    var preserveWhitespace = options.preserveWhitespace !== false;
    var root;
    var currentParent;
    var inVPre = false;
    var inPre = false;
    var warned = false;
  
    function warnOnce (msg) {
      if (!warned) {
        warned = true;
        warn$2(msg);
      }
    }
  
    function closeElement (element) {
      // check pre state
      if (element.pre) {
        inVPre = false;
      }
      if (platformIsPreTag(element.tag)) {
        inPre = false;
      }
      // apply post-transforms
      for (var i = 0; i < postTransforms.length; i++) {
        postTransforms[i](element, options);
      }
    }
  
    parseHTML(template, {
      warn: warn$2,
      expectHTML: options.expectHTML,
      isUnaryTag: options.isUnaryTag,
      canBeLeftOpenTag: options.canBeLeftOpenTag,
      shouldDecodeNewlines: options.shouldDecodeNewlines,
      shouldDecodeNewlinesForHref: options.shouldDecodeNewlinesForHref,
      shouldKeepComment: options.comments,
      start: function start (tag, attrs, unary) {
        // check namespace.
        // inherit parent ns if there is one
        var ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag);
  
        // handle IE svg bug
        /* istanbul ignore if */
        if (isIE && ns === 'svg') {
          attrs = guardIESVGBug(attrs);
        }
  
        var element = createASTElement(tag, attrs, currentParent);
        if (ns) {
          element.ns = ns;
        }
  
        if (isForbiddenTag(element) && !isServerRendering()) {
          element.forbidden = true;
          "development" !== 'production' && warn$2(
            'Templates should only be responsible for mapping the state to the ' +
            'UI. Avoid placing tags with side-effects in your templates, such as ' +
            "<" + tag + ">" + ', as they will not be parsed.'
          );
        }
  
        // apply pre-transforms
        for (var i = 0; i < preTransforms.length; i++) {
          element = preTransforms[i](element, options) || element;
        }
  
        if (!inVPre) {
          processPre(element);
          if (element.pre) {
            inVPre = true;
          }
        }
        if (platformIsPreTag(element.tag)) {
          inPre = true;
        }
        if (inVPre) {
          processRawAttrs(element);
        } else if (!element.processed) {
          // structural directives
          processFor(element);
          processIf(element);
          processOnce(element);
          // element-scope stuff
          processElement(element, options);
        }
  
        function checkRootConstraints (el) {
          if (true) {
            if (el.tag === 'slot' || el.tag === 'template') {
              warnOnce(
                "Cannot use <" + (el.tag) + "> as component root element because it may " +
                'contain multiple nodes.'
              );
            }
            if (el.attrsMap.hasOwnProperty('v-for')) {
              warnOnce(
                'Cannot use v-for on stateful component root element because ' +
                'it renders multiple elements.'
              );
            }
          }
        }
  
        // tree management
        if (!root) {
          root = element;
          checkRootConstraints(root);
        } else if (!stack.length) {
          // allow root elements with v-if, v-else-if and v-else
          if (root.if && (element.elseif || element.else)) {
            checkRootConstraints(element);
            addIfCondition(root, {
              exp: element.elseif,
              block: element
            });
          } else if (true) {
            warnOnce(
              "Component template should contain exactly one root element. " +
              "If you are using v-if on multiple elements, " +
              "use v-else-if to chain them instead."
            );
          }
        }
        if (currentParent && !element.forbidden) {
          if (element.elseif || element.else) {
            processIfConditions(element, currentParent);
          } else if (element.slotScope) { // scoped slot
            currentParent.plain = false;
            var name = element.slotTarget || '"default"';(currentParent.scopedSlots || (currentParent.scopedSlots = {}))[name] = element;
          } else {
            currentParent.children.push(element);
            element.parent = currentParent;
          }
        }
        if (!unary) {
          currentParent = element;
          stack.push(element);
        } else {
          closeElement(element);
        }
      },
  
      end: function end () {
        // remove trailing whitespace
        var element = stack[stack.length - 1];
        var lastNode = element.children[element.children.length - 1];
        if (lastNode && lastNode.type === 3 && lastNode.text === ' ' && !inPre) {
          element.children.pop();
        }
        // pop stack
        stack.length -= 1;
        currentParent = stack[stack.length - 1];
        closeElement(element);
      },
  
      chars: function chars (text) {
        if (!currentParent) {
          if (true) {
            if (text === template) {
              warnOnce(
                'Component template requires a root element, rather than just text.'
              );
            } else if ((text = text.trim())) {
              warnOnce(
                ("text \"" + text + "\" outside root element will be ignored.")
              );
            }
          }
          return
        }
        // IE textarea placeholder bug
        /* istanbul ignore if */
        if (isIE &&
          currentParent.tag === 'textarea' &&
          currentParent.attrsMap.placeholder === text
        ) {
          return
        }
        var children = currentParent.children;
        text = inPre || text.trim()
          ? isTextTag(currentParent) ? text : decodeHTMLCached(text)
          // only preserve whitespace if its not right after a starting tag
          : preserveWhitespace && children.length ? ' ' : '';
        if (text) {
          var res;
          if (!inVPre && text !== ' ' && (res = parseText(text, delimiters))) {
            children.push({
              type: 2,
              expression: res.expression,
              tokens: res.tokens,
              text: text
            });
          } else if (text !== ' ' || !children.length || children[children.length - 1].text !== ' ') {
            children.push({
              type: 3,
              text: text
            });
          }
        }
      },
      comment: function comment (text) {
        currentParent.children.push({
          type: 3,
          text: text,
          isComment: true
        });
      }
    });
    return root
  }
  
  function processPre (el) {
    if (getAndRemoveAttr(el, 'v-pre') != null) {
      el.pre = true;
    }
  }
  
  function processRawAttrs (el) {
    var l = el.attrsList.length;
    if (l) {
      var attrs = el.attrs = new Array(l);
      for (var i = 0; i < l; i++) {
        attrs[i] = {
          name: el.attrsList[i].name,
          value: JSON.stringify(el.attrsList[i].value)
        };
      }
    } else if (!el.pre) {
      // non root node in pre blocks with no attributes
      el.plain = true;
    }
  }
  
  function processElement (element, options) {
    processKey(element);
  
    // determine whether this is a plain element after
    // removing structural attributes
    element.plain = !element.key && !element.attrsList.length;
  
    processRef(element);
    processSlot(element);
    processComponent(element);
    for (var i = 0; i < transforms.length; i++) {
      element = transforms[i](element, options) || element;
    }
    processAttrs(element);
  }
  
  function processKey (el) {
    var exp = getBindingAttr(el, 'key');
    if (exp) {
      if ("development" !== 'production' && el.tag === 'template') {
        warn$2("<template> cannot be keyed. Place the key on real elements instead.");
      }
      el.key = exp;
    }
  }
  
  function processRef (el) {
    var ref = getBindingAttr(el, 'ref');
    if (ref) {
      el.ref = ref;
      el.refInFor = checkInFor(el);
    }
  }
  
  function processFor (el) {
    var exp;
    if ((exp = getAndRemoveAttr(el, 'v-for'))) {
      var res = parseFor(exp);
      if (res) {
        extend(el, res);
      } else if (true) {
        warn$2(
          ("Invalid v-for expression: " + exp)
        );
      }
    }
  }
  
  function parseFor (exp) {
    var inMatch = exp.match(forAliasRE);
    if (!inMatch) { return }
    var res = {};
    res.for = inMatch[2].trim();
    var alias = inMatch[1].trim().replace(stripParensRE, '');
    var iteratorMatch = alias.match(forIteratorRE);
    if (iteratorMatch) {
      res.alias = alias.replace(forIteratorRE, '');
      res.iterator1 = iteratorMatch[1].trim();
      if (iteratorMatch[2]) {
        res.iterator2 = iteratorMatch[2].trim();
      }
    } else {
      res.alias = alias;
    }
    return res
  }
  
  function processIf (el) {
    var exp = getAndRemoveAttr(el, 'v-if');
    if (exp) {
      el.if = exp;
      addIfCondition(el, {
        exp: exp,
        block: el
      });
    } else {
      if (getAndRemoveAttr(el, 'v-else') != null) {
        el.else = true;
      }
      var elseif = getAndRemoveAttr(el, 'v-else-if');
      if (elseif) {
        el.elseif = elseif;
      }
    }
  }
  
  function processIfConditions (el, parent) {
    var prev = findPrevElement(parent.children);
    if (prev && prev.if) {
      addIfCondition(prev, {
        exp: el.elseif,
        block: el
      });
    } else if (true) {
      warn$2(
        "v-" + (el.elseif ? ('else-if="' + el.elseif + '"') : 'else') + " " +
        "used on element <" + (el.tag) + "> without corresponding v-if."
      );
    }
  }
  
  function findPrevElement (children) {
    var i = children.length;
    while (i--) {
      if (children[i].type === 1) {
        return children[i]
      } else {
        if ("development" !== 'production' && children[i].text !== ' ') {
          warn$2(
            "text \"" + (children[i].text.trim()) + "\" between v-if and v-else(-if) " +
            "will be ignored."
          );
        }
        children.pop();
      }
    }
  }
  
  function addIfCondition (el, condition) {
    if (!el.ifConditions) {
      el.ifConditions = [];
    }
    el.ifConditions.push(condition);
  }
  
  function processOnce (el) {
    var once$$1 = getAndRemoveAttr(el, 'v-once');
    if (once$$1 != null) {
      el.once = true;
    }
  }
  
  function processSlot (el) {
    if (el.tag === 'slot') {
      el.slotName = getBindingAttr(el, 'name');
      if ("development" !== 'production' && el.key) {
        warn$2(
          "`key` does not work on <slot> because slots are abstract outlets " +
          "and can possibly expand into multiple elements. " +
          "Use the key on a wrapping element instead."
        );
      }
    } else {
      var slotScope;
      if (el.tag === 'template') {
        slotScope = getAndRemoveAttr(el, 'scope');
        /* istanbul ignore if */
        if ("development" !== 'production' && slotScope) {
          warn$2(
            "the \"scope\" attribute for scoped slots have been deprecated and " +
            "replaced by \"slot-scope\" since 2.5. The new \"slot-scope\" attribute " +
            "can also be used on plain elements in addition to <template> to " +
            "denote scoped slots.",
            true
          );
        }
        el.slotScope = slotScope || getAndRemoveAttr(el, 'slot-scope');
      } else if ((slotScope = getAndRemoveAttr(el, 'slot-scope'))) {
        /* istanbul ignore if */
        if ("development" !== 'production' && el.attrsMap['v-for']) {
          warn$2(
            "Ambiguous combined usage of slot-scope and v-for on <" + (el.tag) + "> " +
            "(v-for takes higher priority). Use a wrapper <template> for the " +
            "scoped slot to make it clearer.",
            true
          );
        }
        el.slotScope = slotScope;
      }
      var slotTarget = getBindingAttr(el, 'slot');
      if (slotTarget) {
        el.slotTarget = slotTarget === '""' ? '"default"' : slotTarget;
        // preserve slot as an attribute for native shadow DOM compat
        // only for non-scoped slots.
        if (el.tag !== 'template' && !el.slotScope) {
          addAttr(el, 'slot', slotTarget);
        }
      }
    }
  }
  
  function processComponent (el) {
    var binding;
    if ((binding = getBindingAttr(el, 'is'))) {
      el.component = binding;
    }
    if (getAndRemoveAttr(el, 'inline-template') != null) {
      el.inlineTemplate = true;
    }
  }
  
  function processAttrs (el) {
    var list = el.attrsList;
    var i, l, name, rawName, value, modifiers, isProp;
    for (i = 0, l = list.length; i < l; i++) {
      name = rawName = list[i].name;
      value = list[i].value;
      if (dirRE.test(name)) {
        // mark element as dynamic
        el.hasBindings = true;
        // modifiers
        modifiers = parseModifiers(name);
        if (modifiers) {
          name = name.replace(modifierRE, '');
        }
        if (bindRE.test(name)) { // v-bind
          name = name.replace(bindRE, '');
          value = parseFilters(value);
          isProp = false;
          if (modifiers) {
            if (modifiers.prop) {
              isProp = true;
              name = camelize(name);
              if (name === 'innerHtml') { name = 'innerHTML'; }
            }
            if (modifiers.camel) {
              name = camelize(name);
            }
            if (modifiers.sync) {
              addHandler(
                el,
                ("update:" + (camelize(name))),
                genAssignmentCode(value, "$event")
              );
            }
          }
          if (isProp || (
            !el.component && platformMustUseProp(el.tag, el.attrsMap.type, name)
          )) {
            addProp(el, name, value);
          } else {
            addAttr(el, name, value);
          }
        } else if (onRE.test(name)) { // v-on
          name = name.replace(onRE, '');
          addHandler(el, name, value, modifiers, false, warn$2);
        } else { // normal directives
          name = name.replace(dirRE, '');
          // parse arg
          var argMatch = name.match(argRE);
          var arg = argMatch && argMatch[1];
          if (arg) {
            name = name.slice(0, -(arg.length + 1));
          }
          addDirective(el, name, rawName, value, arg, modifiers);
          if ("development" !== 'production' && name === 'model') {
            checkForAliasModel(el, value);
          }
        }
      } else {
        // literal attribute
        if (true) {
          var res = parseText(value, delimiters);
          if (res) {
            warn$2(
              name + "=\"" + value + "\": " +
              'Interpolation inside attributes has been removed. ' +
              'Use v-bind or the colon shorthand instead. For example, ' +
              'instead of <div id="{{ val }}">, use <div :id="val">.'
            );
          }
        }
        addAttr(el, name, JSON.stringify(value));
        // #6887 firefox doesn't update muted state if set via attribute
        // even immediately after element creation
        if (!el.component &&
            name === 'muted' &&
            platformMustUseProp(el.tag, el.attrsMap.type, name)) {
          addProp(el, name, 'true');
        }
      }
    }
  }
  
  function checkInFor (el) {
    var parent = el;
    while (parent) {
      if (parent.for !== undefined) {
        return true
      }
      parent = parent.parent;
    }
    return false
  }
  
  function parseModifiers (name) {
    var match = name.match(modifierRE);
    if (match) {
      var ret = {};
      match.forEach(function (m) { ret[m.slice(1)] = true; });
      return ret
    }
  }
  
  function makeAttrsMap (attrs) {
    var map = {};
    for (var i = 0, l = attrs.length; i < l; i++) {
      if (
        "development" !== 'production' &&
        map[attrs[i].name] && !isIE && !isEdge
      ) {
        warn$2('duplicate attribute: ' + attrs[i].name);
      }
      map[attrs[i].name] = attrs[i].value;
    }
    return map
  }
  
  // for script (e.g. type="x/template") or style, do not decode content
  function isTextTag (el) {
    return el.tag === 'script' || el.tag === 'style'
  }
  
  function isForbiddenTag (el) {
    return (
      el.tag === 'style' ||
      (el.tag === 'script' && (
        !el.attrsMap.type ||
        el.attrsMap.type === 'text/javascript'
      ))
    )
  }
  
  var ieNSBug = /^xmlns:NS\d+/;
  var ieNSPrefix = /^NS\d+:/;
  
  /* istanbul ignore next */
  function guardIESVGBug (attrs) {
    var res = [];
    for (var i = 0; i < attrs.length; i++) {
      var attr = attrs[i];
      if (!ieNSBug.test(attr.name)) {
        attr.name = attr.name.replace(ieNSPrefix, '');
        res.push(attr);
      }
    }
    return res
  }
  
  function checkForAliasModel (el, value) {
    var _el = el;
    while (_el) {
      if (_el.for && _el.alias === value) {
        warn$2(
          "<" + (el.tag) + " v-model=\"" + value + "\">: " +
          "You are binding v-model directly to a v-for iteration alias. " +
          "This will not be able to modify the v-for source array because " +
          "writing to the alias is like modifying a function local variable. " +
          "Consider using an array of objects and use v-model on an object property instead."
        );
      }
      _el = _el.parent;
    }
  }
  
  /*  */
  
  /**
   * Expand input[v-model] with dyanmic type bindings into v-if-else chains
   * Turn this:
   *   <input v-model="data[type]" :type="type">
   * into this:
   *   <input v-if="type === 'checkbox'" type="checkbox" v-model="data[type]">
   *   <input v-else-if="type === 'radio'" type="radio" v-model="data[type]">
   *   <input v-else :type="type" v-model="data[type]">
   */
  
  function preTransformNode (el, options) {
    if (el.tag === 'input') {
      var map = el.attrsMap;
      if (map['v-model'] && (map['v-bind:type'] || map[':type'])) {
        var typeBinding = getBindingAttr(el, 'type');
        var ifCondition = getAndRemoveAttr(el, 'v-if', true);
        var ifConditionExtra = ifCondition ? ("&&(" + ifCondition + ")") : "";
        var hasElse = getAndRemoveAttr(el, 'v-else', true) != null;
        var elseIfCondition = getAndRemoveAttr(el, 'v-else-if', true);
        // 1. checkbox
        var branch0 = cloneASTElement(el);
        // process for on the main node
        processFor(branch0);
        addRawAttr(branch0, 'type', 'checkbox');
        processElement(branch0, options);
        branch0.processed = true; // prevent it from double-processed
        branch0.if = "(" + typeBinding + ")==='checkbox'" + ifConditionExtra;
        addIfCondition(branch0, {
          exp: branch0.if,
          block: branch0
        });
        // 2. add radio else-if condition
        var branch1 = cloneASTElement(el);
        getAndRemoveAttr(branch1, 'v-for', true);
        addRawAttr(branch1, 'type', 'radio');
        processElement(branch1, options);
        addIfCondition(branch0, {
          exp: "(" + typeBinding + ")==='radio'" + ifConditionExtra,
          block: branch1
        });
        // 3. other
        var branch2 = cloneASTElement(el);
        getAndRemoveAttr(branch2, 'v-for', true);
        addRawAttr(branch2, ':type', typeBinding);
        processElement(branch2, options);
        addIfCondition(branch0, {
          exp: ifCondition,
          block: branch2
        });
  
        if (hasElse) {
          branch0.else = true;
        } else if (elseIfCondition) {
          branch0.elseif = elseIfCondition;
        }
  
        return branch0
      }
    }
  }
  
  function cloneASTElement (el) {
    return createASTElement(el.tag, el.attrsList.slice(), el.parent)
  }
  
  var model$2 = {
    preTransformNode: preTransformNode
  };
  
  var modules$1 = [
    klass$1,
    style$1,
    model$2
  ];
  
  /*  */
  
  function text (el, dir) {
    if (dir.value) {
      addProp(el, 'textContent', ("_s(" + (dir.value) + ")"));
    }
  }
  
  /*  */
  
  function html (el, dir) {
    if (dir.value) {
      addProp(el, 'innerHTML', ("_s(" + (dir.value) + ")"));
    }
  }
  
  var directives$1 = {
    model: model,
    text: text,
    html: html
  };
  
  /*  */
  
  var baseOptions = {
    expectHTML: true,
    modules: modules$1,
    directives: directives$1,
    isPreTag: isPreTag,
    isUnaryTag: isUnaryTag,
    mustUseProp: mustUseProp,
    canBeLeftOpenTag: canBeLeftOpenTag,
    isReservedTag: isReservedTag,
    getTagNamespace: getTagNamespace,
    staticKeys: genStaticKeys(modules$1)
  };
  
  /*  */
  
  var isStaticKey;
  var isPlatformReservedTag;
  
  var genStaticKeysCached = cached(genStaticKeys$1);
  
  /**
   * Goal of the optimizer: walk the generated template AST tree
   * and detect sub-trees that are purely static, i.e. parts of
   * the DOM that never needs to change.
   *
   * Once we detect these sub-trees, we can:
   *
   * 1. Hoist them into constants, so that we no longer need to
   *    create fresh nodes for them on each re-render;
   * 2. Completely skip them in the patching process.
   */
  function optimize (root, options) {
    if (!root) { return }
    isStaticKey = genStaticKeysCached(options.staticKeys || '');
    isPlatformReservedTag = options.isReservedTag || no;
    // first pass: mark all non-static nodes.
    markStatic$1(root);
    // second pass: mark static roots.
    markStaticRoots(root, false);
  }
  
  function genStaticKeys$1 (keys) {
    return makeMap(
      'type,tag,attrsList,attrsMap,plain,parent,children,attrs' +
      (keys ? ',' + keys : '')
    )
  }
  
  function markStatic$1 (node) {
    node.static = isStatic(node);
    if (node.type === 1) {
      // do not make component slot content static. this avoids
      // 1. components not able to mutate slot nodes
      // 2. static slot content fails for hot-reloading
      if (
        !isPlatformReservedTag(node.tag) &&
        node.tag !== 'slot' &&
        node.attrsMap['inline-template'] == null
      ) {
        return
      }
      for (var i = 0, l = node.children.length; i < l; i++) {
        var child = node.children[i];
        markStatic$1(child);
        if (!child.static) {
          node.static = false;
        }
      }
      if (node.ifConditions) {
        for (var i$1 = 1, l$1 = node.ifConditions.length; i$1 < l$1; i$1++) {
          var block = node.ifConditions[i$1].block;
          markStatic$1(block);
          if (!block.static) {
            node.static = false;
          }
        }
      }
    }
  }
  
  function markStaticRoots (node, isInFor) {
    if (node.type === 1) {
      if (node.static || node.once) {
        node.staticInFor = isInFor;
      }
      // For a node to qualify as a static root, it should have children that
      // are not just static text. Otherwise the cost of hoisting out will
      // outweigh the benefits and it's better off to just always render it fresh.
      if (node.static && node.children.length && !(
        node.children.length === 1 &&
        node.children[0].type === 3
      )) {
        node.staticRoot = true;
        return
      } else {
        node.staticRoot = false;
      }
      if (node.children) {
        for (var i = 0, l = node.children.length; i < l; i++) {
          markStaticRoots(node.children[i], isInFor || !!node.for);
        }
      }
      if (node.ifConditions) {
        for (var i$1 = 1, l$1 = node.ifConditions.length; i$1 < l$1; i$1++) {
          markStaticRoots(node.ifConditions[i$1].block, isInFor);
        }
      }
    }
  }
  
  function isStatic (node) {
    if (node.type === 2) { // expression
      return false
    }
    if (node.type === 3) { // text
      return true
    }
    return !!(node.pre || (
      !node.hasBindings && // no dynamic bindings
      !node.if && !node.for && // not v-if or v-for or v-else
      !isBuiltInTag(node.tag) && // not a built-in
      isPlatformReservedTag(node.tag) && // not a component
      !isDirectChildOfTemplateFor(node) &&
      Object.keys(node).every(isStaticKey)
    ))
  }
  
  function isDirectChildOfTemplateFor (node) {
    while (node.parent) {
      node = node.parent;
      if (node.tag !== 'template') {
        return false
      }
      if (node.for) {
        return true
      }
    }
    return false
  }
  
  /*  */
  
  var fnExpRE = /^\s*([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/;
  var simplePathRE = /^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/;
  
  // keyCode aliases
  var keyCodes = {
    esc: 27,
    tab: 9,
    enter: 13,
    space: 32,
    up: 38,
    left: 37,
    right: 39,
    down: 40,
    'delete': [8, 46]
  };
  
  // #4868: modifiers that prevent the execution of the listener
  // need to explicitly return null so that we can determine whether to remove
  // the listener for .once
  var genGuard = function (condition) { return ("if(" + condition + ")return null;"); };
  
  var modifierCode = {
    stop: '$event.stopPropagation();',
    prevent: '$event.preventDefault();',
    self: genGuard("$event.target !== $event.currentTarget"),
    ctrl: genGuard("!$event.ctrlKey"),
    shift: genGuard("!$event.shiftKey"),
    alt: genGuard("!$event.altKey"),
    meta: genGuard("!$event.metaKey"),
    left: genGuard("'button' in $event && $event.button !== 0"),
    middle: genGuard("'button' in $event && $event.button !== 1"),
    right: genGuard("'button' in $event && $event.button !== 2")
  };
  
  function genHandlers (
    events,
    isNative,
    warn
  ) {
    var res = isNative ? 'nativeOn:{' : 'on:{';
    for (var name in events) {
      res += "\"" + name + "\":" + (genHandler(name, events[name])) + ",";
    }
    return res.slice(0, -1) + '}'
  }
  
  function genHandler (
    name,
    handler
  ) {
    if (!handler) {
      return 'function(){}'
    }
  
    if (Array.isArray(handler)) {
      return ("[" + (handler.map(function (handler) { return genHandler(name, handler); }).join(',')) + "]")
    }
  
    var isMethodPath = simplePathRE.test(handler.value);
    var isFunctionExpression = fnExpRE.test(handler.value);
  
    if (!handler.modifiers) {
      if (isMethodPath || isFunctionExpression) {
        return handler.value
      }
      /* istanbul ignore if */
      return ("function($event){" + (handler.value) + "}") // inline statement
    } else {
      var code = '';
      var genModifierCode = '';
      var keys = [];
      for (var key in handler.modifiers) {
        if (modifierCode[key]) {
          genModifierCode += modifierCode[key];
          // left/right
          if (keyCodes[key]) {
            keys.push(key);
          }
        } else if (key === 'exact') {
          var modifiers = (handler.modifiers);
          genModifierCode += genGuard(
            ['ctrl', 'shift', 'alt', 'meta']
              .filter(function (keyModifier) { return !modifiers[keyModifier]; })
              .map(function (keyModifier) { return ("$event." + keyModifier + "Key"); })
              .join('||')
          );
        } else {
          keys.push(key);
        }
      }
      if (keys.length) {
        code += genKeyFilter(keys);
      }
      // Make sure modifiers like prevent and stop get executed after key filtering
      if (genModifierCode) {
        code += genModifierCode;
      }
      var handlerCode = isMethodPath
        ? handler.value + '($event)'
        : isFunctionExpression
          ? ("(" + (handler.value) + ")($event)")
          : handler.value;
      /* istanbul ignore if */
      return ("function($event){" + code + handlerCode + "}")
    }
  }
  
  function genKeyFilter (keys) {
    return ("if(!('button' in $event)&&" + (keys.map(genFilterCode).join('&&')) + ")return null;")
  }
  
  function genFilterCode (key) {
    var keyVal = parseInt(key, 10);
    if (keyVal) {
      return ("$event.keyCode!==" + keyVal)
    }
    var code = keyCodes[key];
    return (
      "_k($event.keyCode," +
      (JSON.stringify(key)) + "," +
      (JSON.stringify(code)) + "," +
      "$event.key)"
    )
  }
  
  /*  */
  
  function on (el, dir) {
    if ("development" !== 'production' && dir.modifiers) {
      warn("v-on without argument does not support modifiers.");
    }
    el.wrapListeners = function (code) { return ("_g(" + code + "," + (dir.value) + ")"); };
  }
  
  /*  */
  
  function bind$1 (el, dir) {
    el.wrapData = function (code) {
      return ("_b(" + code + ",'" + (el.tag) + "'," + (dir.value) + "," + (dir.modifiers && dir.modifiers.prop ? 'true' : 'false') + (dir.modifiers && dir.modifiers.sync ? ',true' : '') + ")")
    };
  }
  
  /*  */
  
  var baseDirectives = {
    on: on,
    bind: bind$1,
    cloak: noop
  };
  
  /*  */
  
  var CodegenState = function CodegenState (options) {
    this.options = options;
    this.warn = options.warn || baseWarn;
    this.transforms = pluckModuleFunction(options.modules, 'transformCode');
    this.dataGenFns = pluckModuleFunction(options.modules, 'genData');
    this.directives = extend(extend({}, baseDirectives), options.directives);
    var isReservedTag = options.isReservedTag || no;
    this.maybeComponent = function (el) { return !isReservedTag(el.tag); };
    this.onceId = 0;
    this.staticRenderFns = [];
  };
  
  
  
  function generate (
    ast,
    options
  ) {
    var state = new CodegenState(options);
    var code = ast ? genElement(ast, state) : '_c("div")';
    return {
      render: ("with(this){return " + code + "}"),
      staticRenderFns: state.staticRenderFns
    }
  }
  
  function genElement (el, state) {
    if (el.staticRoot && !el.staticProcessed) {
      return genStatic(el, state)
    } else if (el.once && !el.onceProcessed) {
      return genOnce(el, state)
    } else if (el.for && !el.forProcessed) {
      return genFor(el, state)
    } else if (el.if && !el.ifProcessed) {
      return genIf(el, state)
    } else if (el.tag === 'template' && !el.slotTarget) {
      return genChildren(el, state) || 'void 0'
    } else if (el.tag === 'slot') {
      return genSlot(el, state)
    } else {
      // component or element
      var code;
      if (el.component) {
        code = genComponent(el.component, el, state);
      } else {
        var data = el.plain ? undefined : genData$2(el, state);
  
        var children = el.inlineTemplate ? null : genChildren(el, state, true);
        code = "_c('" + (el.tag) + "'" + (data ? ("," + data) : '') + (children ? ("," + children) : '') + ")";
      }
      // module transforms
      for (var i = 0; i < state.transforms.length; i++) {
        code = state.transforms[i](el, code);
      }
      return code
    }
  }
  
  // hoist static sub-trees out
  function genStatic (el, state) {
    el.staticProcessed = true;
    state.staticRenderFns.push(("with(this){return " + (genElement(el, state)) + "}"));
    return ("_m(" + (state.staticRenderFns.length - 1) + (el.staticInFor ? ',true' : '') + ")")
  }
  
  // v-once
  function genOnce (el, state) {
    el.onceProcessed = true;
    if (el.if && !el.ifProcessed) {
      return genIf(el, state)
    } else if (el.staticInFor) {
      var key = '';
      var parent = el.parent;
      while (parent) {
        if (parent.for) {
          key = parent.key;
          break
        }
        parent = parent.parent;
      }
      if (!key) {
        "development" !== 'production' && state.warn(
          "v-once can only be used inside v-for that is keyed. "
        );
        return genElement(el, state)
      }
      return ("_o(" + (genElement(el, state)) + "," + (state.onceId++) + "," + key + ")")
    } else {
      return genStatic(el, state)
    }
  }
  
  function genIf (
    el,
    state,
    altGen,
    altEmpty
  ) {
    el.ifProcessed = true; // avoid recursion
    return genIfConditions(el.ifConditions.slice(), state, altGen, altEmpty)
  }
  
  function genIfConditions (
    conditions,
    state,
    altGen,
    altEmpty
  ) {
    if (!conditions.length) {
      return altEmpty || '_e()'
    }
  
    var condition = conditions.shift();
    if (condition.exp) {
      return ("(" + (condition.exp) + ")?" + (genTernaryExp(condition.block)) + ":" + (genIfConditions(conditions, state, altGen, altEmpty)))
    } else {
      return ("" + (genTernaryExp(condition.block)))
    }
  
    // v-if with v-once should generate code like (a)?_m(0):_m(1)
    function genTernaryExp (el) {
      return altGen
        ? altGen(el, state)
        : el.once
          ? genOnce(el, state)
          : genElement(el, state)
    }
  }
  
  function genFor (
    el,
    state,
    altGen,
    altHelper
  ) {
    var exp = el.for;
    var alias = el.alias;
    var iterator1 = el.iterator1 ? ("," + (el.iterator1)) : '';
    var iterator2 = el.iterator2 ? ("," + (el.iterator2)) : '';
  
    if ("development" !== 'production' &&
      state.maybeComponent(el) &&
      el.tag !== 'slot' &&
      el.tag !== 'template' &&
      !el.key
    ) {
      state.warn(
        "<" + (el.tag) + " v-for=\"" + alias + " in " + exp + "\">: component lists rendered with " +
        "v-for should have explicit keys. " +
        "See https://vuejs.org/guide/list.html#key for more info.",
        true /* tip */
      );
    }
  
    el.forProcessed = true; // avoid recursion
    return (altHelper || '_l') + "((" + exp + ")," +
      "function(" + alias + iterator1 + iterator2 + "){" +
        "return " + ((altGen || genElement)(el, state)) +
      '})'
  }
  
  function genData$2 (el, state) {
    var data = '{';
  
    // directives first.
    // directives may mutate the el's other properties before they are generated.
    var dirs = genDirectives(el, state);
    if (dirs) { data += dirs + ','; }
  
    // key
    if (el.key) {
      data += "key:" + (el.key) + ",";
    }
    // ref
    if (el.ref) {
      data += "ref:" + (el.ref) + ",";
    }
    if (el.refInFor) {
      data += "refInFor:true,";
    }
    // pre
    if (el.pre) {
      data += "pre:true,";
    }
    // record original tag name for components using "is" attribute
    if (el.component) {
      data += "tag:\"" + (el.tag) + "\",";
    }
    // module data generation functions
    for (var i = 0; i < state.dataGenFns.length; i++) {
      data += state.dataGenFns[i](el);
    }
    // attributes
    if (el.attrs) {
      data += "attrs:{" + (genProps(el.attrs)) + "},";
    }
    // DOM props
    if (el.props) {
      data += "domProps:{" + (genProps(el.props)) + "},";
    }
    // event handlers
    if (el.events) {
      data += (genHandlers(el.events, false, state.warn)) + ",";
    }
    if (el.nativeEvents) {
      data += (genHandlers(el.nativeEvents, true, state.warn)) + ",";
    }
    // slot target
    // only for non-scoped slots
    if (el.slotTarget && !el.slotScope) {
      data += "slot:" + (el.slotTarget) + ",";
    }
    // scoped slots
    if (el.scopedSlots) {
      data += (genScopedSlots(el.scopedSlots, state)) + ",";
    }
    // component v-model
    if (el.model) {
      data += "model:{value:" + (el.model.value) + ",callback:" + (el.model.callback) + ",expression:" + (el.model.expression) + "},";
    }
    // inline-template
    if (el.inlineTemplate) {
      var inlineTemplate = genInlineTemplate(el, state);
      if (inlineTemplate) {
        data += inlineTemplate + ",";
      }
    }
    data = data.replace(/,$/, '') + '}';
    // v-bind data wrap
    if (el.wrapData) {
      data = el.wrapData(data);
    }
    // v-on data wrap
    if (el.wrapListeners) {
      data = el.wrapListeners(data);
    }
    return data
  }
  
  function genDirectives (el, state) {
    var dirs = el.directives;
    if (!dirs) { return }
    var res = 'directives:[';
    var hasRuntime = false;
    var i, l, dir, needRuntime;
    for (i = 0, l = dirs.length; i < l; i++) {
      dir = dirs[i];
      needRuntime = true;
      var gen = state.directives[dir.name];
      if (gen) {
        // compile-time directive that manipulates AST.
        // returns true if it also needs a runtime counterpart.
        needRuntime = !!gen(el, dir, state.warn);
      }
      if (needRuntime) {
        hasRuntime = true;
        res += "{name:\"" + (dir.name) + "\",rawName:\"" + (dir.rawName) + "\"" + (dir.value ? (",value:(" + (dir.value) + "),expression:" + (JSON.stringify(dir.value))) : '') + (dir.arg ? (",arg:\"" + (dir.arg) + "\"") : '') + (dir.modifiers ? (",modifiers:" + (JSON.stringify(dir.modifiers))) : '') + "},";
      }
    }
    if (hasRuntime) {
      return res.slice(0, -1) + ']'
    }
  }
  
  function genInlineTemplate (el, state) {
    var ast = el.children[0];
    if ("development" !== 'production' && (
      el.children.length !== 1 || ast.type !== 1
    )) {
      state.warn('Inline-template components must have exactly one child element.');
    }
    if (ast.type === 1) {
      var inlineRenderFns = generate(ast, state.options);
      return ("inlineTemplate:{render:function(){" + (inlineRenderFns.render) + "},staticRenderFns:[" + (inlineRenderFns.staticRenderFns.map(function (code) { return ("function(){" + code + "}"); }).join(',')) + "]}")
    }
  }
  
  function genScopedSlots (
    slots,
    state
  ) {
    return ("scopedSlots:_u([" + (Object.keys(slots).map(function (key) {
        return genScopedSlot(key, slots[key], state)
      }).join(',')) + "])")
  }
  
  function genScopedSlot (
    key,
    el,
    state
  ) {
    if (el.for && !el.forProcessed) {
      return genForScopedSlot(key, el, state)
    }
    var fn = "function(" + (String(el.slotScope)) + "){" +
      "return " + (el.tag === 'template'
        ? el.if
          ? ((el.if) + "?" + (genChildren(el, state) || 'undefined') + ":undefined")
          : genChildren(el, state) || 'undefined'
        : genElement(el, state)) + "}";
    return ("{key:" + key + ",fn:" + fn + "}")
  }
  
  function genForScopedSlot (
    key,
    el,
    state
  ) {
    var exp = el.for;
    var alias = el.alias;
    var iterator1 = el.iterator1 ? ("," + (el.iterator1)) : '';
    var iterator2 = el.iterator2 ? ("," + (el.iterator2)) : '';
    el.forProcessed = true; // avoid recursion
    return "_l((" + exp + ")," +
      "function(" + alias + iterator1 + iterator2 + "){" +
        "return " + (genScopedSlot(key, el, state)) +
      '})'
  }
  
  function genChildren (
    el,
    state,
    checkSkip,
    altGenElement,
    altGenNode
  ) {
    var children = el.children;
    if (children.length) {
      var el$1 = children[0];
      // optimize single v-for
      if (children.length === 1 &&
        el$1.for &&
        el$1.tag !== 'template' &&
        el$1.tag !== 'slot'
      ) {
        return (altGenElement || genElement)(el$1, state)
      }
      var normalizationType = checkSkip
        ? getNormalizationType(children, state.maybeComponent)
        : 0;
      var gen = altGenNode || genNode;
      return ("[" + (children.map(function (c) { return gen(c, state); }).join(',')) + "]" + (normalizationType ? ("," + normalizationType) : ''))
    }
  }
  
  // determine the normalization needed for the children array.
  // 0: no normalization needed
  // 1: simple normalization needed (possible 1-level deep nested array)
  // 2: full normalization needed
  function getNormalizationType (
    children,
    maybeComponent
  ) {
    var res = 0;
    for (var i = 0; i < children.length; i++) {
      var el = children[i];
      if (el.type !== 1) {
        continue
      }
      if (needsNormalization(el) ||
          (el.ifConditions && el.ifConditions.some(function (c) { return needsNormalization(c.block); }))) {
        res = 2;
        break
      }
      if (maybeComponent(el) ||
          (el.ifConditions && el.ifConditions.some(function (c) { return maybeComponent(c.block); }))) {
        res = 1;
      }
    }
    return res
  }
  
  function needsNormalization (el) {
    return el.for !== undefined || el.tag === 'template' || el.tag === 'slot'
  }
  
  function genNode (node, state) {
    if (node.type === 1) {
      return genElement(node, state)
    } if (node.type === 3 && node.isComment) {
      return genComment(node)
    } else {
      return genText(node)
    }
  }
  
  function genText (text) {
    return ("_v(" + (text.type === 2
      ? text.expression // no need for () because already wrapped in _s()
      : transformSpecialNewlines(JSON.stringify(text.text))) + ")")
  }
  
  function genComment (comment) {
    return ("_e(" + (JSON.stringify(comment.text)) + ")")
  }
  
  function genSlot (el, state) {
    var slotName = el.slotName || '"default"';
    var children = genChildren(el, state);
    var res = "_t(" + slotName + (children ? ("," + children) : '');
    var attrs = el.attrs && ("{" + (el.attrs.map(function (a) { return ((camelize(a.name)) + ":" + (a.value)); }).join(',')) + "}");
    var bind$$1 = el.attrsMap['v-bind'];
    if ((attrs || bind$$1) && !children) {
      res += ",null";
    }
    if (attrs) {
      res += "," + attrs;
    }
    if (bind$$1) {
      res += (attrs ? '' : ',null') + "," + bind$$1;
    }
    return res + ')'
  }
  
  // componentName is el.component, take it as argument to shun flow's pessimistic refinement
  function genComponent (
    componentName,
    el,
    state
  ) {
    var children = el.inlineTemplate ? null : genChildren(el, state, true);
    return ("_c(" + componentName + "," + (genData$2(el, state)) + (children ? ("," + children) : '') + ")")
  }
  
  function genProps (props) {
    var res = '';
    for (var i = 0; i < props.length; i++) {
      var prop = props[i];
      /* istanbul ignore if */
      {
        res += "\"" + (prop.name) + "\":" + (transformSpecialNewlines(prop.value)) + ",";
      }
    }
    return res.slice(0, -1)
  }
  
  // #3895, #4268
  function transformSpecialNewlines (text) {
    return text
      .replace(/\u2028/g, '\\u2028')
      .replace(/\u2029/g, '\\u2029')
  }
  
  /*  */
  
  // these keywords should not appear inside expressions, but operators like
  // typeof, instanceof and in are allowed
  var prohibitedKeywordRE = new RegExp('\\b' + (
    'do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' +
    'super,throw,while,yield,delete,export,import,return,switch,default,' +
    'extends,finally,continue,debugger,function,arguments'
  ).split(',').join('\\b|\\b') + '\\b');
  
  // these unary operators should not be used as property/method names
  var unaryOperatorsRE = new RegExp('\\b' + (
    'delete,typeof,void'
  ).split(',').join('\\s*\\([^\\)]*\\)|\\b') + '\\s*\\([^\\)]*\\)');
  
  // strip strings in expressions
  var stripStringRE = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;
  
  // detect problematic expressions in a template
  function detectErrors (ast) {
    var errors = [];
    if (ast) {
      checkNode(ast, errors);
    }
    return errors
  }
  
  function checkNode (node, errors) {
    if (node.type === 1) {
      for (var name in node.attrsMap) {
        if (dirRE.test(name)) {
          var value = node.attrsMap[name];
          if (value) {
            if (name === 'v-for') {
              checkFor(node, ("v-for=\"" + value + "\""), errors);
            } else if (onRE.test(name)) {
              checkEvent(value, (name + "=\"" + value + "\""), errors);
            } else {
              checkExpression(value, (name + "=\"" + value + "\""), errors);
            }
          }
        }
      }
      if (node.children) {
        for (var i = 0; i < node.children.length; i++) {
          checkNode(node.children[i], errors);
        }
      }
    } else if (node.type === 2) {
      checkExpression(node.expression, node.text, errors);
    }
  }
  
  function checkEvent (exp, text, errors) {
    var stipped = exp.replace(stripStringRE, '');
    var keywordMatch = stipped.match(unaryOperatorsRE);
    if (keywordMatch && stipped.charAt(keywordMatch.index - 1) !== '$') {
      errors.push(
        "avoid using JavaScript unary operator as property name: " +
        "\"" + (keywordMatch[0]) + "\" in expression " + (text.trim())
      );
    }
    checkExpression(exp, text, errors);
  }
  
  function checkFor (node, text, errors) {
    checkExpression(node.for || '', text, errors);
    checkIdentifier(node.alias, 'v-for alias', text, errors);
    checkIdentifier(node.iterator1, 'v-for iterator', text, errors);
    checkIdentifier(node.iterator2, 'v-for iterator', text, errors);
  }
  
  function checkIdentifier (
    ident,
    type,
    text,
    errors
  ) {
    if (typeof ident === 'string') {
      try {
        new Function(("var " + ident + "=_"));
      } catch (e) {
        errors.push(("invalid " + type + " \"" + ident + "\" in expression: " + (text.trim())));
      }
    }
  }
  
  function checkExpression (exp, text, errors) {
    try {
      new Function(("return " + exp));
    } catch (e) {
      var keywordMatch = exp.replace(stripStringRE, '').match(prohibitedKeywordRE);
      if (keywordMatch) {
        errors.push(
          "avoid using JavaScript keyword as property name: " +
          "\"" + (keywordMatch[0]) + "\"\n  Raw expression: " + (text.trim())
        );
      } else {
        errors.push(
          "invalid expression: " + (e.message) + " in\n\n" +
          "    " + exp + "\n\n" +
          "  Raw expression: " + (text.trim()) + "\n"
        );
      }
    }
  }
  
  /*  */
  
  function createFunction (code, errors) {
    try {
      return new Function(code)
    } catch (err) {
      errors.push({ err: err, code: code });
      return noop
    }
  }
  
  function createCompileToFunctionFn (compile) {
    var cache = Object.create(null);
  
    return function compileToFunctions (
      template,
      options,
      vm
    ) {
      options = extend({}, options);
      var warn$$1 = options.warn || warn;
      delete options.warn;
  
      /* istanbul ignore if */
      if (true) {
        // detect possible CSP restriction
        try {
          new Function('return 1');
        } catch (e) {
          if (e.toString().match(/unsafe-eval|CSP/)) {
            warn$$1(
              'It seems you are using the standalone build of Vue.js in an ' +
              'environment with Content Security Policy that prohibits unsafe-eval. ' +
              'The template compiler cannot work in this environment. Consider ' +
              'relaxing the policy to allow unsafe-eval or pre-compiling your ' +
              'templates into render functions.'
            );
          }
        }
      }
  
      // check cache
      var key = options.delimiters
        ? String(options.delimiters) + template
        : template;
      if (cache[key]) {
        return cache[key]
      }
  
      // compile
      var compiled = compile(template, options);
  
      // check compilation errors/tips
      if (true) {
        if (compiled.errors && compiled.errors.length) {
          warn$$1(
            "Error compiling template:\n\n" + template + "\n\n" +
            compiled.errors.map(function (e) { return ("- " + e); }).join('\n') + '\n',
            vm
          );
        }
        if (compiled.tips && compiled.tips.length) {
          compiled.tips.forEach(function (msg) { return tip(msg, vm); });
        }
      }
  
      // turn code into functions
      var res = {};
      var fnGenErrors = [];
      res.render = createFunction(compiled.render, fnGenErrors);
      res.staticRenderFns = compiled.staticRenderFns.map(function (code) {
        return createFunction(code, fnGenErrors)
      });
  
      // check function generation errors.
      // this should only happen if there is a bug in the compiler itself.
      // mostly for codegen development use
      /* istanbul ignore if */
      if (true) {
        if ((!compiled.errors || !compiled.errors.length) && fnGenErrors.length) {
          warn$$1(
            "Failed to generate render function:\n\n" +
            fnGenErrors.map(function (ref) {
              var err = ref.err;
              var code = ref.code;
  
              return ((err.toString()) + " in\n\n" + code + "\n");
          }).join('\n'),
            vm
          );
        }
      }
  
      return (cache[key] = res)
    }
  }
  
  /*  */
  
  function createCompilerCreator (baseCompile) {
    return function createCompiler (baseOptions) {
      function compile (
        template,
        options
      ) {
        var finalOptions = Object.create(baseOptions);
        var errors = [];
        var tips = [];
        finalOptions.warn = function (msg, tip) {
          (tip ? tips : errors).push(msg);
        };
  
        if (options) {
          // merge custom modules
          if (options.modules) {
            finalOptions.modules =
              (baseOptions.modules || []).concat(options.modules);
          }
          // merge custom directives
          if (options.directives) {
            finalOptions.directives = extend(
              Object.create(baseOptions.directives || null),
              options.directives
            );
          }
          // copy other options
          for (var key in options) {
            if (key !== 'modules' && key !== 'directives') {
              finalOptions[key] = options[key];
            }
          }
        }
  
        var compiled = baseCompile(template, finalOptions);
        if (true) {
          errors.push.apply(errors, detectErrors(compiled.ast));
        }
        compiled.errors = errors;
        compiled.tips = tips;
        return compiled
      }
  
      return {
        compile: compile,
        compileToFunctions: createCompileToFunctionFn(compile)
      }
    }
  }
  
  /*  */
  
  // `createCompilerCreator` allows creating compilers that use alternative
  // parser/optimizer/codegen, e.g the SSR optimizing compiler.
  // Here we just export a default compiler using the default parts.
  var createCompiler = createCompilerCreator(function baseCompile (
    template,
    options
  ) {
    var ast = parse(template.trim(), options);
    if (options.optimize !== false) {
      optimize(ast, options);
    }
    var code = generate(ast, options);
    return {
      ast: ast,
      render: code.render,
      staticRenderFns: code.staticRenderFns
    }
  });
  
  /*  */
  
  var ref$1 = createCompiler(baseOptions);
  var compileToFunctions = ref$1.compileToFunctions;
  
  /*  */
  
  // check whether current browser encodes a char inside attribute values
  var div;
  function getShouldDecode (href) {
    div = div || document.createElement('div');
    div.innerHTML = href ? "<a href=\"\n\"/>" : "<div a=\"\n\"/>";
    return div.innerHTML.indexOf('&#10;') > 0
  }
  
  // #3663: IE encodes newlines inside attribute values while other browsers don't
  var shouldDecodeNewlines = inBrowser ? getShouldDecode(false) : false;
  // #6828: chrome encodes content in a[href]
  var shouldDecodeNewlinesForHref = inBrowser ? getShouldDecode(true) : false;
  
  /*  */
  
  var idToTemplate = cached(function (id) {
    var el = query(id);
    return el && el.innerHTML
  });
  
  var mount = Vue$3.prototype.$mount;
  Vue$3.prototype.$mount = function (
    el,
    hydrating
  ) {
    el = el && query(el);
  
    /* istanbul ignore if */
    if (el === document.body || el === document.documentElement) {
      "development" !== 'production' && warn(
        "Do not mount Vue to <html> or <body> - mount to normal elements instead."
      );
      return this
    }
  
    var options = this.$options;
    // resolve template/el and convert to render function
    if (!options.render) {
      var template = options.template;
      if (template) {
        if (typeof template === 'string') {
          if (template.charAt(0) === '#') {
            template = idToTemplate(template);
            /* istanbul ignore if */
            if ("development" !== 'production' && !template) {
              warn(
                ("Template element not found or is empty: " + (options.template)),
                this
              );
            }
          }
        } else if (template.nodeType) {
          template = template.innerHTML;
        } else {
          if (true) {
            warn('invalid template option:' + template, this);
          }
          return this
        }
      } else if (el) {
        template = getOuterHTML(el);
      }
      if (template) {
        /* istanbul ignore if */
        if ("development" !== 'production' && config.performance && mark) {
          mark('compile');
        }
  
        var ref = compileToFunctions(template, {
          shouldDecodeNewlines: shouldDecodeNewlines,
          shouldDecodeNewlinesForHref: shouldDecodeNewlinesForHref,
          delimiters: options.delimiters,
          comments: options.comments
        }, this);
        var render = ref.render;
        var staticRenderFns = ref.staticRenderFns;
        options.render = render;
        options.staticRenderFns = staticRenderFns;
  
        /* istanbul ignore if */
        if ("development" !== 'production' && config.performance && mark) {
          mark('compile end');
          measure(("vue " + (this._name) + " compile"), 'compile', 'compile end');
        }
      }
    }
    return mount.call(this, el, hydrating)
  };
  
  /**
   * Get outerHTML of elements, taking care
   * of SVG elements in IE as well.
   */
  function getOuterHTML (el) {
    if (el.outerHTML) {
      return el.outerHTML
    } else {
      var container = document.createElement('div');
      container.appendChild(el.cloneNode(true));
      return container.innerHTML
    }
  }
  
  Vue$3.compile = compileToFunctions;
  
  module.exports = Vue$3;
  
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("./node_modules/webpack/buildin/global.js"), __webpack_require__("./node_modules/timers-browserify/main.js").setImmediate))
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/params.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  
  exports.pushParams = pushParams;
  exports.popParams = popParams;
  exports.withParams = withParams;
  
  var stack = [];
  
  // exported for tests
  var target = exports.target = null;
  var _setTarget = exports._setTarget = function _setTarget(x) {
    exports.target = target = x;
  };
  
  function pushParams() {
    if (target !== null) {
      stack.push(target);
    }
    exports.target = target = {};
  }
  
  function popParams() {
    var lastTarget = target;
    var newTarget = exports.target = target = stack.pop() || null;
    if (newTarget) {
      if (!Array.isArray(newTarget.$sub)) {
        newTarget.$sub = [];
      }
      newTarget.$sub.push(lastTarget);
    }
    return lastTarget;
  }
  
  function addParams(params) {
    if (typeof params === 'object' && !Array.isArray(params)) {
      exports.target = target = _extends({}, target, params);
    } else {
      throw new Error('params must be an object');
    }
  }
  
  function withParamsDirect(params, validator) {
    return withParamsClosure(function (add) {
      return function () {
        add(params);
  
        for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
          args[_key] = arguments[_key];
        }
  
        return validator.apply(this, args);
      };
    });
  }
  
  function withParamsClosure(closure) {
    var validator = closure(addParams);
    return function () {
      pushParams();
      try {
        for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
          args[_key2] = arguments[_key2];
        }
  
        return validator.apply(this, args);
      } finally {
        popParams();
      }
    };
  }
  
  function withParams(paramsOrClosure, maybeValidator) {
    if (typeof paramsOrClosure === 'object' && maybeValidator !== undefined) {
      return withParamsDirect(paramsOrClosure, maybeValidator);
    }
    return withParamsClosure(paramsOrClosure);
  }
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/alpha.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = (0, _common.regex)('alpha', /^[a-zA-Z]*$/);
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/alphaNum.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = (0, _common.regex)('alphaNum', /^[a-zA-Z0-9]*$/);
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/and.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = function () {
    for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) {
      validators[_key] = arguments[_key];
    }
  
    return (0, _common.withParams)({ type: 'and' }, function () {
      var _this = this;
  
      for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        args[_key2] = arguments[_key2];
      }
  
      return validators.length > 0 && validators.reduce(function (valid, fn) {
        return valid && fn.apply(_this, args);
      }, true);
    });
  };
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/between.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = function (min, max) {
    return (0, _common.withParams)({ type: 'between', min: min, max: max }, function (value) {
      return !(0, _common.req)(value) || (!/\s/.test(value) || value instanceof Date) && +min <= +value && +max >= +value;
    });
  };
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/common.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.regex = exports.ref = exports.len = exports.req = exports.withParams = undefined;
  
  var _withParams = __webpack_require__("./node_modules/vuelidate/lib/withParams.js");
  
  var _withParams2 = _interopRequireDefault(_withParams);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  exports.withParams = _withParams2.default;
  
  // "required" core, used in almost every validator to allow empty values
  
  var req = exports.req = function req(value) {
    if (Array.isArray(value)) return !!value.length;
    if (value === undefined || value === null || value === false) {
      return false;
    }
  
    if (value instanceof Date) {
      // invalid date won't pass
      return !isNaN(value.getTime());
    }
  
    if (typeof value === 'object') {
      for (var _ in value) {
        return true;
      }return false;
    }
  
    return !!String(value).length;
  };
  
  // get length in type-agnostic way
  var len = exports.len = function len(value) {
    if (Array.isArray(value)) return value.length;
    if (typeof value === 'object') {
      return Object.keys(value).length;
    }
    return String(value).length;
  };
  
  // resolve referenced value
  var ref = exports.ref = function ref(reference, vm, parentVm) {
    return typeof reference === 'function' ? reference.call(vm, parentVm) : parentVm[reference];
  };
  
  // regex based validator template
  var regex = exports.regex = function regex(type, expr) {
    return (0, _withParams2.default)({ type: type }, function (value) {
      return !req(value) || expr.test(value);
    });
  };
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/email.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  var emailRegex = /(^$|^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$)/;
  
  exports.default = (0, _common.regex)('email', emailRegex);
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/index.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.maxValue = exports.minValue = exports.and = exports.or = exports.url = exports.sameAs = exports.requiredUnless = exports.requiredIf = exports.required = exports.minLength = exports.maxLength = exports.macAddress = exports.ipAddress = exports.email = exports.between = exports.numeric = exports.alphaNum = exports.alpha = undefined;
  
  var _alpha = __webpack_require__("./node_modules/vuelidate/lib/validators/alpha.js");
  
  var _alpha2 = _interopRequireDefault(_alpha);
  
  var _alphaNum = __webpack_require__("./node_modules/vuelidate/lib/validators/alphaNum.js");
  
  var _alphaNum2 = _interopRequireDefault(_alphaNum);
  
  var _numeric = __webpack_require__("./node_modules/vuelidate/lib/validators/numeric.js");
  
  var _numeric2 = _interopRequireDefault(_numeric);
  
  var _between = __webpack_require__("./node_modules/vuelidate/lib/validators/between.js");
  
  var _between2 = _interopRequireDefault(_between);
  
  var _email = __webpack_require__("./node_modules/vuelidate/lib/validators/email.js");
  
  var _email2 = _interopRequireDefault(_email);
  
  var _ipAddress = __webpack_require__("./node_modules/vuelidate/lib/validators/ipAddress.js");
  
  var _ipAddress2 = _interopRequireDefault(_ipAddress);
  
  var _macAddress = __webpack_require__("./node_modules/vuelidate/lib/validators/macAddress.js");
  
  var _macAddress2 = _interopRequireDefault(_macAddress);
  
  var _maxLength = __webpack_require__("./node_modules/vuelidate/lib/validators/maxLength.js");
  
  var _maxLength2 = _interopRequireDefault(_maxLength);
  
  var _minLength = __webpack_require__("./node_modules/vuelidate/lib/validators/minLength.js");
  
  var _minLength2 = _interopRequireDefault(_minLength);
  
  var _required = __webpack_require__("./node_modules/vuelidate/lib/validators/required.js");
  
  var _required2 = _interopRequireDefault(_required);
  
  var _requiredIf = __webpack_require__("./node_modules/vuelidate/lib/validators/requiredIf.js");
  
  var _requiredIf2 = _interopRequireDefault(_requiredIf);
  
  var _requiredUnless = __webpack_require__("./node_modules/vuelidate/lib/validators/requiredUnless.js");
  
  var _requiredUnless2 = _interopRequireDefault(_requiredUnless);
  
  var _sameAs = __webpack_require__("./node_modules/vuelidate/lib/validators/sameAs.js");
  
  var _sameAs2 = _interopRequireDefault(_sameAs);
  
  var _url = __webpack_require__("./node_modules/vuelidate/lib/validators/url.js");
  
  var _url2 = _interopRequireDefault(_url);
  
  var _or = __webpack_require__("./node_modules/vuelidate/lib/validators/or.js");
  
  var _or2 = _interopRequireDefault(_or);
  
  var _and = __webpack_require__("./node_modules/vuelidate/lib/validators/and.js");
  
  var _and2 = _interopRequireDefault(_and);
  
  var _minValue = __webpack_require__("./node_modules/vuelidate/lib/validators/minValue.js");
  
  var _minValue2 = _interopRequireDefault(_minValue);
  
  var _maxValue = __webpack_require__("./node_modules/vuelidate/lib/validators/maxValue.js");
  
  var _maxValue2 = _interopRequireDefault(_maxValue);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  exports.alpha = _alpha2.default;
  exports.alphaNum = _alphaNum2.default;
  exports.numeric = _numeric2.default;
  exports.between = _between2.default;
  exports.email = _email2.default;
  exports.ipAddress = _ipAddress2.default;
  exports.macAddress = _macAddress2.default;
  exports.maxLength = _maxLength2.default;
  exports.minLength = _minLength2.default;
  exports.required = _required2.default;
  exports.requiredIf = _requiredIf2.default;
  exports.requiredUnless = _requiredUnless2.default;
  exports.sameAs = _sameAs2.default;
  exports.url = _url2.default;
  exports.or = _or2.default;
  exports.and = _and2.default;
  exports.minValue = _minValue2.default;
  exports.maxValue = _maxValue2.default;
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/ipAddress.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = (0, _common.withParams)({ type: 'ipAddress' }, function (value) {
    if (!(0, _common.req)(value)) {
      return true;
    }
  
    if (typeof value !== 'string') {
      return false;
    }
  
    var nibbles = value.split('.');
    return nibbles.length === 4 && nibbles.every(nibbleValid);
  });
  
  
  var nibbleValid = function nibbleValid(nibble) {
    if (nibble.length > 3 || nibble.length === 0) {
      return false;
    }
  
    if (nibble[0] === '0' && nibble !== '0') {
      return false;
    }
  
    if (!nibble.match(/^\d+$/)) {
      return false;
    }
  
    var numeric = +nibble | 0;
    return numeric >= 0 && numeric <= 255;
  };
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/macAddress.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = function () {
    var separator = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ':';
    return (0, _common.withParams)({ type: 'macAddress' }, function (value) {
      if (!(0, _common.req)(value)) {
        return true;
      }
  
      if (typeof value !== 'string') {
        return false;
      }
  
      var parts = typeof separator === 'string' && separator !== '' ? value.split(separator) : value.length === 12 || value.length === 16 ? value.match(/.{2}/g) : null;
  
      return parts !== null && (parts.length === 6 || parts.length === 8) && parts.every(hexValid);
    });
  };
  
  var hexValid = function hexValid(hex) {
    return hex.toLowerCase().match(/^[0-9a-f]{2}$/);
  };
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/maxLength.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = function (length) {
    return (0, _common.withParams)({ type: 'maxLength', max: length }, function (value) {
      return !(0, _common.req)(value) || (0, _common.len)(value) <= length;
    });
  };
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/maxValue.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = function (max) {
    return (0, _common.withParams)({ type: 'maxValue', max: max }, function (value) {
      return !(0, _common.req)(value) || (!/\s/.test(value) || value instanceof Date) && +value <= +max;
    });
  };
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/minLength.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = function (length) {
    return (0, _common.withParams)({ type: 'minLength', min: length }, function (value) {
      return !(0, _common.req)(value) || (0, _common.len)(value) >= length;
    });
  };
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/minValue.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = function (min) {
    return (0, _common.withParams)({ type: 'minValue', min: min }, function (value) {
      return !(0, _common.req)(value) || (!/\s/.test(value) || value instanceof Date) && +value >= +min;
    });
  };
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/numeric.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = (0, _common.regex)('numeric', /^[0-9]*$/);
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/or.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = function () {
    for (var _len = arguments.length, validators = Array(_len), _key = 0; _key < _len; _key++) {
      validators[_key] = arguments[_key];
    }
  
    return (0, _common.withParams)({ type: 'or' }, function () {
      var _this = this;
  
      for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        args[_key2] = arguments[_key2];
      }
  
      return validators.length > 0 && validators.reduce(function (valid, fn) {
        return valid || fn.apply(_this, args);
      }, false);
    });
  };
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/required.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = (0, _common.withParams)({ type: 'required' }, _common.req);
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/requiredIf.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = function (prop) {
    return (0, _common.withParams)({ type: 'requiredIf', prop: prop }, function (value, parentVm) {
      return (0, _common.ref)(prop, this, parentVm) ? (0, _common.req)(value) : true;
    });
  };
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/requiredUnless.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = function (prop) {
    return (0, _common.withParams)({ type: 'requiredUnless', prop: prop }, function (value, parentVm) {
      return !(0, _common.ref)(prop, this, parentVm) ? (0, _common.req)(value) : true;
    });
  };
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/sameAs.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  exports.default = function (equalTo) {
    return (0, _common.withParams)({ type: 'sameAs', eq: equalTo }, function (value, parentVm) {
      return value === (0, _common.ref)(equalTo, this, parentVm);
    });
  };
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/validators/url.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _common = __webpack_require__("./node_modules/vuelidate/lib/validators/common.js");
  
  var urlRegex = /^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/;
  
  exports.default = (0, _common.regex)('url', urlRegex);
  
  /***/ }),
  
  /***/ "./node_modules/vuelidate/lib/withParams.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  /* istanbul ignore next */
  var withParams =  false ? require('./withParamsBrowser').withParams : __webpack_require__("./node_modules/vuelidate/lib/params.js").withParams;
  
  exports.default = withParams;
  
  /***/ }),
  
  /***/ "./node_modules/vuetify/dist/vuetify.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  (function webpackUniversalModuleDefinition(root, factory) {
  	if(true)
  		module.exports = factory();
  	else if(typeof define === 'function' && define.amd)
  		define([], factory);
  	else if(typeof exports === 'object')
  		exports["Vuetify"] = factory();
  	else
  		root["Vuetify"] = factory();
  })(this, function() {
  return /******/ (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 = "/dist/";
  /******/
  /******/ 	// Load entry module and return exports
  /******/ 	return __webpack_require__(__webpack_require__.s = 29);
  /******/ })
  /************************************************************************/
  /******/ ([
  /* 0 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (immutable) */ __webpack_exports__["d"] = createSimpleFunctional;
  /* harmony export (immutable) */ __webpack_exports__["e"] = createSimpleTransition;
  /* harmony export (immutable) */ __webpack_exports__["b"] = createJavaScriptTransition;
  /* harmony export (immutable) */ __webpack_exports__["f"] = directiveConfig;
  /* harmony export (immutable) */ __webpack_exports__["a"] = addOnceEventListener;
  /* harmony export (immutable) */ __webpack_exports__["g"] = getObjectValueByPath;
  /* harmony export (immutable) */ __webpack_exports__["c"] = createRange;
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  
  function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
  
  function createSimpleFunctional(c) {
    var el = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'div';
  
    return {
      functional: true,
  
      render: function render(h, _ref) {
        var data = _ref.data,
            children = _ref.children;
  
        data.staticClass = (c + ' ' + (data.staticClass || '')).trim();
  
        return h(el, data, children);
      }
    };
  }
  
  function createSimpleTransition(name) {
    var origin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top center 0';
    var mode = arguments[2];
  
    return {
      functional: true,
  
      props: {
        origin: {
          type: String,
          default: origin
        }
      },
  
      render: function render(h, context) {
        context.data = context.data || {};
        context.data.props = { name: name };
        context.data.on = context.data.on || {};
  
        if (mode) context.data.props.mode = mode;
  
        context.data.on.beforeEnter = function (el) {
          el.style.transformOrigin = origin;
          el.style.webkitTransformOrigin = origin;
        };
  
        return h('transition', context.data, context.children);
      }
    };
  }
  
  function createJavaScriptTransition(name, functions) {
    var css = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
    var mode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'in-out';
  
    return {
      functional: true,
  
      props: {
        css: {
          type: Boolean,
          default: css
        },
        mode: {
          type: String,
          default: mode
        }
      },
  
      render: function render(h, context) {
        var data = {
          props: _extends({}, context.props, {
            name: name
          }),
          on: functions
        };
  
        return h('transition', data, context.children);
      }
    };
  }
  
  function directiveConfig(binding) {
    var defaults = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  
    return Object.assign({}, defaults, binding.modifiers, { value: binding.arg }, binding.value || {});
  }
  
  function addOnceEventListener(el, event, cb) {
    var once = function once() {
      cb();
      el.removeEventListener(event, once, false);
    };
  
    el.addEventListener(event, once, false);
  }
  
  function getObjectValueByPath(obj, path) {
    // credit: http://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key#comment55278413_6491621
    if (!path || path.constructor !== String) return;
    path = path.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties
    path = path.replace(/^\./, ''); // strip a leading dot
    var a = path.split('.');
    for (var i = 0, n = a.length; i < n; ++i) {
      var k = a[i];
      if (obj instanceof Object && k in obj) {
        obj = obj[k];
      } else {
        return;
      }
    }
    return obj;
  }
  
  function createRange(length) {
    return [].concat(_toConsumableArray(Array.from({ length: length }, function (v, k) {
      return k;
    })));
  }
  
  /***/ }),
  /* 1 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    props: {
      dark: Boolean,
      light: Boolean
    }
  });
  
  /***/ }),
  /* 2 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    data: function data() {
      return {
        isActive: !!this.value
      };
    },
  
  
    props: {
      value: {
        required: false
      }
    },
  
    watch: {
      value: function value(val) {
        this.isActive = !!val;
      },
      isActive: function isActive(val) {
        !!val !== this.value && this.$emit('input', val);
      }
    }
  });
  
  /***/ }),
  /* 3 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_themeable__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_contextualable__ = __webpack_require__(8);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    functional: true,
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_themeable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__mixins_contextualable__["a" /* default */]],
  
    props: {
      disabled: Boolean,
      fa: Boolean,
      mdi: Boolean,
      large: Boolean,
      left: Boolean,
      medium: Boolean,
      right: Boolean,
      xLarge: Boolean
    },
  
    render: function render(h, _ref) {
      var props = _ref.props,
          data = _ref.data,
          _ref$children = _ref.children,
          children = _ref$children === undefined ? [] : _ref$children;
  
      if (props.fa || props.mdi) console.warn('The v-icon prop \'fa\' and \'mdi\' will be deprecated in the next release. Use \'fa\' or \'mdi\' prefix in icon name instead.');
      var iconName = '';
      var iconType = 'material-icons';
  
      if (children.length) {
        iconName = children.pop().text;
      } else if (data.domProps && data.domProps.textContent) {
        iconName = data.domProps.textContent;
        delete data.domProps.textContent;
      } else if (data.domProps && data.domProps.innerHTML) {
        iconName = data.domProps.innerHTML;
        delete data.domProps.innerHTML;
      }
  
      var thirdPartyIcon = iconName.indexOf('-') > -1;
      if (thirdPartyIcon) iconType = iconName.slice(0, iconName.indexOf('-'));
  
      // To keep things backwards compatible for now
      iconType = props.fa ? 'fa' : props.mdi ? 'mdi' : iconType;
  
      data.staticClass = (iconType + ' icon ' + (data.staticClass || '')).trim();
      data.attrs = data.attrs || {};
  
      var classes = {
        'icon--large': props.large,
        'icon--left': props.left,
        'icon--medium': props.medium,
        'icon--right': props.right,
        'icon--x-large': props.xLarge,
        'primary--text': props.primary,
        'secondary--text': props.secondary,
        'success--text': props.success,
        'info--text': props.info,
        'warning--text': props.warning,
        'error--text': props.error,
        'theme--dark': props.dark,
        'theme--light': props.light
      };
  
      var iconClasses = Object.keys(classes).filter(function (k) {
        return classes[k];
      }).join(' ');
      iconClasses && (data.staticClass += ' ' + iconClasses);
  
      // To keep things backwards compatible for now
      if (props.fa || props.mdi) {
        var comparison = props.fa ? 'fa' : 'mdi';
  
        if (iconName.indexOf(' ') > -1) data.staticClass += ' ' + comparison + '-' + iconName;else data.staticClass += ' ' + comparison + '-' + iconName.split(' ').join('-');
      }
  
      if (thirdPartyIcon) data.staticClass += ' ' + iconName;
      if (props.disabled) data.attrs.disabled = props.disabled;
      !(thirdPartyIcon || props.fa || props.mdi) && children.push(iconName);
  
      return h('i', data, children);
    }
  });
  
  /***/ }),
  /* 4 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__badge__ = __webpack_require__(77);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__click_outside__ = __webpack_require__(19);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__resize__ = __webpack_require__(78);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ripple__ = __webpack_require__(20);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__scroll__ = __webpack_require__(79);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__tooltip__ = __webpack_require__(80);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__touch__ = __webpack_require__(81);
  /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Badge", function() { return __WEBPACK_IMPORTED_MODULE_0__badge__["a"]; });
  /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ClickOutside", function() { return __WEBPACK_IMPORTED_MODULE_1__click_outside__["a"]; });
  /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Ripple", function() { return __WEBPACK_IMPORTED_MODULE_3__ripple__["a"]; });
  /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Resize", function() { return __WEBPACK_IMPORTED_MODULE_2__resize__["a"]; });
  /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Scroll", function() { return __WEBPACK_IMPORTED_MODULE_4__scroll__["a"]; });
  /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return __WEBPACK_IMPORTED_MODULE_5__tooltip__["a"]; });
  /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Touch", function() { return __WEBPACK_IMPORTED_MODULE_6__touch__["a"]; });
  
  
  
  
  
  
  
  
  
  
  /***/ }),
  /* 5 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_contextualable__ = __webpack_require__(8);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_positionable__ = __webpack_require__(12);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__mixins_route_link__ = __webpack_require__(9);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mixins_themeable__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__mixins_toggleable__ = __webpack_require__(2);
  
  
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-btn',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_contextualable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_2__mixins_route_link__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__mixins_positionable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_3__mixins_themeable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_4__mixins_toggleable__["a" /* default */]],
  
    props: {
      activeClass: {
        type: String,
        default: 'btn--active'
      },
      block: Boolean,
      fab: Boolean,
      flat: Boolean,
      icon: Boolean,
      large: Boolean,
      loading: Boolean,
      outline: Boolean,
      ripple: {
        type: [Boolean, Object],
        default: true
      },
      round: Boolean,
      small: Boolean,
      tag: {
        type: String,
        default: 'button'
      },
      type: {
        type: String,
        default: 'button'
      }
    },
  
    computed: {
      classes: function classes() {
        return {
          'btn': true,
          'btn--absolute': this.absolute,
          'btn--active': this.isActive,
          'btn--block': this.block,
          'btn--bottom': this.bottom,
          'btn--disabled': this.disabled,
          'btn--flat': this.flat,
          'btn--floating': this.fab,
          'btn--fixed': this.fixed,
          'btn--hover': this.hover,
          'btn--icon': this.icon,
          'btn--large': this.large,
          'btn--left': this.left,
          'btn--loader': this.loading,
          'btn--outline': this.outline,
          'btn--raised': !this.flat,
          'btn--right': this.right,
          'btn--round': this.round,
          'btn--small': this.small,
          'btn--top': this.top,
          'theme--dark': this.dark,
          'theme--light': this.light,
          'primary': this.primary && !this.outline,
          'secondary': this.secondary && !this.outline,
          'success': this.success && !this.outline,
          'info': this.info && !this.outline,
          'warning': this.warning && !this.outline,
          'error': this.error && !this.outline,
          'primary--text': this.primary && (this.outline || this.flat),
          'secondary--text': this.secondary && (this.outline || this.flat),
          'success--text': this.success && (this.outline || this.flat),
          'info--text': this.info && (this.outline || this.flat),
          'warning--text': this.warning && (this.outline || this.flat),
          'error--text': this.error && (this.outline || this.flat)
        };
      }
    },
  
    methods: {
      // Prevent focus to match md spec
      click: function click(e) {
        !this.fab && e.detail && this.$el.blur();
  
        this.$emit('click', e);
      },
      genContent: function genContent() {
        return this.$createElement('div', { 'class': 'btn__content' }, [this.$slots.default]);
      },
      genLoader: function genLoader() {
        var children = [];
  
        if (!this.$slots.loader) {
          children.push(this.$createElement('v-progress-circular', {
            props: {
              indeterminate: true,
              size: 26
            }
          }));
        } else {
          children.push(this.$slots.loader);
        }
  
        return this.$createElement('span', { 'class': 'btn__loading' }, children);
      }
    },
  
    render: function render(h) {
      var _generateRouteLink = this.generateRouteLink(),
          tag = _generateRouteLink.tag,
          data = _generateRouteLink.data;
  
      var children = [this.genContent()];
  
      tag === 'button' && (data.attrs.type = this.type);
      this.loading && children.push(this.genLoader());
  
      return h(tag, data, children);
    }
  });
  
  /***/ }),
  /* 6 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* unused harmony export VCarouselTransition */
  /* unused harmony export VCarouselReverseTransition */
  /* unused harmony export VTabTransition */
  /* unused harmony export VTabReverseTransition */
  /* unused harmony export VMenuTransition */
  /* unused harmony export VFabTransition */
  /* unused harmony export VDialogTransition */
  /* unused harmony export VDialogBottomTransition */
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return VFadeTransition; });
  /* unused harmony export VScaleTransition */
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return VSlideXTransition; });
  /* unused harmony export VSlideXReverseTransition */
  /* unused harmony export VSlideYTransition */
  /* unused harmony export VSlideYReverseTransition */
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VExpandTransition; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_helpers__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__expand_transition__ = __webpack_require__(71);
  
  
  
  
  // Component specific transitions
  var VCarouselTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["e" /* createSimpleTransition */])('carousel-transition');
  var VCarouselReverseTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["e" /* createSimpleTransition */])('carousel-reverse-transition');
  var VTabTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["e" /* createSimpleTransition */])('tab-transition');
  var VTabReverseTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["e" /* createSimpleTransition */])('tab-reverse-transition');
  var VMenuTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["e" /* createSimpleTransition */])('menu-transition');
  var VFabTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["e" /* createSimpleTransition */])('fab-transition', 'center center', 'out-in');
  
  // Generic transitions
  var VDialogTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["e" /* createSimpleTransition */])('dialog-transition');
  var VDialogBottomTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["e" /* createSimpleTransition */])('dialog-bottom-transition');
  var VFadeTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["e" /* createSimpleTransition */])('fade-transition');
  var VScaleTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["e" /* createSimpleTransition */])('scale-transition');
  var VSlideXTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["e" /* createSimpleTransition */])('slide-x-transition');
  var VSlideXReverseTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["e" /* createSimpleTransition */])('slide-x-reverse-transition');
  var VSlideYTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["e" /* createSimpleTransition */])('slide-y-transition');
  var VSlideYReverseTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["e" /* createSimpleTransition */])('slide-y-reverse-transition');
  
  // JavaScript transitions
  var VExpandTransition = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["b" /* createJavaScriptTransition */])('expand-transition', __WEBPACK_IMPORTED_MODULE_1__expand_transition__["a" /* default */]);
  
  /* harmony default export */ __webpack_exports__["d"] = ({
    VCarouselTransition: VCarouselTransition,
    VCarouselReverseTransition: VCarouselReverseTransition,
    VDialogTransition: VDialogTransition,
    VDialogBottomTransition: VDialogBottomTransition,
    VFabTransition: VFabTransition,
    VFadeTransition: VFadeTransition,
    VMenuTransition: VMenuTransition,
    VScaleTransition: VScaleTransition,
    VSlideXTransition: VSlideXTransition,
    VSlideXReverseTransition: VSlideXReverseTransition,
    VSlideYTransition: VSlideYTransition,
    VSlideYReverseTransition: VSlideYReverseTransition,
    VTabReverseTransition: VTabReverseTransition,
    VTabTransition: VTabTransition,
    VExpandTransition: VExpandTransition
  });
  
  /***/ }),
  /* 7 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__themeable__ = __webpack_require__(1);
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    mixins: [__WEBPACK_IMPORTED_MODULE_0__themeable__["a" /* default */]],
  
    data: function data() {
      return {
        errorBucket: [],
        focused: false,
        tabFocused: false,
        lazyValue: this.value
      };
    },
  
  
    props: {
      appendIcon: String,
      appendIconCb: Function,
      disabled: Boolean,
      error: Boolean,
      errorMessages: {
        type: [String, Array],
        default: function _default() {
          return [];
        }
      },
      hint: String,
      hideDetails: Boolean,
      label: String,
      persistentHint: Boolean,
      placeholder: String,
      prependIcon: String,
      prependIconCb: Function,
      required: Boolean,
      rules: {
        type: Array,
        default: function _default() {
          return [];
        }
      },
      tabindex: {
        default: 0
      },
      value: {
        required: false
      }
    },
  
    computed: {
      hasError: function hasError() {
        return this.validations.length || this.error;
      },
      inputGroupClasses: function inputGroupClasses() {
        return Object.assign({
          'input-group': true,
          'input-group--focused': this.focused,
          'input-group--dirty': this.isDirty,
          'input-group--tab-focused': this.tabFocused,
          'input-group--disabled': this.disabled,
          'input-group--error': this.hasError,
          'input-group--append-icon': this.appendIcon,
          'input-group--prepend-icon': this.prependIcon,
          'input-group--required': this.required,
          'input-group--hide-details': this.hideDetails,
          'input-group--placeholder': !!this.placeholder,
          'theme--dark': this.dark,
          'theme--light': this.light
        }, this.classes);
      },
      isDirty: function isDirty() {
        return this.inputValue;
      },
      modifiers: function modifiers() {
        var modifiers = {
          lazy: false,
          number: false,
          trim: false
        };
  
        if (!this.$vnode.data.directives) {
          return modifiers;
        }
  
        var model = this.$vnode.data.directives.find(function (i) {
          return i.name === 'model';
        });
  
        if (!model) {
          return modifiers;
        }
  
        return Object.assign(modifiers, model.modifiers);
      },
      validations: function validations() {
        return (!Array.isArray(this.errorMessages) ? [this.errorMessages] : this.errorMessages).concat(this.errorBucket);
      }
    },
  
    watch: {
      rules: function rules() {
        this.validate();
      }
    },
  
    mounted: function mounted() {
      this.validate();
    },
  
  
    methods: {
      genLabel: function genLabel() {
        return this.$createElement('label', {
          attrs: {
            for: this.$attrs.id
          }
        }, this.$slots.label || this.label);
      },
      genMessages: function genMessages() {
        var _this = this;
  
        var messages = [];
  
        if ((this.hint && this.focused || this.hint && this.persistentHint) && this.validations.length === 0) {
          messages = [this.genHint()];
        } else if (this.validations.length) {
          messages = this.validations.map(function (i) {
            return _this.genError(i);
          });
        }
  
        return this.$createElement('transition-group', {
          'class': 'input-group__messages',
          props: {
            tag: 'div',
            name: 'slide-y-transition'
          }
        }, messages);
      },
      genHint: function genHint() {
        return this.$createElement('div', {
          'class': 'input-group__hint',
          key: this.hint,
          domProps: { innerHTML: this.hint }
        });
      },
      genError: function genError(error) {
        return this.$createElement('div', {
          'class': 'input-group__error',
          key: error
        }, error);
      },
      genIcon: function genIcon(type) {
        var _class;
  
        var icon = this[type + 'Icon'];
        var cb = this[type + 'IconCb'];
        var hasCallback = typeof cb === 'function';
  
        return this.$createElement('v-icon', {
          'class': (_class = {}, _defineProperty(_class, 'input-group__' + type + '-icon', true), _defineProperty(_class, 'input-group__icon-cb', hasCallback), _class),
          on: {
            click: function click(e) {
              hasCallback && cb(e);
            }
          }
        }, icon);
      },
      genInputGroup: function genInputGroup(input) {
        var _this2 = this;
  
        var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  
        var children = [];
        var wrapperChildren = [];
        var detailsChildren = [];
  
        data = Object.assign({}, {
          'class': this.inputGroupClasses,
          attrs: {
            tabindex: this.tabindex
          },
          on: {
            blur: function blur() {
              return _this2.tabFocused = false;
            },
            click: function click() {
              return _this2.tabFocused = false;
            },
            keyup: function keyup(e) {
              if ([9, 16].includes(e.keyCode)) {
                _this2.tabFocused = true;
              }
            },
            keydown: function keydown(e) {
              if (!_this2.toggle) return;
  
              if ([13, 32].includes(e.keyCode)) {
                e.preventDefault();
                _this2.toggle();
              }
            }
          }
        }, data);
  
        if (this.$slots.label || this.label) {
          children.push(this.genLabel());
        }
  
        wrapperChildren.push(input);
  
        if (this.prependIcon) {
          wrapperChildren.unshift(this.genIcon('prepend'));
        }
  
        if (this.appendIcon) {
          wrapperChildren.push(this.genIcon('append'));
        }
  
        children.push(this.$createElement('div', {
          'class': 'input-group__input'
        }, wrapperChildren));
  
        detailsChildren.push(this.genMessages());
        this.counter && detailsChildren.push(this.genCounter());
  
        children.push(this.$createElement('div', {
          'class': 'input-group__details'
        }, detailsChildren));
  
        return this.$createElement('div', data, children);
      },
      validate: function validate() {
        var _this3 = this;
  
        this.errorBucket = [];
  
        this.rules.forEach(function (rule) {
          var valid = typeof rule === 'function' ? rule(_this3.value) : rule;
  
          if (valid !== true) {
            _this3.errorBucket.push(valid);
          }
        });
      }
    }
  });
  
  /***/ }),
  /* 8 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    props: {
      primary: Boolean,
      secondary: Boolean,
      success: Boolean,
      info: Boolean,
      warning: Boolean,
      error: Boolean
    }
  });
  
  /***/ }),
  /* 9 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    props: {
      append: Boolean,
      disabled: Boolean,
      exact: Boolean,
      href: [String, Object],
      to: [String, Object],
      nuxt: Boolean,
      replace: Boolean,
      router: Boolean,
      ripple: {
        type: Boolean,
        default: true
      },
      tag: String
    },
  
    methods: {
      click: function click() {},
      generateRouteLink: function generateRouteLink() {
        var exact = this.exact;
        var tag = void 0;
  
        var data = {
          attrs: { disabled: this.disabled },
          class: this.classes,
          props: {},
          directives: [{
            name: 'ripple',
            value: this.ripple || false
          }],
          on: Object.assign({
            click: this.click
          }, this.$listeners || {})
        };
  
        if (typeof this.exact === 'undefined') {
          exact = this.to === '/' || this.to === Object(this.to) && this.to.path === '/';
        }
  
        if (this.to) {
          tag = this.nuxt ? 'nuxt-link' : 'router-link';
          data.props.to = this.to;
          data.props.exact = exact;
          data.props.activeClass = this.activeClass;
          data.props.append = this.append;
          data.props.replace = this.replace;
        } else {
          tag = this.href && 'a' || this.tag || 'a';
  
          if (tag === 'a') {
            data.attrs.href = this.href || 'javascript:;';
          }
        }
  
        return { tag: tag, data: data };
      }
    }
  });
  
  /***/ }),
  /* 10 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    data: function data() {
      return {
        isBooted: false
      };
    },
  
  
    watch: {
      isActive: function isActive() {
        this.isBooted = true;
      }
    },
  
    methods: {
      showLazyContent: function showLazyContent(content) {
        return this.lazy && this.isBooted || !this.lazy ? content : null;
      }
    }
  });
  
  /***/ }),
  /* 11 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* unused harmony export VListTileActionText */
  /* unused harmony export VListTileAvatar */
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VListTileContent; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return VListTileTitle; });
  /* unused harmony export VListTileSubTitle */
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_helpers__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VList__ = __webpack_require__(17);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__VListGroup__ = __webpack_require__(76);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__VListTile__ = __webpack_require__(18);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__VListTileAction__ = __webpack_require__(21);
  
  
  
  
  
  
  
  var VListTileActionText = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["d" /* createSimpleFunctional */])('list__tile__action-text', 'span');
  var VListTileAvatar = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["d" /* createSimpleFunctional */])('list__tile__avatar', 'v-avatar');
  var VListTileContent = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["d" /* createSimpleFunctional */])('list__tile__content', 'div');
  var VListTileTitle = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["d" /* createSimpleFunctional */])('list__tile__title', 'div');
  var VListTileSubTitle = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["d" /* createSimpleFunctional */])('list__tile__sub-title', 'div');
  
  /* harmony default export */ __webpack_exports__["c"] = ({
    VList: __WEBPACK_IMPORTED_MODULE_1__VList__["a" /* default */],
    VListTile: __WEBPACK_IMPORTED_MODULE_3__VListTile__["a" /* default */],
    VListGroup: __WEBPACK_IMPORTED_MODULE_2__VListGroup__["a" /* default */],
    VListTileAction: __WEBPACK_IMPORTED_MODULE_4__VListTileAction__["a" /* default */],
    VListTileActionText: VListTileActionText,
    VListTileAvatar: VListTileAvatar,
    VListTileContent: VListTileContent,
    VListTileTitle: VListTileTitle,
    VListTileSubTitle: VListTileSubTitle
  });
  
  /***/ }),
  /* 12 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    props: {
      absolute: Boolean,
      bottom: Boolean,
      fixed: Boolean,
      left: Boolean,
      right: Boolean,
      top: Boolean
    }
  });
  
  /***/ }),
  /* 13 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_themeable__ = __webpack_require__(1);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    functional: true,
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_themeable__["a" /* default */]],
  
    props: {
      flat: Boolean,
      height: {
        type: String,
        default: 'auto'
      },
      hover: Boolean,
      img: String,
      raised: Boolean,
      tile: Boolean
    },
  
    render: function render(h, _ref) {
      var data = _ref.data,
          props = _ref.props,
          children = _ref.children;
  
      data.staticClass = ('card ' + (data.staticClass || '')).trim();
      data.style = data.style || {};
      data.style.height = props.height;
  
      if (props.dark) data.staticClass += ' theme--dark';
      if (props.flat) data.staticClass += ' card--flat';
      if (props.horizontal) data.staticClass += ' card--horizontal';
      if (props.hover) data.staticClass += ' card--hover';
      if (props.light) data.staticClass += ' theme--light';
      if (props.raised) data.staticClass += ' card--raised';
      if (props.tile) data.staticClass += ' card--tile';
  
      if (props.img) {
        data.style.background = 'url(' + props.img + ') center center / cover no-repeat';
      }
  
      return h('div', data, children);
    }
  });
  
  /***/ }),
  /* 14 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    data: function data() {
      return {
        isSaving: false
      };
    },
  
  
    props: {
      actions: Boolean,
      autosave: Boolean,
      landscape: Boolean,
      noTitle: Boolean,
      scrollable: Boolean,
      value: {
        required: true
      },
      light: {
        type: Boolean,
        default: true
      },
      dark: Boolean
    },
  
    methods: {
      save: function save() {},
      cancel: function cancel() {},
      genSlot: function genSlot() {
        return this.$scopedSlots.default({
          save: this.save,
          cancel: this.cancel
        });
      }
    }
  });
  
  /***/ }),
  /* 15 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    props: {
      contentClass: {
        default: ''
      }
    },
  
    mounted: function mounted() {
      var _this = this;
  
      this.$vuetify.load(function () {
        if (_this._isDestroyed) return;
  
        var app = document.querySelector('[data-app]');
  
        if (!app) {
          return console.warn('Application is missing <v-app> component.');
        }
  
        app.insertBefore(_this.$refs.content, app.firstChild);
      });
    },
    beforeDestroy: function beforeDestroy() {
      if (!this.$refs.content) return;
  
      // IE11 Fix
      try {
        this.$refs.content.parentNode.removeChild(this.$refs.content);
      } catch (e) {}
    }
  });
  
  /***/ }),
  /* 16 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    data: function data() {
      return {
        overlay: null,
        overlayOffset: 0,
        overlayTransitionDuration: 500
      };
    },
  
  
    props: {
      hideOverlay: Boolean
    },
  
    beforeDestroy: function beforeDestroy() {
      this.removeOverlay();
    },
  
  
    methods: {
      genOverlay: function genOverlay() {
        var _this = this;
  
        if (!this.isActive || this.hideOverlay || this.isActive && this.overlay) return;
  
        this.overlay = document.createElement('div');
        this.overlay.className = 'overlay';
        this.overlay.onclick = function () {
          if (_this.permanent) return;else if (!_this.persistent) _this.isActive = false;else if (_this.isMobile) _this.isActive = false;
        };
  
        if (this.absolute) this.overlay.className += ' overlay--absolute';
  
        this.hideScroll();
  
        if (this.absolute) {
          // Required for IE11
          var parent = this.$el.parentNode;
          parent.insertBefore(this.overlay, parent.firstChild);
        } else {
          document.querySelector('[data-app]').appendChild(this.overlay);
        }
  
        this.overlay.clientHeight; // Force repaint
        requestAnimationFrame(function () {
          _this.overlay.className += ' overlay--active';
        });
  
        return true;
      },
      removeOverlay: function removeOverlay() {
        var _this2 = this;
  
        if (!this.overlay) {
          return this.showScroll();
        }
  
        this.overlay.classList.remove('overlay--active');
  
        setTimeout(function () {
          // IE11 Fix
          try {
            _this2.overlay.parentNode.removeChild(_this2.overlay);
            _this2.overlay = null;
            _this2.showScroll();
          } catch (e) {}
        }, this.overlayTransitionDuration);
      },
      hideScroll: function hideScroll() {
        // Check documentElement first for IE11
        // this.overlayOffset = document.documentElement &&
        //   document.documentElement.scrollTop ||
        //   document.body.scrollTop
  
        // document.body.style.top = `-${this.overlayOffset}px`
        // document.body.style.position = 'fixed'
        document.documentElement.style.overflow = 'hidden';
      },
      showScroll: function showScroll() {
        document.documentElement.removeAttribute('style');
  
        // if (!this.overlayOffset) return
        // document.body.scrollTop = this.overlayOffset
        // document.documentElement.scrollTop = this.overlayOffset
      }
    }
  });
  
  /***/ }),
  /* 17 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_themeable__ = __webpack_require__(1);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-list',
  
    provide: function provide() {
      return {
        listClick: this.listClick,
        listClose: this.listClose
      };
    },
  
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_themeable__["a" /* default */]],
  
    data: function data() {
      return {
        uid: null,
        groups: []
      };
    },
  
  
    props: {
      dense: Boolean,
      subheader: Boolean,
      threeLine: Boolean,
      twoLine: Boolean
    },
  
    computed: {
      classes: function classes() {
        return {
          'list': true,
          'list--two-line': this.twoLine,
          'list--dense': this.dense,
          'list--three-line': this.threeLine,
          'list--subheader': this.subheader,
          'theme--dark dark--bg': this.dark,
          'theme--light light--bg': this.light
        };
      }
    },
  
    watch: {
      uid: function uid() {
        var _this = this;
  
        this.$children.filter(function (i) {
          return i.$options._componentTag === 'v-list-group';
        }).forEach(function (i) {
          return i.toggle(_this.uid);
        });
      }
    },
  
    methods: {
      listClick: function listClick(uid, force) {
        if (force) {
          this.uid = uid;
        } else {
          this.uid = this.uid === uid ? null : uid;
        }
      },
      listClose: function listClose(uid) {
        if (this.uid === uid) {
          this.uid = null;
        }
      }
    },
  
    render: function render(h) {
      var data = {
        'class': this.classes,
        attrs: { 'data-uid': this._uid }
      };
  
      return h('ul', data, [this.$slots.default]);
    }
  });
  
  /***/ }),
  /* 18 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_route_link__ = __webpack_require__(9);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_toggleable__ = __webpack_require__(2);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__directives__ = __webpack_require__(4);
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-list-tile',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_route_link__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__mixins_toggleable__["a" /* default */]],
  
    directives: {
      Ripple: __WEBPACK_IMPORTED_MODULE_2__directives__["Ripple"]
    },
  
    inheritAttrs: false,
  
    props: {
      activeClass: {
        type: String,
        default: 'list__tile--active'
      },
      avatar: Boolean
    },
  
    computed: {
      classes: function classes() {
        return {
          'list__tile': true,
          'list__tile--avatar': this.avatar,
          'list__tile--disabled': this.disabled
        };
      }
    },
  
    render: function render(h) {
      var _generateRouteLink = this.generateRouteLink(),
          tag = _generateRouteLink.tag,
          data = _generateRouteLink.data;
  
      data.attrs = Object.assign({}, data.attrs, this.$attrs);
  
      return h('li', {
        attrs: {
          disabled: this.disabled
        }
      }, [h(tag, data, [this.$slots.default])]);
    }
  });
  
  /***/ }),
  /* 19 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  function directive(e, el, binding, v) {
    var cb = function cb() {
      return true;
    };
  
    if (binding.value) cb = binding.value;
  
    if (v.context.isActive && e && e.target && e.target !== el && !el.contains(e.target) && cb(e)) {
      v.context.isActive = false;
    }
  }
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    bind: function bind(el, binding, v) {
      v.context.$vuetify.load(function () {
        var outside = document.querySelector('[data-app]');
        var click = function click(e) {
          return directive(e, el, binding, v);
        };
        outside.addEventListener('click', click, false);
        el._clickOutside = click;
      });
    },
    unbind: function unbind(el) {
      var outside = document.querySelector('[data-app]');
      outside && outside.removeEventListener('click', el._clickOutside, false);
    }
  });
  
  /***/ }),
  /* 20 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  function style(el, value) {
    ['transform', 'webkitTransform'].forEach(function (i) {
      el.style[i] = value;
    });
  }
  
  var ripple = {
    show: function show(e, el, _ref) {
      var _ref$value = _ref.value,
          value = _ref$value === undefined ? {} : _ref$value;
  
      var container = document.createElement('span');
      var animation = document.createElement('span');
  
      container.appendChild(animation);
      container.className = 'ripple__container';
  
      if (value.class) {
        container.className += ' ' + value.class;
      }
  
      var size = el.clientWidth > el.clientHeight ? el.clientWidth : el.clientHeight;
      animation.className = 'ripple__animation';
      animation.style.width = size * (value.center ? 1 : 2) + 'px';
      animation.style.height = animation.style.width;
  
      el.appendChild(container);
      var computed = window.getComputedStyle(el);
      if (computed.position !== 'absolute' && computed.position !== 'fixed') el.style.position = 'relative';
  
      var offset = el.getBoundingClientRect();
      var x = value.center ? '50%' : e.clientX - offset.left + 'px';
      var y = value.center ? '50%' : e.clientY - offset.top + 'px';
  
      animation.classList.add('ripple__animation--enter');
      animation.classList.add('ripple__animation--visible');
      style(animation, 'translate(-50%, -50%) translate(' + x + ', ' + y + ') scale3d(0.01,0.01,0.01)');
      animation.dataset.activated = Date.now();
  
      setTimeout(function () {
        animation.classList.remove('ripple__animation--enter');
        style(animation, 'translate(-50%, -50%) translate(' + x + ', ' + y + ')  scale3d(0.99,0.99,0.99)');
      }, 0);
    },
  
    hide: function hide(el) {
      var ripples = el.getElementsByClassName('ripple__animation');
  
      if (ripples.length === 0) return;
      var animation = ripples[ripples.length - 1];
      var diff = Date.now() - Number(animation.dataset.activated);
      var delay = 400 - diff;
  
      delay = delay < 0 ? 0 : delay;
  
      setTimeout(function () {
        animation.classList.remove('ripple__animation--visible');
  
        setTimeout(function () {
          // Need to figure out a new way to do this
          try {
            if (ripples.length < 1) el.style.position = null;
            animation.parentNode && el.removeChild(animation.parentNode);
          } catch (e) {}
        }, 300);
      }, delay);
    }
  };
  
  function directive(el, binding, v) {
    if (binding.value === false) return;
  
    if ('ontouchstart' in window) {
      el.addEventListener('touchend', function () {
        return ripple.hide(el);
      }, false);
      el.addEventListener('touchcancel', function () {
        return ripple.hide(el);
      }, false);
    }
  
    el.addEventListener('mousedown', function (e) {
      return ripple.show(e, el, binding);
    }, false);
    el.addEventListener('mouseup', function () {
      return ripple.hide(el);
    }, false);
    el.addEventListener('mouseleave', function () {
      return ripple.hide(el);
    }, false);
  }
  
  function unbind(el, binding) {
    el.removeEventListener('touchstart', function (e) {
      return ripple.show(e, el, binding);
    }, false);
    el.removeEventListener('mousedown', function (e) {
      return ripple.show(e, el, binding);
    }, false);
    el.removeEventListener('touchend', function () {
      return ripple.hide(el);
    }, false);
    el.removeEventListener('touchcancel', function () {
      return ripple.hide(el);
    }, false);
    el.removeEventListener('mouseup', function () {
      return ripple.hide(el);
    }, false);
    el.removeEventListener('mouseleave', function () {
      return ripple.hide(el);
    }, false);
  }
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    bind: directive,
    unbind: unbind
  });
  
  /***/ }),
  /* 21 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    functional: true,
  
    name: 'list-tile-action',
  
    render: function render(h, _ref) {
      var data = _ref.data,
          children = _ref.children;
  
      data.staticClass = data.staticClass ? 'list__tile__action ' + (data.staticClass || '') : 'list__tile__action';
      if ((children || []).length > 1) data.staticClass += ' list__tile__action--stack';
  
      return h('div', data, children);
    }
  });
  
  /***/ }),
  /* 22 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_activator__ = __webpack_require__(83);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_detachable__ = __webpack_require__(15);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__mixins_generators__ = __webpack_require__(84);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mixins_position__ = __webpack_require__(85);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__mixins_utils__ = __webpack_require__(86);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__mixins_toggleable__ = __webpack_require__(2);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__mixins_keyable__ = __webpack_require__(87);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__directives__ = __webpack_require__(4);
  
  
  
  
  
  
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-menu',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_activator__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__mixins_detachable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_2__mixins_generators__["a" /* default */], __WEBPACK_IMPORTED_MODULE_6__mixins_keyable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_3__mixins_position__["a" /* default */], __WEBPACK_IMPORTED_MODULE_4__mixins_utils__["a" /* default */], __WEBPACK_IMPORTED_MODULE_5__mixins_toggleable__["a" /* default */]],
  
    directives: {
      ClickOutside: __WEBPACK_IMPORTED_MODULE_7__directives__["ClickOutside"]
    },
  
    data: function data() {
      return {
        autoIndex: null,
        dimensions: {
          activator: {
            top: 0, left: 0,
            bottom: 0, right: 0,
            width: 0, height: 0,
            offsetTop: 0, scrollHeight: 0
          },
          content: {
            top: 0, left: 0,
            bottom: 0, right: 0,
            width: 0, height: 0,
            offsetTop: 0, scrollHeight: 0
          },
          list: null,
          selected: null
        },
        direction: { vert: 'bottom', horiz: 'right' },
        isContentActive: false,
        isBooted: false,
        maxHeightAutoDefault: '200px',
        resizeTimeout: {},
        startIndex: 3,
        stopIndex: 0,
        tileLength: 0,
        window: {},
        absoluteX: 0,
        absoluteY: 0,
        hasJustFocused: false,
        focusedTimeout: {}
      };
    },
  
  
    props: {
      top: Boolean,
      left: Boolean,
      bottom: Boolean,
      right: Boolean,
      fullWidth: Boolean,
      auto: Boolean,
      offsetX: Boolean,
      offsetY: Boolean,
      disabled: Boolean,
      maxHeight: {
        default: 'auto'
      },
      nudgeTop: {
        type: Number,
        default: 0
      },
      nudgeBottom: {
        type: Number,
        default: 0
      },
      nudgeLeft: {
        type: Number,
        default: 0
      },
      nudgeRight: {
        type: Number,
        default: 0
      },
      nudgeWidth: {
        type: Number,
        default: 0
      },
      openOnClick: {
        type: Boolean,
        default: true
      },
      openOnHover: {
        type: Boolean,
        default: false
      },
      lazy: Boolean,
      closeOnClick: {
        type: Boolean,
        default: true
      },
      closeOnContentClick: {
        type: Boolean,
        default: true
      },
      activator: {
        default: null
      },
      origin: {
        type: String,
        default: 'top left'
      },
      transition: {
        type: String,
        default: 'menu-transition'
      },
      positionX: {
        type: Number,
        default: null
      },
      positionY: {
        type: Number,
        default: null
      },
      positionAbsolutely: {
        type: Boolean,
        default: false
      },
      maxWidth: [Number, String],
      minWidth: [Number, String]
    },
  
    computed: {
      calculatedMinWidth: function calculatedMinWidth() {
        var minWidth = parseInt(this.minWidth) || this.dimensions.activator.width + this.nudgeWidth + (this.auto ? 16 : 0);
  
        if (!this.maxWidth) return minWidth;
  
        var maxWidth = parseInt(this.maxWidth);
  
        return maxWidth < minWidth ? maxWidth : minWidth;
      },
      styles: function styles() {
        return {
          maxHeight: this.auto ? '200px' : isNaN(this.maxHeight) ? this.maxHeight : this.maxHeight + 'px',
          minWidth: this.calculatedMinWidth + 'px',
          maxWidth: parseInt(this.maxWidth) + 'px',
          top: this.calcTop() + 'px',
          left: this.calcLeft() + 'px'
        };
      },
      hasActivator: function hasActivator() {
        return !!this.$slots.activator || this.activator;
      }
    },
  
    watch: {
      activator: function activator(newActivator, oldActivator) {
        this.removeActivatorEvents(oldActivator);
        this.addActivatorEvents(newActivator);
      },
      disabled: function disabled(val) {
        val && this.deactivate();
      },
      hasJustFocused: function hasJustFocused(val) {
        var _this = this;
  
        if (!val) return;
  
        clearTimeout(this.focusedTimeout);
        this.focusedTimeout = setTimeout(function () {
          return _this.hasJustFocused = false;
        }, 550);
      },
      isActive: function isActive(val) {
        if (this.disabled) return;
  
        val && this.activate() || this.deactivate();
      },
      windowResizeHandler: function windowResizeHandler() {
        this.isBooted = false;
      }
    },
  
    mounted: function mounted() {
      window.addEventListener('resize', this.onResize, { passive: true });
    },
    beforeDestroy: function beforeDestroy() {
      window.removeEventListener('resize', this.onResize, { passive: true });
      window.removeEventListener('resize', this.windowResizeHandler);
    },
  
  
    methods: {
      activate: function activate() {
        if (typeof window === 'undefined') return;
        this.isBooted = true;
        this.getTiles();
        this.updateDimensions();
        requestAnimationFrame(this.startTransition);
        this.$emit('activate');
      },
      deactivate: function deactivate() {
        this.isContentActive = false;
        this.$emit('deactivate');
      },
      onResize: function onResize() {
        clearTimeout(this.resizeTimeout);
        if (!this.isActive) return;
        this.resizeTimeout = setTimeout(this.updateDimensions, 200);
      },
      startTransition: function startTransition() {
        var _this2 = this;
  
        requestAnimationFrame(function () {
          return _this2.isContentActive = true;
        });
        requestAnimationFrame(this.calculateScroll);
      }
    },
  
    render: function render(h) {
      var _this3 = this;
  
      var data = {
        'class': 'menu',
        style: {
          display: this.fullWidth ? 'block' : 'inline-block'
        },
        directives: [{
          name: 'click-outside',
          value: function value() {
            return _this3.closeOnClick;
          }
        }],
        on: {
          keydown: function keydown(e) {
            if (e.keyCode === 27) _this3.isActive = false;else _this3.changeListIndex(e);
          }
        }
      };
  
      return h('div', data, [this.genActivator(), this.genTransition()]);
    }
  });
  
  /***/ }),
  /* 23 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_transitions__ = __webpack_require__(6);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-progress-linear',
  
    components: {
      VFadeTransition: __WEBPACK_IMPORTED_MODULE_0__components_transitions__["b" /* VFadeTransition */],
      VSlideXTransition: __WEBPACK_IMPORTED_MODULE_0__components_transitions__["c" /* VSlideXTransition */]
    },
  
    props: {
      active: {
        type: Boolean,
        default: true
      },
      buffer: Boolean,
      bufferValue: Number,
      error: Boolean,
      height: {
        type: [Number, String],
        default: 7
      },
      indeterminate: Boolean,
      info: Boolean,
      secondary: Boolean,
      success: Boolean,
      query: Boolean,
      warning: Boolean,
      value: {
        type: [Number, String],
        default: 0
      },
      colorFront: {
        type: String,
        default: null
      },
      colorBack: {
        type: String,
        default: null
      }
    },
  
    computed: {
      classes: function classes() {
        return {
          'progress-linear--query': this.query,
          'progress-linear--secondary': this.secondary,
          'progress-linear--success': this.success,
          'progress-linear--info': this.info,
          'progress-linear--warning': this.warning,
          'progress-linear--error': this.error
        };
      },
      styles: function styles() {
        var styles = {};
  
        if (!this.active) {
          styles.height = 0;
        }
  
        if (this.buffer) {
          styles.width = this.bufferValue + '%';
        }
  
        return styles;
      },
      bufferStyles: function bufferStyles() {
        var styles = {};
  
        if (!this.active) {
          styles.height = 0;
        }
  
        return styles;
      }
    },
  
    methods: {
      genDeterminate: function genDeterminate(h) {
        return h('div', {
          ref: 'front',
          class: ['progress-linear__bar__determinate', this.colorFront],
          style: { width: this.value + '%' }
        });
      },
      genBar: function genBar(h, name) {
        return h('div', {
          class: ['progress-linear__bar__indeterminate', name, this.colorFront]
        });
      },
      genIndeterminate: function genIndeterminate(h) {
        return h('div', {
          ref: 'front',
          class: {
            'progress-linear__bar__indeterminate': true,
            'progress-linear__bar__indeterminate--active': this.active
          }
        }, [this.genBar(h, 'long'), this.genBar(h, 'short')]);
      }
    },
  
    render: function render(h) {
      var fade = h('v-fade-transition', [this.indeterminate && this.genIndeterminate(h)]);
      var slide = h('v-slide-x-transition', [!this.indeterminate && this.genDeterminate(h)]);
  
      var bar = h('div', { class: ['progress-linear__bar', this.colorBack], style: this.styles }, [fade, slide]);
  
      return h('div', {
        class: ['progress-linear', this.classes],
        style: { height: this.height + 'px' },
        on: this.$listeners
      }, [bar]);
    }
  });
  
  /***/ }),
  /* 24 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_autocomplete__ = __webpack_require__(102);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_filterable__ = __webpack_require__(25);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__mixins_generators__ = __webpack_require__(103);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mixins_input__ = __webpack_require__(7);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_cards_VCard__ = __webpack_require__(13);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_selection_controls_VCheckbox__ = __webpack_require__(26);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_icons_VIcon__ = __webpack_require__(3);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_lists_VList__ = __webpack_require__(17);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_lists_VListTile__ = __webpack_require__(18);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__components_lists_VListTileAction__ = __webpack_require__(21);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__components_lists__ = __webpack_require__(11);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__components_menus_VMenu__ = __webpack_require__(22);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__directives_click_outside__ = __webpack_require__(19);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__util_helpers__ = __webpack_require__(0);
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-select',
  
    components: {
      VCard: __WEBPACK_IMPORTED_MODULE_4__components_cards_VCard__["a" /* default */],
      VCheckbox: __WEBPACK_IMPORTED_MODULE_5__components_selection_controls_VCheckbox__["a" /* default */],
      VIcon: __WEBPACK_IMPORTED_MODULE_6__components_icons_VIcon__["a" /* default */],
      VList: __WEBPACK_IMPORTED_MODULE_7__components_lists_VList__["a" /* default */],
      VListTile: __WEBPACK_IMPORTED_MODULE_8__components_lists_VListTile__["a" /* default */],
      VListTileAction: __WEBPACK_IMPORTED_MODULE_9__components_lists_VListTileAction__["a" /* default */],
      VListTileContent: __WEBPACK_IMPORTED_MODULE_10__components_lists__["a" /* VListTileContent */],
      VListTileTitle: __WEBPACK_IMPORTED_MODULE_10__components_lists__["b" /* VListTileTitle */],
      VMenu: __WEBPACK_IMPORTED_MODULE_11__components_menus_VMenu__["a" /* default */]
    },
  
    directives: {
      clickOutside: __WEBPACK_IMPORTED_MODULE_12__directives_click_outside__["a" /* default */]
    },
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_autocomplete__["a" /* default */], __WEBPACK_IMPORTED_MODULE_3__mixins_input__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__mixins_filterable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_2__mixins_generators__["a" /* default */]],
  
    data: function data() {
      return {
        content: {},
        hasFocused: false,
        inputValue: this.multiple && !this.value ? [] : this.value,
        isBooted: false,
        lastItem: 20,
        isActive: false,
        searchInputValue: this.searchInput
      };
    },
  
  
    props: {
      appendIcon: {
        type: String,
        default: 'arrow_drop_down'
      },
      auto: Boolean,
      autocomplete: Boolean,
      bottom: Boolean,
      chips: Boolean,
      close: Boolean,
      debounce: {
        type: Number,
        default: 200
      },
      items: {
        type: Array,
        default: function _default() {
          return [];
        }
      },
      filter: Function,
      itemText: {
        type: String,
        default: 'text'
      },
      itemValue: {
        type: String,
        default: 'value'
      },
      itemDisabled: {
        type: String,
        default: 'disabled'
      },
      maxHeight: {
        type: [Number, String],
        default: 300
      },
      minWidth: {
        type: [Boolean, Number, String],
        default: false
      },
      multiple: Boolean,
      multiLine: Boolean,
      offset: Boolean,
      searchInput: null,
      singleLine: Boolean,
      top: Boolean,
      returnObject: Boolean,
      overflow: Boolean,
      segmented: Boolean,
      editable: Boolean
    },
  
    computed: {
      classes: function classes() {
        return {
          'input-group--text-field input-group--select': true,
          'input-group--auto': this.auto,
          'input-group--overflow': this.overflow,
          'input-group--segmented': this.segmented,
          'input-group--editable': this.editable,
          'input-group--autocomplete': this.autocomplete,
          'input-group--single-line': this.singleLine || this.isDropdown,
          'input-group--multi-line': this.multiLine,
          'input-group--chips': this.chips,
          'input-group--multiple': this.multiple
        };
      },
      computedContentClass: function computedContentClass() {
        var children = [this.auto ? 'menu__content--auto' : '', this.isDropdown ? 'menu__content--dropdown' : ''];
  
        return children.join(' ');
      },
      filteredItems: function filteredItems() {
        var items = this.autocomplete && this.searchValue ? this.filterSearch() : this.items;
  
        return !this.auto ? items.slice(0, this.lastItem) : items;
      },
      hasError: function hasError() {
        return this.validations.length || this.error || this.hasFocused && !this.focused && !this.isDirty && this.required;
      },
      isDirty: function isDirty() {
        return this.selectedItems.length;
      },
      isDropdown: function isDropdown() {
        return this.segmented || this.overflow || this.editable;
      },
  
      searchValue: {
        get: function get() {
          return this.searchInput || this.searchInputValue;
        },
        set: function set(val) {
          this.searchInputValue = val;
          this.$emit('update:searchInput', val);
        }
      },
      selectedItems: function selectedItems() {
        var _this = this;
  
        if (this.inputValue === null || typeof this.inputValue === 'undefined') return [];
  
        return this.items.filter(function (i) {
          if (!_this.multiple) {
            return _this.getValue(i) === _this.getValue(_this.inputValue);
          } else {
            // Always return Boolean
            return _this.inputValue.find(function (j) {
              return _this.getValue(j) === _this.getValue(i);
            }) !== undefined;
          }
        });
      }
    },
  
    watch: {
      inputValue: function inputValue(val) {
        this.$emit('input', val);
      },
      value: function value(val) {
        this.inputValue = val;
        this.validate();
        if (this.autocomplete || this.editable) {
          this.$nextTick(this.$refs.menu.updateDimensions);
        }
      },
      isActive: function isActive(val) {
        this.isBooted = true;
        this.lastItem += !val ? 20 : 0;
  
        if (!val) this.blur();else this.focus();
      },
      isBooted: function isBooted() {
        var _this2 = this;
  
        this.$nextTick(function () {
          if (_this2.content) {
            _this2.content.addEventListener('scroll', _this2.onScroll, false);
          }
        });
      },
      searchValue: function searchValue() {
        this.$refs.menu.listIndex = -1;
      }
    },
  
    mounted: function mounted() {
      var _this3 = this;
  
      this.$vuetify.load(function () {
        if (_this3._isDestroyed) return;
  
        _this3.content = _this3.$refs.menu.$refs.content;
      });
    },
    beforeDestroy: function beforeDestroy() {
      if (this.isBooted) {
        if (this.content) {
          this.content.removeEventListener('scroll', this.onScroll, false);
        }
      }
    },
  
  
    methods: {
      blur: function blur() {
        var _this4 = this;
  
        this.$nextTick(function () {
          _this4.focused = false;
          _this4.hasFocused = true;
          _this4.searchValue = null;
          _this4.$el.blur();
        });
      },
      focus: function focus() {
        var _this5 = this;
  
        this.focused = true;
        this.$refs.input && (this.autocomplete || this.editable) && this.$refs.input.focus();
  
        if (this.editable && this.inputValue !== null && typeof this.inputValue !== 'undefined') {
          this.$nextTick(function () {
            _this5.$refs.input.value = _this5.getValue(_this5.inputValue);
          });
        }
      },
      genLabel: function genLabel() {
        if (this.searchValue && !this.focused && this.isDirty) return null;
  
        var data = {};
  
        if (this.id) data.attrs = { for: this.id };
  
        return this.$createElement('label', data, this.label);
      },
      getPropertyFromItem: function getPropertyFromItem(item, field) {
        if (item !== Object(item)) return item;
  
        var value = Object(__WEBPACK_IMPORTED_MODULE_13__util_helpers__["g" /* getObjectValueByPath */])(item, field);
  
        return typeof value === 'undefined' ? item : value;
      },
      getText: function getText(item) {
        return this.getPropertyFromItem(item, this.itemText);
      },
      getValue: function getValue(item) {
        return this.getPropertyFromItem(item, this.itemValue);
      },
      onScroll: function onScroll() {
        var _this6 = this;
  
        if (!this.isActive) {
          requestAnimationFrame(function () {
            return _this6.content.scrollTop = 0;
          });
        } else {
          var showMoreItems = this.content.scrollHeight - (this.content.scrollTop + this.content.clientHeight) < 200;
  
          if (showMoreItems) {
            this.lastItem += 20;
          }
        }
      },
      selectItem: function selectItem(item) {
        var _this7 = this;
  
        if (!this.multiple) {
          this.inputValue = this.returnObject ? item : this.getValue(item);
        } else {
          var inputValue = this.inputValue.slice();
          var i = this.inputValue.findIndex(function (i) {
            return _this7.getValue(i) === _this7.getValue(item);
          });
  
          i !== -1 && inputValue.splice(i, 1) || inputValue.push(item);
          this.inputValue = inputValue.map(function (i) {
            return _this7.returnObject ? i : _this7.getValue(i);
          });
        }
  
        if (this.autocomplete || this.editable) {
          this.$nextTick(function () {
            _this7.searchValue = null;
            _this7.$refs.input && _this7.$refs.input.focus();
          });
        }
  
        this.$emit('change', this.inputValue);
      }
    },
  
    render: function render(h) {
      var _this8 = this;
  
      return this.genInputGroup([this.genSelectionsAndSearch(), this.genMenu()], {
        ref: 'activator',
        directives: [{
          name: 'click-outside',
          value: function value() {
            return _this8.isActive = false;
          }
        }],
        on: {
          keydown: this.onKeyDown // Located in mixins/autocomplete.js
        }
      });
    }
  });
  
  /***/ }),
  /* 25 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    props: {
      noDataText: {
        type: String,
        default: 'No data available'
      }
    }
  });
  
  /***/ }),
  /* 26 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_selectable__ = __webpack_require__(27);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__directives_ripple__ = __webpack_require__(20);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_transitions__ = __webpack_require__(6);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_icons_VIcon__ = __webpack_require__(3);
  
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-checkbox',
  
    components: {
      VFadeTransition: __WEBPACK_IMPORTED_MODULE_2__components_transitions__["b" /* VFadeTransition */],
      VIcon: __WEBPACK_IMPORTED_MODULE_3__components_icons_VIcon__["a" /* default */]
    },
  
    directives: {
      Ripple: __WEBPACK_IMPORTED_MODULE_1__directives_ripple__["a" /* default */]
    },
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_selectable__["a" /* default */]],
  
    data: function data() {
      return {
        inputIndeterminate: this.indeterminate
      };
    },
  
  
    props: {
      indeterminate: Boolean
    },
  
    computed: {
      classes: function classes() {
        return this.addColorClassChecks({
          'checkbox': true,
          'input-group--selection-controls': true,
          'input-group--active': this.isActive
        });
      },
      icon: function icon() {
        if (this.inputIndeterminate) {
          return 'indeterminate_check_box';
        } else if (this.isActive) {
          return 'check_box';
        } else {
          return 'check_box_outline_blank';
        }
      }
    },
  
    render: function render(h) {
      var transition = h('v-fade-transition', [h('v-icon', {
        'class': {
          'icon--checkbox': this.icon === 'check_box'
        },
        key: this.icon
      }, this.icon)]);
  
      var ripple = h('div', {
        'class': 'input-group--selection-controls__ripple',
        on: Object.assign({}, {
          click: this.toggle
        }, this.$listeners),
        directives: [{
          name: 'ripple',
          value: { center: true }
        }]
      });
  
      var data = {
        attrs: {
          role: 'checkbox',
          'aria-checked': this.inputIndeterminate && 'mixed' || this.isActive && 'true' || 'false',
          'aria-label': this.label
        }
      };
  
      return this.genInputGroup([transition, ripple], data);
    }
  });
  
  /***/ }),
  /* 27 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__colorable__ = __webpack_require__(28);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__input__ = __webpack_require__(7);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    mixins: [__WEBPACK_IMPORTED_MODULE_1__input__["a" /* default */], __WEBPACK_IMPORTED_MODULE_0__colorable__["a" /* default */]],
  
    model: {
      prop: 'inputValue',
      event: 'change'
    },
  
    props: {
      inputValue: null,
      falseValue: null,
      trueValue: null
    },
  
    computed: {
      isActive: function isActive() {
        if (Array.isArray(this.inputValue)) {
          return this.inputValue.indexOf(this.value) !== -1;
        }
  
        if (!this.trueValue || !this.falseValue) {
          return this.value ? this.value === this.inputValue : Boolean(this.inputValue);
        }
  
        return this.inputValue === this.trueValue;
      }
    },
  
    watch: {
      indeterminate: function indeterminate(val) {
        this.inputIndeterminate = val;
      }
    },
  
    methods: {
      genLabel: function genLabel() {
        return this.$createElement('label', {
          on: { click: this.toggle },
          attrs: {
            for: this.$attrs.id
          }
        }, this.$slots.label || this.label);
      },
      toggle: function toggle() {
        if (this.disabled) {
          return;
        }
  
        var input = this.inputValue;
        if (Array.isArray(input)) {
          input = input.slice();
          var i = input.indexOf(this.value);
  
          if (i === -1) {
            input.push(this.value);
          } else {
            input.splice(i, 1);
          }
        } else if (this.trueValue || this.falseValue) {
          input = input === this.trueValue ? this.falseValue : this.trueValue;
        } else if (this.value) {
          input = this.value === this.inputValue ? null : this.value;
        } else {
          input = !input;
        }
  
        this.$emit('change', input);
      }
    }
  });
  
  /***/ }),
  /* 28 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    props: {
      color: String
    },
    methods: {
      addColorClassChecks: function addColorClassChecks(classes) {
        var parts = this.color ? this.color.trim().split(' ') : [''];
        var color = parts[0] + '--text';
        if (parts.length > 1) color += ' text--' + parts[1];
        classes[color] = !!this.color;
        return classes;
      }
    }
  });
  
  /***/ }),
  /* 29 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__package_json__ = __webpack_require__(31);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__package_json___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__package_json__);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components__ = __webpack_require__(32);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__directives__ = __webpack_require__(4);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_load__ = __webpack_require__(131);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_semver__ = __webpack_require__(132);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_semver___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_semver__);
  __webpack_require__(30);
  
  
  
  
  
  
  
  function plugin(Vue) {
    Object.keys(__WEBPACK_IMPORTED_MODULE_1__components__["a" /* default */]).forEach(function (key) {
      Vue.component(key, __WEBPACK_IMPORTED_MODULE_1__components__["a" /* default */][key]);
    });
  
    Object.keys(__WEBPACK_IMPORTED_MODULE_2__directives__).forEach(function (key) {
      Vue.directive(key, __WEBPACK_IMPORTED_MODULE_2__directives__[key]);
    });
  
    Vue.prototype.$vuetify = {
      load: __WEBPACK_IMPORTED_MODULE_3__util_load__["a" /* default */]
    };
  }
  
  function checkVueVersion() {
    var vueDep = __WEBPACK_IMPORTED_MODULE_0__package_json__["devDependencies"].vue;
    if (!__WEBPACK_IMPORTED_MODULE_4_semver___default.a.satisfies(window.Vue.version, vueDep)) {
      console.warn('Vuetify requires Vue version ' + vueDep);
    }
  }
  
  if (typeof window !== 'undefined' && window.Vue) {
    if (window.Vue.version) {
      checkVueVersion();
    }
    window.Vue.use(plugin);
  }
  
  /* harmony default export */ __webpack_exports__["default"] = (plugin);
  
  /***/ }),
  /* 30 */
  /***/ (function(module, exports) {
  
  // removed by extract-text-webpack-plugin
  
  /***/ }),
  /* 31 */
  /***/ (function(module, exports) {
  
  module.exports = {
  	"name": "vuetify",
  	"version": "0.14.10",
  	"author": {
  		"name": "John Leider",
  		"email": "john.j.leider@gmail.com"
  	},
  	"license": "MIT",
  	"homepage": "http://vuetifyjs.com",
  	"main": "dist/vuetify.js",
  	"types": "index.d.ts",
  	"scripts": {
  		"watch": "cross-env TARGET=dev webpack --config build/config.js --progress --hide-modules --watch",
  		"dev": "cross-env NODE_ENV=development webpack-dev-server --config build/webpack.dev.config.js --open --hot",
  		"build": "rimraf dist && cross-env NODE_ENV=production node build/build.js --progress --hide-modules",
  		"debug-build": "node --inspect --debug-brk build/build.js",
  		"test": "cross-env NODE_ENV=test jest --no-cache --verbose",
  		"test-coverage": "cross-env NODE_ENV=test jest --no-cache --coverage --verbose",
  		"lint": "eslint --ext .js,.vue src"
  	},
  	"description": "Vue.js 2 Semantic Component Framework",
  	"devDependencies": {
  		"autoprefixer": "^6.6.0",
  		"avoriaz": "^3.2.0",
  		"babel-cli": "^6.24.1",
  		"babel-core": "^6.24.1",
  		"babel-eslint": "^7.1.1",
  		"babel-jest": "^20.0.3",
  		"babel-loader": "^7.1.1",
  		"babel-plugin-add-filehash": "^6.9.4",
  		"babel-plugin-module-resolver": "^2.7.1",
  		"babel-plugin-transform-async-to-generator": "^6.24.1",
  		"babel-plugin-transform-runtime": "^6.23.0",
  		"babel-preset-env": "^1.5.1",
  		"babel-preset-es2015": "^6.24.1",
  		"babel-preset-stage-2": "^6.24.1",
  		"chalk": "^1.1.3",
  		"chromedriver": "^2.21.2",
  		"cross-env": "^3.1.3",
  		"cross-spawn": "^4.0.2",
  		"css-loader": "^0.23.1",
  		"css-mqpacker": "^6.0.1",
  		"cssnano": "^3.10.0",
  		"eslint": "^3.7.1",
  		"eslint-config-standard": "^6.1.0",
  		"eslint-config-vue": "^2.0.2",
  		"eslint-friendly-formatter": "^2.0.5",
  		"eslint-loader": "^1.6.1",
  		"eslint-plugin-html": "^1.3.0",
  		"eslint-plugin-promise": "^3.4.0",
  		"eslint-plugin-pug": "^1.0.0",
  		"eslint-plugin-standard": "^3.0.1",
  		"eslint-plugin-vue": "^2.1.0",
  		"eventsource-polyfill": "^0.9.6",
  		"extract-text-webpack-plugin": "^3.0.0",
  		"friendly-errors-webpack-plugin": "^1.6.1",
  		"function-bind": "^1.0.2",
  		"jest": "^20.0.4",
  		"jest-cli": "^20.0.4",
  		"jest-css-modules": "^1.1.0",
  		"jest-serializer-html": "^4.0.0",
  		"jest-vue-preprocessor": "^0.2.0",
  		"lolex": "^1.4.0",
  		"nightwatch": "^0.9.8",
  		"opn": "^4.0.2",
  		"optimize-css-assets-webpack-plugin": "^2.0.0",
  		"optimize-js-plugin": "^0.0.4",
  		"ora": "^0.3.0",
  		"phantomjs-prebuilt": "^2.1.3",
  		"postcss-loader": "^1.2.1",
  		"precss": "^1.4.0",
  		"pug": "^2.0.0-beta3",
  		"pug-loader": "^2.3.0",
  		"ress": "^1.1.1",
  		"rimraf": "^2.5.4",
  		"selenium-server": "2.53.1",
  		"semver": "^5.3.0",
  		"serialize-javascript": "^1.3.0",
  		"shelljs": "^0.7.4",
  		"style-loader": "^0.13.1",
  		"stylus": "^0.54.5",
  		"stylus-loader": "^2.1.1",
  		"uglifyjs-webpack-plugin": "^0.4.6",
  		"vue": "^2.4.1",
  		"vue-loader": "^10.1.0",
  		"vue-router": "^2.7.0",
  		"vue-server-renderer": "^2.4.1",
  		"vue-template-compiler": "^2.4.1",
  		"webpack": "^3.2.0",
  		"webpack-bundle-size-analyzer": "^2.7.0",
  		"webpack-dev-server": "^2.6.1",
  		"webpack-merge": "^4.1.0"
  	},
  	"dependencies": {},
  	"engines": {
  		"node": ">= 4.0.0",
  		"npm": ">= 3.0.0"
  	},
  	"jest": {
  		"verbose": false,
  		"roots": [
  			"<rootDir>/src"
  		],
  		"moduleFileExtensions": [
  			"js",
  			"vue"
  		],
  		"moduleDirectories": [
  			"node_modules"
  		],
  		"moduleNameMapper": {
  			"src/(.*)": "<rootDir>/src/$1"
  		},
  		"transform": {
  			".*\\.(vue)$": "<rootDir>/node_modules/jest-vue-preprocessor",
  			"\\.(styl)$": "<rootDir>/node_modules/jest-css-modules",
  			".*\\.(vue|js)$": "<rootDir>/node_modules/babel-jest"
  		},
  		"transformIgnorePatterns": [
  			"node_modules/(?!vue-router)"
  		],
  		"snapshotSerializers": [
  			"jest-serializer-html"
  		]
  	}
  };
  
  /***/ }),
  /* 32 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__alerts__ = __webpack_require__(33);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app__ = __webpack_require__(36);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__avatars__ = __webpack_require__(38);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__bottom_nav__ = __webpack_require__(39);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__breadcrumbs__ = __webpack_require__(41);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__buttons__ = __webpack_require__(44);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__cards__ = __webpack_require__(47);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__carousel__ = __webpack_require__(50);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__chips__ = __webpack_require__(53);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pickers__ = __webpack_require__(55);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__dialogs__ = __webpack_require__(64);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__dividers__ = __webpack_require__(66);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__expansion_panel__ = __webpack_require__(68);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__footer__ = __webpack_require__(72);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__grid__ = __webpack_require__(74);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__icons__ = __webpack_require__(75);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__lists__ = __webpack_require__(11);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__menus__ = __webpack_require__(82);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__navigation_drawer__ = __webpack_require__(88);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__toolbar__ = __webpack_require__(90);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__pagination__ = __webpack_require__(94);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__parallax__ = __webpack_require__(96);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__progress__ = __webpack_require__(99);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__selects__ = __webpack_require__(101);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__selection_controls__ = __webpack_require__(104);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__sliders__ = __webpack_require__(107);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__subheaders__ = __webpack_require__(109);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__steppers__ = __webpack_require__(111);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__tables__ = __webpack_require__(115);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__tabs__ = __webpack_require__(122);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__text_fields__ = __webpack_require__(127);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__transitions__ = __webpack_require__(6);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__snackbars__ = __webpack_require__(129);
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = (Object.assign({}, __WEBPACK_IMPORTED_MODULE_0__alerts__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__app__["a" /* default */], __WEBPACK_IMPORTED_MODULE_2__avatars__["a" /* default */], __WEBPACK_IMPORTED_MODULE_3__bottom_nav__["a" /* default */], __WEBPACK_IMPORTED_MODULE_4__breadcrumbs__["a" /* default */], __WEBPACK_IMPORTED_MODULE_5__buttons__["a" /* default */], __WEBPACK_IMPORTED_MODULE_6__cards__["a" /* default */], __WEBPACK_IMPORTED_MODULE_7__carousel__["a" /* default */], __WEBPACK_IMPORTED_MODULE_8__chips__["a" /* default */], __WEBPACK_IMPORTED_MODULE_9__pickers__["a" /* default */], __WEBPACK_IMPORTED_MODULE_10__dialogs__["a" /* default */], __WEBPACK_IMPORTED_MODULE_11__dividers__["a" /* default */], __WEBPACK_IMPORTED_MODULE_12__expansion_panel__["a" /* default */], __WEBPACK_IMPORTED_MODULE_13__footer__["a" /* default */], __WEBPACK_IMPORTED_MODULE_14__grid__["a" /* default */], __WEBPACK_IMPORTED_MODULE_15__icons__["a" /* default */], __WEBPACK_IMPORTED_MODULE_16__lists__["c" /* default */], __WEBPACK_IMPORTED_MODULE_17__menus__["a" /* default */], __WEBPACK_IMPORTED_MODULE_18__navigation_drawer__["a" /* default */], __WEBPACK_IMPORTED_MODULE_19__toolbar__["a" /* default */], __WEBPACK_IMPORTED_MODULE_20__pagination__["a" /* default */], __WEBPACK_IMPORTED_MODULE_21__parallax__["a" /* default */], __WEBPACK_IMPORTED_MODULE_22__progress__["a" /* default */], __WEBPACK_IMPORTED_MODULE_23__selects__["a" /* default */], __WEBPACK_IMPORTED_MODULE_24__selection_controls__["a" /* default */], __WEBPACK_IMPORTED_MODULE_25__sliders__["a" /* default */], __WEBPACK_IMPORTED_MODULE_26__subheaders__["a" /* default */], __WEBPACK_IMPORTED_MODULE_27__steppers__["a" /* default */], __WEBPACK_IMPORTED_MODULE_28__tables__["a" /* default */], __WEBPACK_IMPORTED_MODULE_29__tabs__["a" /* default */], __WEBPACK_IMPORTED_MODULE_30__text_fields__["a" /* default */], __WEBPACK_IMPORTED_MODULE_31__transitions__["d" /* default */], __WEBPACK_IMPORTED_MODULE_32__snackbars__["a" /* default */]));
  
  /***/ }),
  /* 33 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VAlert__ = __webpack_require__(34);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VAlert: __WEBPACK_IMPORTED_MODULE_0__VAlert__["a" /* default */]
  });
  
  /***/ }),
  /* 34 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_contextualable__ = __webpack_require__(8);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_toggleable__ = __webpack_require__(2);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__mixins_transitionable__ = __webpack_require__(35);
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-alert',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_contextualable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__mixins_toggleable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_2__mixins_transitionable__["a" /* default */]],
  
    props: {
      dismissible: Boolean,
      hideIcon: Boolean,
      icon: String
    },
  
    computed: {
      classes: function classes() {
        return {
          'alert': true,
          'alert--dismissible': this.dismissible,
          'error': this.error,
          'info': this.info,
          'primary': this.primary,
          'secondary': this.secondary,
          'success': this.success,
          'warning': this.warning
        };
      },
      mdIcon: function mdIcon() {
        switch (true) {
          case !!this.icon:
            return this.icon;
          case this.error:
            return 'warning';
          case this.info:
            return 'info';
          case this.success:
            return 'check_circle';
          case this.warning:
            return 'priority_high';
        }
      }
    },
  
    render: function render(h) {
      var _this = this;
  
      var children = [h('div', this.$slots.default)];
  
      if (!this.hideIcon && this.mdIcon) {
        children.unshift(h('v-icon', {
          'class': 'alert__icon'
        }, this.mdIcon));
      }
  
      if (this.dismissible) {
        var close = h('a', {
          'class': 'alert__dismissible',
          domProps: { href: 'javascript:;' },
          on: { click: function click() {
              return _this.$emit('input', false);
            } }
        }, [h('v-icon', {
          props: { right: true }
        }, 'cancel')]);
  
        children.push(close);
      }
  
      var alert = h('div', {
        'class': this.classes,
        directives: [{
          name: 'show',
          value: this.isActive
        }],
        on: this.$listeners
      }, children);
  
      if (!this.transition) return alert;
  
      return h('transition', {
        props: {
          name: this.transition,
          origin: this.origin,
          mode: this.mode
        }
      }, [alert]);
    }
  });
  
  /***/ }),
  /* 35 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    props: {
      mode: String,
      origin: String,
      transition: String
    }
  });
  
  /***/ }),
  /* 36 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VApp__ = __webpack_require__(37);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VApp: __WEBPACK_IMPORTED_MODULE_0__VApp__["a" /* default */]
  });
  
  /***/ }),
  /* 37 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_themeable__ = __webpack_require__(1);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    functional: true,
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_themeable__["a" /* default */]],
  
    props: {
      fixedFooter: Boolean,
      footer: Boolean,
      id: {
        type: String,
        default: 'app'
      },
      toolbar: Boolean
    },
  
    render: function render(h, _ref) {
      var props = _ref.props,
          data = _ref.data,
          children = _ref.children;
  
      data.staticClass = ('application ' + (data.staticClass || '')).trim();
      data.staticClass += ' application--' + (props.dark ? 'dark' : 'light');
  
      props.footer && (data.staticClass += ' application--footer');
      props.fixedFooter && (data.staticClass += ' application--footer-fixed');
      props.toolbar && (data.staticClass += ' application--toolbar');
  
      data.attrs = { 'data-app': true };
      data.domProps = { id: props.id };
  
      return h('div', data, children);
    }
  });
  
  /***/ }),
  /* 38 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* unused harmony export VAvatar */
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_helpers__ = __webpack_require__(0);
  
  
  var VAvatar = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["d" /* createSimpleFunctional */])('avatar');
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VAvatar: VAvatar
  });
  
  /***/ }),
  /* 39 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VBottomNav__ = __webpack_require__(40);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VBottomNav: __WEBPACK_IMPORTED_MODULE_0__VBottomNav__["a" /* default */]
  });
  
  /***/ }),
  /* 40 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    functional: true,
  
    props: {
      absolute: Boolean,
      shift: Boolean,
      value: { required: false }
    },
  
    render: function render(h, _ref) {
      var data = _ref.data,
          props = _ref.props,
          children = _ref.children;
  
      data.staticClass = ('bottom-nav ' + (data.staticClass || '')).trim();
  
      if (props.absolute) data.staticClass += ' bottom-nav--absolute';
      if (props.shift) data.staticClass += ' bottom-nav--shift';
      if (props.value) data.staticClass += ' bottom-nav--active';
  
      return h('div', data, children);
    }
  });
  
  /***/ }),
  /* 41 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VBreadcrumbs__ = __webpack_require__(42);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VBreadcrumbsItem__ = __webpack_require__(43);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VBreadcrumbs: __WEBPACK_IMPORTED_MODULE_0__VBreadcrumbs__["a" /* default */],
    VBreadcrumbsItem: __WEBPACK_IMPORTED_MODULE_1__VBreadcrumbsItem__["a" /* default */]
  });
  
  /***/ }),
  /* 42 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-breadcrumbs',
  
    provide: function provide() {
      return {
        divider: this.divider
      };
    },
  
  
    props: {
      divider: {
        type: String,
        default: '/'
      },
      icons: Boolean
    },
  
    computed: {
      classes: function classes() {
        return {
          'breadcrumbs': true,
          'breadcrumbs--with-icons': this.icons
        };
      }
    },
  
    render: function render(h) {
      return h('ul', {
        'class': this.classes,
        props: { items: this.items }
      }, this.$slots.default);
    }
  });
  
  /***/ }),
  /* 43 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_route_link__ = __webpack_require__(9);
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-breadcrumbs-item',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_route_link__["a" /* default */]],
  
    inject: ['divider'],
  
    props: {
      activeClass: {
        type: String,
        default: 'breadcrumbs__item--active'
      }
    },
  
    computed: {
      classes: function classes() {
        var classes = _defineProperty({
          'breadcrumbs__item': true
        }, this.activeClass, !this.disabled);
  
        return classes;
      }
    },
  
    render: function render(h) {
      var _generateRouteLink = this.generateRouteLink(),
          tag = _generateRouteLink.tag,
          data = _generateRouteLink.data;
  
      return h('li', {
        attrs: { 'data-divider': this.divider }
      }, [h(tag, data, this.$slots.default)]);
    }
  });
  
  /***/ }),
  /* 44 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VBtn__ = __webpack_require__(5);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VBtnToggle__ = __webpack_require__(45);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__VSpeedDial__ = __webpack_require__(46);
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VBtn: __WEBPACK_IMPORTED_MODULE_0__VBtn__["a" /* default */],
    VBtnToggle: __WEBPACK_IMPORTED_MODULE_1__VBtnToggle__["a" /* default */],
    VSpeedDial: __WEBPACK_IMPORTED_MODULE_2__VSpeedDial__["a" /* default */]
  });
  
  /***/ }),
  /* 45 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_buttons_VBtn__ = __webpack_require__(5);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_icons_VIcon__ = __webpack_require__(3);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-btn-toggle',
  
    model: {
      prop: 'inputValue',
      event: 'change'
    },
  
    props: {
      inputValue: {
        required: false
      },
      items: {
        type: Array,
        default: function _default() {
          return [];
        }
      },
      mandatory: Boolean,
      multiple: Boolean
    },
  
    computed: {
      classes: function classes() {
        return {
          'btn-toggle': true,
          'btn-toggle--selected': this.inputValue && (!this.multiple || this.inputValue.length)
        };
      }
    },
  
    methods: {
      isSelected: function isSelected(item) {
        if (!this.multiple) {
          return this.inputValue === item.value;
        }
  
        return this.inputValue.includes(item.value);
      },
      updateValue: function updateValue(item) {
        if (!this.multiple) {
          if (this.mandatory && this.inputValue === item.value) return;
          return this.$emit('change', this.inputValue === item.value ? null : item.value);
        }
  
        var items = this.inputValue.slice();
  
        var i = items.indexOf(item.value);
        if (i > -1) {
          items.length >= 1 && !this.mandatory && items.splice(i, 1);
        } else {
          items.push(item.value);
        }
  
        this.$emit('change', items);
      }
    },
  
    render: function render(h) {
      var _this = this;
  
      var buttons = this.items.map(function (item, index) {
        var children = [];
  
        item.text && children.push(h('span', item.text));
        item.icon && children.push(h(__WEBPACK_IMPORTED_MODULE_1__components_icons_VIcon__["a" /* default */], item.icon));
  
        return h(__WEBPACK_IMPORTED_MODULE_0__components_buttons_VBtn__["a" /* default */], {
          key: index,
          props: {
            flat: true
          },
          on: {
            click: function click(e) {
              e.stopPropagation();
              _this.updateValue(item);
            }
          },
          attrs: {
            'data-selected': _this.isSelected(item),
            'data-index': index,
            'data-only-child': _this.isSelected(item) && (!_this.multiple || _this.inputValue.length === 1)
          }
        }, children);
      });
  
      return h('div', { class: this.classes }, buttons);
    }
  });
  
  /***/ }),
  /* 46 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_toggleable__ = __webpack_require__(2);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_positionable__ = __webpack_require__(12);
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-speed-dial',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_positionable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_0__mixins_toggleable__["a" /* default */]],
  
    props: {
      direction: {
        type: String,
        default: 'top',
        validator: function validator(val) {
          return ['top', 'right', 'bottom', 'left'].includes(val);
        }
      },
      hover: Boolean,
      transition: {
        type: String,
        default: 'scale-transition'
      }
    },
  
    computed: {
      classes: function classes() {
        return _defineProperty({
          'speed-dial': true,
          'speed-dial--top': this.top,
          'speed-dial--right': this.right,
          'speed-dial--bottom': this.bottom,
          'speed-dial--left': this.left,
          'speed-dial--absolute': this.absolute,
          'speed-dial--fixed': this.fixed
        }, 'speed-dial--direction-' + this.direction, true);
      }
    },
  
    render: function render(h) {
      var _this = this;
  
      var children = [];
      var data = {
        'class': this.classes,
        directives: [{
          name: 'click-outside'
        }],
        on: {
          click: function click() {
            return _this.isActive = !_this.isActive;
          }
        }
      };
  
      if (this.hover) {
        data.on.mouseenter = function () {
          return _this.isActive = true;
        };
        data.on.mouseleave = function () {
          return _this.isActive = false;
        };
      }
  
      if (this.isActive) {
        children = (this.$slots.default || []).map(function (b, i) {
          b.key = i;
  
          return b;
        });
      }
  
      var list = h('transition-group', {
        'class': 'speed-dial__list',
        props: {
          name: this.transition,
          tag: 'div'
        }
      }, children);
  
      return h('div', data, [this.$slots.activator, list]);
    }
  });
  
  /***/ }),
  /* 47 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_helpers__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VCard__ = __webpack_require__(13);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__VCardMedia__ = __webpack_require__(48);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__VCardTitle__ = __webpack_require__(49);
  
  
  
  
  
  var VCardActions = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["d" /* createSimpleFunctional */])('card__actions');
  var VCardText = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["d" /* createSimpleFunctional */])('card__text');
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VCard: __WEBPACK_IMPORTED_MODULE_1__VCard__["a" /* default */],
    VCardActions: VCardActions,
    VCardMedia: __WEBPACK_IMPORTED_MODULE_2__VCardMedia__["a" /* default */],
    VCardText: VCardText,
    VCardTitle: __WEBPACK_IMPORTED_MODULE_3__VCardTitle__["a" /* default */]
  });
  
  /***/ }),
  /* 48 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-card-media',
  
    props: {
      contain: Boolean,
      height: {
        type: [Number, String],
        default: 'auto'
      },
      src: {
        type: String
      }
    },
  
    render: function render(h) {
      var data = {
        'class': 'card__media',
        style: {
          height: !isNaN(this.height) ? this.height + 'px' : this.height
        },
        on: this.$listeners
      };
  
      var children = [];
  
      if (this.src) {
        children.push(h('div', {
          'class': 'card__media__background',
          style: {
            background: 'url(' + this.src + ') center center / ' + (this.contain ? 'contain' : 'cover') + ' no-repeat'
          }
        }));
      }
  
      children.push(h('div', {
        'class': 'card__media__content'
      }, this.$slots.default));
  
      return h('div', data, children);
    }
  });
  
  /***/ }),
  /* 49 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    functional: true,
  
    props: {
      primaryTitle: Boolean
    },
  
    render: function render(h, _ref) {
      var data = _ref.data,
          props = _ref.props,
          children = _ref.children;
  
      data.staticClass = ('card__title ' + (data.staticClass || '')).trim();
  
      if (props.primaryTitle) data.staticClass += ' card__title--primary';
  
      return h('div', data, children);
    }
  });
  
  /***/ }),
  /* 50 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VCarousel__ = __webpack_require__(51);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VCarouselItem__ = __webpack_require__(52);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VCarousel: __WEBPACK_IMPORTED_MODULE_0__VCarousel__["a" /* default */],
    VCarouselItem: __WEBPACK_IMPORTED_MODULE_1__VCarouselItem__["a" /* default */]
  });
  
  /***/ }),
  /* 51 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_bootable__ = __webpack_require__(10);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_buttons_VBtn__ = __webpack_require__(5);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_icons_VIcon__ = __webpack_require__(3);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mixins_themeable__ = __webpack_require__(1);
  
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-carousel',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_bootable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_3__mixins_themeable__["a" /* default */]],
  
    data: function data() {
      return {
        current: null,
        items: [],
        slideInterval: {},
        reverse: false
      };
    },
  
  
    props: {
      cycle: {
        type: Boolean,
        default: true
      },
      icon: {
        type: String,
        default: 'fiber_manual_record'
      },
      interval: {
        type: Number,
        default: 6000
      },
      leftControlIcon: {
        type: [Boolean, String],
        default: 'chevron_left'
      },
      rightControlIcon: {
        type: [Boolean, String],
        default: 'chevron_right'
      }
    },
  
    computed: {
      defaultState: function defaultState() {
        return {
          current: null,
          reverse: false
        };
      }
    },
  
    watch: {
      current: function current() {
        var _this = this;
  
        // Evaluate items when current changes to account for
        // dynamic changing of children
        this.items = this.$children.filter(function (i) {
          return i.$el.classList && i.$el.classList.contains('carousel__item');
        });
  
        this.items.forEach(function (i) {
          return i.open(_this.items[_this.current]._uid, _this.reverse);
        });
  
        !this.isBooted && this.cycle && this.restartInterval();
        this.isBooted = true;
      },
      cycle: function cycle(val) {
        val && this.restartInterval() || clearInterval(this.slideInterval);
      }
    },
  
    mounted: function mounted() {
      this.init();
    },
  
  
    methods: {
      genControls: function genControls() {
        return this.$createElement('div', {
          staticClass: 'carousel__controls'
        }, this.genItems());
      },
      genIcon: function genIcon(direction, icon, fn) {
        if (!icon) return null;
  
        return this.$createElement('div', {
          staticClass: 'carousel__' + direction
        }, [this.$createElement(__WEBPACK_IMPORTED_MODULE_1__components_buttons_VBtn__["a" /* default */], {
          props: {
            icon: true,
            dark: this.dark || !this.light,
            light: this.light
          },
          on: { click: fn }
        }, [this.$createElement(__WEBPACK_IMPORTED_MODULE_2__components_icons_VIcon__["a" /* default */], icon)])]);
      },
      genItems: function genItems() {
        var _this2 = this;
  
        return this.items.map(function (item, index) {
          return _this2.$createElement(__WEBPACK_IMPORTED_MODULE_1__components_buttons_VBtn__["a" /* default */], {
            class: {
              'carousel__controls__item': true,
              'carousel__controls__item--active': index === _this2.current
            },
            props: {
              icon: true,
              dark: _this2.dark || !_this2.light,
              light: _this2.light
            },
            key: index,
            on: { click: _this2.select.bind(_this2, index) }
          }, [_this2.$createElement(__WEBPACK_IMPORTED_MODULE_2__components_icons_VIcon__["a" /* default */], _this2.icon)]);
        });
      },
      restartInterval: function restartInterval() {
        clearInterval(this.slideInterval);
        this.$nextTick(this.startInterval);
      },
      init: function init() {
        this.current = 0;
      },
      next: function next() {
        this.reverse = false;
  
        if (this.current + 1 === this.items.length) {
          return this.current = 0;
        }
  
        this.current++;
      },
      prev: function prev() {
        this.reverse = true;
  
        if (this.current - 1 < 0) {
          return this.current = this.items.length - 1;
        }
  
        this.current--;
      },
      select: function select(index) {
        this.reverse = index < this.current;
        this.current = index;
      },
      startInterval: function startInterval() {
        this.slideInterval = setInterval(this.next, this.interval);
      }
    },
  
    render: function render(h) {
      return h('div', {
        staticClass: 'carousel',
        directives: [{
          name: 'touch',
          value: {
            left: this.next,
            right: this.prev
          }
        }]
      }, [this.genIcon('left', this.leftControlIcon, this.prev), this.genIcon('right', this.rightControlIcon, this.next), this.genControls(), this.$slots.default]);
    }
  });
  
  /***/ }),
  /* 52 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-carousel-item',
  
    data: function data() {
      return {
        active: false,
        reverse: false
      };
    },
  
  
    props: {
      src: {
        type: String,
        required: true
      },
  
      transition: {
        type: String,
        default: 'tab-transition'
      },
  
      reverseTransition: {
        type: String,
        default: 'tab-reverse-transition'
      }
    },
  
    computed: {
      computedTransition: function computedTransition() {
        return this.reverse ? this.reverseTransition : this.transition;
      },
      styles: function styles() {
        return {
          backgroundImage: 'url(' + this.src + ')'
        };
      }
    },
  
    methods: {
      open: function open(id, reverse) {
        this.active = this._uid === id;
        this.reverse = reverse;
      }
    },
  
    render: function render(h) {
      var item = h('div', {
        class: {
          'carousel__item': true,
          'reverse': this.reverse
        },
        style: this.styles,
        on: this.$listeners,
        directives: [{
          name: 'show',
          value: this.active
        }]
      }, [this.$slots.default]);
  
      return h('transition', { props: { name: this.computedTransition } }, [item]);
    }
  });
  
  /***/ }),
  /* 53 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VChip__ = __webpack_require__(54);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VChip: __WEBPACK_IMPORTED_MODULE_0__VChip__["a" /* default */]
  });
  
  /***/ }),
  /* 54 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_toggleable__ = __webpack_require__(2);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-chip',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_toggleable__["a" /* default */]],
  
    props: {
      close: Boolean,
      label: Boolean,
      outline: Boolean,
      small: Boolean,
      value: {
        type: Boolean,
        default: true
      }
    },
  
    computed: {
      classes: function classes() {
        return {
          'chip': true,
          'chip--label': this.label,
          'chip--outline': this.outline,
          'chip--small': this.small,
          'chip--removable': this.close
        };
      }
    },
  
    render: function render(h) {
      var _this = this;
  
      var children = [this.$slots.default];
      var data = {
        'class': this.classes,
        attrs: { tabindex: -1 },
        directives: [{
          name: 'show',
          value: this.isActive
        }],
        on: this.$listeners
      };
  
      if (this.close) {
        children.push(h('a', {
          'class': 'chip__close',
          domProps: { href: 'javascript:;' },
          on: {
            click: function click(e) {
              e.stopPropagation();
  
              _this.$emit('input', false);
            }
          }
        }, [h('v-icon', { props: { right: true } }, 'cancel')]));
      }
  
      return h('span', data, children);
    }
  });
  
  /***/ }),
  /* 55 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VDatePicker__ = __webpack_require__(56);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VTimePicker__ = __webpack_require__(61);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VDatePicker: __WEBPACK_IMPORTED_MODULE_0__VDatePicker__["a" /* default */],
    VTimePicker: __WEBPACK_IMPORTED_MODULE_1__VTimePicker__["a" /* default */]
  });
  
  /***/ }),
  /* 56 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_date_title__ = __webpack_require__(57);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_date_header__ = __webpack_require__(58);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__mixins_date_table__ = __webpack_require__(59);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mixins_date_years__ = __webpack_require__(60);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__mixins_picker__ = __webpack_require__(14);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_helpers__ = __webpack_require__(0);
  
  
  
  
  
  
  
  var defaultDateFormat = function defaultDateFormat(val) {
    return new Date(val).toISOString().substr(0, 10);
  };
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-date-picker',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_date_title__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__mixins_date_header__["a" /* default */], __WEBPACK_IMPORTED_MODULE_2__mixins_date_table__["a" /* default */], __WEBPACK_IMPORTED_MODULE_3__mixins_date_years__["a" /* default */], __WEBPACK_IMPORTED_MODULE_4__mixins_picker__["a" /* default */]],
  
    data: function data() {
      return {
        tableDate: new Date(),
        originalDate: this.value,
        currentDay: null,
        currentMonth: null,
        currentYear: null,
        isSelected: false,
        isReversing: false,
        narrowDays: []
      };
    },
  
  
    props: {
      locale: {
        type: String,
        default: 'en-us'
      },
      dateFormat: {
        type: Function,
        default: defaultDateFormat
      },
      titleDateFormat: {
        type: Object,
        default: function _default() {
          return { weekday: 'short', month: 'short', day: 'numeric' };
        }
      },
      headerDateFormat: {
        type: Object,
        default: function _default() {
          return { month: 'long', year: 'numeric' };
        }
      },
      formattedValue: {
        required: false
      },
      allowedDates: {
        type: [Array, Object, Function],
        default: function _default() {
          return null;
        }
      },
      firstDayOfWeek: {
        type: [String, Number],
        default: 0
      },
      yearIcon: String
    },
  
    computed: {
      firstAllowedDate: function firstAllowedDate() {
        var date = new Date();
        date.setHours(12, 0, 0, 0);
  
        if (this.allowedDates) {
          var millisecondOffset = 1 * 24 * 60 * 60 * 1000;
          var valid = new Date(date);
          for (var i = 0; i < 31; i++) {
            if (this.isAllowed(valid)) return valid;
  
            valid.setTime(valid.getTime() + millisecondOffset);
          }
        }
  
        return date;
      },
  
      inputDate: {
        get: function get() {
          if (!this.value) return this.firstAllowedDate;
          if (this.value instanceof Date) return this.value;
          if (!isNaN(this.value) || typeof this.value === 'string' && this.value.indexOf(':') !== -1) return new Date(this.value);
  
          return new Date(this.value + 'T12:00:00');
        },
        set: function set(val) {
          this.$emit('input', val ? defaultDateFormat(val) : this.originalDate);
          this.$emit('update:formattedValue', val ? this.dateFormat(val) : this.dateFormat(this.originalDate));
        }
      },
      day: function day() {
        return this.inputDate.getDate();
      },
      month: function month() {
        return this.inputDate.getMonth();
      },
      year: function year() {
        return this.inputDate.getFullYear();
      },
      tableMonth: function tableMonth() {
        return this.tableDate.getMonth();
      },
      tableYear: function tableYear() {
        return this.tableDate.getFullYear();
      },
      computedTransition: function computedTransition() {
        return this.isReversing ? 'v-tab-reverse-transition' : 'v-tab-transition';
      }
    },
  
    watch: {
      isSelected: function isSelected(val) {
        var _this = this;
  
        val && this.$nextTick(function () {
          _this.$refs.years.scrollTop = _this.$refs.years.scrollHeight / 2 - 125;
        });
      },
      tableDate: function tableDate(val, prev) {
        this.isReversing = val < prev;
      },
      value: function value(val) {
        if (val) this.tableDate = this.inputDate;
      }
    },
  
    methods: {
      save: function save() {
        if (this.originalDate) {
          this.originalDate = this.value;
        } else {
          this.originalDate = this.inputDate;
        }
  
        if (this.$parent && this.$parent.isActive) this.$parent.isActive = false;
      },
      cancel: function cancel() {
        this.inputDate = this.originalDate;
        if (this.$parent && this.$parent.isActive) this.$parent.isActive = false;
      },
      isAllowed: function isAllowed(date) {
        if (!this.allowedDates) return true;
  
        if (Array.isArray(this.allowedDates)) {
          return !!this.allowedDates.find(function (allowedDate) {
            var d = new Date(allowedDate);
            d.setHours(12, 0, 0, 0);
  
            return d - date === 0;
          });
        } else if (this.allowedDates instanceof Function) {
          return this.allowedDates(date);
        } else if (this.allowedDates instanceof Object) {
          var min = new Date(this.allowedDates.min);
          min.setHours(12, 0, 0, 0);
          var max = new Date(this.allowedDates.max);
          max.setHours(12, 0, 0, 0);
  
          return date >= min && date <= max;
        }
  
        return true;
      }
    },
  
    created: function created() {
      var _this2 = this;
  
      var date = new Date();
      date.setDate(date.getDate() - date.getDay() + parseInt(this.firstDayOfWeek));
  
      Object(__WEBPACK_IMPORTED_MODULE_5__util_helpers__["c" /* createRange */])(7).forEach(function () {
        var narrow = date.toLocaleString(_this2.locale, { weekday: 'narrow' });
        _this2.narrowDays.push(narrow);
  
        date.setDate(date.getDate() + 1);
      });
    },
    mounted: function mounted() {
      this.currentDay = this.tableDate.getDate();
      this.currentMonth = this.tableDate.getMonth();
      this.currentYear = this.tableDate.getFullYear();
      this.tableDate = this.inputDate;
    },
    render: function render(h) {
      var children = [];
  
      !this.noTitle && children.push(this.genTitle());
  
      if (!this.isSelected) {
        var bodyChildren = [];
  
        bodyChildren.push(this.genHeader());
        bodyChildren.push(this.genTable());
  
        children.push(h('div', {
          'class': 'picker__body'
        }, bodyChildren));
      } else {
        children.push(this.genYears());
      }
  
      this.$scopedSlots.default && children.push(this.genSlot());
  
      return h('v-card', {
        'class': {
          'picker picker--date': true,
          'picker--landscape': this.landscape,
          'picker--dark': this.dark,
          'picker--light': this.light && !this.dark
        }
      }, children);
    }
  });
  
  /***/ }),
  /* 57 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    methods: {
      genYearIcon: function genYearIcon() {
        return this.yearIcon ? this.$createElement('v-icon', {
          props: {
            dark: true
          }
        }, this.yearIcon) : null;
      },
      genTitle: function genTitle() {
        var _this = this;
  
        var date = new Date(this.year, this.month, this.day);
        date = date.toLocaleString(this.locale, this.titleDateFormat);
  
        if (this.landscape) {
          if (date.indexOf(',') > -1) date = date.replace(',', ',<br>');else if (date.indexOf(' ') > -1) date = date.replace(' ', '<br>');
        }
  
        var text = this.$createElement('transition', {
          props: {
            name: 'slide-x-transition',
            mode: 'out-in'
          }
        }, [this.$createElement('div', {
          domProps: { innerHTML: date },
          key: date
        })]);
  
        return this.$createElement('div', {
          'class': 'picker__title'
        }, [this.$createElement('div', {
          'class': {
            'picker--date__title-year': true,
            'active': this.isSelected
          },
          on: {
            click: function click(e) {
              e.stopPropagation();
              _this.isSelected = true;
            }
          }
        }, [this.year, this.genYearIcon()]), this.$createElement('div', {
          'class': {
            'picker--date__title-date': true,
            'active': !this.isSelected
          },
          on: {
            click: function click(e) {
              e.stopPropagation();
              _this.isSelected = false;
            }
          }
        }, [text])]);
      }
    }
  });
  
  /***/ }),
  /* 58 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    methods: {
      genHeader: function genHeader() {
        return this.$createElement('div', {
          'class': 'picker--date__header'
        }, [this.genSelector()]);
      },
      genBtn: function genBtn(change, children) {
        var _this = this;
  
        return this.$createElement('v-btn', {
          props: {
            dark: this.dark,
            icon: true
          },
          nativeOn: {
            click: function click(e) {
              e.stopPropagation();
              _this.tableDate = new Date(_this.tableYear, change);
            }
          }
        }, children);
      },
      genSelector: function genSelector() {
        var date = new Date(this.tableYear, this.tableMonth);
        var header = this.$createElement('div', {
          'class': 'picker--date__header-selector-date'
        }, [this.$createElement(this.computedTransition, [this.$createElement('strong', {
          key: this.tableMonth
        }, date.toLocaleString(this.locale, this.headerDateFormat))])]);
  
        return this.$createElement('div', {
          'class': 'picker--date__header-selector'
        }, [this.genBtn(this.tableMonth - 1, [this.$createElement('v-icon', 'chevron_left')]), header, this.genBtn(this.tableMonth + 1, [this.$createElement('v-icon', 'chevron_right')])]);
      }
    }
  });
  
  /***/ }),
  /* 59 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    methods: {
      wheelScroll: function wheelScroll(e) {
        e.preventDefault();
  
        var month = this.tableMonth;
  
        if (e.deltaY < 0) month++;else month--;
  
        this.tableDate = new Date(this.tableYear, month);
      },
      touch: function touch(value) {
        this.tableDate = new Date(this.tableYear, this.tableMonth + value);
      },
      genTable: function genTable() {
        var _this = this;
  
        var children = [];
        var data = {
          'class': 'picker--date__table',
          directives: [{
            name: 'touch',
            value: {
              left: function left(e) {
                return e.offsetX < -15 && _this.touch(1);
              },
              right: function right(e) {
                return e.offsetX > 15 && _this.touch(-1);
              }
            }
          }]
        };
  
        if (this.scrollable) {
          data.on = { wheel: this.wheelScroll };
        }
  
        children.push(this.$createElement('table', {
          key: this.tableMonth
        }, [this.genTHead(), this.genTBody()]));
  
        return this.$createElement('div', data, [this.$createElement(this.computedTransition, children)]);
      },
      genTHead: function genTHead() {
        var _this2 = this;
  
        var days = this.narrowDays.map(function (day) {
          return _this2.$createElement('th', day);
        });
        return this.$createElement('thead', this.genTR(days));
      },
      genTBody: function genTBody() {
        var _this3 = this;
  
        var children = [];
        var rows = [];
        var length = new Date(this.tableYear, this.tableMonth + 1, 0).getDate();
  
        var day = new Date(this.tableYear, this.tableMonth).getDay() - parseInt(this.firstDayOfWeek);
  
        for (var i = 0; i < day; i++) {
          rows.push(this.$createElement('td'));
        }
  
        var _loop = function _loop(_i) {
          var date = new Date(_this3.tableYear, _this3.tableMonth, _i, 12, 0, 0, 0);
          rows.push(_this3.$createElement('td', [_this3.$createElement('button', {
            'class': {
              'btn btn--floating btn--small btn--flat': true,
              'btn--active': _this3.isActive(_i),
              'btn--current': _this3.isCurrent(_i),
              'btn--light': _this3.dark,
              'btn--disabled': !_this3.isAllowed(date)
            },
            attrs: {
              type: 'button'
            },
            domProps: {
              innerHTML: '<span class="btn__content">' + _i + '</span>'
            },
            on: {
              click: function click() {
                var day = _i < 10 ? '0' + _i : _i;
                var tableYear = _this3.tableYear;
                var tableMonth = _this3.tableMonth + 1;
                tableMonth = tableMonth < 10 ? '0' + tableMonth : tableMonth;
  
                _this3.inputDate = tableYear + '-' + tableMonth + '-' + day + 'T12:00:00';
                _this3.$nextTick(function () {
                  return _this3.autosave && _this3.save();
                });
              }
            }
          })]));
  
          if (rows.length % 7 === 0) {
            children.push(_this3.genTR(rows));
            rows = [];
          }
        };
  
        for (var _i = 1; _i <= length; _i++) {
          _loop(_i);
        }
  
        if (rows.length) {
          children.push(this.genTR(rows));
        }
  
        children.length < 6 && children.push(this.genTR([this.$createElement('td', { domProps: { innerHTML: '&nbsp;' } })]));
  
        return this.$createElement('tbody', children);
      },
      genTR: function genTR() {
        var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
        var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  
        return [this.$createElement('tr', data, children)];
      },
      isActive: function isActive(i) {
        return this.tableYear === this.year && this.tableMonth === this.month && this.day === i;
      },
      isCurrent: function isCurrent(i) {
        return this.currentYear === this.tableYear && this.currentMonth === this.tableMonth && this.currentDay === i;
      }
    }
  });
  
  /***/ }),
  /* 60 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    methods: {
      genYears: function genYears() {
        return this.$createElement('ul', {
          'class': 'picker--date__years',
          ref: 'years'
        }, this.genYearItems());
      },
      genYearItems: function genYearItems() {
        var _this = this;
  
        var children = [];
  
        var _loop = function _loop(i, length) {
          children.push(_this.$createElement('li', {
            'class': {
              active: _this.year === i
            },
            on: {
              click: function click(e) {
                e.stopPropagation();
  
                var tableMonth = _this.tableMonth + 1;
                var day = _this.day;
                tableMonth = tableMonth < 10 ? '0' + tableMonth : tableMonth;
                day = day < 10 ? '0' + day : day;
  
                _this.inputDate = i + '-' + tableMonth + '-' + day;
                _this.isSelected = false;
              }
            }
          }, i));
        };
  
        for (var i = this.year + 100, length = this.year - 100; i > length; i--) {
          _loop(i, length);
        }
        return children;
      }
    }
  });
  
  /***/ }),
  /* 61 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_picker__ = __webpack_require__(14);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_time_title__ = __webpack_require__(62);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__mixins_time_body__ = __webpack_require__(63);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_helpers__ = __webpack_require__(0);
  
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-time-picker',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_picker__["a" /* default */], __WEBPACK_IMPORTED_MODULE_2__mixins_time_body__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__mixins_time_title__["a" /* default */]],
  
    data: function data() {
      return {
        isDragging: false,
        rotate: 0,
        originalTime: this.value,
        period: 'am',
        selectingHour: true,
        ranges: {
          hours: Object(__WEBPACK_IMPORTED_MODULE_3__util_helpers__["c" /* createRange */])(24),
          minutes: Object(__WEBPACK_IMPORTED_MODULE_3__util_helpers__["c" /* createRange */])(60)
        }
      };
    },
  
  
    props: {
      format: {
        type: String,
        default: 'ampm',
        validator: function validator(val) {
          return ['ampm', '24hr'].includes(val);
        }
      },
      allowedHours: {
        type: [Array, Object, Function],
        default: function _default() {
          return null;
        }
      },
      allowedMinutes: {
        type: [Array, Object, Function],
        default: function _default() {
          return null;
        }
      }
    },
  
    computed: {
      is24hr: function is24hr() {
        return this.format !== 'ampm';
      },
      is24hrAfter12: function is24hrAfter12() {
        return this.selectingHour && this.is24hr && this.hour >= 12;
      },
      divider: function divider() {
        return this.selectingHour ? 12 : 60;
      },
      degrees: function degrees() {
        return this.degreesPerUnit * Math.PI / 180;
      },
      degreesPerUnit: function degreesPerUnit() {
        return 360 / this.divider;
      },
  
      inputTime: {
        get: function get() {
          if (this.value && !(this.value instanceof Date)) {
            if (!this.is24hr) {
              this.period = this.value.match(/pm/) ? 'pm' : 'am';
            }
  
            return this.value;
          }
          var value = new Date();
  
          if (this.value instanceof Date) {
            value = this.value;
          }
  
          var hour = value.getHours();
          var minute = value.getMinutes();
          var period = '';
  
          if (!this.is24hr) {
            hour = hour > 12 ? hour - 12 : hour;
            period = hour > 12 ? 'pm' : 'am';
          }
  
          period && (this.period = period);
  
          hour = this.firstAllowed('hour', hour);
          minute = this.firstAllowed('minute', minute);
  
          return hour + ':' + minute + period;
        },
        set: function set(val) {
          return this.$emit('input', val);
        }
      },
      timeArray: function timeArray() {
        return this.inputTime.replace(/(am|pm)/, '').split(':');
      },
  
      hour: {
        get: function get() {
          return parseInt(this.timeArray[0]);
        },
        set: function set(val) {
          if (!this.is24hr) {
            val = val > 12 ? val - 12 : val < 1 ? 12 : val;
          } else {
            val = val < 10 ? '0' + val : val > 23 ? '00' : val;
          }
  
          this.inputTime = val + ':' + this.minute + (!this.is24hr ? this.period : '');
        }
      },
      minute: {
        get: function get() {
          var minute = parseInt(this.timeArray[1]);
  
          return minute < 10 ? '0' + minute : minute > 59 ? '00' : minute;
        },
        set: function set(val) {
          val = val < 10 ? '0' + parseInt(val) : val > 59 ? '00' : val;
          var hour = this.hour;
  
          if (this.is24hr && hour < 10) {
            hour = '0' + hour;
          }
  
          this.inputTime = hour + ':' + val + (!this.is24hr ? this.period : '');
        }
      },
      clockHand: function clockHand() {
        if (this.selectingHour) return this.degreesPerUnit * this.hour;
        return this.degreesPerUnit * this.minute;
      },
      radius: function radius() {
        return this.clockSize / 2;
      },
  
      clockSize: {
        get: function get() {
          return this.size;
        },
        set: function set(val) {
          this.size = val;
        }
      },
      size: function size() {
        return this.landscape ? 250 : 280;
      }
    },
  
    watch: {
      period: function period(val) {
        var hour = !!this.allowedHours && this.selectingHour ? this.firstAllowed('hour', this.hour - 1) : this.hour;
        this.inputTime = hour + ':' + this.minute + val;
      },
      value: function value(val) {
        if (this.isSaving) {
          this.originalTime = this.inputTime;
          this.isSaving = false;
        }
      }
    },
  
    methods: {
      save: function save() {
        if (this.originalTime) {
          this.originalTime = this.value;
        } else {
          this.inputTime = this.inputTime;
          this.originalTime = this.inputTime;
        }
  
        if (this.$parent && this.$parent.isActive) this.$parent.isActive = false;
      },
      cancel: function cancel() {
        this.inputTime = this.originalTime;
        if (this.$parent && this.$parent.isActive) this.$parent.isActive = false;
      },
      isAllowed: function isAllowed(type, value) {
        var allowed = this['allowed' + (type.charAt(0).toUpperCase() + type.slice(1)) + 's'];
  
        if (!allowed) return true;
  
        if (Array.isArray(allowed)) {
          return !!allowed.find(function (v) {
            return v === value;
          });
        } else if (allowed instanceof Function) {
          return allowed(value);
        } else if (allowed === Object(allowed)) {
          var range = type === 'minute' ? this.ranges.minutes : this.ranges.hours;
          var mod = type === 'minute' ? 60 : 24;
  
          if (allowed.min === String(allowed.min)) {
            allowed.min = this.convert12to24hr(allowed.min);
          }
  
          if (allowed.max === String(allowed.max)) {
            allowed.max = this.convert12to24hr(allowed.max);
          }
  
          var steps = allowed.max - allowed.min;
          value = type === 'hour' && !this.is24hr && this.period === 'pm' ? value + 12 : value;
  
          for (var i = 0; i <= steps; i++) {
            var index = (allowed.min + i) % mod;
            if (range[index] === value) return true;
          }
  
          return false;
        }
  
        return true;
      },
      convert12to24hr: function convert12to24hr(input) {
        input = input.toLowerCase();
        var pm = input.indexOf('pm') !== -1;
        var hour = parseInt(input.slice(0, input.indexOf(pm ? 'pm' : 'am')));
  
        return pm ? hour + 12 : hour;
      },
      generateRange: function generateRange(type, start) {
        var range = type === 'hour' ? this.ranges.hours : this.ranges.minutes;
        var offset = 1;
  
        if (type === 'hour' && !this.is24hr) {
          range = range.slice(1, 13);
          offset = 0;
        }
  
        return range.slice(start + offset, range.length).concat(range.slice(0, start + offset));
      },
      firstAllowed: function firstAllowed(type, value) {
        var _this = this;
  
        var allowed = this['allowed' + (type.charAt(0).toUpperCase() + type.slice(1)) + 's'];
  
        if (!allowed) return value;
  
        var range = this.generateRange(type, value);
  
        var first = range.find(function (v) {
          return _this.isAllowed(type, v);
        });
  
        return first || value;
      }
    },
  
    render: function render(h) {
      var children = [this.genBody()];
  
      !this.noTitle && children.unshift(this.genTitle());
      this.$scopedSlots.default && children.push(this.genSlot());
  
      return h('v-card', {
        'class': {
          'picker picker--time': true,
          'picker--landscape': this.landscape,
          'picker--dark': this.dark,
          'picker--light': this.light && !this.dark,
          'picker--time--hours': this.selectingHour
        }
      }, children);
    }
  });
  
  /***/ }),
  /* 62 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    methods: {
      genTitle: function genTitle() {
        var children = [this.genTime()];
  
        if (this.format === 'ampm') {
          children.push(this.genAMPM());
        }
  
        return this.$createElement('div', {
          'class': 'picker__title'
        }, children);
      },
      genTime: function genTime() {
        var _this = this;
  
        var hour = this.hour;
  
        if (this.is24hr && hour < 10) {
          hour = '0' + hour;
        }
  
        return this.$createElement('div', {
          'class': 'picker--time__title'
        }, [this.$createElement('span', {
          'class': { active: this.selectingHour },
          on: {
            click: function click() {
              return _this.selectingHour = true;
            }
          }
        }, hour), this.$createElement('span', {
          'class': { active: !this.selectingHour },
          on: {
            click: function click() {
              return _this.selectingHour = false;
            }
          }
        }, ':' + this.minute)]);
      },
      genAMPM: function genAMPM() {
        return this.$createElement('div', [this.genPeriod('am'), this.genPeriod('pm')]);
      },
      genPeriod: function genPeriod(period) {
        var _this2 = this;
  
        return this.$createElement('span', {
          'class': { active: this.period === period },
          on: { click: function click() {
              return _this2.period = period;
            } }
        }, period.toUpperCase());
      }
    }
  });
  
  /***/ }),
  /* 63 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    data: function data() {
      return {
        hasChanged: false
      };
    },
  
    methods: {
      genBody: function genBody() {
        var _this = this;
  
        var children = [this.genHand(this.selectingHour ? 'hour' : 'minute')];
        var data = {
          'class': 'picker--time__clock',
          on: {
            mousedown: this.onMouseDown,
            mouseup: this.onMouseUp,
            mouseleave: function mouseleave() {
              _this.isDragging && _this.onMouseUp();
            },
            touchstart: this.onMouseDown,
            touchend: this.onMouseUp,
            mousemove: this.onDragMove,
            touchmove: this.onDragMove
          },
          key: this.selectingHour ? 'hour' : 'minute',
          ref: 'clock'
        };
  
        this.selectingHour && children.push(this.genHours()) || children.push(this.genMinutes());
  
        if (this.scrollable) {
          data.on.wheel = function (e) {
            e.preventDefault();
  
            var diff = e.wheelDelta > 0 ? 1 : -1;
            var changing = _this.selectingHour ? 'changeHour' : 'changeMinute';
  
            _this[changing](diff);
          };
        }
  
        return this.$createElement('div', {
          'class': 'picker__body'
        }, [this.$createElement('v-fade-transition', {
          props: { mode: 'out-in' }
        }, [this.$createElement('div', data, children)])]);
      },
      genHand: function genHand(type) {
        var scale = this.is24hrAfter12 ? 'scaleY(0.6)' : '';
        return [this.$createElement('div', {
          'class': 'picker--time__clock-hand ' + type,
          style: {
            transform: 'rotate(' + this.clockHand + 'deg) ' + scale
          }
        })];
      },
      genHours: function genHours() {
        var hours = this.is24hr ? 24 : 12;
        var children = [];
        var start = 0;
  
        if (hours === 12) {
          hours++;
          start = 1;
        }
  
        for (var i = start; i < hours; i++) {
          children.push(this.$createElement('span', {
            'class': {
              'active': i === this.hour,
              'disabled': !this.isAllowed('hour', i)
            },
            style: this.getTransform(i),
            domProps: { innerHTML: '<span>' + i + '</span>' }
          }));
        }
  
        return children;
      },
      genMinutes: function genMinutes() {
        var children = [];
  
        for (var i = 0; i < 60; i = i + 5) {
          var num = i;
  
          if (num < 10) num = '0' + num;
          if (num === 60) num = '00';
  
          children.push(this.$createElement('span', {
            'class': {
              'active': num.toString() === this.minute.toString(),
              'disabled': !this.isAllowed('minute', i)
            },
            style: this.getTransform(i),
            domProps: { innerHTML: '<span>' + num + '</span>' }
          }));
        }
  
        return children;
      },
      getTransform: function getTransform(i) {
        var _getPosition = this.getPosition(i),
            x = _getPosition.x,
            y = _getPosition.y;
  
        return { transform: 'translate(' + x + 'px, ' + y + 'px)' };
      },
      getPosition: function getPosition(i) {
        var radiusPercentage = this.selectingHour && this.is24hr && i >= 12 ? 0.5 : 0.8;
        var r = this.radius * radiusPercentage;
        i = this.selectingHour && this.is24hr ? i % 12 : i;
        return {
          x: Math.round(Math.sin(i * this.degrees) * r),
          y: Math.round(-Math.cos(i * this.degrees) * r)
        };
      },
      changeHour: function changeHour(time) {
        var _this2 = this;
  
        var range = this.generateRange('hour', this.hour);
  
        time < 0 && (range = range.reverse().slice(1));
        this.hour = range.find(function (h) {
          return _this2.allowedHours ? _this2.isAllowed('hour', h) : true;
        });
  
        return true;
      },
      changeMinute: function changeMinute(time) {
        var _this3 = this;
  
        var current = Number(this.minute);
        var range = this.generateRange('minute', current);
  
        time < 0 && (range = range.reverse().slice(1));
        var minute = range.find(function (m) {
          return _this3.allowedMinutes ? _this3.isAllowed('minute', m) : true;
        });
  
        this.minute = minute < 10 ? '0' + minute : minute;
  
        return true;
      },
      onMouseDown: function onMouseDown(e) {
        e.preventDefault();
  
        this.isDragging = true;
        this.onDragMove(e);
      },
      onMouseUp: function onMouseUp() {
        this.isDragging = false;
        !this.selectingHour && this.autosave && this.save();
        if (this.hasChanged) {
          this.selectingHour = false;
          this.hasChanged = false;
        }
      },
      onDragMove: function onDragMove(e) {
        e.preventDefault();
        if (!this.isDragging && e.type !== 'click') return;
  
        var rect = this.$refs.clock.getBoundingClientRect();
        var center = { x: rect.width / 2, y: 0 - rect.width / 2 };
        var clientY = 'touches' in e ? e.touches[0].clientY : e.clientY;
        var clientX = 'touches' in e ? e.touches[0].clientX : e.clientX;
        var coords = {
          y: rect.top - clientY,
          x: clientX - rect.left
        };
  
        var selecting = this.selectingHour ? 'hour' : 'minute';
        var value = Math.round(this.angle(center, coords) / this.degreesPerUnit);
  
        if (this.selectingHour && this.is24hr) {
          var insideClick = this.euclidean(center, coords) / this.radius < 0.65;
          value = insideClick ? value + 12 : value;
  
          // Necessary to fix edge case when selecting left part of 0 and 12
          value = this.angle(center, coords) >= 345 ? (value + 12) % 24 : value;
        }
  
        if (this.isAllowed(selecting, value)) {
          this[selecting] = value;
          this.hasChanged = true;
        }
      },
      euclidean: function euclidean(p0, p1) {
        var dx = Math.abs(p1.x - p0.x);
        var dy = Math.abs(p1.y - p0.y);
  
        return Math.sqrt(dx * dx + dy * dy);
      },
      angle: function angle(center, p1) {
        var p0 = {
          x: center.x,
          y: center.y + Math.sqrt(Math.abs(p1.x - center.x) * Math.abs(p1.x - center.x) + Math.abs(p1.y - center.y) * Math.abs(p1.y - center.y))
        };
  
        var value = 2 * Math.atan2(p1.y - p0.y, p1.x - p0.x);
        return Math.abs(value * 180 / Math.PI);
      }
    }
  });
  
  /***/ }),
  /* 64 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VDialog__ = __webpack_require__(65);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VDialog: __WEBPACK_IMPORTED_MODULE_0__VDialog__["a" /* default */]
  });
  
  /***/ }),
  /* 65 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_bootable__ = __webpack_require__(10);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_detachable__ = __webpack_require__(15);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__mixins_overlayable__ = __webpack_require__(16);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mixins_toggleable__ = __webpack_require__(2);
  
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-dialog',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_bootable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__mixins_detachable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_2__mixins_overlayable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_3__mixins_toggleable__["a" /* default */]],
  
    props: {
      disabled: Boolean,
      persistent: Boolean,
      fullscreen: Boolean,
      fullWidth: Boolean,
      lazy: Boolean,
      origin: {
        type: String,
        default: 'center center'
      },
      width: {
        type: [String, Number],
        default: 290
      },
      scrollable: Boolean,
      transition: {
        type: [String, Boolean],
        default: 'dialog-transition'
      }
    },
  
    computed: {
      classes: function classes() {
        return {
          'dialog': true,
          'dialog--active': this.isActive,
          'dialog--persistent': this.persistent,
          'dialog--fullscreen': this.fullscreen,
          'dialog--stacked-actions': this.stackedActions && !this.fullscreen,
          'dialog--scrollable': this.scrollable
        };
      }
    },
  
    watch: {
      isActive: function isActive(val) {
        if (val) {
          !this.fullscreen && !this.hideOverlay && this.genOverlay();
          this.fullscreen && this.hideScroll();
        } else {
          if (!this.fullscreen) this.removeOverlay();else this.showScroll();
        }
      }
    },
  
    mounted: function mounted() {
      var _this = this;
  
      this.isBooted = this.isActive;
      this.$vuetify.load(function () {
        return _this.isActive && _this.genOverlay();
      });
    },
  
  
    methods: {
      closeConditional: function closeConditional(e) {
        // close dialog if !persistent and clicked outside
        return !this.persistent;
      }
    },
  
    render: function render(h) {
      var _this2 = this;
  
      var children = [];
      var data = {
        'class': this.classes,
        ref: 'dialog',
        directives: [{ name: 'click-outside', value: this.closeConditional }, { name: 'show', value: this.isActive }]
      };
  
      if (!this.fullscreen) {
        data.style = {
          width: isNaN(this.width) ? this.width : this.width + 'px'
        };
      }
  
      if (this.$slots.activator) {
        children.push(h('div', {
          'class': 'dialog__activator',
          on: {
            click: function click(e) {
              e.stopPropagation();
              if (!_this2.disabled) _this2.isActive = !_this2.isActive;
            }
          }
        }, [this.$slots.activator]));
      }
  
      var dialog = h('transition', {
        props: {
          name: this.transition || '', // If false, show nothing
          origin: this.origin
        }
      }, [h('div', data, this.showLazyContent(this.$slots.default))]);
  
      children.push(h('div', {
        'class': ('dialog__content ' + this.contentClass).trim(),
        ref: 'content'
      }, [dialog]));
  
      return h('div', {
        'class': 'dialog__container',
        style: {
          display: !this.$slots.activator && 'none' || this.fullWidth ? 'block' : 'inline-block'
        }
      }, children);
    }
  });
  
  /***/ }),
  /* 66 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VDivider__ = __webpack_require__(67);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VDivider: __WEBPACK_IMPORTED_MODULE_0__VDivider__["a" /* default */]
  });
  
  /***/ }),
  /* 67 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_themeable__ = __webpack_require__(1);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    functional: true,
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_themeable__["a" /* default */]],
  
    props: {
      inset: Boolean
    },
  
    render: function render(h, _ref) {
      var props = _ref.props,
          data = _ref.data,
          children = _ref.children;
  
      data.staticClass = ('divider ' + (data.staticClass || '')).trim();
  
      if (props.dark) data.staticClass += ' theme--dark';
      if (props.inset) data.staticClass += ' divider--inset';
      if (props.light) data.staticClass += ' theme--light';
  
      return h('hr', data);
    }
  });
  
  /***/ }),
  /* 68 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VExpansionPanel__ = __webpack_require__(69);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VExpansionPanelContent__ = __webpack_require__(70);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VExpansionPanel: __WEBPACK_IMPORTED_MODULE_0__VExpansionPanel__["a" /* default */],
    VExpansionPanelContent: __WEBPACK_IMPORTED_MODULE_1__VExpansionPanelContent__["a" /* default */]
  });
  
  /***/ }),
  /* 69 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-expansion-panel',
  
    props: {
      expand: Boolean
    },
  
    computed: {
      params: function params() {
        return {
          expand: this.expand
        };
      }
    },
  
    render: function render(h) {
      return h('ul', {
        'class': 'expansion-panel'
      }, this.$slots.default);
    }
  });
  
  /***/ }),
  /* 70 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_transitions__ = __webpack_require__(6);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_toggleable__ = __webpack_require__(2);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-expansion-panel-content',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_toggleable__["a" /* default */]],
  
    data: function data() {
      return {
        height: 'auto'
      };
    },
  
  
    props: {
      ripple: Boolean
    },
  
    computed: {
      classes: function classes() {
        return {
          'expansion-panel__header': true,
          'expansion-panel__header--active': this.isActive
        };
      }
    },
  
    methods: {
      closeConditional: function closeConditional(e) {
        return this.$parent.$el.contains(e.target) && !this.$parent.expand && !this.$el.contains(e.target);
      },
      toggle: function toggle() {
        this.isActive = !this.isActive;
      },
      genHeader: function genHeader(h) {
        var _this = this;
  
        return h('div', {
          class: this.classes,
          directives: [{
            name: 'click-outside',
            value: this.closeConditional
          }, {
            name: 'ripple',
            value: this.ripple
          }],
          on: {
            click: function click() {
              _this.isActive = !_this.isActive;
            }
          }
        }, [this.$slots.header]);
      },
      genBody: function genBody(h) {
        return h('div', {
          ref: 'body',
          class: 'expansion-panel__body',
          directives: [{
            name: 'show',
            value: this.isActive
          }]
        }, [this.$slots.default]);
      }
    },
  
    render: function render(h) {
      var children = [];
  
      this.$slots.header && children.push(this.genHeader(h));
      children.push(h(__WEBPACK_IMPORTED_MODULE_0__components_transitions__["a" /* VExpandTransition */], [this.genBody(h)]));
  
      return h('li', children);
    }
  });
  
  /***/ }),
  /* 71 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_helpers__ = __webpack_require__(0);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    enter: function enter(el, done) {
      // Remove initial transition
      el.style.transition = 'none';
      Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["a" /* addOnceEventListener */])(el, 'transitionend', done);
  
      // Get height that is to be scrolled
      el.style.overflow = 'hidden';
      el.style.height = null;
      el.style.display = 'block';
      var height = el.clientHeight + 'px';
      el.style.height = 0;
      el.style.transition = null;
  
      setTimeout(function () {
        return el.style.height = height;
      }, 50);
    },
    afterEnter: function afterEnter(el) {
      el.style.height = 'auto';
      el.style.overflow = null;
    },
    leave: function leave(el, done) {
      // Remove initial transition
      el.style.transition = 'none';
      Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["a" /* addOnceEventListener */])(el, 'transitionend', done);
  
      // Set height before we transition to 0
      el.style.overflow = 'hidden';
      el.style.height = el.clientHeight + 'px';
      el.style.transition = null;
  
      setTimeout(function () {
        return el.style.height = 0;
      }, 50);
    }
  });
  
  /***/ }),
  /* 72 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VFooter__ = __webpack_require__(73);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VFooter: __WEBPACK_IMPORTED_MODULE_0__VFooter__["a" /* default */]
  });
  
  /***/ }),
  /* 73 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    functional: true,
  
    props: {
      absolute: Boolean,
      fixed: Boolean
    },
  
    render: function render(h, _ref) {
      var data = _ref.data,
          props = _ref.props,
          children = _ref.children;
  
      data.staticClass = ('footer ' + (data.staticClass || '')).trim();
  
      if (props.absolute) data.staticClass += ' footer--absolute';
      if (props.fixed) data.staticClass += ' footer--fixed';
  
      return h('footer', data, children);
    }
  });
  
  /***/ }),
  /* 74 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_helpers__ = __webpack_require__(0);
  
  
  var Grid = function Grid(name) {
    return {
      functional: true,
  
      props: {
        id: String
      },
  
      render: function render(h, _ref) {
        var props = _ref.props,
            data = _ref.data,
            children = _ref.children;
  
        data.staticClass = (name + ' ' + (data.staticClass || '')).trim();
  
        if (data.attrs) {
          data.staticClass += ' ' + Object.keys(data.attrs).join(' ');
          delete data.attrs;
        }
  
        if (props.id) {
          data.domProps = data.domProps || {};
          data.domProps.id = props.id;
        }
  
        return h('div', data, children);
      }
    };
  };
  
  var VContainer = Grid('container');
  var VFlex = Grid('flex');
  var VLayout = Grid('layout');
  var VSpacer = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["d" /* createSimpleFunctional */])('spacer');
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VContainer: VContainer,
    VFlex: VFlex,
    VLayout: VLayout,
    VSpacer: VSpacer
  });
  
  /***/ }),
  /* 75 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VIcon__ = __webpack_require__(3);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VIcon: __WEBPACK_IMPORTED_MODULE_0__VIcon__["a" /* default */]
  });
  
  /***/ }),
  /* 76 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_transitions__ = __webpack_require__(6);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_toggleable__ = __webpack_require__(2);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-list-group',
  
    inject: ['listClick', 'listClose'],
  
    mixins: [__WEBPACK_IMPORTED_MODULE_1__mixins_toggleable__["a" /* default */]],
  
    data: function data() {
      return {
        isBooted: this.value
      };
    },
  
  
    props: {
      group: String,
      lazy: Boolean,
      noAction: Boolean
    },
  
    computed: {
      classes: function classes() {
        return {
          'list--group__header': true,
          'list--group__header--active': this.isActive,
          'list--group__header--no-action': this.noAction
        };
      }
    },
  
    watch: {
      isActive: function isActive() {
        this.isBooted = true;
  
        if (!this.isActive) {
          this.listClose(this._uid);
        }
      },
      $route: function $route(to) {
        var isActive = this.matchRoute(to.path);
  
        if (this.group) {
          if (isActive && this.isActive !== isActive) {
            this.listClick(this._uid);
          }
          this.isActive = isActive;
        }
      }
    },
  
    mounted: function mounted() {
      if (this.group) {
        this.isActive = this.matchRoute(this.$route.path);
      }
  
      if (this.isActive) {
        this.listClick(this._uid);
      }
    },
  
  
    methods: {
      click: function click() {
        var _this = this;
  
        if (!this.$refs.item.querySelector('.list__tile--disabled')) {
          requestAnimationFrame(function () {
            return _this.listClick(_this._uid);
          });
        }
      },
      toggle: function toggle(uid) {
        this.isActive = this._uid === uid;
      },
      matchRoute: function matchRoute(to) {
        if (!this.group) return false;
        return to.match(this.group) !== null;
      }
    },
  
    render: function render(h) {
      var group = h('ul', {
        'class': 'list list--group',
        directives: [{
          name: 'show',
          value: this.isActive
        }],
        ref: 'group'
      }, [this.lazy && !this.isBooted ? null : this.$slots.default]);
  
      var item = h('div', {
        'class': this.classes,
        on: Object.assign({}, { click: this.click }, this.$listeners),
        ref: 'item'
      }, [this.$slots.item]);
  
      var transition = h(__WEBPACK_IMPORTED_MODULE_0__components_transitions__["a" /* VExpandTransition */], [group]);
  
      return h('div', { 'class': 'list--group__container' }, [item, transition]);
    }
  });
  
  /***/ }),
  /* 77 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_helpers__ = __webpack_require__(0);
  
  
  function directive(el, binding) {
    var config = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["f" /* directiveConfig */])(binding, {
      icon: false,
      left: false,
      bottom: false,
      overlap: false,
      visible: true
    });
  
    if (!config.visible || binding.expression && !binding.value) {
      return unbind(el);
    }
  
    if (config.overlap) el.classList.add('badge--overlap');
    if (config.icon) el.classList.add('badge--icon');
    if (config.left) el.classList.add('badge--left');
    if (config.bottom) el.classList.add('badge--bottom');
  
    el.dataset.badge = config.value;
    el.classList.add('badge');
  }
  
  function unbind(el) {
    el.removeAttribute('data-badge');
    el.classList.remove('badge');
  }
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    bind: directive,
    updated: directive,
    componentUpdated: directive,
    unbind: unbind
  });
  
  /***/ }),
  /* 78 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  function inserted(el, binding) {
    var debounce = function debounce(cb) {
      return setTimeout(cb, 50);
    };
    var onResize = function onResize() {
      clearTimeout(debounce);
      debounce(binding.value);
    };
  
    window.addEventListener('resize', onResize, { passive: true });
    el._onResize = onResize;
  }
  
  function unbind(el, binding) {
    window.removeEventListener('resize', el._onResize);
  }
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    inserted: inserted,
    unbind: unbind
  });
  
  /***/ }),
  /* 79 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  function inserted(el, binding) {
    var callback = typeof binding.value === 'function' ? binding.value : binding.value.callback;
    var options = binding.value.options || { passive: true };
    var target = binding.value.target || window;
    if (target === 'undefined') return;
  
    if (target !== window) {
      target = document.querySelector(target);
    }
  
    target.addEventListener('scroll', callback, options);
  
    el._onScroll = {
      target: target,
      options: options
    };
  }
  
  function unbind(el, binding) {
    var _el$_onScroll = el._onScroll,
        target = _el$_onScroll.target,
        options = _el$_onScroll.options;
  
  
    target.removeEventListener('scroll', binding.callback, options);
  }
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    inserted: inserted,
    unbind: unbind
  });
  
  /***/ }),
  /* 80 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_helpers__ = __webpack_require__(0);
  
  
  function directive(el, binding) {
    var config = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["f" /* directiveConfig */])(binding, {
      top: true,
      visible: true
    });
  
    if (!config.visible || binding.expression && !binding.value) {
      return unbind(el);
    }
  
    unbind(el, binding, config);
  
    el.dataset.tooltip = config.html;
    el.dataset['tooltipLocation'] = config.value;
  }
  
  function unbind(el) {
    el.removeAttribute('data-tooltip');
    el.removeAttribute('data-tooltip-location');
  }
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    bind: directive,
    updated: directive,
    componentUpdated: directive,
    unbind: unbind
  });
  
  /***/ }),
  /* 81 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  var touchstart = function touchstart(event, wrapper) {
    var touch = event.changedTouches[0];
    wrapper.touchstartX = touch.clientX;
    wrapper.touchstartY = touch.clientY;
  
    wrapper.start && wrapper.start(Object.assign(event, wrapper));
  };
  
  var touchend = function touchend(event, wrapper) {
    var touch = event.changedTouches[0];
    wrapper.touchendX = touch.clientX;
    wrapper.touchendY = touch.clientY;
  
    wrapper.end && wrapper.end(Object.assign(event, wrapper));
  
    handleGesture(wrapper);
  };
  
  var touchmove = function touchmove(event, wrapper) {
    var touch = event.changedTouches[0];
    wrapper.touchmoveX = touch.clientX;
    wrapper.touchmoveY = touch.clientY;
  
    wrapper.move && wrapper.move(Object.assign(event, wrapper));
  };
  
  var handleGesture = function handleGesture(wrapper) {
    var touchstartX = wrapper.touchstartX,
        touchendX = wrapper.touchendX,
        touchstartY = wrapper.touchstartY,
        touchendY = wrapper.touchendY;
  
    wrapper.offsetX = touchendX - touchstartX;
    wrapper.offsetY = touchendY - touchstartY;
  
    if (touchendX < touchstartX) {
      wrapper.left && wrapper.left(wrapper);
    }
    if (touchendX > touchstartX) {
      wrapper.right && wrapper.right(wrapper);
    }
    if (touchendY < touchstartY) {
      wrapper.up && wrapper.up(wrapper);
    }
    if (touchendY > touchstartY) {
      wrapper.down && wrapper.down(wrapper);
    }
  };
  
  function inserted(el, _ref) {
    var value = _ref.value;
  
    var wrapper = {
      touchstartX: 0,
      touchstartY: 0,
      touchendX: 0,
      touchendY: 0,
      touchmoveX: 0,
      touchmoveY: 0,
      offsetX: 0,
      offsetY: 0,
      left: value.left,
      right: value.right,
      up: value.up,
      down: value.down,
      start: value.start,
      move: value.move,
      end: value.end
    };
  
    var target = value.parent ? el.parentNode : el;
    var options = value.options || {};
  
    target.addEventListener('touchstart', function (e) {
      return touchstart(e, wrapper);
    }, options);
    target.addEventListener('touchend', function (e) {
      return touchend(e, wrapper);
    }, options);
    target.addEventListener('touchmove', function (e) {
      return touchmove(e, wrapper);
    }, options);
  }
  
  function unbind(el, _ref2) {
    var value = _ref2.value;
  
    var target = value.parent ? el.parentNode : el;
  
    if (!target) return;
  
    target.removeEventListener('touchstart', touchstart);
    target.removeEventListener('touchend', touchend);
    target.removeEventListener('touchmove', touchmove);
  }
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    inserted: inserted,
    unbind: unbind
  });
  
  /***/ }),
  /* 82 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VMenu_js__ = __webpack_require__(22);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VMenu: __WEBPACK_IMPORTED_MODULE_0__VMenu_js__["a" /* default */]
  });
  
  /***/ }),
  /* 83 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    methods: {
      getActivator: function getActivator() {
        if (this.activator) return this.activator;
        return this.$refs.activator.children ? this.$refs.activator.children[0] : this.$refs.activator;
      },
      activatorClickHandler: function activatorClickHandler(e) {
        if (this.disabled) return;else if (this.openOnClick && !this.isActive) {
          this.isActive = true;
          this.absoluteX = e.clientX;
          this.absoluteY = e.clientY;
        } else if (this.closeOnClick && this.isActive) this.isActive = false;
      },
      mouseEnterHandler: function mouseEnterHandler(e) {
        if (this.disabled || this.hasJustFocused) return;
        this.hasJustFocused = true;
        this.isActive = true;
      },
      mouseLeaveHandler: function mouseLeaveHandler(e) {
        if (this.isContentActive) return;
        this.isActive = false;
      },
      addActivatorEvents: function addActivatorEvents() {
        var activator = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  
        if (!activator) return;
        activator.addEventListener('click', this.activatorClickHandler);
      },
      removeActivatorEvents: function removeActivatorEvents() {
        var activator = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  
        if (!activator) return;
        activator.removeEventListener('click', this.activatorClickHandler);
      }
    }
  });
  
  /***/ }),
  /* 84 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    methods: {
      genActivator: function genActivator() {
        if (!this.$slots.activator) return null;
  
        var options = {
          'class': {
            'menu__activator--active': this.hasJustFocused || this.isActive
          },
          staticClass: 'menu__activator',
          ref: 'activator',
          slot: 'activator',
          on: {}
        };
  
        if (this.openOnHover) {
          options.on['mouseenter'] = this.mouseEnterHandler;
          options.on['mouseleave'] = this.mouseLeaveHandler;
        } else if (this.openOnClick) {
          options.on['click'] = this.activatorClickHandler;
        }
  
        return this.$createElement('div', options, this.$slots.activator);
      },
      genTransition: function genTransition() {
        return this.$createElement('transition', {
          props: {
            name: this.transition,
            origin: this.origin
          }
        }, [this.genContent()]);
      },
      genContent: function genContent() {
        var _this = this;
  
        var booted = this.lazy && this.isBooted || !this.lazy;
        return this.$createElement('div', {
          'class': ('menu__content ' + this.contentClass).trim(),
          ref: 'content',
          style: this.styles,
          directives: [{
            name: 'show',
            value: this.isContentActive
          }],
          on: {
            click: function click(e) {
              e.stopPropagation();
              if (e.target.getAttribute('disabled')) return;
              if (_this.closeOnContentClick) _this.isActive = false;
            },
            mouseleave: function mouseleave(e) {
              _this.openOnHover && (_this.isActive = false);
            }
          }
        }, [booted ? this.$slots.default : null]);
      }
    }
  });
  
  /***/ }),
  /* 85 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    methods: {
      // Revisit this
      calculateScroll: function calculateScroll() {
        if (this.selectedIndex === null) return;
  
        var scrollTop = 0;
  
        if (this.selectedIndex >= this.stopIndex) {
          scrollTop = this.$refs.content.scrollHeight;
        } else if (this.selectedIndex > this.startIndex) {
          scrollTop = this.selectedIndex * 48 - 56;
        }
  
        this.$refs.content.scrollTop = scrollTop;
      },
      calcLeftAuto: function calcLeftAuto() {
        var a = this.dimensions.activator;
  
        return parseInt(a.left - 16);
      },
      calcTopAuto: function calcTopAuto() {
        if (!this.hasActivator) return this.calcTop(true);
  
        var selectedIndex = Array.from(this.tiles).findIndex(function (n) {
          return n.classList.contains('list__tile--active');
        });
  
        if (selectedIndex === -1) {
          this.selectedIndex = null;
  
          return this.calcTop(true);
        }
  
        this.selectedIndex = selectedIndex;
        var actingIndex = selectedIndex;
  
        var offsetPadding = 1;
        // #708 Stop index should vary by tile length
        this.stopIndex = this.tiles.length > 4 ? this.tiles.length - 4 : this.tiles.length;
  
        if (selectedIndex > this.startIndex && selectedIndex < this.stopIndex) {
          actingIndex = 2;
          offsetPadding = 41;
        } else if (selectedIndex >= this.stopIndex) {
          offsetPadding = 9;
          actingIndex = selectedIndex - this.stopIndex;
        }
  
        return this.calcTop(true) + offsetPadding - actingIndex * 48;
      },
      calcLeft: function calcLeft() {
        if (this.auto) return this.calcLeftAuto();
  
        var a = this.dimensions.activator;
        var c = this.dimensions.content;
        var left = this.left ? a.right - c.width : a.left;
  
        if (this.offsetX) left += this.left ? -a.width : a.width;
        if (this.nudgeLeft) left += this.nudgeLeft;
        if (this.nudgeRight) left -= this.nudgeRight;
  
        return this.calcXOverflow(left);
      },
      calcTop: function calcTop(force) {
        if (this.auto && !force) return this.calcTopAuto();
  
        var a = this.dimensions.activator;
        var c = this.dimensions.content;
        var top = this.top ? a.bottom - c.height : a.top;
  
        if (this.offsetY) top += this.top ? -a.height : a.height;
        if (this.nudgeTop) top -= this.nudgeTop;
        if (this.nudgeBottom) top += this.nudgeBottom;
  
        var defined = typeof window !== 'undefined';
        var pageYOffset = defined ? window.pageYOffset : 0;
  
        return this.calcYOverflow(top) + pageYOffset;
      },
      calcXOverflow: function calcXOverflow(left) {
        var hasWindow = typeof window !== 'undefined';
        var innerWidth = hasWindow ? window.innerWidth : 0;
        var maxWidth = Math.max(this.dimensions.content.width, this.calculatedMinWidth, parseInt(this.maxWidth) || 0);
        var totalWidth = left + maxWidth;
        var availableWidth = totalWidth - innerWidth;
  
        if ((!this.left || this.right) && availableWidth > 0) {
          left = innerWidth - maxWidth - (innerWidth > 1024 ? 30 : 12) // Account for scrollbar
          ;
        } else if (this.left && left < 0) left = 12;
  
        return left;
      },
      calcYOverflow: function calcYOverflow(top) {
        var totalHeight = top + this.dimensions.content.height;
        var defined = typeof window !== 'undefined';
        var innerHeight = defined ? window.innerHeight : 0;
  
        if (this.top && top < 0) top = 12;else if ((!this.top || this.bottom) && innerHeight < totalHeight) {
          top = innerHeight - this.dimensions.content.height;
        }
  
        return top < 12 ? 12 : top;
      },
      sneakPeek: function sneakPeek(cb) {
        var _this = this;
  
        requestAnimationFrame(function () {
          var el = _this.$refs.content;
          var currentDisplay = el.style.display;
  
          el.style.display = 'inline-block';
          cb();
          el.style.display = currentDisplay;
        });
      },
      absolutePosition: function absolutePosition() {
        return {
          offsetTop: 0,
          scrollHeight: 0,
          top: this.positionY || this.absoluteY,
          bottom: this.positionY || this.absoluteY,
          left: this.positionX || this.absoluteX,
          right: this.positionX || this.absoluteX,
          height: 0,
          width: 0
        };
      },
      updateDimensions: function updateDimensions() {
        var _this2 = this;
  
        this.sneakPeek(function () {
          _this2.dimensions = {
            activator: !_this2.hasActivator || _this2.positionAbsolutely ? _this2.absolutePosition() : _this2.measure(_this2.getActivator()),
            content: _this2.measure(_this2.$refs.content)
          };
        });
      }
    }
  });
  
  /***/ }),
  /* 86 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    methods: {
      measure: function measure(el, selector) {
        var getParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  
        el = selector ? el.querySelector(selector) : el;
  
        if (!el) return null;
  
        var _el$getBoundingClient = el.getBoundingClientRect(),
            top = _el$getBoundingClient.top,
            bottom = _el$getBoundingClient.bottom,
            left = _el$getBoundingClient.left,
            right = _el$getBoundingClient.right,
            height = _el$getBoundingClient.height,
            width = _el$getBoundingClient.width;
  
        return {
          offsetTop: el.offsetTop,
          scrollHeight: el.scrollHeight,
          top: top, bottom: bottom, left: left, right: right, height: height, width: width
        };
      }
    }
  });
  
  /***/ }),
  /* 87 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    data: function data() {
      return {
        listIndex: -1,
        isUsingKeys: false,
        tiles: []
      };
    },
  
    watch: {
      isActive: function isActive(val) {
        if (!val) this.listIndex = -1;
      },
      listIndex: function listIndex(next, prev) {
        // For infinite scroll and autocomplete, re-evaluate children
        this.getTiles();
  
        if (next in this.tiles) {
          this.tiles[next].classList.add('list__tile--highlighted');
          this.$refs.content.scrollTop = next * 48;
        }
  
        prev in this.tiles && this.tiles[prev].classList.remove('list__tile--highlighted');
      }
    },
  
    methods: {
      changeListIndex: function changeListIndex(e) {
        [40, 38, 13].includes(e.keyCode) && e.preventDefault();
        e.keyCode === 32 && !this.isActive && e.preventDefault();
  
        if (this.listIndex === -1) this.setActiveListIndex();
        if ([27, 9].includes(e.keyCode)) return this.isActive = false;else if (!this.isActive && [13, 32].includes(e.keyCode)) {
          return this.isActive = true;
        }
  
        if (e.keyCode === 40 && this.listIndex < this.tiles.length - 1) {
          this.listIndex++;
        } else if (e.keyCode === 38 && this.listIndex > 0) {
          this.listIndex--;
        } else if (e.keyCode === 13 && this.listIndex !== -1) {
          this.tiles[this.listIndex].click();
        }
      },
      getTiles: function getTiles() {
        this.tiles = this.$refs.content.querySelectorAll('.list__tile');
      },
      setActiveListIndex: function setActiveListIndex() {
        var _this = this;
  
        this.tiles.forEach(function (t, i) {
          if (t.classList.contains('list__tile--active')) {
            _this.listIndex = i;
            return;
          }
        });
      }
    }
  });
  
  /***/ }),
  /* 88 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VNavigationDrawer__ = __webpack_require__(89);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VNavigationDrawer: __WEBPACK_IMPORTED_MODULE_0__VNavigationDrawer__["a" /* default */]
  });
  
  /***/ }),
  /* 89 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_overlayable__ = __webpack_require__(16);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_themeable__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__directives__ = __webpack_require__(4);
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-navigation-drawer',
  
    directives: {
      Resize: __WEBPACK_IMPORTED_MODULE_2__directives__["Resize"]
    },
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_overlayable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__mixins_themeable__["a" /* default */]],
  
    data: function data() {
      return {
        isActive: this.value,
        isBooted: false,
        isMobile: false,
        touchArea: {
          left: 0,
          right: 0
        }
      };
    },
  
  
    props: {
      absolute: Boolean,
      clipped: Boolean,
      disableRouteWatcher: Boolean,
      enableResizeWatcher: Boolean,
      height: String,
      floating: Boolean,
      miniVariant: Boolean,
      mobileBreakPoint: {
        type: Number,
        default: 1024
      },
      permanent: Boolean,
      persistent: Boolean,
      right: Boolean,
      temporary: Boolean,
      touchless: Boolean,
      value: { required: false }
    },
  
    computed: {
      calculatedHeight: function calculatedHeight() {
        return this.height || '100%';
      },
      classes: function classes() {
        return {
          'navigation-drawer': true,
          'navigation-drawer--absolute': this.absolute,
          'navigation-drawer--clipped': this.clipped,
          'navigation-drawer--close': !this.isActive,
          'navigation-drawer--floating': this.floating,
          'navigation-drawer--is-booted': this.isBooted,
          'navigation-drawer--is-mobile': this.isMobile,
          'navigation-drawer--mini-variant': this.miniVariant,
          'navigation-drawer--open': this.isActive,
          'navigation-drawer--permanent': this.permanent,
          'navigation-drawer--persistent': this.persistent,
          'navigation-drawer--right': this.right,
          'navigation-drawer--temporary': this.temporary,
          'theme--dark': this.dark,
          'theme--light': this.light
        };
      },
      showOverlay: function showOverlay() {
        return !this.permanent && this.isActive && (this.temporary || this.isMobile);
      }
    },
  
    watch: {
      $route: function $route() {
        if (!this.disableRouteWatcher) {
          this.isActive = !this.closeConditional();
        }
      },
      isActive: function isActive(val) {
        this.$emit('input', val);
        this.showOverlay && val && this.genOverlay() || this.removeOverlay();
        this.$el.scrollTop = 0;
      },
      isMobile: function isMobile(val) {
        !val && this.removeOverlay();
      },
      permanent: function permanent(val) {
        this.$emit('input', val);
      },
      value: function value(val) {
        if (this.permanent) return;
        if (val !== this.isActive) this.isActive = val;
      }
    },
  
    mounted: function mounted() {
      this.$vuetify.load(this.init);
    },
  
  
    methods: {
      init: function init() {
        var _this = this;
  
        this.checkIfMobile();
        setTimeout(function () {
          return _this.isBooted = true;
        }, 0);
  
        if (this.permanent) this.isActive = true;else if (this.isMobile) this.isActive = false;else if (!this.value && (this.persistent || this.temporary)) this.isActive = false;
      },
      checkIfMobile: function checkIfMobile() {
        this.isMobile = window.innerWidth < parseInt(this.mobileBreakPoint);
      },
      closeConditional: function closeConditional() {
        return !this.permanent && (this.temporary || this.isMobile);
      },
      onResize: function onResize() {
        var _this2 = this;
  
        clearTimeout(this.resizeTimeout);
  
        if (!this.enableResizeWatcher || this.permanent || this.temporary) return;
  
        this.resizeTimeout = setTimeout(function () {
          _this2.checkIfMobile();
          _this2.isActive = !_this2.isMobile;
        }, 200);
      },
      swipeRight: function swipeRight(e) {
        if (this.isActive && !this.right) return;
        this.calculateTouchArea();
  
        if (Math.abs(e.touchendX - e.touchstartX) < 100) return;else if (!this.right && e.touchstartX <= this.touchArea.left) this.isActive = true;else if (this.right && this.isActive) this.isActive = false;
      },
      swipeLeft: function swipeLeft(e) {
        if (this.isActive && this.right) return;
        this.calculateTouchArea();
  
        if (Math.abs(e.touchendX - e.touchstartX) < 100) return;else if (this.right && e.touchstartX >= this.touchArea.right) this.isActive = true;else if (!this.right && this.isActive) this.isActive = false;
      },
      calculateTouchArea: function calculateTouchArea() {
        if (!this.$el.parentNode) return;
        var parentRect = this.$el.parentNode.getBoundingClientRect();
  
        this.touchArea = {
          left: parentRect.left + 50,
          right: parentRect.right - 50
        };
      },
      genDirectives: function genDirectives() {
        var directives = [{
          name: 'click-outside',
          value: this.closeConditional
        }, {
          name: 'resize',
          value: this.onResize
        }];
  
        !this.touchless && directives.push({
          name: 'touch',
          value: {
            parent: true,
            left: this.swipeLeft,
            right: this.swipeRight
          }
        });
  
        return directives;
      }
    },
  
    render: function render(h) {
      var _this3 = this;
  
      var data = {
        'class': this.classes,
        style: { height: this.calculatedHeight },
        directives: this.genDirectives(),
        on: Object.assign({}, {
          click: function click() {
            return _this3.$emit('update:miniVariant', false);
          }
        }, this.$listeners)
      };
  
      return h('aside', data, [this.$slots.default, h('div', { 'class': 'navigation-drawer__border' })]);
    }
  });
  
  /***/ }),
  /* 90 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_helpers__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VSystemBar__ = __webpack_require__(91);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__VToolbar__ = __webpack_require__(92);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__VToolbarSideIcon__ = __webpack_require__(93);
  
  
  
  
  
  
  var VToolbarTitle = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["d" /* createSimpleFunctional */])('toolbar__title');
  var VToolbarItems = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["d" /* createSimpleFunctional */])('toolbar__items');
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VSystemBar: __WEBPACK_IMPORTED_MODULE_1__VSystemBar__["a" /* default */],
    VToolbar: __WEBPACK_IMPORTED_MODULE_2__VToolbar__["a" /* default */],
    VToolbarItems: VToolbarItems,
    VToolbarTitle: VToolbarTitle,
    VToolbarSideIcon: __WEBPACK_IMPORTED_MODULE_3__VToolbarSideIcon__["a" /* default */]
  });
  
  /***/ }),
  /* 91 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_themeable__ = __webpack_require__(1);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    functional: true,
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_themeable__["a" /* default */]],
  
    props: {
      lightsOut: Boolean,
      status: Boolean,
      window: Boolean
    },
  
    render: function render(h, _ref) {
      var data = _ref.data,
          props = _ref.props,
          children = _ref.children;
  
      data.staticClass = ('system-bar ' + (data.staticClass || '')).trim();
  
      if (props.dark) data.staticClass += ' theme--dark';
      if (props.light) data.staticClass += ' theme--light';
      if (props.status) data.staticClass += ' system-bar--status';
      if (props.window) data.staticClass += ' system-bar--window';
      if (props.lightsOut) data.staticClass += ' system-bar--lights-out';
  
      return h('div', data, children);
    }
  });
  
  /***/ }),
  /* 92 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_themeable__ = __webpack_require__(1);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-toolbar',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_themeable__["a" /* default */]],
  
    data: function data() {
      return {
        isExtended: false,
        isScrolling: false,
        marginTop: 0,
        previousScroll: null,
        target: null
      };
    },
  
    props: {
      absolute: Boolean,
      card: Boolean,
      dense: Boolean,
      extended: Boolean,
      fixed: Boolean,
      flat: Boolean,
      floating: Boolean,
      prominent: Boolean,
      scrollOffScreen: Boolean,
      scrollTarget: String,
      scrollThreshHold: {
        type: Number,
        default: 100
      }
    },
  
    computed: {
      classes: function classes() {
        return {
          'toolbar': true,
          'elevation-0': this.flat,
          'toolbar--absolute': this.absolute,
          'toolbar--card': this.card,
          'toolbar--dense': this.dense,
          'toolbar--fixed': this.fixed,
          'toolbar--floating': this.floating,
          'toolbar--prominent': this.prominent,
          'toolbar--extended': this.isExtended,
          'theme--dark': this.dark,
          'theme--light': this.light
        };
      },
      styles: function styles() {
        return {
          marginTop: this.marginTop
        };
      }
    },
  
    watch: {
      isScrolling: function isScrolling(val) {
        if (!val) this.marginTop = 0;else this.marginTop = -this.$refs.content.clientHeight - 6 + 'px';
      }
    },
  
    methods: {
      onScroll: function onScroll() {
        if (typeof window === 'undefined') return;
  
        if (!this.target) {
          this.target = this.scrollTarget ? document.querySelector(this.scrollTarget) : window;
        }
  
        var currentScroll = this.scrollTarget ? this.target.scrollTop : this.target.pageYOffset || document.documentElement.scrollTop;
  
        if (currentScroll < this.scrollThreshHold) return;
  
        if (this.previousScroll === null) {
          this.previousScroll = currentScroll;
        }
  
        this.isScrolling = this.previousScroll < currentScroll;
  
        this.previousScroll = currentScroll;
      }
    },
  
    render: function render(h) {
      this.isExtended = this.extended || !!this.$slots.extension;
      var children = [];
      var data = {
        'class': this.classes,
        style: this.styles,
        on: this.$listeners
      };
  
      if (this.scrollOffScreen) {
        data.directives = [{
          name: 'scroll',
          value: {
            callback: this.onScroll,
            target: this.scrollTarget
          }
        }];
      }
  
      children.push(h('div', {
        'class': 'toolbar__content',
        ref: 'content'
      }, this.$slots.default));
  
      if (this.isExtended) {
        children.push(h('div', {
          'class': 'toolbar__extension'
        }, this.$slots.extension));
      }
  
      return h('nav', data, children);
    }
  });
  
  /***/ }),
  /* 93 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_buttons_VBtn__ = __webpack_require__(5);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_icons_VIcon__ = __webpack_require__(3);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-toolbar-side-icon',
  
    functional: true,
  
    render: function render(h, _ref) {
      var slots = _ref.slots,
          listeners = _ref.listeners,
          props = _ref.props;
  
      var data = {
        staticClass: 'toolbar__side-icon',
        props: Object.assign(props, {
          icon: true
        }),
        on: listeners
      };
  
      var defaultSlot = slots().default;
  
      return h(__WEBPACK_IMPORTED_MODULE_0__components_buttons_VBtn__["a" /* default */], data, defaultSlot || [h(__WEBPACK_IMPORTED_MODULE_1__components_icons_VIcon__["a" /* default */], 'menu')]);
    }
  });
  
  /***/ }),
  /* 94 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VPagination__ = __webpack_require__(95);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VPagination: __WEBPACK_IMPORTED_MODULE_0__VPagination__["a" /* default */]
  });
  
  /***/ }),
  /* 95 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_icons_VIcon__ = __webpack_require__(3);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-pagination',
  
    props: {
      circle: Boolean,
      disabled: Boolean,
      length: {
        type: Number,
        default: 0,
        validator: function validator(val) {
          return val % 1 === 0;
        }
      },
      value: {
        type: Number,
        default: 0
      },
      prevIcon: {
        type: String,
        default: 'chevron_left'
      },
      nextIcon: {
        type: String,
        default: 'chevron_right'
      }
    },
  
    watch: {
      value: function value() {
        this.init();
      }
    },
  
    computed: {
      classes: function classes() {
        return {
          'pagination': true,
          'pagination--circle': this.circle,
          'pagination--disabled': this.disabled
        };
      },
      items: function items() {
        if (this.length <= 5) {
          return this.range(1, this.length);
        }
  
        var min = this.value - 3;
        min = min > 0 ? min : 1;
  
        var max = min + 6;
        max = max <= this.length ? max : this.length;
  
        if (max === this.length) {
          min = this.length - 6;
        }
  
        var range = this.range(min, max);
  
        if (this.value >= 4 && this.length > 6) {
          range.splice(0, 2, 1, '...');
        }
  
        if (this.value + 3 < this.length && this.length > 6) {
          range.splice(range.length - 2, 2, '...', this.length);
        }
  
        return range;
      }
    },
  
    mounted: function mounted() {
      this.$vuetify.load.call(this, this.init);
    },
  
  
    methods: {
      init: function init() {
        var _this = this;
  
        this.selected = null;
  
        // Change this
        setTimeout(function () {
          return _this.selected = _this.value;
        }, 100);
      },
      next: function next(e) {
        e.preventDefault();
        this.$emit('input', this.value + 1);
        this.$emit('next');
      },
      previous: function previous(e) {
        e.preventDefault();
        this.$emit('input', this.value - 1);
        this.$emit('previous');
      },
      range: function range(from, to) {
        var range = [];
  
        from = from > 0 ? from : 1;
  
        for (var i = from; i <= to; i++) {
          range.push(i);
        }
  
        return range;
      },
      genIcon: function genIcon(h, icon, disabled, fn) {
        return h('li', [h('a', {
          class: {
            'pagination__navigation': true,
            'pagination__navigation--disabled': disabled
          },
          attrs: { href: '#!' },
          on: { click: fn }
        }, [h(__WEBPACK_IMPORTED_MODULE_0__components_icons_VIcon__["a" /* default */], [icon])])]);
      },
      genItem: function genItem(h, i) {
        var _this2 = this;
  
        return h('a', {
          class: {
            'pagination__item': true,
            'pagination__item--active': i === this.value
          },
          attrs: { href: '#!' },
          on: {
            click: function click(e) {
              e.preventDefault();
              _this2.$emit('input', i);
            }
          }
        }, [i]);
      },
      genItems: function genItems(h) {
        var _this3 = this;
  
        return this.items.map(function (i) {
          return h('li', [isNaN(i) && h('span', { class: 'pagination__more' }, [i]) || _this3.genItem(h, i)]);
        });
      }
    },
  
    render: function render(h) {
      var children = [this.genIcon(h, this.prevIcon, this.value === 1, this.previous), this.genItems(h), this.genIcon(h, this.nextIcon, this.value === this.length, this.next)];
  
      return h('ul', { class: this.classes }, children);
    }
  });
  
  /***/ }),
  /* 96 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VParallax__ = __webpack_require__(97);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VParallax: __WEBPACK_IMPORTED_MODULE_0__VParallax__["a" /* default */]
  });
  
  /***/ }),
  /* 97 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_translatable__ = __webpack_require__(98);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-parallax',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_translatable__["a" /* default */]],
  
    props: {
      height: {
        type: [String, Number],
        default: 500
      },
      src: String
    },
  
    computed: {
      styles: function styles() {
        return {
          display: 'block',
          transform: 'translate3d(-50%, ' + this.parallax + 'px, 0)'
        };
      }
    },
  
    methods: {
      init: function init() {
        var _this = this;
  
        if (!this.$refs.img) return;
  
        if (this.$refs.img.complete) {
          this.translate();
          this.listeners();
        } else {
          this.$refs.img.addEventListener('load', function () {
            _this.translate();
            _this.listeners();
          }, false);
        }
      },
      objHeight: function objHeight() {
        return this.$refs.img.naturalHeight;
      },
      elOffsetTop: function elOffsetTop() {
        return this.$el.offsetTop;
      }
    },
  
    render: function render(h) {
      var container = h('div', {
        staticClass: 'parallax__image-container'
      }, [h('img', {
        staticClass: 'parallax__image',
        style: this.styles,
        attrs: {
          src: this.src
        },
        ref: 'img'
      })]);
  
      var content = h('div', {
        staticClass: 'parallax__content'
      }, this.$slots.default);
  
      return h('div', {
        staticClass: 'parallax',
        style: {
          height: parseInt(this.normalizedHeight) + 'px'
        },
        on: this.$listeners
      }, [container, content]);
    }
  });
  
  /***/ }),
  /* 98 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    data: function data() {
      return {
        parallax: null,
        parallaxDist: null,
        percentScrolled: null,
        scrollTop: null,
        windowHeight: null,
        windowBottom: null
      };
    },
  
  
    computed: {
      normalizedHeight: function normalizedHeight() {
        return Number(this.height.toString().replace(/(^[0-9]*$)/, '$1'));
      },
      imgHeight: function imgHeight() {
        return this.objHeight();
      }
    },
  
    mounted: function mounted() {
      this.$vuetify.load(this.init);
    },
    beforeDestroy: function beforeDestroy() {
      window.removeEventListener('scroll', this.translate, false);
      window.removeEventListener('resize', this.translate, false);
    },
  
  
    methods: {
      listeners: function listeners() {
        window.addEventListener('scroll', this.translate, false);
        window.addEventListener('resize', this.translate, false);
      },
      translate: function translate() {
        this.calcDimensions();
  
        this.percentScrolled = (this.windowBottom - this.elOffsetTop) / (this.normalizedHeight + this.windowHeight);
  
        this.parallax = Math.round(this.parallaxDist * this.percentScrolled);
  
        if (this.translated) {
          this.translated();
        }
      },
      calcDimensions: function calcDimensions() {
        var offset = this.$el.getBoundingClientRect();
  
        this.scrollTop = window.pageYOffset;
        this.parallaxDist = this.imgHeight - this.normalizedHeight;
        this.elOffsetTop = offset.top + this.scrollTop;
        this.windowHeight = window.innerHeight;
        this.windowBottom = this.scrollTop + this.windowHeight;
      }
    }
  });
  
  /***/ }),
  /* 99 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VProgressLinear__ = __webpack_require__(23);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VProgressCircular__ = __webpack_require__(100);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VProgressLinear: __WEBPACK_IMPORTED_MODULE_0__VProgressLinear__["a" /* default */],
    VProgressCircular: __WEBPACK_IMPORTED_MODULE_1__VProgressCircular__["a" /* default */]
  });
  
  /***/ }),
  /* 100 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  var _this = this;
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-progress-circular',
  
    props: {
      button: Boolean,
  
      fill: {
        type: String,
        default: function _default() {
          return _this.indeterminate ? 'none' : 'transparent';
        }
      },
  
      indeterminate: Boolean,
  
      rotate: {
        type: Number,
        default: 0
      },
  
      size: {
        type: [Number, String],
        default: 32
      },
  
      width: {
        type: Number,
        default: 4
      },
  
      value: {
        type: Number,
        default: 0
      }
    },
  
    computed: {
      calculatedSize: function calculatedSize() {
        var size = Number(this.size);
  
        if (this.button) {
          size += 8;
        }
  
        return size;
      },
      circumference: function circumference() {
        return 2 * Math.PI * this.radius;
      },
      classes: function classes() {
        return {
          'progress-circular': true,
          'progress-circular--indeterminate': this.indeterminate,
          'progress-circular--button': this.button
        };
      },
      cxy: function cxy() {
        return this.indeterminate && !this.button ? 50 : this.calculatedSize / 2;
      },
      normalizedValue: function normalizedValue() {
        if (this.value < 0) {
          return 0;
        }
  
        if (this.value > 100) {
          return 100;
        }
  
        return this.value;
      },
      radius: function radius() {
        return this.indeterminate && !this.button ? 20 : (this.calculatedSize - this.width) / 2;
      },
      strokeDashArray: function strokeDashArray() {
        return Math.round(this.circumference * 1000) / 1000;
      },
      strokeDashOffset: function strokeDashOffset() {
        return (100 - this.normalizedValue) / 100 * this.circumference + 'px';
      },
      styles: function styles() {
        return {
          height: this.calculatedSize + 'px',
          width: this.calculatedSize + 'px'
        };
      },
      svgSize: function svgSize() {
        return this.indeterminate ? false : this.calculatedSize;
      },
      svgStyles: function svgStyles() {
        return {
          transform: 'rotate(' + this.rotate + 'deg)'
        };
      },
      viewBox: function viewBox() {
        return this.indeterminate ? '25 25 50 50' : false;
      }
    },
  
    methods: {
      genCircle: function genCircle(h, name, offset) {
        return h('circle', {
          class: 'progress-circular__' + name,
          attrs: {
            fill: 'transparent',
            cx: this.cxy,
            cy: this.cxy,
            r: this.radius,
            'stroke-width': this.width,
            'stroke-dasharray': this.strokeDashArray,
            'stroke-dashoffset': offset
          }
        });
      },
      genSvg: function genSvg(h) {
        var children = [!this.indeterminate && this.genCircle(h, 'underlay', 0), this.genCircle(h, 'overlay', this.strokeDashOffset)];
  
        return h('svg', {
          style: this.svgStyles,
          attrs: {
            xmlns: 'http://www.w3.org/2000/svg',
            height: this.svgSize,
            width: this.svgSize,
            viewBox: this.viewBox
          }
        }, children);
      }
    },
  
    render: function render(h) {
      var info = h('div', { class: 'progress-circular__info' }, [this.$slots.default]);
      var svg = this.genSvg(h);
  
      return h('div', {
        class: this.classes,
        style: this.styles,
        on: this.$listeners
      }, [svg, info]);
    }
  });
  
  /*
  <template lang="pug">
    div(
      class="progress-circular"
      v-bind:class="classes"
      v-bind:style="styles"
      v-on="$listeners"
    )
      svg(
        xmlns="http://www.w3.org/2000/svg"
        v-bind:height="svgSize"
        v-bind:width="svgSize"
        v-bind:viewBox="viewBox"
        v-bind:style="svgStyles"
      )
        circle(
          class="progress-circular__underlay"
          fill="transparent"
          v-bind:cx="cxy"
          v-bind:cy="cxy"
          v-bind:r="radius"
          v-bind:stroke-width="width"
          v-bind:stroke-dasharray="strokeDashArray"
          v-bind:stroke-dashoffset="0"
          v-if="!indeterminate"
        )
        circle(
          class="progress-circular__overlay"
          v-bind:fill="fill"
          v-bind:cx="cxy"
          v-bind:cy="cxy"
          v-bind:r="radius"
          v-bind:stroke-width="width"
          v-bind:stroke-dasharray="strokeDashArray"
          v-bind:stroke-dashoffset="strokeDashOffset"
        )
      div(class="progress-circular__info")
        slot
  </template>
  */
  
  /***/ }),
  /* 101 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VSelect__ = __webpack_require__(24);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VSelect: __WEBPACK_IMPORTED_MODULE_0__VSelect__["a" /* default */]
  });
  
  /***/ }),
  /* 102 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    methods: {
      filterSearch: function filterSearch() {
        var _this = this;
  
        return this.items.filter(function (i) {
          var text = _this.getText(i);
          if (typeof text !== 'string') return false;
  
          return text.toLowerCase().indexOf(_this.searchValue.toLowerCase()) !== -1;
        });
      },
      onKeyDown: function onKeyDown(e) {
        this.$refs.menu.changeListIndex(e);
      }
    }
  });
  
  /***/ }),
  /* 103 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_helpers__ = __webpack_require__(0);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    methods: {
      genMenu: function genMenu() {
        var _this = this;
  
        var offsetY = this.autocomplete || this.offset || this.isDropdown;
        var data = {
          ref: 'menu',
          props: {
            activator: this.$refs.activator,
            auto: this.auto,
            closeOnClick: false,
            closeOnContentClick: !this.multiple,
            contentClass: this.computedContentClass,
            disabled: this.disabled,
            maxHeight: this.maxHeight,
            nudgeTop: this.isDropdown ? 22 : offsetY ? 38 : 0,
            offsetY: offsetY,
            value: this.isActive
          },
          on: { input: function input(val) {
              return _this.isActive = val;
            } }
        };
  
        this.minWidth && (data.props.minWidth = this.minWidth);
  
        return this.$createElement('v-menu', data, [this.genList()]);
      },
      genSelectionsAndSearch: function genSelectionsAndSearch() {
        var _this2 = this;
  
        var input = void 0;
  
        if (this.autocomplete || this.editable) {
          input = this.$createElement('input', {
            'class': 'input-group--select__autocomplete',
            domProps: { value: this.searchValue },
            on: { input: function input(e) {
                return _this2.searchValue = e.target.value;
              } },
            attrs: { tabindex: -1 },
            ref: 'input',
            key: 'input'
          });
        }
  
        var selections = this.isDirty && (!this.editable || this.editable && !this.focused) ? this.genSelections() : [];
        input && selections.push(input);
        var group = this.$createElement('div', selections);
  
        return this.$createElement('div', {
          'class': 'input-group__selections',
          style: { 'overflow': 'hidden' },
          ref: 'activator'
        }, [group]);
      },
      genSelections: function genSelections() {
        var _this3 = this;
  
        var children = [];
        var chips = this.chips;
        var slots = this.$scopedSlots.selection;
        var length = this.selectedItems.length;
  
        this.selectedItems.forEach(function (item, i) {
          if (slots) {
            children.push(_this3.genSlotSelection(item));
          } else if (chips) {
            children.push(_this3.genChipSelection(item));
          } else {
            children.push(_this3.genCommaSelection(item, i < length - 1));
          }
        });
  
        return children;
      },
      genSlotSelection: function genSlotSelection(item) {
        return this.$scopedSlots.selection({ parent: this, item: item });
      },
      genChipSelection: function genChipSelection(item) {
        var _this4 = this;
  
        return this.$createElement('v-chip', {
          'class': 'chip--select-multi',
          props: { close: true },
          on: {
            input: function input() {
              return _this4.selectItem(item);
            },
            click: function click(e) {
              return e.stopPropagation();
            }
          },
          key: this.getValue(item)
        }, this.getText(item));
      },
      genCommaSelection: function genCommaSelection(item, comma) {
        return this.$createElement('div', {
          'class': 'input-group__selections__comma',
          key: JSON.stringify(this.getValue(item)) // Item may be an object
        }, '' + this.getText(item) + (comma ? ', ' : ''));
      },
      genList: function genList() {
        var _this5 = this;
  
        var children = this.filteredItems.map(function (o) {
          if (o.header) return _this5.genHeader(o);
          if (o.divider) return _this5.genDivider(o);else return _this5.genTile(o);
        });
  
        if (!children.length) {
          children.push(this.genTile(this.noDataText, true));
        }
  
        return this.$createElement('v-card', [this.$createElement('v-list', {
          ref: 'list'
        }, children)]);
      },
      genHeader: function genHeader(item) {
        return this.$createElement('v-subheader', {
          props: item
        }, item.header);
      },
      genDivider: function genDivider(item) {
        return this.$createElement('v-divider', {
          props: item
        });
      },
      genTile: function genTile(item, disabled) {
        var _this6 = this;
  
        var active = this.selectedItems.indexOf(item) !== -1;
  
        if (typeof disabled === 'undefined') {
          disabled = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["g" /* getObjectValueByPath */])(item, this.itemDisabled);
        }
  
        var data = {
          on: { click: function click(e) {
              return _this6.selectItem(item);
            } },
          props: {
            avatar: item === Object(item) && 'avatar' in item,
            ripple: true,
            value: active
          }
        };
  
        if (disabled) {
          data.props.disabled = disabled;
        }
  
        if (this.$scopedSlots.item) {
          return this.$createElement('v-list-tile', data, [this.$scopedSlots.item({ parent: this, item: item })]);
        }
  
        return this.$createElement('v-list-tile', data, [this.genAction(item, active), this.genContent(item)]);
      },
      genAction: function genAction(item, active) {
        var _this7 = this;
  
        if (!this.multiple) return null;
  
        var data = {
          'class': {
            'list__tile__action--select-multi': this.multiple
          },
          on: {
            click: function click(e) {
              e.stopPropagation();
              _this7.selectItem(item);
            }
          }
        };
  
        return this.$createElement('v-list-tile-action', data, [this.$createElement('v-checkbox', { props: { inputValue: active } })]);
      },
      genContent: function genContent(item) {
        return this.$createElement('v-list-tile-content', [this.$createElement('v-list-tile-title', this.getText(item))]);
      }
    }
  });
  
  /***/ }),
  /* 104 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VCheckbox__ = __webpack_require__(26);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VRadio__ = __webpack_require__(105);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__VSwitch__ = __webpack_require__(106);
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VCheckbox: __WEBPACK_IMPORTED_MODULE_0__VCheckbox__["a" /* default */],
    VRadio: __WEBPACK_IMPORTED_MODULE_1__VRadio__["a" /* default */],
    VSwitch: __WEBPACK_IMPORTED_MODULE_2__VSwitch__["a" /* default */]
  });
  
  /***/ }),
  /* 105 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_input__ = __webpack_require__(7);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_colorable__ = __webpack_require__(28);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'radio',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_input__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__mixins_colorable__["a" /* default */]],
  
    model: {
      prop: 'inputValue',
      event: 'change'
    },
  
    props: {
      inputValue: [String, Number]
    },
  
    computed: {
      isActive: function isActive() {
        return this.inputValue === this.value;
      },
      classes: function classes() {
        return this.addColorClassChecks({
          'radio': true,
          'input-group--selection-controls': true,
          'input-group--active': this.isActive
        });
      },
      icon: function icon() {
        return this.isActive ? 'radio_button_checked' : 'radio_button_unchecked';
      }
    },
  
    methods: {
      genLabel: function genLabel() {
        return this.$createElement('label', {
          on: { click: this.toggle }
        }, this.label);
      },
      toggle: function toggle() {
        if (!this.disabled) {
          this.$emit('change', this.value);
        }
      }
    },
  
    render: function render(h) {
      var transition = h('v-fade-transition', {}, [h('v-icon', {
        'class': {
          'icon--radio': this.isActive
        },
        key: this.icon
      }, this.icon)]);
  
      var ripple = h('div', {
        'class': 'input-group--selection-controls__ripple',
        on: Object.assign({}, {
          click: this.toggle
        }, this.$listeners),
        directives: [{
          name: 'ripple',
          value: { center: true }
        }]
      });
  
      return this.genInputGroup([transition, ripple]);
    }
  });
  
  /***/ }),
  /* 106 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_selectable__ = __webpack_require__(27);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'switch',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_selectable__["a" /* default */]],
  
    computed: {
      classes: function classes() {
        return {
          'input-group--selection-controls switch': true
        };
      },
      rippleClasses: function rippleClasses() {
        return {
          'input-group--selection-controls__ripple': true,
          'input-group--selection-controls__ripple--active': this.isActive
        };
      },
      containerClasses: function containerClasses() {
        return this.addColorClassChecks({
          'input-group--selection-controls__container': true,
          'input-group--selection-controls__container--light': this.light,
          'input-group--selection-controls__container--disabled': this.disabled
        });
      },
      toggleClasses: function toggleClasses() {
        return {
          'input-group--selection-controls__toggle': true,
          'input-group--selection-controls__toggle--active': this.isActive
        };
      }
    },
  
    render: function render(h) {
      var ripple = h('div', {
        'class': this.rippleClasses,
        on: Object.assign({}, {
          click: this.toggle
        }, this.$listeners),
        directives: [{
          name: 'ripple',
          value: { center: true }
        }]
      });
  
      var container = h('div', {
        'class': this.containerClasses
      }, [h('div', { 'class': this.toggleClasses }), ripple]);
  
      return this.genInputGroup([container]);
    }
  });
  
  /***/ }),
  /* 107 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VSlider__ = __webpack_require__(108);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VSlider: __WEBPACK_IMPORTED_MODULE_0__VSlider__["a" /* default */]
  });
  
  /***/ }),
  /* 108 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_input__ = __webpack_require__(7);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_helpers__ = __webpack_require__(0);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-slider',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_input__["a" /* default */]],
  
    data: function data() {
      return {
        app: {},
        isActive: false,
        inputWidth: 0
      };
    },
  
  
    props: {
      inverted: Boolean,
      min: {
        type: [Number, String],
        default: 0
      },
      max: {
        type: [Number, String],
        default: 100
      },
      step: {
        type: [Number, String],
        default: null
      },
      thumbLabel: Boolean,
      value: [Number, String],
      vertical: Boolean,
      snap: Boolean
    },
  
    computed: {
      classes: function classes() {
        return {
          'input-group input-group--slider': true,
          'input-group--active': this.isActive,
          'input-group--dirty': this.inputWidth > 0,
          'input-group--disabled': this.disabled,
          'input-group--ticks': !this.disabled && this.step
        };
      },
  
      inputValue: {
        get: function get() {
          return this.value;
        },
        set: function set(val) {
          var min = this.min,
              max = this.max,
              step = this.step,
              snap = this.snap;
  
          val = val < min ? min : val > max ? max : val;
          if (Math.ceil(val) !== Math.ceil(this.lazyValue)) {
            this.inputWidth = this.calculateWidth(val);
          }
  
          var value = snap ? Math.round(val / step) * step : parseInt(val);
          this.lazyValue = value;
  
          if (value !== this.value) {
            this.$emit('input', value);
          }
        }
      },
      interval: function interval() {
        return 100 / (this.max - this.min) * this.step;
      },
      thumbContainerClasses: function thumbContainerClasses() {
        return {
          'slider__thumb-container': true,
          'slider__thumb-container--label': this.thumbLabel
        };
      },
      thumbStyles: function thumbStyles() {
        return {
          left: this.inputWidth + '%'
        };
      },
      tickContainerStyles: function tickContainerStyles() {
        return {
          transform: 'translate3d(0, -50%, 0)'
        };
      },
      trackStyles: function trackStyles() {
        var scaleX = this.calculateScale(1 - this.inputWidth / 100);
        var translateX = this.inputWidth < 1 && !this.isActive ? 8 + 'px' : 0;
        return {
          transform: 'scaleX(' + scaleX + ') translateX(' + translateX + ')'
        };
      },
      trackFillStyles: function trackFillStyles() {
        var inputWidth = this.inputWidth;
        var scaleX = this.calculateScale(inputWidth / 100);
        var translateX = inputWidth > 99 && !this.thumbLabel ? -8 + 'px' : 0;
        return {
          transform: 'scaleX(' + scaleX + ') translateX(' + translateX + ')'
        };
      },
      numTicks: function numTicks() {
        return parseInt((this.max - this.min) / this.step);
      }
    },
  
    watch: {
      value: function value() {
        this.inputValue = this.value;
      }
    },
  
    mounted: function mounted() {
      var _this = this;
  
      this.inputValue = this.value;
      this.$nextTick(function () {
        _this.inputWidth = _this.calculateWidth(_this.inputValue);
      });
  
      // Without a v-app, iOS does not work with body selectors
      this.app = document.querySelector('[data-app]') || console.warn('The v-slider component requires the present of v-app or a non-body wrapping element with the [data-app] attribute.');
    },
  
  
    methods: {
      calculateWidth: function calculateWidth(val) {
        if (this.snap) {
          val = Math.round(val / this.step) * this.step;
        }
  
        val = (val - this.min) / (this.max - this.min) * 100;
  
        return val < 0.15 ? 0 : val;
      },
      calculateScale: function calculateScale(scale) {
        if (scale < 0.02 && !this.thumbLabel) {
          return 0;
        }
  
        return this.disabled ? scale - 0.015 : scale;
      },
      onMouseDown: function onMouseDown(e) {
        var options = { passive: true };
        this.isActive = true;
  
        if ('touches' in e) {
          this.app.addEventListener('touchmove', this.onMouseMove, options);
          Object(__WEBPACK_IMPORTED_MODULE_1__util_helpers__["a" /* addOnceEventListener */])(this.app, 'touchend', this.onMouseUp);
        } else {
          this.app.addEventListener('mousemove', this.onMouseMove, options);
          Object(__WEBPACK_IMPORTED_MODULE_1__util_helpers__["a" /* addOnceEventListener */])(this.app, 'mouseup', this.onMouseUp);
        }
      },
      onMouseUp: function onMouseUp() {
        var options = { passive: true };
        this.isActive = false;
        this.app.removeEventListener('touchmove', this.onMouseMove, options);
        this.app.removeEventListener('mousemove', this.onMouseMove, options);
      },
      onMouseMove: function onMouseMove(e) {
        var _$refs$track$getBound = this.$refs.track.getBoundingClientRect(),
            offsetLeft = _$refs$track$getBound.left,
            trackWidth = _$refs$track$getBound.width;
  
        var clientX = 'touches' in e ? e.touches[0].clientX : e.clientX;
        var left = (clientX - offsetLeft) / trackWidth * 100;
  
        left = left < 0 ? 0 : left > 100 ? 100 : left;
  
        this.inputValue = this.min + left / 100 * (this.max - this.min);
      },
      onKeyDown: function onKeyDown(e) {
        if (!e.keyCode === 37 && !e.keyCode === 39) return;
  
        var direction = e.keyCode === 37 && -1 || e.keyCode === 39 && 1 || 0;
        var multiplier = e.shiftKey && 3 || e.ctrlKey && 2 || 1;
        var amount = this.snap && this.step || 1;
  
        this.inputValue = this.inputValue + direction * amount * multiplier;
      },
      sliderMove: function sliderMove(e) {
        if (!this.isActive) {
          this.onMouseMove(e);
        }
      },
      genThumbLabel: function genThumbLabel(h) {
        return h('v-scale-transition', {
          props: { origin: 'bottom center' }
        }, [h('div', {
          'class': 'slider__thumb--label__container',
          directives: [{
            name: 'show',
            value: this.isActive
          }]
        }, [h('div', { 'class': 'slider__thumb--label' }, [h('span', {}, parseInt(this.inputValue))])])]);
      },
      genThumbContainer: function genThumbContainer(h) {
        var children = [];
        children.push(h('div', { 'class': 'slider__thumb' }));
  
        this.thumbLabel && children.push(this.genThumbLabel(h));
  
        return h('div', {
          'class': this.thumbContainerClasses,
          style: this.thumbStyles,
          on: {
            touchstart: this.onMouseDown,
            mousedown: this.onMouseDown
          },
          ref: 'thumb'
        }, children);
      },
      genSteps: function genSteps(h) {
        var _this2 = this;
  
        var ticks = Object(__WEBPACK_IMPORTED_MODULE_1__util_helpers__["c" /* createRange */])(this.numTicks + 1).map(function (i) {
          var span = h('span', {
            class: 'slider__tick',
            style: {
              left: i * (100 / _this2.numTicks) + '%'
            }
          });
  
          return span;
        });
  
        return h('div', {
          'class': 'slider__ticks-container',
          style: this.tickContainerStyles
        }, ticks);
      },
      genTrackContainer: function genTrackContainer(h) {
        var children = [h('div', {
          'class': 'slider__track',
          style: this.trackStyles
        }), h('div', {
          'class': 'slider__track-fill',
          style: this.trackFillStyles
        })];
  
        return h('div', {
          'class': 'slider__track__container',
          ref: 'track'
        }, children);
      }
    },
  
    render: function render(h) {
      var children = [];
  
      children.push(this.genTrackContainer(h));
      this.step && children.push(this.genSteps(h));
      children.push(this.genThumbContainer(h));
  
      var slider = h('div', { 'class': 'slider' }, children);
  
      return this.genInputGroup([slider], {
        attrs: {
          role: 'slider',
          tabindex: this.tabindex
        },
        on: Object.assign({}, {
          mouseup: this.sliderMove,
          keydown: this.onKeyDown
        }, this.$listeners),
        directives: [{
          name: 'click-outside'
        }]
      });
    }
  });
  
  /***/ }),
  /* 109 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VSubheader__ = __webpack_require__(110);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VSubheader: __WEBPACK_IMPORTED_MODULE_0__VSubheader__["a" /* default */]
  });
  
  /***/ }),
  /* 110 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_themeable__ = __webpack_require__(1);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    functional: true,
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_themeable__["a" /* default */]],
  
    props: {
      inset: Boolean
    },
  
    render: function render(h, _ref) {
      var data = _ref.data,
          children = _ref.children,
          props = _ref.props;
  
      data.staticClass = ('subheader ' + (data.staticClass || '')).trim();
  
      if (props.inset) data.staticClass += ' subheader--inset';
      if (props.light) data.staticClass += ' theme--light';
      if (props.dark) data.staticClass += ' theme--dark';
  
      return h('li', data, children);
    }
  });
  
  /***/ }),
  /* 111 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_helpers__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VStepper__ = __webpack_require__(112);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__VStepperStep__ = __webpack_require__(113);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__VStepperContent__ = __webpack_require__(114);
  
  
  
  
  
  var VStepperHeader = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["d" /* createSimpleFunctional */])('stepper__header');
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VStepper: __WEBPACK_IMPORTED_MODULE_1__VStepper__["a" /* default */],
    VStepperContent: __WEBPACK_IMPORTED_MODULE_3__VStepperContent__["a" /* default */],
    VStepperHeader: VStepperHeader,
    VStepperStep: __WEBPACK_IMPORTED_MODULE_2__VStepperStep__["a" /* default */]
  });
  
  /***/ }),
  /* 112 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_themeable__ = __webpack_require__(1);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-stepper',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_themeable__["a" /* default */]],
  
    provide: function provide() {
      return {
        stepClick: this.stepClick
      };
    },
    data: function data() {
      return {
        inputValue: null,
        isBooted: false,
        steps: [],
        content: [],
        isReverse: false
      };
    },
  
  
    props: {
      nonLinear: Boolean,
      altLabels: Boolean,
      vertical: Boolean,
      value: [Number, String]
    },
  
    computed: {
      classes: function classes() {
        return {
          'stepper': true,
          'stepper--is-booted': this.isBooted,
          'stepper--vertical': this.vertical,
          'stepper--alt-labels': this.altLabels,
          'stepper--non-linear': this.nonLinear,
          'theme--dark': this.dark,
          'theme--light': this.light
        };
      }
    },
  
    watch: {
      inputValue: function inputValue(val, prev) {
        var _this = this;
  
        this.isReverse = Number(val) < Number(prev);
        this.steps.forEach(function (i) {
          return i.toggle(_this.inputValue);
        });
        this.content.forEach(function (i) {
          return i.toggle(_this.inputValue, _this.isReverse);
        });
  
        this.$emit('input', this.inputValue);
        prev && (this.isBooted = true);
      },
      value: function value() {
        this.inputValue = this.value;
      }
    },
  
    mounted: function mounted() {
      this.$vuetify.load(this.init);
    },
  
  
    methods: {
      init: function init() {
        var _this2 = this;
  
        this.$children.forEach(function (i) {
          if (i.$options._componentTag === 'v-stepper-step') {
            _this2.steps.push(i);
          } else if (i.$options._componentTag === 'v-stepper-content') {
            i.isVertical = _this2.vertical;
            _this2.content.push(i);
          }
        });
  
        this.inputValue = this.value || this.steps[0].step || 1;
      },
      stepClick: function stepClick(step) {
        this.inputValue = step;
      }
    },
  
    render: function render(h) {
      return h('div', {
        'class': this.classes
      }, this.$slots.default);
    }
  });
  
  /***/ }),
  /* 113 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-stepper-step',
  
    inject: ['stepClick'],
  
    data: function data() {
      return {
        isActive: false,
        isInactive: true
      };
    },
  
  
    props: {
      complete: Boolean,
      completeIcon: {
        type: String,
        default: 'check'
      },
      editIcon: {
        type: String,
        default: 'edit'
      },
      errorIcon: {
        type: String,
        default: 'warning'
      },
      editable: Boolean,
      rules: {
        type: Array,
        default: function _default() {
          return [];
        }
      },
      step: [Number, String]
    },
  
    computed: {
      classes: function classes() {
        return {
          'stepper__step': true,
          'stepper__step--active': this.isActive,
          'stepper__step--editable': this.editable,
          'stepper__step--inactive': this.isInactive,
          'stepper__step--error': this.hasError,
          'stepper__step--complete': this.complete
        };
      },
      hasError: function hasError() {
        return this.rules.some(function (i) {
          return i() !== true;
        });
      }
    },
  
    methods: {
      click: function click(e) {
        e.stopPropagation();
  
        if (this.editable) {
          this.stepClick(this.step);
        }
      },
      toggle: function toggle(step) {
        this.isActive = step.toString() === this.step.toString();
        this.isInactive = Number(step) < Number(this.step);
      }
    },
  
    render: function render(h) {
      var data = {
        'class': this.classes,
        directives: [{
          name: 'ripple',
          value: this.editable
        }],
        on: { click: this.click }
      };
      var stepContent = void 0;
  
      if (this.hasError) {
        stepContent = [h('v-icon', {}, this.errorIcon)];
      } else if (this.complete) {
        if (this.editable) {
          stepContent = [h('v-icon', {}, this.editIcon)];
        } else {
          stepContent = [h('v-icon', {}, this.completeIcon)];
        }
      } else {
        stepContent = this.step;
      }
  
      var step = h('span', { 'class': 'stepper__step__step' }, stepContent);
      var label = h('div', { 'class': 'stepper__label' }, this.$slots.default);
  
      return h('div', data, [step, label]);
    }
  });
  
  /***/ }),
  /* 114 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-stepper-content',
  
    data: function data() {
      return {
        height: 0,
        isActive: false,
        isReverse: false,
        isVertical: false
      };
    },
  
  
    props: {
      step: {
        type: [Number, String],
        required: true
      }
    },
  
    computed: {
      classes: function classes() {
        return {
          'stepper__content': true
        };
      },
      computedTransition: function computedTransition() {
        return this.isReverse ? 'v-tab-reverse-transition' : 'v-tab-transition';
      },
      styles: function styles() {
        if (!this.isVertical) return {};
  
        return {
          height: !isNaN(this.height) ? this.height + 'px' : this.height
        };
      },
      wrapperClasses: function wrapperClasses() {
        return {
          'stepper__wrapper': true
        };
      }
    },
  
    watch: {
      isActive: function isActive() {
        if (!this.isVertical) {
          return;
        }
  
        if (this.isActive) {
          this.enter();
        } else {
          this.leave();
        }
      }
    },
  
    mounted: function mounted() {
      this.$refs.wrapper.addEventListener('transitionend', this.onTransition, false);
    },
    beforeDestroy: function beforeDestroy() {
      this.$refs.wrapper.removeEventListener('transitionend', this.onTransition, false);
    },
  
  
    methods: {
      onTransition: function onTransition() {
        if (!this.isActive) return;
  
        this.height = 'auto';
      },
      enter: function enter() {
        var _this = this;
  
        var scrollHeight = 0;
  
        // Render bug with height
        setTimeout(function () {
          scrollHeight = _this.$refs.wrapper.scrollHeight;
        }, 0);
  
        this.height = 0;
  
        // Give the collapsing element time to collapse
        setTimeout(function () {
          return _this.height = scrollHeight || 'auto';
        }, 450);
      },
      leave: function leave() {
        var _this2 = this;
  
        this.height = this.$refs.wrapper.clientHeight;
        setTimeout(function () {
          return _this2.height = 0;
        }, 0);
      },
      toggle: function toggle(step, reverse) {
        this.isActive = step.toString() === this.step.toString();
        this.isReverse = reverse;
      }
    },
  
    render: function render(h) {
      var contentData = {
        'class': this.classes
      };
      var wrapperData = {
        'class': this.wrapperClasses,
        style: this.styles,
        ref: 'wrapper'
      };
  
      if (!this.isVertical) {
        contentData.directives = [{
          name: 'show',
          value: this.isActive
        }];
      }
  
      var wrapper = h('div', wrapperData, [this.$slots.default]);
      var content = h('div', contentData, [wrapper]);
  
      return h(this.computedTransition, {
        on: this.$listeners
      }, [content]);
    }
  });
  
  /***/ }),
  /* 115 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* unused harmony export VTableOverflow */
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_helpers__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VDataTable__ = __webpack_require__(116);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__VEditDialog__ = __webpack_require__(121);
  
  
  
  
  var VTableOverflow = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["d" /* createSimpleFunctional */])('table__overflow');
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VDataTable: __WEBPACK_IMPORTED_MODULE_1__VDataTable__["a" /* default */],
    VEditDialog: __WEBPACK_IMPORTED_MODULE_2__VEditDialog__["a" /* default */],
    VTableOverflow: VTableOverflow
  });
  
  /***/ }),
  /* 116 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_head__ = __webpack_require__(117);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_body__ = __webpack_require__(118);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__mixins_foot__ = __webpack_require__(119);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mixins_progress__ = __webpack_require__(120);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__mixins_filterable__ = __webpack_require__(25);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__mixins_themeable__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_buttons_VBtn__ = __webpack_require__(5);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_icons_VIcon__ = __webpack_require__(3);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_progress_VProgressLinear__ = __webpack_require__(23);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__components_selects_VSelect__ = __webpack_require__(24);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__util_helpers__ = __webpack_require__(0);
  var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  
  var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-datatable',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_head__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__mixins_body__["a" /* default */], __WEBPACK_IMPORTED_MODULE_4__mixins_filterable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_2__mixins_foot__["a" /* default */], __WEBPACK_IMPORTED_MODULE_3__mixins_progress__["a" /* default */], __WEBPACK_IMPORTED_MODULE_5__mixins_themeable__["a" /* default */]],
  
    components: {
      VBtn: __WEBPACK_IMPORTED_MODULE_6__components_buttons_VBtn__["a" /* default */],
      VIcon: __WEBPACK_IMPORTED_MODULE_7__components_icons_VIcon__["a" /* default */],
      VProgressLinear: __WEBPACK_IMPORTED_MODULE_8__components_progress_VProgressLinear__["a" /* default */],
      VSelect: __WEBPACK_IMPORTED_MODULE_9__components_selects_VSelect__["a" /* default */],
      // Importing does not work properly
      'v-table-overflow': Object(__WEBPACK_IMPORTED_MODULE_10__util_helpers__["d" /* createSimpleFunctional */])('table__overflow')
    },
  
    data: function data() {
      return {
        all: false,
        searchLength: 0,
        defaultPagination: {
          page: 1,
          rowsPerPage: 5,
          descending: false,
          totalItems: 0
        }
      };
    },
  
  
    props: {
      headers: {
        type: Array,
        default: function _default() {
          return [];
        }
      },
      headerText: {
        type: String,
        default: 'text'
      },
      hideActions: Boolean,
      noResultsText: {
        type: String,
        default: 'No matching records found'
      },
      rowsPerPageItems: {
        type: Array,
        default: function _default() {
          return [5, 10, 25, { text: 'All', value: -1 }];
        }
      },
      rowsPerPageText: {
        type: String,
        default: 'Rows per page:'
      },
      selectAll: [Boolean, String],
      search: {
        required: false
      },
      filter: {
        type: Function,
        default: function _default(val, search) {
          return val !== null && ['undefined', 'boolean'].indexOf(typeof val === 'undefined' ? 'undefined' : _typeof(val)) === -1 && val.toString().toLowerCase().indexOf(search) !== -1;
        }
      },
      customFilter: {
        type: Function,
        default: function _default(items, search, filter) {
          search = search.toString().toLowerCase();
          return items.filter(function (i) {
            return Object.keys(i).some(function (j) {
              return filter(i[j], search);
            });
          });
        }
      },
      customSort: {
        type: Function,
        default: function _default(items, index, isDescending) {
          if (index === null) return items;
  
          return items.sort(function (a, b) {
            var sortA = Object(__WEBPACK_IMPORTED_MODULE_10__util_helpers__["g" /* getObjectValueByPath */])(a, index);
            var sortB = Object(__WEBPACK_IMPORTED_MODULE_10__util_helpers__["g" /* getObjectValueByPath */])(b, index);
  
            if (isDescending) {
              var _ref = [sortB, sortA];
              sortA = _ref[0];
              sortB = _ref[1];
            }
  
            // Check if both are numbers
            if (!isNaN(sortA) && !isNaN(sortB)) {
              return sortA - sortB;
            }
  
            // Check if both cannot be evaluated
            if (sortA === null && sortB === null) {
              return 0;
            }
  
            var _map = [sortA, sortB].map(function (s) {
              return (s || '').toString().toLocaleLowerCase();
            });
  
            var _map2 = _slicedToArray(_map, 2);
  
            sortA = _map2[0];
            sortB = _map2[1];
  
  
            if (sortA > sortB) return 1;
            if (sortA < sortB) return -1;
  
            return 0;
          });
        }
      },
      value: {
        type: Array,
        default: function _default() {
          return [];
        }
      },
      items: {
        type: Array,
        required: true,
        default: function _default() {
          return [];
        }
      },
      totalItems: {
        type: Number,
        default: null
      },
      loading: {
        type: [Boolean, String],
        default: false
      },
      selectedKey: {
        type: String,
        default: 'id'
      },
      pagination: {
        type: Object,
        default: null
      }
    },
  
    computed: {
      classes: function classes() {
        return {
          'datatable table': true,
          'datatable--select-all': this.selectAll !== false,
          'theme--dark': this.dark,
          'theme--light': this.light
        };
      },
      computedPagination: function computedPagination() {
        return this.pagination || this.defaultPagination;
      },
      hasSelectAll: function hasSelectAll() {
        return this.selectAll !== undefined && this.selectAll !== false;
      },
      itemsLength: function itemsLength() {
        if (this.search) return this.searchLength;
        return this.totalItems || this.items.length;
      },
      indeterminate: function indeterminate() {
        return this.hasSelectAll && this.someItems && !this.everyItem;
      },
      everyItem: function everyItem() {
        var _this = this;
  
        return this.filteredItems.length && this.filteredItems.every(function (i) {
          return _this.isSelected(i);
        });
      },
      someItems: function someItems() {
        var _this2 = this;
  
        return this.filteredItems.some(function (i) {
          return _this2.isSelected(i);
        });
      },
      getPage: function getPage() {
        var rowsPerPage = this.computedPagination.rowsPerPage;
  
  
        return rowsPerPage === Object(rowsPerPage) ? rowsPerPage.value : rowsPerPage;
      },
      pageStart: function pageStart() {
        return this.getPage === -1 ? 0 : (this.computedPagination.page - 1) * this.getPage;
      },
      pageStop: function pageStop() {
        return this.getPage === -1 ? this.itemsLength : this.computedPagination.page * this.getPage;
      },
      filteredItems: function filteredItems() {
        if (this.totalItems) return this.items;
  
        var items = this.items.slice();
        var hasSearch = typeof this.search !== 'undefined' && this.search !== null;
  
        if (hasSearch) {
          items = this.customFilter(items, this.search, this.filter);
          this.searchLength = items.length;
        }
  
        items = this.customSort(items, this.computedPagination.sortBy, this.computedPagination.descending);
  
        return this.hideActions && !this.pagination ? items : items.slice(this.pageStart, this.pageStop);
      },
      selected: function selected() {
        var _this3 = this;
  
        var selected = {};
        this.value.forEach(function (i) {
          return selected[i[_this3.selectedKey]] = true;
        });
        return selected;
      }
    },
  
    watch: {
      indeterminate: function indeterminate(val) {
        if (val) this.all = true;
      },
      someItems: function someItems(val) {
        if (!val) this.all = false;
      },
      search: function search() {
        this.updatePagination({ page: 1 });
      },
      everyItem: function everyItem(val) {
        if (val) this.all = true;
      }
    },
  
    methods: {
      updatePagination: function updatePagination(val) {
        var pagination = this.pagination || this.defaultPagination;
        var updatedPagination = Object.assign({}, pagination, val);
  
        if (this.pagination) {
          this.$emit('update:pagination', updatedPagination);
        } else {
          this.defaultPagination = updatedPagination;
        }
      },
      isSelected: function isSelected(item) {
        return this.selected[item[this.selectedKey]];
      },
      sort: function sort(index) {
        var _computedPagination = this.computedPagination,
            sortBy = _computedPagination.sortBy,
            descending = _computedPagination.descending;
  
        if (sortBy === null) {
          this.updatePagination({ sortBy: index, descending: false });
        } else if (sortBy === index && !descending) {
          this.updatePagination({ descending: true });
        } else if (sortBy !== index) {
          this.updatePagination({ sortBy: index, descending: false });
        } else {
          this.updatePagination({ sortBy: null, descending: null });
        }
      },
      needsTR: function needsTR(row) {
        return row.length && row.find(function (c) {
          return c.tag === 'td';
        });
      },
      genTR: function genTR(children) {
        var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  
        return this.$createElement('tr', data, children);
      },
      toggle: function toggle(value) {
        var _this4 = this;
  
        var selected = Object.assign({}, this.selected);
        this.filteredItems.forEach(function (i) {
          return selected[i[_this4.selectedKey]] = value;
        });
  
        this.$emit('input', this.items.filter(function (i) {
          return selected[i[_this4.selectedKey]];
        }));
      }
    },
  
    created: function created() {
      var firstSortable = this.headers.find(function (h) {
        return !('sortable' in h) || h.sortable;
      });
  
      this.defaultPagination.sortBy = firstSortable ? firstSortable.value : null;
  
      if (!this.rowsPerPageItems.length) {
        console.warn('The prop \'rows-per-page-items\' in v-data-table can not be empty.');
      } else {
        this.defaultPagination.rowsPerPage = this.rowsPerPageItems[0];
      }
  
      this.updatePagination(Object.assign({}, this.defaultPagination, this.pagination));
    },
    render: function render(h) {
      return h('v-table-overflow', {}, [h('table', {
        'class': this.classes
      }, [this.genTHead(), this.genTProgress(), this.genTBody(), this.genTFoot()])]);
    }
  });
  
  /***/ }),
  /* 117 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    methods: {
      genTHead: function genTHead() {
        var _this = this;
  
        var children = [];
  
        if (this.$scopedSlots.headers) {
          var row = this.$scopedSlots.headers({
            headers: this.headers,
            indeterminate: this.indeterminate,
            all: this.all
          });
  
          children = this.needsTR(row) ? this.genTR(row) : row;
        } else {
          var _row = this.headers.map(function (o) {
            return _this.genHeader(o);
          });
          var checkbox = this.$createElement('v-checkbox', {
            props: {
              dark: this.dark,
              light: this.light,
              color: this.selectAll === true && '' || this.selectAll,
              hideDetails: true,
              inputValue: this.all,
              indeterminate: this.indeterminate
            },
            on: { change: this.toggle }
          });
  
          this.hasSelectAll && _row.unshift(this.$createElement('th', [checkbox]));
  
          children = this.genTR(_row);
        }
  
        return this.$createElement('thead', [children]);
      },
      genHeader: function genHeader(header) {
        var array = [this.$scopedSlots.headerCell ? this.$scopedSlots.headerCell({ header: header }) : header[this.headerText]];
  
        return this.$createElement.apply(this, ['th'].concat(_toConsumableArray(this.genHeaderData(header, array))));
      },
      genHeaderData: function genHeaderData(header, children) {
        var _this2 = this;
  
        var classes = ['column'];
        var data = {};
        var pagination = this.computedPagination;
  
        if ('sortable' in header && header.sortable || !('sortable' in header)) {
          data.on = { click: function click() {
              return _this2.sort(header.value);
            } };
          if (!('value' in header)) {
            console.warn('Data table headers must have a value property that corresponds to a value in the v-model array');
          }
  
          classes.push('sortable');
          var icon = this.$createElement('v-icon', 'arrow_upward');
          if (header.align && header.align === 'left') {
            children.push(icon);
          } else {
            children.unshift(icon);
          }
  
          var beingSorted = pagination.sortBy === header.value;
          if (beingSorted) {
            classes.push('active');
            classes.push(pagination.descending ? 'desc' : 'asc');
          }
        }
  
        classes.push('text-xs-' + (header.align || 'right'));
        data.class = classes;
  
        return [data, children];
      }
    }
  });
  
  /***/ }),
  /* 118 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    methods: {
      genTBody: function genTBody() {
        var children = [];
  
        if (!this.itemsLength) {
          children.push(this.genEmptyBody(this.noDataText));
        } else if (!this.filteredItems.length) {
          children.push(this.genEmptyBody(this.noResultsText));
        } else {
          children.push(this.genFilteredItems());
        }
  
        return this.$createElement('tbody', children);
      },
      genFilteredItems: function genFilteredItems() {
        var _this = this;
  
        return this.filteredItems.map(function (item, index) {
          var props = { item: item, index: index };
          var key = _this.selectedKey;
  
          Object.defineProperty(props, 'selected', {
            get: function get() {
              return _this.selected[item[_this.selectedKey]];
            },
            set: function set(value) {
              var selected = _this.value.slice();
              if (value) selected.push(item);else selected = selected.filter(function (i) {
                return i[key] !== item[key];
              });
  
              _this.$emit('input', selected);
            }
          });
  
          var row = _this.$scopedSlots.items(props);
  
          return _this.needsTR(row) ? _this.genTR(row, {
            attrs: { active: _this.isSelected(item) }
          }) : row;
        });
      },
      genEmptyBody: function genEmptyBody(text) {
        return this.genTR([this.$createElement('td', {
          'class': 'text-xs-center',
          attrs: { colspan: '100%' }
        }, text)]);
      }
    }
  });
  
  /***/ }),
  /* 119 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    methods: {
      genPrevIcon: function genPrevIcon() {
        var _this = this;
  
        return this.$createElement('v-btn', {
          props: {
            disabled: this.computedPagination.page === 1,
            icon: true,
            flat: true,
            dark: this.dark,
            light: this.light
          },
          on: {
            click: function click() {
              var page = _this.computedPagination.page;
              _this.updatePagination({ page: page - 1 });
            }
          }
        }, [this.$createElement('v-icon', 'chevron_left')]);
      },
      genNextIcon: function genNextIcon() {
        var _this2 = this;
  
        var pagination = this.computedPagination;
        var disabled = pagination.rowsPerPage < 0 || pagination.page * pagination.rowsPerPage >= this.itemsLength || this.pageStop < 0;
  
        return this.$createElement('v-btn', {
          props: {
            disabled: disabled,
            icon: true,
            flat: true,
            dark: this.dark,
            light: this.light
          },
          on: {
            click: function click() {
              var page = _this2.computedPagination.page;
              _this2.updatePagination({ page: page + 1 });
            }
          }
        }, [this.$createElement('v-icon', 'chevron_right')]);
      },
      genSelect: function genSelect() {
        var _this3 = this;
  
        return this.$createElement('div', {
          'class': 'datatable__actions__select'
        }, [this.rowsPerPageText, this.$createElement('v-select', {
          props: {
            items: this.rowsPerPageItems,
            value: this.computedPagination.rowsPerPage,
            hideDetails: true,
            auto: true,
            minWidth: '75px'
          },
          on: {
            input: function input(val) {
              _this3.updatePagination({
                page: 1,
                rowsPerPage: val
              });
            }
          }
        })]);
      },
      genPagination: function genPagination() {
        var pagination = '–';
  
        if (this.itemsLength) {
          var stop = this.itemsLength < this.pageStop || this.pageStop < 0 ? this.itemsLength : this.pageStop;
  
          pagination = this.$scopedSlots.pageText ? this.$scopedSlots.pageText({
            pageStart: this.pageStart + 1,
            pageStop: stop,
            itemsLength: this.itemsLength
          }) : this.pageStart + 1 + '-' + stop + ' of ' + this.itemsLength;
        }
  
        return this.$createElement('div', {
          'class': 'datatable__actions__pagination'
        }, [pagination]);
      },
      genActions: function genActions() {
        return [this.$createElement('div', {
          'class': 'datatable__actions'
        }, [this.genSelect(), this.genPagination(), this.genPrevIcon(), this.genNextIcon()])];
      },
      genTFoot: function genTFoot() {
        var children = [];
  
        if (this.$slots.footer) {
          var footer = this.$slots.footer;
          var row = this.needsTR(footer) ? this.genTR(footer) : footer;
  
          children.push(row);
        }
  
        if (!this.hideActions) {
          children.push(this.genTR([this.$createElement('td', {
            attrs: { colspan: '100%' }
          }, this.genActions())]));
        }
  
        if (!children.length) return null;
        return this.$createElement('tfoot', children);
      }
    }
  });
  
  /***/ }),
  /* 120 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    data: function data() {
      return {
        color: ''
      };
    },
  
  
    watch: {
      loading: function loading(val) {
        if (val) this.color = val;
      }
    },
  
    methods: {
      genTProgress: function genTProgress() {
        var loader = this.$createElement('v-progress-linear', {
          props: {
            primary: this.color === 'primary',
            secondary: this.color === 'secondary',
            success: this.color === 'success',
            info: this.color === 'info',
            warning: this.color === 'warning',
            error: this.color === 'error',
            indeterminate: true,
            height: 3,
            active: !!this.loading
          }
        });
  
        var col = this.$createElement('th', {
          class: 'column',
          attrs: {
            colspan: '100%'
          }
        }, [loader]);
  
        return this.$createElement('thead', {
          class: 'datatable__progress'
        }, [this.genTR([col])]);
      }
    }
  });
  
  /***/ }),
  /* 121 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-edit-dialog',
  
    data: function data() {
      return {
        isActive: false,
        isSaving: false
      };
    },
  
  
    props: {
      cancelText: {
        default: 'Cancel'
      },
      large: Boolean,
      lazy: Boolean,
      saveText: {
        default: 'Save'
      },
      transition: {
        type: String,
        default: 'slide-x-reverse-transition'
      }
    },
  
    watch: {
      isActive: function isActive(val) {
        val && this.$emit('open') && setTimeout(this.focus, 50); // Give DOM time to paint
  
        if (!val) {
          !this.isSaving && this.$emit('cancel');
          this.isSaving && this.$emit('close');
          this.isSaving = false;
        }
      }
    },
  
    methods: {
      cancel: function cancel() {
        this.isActive = false;
      },
      focus: function focus() {
        var input = this.$refs.content.querySelector('input');
        input && input.focus();
      },
      save: function save() {
        this.isSaving = true;
        this.isActive = false;
        this.$emit('save');
      },
      genButton: function genButton(fn, text) {
        return this.$createElement('v-btn', {
          props: {
            flat: true,
            primary: true,
            light: true
          },
          on: { click: fn }
        }, text);
      },
      genActions: function genActions() {
        return this.$createElement('div', {
          'class': 'small-dialog__actions',
          directives: [{
            name: 'show',
            value: this.large
          }]
        }, [this.genButton(this.cancel, this.cancelText), this.genButton(this.save, this.saveText)]);
      },
      genContent: function genContent() {
        var _this = this;
  
        return this.$createElement('div', {
          'class': 'small-dialog__content',
          on: {
            keydown: function keydown(e) {
              e.keyCode === 27 && _this.cancel();
              e.keyCode === 13 && _this.save();
            }
          },
          ref: 'content'
        }, [this.$slots.input]);
      }
    },
  
    render: function render(h) {
      var _this2 = this;
  
      return h('v-menu', {
        'class': 'small-dialog',
        props: {
          transition: this.transition,
          origin: 'top right',
          right: true,
          value: this.isActive,
          closeOnContentClick: false,
          lazy: this.lazy
        },
        on: {
          input: function input(val) {
            return _this2.isActive = val;
          }
        }
      }, [h('a', {
        domProps: { href: 'javascript:;' },
        slot: 'activator'
      }, this.$slots.default), this.genContent(), this.genActions()]);
    }
  });
  
  /***/ }),
  /* 122 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_helpers__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__VTabs__ = __webpack_require__(123);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__VTabsItem__ = __webpack_require__(124);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__VTabsContent__ = __webpack_require__(125);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__VTabsBar__ = __webpack_require__(126);
  
  
  
  
  
  
  var VTabsSlider = Object(__WEBPACK_IMPORTED_MODULE_0__util_helpers__["d" /* createSimpleFunctional */])('tabs__slider', 'li');
  
  var VTabsItems = {
    name: 'v-tabs-items',
  
    render: function render(h) {
      return h('div', { 'class': { 'tabs__items': true } }, [this.$slots.default]);
    }
  };
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VTabsItem: __WEBPACK_IMPORTED_MODULE_2__VTabsItem__["a" /* default */],
    VTabsItems: VTabsItems,
    VTabs: __WEBPACK_IMPORTED_MODULE_1__VTabs__["a" /* default */],
    VTabsContent: __WEBPACK_IMPORTED_MODULE_3__VTabsContent__["a" /* default */],
    VTabsBar: __WEBPACK_IMPORTED_MODULE_4__VTabsBar__["a" /* default */],
    VTabsSlider: VTabsSlider
  });
  
  /***/ }),
  /* 123 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_themeable__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__directives__ = __webpack_require__(4);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-tabs',
  
    directives: {
      Resize: __WEBPACK_IMPORTED_MODULE_1__directives__["Resize"]
    },
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_themeable__["a" /* default */]],
  
    provide: function provide() {
      var _this = this;
  
      return {
        slider: this.slider,
        tabClick: this.tabClick,
        isScrollable: function isScrollable() {
          return _this.scrollable;
        },
        isMobile: function isMobile() {
          return _this.isMobile;
        }
      };
    },
    data: function data() {
      return {
        activators: [],
        activeIndex: null,
        isMobile: false,
        reverse: false,
        target: null,
        tabsSlider: null,
        targetEl: null,
        tabsContainer: null
      };
    },
  
  
    props: {
      centered: Boolean,
      fixed: Boolean,
      grow: Boolean,
      icons: Boolean,
      mobileBreakPoint: {
        type: [Number, String],
        default: 1024
      },
      value: String,
      scrollable: {
        type: Boolean,
        default: true
      }
    },
  
    computed: {
      classes: function classes() {
        return {
          'tabs': true,
          'tabs--centered': this.centered,
          'tabs--fixed': this.fixed,
          'tabs--grow': this.grow,
          'tabs--icons': this.icons,
          'tabs--mobile': this.isMobile,
          'tabs--scroll-bars': this.scrollable,
          'theme--dark': this.dark,
          'theme--light': this.light
        };
      }
    },
  
    watch: {
      value: function value() {
        this.tabClick(this.value);
      },
      activeIndex: function activeIndex() {
        this.updateTabs();
        this.$emit('input', this.target);
        this.isBooted = true;
      }
    },
  
    mounted: function mounted() {
      var _this2 = this;
  
      this.$vuetify.load(function () {
        var activators = _this2.$slots.activators;
  
        if (!activators || !activators.length || !activators[0].componentInstance) return;
  
        var bar = activators[0].componentInstance.$children;
        // // This is a workaround to detect if link is active
        // // when being used as a router or nuxt link
        var i = bar.findIndex(function (t) {
          return t.$el.firstChild.classList.contains('tabs__item--active');
        });
  
        var tab = _this2.value || (bar[i !== -1 ? i : 0] || {}).action;
  
        tab && _this2.tabClick(tab) && _this2.onResize();
      });
    },
    beforeDestroy: function beforeDestroy() {
      window.removeEventListener('resize', this.resize, { passive: true });
    },
  
  
    methods: {
      onResize: function onResize() {
        this.isMobile = window.innerWidth < this.mobileBreakPoint;
        this.slider();
      },
      slider: function slider(el) {
        var _this3 = this;
  
        this.tabsSlider = this.tabsSlider || this.$el.querySelector('.tabs__slider');
  
        this.tabsContainer = this.tabsContainer || this.$el.querySelector('.tabs__container');
  
        if (!this.tabsSlider || !this.tabsContainer) return;
  
        this.targetEl = el || this.targetEl;
  
        if (!this.targetEl || !this.tabsContainer) return;
  
        // Gives DOM time to paint when
        // processing slider for
        // dynamic tabs
        this.$nextTick(function () {
          // #684 Calculate width as %
          var width = _this3.targetEl.scrollWidth / _this3.tabsContainer.clientWidth * 100;
  
          _this3.tabsSlider.style.width = width + '%';
          _this3.tabsSlider.style.left = _this3.targetEl.offsetLeft + 'px';
        });
      },
      tabClick: function tabClick(target) {
        var _this4 = this;
  
        var setActiveIndex = function setActiveIndex(index) {
          if (_this4.activeIndex === index) {
            // #762 update tabs display
            // In case tabs count got changed but activeIndex didn't
            _this4.updateTabs();
          } else {
            _this4.activeIndex = index;
          }
        };
  
        this.target = target;
  
        var content = this.$refs.content;
        if (!content) {
          setActiveIndex(target);
          return;
        }
  
        this.$nextTick(function () {
          var nextIndex = content.$children.findIndex(function (i) {
            return i.id === target;
          });
          _this4.reverse = nextIndex < _this4.activeIndex;
          setActiveIndex(nextIndex);
        });
      },
      updateTabs: function updateTabs() {
        var _this5 = this;
  
        var activators = this.$slots.activators;
        var content = this.$refs.content;
  
        if (!activators || !activators.length || activators.length && !activators[0].componentInstance) return;
  
        activators[0].componentInstance.$children.filter(function (i) {
          return i.$options._componentTag === 'v-tabs-item';
        }).forEach(function (i) {
          return i.toggle(_this5.target);
        });
  
        content && content.$children.forEach(function (i) {
          return i.toggle(_this5.target, _this5.reverse, _this5.isBooted);
        });
      }
    },
  
    render: function render(h) {
      var content = [];
      var slot = [];
      var iter = this.$slots.default || [];
  
      iter.forEach(function (c) {
        if (!c.componentOptions) slot.push(c);else if (c.componentOptions.tag === 'v-tabs-content') content.push(c);else slot.push(c);
      });
  
      var tabs = content.length ? h('v-tabs-items', {
        ref: 'content'
      }, content) : null;
  
      return h('div', {
        'class': this.classes,
        directives: [{
          name: 'resize',
          value: this.onResize
        }]
      }, [slot, this.$slots.activators, tabs]);
    }
  });
  
  /***/ }),
  /* 124 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_route_link__ = __webpack_require__(9);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-tabs-item',
  
    inject: ['slider', 'tabClick'],
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_route_link__["a" /* default */]],
  
    data: function data() {
      return {
        isActive: false
      };
    },
  
  
    props: {
      activeClass: {
        type: String,
        default: 'tabs__item--active'
      }
    },
  
    computed: {
      classes: function classes() {
        var classes = {
          'tabs__item': true,
          'tabs__item--disabled': this.disabled
        };
  
        classes[this.activeClass] = !this.to && this.isActive;
  
        return classes;
      },
      action: function action() {
        var to = this.to || this.href;
  
        if (!to || to === Object(to)) return this._uid;
  
        return to.replace('#', '');
      }
    },
  
    watch: {
      $route: function $route() {
        this.to && this.callSlider();
      }
    },
  
    mounted: function mounted() {
      this.callSlider();
    },
  
  
    methods: {
      callSlider: function callSlider() {
        var _this = this;
  
        setTimeout(function () {
          _this.$el.firstChild.classList.contains('tabs__item--active') && _this.slider(_this.$el);
        }, 0);
      },
      click: function click(e) {
        e.preventDefault();
  
        if (!this.to && !this.href) return;
  
        if (!this.to) {
          this.tabClick(this.action);
        }
  
        this.callSlider();
      },
      toggle: function toggle(action) {
        var _this2 = this;
  
        this.isActive = this.action === action;
  
        this.$nextTick(function () {
          _this2.isActive && _this2.slider(_this2.$el);
        });
      }
    },
  
    render: function render(h) {
      var _generateRouteLink = this.generateRouteLink(),
          tag = _generateRouteLink.tag,
          data = _generateRouteLink.data;
  
      return h('li', {
        'class': 'tabs__li'
      }, [h(tag, data, this.$slots.default)]);
    }
  });
  
  /***/ }),
  /* 125 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_bootable__ = __webpack_require__(10);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-tabs-content',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_bootable__["a" /* default */]],
  
    data: function data() {
      return {
        isActive: false,
        reverse: false
      };
    },
  
  
    props: {
      id: {
        type: String,
        required: true
      },
      lazy: Boolean,
      transition: {
        type: String,
        default: 'v-tab-transition'
      },
      reverseTransition: {
        type: String,
        default: 'v-tab-reverse-transition'
      }
    },
  
    computed: {
      computedTransition: function computedTransition() {
        return this.reverse ? this.reverseTransition : this.transition;
      }
    },
  
    methods: {
      toggle: function toggle(target, reverse, showTransition) {
        this.$el.style.transition = !showTransition ? 'none' : null;
        this.reverse = reverse;
        this.isActive = this.id === target;
      }
    },
  
    render: function render(h) {
      return h(this.computedTransition, {}, [h('div', {
        'class': 'tabs__content',
        domProps: { id: this.id },
        directives: [{
          name: 'show',
          value: this.isActive
        }],
        on: this.$listeners
      }, this.lazy && this.isBooted || !this.lazy ? this.$slots.default : null)]);
    }
  });
  
  /***/ }),
  /* 126 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_icons_VIcon__ = __webpack_require__(3);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__directives__ = __webpack_require__(4);
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-tabs-bar',
  
    directives: {
      Resize: __WEBPACK_IMPORTED_MODULE_1__directives__["Resize"]
    },
  
    inject: ['isScrollable', 'isMobile'],
  
    data: function data() {
      return {
        isOverflowing: false,
        scrollOffset: 0,
        itemOffset: 0,
        startX: 0
      };
    },
  
  
    computed: {
      classes: function classes() {
        return {
          'tabs__bar': true
        };
      },
      containerClasses: function containerClasses() {
        return {
          'tabs__container': true
        };
      },
      wrapperClasses: function wrapperClasses() {
        return {
          'tabs__wrapper': true,
          'tabs__wrapper--scrollable': this.isScrollable(),
          'tabs__wrapper--overflow': this.isOverflowing
        };
      },
      containerStyles: function containerStyles() {
        return {
          'transform': 'translateX(' + -this.scrollOffset + 'px)'
        };
      },
      leftIconVisible: function leftIconVisible() {
        return !this.isMobile() && this.isScrollable() && this.isOverflowing && this.scrollOffset > 0;
      },
      rightIconVisible: function rightIconVisible() {
        if (this.isMobile() || !this.isScrollable() || !this.isOverflowing) return;
  
        // Check one scroll ahead to know the width of right-most item
        var container = this.$refs.container;
        var item = this.newOffsetRight(this.scrollOffset, this.itemOffset);
        var itemWidth = item && container.children[item.index].clientWidth || 0;
        var scrollOffset = this.scrollOffset + container.clientWidth;
  
        return container.scrollWidth - scrollOffset > itemWidth * 0.30;
      }
    },
  
    methods: {
      genContainer: function genContainer() {
        return this.$createElement('ul', {
          'class': this.containerClasses,
          'style': this.containerStyles,
          ref: 'container'
        }, this.$slots.default);
      },
      genIcon: function genIcon(direction) {
        var capitalize = direction.charAt(0).toUpperCase() + direction.slice(1);
        return this.$createElement(__WEBPACK_IMPORTED_MODULE_0__components_icons_VIcon__["a" /* default */], {
          props: _defineProperty({}, '' + direction, true),
          style: { display: 'inline-flex' },
          on: {
            click: this['scroll' + capitalize]
          }
        }, 'chevron_' + direction);
      },
      genWrapper: function genWrapper() {
        return this.$createElement('div', {
          class: this.wrapperClasses,
          directives: [{
            name: 'touch',
            value: {
              start: this.start,
              move: this.move,
              end: this.end
            }
          }]
        }, [this.genContainer()]);
      },
      start: function start(e) {
        this.startX = this.scrollOffset + e.touchstartX;
        this.$refs.container.style.transition = 'none';
      },
      move: function move(e) {
        var offset = this.startX - e.touchmoveX;
        this.scrollOffset = offset;
      },
      end: function end(e) {
        this.onResize();
        var container = this.$refs.container;
        var scrollWidth = container.scrollWidth - this.$el.clientWidth / 2;
        container.style.transition = null;
  
        if (this.scrollOffset < 0 || !this.isOverflowing) {
          this.scrollOffset = 0;
        } else if (this.scrollOffset >= scrollWidth) {
          var lastItem = container.children[container.children.length - 1];
          this.scrollOffset = scrollWidth - lastItem.clientWidth;
        }
      },
      scrollLeft: function scrollLeft() {
        var _newOffset = this.newOffset('Left'),
            offset = _newOffset.offset,
            index = _newOffset.index;
  
        this.scrollOffset = offset;
        this.itemOffset = index;
      },
      scrollRight: function scrollRight() {
        var _newOffset2 = this.newOffset('Right'),
            offset = _newOffset2.offset,
            index = _newOffset2.index;
  
        this.scrollOffset = offset;
        this.itemOffset = index;
      },
      onResize: function onResize() {
        if (this._isDestroyed) return;
  
        var container = this.$refs.container;
        this.isOverflowing = container.clientWidth < container.scrollWidth;
      },
      newOffset: function newOffset(direction) {
        return this['newOffset' + direction](this.scrollOffset, this.itemOffset);
      },
      newOffsetLeft: function newOffsetLeft(currentOffset, currentIndex) {
        var container = this.$refs.container;
        var items = container.children;
        var offset = 0;
  
        for (var index = currentIndex - 1; index >= 0; index--) {
          if (!items[index].classList.contains('tabs__slider')) {
            var newOffset = offset + items[index].clientWidth;
            if (newOffset >= container.clientWidth) {
              return { offset: currentOffset - offset, index: index + 1 };
            }
            offset = newOffset;
          }
        }
  
        return { offset: 0, index: 0 };
      },
      newOffsetRight: function newOffsetRight(currentOffset, currentIndex) {
        var container = this.$refs.container;
        var items = container.children;
        var offset = currentOffset;
  
        for (var index = currentIndex; index < items.length; index++) {
          if (!items[index].classList.contains('tabs__slider')) {
            var newOffset = offset + items[index].clientWidth;
            if (newOffset > currentOffset + container.clientWidth) {
              return { offset: offset, index: index };
            }
            offset = newOffset;
          }
        }
  
        return null;
      }
    },
  
    render: function render(h) {
      return h('div', {
        'class': this.classes,
        directives: [{
          name: 'resize',
          value: this.onResize
        }]
      }, [this.genWrapper(), this.leftIconVisible ? this.genIcon('left') : null, this.rightIconVisible ? this.genIcon('right') : null]);
    }
  });
  
  /***/ }),
  /* 127 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VTextField__ = __webpack_require__(128);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VTextField: __WEBPACK_IMPORTED_MODULE_0__VTextField__["a" /* default */]
  });
  
  /***/ }),
  /* 128 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_input__ = __webpack_require__(7);
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-text-field',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_input__["a" /* default */]],
  
    inheritAttrs: false,
  
    data: function data() {
      return {
        hasFocused: false,
        inputHeight: null
      };
    },
  
  
    props: {
      autofocus: Boolean,
      autoGrow: Boolean,
      counter: Boolean,
      fullWidth: Boolean,
      max: [Number, String],
      min: [Number, String],
      multiLine: Boolean,
      placeholder: String,
      prefix: String,
      rows: {
        default: 5
      },
      singleLine: Boolean,
      solo: Boolean,
      suffix: String,
      textarea: Boolean,
      type: {
        type: String,
        default: 'text'
      }
    },
  
    computed: {
      classes: function classes() {
        return {
          'input-group--text-field': true,
          'input-group--single-line': this.singleLine,
          'input-group--solo': this.solo,
          'input-group--multi-line': this.multiLine,
          'input-group--full-width': this.fullWidth,
          'input-group--prefix': this.prefix,
          'input-group--suffix': this.suffix,
          'input-group--textarea': this.textarea
        };
      },
      hasError: function hasError() {
        return this.validations.length || this.errorMessages.length > 0 || !this.counterIsValid() || !this.validateIsValid() || this.error;
      },
      count: function count() {
        var inputLength = void 0;
        if (this.inputValue) inputLength = this.inputValue.toString().length;else inputLength = 0;
        var min = inputLength;
  
        if (this.counterMin !== 0 && inputLength < this.counterMin) {
          min = this.counterMin;
        }
  
        return min + ' / ' + this.counterMax;
      },
      counterMin: function counterMin() {
        var parsedMin = parseInt(this.min, 10);
        return isNaN(parsedMin) ? 0 : parsedMin;
      },
      counterMax: function counterMax() {
        var parsedMax = parseInt(this.max, 10);
        return isNaN(parsedMax) ? 25 : parsedMax;
      },
  
      inputValue: {
        get: function get() {
          return this.value;
        },
        set: function set(val) {
          if (this.modifiers.trim) {
            val = val.trim();
          }
  
          if (this.modifiers.number) {
            val = Number(val);
          }
  
          if (!this.modifiers.lazy) {
            this.$emit('input', val);
          }
  
          this.lazyValue = val;
        }
      },
      isDirty: function isDirty() {
        return this.lazyValue !== null && typeof this.lazyValue !== 'undefined' && this.lazyValue.toString().length > 0 || this.placeholder;
      }
    },
  
    watch: {
      focused: function focused(val) {
        this.hasFocused = true;
      },
      value: function value() {
        this.lazyValue = this.value;
        this.validate();
        this.multiLine && this.autoGrow && this.calculateInputHeight();
      }
    },
  
    mounted: function mounted() {
      var _this = this;
  
      this.$vuetify.load(function () {
        _this.multiLine && _this.autoGrow && _this.calculateInputHeight();
        _this.autofocus && _this.focus();
      });
    },
  
  
    methods: {
      calculateInputHeight: function calculateInputHeight() {
        var _this2 = this;
  
        this.inputHeight = null;
  
        this.$nextTick(function () {
          var height = _this2.$refs.input.scrollHeight;
          var minHeight = _this2.rows * 24;
          var inputHeight = height < minHeight ? minHeight : height;
          _this2.inputHeight = inputHeight;
        });
      },
      onChange: function onChange(e) {
        this.lazyValue = e.target.value;
        this.$emit('change', this.lazyValue || null);
      },
      onInput: function onInput(e) {
        this.inputValue = e.target.value;
        this.multiLine && this.autoGrow && this.calculateInputHeight();
      },
      blur: function blur(e) {
        var _this3 = this;
  
        this.validate();
        this.$nextTick(function () {
          return _this3.focused = false;
        });
        this.$emit('blur', e);
      },
      focus: function focus(e) {
        this.focused = true;
        this.$refs.input.focus();
        this.$emit('focus', e);
      },
      genCounter: function genCounter() {
        return this.$createElement('div', {
          'class': {
            'input-group__counter': true,
            'input-group__counter--error': !this.counterIsValid()
          }
        }, this.count);
      },
      genInput: function genInput() {
        var tag = this.multiLine || this.textarea ? 'textarea' : 'input';
  
        var data = {
          style: {
            'height': this.inputHeight && this.inputHeight + 'px'
          },
          domProps: {
            autofocus: this.autofocus,
            disabled: this.disabled,
            required: this.required,
            value: this.lazyValue
          },
          attrs: _extends({}, this.$attrs, {
            tabindex: this.tabindex,
            'aria-label': !this.$attrs.id && this.label // Label `for` will be set if we have an id
          }),
          on: _extends({}, this.$listeners, {
            blur: this.blur,
            input: this.onInput,
            focus: this.focus
          }),
          ref: 'input'
        };
  
        if (this.placeholder) data.domProps.placeholder = this.placeholder;
  
        if (!this.counter) {
          if (![undefined, null].includes(this.max)) data.attrs.max = this.max;
          if (![undefined, null].includes(this.min)) data.attrs.min = this.min;
        }
  
        if (!this.textarea && !this.multiLine) {
          data.domProps.type = this.type;
        } else {
          data.domProps.rows = this.rows;
        }
  
        var children = [this.$createElement(tag, data)];
  
        this.prefix && children.unshift(this.genFix('prefix'));
        this.suffix && children.push(this.genFix('suffix'));
  
        return children;
      },
      genFix: function genFix(type) {
        return this.$createElement('span', {
          'class': 'input-group--text-field__' + type
        }, this[type]);
      },
  
      counterIsValid: function counterIsValid() {
        var val = this.inputValue && this.inputValue.toString() || '';
  
        return !this.counter || val.length >= this.counterMin && val.length <= this.counterMax;
      },
      validateIsValid: function validateIsValid() {
        return !this.required || this.required && this.isDirty || !this.hasFocused || this.hasFocused && this.focused;
      }
    },
  
    render: function render() {
      return this.genInputGroup(this.genInput(), { attrs: { tabindex: false } });
    }
  });
  
  /***/ }),
  /* 129 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__VSnackbar__ = __webpack_require__(130);
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    VSnackbar: __WEBPACK_IMPORTED_MODULE_0__VSnackbar__["a" /* default */]
  });
  
  /***/ }),
  /* 130 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mixins_contextualable__ = __webpack_require__(8);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_toggleable__ = __webpack_require__(2);
  
  
  
  /* harmony default export */ __webpack_exports__["a"] = ({
    name: 'v-snackbar',
  
    mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_contextualable__["a" /* default */], __WEBPACK_IMPORTED_MODULE_1__mixins_toggleable__["a" /* default */]],
  
    data: function data() {
      return {
        activeTimeout: {}
      };
    },
  
  
    props: {
      absolute: Boolean,
      bottom: Boolean,
      left: Boolean,
      multiLine: Boolean,
      right: Boolean,
      top: Boolean,
      timeout: {
        type: Number,
        default: 6000
      },
      vertical: Boolean
    },
  
    computed: {
      classes: function classes() {
        return {
          'snack': true,
          'snack--active': this.isActive,
          'snack--absolute': this.absolute,
          'snack--bottom': this.bottom || !this.top,
          'snack--left': this.left,
          'snack--multi-line': this.multiLine && !this.vertical,
          'snack--right': this.right,
          'snack--top': this.top,
          'snack--vertical': this.vertical,
          'primary': this.primary,
          'secondary': this.secondary,
          'success': this.success,
          'info': this.info,
          'warning': this.warning,
          'error': this.error
        };
      },
      computedTransition: function computedTransition() {
        return this.top ? 'v-slide-y-transition' : 'v-slide-y-reverse-transition';
      }
    },
  
    watch: {
      isActive: function isActive() {
        var _this = this;
  
        clearTimeout(this.activeTimeout);
  
        if (this.isActive && this.timeout) {
          this.activeTimeout = setTimeout(function () {
            _this.isActive = false;
          }, this.timeout);
        }
      }
    },
  
    render: function render(h) {
      var children = [];
  
      if (this.isActive) {
        children.push(h('div', {
          'class': 'snack__content'
        }, this.$slots.default));
      }
  
      return h('div', {
        'class': this.classes,
        on: this.$listeners
      }, [h(this.computedTransition, children)]);
    }
  });
  
  /***/ }),
  /* 131 */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  function load(cb) {
    var i = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  
    if (document.readyState === 'complete') {
      return setTimeout(cb, 0);
    }
  
    if (document.readyState === 'interactive' && i <= 10) {
      return setTimeout(function () {
        return load(cb, i + 1);
      }, 200);
    }
  
    window.addEventListener('load', cb);
  }
  
  /* harmony default export */ __webpack_exports__["a"] = (load);
  
  /***/ }),
  /* 132 */
  /***/ (function(module, exports, __webpack_require__) {
  
  /* WEBPACK VAR INJECTION */(function(process) {exports = module.exports = SemVer;
  
  // The debug function is excluded entirely from the minified version.
  /* nomin */ var debug;
  /* nomin */ if (typeof process === 'object' &&
      /* nomin */ process.env &&
      /* nomin */ process.env.NODE_DEBUG &&
      /* nomin */ /\bsemver\b/i.test(process.env.NODE_DEBUG))
    /* nomin */ debug = function() {
      /* nomin */ var args = Array.prototype.slice.call(arguments, 0);
      /* nomin */ args.unshift('SEMVER');
      /* nomin */ console.log.apply(console, args);
      /* nomin */ };
  /* nomin */ else
    /* nomin */ debug = function() {};
  
  // Note: this is the semver.org version of the spec that it implements
  // Not necessarily the package version of this code.
  exports.SEMVER_SPEC_VERSION = '2.0.0';
  
  var MAX_LENGTH = 256;
  var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
  
  // The actual regexps go on exports.re
  var re = exports.re = [];
  var src = exports.src = [];
  var R = 0;
  
  // The following Regular Expressions can be used for tokenizing,
  // validating, and parsing SemVer version strings.
  
  // ## Numeric Identifier
  // A single `0`, or a non-zero digit followed by zero or more digits.
  
  var NUMERICIDENTIFIER = R++;
  src[NUMERICIDENTIFIER] = '0|[1-9]\\d*';
  var NUMERICIDENTIFIERLOOSE = R++;
  src[NUMERICIDENTIFIERLOOSE] = '[0-9]+';
  
  
  // ## Non-numeric Identifier
  // Zero or more digits, followed by a letter or hyphen, and then zero or
  // more letters, digits, or hyphens.
  
  var NONNUMERICIDENTIFIER = R++;
  src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*';
  
  
  // ## Main Version
  // Three dot-separated numeric identifiers.
  
  var MAINVERSION = R++;
  src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' +
                     '(' + src[NUMERICIDENTIFIER] + ')\\.' +
                     '(' + src[NUMERICIDENTIFIER] + ')';
  
  var MAINVERSIONLOOSE = R++;
  src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
                          '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' +
                          '(' + src[NUMERICIDENTIFIERLOOSE] + ')';
  
  // ## Pre-release Version Identifier
  // A numeric identifier, or a non-numeric identifier.
  
  var PRERELEASEIDENTIFIER = R++;
  src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] +
                              '|' + src[NONNUMERICIDENTIFIER] + ')';
  
  var PRERELEASEIDENTIFIERLOOSE = R++;
  src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] +
                                   '|' + src[NONNUMERICIDENTIFIER] + ')';
  
  
  // ## Pre-release Version
  // Hyphen, followed by one or more dot-separated pre-release version
  // identifiers.
  
  var PRERELEASE = R++;
  src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] +
                    '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))';
  
  var PRERELEASELOOSE = R++;
  src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] +
                         '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))';
  
  // ## Build Metadata Identifier
  // Any combination of digits, letters, or hyphens.
  
  var BUILDIDENTIFIER = R++;
  src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+';
  
  // ## Build Metadata
  // Plus sign, followed by one or more period-separated build metadata
  // identifiers.
  
  var BUILD = R++;
  src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] +
               '(?:\\.' + src[BUILDIDENTIFIER] + ')*))';
  
  
  // ## Full Version String
  // A main version, followed optionally by a pre-release version and
  // build metadata.
  
  // Note that the only major, minor, patch, and pre-release sections of
  // the version string are capturing groups.  The build metadata is not a
  // capturing group, because it should not ever be used in version
  // comparison.
  
  var FULL = R++;
  var FULLPLAIN = 'v?' + src[MAINVERSION] +
                  src[PRERELEASE] + '?' +
                  src[BUILD] + '?';
  
  src[FULL] = '^' + FULLPLAIN + '$';
  
  // like full, but allows v1.2.3 and =1.2.3, which people do sometimes.
  // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty
  // common in the npm registry.
  var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] +
                   src[PRERELEASELOOSE] + '?' +
                   src[BUILD] + '?';
  
  var LOOSE = R++;
  src[LOOSE] = '^' + LOOSEPLAIN + '$';
  
  var GTLT = R++;
  src[GTLT] = '((?:<|>)?=?)';
  
  // Something like "2.*" or "1.2.x".
  // Note that "x.x" is a valid xRange identifer, meaning "any version"
  // Only the first item is strictly required.
  var XRANGEIDENTIFIERLOOSE = R++;
  src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*';
  var XRANGEIDENTIFIER = R++;
  src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*';
  
  var XRANGEPLAIN = R++;
  src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' +
                     '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
                     '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' +
                     '(?:' + src[PRERELEASE] + ')?' +
                     src[BUILD] + '?' +
                     ')?)?';
  
  var XRANGEPLAINLOOSE = R++;
  src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
                          '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
                          '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' +
                          '(?:' + src[PRERELEASELOOSE] + ')?' +
                          src[BUILD] + '?' +
                          ')?)?';
  
  var XRANGE = R++;
  src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$';
  var XRANGELOOSE = R++;
  src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$';
  
  // Tilde ranges.
  // Meaning is "reasonably at or greater than"
  var LONETILDE = R++;
  src[LONETILDE] = '(?:~>?)';
  
  var TILDETRIM = R++;
  src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+';
  re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g');
  var tildeTrimReplace = '$1~';
  
  var TILDE = R++;
  src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$';
  var TILDELOOSE = R++;
  src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$';
  
  // Caret ranges.
  // Meaning is "at least and backwards compatible with"
  var LONECARET = R++;
  src[LONECARET] = '(?:\\^)';
  
  var CARETTRIM = R++;
  src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+';
  re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g');
  var caretTrimReplace = '$1^';
  
  var CARET = R++;
  src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$';
  var CARETLOOSE = R++;
  src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$';
  
  // A simple gt/lt/eq thing, or just "" to indicate "any version"
  var COMPARATORLOOSE = R++;
  src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$';
  var COMPARATOR = R++;
  src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$';
  
  
  // An expression to strip any whitespace between the gtlt and the thing
  // it modifies, so that `> 1.2.3` ==> `>1.2.3`
  var COMPARATORTRIM = R++;
  src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] +
                        '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')';
  
  // this one has to use the /g flag
  re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g');
  var comparatorTrimReplace = '$1$2$3';
  
  
  // Something like `1.2.3 - 1.2.4`
  // Note that these all use the loose form, because they'll be
  // checked against either the strict or loose comparator form
  // later.
  var HYPHENRANGE = R++;
  src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' +
                     '\\s+-\\s+' +
                     '(' + src[XRANGEPLAIN] + ')' +
                     '\\s*$';
  
  var HYPHENRANGELOOSE = R++;
  src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' +
                          '\\s+-\\s+' +
                          '(' + src[XRANGEPLAINLOOSE] + ')' +
                          '\\s*$';
  
  // Star ranges basically just allow anything at all.
  var STAR = R++;
  src[STAR] = '(<|>)?=?\\s*\\*';
  
  // Compile to actual regexp objects.
  // All are flag-free, unless they were created above with a flag.
  for (var i = 0; i < R; i++) {
    debug(i, src[i]);
    if (!re[i])
      re[i] = new RegExp(src[i]);
  }
  
  exports.parse = parse;
  function parse(version, loose) {
    if (version instanceof SemVer)
      return version;
  
    if (typeof version !== 'string')
      return null;
  
    if (version.length > MAX_LENGTH)
      return null;
  
    var r = loose ? re[LOOSE] : re[FULL];
    if (!r.test(version))
      return null;
  
    try {
      return new SemVer(version, loose);
    } catch (er) {
      return null;
    }
  }
  
  exports.valid = valid;
  function valid(version, loose) {
    var v = parse(version, loose);
    return v ? v.version : null;
  }
  
  
  exports.clean = clean;
  function clean(version, loose) {
    var s = parse(version.trim().replace(/^[=v]+/, ''), loose);
    return s ? s.version : null;
  }
  
  exports.SemVer = SemVer;
  
  function SemVer(version, loose) {
    if (version instanceof SemVer) {
      if (version.loose === loose)
        return version;
      else
        version = version.version;
    } else if (typeof version !== 'string') {
      throw new TypeError('Invalid Version: ' + version);
    }
  
    if (version.length > MAX_LENGTH)
      throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters')
  
    if (!(this instanceof SemVer))
      return new SemVer(version, loose);
  
    debug('SemVer', version, loose);
    this.loose = loose;
    var m = version.trim().match(loose ? re[LOOSE] : re[FULL]);
  
    if (!m)
      throw new TypeError('Invalid Version: ' + version);
  
    this.raw = version;
  
    // these are actually numbers
    this.major = +m[1];
    this.minor = +m[2];
    this.patch = +m[3];
  
    if (this.major > MAX_SAFE_INTEGER || this.major < 0)
      throw new TypeError('Invalid major version')
  
    if (this.minor > MAX_SAFE_INTEGER || this.minor < 0)
      throw new TypeError('Invalid minor version')
  
    if (this.patch > MAX_SAFE_INTEGER || this.patch < 0)
      throw new TypeError('Invalid patch version')
  
    // numberify any prerelease numeric ids
    if (!m[4])
      this.prerelease = [];
    else
      this.prerelease = m[4].split('.').map(function(id) {
        if (/^[0-9]+$/.test(id)) {
          var num = +id;
          if (num >= 0 && num < MAX_SAFE_INTEGER)
            return num;
        }
        return id;
      });
  
    this.build = m[5] ? m[5].split('.') : [];
    this.format();
  }
  
  SemVer.prototype.format = function() {
    this.version = this.major + '.' + this.minor + '.' + this.patch;
    if (this.prerelease.length)
      this.version += '-' + this.prerelease.join('.');
    return this.version;
  };
  
  SemVer.prototype.toString = function() {
    return this.version;
  };
  
  SemVer.prototype.compare = function(other) {
    debug('SemVer.compare', this.version, this.loose, other);
    if (!(other instanceof SemVer))
      other = new SemVer(other, this.loose);
  
    return this.compareMain(other) || this.comparePre(other);
  };
  
  SemVer.prototype.compareMain = function(other) {
    if (!(other instanceof SemVer))
      other = new SemVer(other, this.loose);
  
    return compareIdentifiers(this.major, other.major) ||
           compareIdentifiers(this.minor, other.minor) ||
           compareIdentifiers(this.patch, other.patch);
  };
  
  SemVer.prototype.comparePre = function(other) {
    if (!(other instanceof SemVer))
      other = new SemVer(other, this.loose);
  
    // NOT having a prerelease is > having one
    if (this.prerelease.length && !other.prerelease.length)
      return -1;
    else if (!this.prerelease.length && other.prerelease.length)
      return 1;
    else if (!this.prerelease.length && !other.prerelease.length)
      return 0;
  
    var i = 0;
    do {
      var a = this.prerelease[i];
      var b = other.prerelease[i];
      debug('prerelease compare', i, a, b);
      if (a === undefined && b === undefined)
        return 0;
      else if (b === undefined)
        return 1;
      else if (a === undefined)
        return -1;
      else if (a === b)
        continue;
      else
        return compareIdentifiers(a, b);
    } while (++i);
  };
  
  // preminor will bump the version up to the next minor release, and immediately
  // down to pre-release. premajor and prepatch work the same way.
  SemVer.prototype.inc = function(release, identifier) {
    switch (release) {
      case 'premajor':
        this.prerelease.length = 0;
        this.patch = 0;
        this.minor = 0;
        this.major++;
        this.inc('pre', identifier);
        break;
      case 'preminor':
        this.prerelease.length = 0;
        this.patch = 0;
        this.minor++;
        this.inc('pre', identifier);
        break;
      case 'prepatch':
        // If this is already a prerelease, it will bump to the next version
        // drop any prereleases that might already exist, since they are not
        // relevant at this point.
        this.prerelease.length = 0;
        this.inc('patch', identifier);
        this.inc('pre', identifier);
        break;
      // If the input is a non-prerelease version, this acts the same as
      // prepatch.
      case 'prerelease':
        if (this.prerelease.length === 0)
          this.inc('patch', identifier);
        this.inc('pre', identifier);
        break;
  
      case 'major':
        // If this is a pre-major version, bump up to the same major version.
        // Otherwise increment major.
        // 1.0.0-5 bumps to 1.0.0
        // 1.1.0 bumps to 2.0.0
        if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0)
          this.major++;
        this.minor = 0;
        this.patch = 0;
        this.prerelease = [];
        break;
      case 'minor':
        // If this is a pre-minor version, bump up to the same minor version.
        // Otherwise increment minor.
        // 1.2.0-5 bumps to 1.2.0
        // 1.2.1 bumps to 1.3.0
        if (this.patch !== 0 || this.prerelease.length === 0)
          this.minor++;
        this.patch = 0;
        this.prerelease = [];
        break;
      case 'patch':
        // If this is not a pre-release version, it will increment the patch.
        // If it is a pre-release it will bump up to the same patch version.
        // 1.2.0-5 patches to 1.2.0
        // 1.2.0 patches to 1.2.1
        if (this.prerelease.length === 0)
          this.patch++;
        this.prerelease = [];
        break;
      // This probably shouldn't be used publicly.
      // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction.
      case 'pre':
        if (this.prerelease.length === 0)
          this.prerelease = [0];
        else {
          var i = this.prerelease.length;
          while (--i >= 0) {
            if (typeof this.prerelease[i] === 'number') {
              this.prerelease[i]++;
              i = -2;
            }
          }
          if (i === -1) // didn't increment anything
            this.prerelease.push(0);
        }
        if (identifier) {
          // 1.2.0-beta.1 bumps to 1.2.0-beta.2,
          // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
          if (this.prerelease[0] === identifier) {
            if (isNaN(this.prerelease[1]))
              this.prerelease = [identifier, 0];
          } else
            this.prerelease = [identifier, 0];
        }
        break;
  
      default:
        throw new Error('invalid increment argument: ' + release);
    }
    this.format();
    this.raw = this.version;
    return this;
  };
  
  exports.inc = inc;
  function inc(version, release, loose, identifier) {
    if (typeof(loose) === 'string') {
      identifier = loose;
      loose = undefined;
    }
  
    try {
      return new SemVer(version, loose).inc(release, identifier).version;
    } catch (er) {
      return null;
    }
  }
  
  exports.diff = diff;
  function diff(version1, version2) {
    if (eq(version1, version2)) {
      return null;
    } else {
      var v1 = parse(version1);
      var v2 = parse(version2);
      if (v1.prerelease.length || v2.prerelease.length) {
        for (var key in v1) {
          if (key === 'major' || key === 'minor' || key === 'patch') {
            if (v1[key] !== v2[key]) {
              return 'pre'+key;
            }
          }
        }
        return 'prerelease';
      }
      for (var key in v1) {
        if (key === 'major' || key === 'minor' || key === 'patch') {
          if (v1[key] !== v2[key]) {
            return key;
          }
        }
      }
    }
  }
  
  exports.compareIdentifiers = compareIdentifiers;
  
  var numeric = /^[0-9]+$/;
  function compareIdentifiers(a, b) {
    var anum = numeric.test(a);
    var bnum = numeric.test(b);
  
    if (anum && bnum) {
      a = +a;
      b = +b;
    }
  
    return (anum && !bnum) ? -1 :
           (bnum && !anum) ? 1 :
           a < b ? -1 :
           a > b ? 1 :
           0;
  }
  
  exports.rcompareIdentifiers = rcompareIdentifiers;
  function rcompareIdentifiers(a, b) {
    return compareIdentifiers(b, a);
  }
  
  exports.major = major;
  function major(a, loose) {
    return new SemVer(a, loose).major;
  }
  
  exports.minor = minor;
  function minor(a, loose) {
    return new SemVer(a, loose).minor;
  }
  
  exports.patch = patch;
  function patch(a, loose) {
    return new SemVer(a, loose).patch;
  }
  
  exports.compare = compare;
  function compare(a, b, loose) {
    return new SemVer(a, loose).compare(b);
  }
  
  exports.compareLoose = compareLoose;
  function compareLoose(a, b) {
    return compare(a, b, true);
  }
  
  exports.rcompare = rcompare;
  function rcompare(a, b, loose) {
    return compare(b, a, loose);
  }
  
  exports.sort = sort;
  function sort(list, loose) {
    return list.sort(function(a, b) {
      return exports.compare(a, b, loose);
    });
  }
  
  exports.rsort = rsort;
  function rsort(list, loose) {
    return list.sort(function(a, b) {
      return exports.rcompare(a, b, loose);
    });
  }
  
  exports.gt = gt;
  function gt(a, b, loose) {
    return compare(a, b, loose) > 0;
  }
  
  exports.lt = lt;
  function lt(a, b, loose) {
    return compare(a, b, loose) < 0;
  }
  
  exports.eq = eq;
  function eq(a, b, loose) {
    return compare(a, b, loose) === 0;
  }
  
  exports.neq = neq;
  function neq(a, b, loose) {
    return compare(a, b, loose) !== 0;
  }
  
  exports.gte = gte;
  function gte(a, b, loose) {
    return compare(a, b, loose) >= 0;
  }
  
  exports.lte = lte;
  function lte(a, b, loose) {
    return compare(a, b, loose) <= 0;
  }
  
  exports.cmp = cmp;
  function cmp(a, op, b, loose) {
    var ret;
    switch (op) {
      case '===':
        if (typeof a === 'object') a = a.version;
        if (typeof b === 'object') b = b.version;
        ret = a === b;
        break;
      case '!==':
        if (typeof a === 'object') a = a.version;
        if (typeof b === 'object') b = b.version;
        ret = a !== b;
        break;
      case '': case '=': case '==': ret = eq(a, b, loose); break;
      case '!=': ret = neq(a, b, loose); break;
      case '>': ret = gt(a, b, loose); break;
      case '>=': ret = gte(a, b, loose); break;
      case '<': ret = lt(a, b, loose); break;
      case '<=': ret = lte(a, b, loose); break;
      default: throw new TypeError('Invalid operator: ' + op);
    }
    return ret;
  }
  
  exports.Comparator = Comparator;
  function Comparator(comp, loose) {
    if (comp instanceof Comparator) {
      if (comp.loose === loose)
        return comp;
      else
        comp = comp.value;
    }
  
    if (!(this instanceof Comparator))
      return new Comparator(comp, loose);
  
    debug('comparator', comp, loose);
    this.loose = loose;
    this.parse(comp);
  
    if (this.semver === ANY)
      this.value = '';
    else
      this.value = this.operator + this.semver.version;
  
    debug('comp', this);
  }
  
  var ANY = {};
  Comparator.prototype.parse = function(comp) {
    var r = this.loose ? re[COMPARATORLOOSE] : re[COMPARATOR];
    var m = comp.match(r);
  
    if (!m)
      throw new TypeError('Invalid comparator: ' + comp);
  
    this.operator = m[1];
    if (this.operator === '=')
      this.operator = '';
  
    // if it literally is just '>' or '' then allow anything.
    if (!m[2])
      this.semver = ANY;
    else
      this.semver = new SemVer(m[2], this.loose);
  };
  
  Comparator.prototype.toString = function() {
    return this.value;
  };
  
  Comparator.prototype.test = function(version) {
    debug('Comparator.test', version, this.loose);
  
    if (this.semver === ANY)
      return true;
  
    if (typeof version === 'string')
      version = new SemVer(version, this.loose);
  
    return cmp(version, this.operator, this.semver, this.loose);
  };
  
  
  exports.Range = Range;
  function Range(range, loose) {
    if ((range instanceof Range) && range.loose === loose)
      return range;
  
    if (!(this instanceof Range))
      return new Range(range, loose);
  
    this.loose = loose;
  
    // First, split based on boolean or ||
    this.raw = range;
    this.set = range.split(/\s*\|\|\s*/).map(function(range) {
      return this.parseRange(range.trim());
    }, this).filter(function(c) {
      // throw out any that are not relevant for whatever reason
      return c.length;
    });
  
    if (!this.set.length) {
      throw new TypeError('Invalid SemVer Range: ' + range);
    }
  
    this.format();
  }
  
  Range.prototype.format = function() {
    this.range = this.set.map(function(comps) {
      return comps.join(' ').trim();
    }).join('||').trim();
    return this.range;
  };
  
  Range.prototype.toString = function() {
    return this.range;
  };
  
  Range.prototype.parseRange = function(range) {
    var loose = this.loose;
    range = range.trim();
    debug('range', range, loose);
    // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
    var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE];
    range = range.replace(hr, hyphenReplace);
    debug('hyphen replace', range);
    // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
    range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace);
    debug('comparator trim', range, re[COMPARATORTRIM]);
  
    // `~ 1.2.3` => `~1.2.3`
    range = range.replace(re[TILDETRIM], tildeTrimReplace);
  
    // `^ 1.2.3` => `^1.2.3`
    range = range.replace(re[CARETTRIM], caretTrimReplace);
  
    // normalize spaces
    range = range.split(/\s+/).join(' ');
  
    // At this point, the range is completely trimmed and
    // ready to be split into comparators.
  
    var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR];
    var set = range.split(' ').map(function(comp) {
      return parseComparator(comp, loose);
    }).join(' ').split(/\s+/);
    if (this.loose) {
      // in loose mode, throw out any that are not valid comparators
      set = set.filter(function(comp) {
        return !!comp.match(compRe);
      });
    }
    set = set.map(function(comp) {
      return new Comparator(comp, loose);
    });
  
    return set;
  };
  
  // Mostly just for testing and legacy API reasons
  exports.toComparators = toComparators;
  function toComparators(range, loose) {
    return new Range(range, loose).set.map(function(comp) {
      return comp.map(function(c) {
        return c.value;
      }).join(' ').trim().split(' ');
    });
  }
  
  // comprised of xranges, tildes, stars, and gtlt's at this point.
  // already replaced the hyphen ranges
  // turn into a set of JUST comparators.
  function parseComparator(comp, loose) {
    debug('comp', comp);
    comp = replaceCarets(comp, loose);
    debug('caret', comp);
    comp = replaceTildes(comp, loose);
    debug('tildes', comp);
    comp = replaceXRanges(comp, loose);
    debug('xrange', comp);
    comp = replaceStars(comp, loose);
    debug('stars', comp);
    return comp;
  }
  
  function isX(id) {
    return !id || id.toLowerCase() === 'x' || id === '*';
  }
  
  // ~, ~> --> * (any, kinda silly)
  // ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0
  // ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0
  // ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0
  // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0
  // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0
  function replaceTildes(comp, loose) {
    return comp.trim().split(/\s+/).map(function(comp) {
      return replaceTilde(comp, loose);
    }).join(' ');
  }
  
  function replaceTilde(comp, loose) {
    var r = loose ? re[TILDELOOSE] : re[TILDE];
    return comp.replace(r, function(_, M, m, p, pr) {
      debug('tilde', comp, _, M, m, p, pr);
      var ret;
  
      if (isX(M))
        ret = '';
      else if (isX(m))
        ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0';
      else if (isX(p))
        // ~1.2 == >=1.2.0 <1.3.0
        ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0';
      else if (pr) {
        debug('replaceTilde pr', pr);
        if (pr.charAt(0) !== '-')
          pr = '-' + pr;
        ret = '>=' + M + '.' + m + '.' + p + pr +
              ' <' + M + '.' + (+m + 1) + '.0';
      } else
        // ~1.2.3 == >=1.2.3 <1.3.0
        ret = '>=' + M + '.' + m + '.' + p +
              ' <' + M + '.' + (+m + 1) + '.0';
  
      debug('tilde return', ret);
      return ret;
    });
  }
  
  // ^ --> * (any, kinda silly)
  // ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0
  // ^2.0, ^2.0.x --> >=2.0.0 <3.0.0
  // ^1.2, ^1.2.x --> >=1.2.0 <2.0.0
  // ^1.2.3 --> >=1.2.3 <2.0.0
  // ^1.2.0 --> >=1.2.0 <2.0.0
  function replaceCarets(comp, loose) {
    return comp.trim().split(/\s+/).map(function(comp) {
      return replaceCaret(comp, loose);
    }).join(' ');
  }
  
  function replaceCaret(comp, loose) {
    debug('caret', comp, loose);
    var r = loose ? re[CARETLOOSE] : re[CARET];
    return comp.replace(r, function(_, M, m, p, pr) {
      debug('caret', comp, _, M, m, p, pr);
      var ret;
  
      if (isX(M))
        ret = '';
      else if (isX(m))
        ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0';
      else if (isX(p)) {
        if (M === '0')
          ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0';
        else
          ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0';
      } else if (pr) {
        debug('replaceCaret pr', pr);
        if (pr.charAt(0) !== '-')
          pr = '-' + pr;
        if (M === '0') {
          if (m === '0')
            ret = '>=' + M + '.' + m + '.' + p + pr +
                  ' <' + M + '.' + m + '.' + (+p + 1);
          else
            ret = '>=' + M + '.' + m + '.' + p + pr +
                  ' <' + M + '.' + (+m + 1) + '.0';
        } else
          ret = '>=' + M + '.' + m + '.' + p + pr +
                ' <' + (+M + 1) + '.0.0';
      } else {
        debug('no pr');
        if (M === '0') {
          if (m === '0')
            ret = '>=' + M + '.' + m + '.' + p +
                  ' <' + M + '.' + m + '.' + (+p + 1);
          else
            ret = '>=' + M + '.' + m + '.' + p +
                  ' <' + M + '.' + (+m + 1) + '.0';
        } else
          ret = '>=' + M + '.' + m + '.' + p +
                ' <' + (+M + 1) + '.0.0';
      }
  
      debug('caret return', ret);
      return ret;
    });
  }
  
  function replaceXRanges(comp, loose) {
    debug('replaceXRanges', comp, loose);
    return comp.split(/\s+/).map(function(comp) {
      return replaceXRange(comp, loose);
    }).join(' ');
  }
  
  function replaceXRange(comp, loose) {
    comp = comp.trim();
    var r = loose ? re[XRANGELOOSE] : re[XRANGE];
    return comp.replace(r, function(ret, gtlt, M, m, p, pr) {
      debug('xRange', comp, ret, gtlt, M, m, p, pr);
      var xM = isX(M);
      var xm = xM || isX(m);
      var xp = xm || isX(p);
      var anyX = xp;
  
      if (gtlt === '=' && anyX)
        gtlt = '';
  
      if (xM) {
        if (gtlt === '>' || gtlt === '<') {
          // nothing is allowed
          ret = '<0.0.0';
        } else {
          // nothing is forbidden
          ret = '*';
        }
      } else if (gtlt && anyX) {
        // replace X with 0
        if (xm)
          m = 0;
        if (xp)
          p = 0;
  
        if (gtlt === '>') {
          // >1 => >=2.0.0
          // >1.2 => >=1.3.0
          // >1.2.3 => >= 1.2.4
          gtlt = '>=';
          if (xm) {
            M = +M + 1;
            m = 0;
            p = 0;
          } else if (xp) {
            m = +m + 1;
            p = 0;
          }
        } else if (gtlt === '<=') {
          // <=0.7.x is actually <0.8.0, since any 0.7.x should
          // pass.  Similarly, <=7.x is actually <8.0.0, etc.
          gtlt = '<';
          if (xm)
            M = +M + 1;
          else
            m = +m + 1;
        }
  
        ret = gtlt + M + '.' + m + '.' + p;
      } else if (xm) {
        ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0';
      } else if (xp) {
        ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0';
      }
  
      debug('xRange return', ret);
  
      return ret;
    });
  }
  
  // Because * is AND-ed with everything else in the comparator,
  // and '' means "any version", just remove the *s entirely.
  function replaceStars(comp, loose) {
    debug('replaceStars', comp, loose);
    // Looseness is ignored here.  star is always as loose as it gets!
    return comp.trim().replace(re[STAR], '');
  }
  
  // This function is passed to string.replace(re[HYPHENRANGE])
  // M, m, patch, prerelease, build
  // 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
  // 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do
  // 1.2 - 3.4 => >=1.2.0 <3.5.0
  function hyphenReplace($0,
                         from, fM, fm, fp, fpr, fb,
                         to, tM, tm, tp, tpr, tb) {
  
    if (isX(fM))
      from = '';
    else if (isX(fm))
      from = '>=' + fM + '.0.0';
    else if (isX(fp))
      from = '>=' + fM + '.' + fm + '.0';
    else
      from = '>=' + from;
  
    if (isX(tM))
      to = '';
    else if (isX(tm))
      to = '<' + (+tM + 1) + '.0.0';
    else if (isX(tp))
      to = '<' + tM + '.' + (+tm + 1) + '.0';
    else if (tpr)
      to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr;
    else
      to = '<=' + to;
  
    return (from + ' ' + to).trim();
  }
  
  
  // if ANY of the sets match ALL of its comparators, then pass
  Range.prototype.test = function(version) {
    if (!version)
      return false;
  
    if (typeof version === 'string')
      version = new SemVer(version, this.loose);
  
    for (var i = 0; i < this.set.length; i++) {
      if (testSet(this.set[i], version))
        return true;
    }
    return false;
  };
  
  function testSet(set, version) {
    for (var i = 0; i < set.length; i++) {
      if (!set[i].test(version))
        return false;
    }
  
    if (version.prerelease.length) {
      // Find the set of versions that are allowed to have prereleases
      // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
      // That should allow `1.2.3-pr.2` to pass.
      // However, `1.2.4-alpha.notready` should NOT be allowed,
      // even though it's within the range set by the comparators.
      for (var i = 0; i < set.length; i++) {
        debug(set[i].semver);
        if (set[i].semver === ANY)
          continue;
  
        if (set[i].semver.prerelease.length > 0) {
          var allowed = set[i].semver;
          if (allowed.major === version.major &&
              allowed.minor === version.minor &&
              allowed.patch === version.patch)
            return true;
        }
      }
  
      // Version has a -pre, but it's not one of the ones we like.
      return false;
    }
  
    return true;
  }
  
  exports.satisfies = satisfies;
  function satisfies(version, range, loose) {
    try {
      range = new Range(range, loose);
    } catch (er) {
      return false;
    }
    return range.test(version);
  }
  
  exports.maxSatisfying = maxSatisfying;
  function maxSatisfying(versions, range, loose) {
    return versions.filter(function(version) {
      return satisfies(version, range, loose);
    }).sort(function(a, b) {
      return rcompare(a, b, loose);
    })[0] || null;
  }
  
  exports.minSatisfying = minSatisfying;
  function minSatisfying(versions, range, loose) {
    return versions.filter(function(version) {
      return satisfies(version, range, loose);
    }).sort(function(a, b) {
      return compare(a, b, loose);
    })[0] || null;
  }
  
  exports.validRange = validRange;
  function validRange(range, loose) {
    try {
      // Return '*' instead of '' so that truthiness works.
      // This will throw if it's invalid anyway
      return new Range(range, loose).range || '*';
    } catch (er) {
      return null;
    }
  }
  
  // Determine if version is less than all the versions possible in the range
  exports.ltr = ltr;
  function ltr(version, range, loose) {
    return outside(version, range, '<', loose);
  }
  
  // Determine if version is greater than all the versions possible in the range.
  exports.gtr = gtr;
  function gtr(version, range, loose) {
    return outside(version, range, '>', loose);
  }
  
  exports.outside = outside;
  function outside(version, range, hilo, loose) {
    version = new SemVer(version, loose);
    range = new Range(range, loose);
  
    var gtfn, ltefn, ltfn, comp, ecomp;
    switch (hilo) {
      case '>':
        gtfn = gt;
        ltefn = lte;
        ltfn = lt;
        comp = '>';
        ecomp = '>=';
        break;
      case '<':
        gtfn = lt;
        ltefn = gte;
        ltfn = gt;
        comp = '<';
        ecomp = '<=';
        break;
      default:
        throw new TypeError('Must provide a hilo val of "<" or ">"');
    }
  
    // If it satisifes the range it is not outside
    if (satisfies(version, range, loose)) {
      return false;
    }
  
    // From now on, variable terms are as if we're in "gtr" mode.
    // but note that everything is flipped for the "ltr" function.
  
    for (var i = 0; i < range.set.length; ++i) {
      var comparators = range.set[i];
  
      var high = null;
      var low = null;
  
      comparators.forEach(function(comparator) {
        if (comparator.semver === ANY) {
          comparator = new Comparator('>=0.0.0')
        }
        high = high || comparator;
        low = low || comparator;
        if (gtfn(comparator.semver, high.semver, loose)) {
          high = comparator;
        } else if (ltfn(comparator.semver, low.semver, loose)) {
          low = comparator;
        }
      });
  
      // If the edge version comparator has a operator then our version
      // isn't outside it
      if (high.operator === comp || high.operator === ecomp) {
        return false;
      }
  
      // If the lowest version comparator has an operator and our version
      // is less than it then it isn't higher than the range
      if ((!low.operator || low.operator === comp) &&
          ltefn(version, low.semver)) {
        return false;
      } else if (low.operator === ecomp && ltfn(version, low.semver)) {
        return false;
      }
    }
    return true;
  }
  
  exports.prerelease = prerelease;
  function prerelease(version, loose) {
    var parsed = parse(version, loose);
    return (parsed && parsed.prerelease.length) ? parsed.prerelease : null;
  }
  
  /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(133)))
  
  /***/ }),
  /* 133 */
  /***/ (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; };
  
  
  /***/ })
  /******/ ]);
  });
  //# sourceMappingURL=vuetify.js.map
  
  /***/ }),
  
  /***/ "./node_modules/webpack/buildin/global.js":
  /***/ (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;
  
  
  /***/ }),
  
  /***/ "./resources/assets/js/admin-app.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var _AdminApp = __webpack_require__("./resources/assets/js/components/admin/Admin-app.vue");
  
  var _AdminApp2 = _interopRequireDefault(_AdminApp);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  __webpack_require__("./resources/assets/js/admin-bootstrap.js");
  
  Vue.component('application', __webpack_require__("./resources/assets/js/components/Application.vue"));
  
  new Vue({
      el: '#app',
      template: '<AdminApp/>',
      components: { AdminApp: _AdminApp2.default }
  });
  
  /***/ }),
  
  /***/ "./resources/assets/js/admin-bootstrap.js":
  /***/ (function(module, exports, __webpack_require__) {
  
  "use strict";
  
  
  var _veeValidate = __webpack_require__("./node_modules/vee-validate/dist/vee-validate.esm.js");
  
  var _veeValidate2 = _interopRequireDefault(_veeValidate);
  
  var _vuetify = __webpack_require__("./node_modules/vuetify/dist/vuetify.js");
  
  var _vuetify2 = _interopRequireDefault(_vuetify);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  
  window.Vue = __webpack_require__("./node_modules/vue/dist/vue.common.js");
  window.EventBus = new Vue();
  
  
  var dictionary = {
  
      en: {
          messages: {
              required: function required() {
                  return "This field is required";
              }
          }
      }
  
  };
  
  Vue.use(_veeValidate2.default);
  Vue.use(_vuetify2.default);
  
  /**
   * We'll load the axios HTTP library which allows us to easily issue requests
   * to our Laravel back-end. This library automatically handles sending the
   * CSRF token as a header based on the value of the "XSRF" token cookie.
   */
  
  window.axios = __webpack_require__("./node_modules/axios/index.js");
  window.swal = __webpack_require__("./node_modules/sweetalert2/dist/sweetalert2.js");
  
  window.axios.defaults.headers.common = {
      //'X-CSRF-TOKEN': window.Laravel.csrfToken,
      'X-Requested-With': 'XMLHttpRequest'
  };
  
  /**
   * Echo exposes an expressive API for subscribing to channels and listening
   * for events that are broadcast by Laravel. Echo and event broadcasting
   * allows your team to easily build robust real-time web applications.
   */
  
  // import Echo from 'laravel-echo'
  
  // window.Pusher = require('pusher-js');
  
  // window.Echo = new Echo({
  //     broadcaster: 'pusher',
  //     key: 'your-pusher-key'
  // });
  
  /***/ }),
  
  /***/ "./resources/assets/js/components/Application.vue":
  /***/ (function(module, exports, __webpack_require__) {
  
  
  /* styles */
  __webpack_require__("./node_modules/vue-style-loader/index.js!./node_modules/css-loader/index.js!./node_modules/vue-loader/lib/style-compiler/index.js?{\"id\":\"data-v-2bd5e1aa\",\"scoped\":true,\"hasInlineConfig\":true}!./node_modules/sass-loader/lib/loader.js!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./resources/assets/js/components/Application.vue")
  
  var Component = __webpack_require__("./node_modules/vue-loader/lib/component-normalizer.js")(
    /* script */
    __webpack_require__("./node_modules/babel-loader/lib/index.js?cacheDirectory!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/components/Application.vue"),
    /* template */
    __webpack_require__("./node_modules/vue-loader/lib/template-compiler/index.js?{\"id\":\"data-v-2bd5e1aa\"}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./resources/assets/js/components/Application.vue"),
    /* scopeId */
    "data-v-2bd5e1aa",
    /* cssModules */
    null
  )
  Component.options.__file = "C:\\Users\\MOHAPI NKEPANE\\Documents\\Enigma\\ftth\\resources\\assets\\js\\components\\Application.vue"
  if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key !== "__esModule"})) {console.error("named exports are not supported in *.vue files.")}
  if (Component.options.functional) {console.error("[vue-loader] Application.vue: functional components are not supported with templates, they should use render functions.")}
  
  /* hot reload */
  if (false) {(function () {
    var hotAPI = require("vue-hot-reload-api")
    hotAPI.install(require("vue"), false)
    if (!hotAPI.compatible) return
    module.hot.accept()
    if (!module.hot.data) {
      hotAPI.createRecord("data-v-2bd5e1aa", Component.options)
    } else {
      hotAPI.reload("data-v-2bd5e1aa", Component.options)
    }
  })()}
  
  module.exports = Component.exports
  
  
  /***/ }),
  
  /***/ "./resources/assets/js/components/admin/Admin-app.vue":
  /***/ (function(module, exports, __webpack_require__) {
  
  var Component = __webpack_require__("./node_modules/vue-loader/lib/component-normalizer.js")(
    /* script */
    __webpack_require__("./node_modules/babel-loader/lib/index.js?cacheDirectory!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./resources/assets/js/components/admin/Admin-app.vue"),
    /* template */
    __webpack_require__("./node_modules/vue-loader/lib/template-compiler/index.js?{\"id\":\"data-v-15c81486\"}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./resources/assets/js/components/admin/Admin-app.vue"),
    /* scopeId */
    null,
    /* cssModules */
    null
  )
  Component.options.__file = "C:\\Users\\MOHAPI NKEPANE\\Documents\\Enigma\\ftth\\resources\\assets\\js\\components\\admin\\Admin-app.vue"
  if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key !== "__esModule"})) {console.error("named exports are not supported in *.vue files.")}
  if (Component.options.functional) {console.error("[vue-loader] Admin-app.vue: functional components are not supported with templates, they should use render functions.")}
  
  /* hot reload */
  if (false) {(function () {
    var hotAPI = require("vue-hot-reload-api")
    hotAPI.install(require("vue"), false)
    if (!hotAPI.compatible) return
    module.hot.accept()
    if (!module.hot.data) {
      hotAPI.createRecord("data-v-15c81486", Component.options)
    } else {
      hotAPI.reload("data-v-15c81486", Component.options)
    }
  })()}
  
  module.exports = Component.exports
  
  
  /***/ }),
  
  /***/ 2:
  /***/ (function(module, exports, __webpack_require__) {
  
  module.exports = __webpack_require__("./resources/assets/js/admin-app.js");
  
  
  /***/ })
  
  /******/ });