@forbespro/lead-agent
Version:
Lead Chat Agent React Component
2 lines (1 loc) • 954 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index86.js");function c(o){if(typeof o=="string")o=new URL(o);else if(!i.isUrl(o)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+o+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(o.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return s(o)}function s(o){if(o.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const e=o.pathname;let t=-1;for(;++t<e.length;)if(e.codePointAt(t)===37&&e.codePointAt(t+1)===50){const r=e.codePointAt(t+2);if(r===70||r===102){const n=new TypeError("File URL path must not include encoded / characters");throw n.code="ERR_INVALID_FILE_URL_PATH",n}}return decodeURIComponent(e)}exports.isUrl=i.isUrl;exports.urlToPath=c;