text: "use strict";
  
  require("core-js/modules/es6.array.sort");
  
  require("core-js/modules/es6.typed.array-buffer");
  
  require("core-js/modules/es6.typed.int8-array");
  
  require("core-js/modules/es6.typed.uint8-array");
  
  require("core-js/modules/es6.typed.uint8-clamped-array");
  
  require("core-js/modules/es6.typed.int16-array");
  
  require("core-js/modules/es6.typed.uint16-array");
  
  require("core-js/modules/es6.typed.int32-array");
  
  require("core-js/modules/es6.typed.uint32-array");
  
  require("core-js/modules/es6.typed.float32-array");
  
  require("core-js/modules/es6.typed.float64-array");
  
  require("core-js/modules/es6.map");
  
  require("core-js/modules/es6.set");
  
  require("core-js/modules/es6.weak-map");
  
  require("core-js/modules/es6.weak-set");
  
  require("core-js/modules/es6.reflect.apply");
  
  require("core-js/modules/es6.reflect.construct");
  
  require("core-js/modules/es6.reflect.define-property");
  
  require("core-js/modules/es6.reflect.delete-property");
  
  require("core-js/modules/es6.reflect.get");
  
  require("core-js/modules/es6.reflect.get-own-property-descriptor");
  
  require("core-js/modules/es6.reflect.get-prototype-of");
  
  require("core-js/modules/es6.reflect.has");
  
  require("core-js/modules/es6.reflect.is-extensible");
  
  require("core-js/modules/es6.reflect.own-keys");
  
  require("core-js/modules/es6.reflect.prevent-extensions");
  
  require("core-js/modules/es6.reflect.set");
  
  require("core-js/modules/es6.reflect.set-prototype-of");
  
  require("core-js/modules/es6.promise");
  
  require("core-js/modules/es6.symbol");
  
  require("core-js/modules/es6.function.name");
  
  require("core-js/modules/es6.regexp.flags");
  
  require("core-js/modules/es6.regexp.match");
  
  require("core-js/modules/es6.regexp.replace");
  
  require("core-js/modules/es6.regexp.split");
  
  require("core-js/modules/es6.regexp.search");
  
  require("core-js/modules/es6.array.from");
  
  require("core-js/modules/es7.array.includes");
  
  require("core-js/modules/es7.object.values");
  
  require("core-js/modules/es7.object.entries");
  
  require("core-js/modules/es7.object.get-own-property-descriptors");
  
  require("core-js/modules/es7.string.pad-start");
  
  require("core-js/modules/es7.string.pad-end");
  
  require("core-js/modules/es7.promise.finally");
  
  require("core-js/modules/es7.symbol.async-iterator");
  
  require("regenerator-runtime/runtime");
  
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
  
  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; }
  
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
  
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _next(value) { step("next", value); } function _throw(err) { step("throw", err); } _next(); }); }; }
  
  var fetch = require('node-fetch');
  
  var crypto = require('crypto');
  
  exports.sourceNodes =
  /*#__PURE__*/
  function () {
    var _ref3 = _asyncToGenerator(
    /*#__PURE__*/
    regeneratorRuntime.mark(function _callee(_ref, _ref2) {
      var createNode, createNodeId, plugins, options, apiUrl, response, data;
      return regeneratorRuntime.wrap(function _callee$(_context) {
        while (1) {
          switch (_context.prev = _context.next) {
            case 0:
              createNode = _ref.actions.createNode, createNodeId = _ref.createNodeId;
              plugins = _ref2.plugins, options = _objectWithoutProperties(_ref2, ["plugins"]);
              apiUrl = `https://api.openweathermap.org/data/2.5/${options.type}?q=${options.location}&units=${options.units}&apikey=${options.apikey}`;
              _context.next = 5;
              return fetch(apiUrl);
  
            case 5:
              response = _context.sent;
              _context.next = 8;
              return response.json();
  
            case 8:
              data = _context.sent;
              createNode(_objectSpread({}, data, {
                id: createNodeId(`weather-${data.id}`),
                parent: null,
                children: [],
                internal: {
                  type: 'OpenWeather',
                  content: JSON.stringify(data),
                  contentDigest: crypto.createHash('md5').update(JSON.stringify(data)).digest('hex')
                }
              }));
  
            case 10:
            case "end":
              return _context.stop();
          }
        }
      }, _callee, this);
    }));
  
    return function (_x, _x2) {
      return _ref3.apply(this, arguments);
    };
  }();