var a=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var m=(e,o)=>{for(var t in o)a(e,t,{get:o[t],enumerable:!0})},g=(e,o,t,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of d(o))!l.call(e,n)&&n!==t&&a(e,n,{get:()=>o[n],enumerable:!(s=u(o,n))||s.enumerable});return e};var y=e=>g(a({},"__esModule",{value:!0}),e);var S={};m(S,{fonts:()=>x,isPartialBuildInfo:()=>b,knownInstancesList:()=>w,protocols:()=>T,sanitizeConfig:()=>h,typeMerge:()=>O,wLog:()=>k,wordWrap:()=>C});module.exports=y(S);function k(e){console.log("%c[WebCord]","color: #69A9C1",e)}const T=Object.freeze({secure:Object.freeze(["https:","mailto:","tel:","sms:"]),allowed:Object.freeze(["http:"])}),w=Object.freeze([["Discord",new URL("https://discord.com/app"),!0],["Discord Canary",new URL("https://canary.discord.com/app"),!0],["Discord Public Test Beta",new URL("https://ptb.discord.com/app"),!0]]);function b(e){if(!(e instanceof Object))return!1;if("type"in e)switch(e.type){case"release":case"devel":break;case void 0:break;default:return!1}if("commit"in e&&typeof e.commit!="string")return!1;const o=["updateNotifications"];if("features"in e)if(e.features instanceof Object){for(const t of o)if(t in e.features&&typeof e.features[t]!="boolean")return!1}else return!1;return!(process.platform==="win32"&&!("AppUserModelId"in e&&typeof e.AppUserModelId=="string"))}const h=Object.freeze({ALLOWED_TAGS:["b","i","u","s","em","kbd","strong","code","small","br"],ALLOWED_ATTR:[]}),f=(e,o)=>(e?.constructor??e)===o,c=Object.hasOwn;function p(e,o,t){const s={...o};return!(o instanceof Object)||!(t instanceof Object)?o:(Object.keys(o).filter(n=>c(o,n)&&c(t,n)&&(f(o[n],t[n]?.constructor)||(e.nullType!==void 0?o[n]===null&&t[n]?.constructor===e.nullType:!1))&&!Array.isArray(o)).map(n=>{f(o[n],Object)?s[n]=p(e,o[n],t[n]):s[n]=t[n]}),s)}function O(e,o,...t){return t.reduce((s,n)=>p(o,s,n),e)}function C(e,o,t){let s="",n=Math.floor(e.length/o);const i=n>t;n=i?t:n;for(let r=0;r<n;++r)s+=`${s===""?"":`
`}${e.substring(r*o,r*o+o)}`;return i&&(s+=" (\u2026)"),s===""?e:s}const x=Object.freeze({standard:process.platform==="win32"?"Segoe UI":process.platform==="darwin"?"SF Pro":"Sans",sansSerif:process.platform==="win32"?"Segoe UI":process.platform==="darwin"?"SF Pro":"Sans",serif:process.platform==="win32"?"Times New Roman":process.platform==="darwin"?"New York":"Serif",monospace:process.platform==="win32"?"Cascadia Code":process.platform==="darwin"?"SF Pro":"Monospace"});0&&(module.exports={fonts,isPartialBuildInfo,knownInstancesList,protocols,sanitizeConfig,typeMerge,wLog,wordWrap});
