1 line
1002 B
JavaScript
1 line
1002 B
JavaScript
"use strict";(self.webpackChunk_npwd_nui=self.webpackChunk_npwd_nui||[]).push([[9525],{79525:function(r,o,e){var s=e(45164);r.exports=function(r){var o={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:r,query:{},parse_failed:!1};try{var e=new URL(r);o.protocols=s(e),o.protocol=o.protocols[0],o.port=e.port,o.resource=e.hostname,o.host=e.host,o.user=e.username||"",o.password=e.password||"",o.pathname=e.pathname,o.hash=e.hash.slice(1),o.search=e.search.slice(1),o.href=e.href,o.query=Object.fromEntries(e.searchParams)}catch(e){o.protocols=["file"],o.protocol=o.protocols[0],o.port="",o.resource="",o.user="",o.pathname="",o.hash="",o.search="",o.href=r,o.query={},o.parse_failed=!0}return o}},45164:function(r){r.exports=function(r,o){!0===o&&(o=0);var e="";if("string"==typeof r)try{e=new URL(r).protocol}catch(r){}else r&&r.constructor===URL&&(e=r.protocol);var s=e.split(/\:|\+/).filter(Boolean);return"number"==typeof o?s[o]:s}}}]); |