1import{p as v}from"./stores.D3X7BMBa.mjs";import{a as h}from"./locale.BJLd5jYw.mjs";import{F as L}from"./scheduler.DcrSCLwT.mjs";const S=t=>`translations${t}`,_=Symbol("user"),c=/\|(zero|one|two|few|many|other|[0-9]|[0-9]-[0-9]):/,b=new RegExp(`${c.toString().replace(/\//g,"")}[^|]*`,"g"),E=t=>new RegExp(`\\|${t}:`),$=(t,r,n=null)=>{var f;if(typeof t!="string"||!t.trim().startsWith("|"))return t;const e=r==null?void 0:r.count;if(typeof e!="number")return t;const o=t.match(b);if(!o)return t;let i=o.find(l=>E(e).test(l));if(i||(i=o.find(l=>{var p;const a=(p=l.match(c))==null?void 0:p[1];if(!a||!a.includes("-"))return!1;const[y,R]=a.split("-");return e>=Number(y)&&e<=Number(R)}),i))return i.replace(c,"").trim();const u=n===_?void 0:n||h(),s=r==null?void 0:r.ordinal,m=new Intl.PluralRules(u||void 0,{type:s?"ordinal":"cardinal"}).select(e);return((f=o.find(l=>E(m).test(l)))==null?void 0:f.replace(c,"").trim())||t},g=(t,r,n=".")=>{const e=r.split(n),o=e.shift();if(!o||!t)return t;const i=t[o];return typeof i=="string"||!e.length?i:g(i,e.join("."))},w=(t,r)=>{const n=typeof t=="string",o=(n?t:JSON.stringify(t)).replace(/\{([A-Za-z0-9_$]+)\}/g,i=>{const u=i.slice(1,-1),s=r[u];return typeof s=="string"||typeof s=="number"||typeof s=="boolean"?`${s}`:`{${u}}`});return n?o:JSON.parse(o)},A=(t,r,n={})=>{const o=g(t,r);if(!o)return"";const i=$(o,n);return w(i,n)},N=t=>{let r;return(n,e={})=>(r||(r=L(v).data[S(t)]),r?A(r,n,e):n)},z=N("global");export{N as a,z as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.