text: function r(){throw new TypeError("The given URL is not a string. Please verify your string|array.")}var e=["/",":","?","#"],i=[".","/","@"];function n(n,t){"string"!=typeof n&&r();for(var f,o=0,a=0,s=0,u=n.length,g=0;u--&&++g&&!(o&&e.indexOf(n[g])>-1);)"."===n[g]&&(++o,a=g);for(f=g,g=a;g--;)if(-1!==i.indexOf(n[g])){s=g+1;break}if(s<2)return"";if(t.tld){for(var l=0,y=["/","@"];g--;)if(y.indexOf(n[g])>-1){l=g+1;break}return require("psl").get(n.slice(l,f))}return n.slice(s,f)}module.exports=function(e,i){if(void 0===i&&(i={}),"string"==typeof e)return n(e,i);if(Array.isArray(e)){for(var t=[],f=e.length,o=0;o<f;o++)t.push(n(e[o],i));return t}r()};
  //# sourceMappingURL=extract-domain.js.map
  