import{a as g}from"./chunk-CKAXPD7O.js";import{Dd as H,Gd as P,Hd as T,Jd as N,Kd as A,Ld as I,zd as O}from"./chunk-GWFLFZRI.js";import{a as B,b as v}from"./chunk-NXM765LL.js";import{g as D}from"./chunk-WWX6BADO.js";var k=":",K="|",M="@@",V="\u241F",U;function S(t){U??=new TextEncoder;let e=U.encode(t),n=new DataView(e.buffer,e.byteOffset,e.byteLength),o=j(n,e.length,0),r=j(n,e.length,102072);return o==0&&(r==0||r==1)&&(o=o^319790063,r=r^-1801410264),BigInt.asUintN(32,BigInt(o))<<BigInt(32)|BigInt.asUintN(32,BigInt(r))}function W(t,e=""){let n=S(t);return e&&(n=BigInt.asUintN(64,n<<BigInt(1))|n>>BigInt(63)&BigInt(1),n+=S(e)),BigInt.asUintN(63,n).toString()}function j(t,e,n){let o=2654435769,r=2654435769,i=0,d=e-12;for(;i<=d;i+=12){o+=t.getUint32(i,!0),r+=t.getUint32(i+4,!0),n+=t.getUint32(i+8,!0);let s=L(o,r,n);o=s[0],r=s[1],n=s[2]}let a=e-i;return n+=e,a>=4?(o+=t.getUint32(i,!0),i+=4,a>=8?(r+=t.getUint32(i,!0),i+=4,a>=9&&(n+=t.getUint8(i++)<<8),a>=10&&(n+=t.getUint8(i++)<<16),a===11&&(n+=t.getUint8(i++)<<24)):(a>=5&&(r+=t.getUint8(i++)),a>=6&&(r+=t.getUint8(i++)<<8),a===7&&(r+=t.getUint8(i++)<<16))):(a>=1&&(o+=t.getUint8(i++)),a>=2&&(o+=t.getUint8(i++)<<8),a===3&&(o+=t.getUint8(i++)<<16)),L(o,r,n)[2]}function L(t,e,n){return t-=e,t-=n,t^=n>>>13,e-=n,e-=t,e^=t<<8,n-=t,n-=e,n^=e>>>13,t-=e,t-=n,t^=n>>>12,e-=n,e-=t,e^=t<<16,n-=t,n-=e,n^=e>>>5,t-=e,t-=n,t^=n>>>3,e-=n,e-=t,e^=t<<10,n-=t,n-=e,n^=e>>>15,[t,e,n]}function F(t,e,n,o,r=[]){let i={},d={},a={},s=q(t[0],t.raw[0]),u=[s.text],f=[],h=s.text;for(let c=1;c<t.length;c++){let{messagePart:$,placeholderName:p=J(c),associatedMessageId:b}=G(t[c],t.raw[c]);h+=`{$${p}}${$}`,e!==void 0&&(i[p]=e[c-1],d[p]=r[c-1]),f.push(p),b!==void 0&&(a[p]=b),u.push($)}let x=s.customId||W(h,s.meaning||""),l=s.legacyIds?s.legacyIds.filter(c=>c!==x):[];return{id:x,legacyIds:l,substitutions:i,substitutionLocations:d,text:h,customId:s.customId,meaning:s.meaning||"",description:s.description||"",messageParts:u,messagePartLocations:o,placeholderNames:f,associatedMessageIds:a,location:n}}function q(t,e){let{text:n,block:o}=_(t,e);if(o===void 0)return{text:n};{let[r,...i]=o.split(V),[d,a]=r.split(M,2),[s,u]=d.split(K,2);return u===void 0&&(u=s,s=void 0),u===""&&(u=void 0),{text:n,meaning:s,description:u,customId:a,legacyIds:i}}}function G(t,e){let{text:n,block:o}=_(t,e);if(o===void 0)return{messagePart:n};{let[r,i]=o.split(M);return{messagePart:n,placeholderName:r,associatedMessageId:i}}}function _(t,e){if(e.charAt(0)!==k)return{text:t};{let n=X(t,e);return{block:t.substring(1,n),text:t.substring(n+1)}}}function J(t){return t===1?"PH":`PH_${t-1}`}function X(t,e){for(let n=1,o=1;n<t.length;n++,o++)if(e[o]==="\\")o++;else if(t[n]===k)return n;throw new Error(`Unterminated $localize metadata block in "${e}".`)}var w=class extends Error{constructor(e){super(`No translation found for ${z(e)}.`),this.parsedMessage=e,this.type="MissingTranslationError"}};function Y(t,e,n){let o=F(e,n),r=t[o.id];if(o.legacyIds!==void 0)for(let i=0;i<o.legacyIds.length&&r===void 0;i++)r=t[o.legacyIds[i]];if(r===void 0)throw new w(o);return[r.messageParts,r.placeholderNames.map(i=>{if(o.substitutions.hasOwnProperty(i))return o.substitutions[i];throw new Error(`There is a placeholder name mismatch with the translation provided for the message ${z(o)}.
The translation contains a placeholder with name ${i}, which does not exist in the message.`)})]}function Q(t){let e=t.split(/{\$([^}]*)}/),n=[e[0]],o=[];for(let i=1;i<e.length-1;i+=2)o.push(e[i]),n.push(`${e[i+1]}`);let r=n.map(i=>i.charAt(0)===k?"\\"+i:i);return{text:t,messageParts:Z(n,r),placeholderNames:o}}function Z(t,e){return Object.defineProperty(t,"raw",{value:e}),t}function z(t){let e=t.meaning&&` - "${t.meaning}"`,n=t.legacyIds&&t.legacyIds.length>0?` [${t.legacyIds.map(o=>`"${o}"`).join(", ")}]`:"";return`"${t.id}"${n} ("${t.text}"${e})`}function E(t){$localize.translate||($localize.translate=tt),$localize.TRANSLATIONS||($localize.TRANSLATIONS={}),Object.keys(t).forEach(e=>{$localize.TRANSLATIONS[e]=Q(t[e])})}function tt(t,e){try{return Y($localize.TRANSLATIONS,t,e)}catch(n){return console.warn(n.message),[t,e]}}var m=D(H());function R(t){let e={},n=B();for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(t[o]===void 0?delete e[o]:e[o]=t[o]);v(e)}g.production&&void 0;var et=g.locale?g.locale:"en_US",y=A(et),C=y==="en"?"/404.html":`/assets/locale/${I(y)}/404.html`;document.addEventListener("DOMContentLoaded",()=>{let t="";window.location.hostname.indexOf(".")>0&&([t]=window.location.hostname.split(".",1));let e=window.location.hostname.match(/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/),n=window.location.hostname.indexOf("cloudfront.net")!==-1,o=window.location.hostname.indexOf("ngrok.io")!==-1;(!t||e||n||o||["localhost","jenkins"].indexOf(t)!==-1)&&(t="root");let i=function(a,s){let u=m.get(a,s,!1);return m.isString(u)?u==="true":!!u},d=new XMLHttpRequest;d.open("POST",`${g.xli}/dlap.ashx?cmd=getdomainsettings&domainid=//${t}&path=${P}&includesource=true`),d.setRequestHeader("Accept","application/json"),d.send(T),d.onreadystatechange=()=>{if(d.readyState===4)if(d.status===200){let a=JSON.parse(d.responseText);(!a.response||a.response.code!=="OK")&&window.location.assign(C);let s=m.extend({appName:"Buzz",userspace:t,dlapUrl:`${g.xli}/`,xliBase:"assets",cookieName:g.cookieName,docViewerUrl:g.docViewerUrl,logId:g.logId,version:g.version,resourceBase:`${g.xli}/dlap.ashx?cmd=getresource&entityid=//${t}&path=public/shadow/app/buzz/`,hideWordCount:i(g,"hideWordCount")},a.response.settings);delete s["string-list"];let u=[];s["help-list"]&&(u=s["help-list"].help),m.each(u,c=>{m.isObject(c.entry)&&!m.isArray(c.entry)&&(c.entry=[c.entry])});let f=window.localStorage.getItem("language")||m.get(s,"language.default"),h=m.get(s,"language.list","").split(",");h.length&&h.indexOf(f)===-1&&(f=""),f||(f=y),window.localStorage.setItem("sessionLanguage",f);let x=window.document.getElementsByTagName("html");x.length&&x[0].setAttribute("lang",N(f));let l=Promise.resolve(!0);switch(f){case"es":l=Promise.all([import("./es-LETS3MGU.js"),import("./es-N2FZK7WD.js"),import("./es-YR6DQ42X.js")]);break;case"pt-BR":l=Promise.all([import("./pt-N2YTSCBE.js"),import("./pt-BR-IZQZNG72.js"),import("./pt_br-QDD2QDQB.js")]);break;case"pseudo":case"fr":l=Promise.all([import("./fr-JSD5TASX.js"),import("./fr-RI2BGKZY.js"),import("./fr-PTA6PTXW.js")]);break;case"de":l=Promise.all([import("./de-465UGJO4.js"),import("./de-MU45RKT2.js"),import("./de-WRX3ZZCI.js")]);break;case"nl":l=Promise.all([import("./nl-GRKPKBWG.js"),import("./nl-2HK7Q7H4.js"),import("./nl-K7XCK4B6.js")]);break;case"ro":l=Promise.all([import("./ro-3IQ75SJE.js"),import("./ro-3RFCDV6N.js"),import("./ro-BNSM5P6C.js")]);break;case"nb":l=Promise.all([import("./nb-2OJ2RS4L.js"),import("./nb-C3URONCE.js"),import("./nb-Q62CI2G3.js")]);break;case"ja":l=Promise.all([import("./ja-CVWR3TGF.js"),import("./ja-7OL74YFX.js"),import("./ja-4YXLCEWQ.js")]);break;case"ko":l=Promise.all([import("./ko-42H4QZ5G.js"),import("./ko-QQWKEEGG.js"),import("./ko-QBPWD5IW.js")]);break;case"zh-CN":l=Promise.all([import("./zh-Hans-E5MTBIB2.js"),import("./zh-CN-KD7IMYZA.js"),import("./zh_cn-HV7UXXNP.js")]);break;case"zh-TW":l=Promise.all([import("./zh-Hant-2OI3G7NL.js"),import("./zh-TW-HXA6HXHU.js"),import("./zh_tw-FZHDPNWJ.js")]);break;case"id":l=Promise.all([import("./id-VVZDUUVM.js"),import("./id-HTNVEKF4.js"),import("./id-5VWLJXJM.js")]);break;case"th":l=Promise.all([import("./th-3P5O635R.js"),import("./th-NAETUAH5.js"),import("./th-N4IFCULK.js")]);break;case"vi":l=Promise.all([import("./vi-CUFMMJGA.js"),import("./vi-5B4AYTKE.js"),import("./vi-IA7NCIWM.js")]);break;case"my":l=Promise.all([import("./my-7UPFHQ4S.js"),import("./froala-OXYYRVCA.js")]);break;case"km":l=Promise.all([import("./km-2C5AWSTE.js"),import("./km-KHO55RR6.js"),import("./froala-IL2RZBF7.js")]);break;case"ms":l=Promise.all([import("./ms-PHQI7D63.js"),import("./ms-4XPNZ3CG.js"),import("./froala-4TDDMV46.js")]);break;case"mn":l=Promise.all([import("./mn-4Q3Z2ZZO.js"),import("./mn-JC4R74L7.js"),import("./froala-LPKWOVGS.js")]);break;case"uk":l=Promise.all([import("./uk-BTZHI6CK.js"),import("./uk-3MPPMZDX.js"),import("./uk-G4MBCEE7.js")]);break;case"en":default:break}l.then(c=>{f!=="en"&&f!=="my"&&R({locale:c[1].default});let $=I(f);return $&&$!=="en"?fetch(`/assets/locale/${$}/strings.json`).then(p=>p.json()).then(p=>(p&&E(p),!0)).catch(p=>{console.log("Error loading translations",p)}):Promise.resolve(!0)}).then(()=>{window.buzzConfig=s,import("./app.module-MCZWFZFW.js").then(c=>O().bootstrapModule(c.AppModule,{}))})}else window.location.assign(C)}});
