text: 'use strict';
  
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, 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 _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
  
  var content = require('./content-91dbd37e.js');
  
  var injectedIcon = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M21 18V19C21 20.1 20.1 21 19 21H5C3.89 21 3 20.1 3 19V5C3 3.9 3.89 3 5 3H19C20.1 3 21 3.9 21 5V6H12C10.89 6 10 6.9 10 8V16C10 17.1 10.89 18 12 18H21ZM12 16H22V8H12V16ZM16 13.5C15.17 13.5 14.5 12.83 14.5 12C14.5 11.17 15.17 10.5 16 10.5C16.83 10.5 17.5 11.17 17.5 12C17.5 12.83 16.83 13.5 16 13.5Z\" fill=\"black\"/>\n</svg>";
  
  function injected(options) {
    var _Object$keys$find;
  
    var preferred = options.preferred,
        label = options.label,
        svg = options.svg;
    var provider = window.ethereum || window.web3 && window.web3.currentProvider;
    var name = label || ((_Object$keys$find = Object.keys(provider).find(function (key) {
      return key.startsWith('is') && !key.includes('MetaMask');
    })) === null || _Object$keys$find === void 0 ? void 0 : _Object$keys$find.split('is')[1]) || 'Detected Wallet';
    return {
      name: name,
      svg: svg || injectedIcon,
      wallet: function () {
        var _wallet = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(helpers) {
          var getProviderName, createModernProviderInterface, createLegacyProviderInterface;
          return regeneratorRuntime.wrap(function _callee$(_context) {
            while (1) {
              switch (_context.prev = _context.next) {
                case 0:
                  getProviderName = helpers.getProviderName, createModernProviderInterface = helpers.createModernProviderInterface, createLegacyProviderInterface = helpers.createLegacyProviderInterface;
                  return _context.abrupt("return", {
                    provider: provider,
                    "interface": provider && getProviderName(provider) === undefined ? typeof provider.enable === 'function' ? createModernProviderInterface(provider) : createLegacyProviderInterface(provider) : null
                  });
  
                case 2:
                case "end":
                  return _context.stop();
              }
            }
          }, _callee);
        }));
  
        function wallet(_x) {
          return _wallet.apply(this, arguments);
        }
  
        return wallet;
      }(),
      type: 'injected',
      installMessage: content.extensionInstallMessage,
      desktop: true,
      mobile: true,
      preferred: preferred
    };
  }
  
  exports["default"] = injected;