"use strict";var l10n=(()=>{var g=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var d=(r,n)=>{for(var t in n)g(r,t,{get:n[t],enumerable:!0})},l=(r,n,t,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of f(n))!p.call(r,e)&&e!==t&&g(r,e,{get:()=>n[e],enumerable:!(s=u(n,e))||s.enumerable});return r};var y=r=>l(g({},"__esModule",{value:!0}),r);var h={};d(h,{config:()=>R,t:()=>w});async function m(r){if(r.protocol==="http"||r.protocol==="https")return await(await fetch(r)).text();throw new Error("Unsupported protocol")}function c(r){throw new Error("Unsupported in browser")}var o;function R(r){if("contents"in r){typeof r.contents=="string"?o=JSON.parse(r.contents):o=r.contents;return}if("fsPath"in r){let n=c(r.fsPath);o=JSON.parse(n);return}if(r.uri){let n=r.uri;return typeof r.uri=="string"&&(n=new URL(r.uri)),m(n).then(t=>{o=JSON.parse(t)})}}function w(...r){let n=r[0],t,s,e;if(typeof n=="string"?(t=n,s=n,r.splice(0,1),e=!r||typeof r[0]!="object"?r:r[0]):(s=n.message,t=s,n.comment&&n.comment.length>0&&(t+=`/${Array.isArray(n.comment)?n.comment.join():n.comment}`),e=n.args??{}),!o)return a(s,e);let i=o[t];return i?typeof i=="string"?a(i,e):i.comment?a(i.message,e):a(s,e):a(s,e)}var x=/{([^}]+)}/g;function a(r,n){return r.replace(x,(t,s)=>n[s]??t)}return y(h);})();
