This file is indexed.

/usr/share/javascript/i18next/i18next.min.js is in libjs-i18next 1.7.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
(function(){if(!Array.prototype.indexOf){Array.prototype.indexOf=function(T){if(this==null){throw new TypeError()}var U=Object(this);var f=U.length>>>0;if(f===0){return -1}var V=0;if(arguments.length>0){V=Number(arguments[1]);if(V!=V){V=0}else{if(V!=0&&V!=Infinity&&V!=-Infinity){V=(V>0||-1)*Math.floor(Math.abs(V))}}}if(V>=f){return -1}var o=V>=0?V:Math.max(f-Math.abs(V),0);for(;o<f;o++){if(o in U&&U[o]===T){return o}}return -1}}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(T){if(this==null){throw new TypeError()}var U=Object(this);var f=U.length>>>0;if(f===0){return -1}var V=f;if(arguments.length>1){V=Number(arguments[1]);if(V!=V){V=0}else{if(V!=0&&V!=(1/0)&&V!=-(1/0)){V=(V>0||-1)*Math.floor(Math.abs(V))}}}var o=V>=0?Math.min(V,f-1):f-Math.abs(V);for(;o>=0;o--){if(o in U&&U[o]===T){return o}}return -1}}var r=this,x=r.jQuery||r.Zepto,S={},l={},p,k=0,D=[],h=false;if(typeof module!=="undefined"&&module.exports){module.exports=S}else{if(x){x.i18n=x.i18n||S}r.i18n=r.i18n||S}var L={lng:undefined,load:"all",preload:[],lowerCaseLng:false,returnObjectTrees:false,fallbackLng:"dev",fallbackNS:[],detectLngQS:"setLng",ns:"translation",fallbackOnNull:true,fallbackToDefaultNS:false,nsseparator:":",keyseparator:".",selectorAttr:"data-i18n",debug:false,resGetPath:"locales/__lng__/__ns__.json",resPostPath:"locales/add/__lng__/__ns__",getAsync:true,postAsync:true,resStore:undefined,useLocalStorage:false,localStorageExpirationTime:7*24*60*60*1000,dynamicLoad:false,sendMissing:false,sendMissingTo:"fallback",sendType:"POST",interpolationPrefix:"__",interpolationSuffix:"__",reusePrefix:"$t(",reuseSuffix:")",pluralSuffix:"_plural",pluralNotFound:["plural_not_found",Math.random()].join(""),contextNotFound:["context_not_found",Math.random()].join(""),escapeInterpolation:false,setJqueryExt:true,defaultValueFromContent:true,useDataAttrOptions:false,cookieExpirationTime:undefined,useCookie:true,cookieName:"i18next",cookieDomain:undefined,postProcess:undefined,parseMissingKey:undefined,shortcutFunction:"sprintf"};function q(T,o){if(!o||typeof o==="function"){return T}for(var f in o){T[f]=o[f]}return T}function K(U,X,T){var o,V=0,W=U.length,f=W===undefined||typeof U==="function";if(T){if(f){for(o in U){if(X.apply(U[o],T)===false){break}}}else{for(;V<W;){if(X.apply(U[V++],T)===false){break}}}}else{if(f){for(o in U){if(X.call(U[o],o,U[o])===false){break}}}else{for(;V<W;){if(X.call(U[V],V,U[V++])===false){break}}}}return U}var b={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function z(f){if(typeof f==="string"){return f.replace(/[&<>"'\/]/g,function(o){return b[o]})}else{return f}}function y(Z){var T=function(ab){if(window.XMLHttpRequest){return ab(null,new XMLHttpRequest())}else{if(window.ActiveXObject){try{return ab(null,new ActiveXObject("Msxml2.XMLHTTP"))}catch(aa){return ab(null,new ActiveXObject("Microsoft.XMLHTTP"))}}}return ab(new Error())};var f=function(ac){if(typeof ac==="string"){return ac}var aa=[];for(var ab in ac){if(ac.hasOwnProperty(ab)){aa.push(encodeURIComponent(ab)+"="+encodeURIComponent(ac[ab]))}}return aa.join("&")};var W=function(ac){ac=ac.replace(/\r\n/g,"\n");var aa="";for(var ab=0;ab<ac.length;ab++){var ad=ac.charCodeAt(ab);if(ad<128){aa+=String.fromCharCode(ad)}else{if((ad>127)&&(ad<2048)){aa+=String.fromCharCode((ad>>6)|192);aa+=String.fromCharCode((ad&63)|128)}else{aa+=String.fromCharCode((ad>>12)|224);aa+=String.fromCharCode(((ad>>6)&63)|128);aa+=String.fromCharCode((ad&63)|128)}}}return aa};var U=function(ae){var aa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ae=W(ae);var ak="",aj,ah,af,ai,ag,ad,ac,ab=0;do{aj=ae.charCodeAt(ab++);ah=ae.charCodeAt(ab++);af=ae.charCodeAt(ab++);ai=aj>>2;ag=((aj&3)<<4)|(ah>>4);ad=((ah&15)<<2)|(af>>6);ac=af&63;if(isNaN(ah)){ad=ac=64}else{if(isNaN(af)){ac=64}}ak+=aa.charAt(ai)+aa.charAt(ag)+aa.charAt(ad)+aa.charAt(ac);aj=ah=af="";ai=ag=ad=ac=""}while(ab<ae.length);return ak};var o=function(){var aa=arguments[0];for(var ab=1;ab<arguments.length;ab++){var ac=arguments[ab];for(var ad in ac){if(ac.hasOwnProperty(ad)){aa[ad]=ac[ad]}}}return aa};var V=function(aa,ac,ai,ah){if(typeof ai==="function"){ah=ai;ai={}}ai.cache=ai.cache||false;ai.data=ai.data||{};ai.headers=ai.headers||{};ai.jsonp=ai.jsonp||false;ai.async=ai.async===undefined?true:ai.async;var ad=o({accept:"*/*","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},V.headers,ai.headers);var ag;if(ad["content-type"]==="application/json"){ag=JSON.stringify(ai.data)}else{ag=f(ai.data)}if(aa==="GET"){var ab=[];if(ag){ab.push(ag);ag=null}if(!ai.cache){ab.push("_="+(new Date()).getTime())}if(ai.jsonp){ab.push("callback="+ai.jsonp);ab.push("jsonp="+ai.jsonp)}ab=ab.join("&");if(ab.length>1){if(ac.indexOf("?")>-1){ac+="&"+ab}else{ac+="?"+ab}}if(ai.jsonp){var af=document.getElementsByTagName("head")[0];var ae=document.createElement("script");ae.type="text/javascript";ae.src=ac;af.appendChild(ae);return}}T(function(aj,ak){if(aj){return ah(aj)}ak.open(aa,ac,ai.async);for(var al in ad){if(ad.hasOwnProperty(al)){ak.setRequestHeader(al,ad[al])}}ak.onreadystatechange=function(){if(ak.readyState===4){var am=ak.responseText||"";if(!ah){return}ah(ak.status,{text:function(){return am},json:function(){return JSON.parse(am)}})}};ak.send(ag)})};var Y={authBasic:function(ab,aa){V.headers.Authorization="Basic "+U(ab+":"+aa)},connect:function(ab,aa,ac){return V("CONNECT",ab,aa,ac)},del:function(ab,aa,ac){return V("DELETE",ab,aa,ac)},get:function(ab,aa,ac){return V("GET",ab,aa,ac)},head:function(ab,aa,ac){return V("HEAD",ab,aa,ac)},headers:function(aa){V.headers=aa||{}},isAllowed:function(aa,ab,ac){this.options(aa,function(ad,ae){ac(ae.text().indexOf(ab)!==-1)})},options:function(ab,aa,ac){return V("OPTIONS",ab,aa,ac)},patch:function(ab,aa,ac){return V("PATCH",ab,aa,ac)},post:function(ab,aa,ac){return V("POST",ab,aa,ac)},put:function(ab,aa,ac){return V("PUT",ab,aa,ac)},trace:function(ab,aa,ac){return V("TRACE",ab,aa,ac)}};var X=Z.type?Z.type.toLowerCase():"get";Y[X](Z.url,Z,function(aa,ab){if(aa===200){Z.success(ab.json(),aa,null)}else{Z.error(ab.text(),aa,null)}})}var H={create:function(T,W,U,V){var f;if(U){var o=new Date();o.setTime(o.getTime()+(U*60*1000));f="; expires="+o.toGMTString()}else{f=""}V=(V)?"domain="+V+";":"";document.cookie=T+"="+W+f+";"+V+"path=/"},read:function(o){var U=o+"=";var f=document.cookie.split(";");for(var T=0;T<f.length;T++){var V=f[T];while(V.charAt(0)==" "){V=V.substring(1,V.length)}if(V.indexOf(U)===0){return V.substring(U.length,V.length)}}return null},remove:function(f){this.create(f,"",-1)}};var i={create:function(f,U,o,T){},read:function(f){return null},remove:function(f){}};var O={extend:x?x.extend:q,each:x?x.each:K,ajax:x?x.ajax:y,cookie:typeof document!=="undefined"?H:i,detectLanguage:d,escape:z,log:function(f){if(L.debug&&typeof console!=="undefined"){console.log(f)}},toLanguages:function(f){var T=[];if(typeof f==="string"&&f.indexOf("-")>-1){var o=f.split("-");f=L.lowerCaseLng?o[0].toLowerCase()+"-"+o[1].toLowerCase():o[0].toLowerCase()+"-"+o[1].toUpperCase();if(L.load!=="unspecific"){T.push(f)}if(L.load!=="current"){T.push(o[0])}}else{T.push(f)}if(T.indexOf(L.fallbackLng)===-1&&L.fallbackLng){T.push(L.fallbackLng)}return T},regexEscape:function(f){return f.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}};function N(aa,T){if(typeof aa==="function"){T=aa;aa={}}aa=aa||{};O.extend(L,aa);delete L.fixLng;if(typeof L.ns=="string"){L.ns={namespaces:[L.ns],defaultNs:L.ns}}if(typeof L.fallbackNS=="string"){L.fallbackNS=[L.fallbackNS]}L.interpolationPrefixEscaped=O.regexEscape(L.interpolationPrefix);L.interpolationSuffixEscaped=O.regexEscape(L.interpolationSuffix);if(!L.lng){L.lng=O.detectLanguage()}if(L.lng){if(L.useCookie){O.cookie.create(L.cookieName,L.lng,L.cookieExpirationTime,L.cookieDomain)}}else{L.lng=L.fallbackLng;if(L.useCookie){O.cookie.remove(L.cookieName)}}D=O.toLanguages(L.lng);p=D[0];O.log("currentLng set to: "+p);var X=c;if(aa.fixLng){X=function(ac,ab){ab=ab||{};ab.lng=ab.lng||X.lng;return c(ac,ab)};X.lng=p}v.setCurrentLng(p);if(x&&L.setJqueryExt){w()}var Z;if(x&&x.Deferred){Z=x.Deferred()}if(L.resStore){l=L.resStore;h=true;if(T){T(X)}if(Z){Z.resolve(X)}if(Z){return Z.promise()}return}var f=O.toLanguages(L.lng);if(typeof L.preload==="string"){L.preload=[L.preload]}for(var V=0,o=L.preload.length;V<o;V++){var U=O.toLanguages(L.preload[V]);for(var Y=0,W=U.length;Y<W;Y++){if(f.indexOf(U[Y])<0){f.push(U[Y])}}}S.sync.load(f,L,function(ac,ab){l=ab;h=true;if(T){T(X)}if(Z){Z.resolve(X)}});if(Z){return Z.promise()}}function e(U,f){if(typeof U==="string"){U=[U]}for(var T=0,o=U.length;T<o;T++){if(L.preload.indexOf(U[T])<0){L.preload.push(U[T])}}return N(f)}function P(f,o,T){if(typeof o!=="string"){T=o;o=L.ns.defaultNs}else{if(L.ns.namespaces.indexOf(o)<0){L.ns.namespaces.push(o)}}l[f]=l[f]||{};l[f][o]=l[f][o]||{};O.extend(l[f][o],T)}function R(f){L.ns.defaultNs=f}function F(o,f){C([o],f)}function C(U,W){var o={dynamicLoad:L.dynamicLoad,resGetPath:L.resGetPath,getAsync:L.getAsync,customLoad:L.customLoad,ns:{namespaces:U,defaultNs:""}};var T=O.toLanguages(L.lng);if(typeof L.preload==="string"){L.preload=[L.preload]}for(var Y=0,V=L.preload.length;Y<V;Y++){var X=O.toLanguages(L.preload[Y]);for(var ae=0,aa=X.length;ae<aa;ae++){if(T.indexOf(X[ae])<0){T.push(X[ae])}}}var ag=[];for(var af=0,ac=T.length;af<ac;af++){var Z=false;var f=l[T[af]];if(f){for(var ad=0,ab=U.length;ad<ab;ad++){if(!f[U[ad]]){Z=true}}}else{Z=true}if(Z){ag.push(T[af])}}if(ag.length){S.sync._fetch(ag,o,function(aj,ai){var ah=U.length*ag.length;O.each(U,function(al,ak){if(L.ns.namespaces.indexOf(ak)<0){L.ns.namespaces.push(ak)}O.each(ag,function(am,an){l[an]=l[an]||{};l[an][ak]=ai[an][ak];ah--;if(ah===0&&W){if(L.useLocalStorage){S.sync._storeLocal(l)}W()}})})})}else{if(W){W()}}}function t(T,o,f){if(typeof o==="function"){f=o;o={}}o.lng=T;return N(o,f)}function s(){return p}function w(){x.t=x.t||c;function o(X,W,V){if(W.length===0){return}var T="text";if(W.indexOf("[")===0){var Y=W.split("]");W=Y[1];T=Y[0].substr(1,Y[0].length-1)}if(W.indexOf(";")===W.length-1){W=W.substr(0,W.length-2)}var U;if(T==="html"){U=L.defaultValueFromContent?x.extend({defaultValue:X.html()},V):V;X.html(x.t(W,U))}else{if(T==="text"){U=L.defaultValueFromContent?x.extend({defaultValue:X.text()},V):V;X.text(x.t(W,U))}else{U=L.defaultValueFromContent?x.extend({defaultValue:X.attr(T)},V):V;X.attr(T,x.t(W,U))}}}function f(X,T){var U=X.attr(L.selectorAttr);if(!U&&typeof U!=="undefined"&&U!==false){U=X.text()||X.val()}if(!U){return}var Y=X,W=X.data("i18n-target");if(W){Y=X.find(W)||X}if(!T&&L.useDataAttrOptions===true){T=X.data("i18n-options")}T=T||{};if(U.indexOf(";")>=0){var V=U.split(";");x.each(V,function(Z,aa){if(aa!==""){o(Y,aa,T)}})}else{o(Y,U,T)}if(L.useDataAttrOptions===true){X.data("i18n-options",T)}}x.fn.i18n=function(T){return this.each(function(){f(x(this),T);var U=x(this).find("["+L.selectorAttr+"]");U.each(function(){f(x(this),T)})})}}function M(X,W,V,o){if(!X){return X}o=o||W;if(X.indexOf(o.interpolationPrefix||L.interpolationPrefix)<0){return X}var T=o.interpolationPrefix?O.regexEscape(o.interpolationPrefix):L.interpolationPrefixEscaped,U=o.interpolationSuffix?O.regexEscape(o.interpolationSuffix):L.interpolationSuffixEscaped,f="HTML"+U;O.each(W,function(Z,aa){var Y=V?V+L.keyseparator+Z:Z;if(typeof aa==="object"&&aa!==null){X=M(X,aa,Y,o)}else{if(o.escapeInterpolation||L.escapeInterpolation){X=X.replace(new RegExp([T,Y,f].join(""),"g"),aa);X=X.replace(new RegExp([T,Y,U].join(""),"g"),O.escape(aa))}else{X=X.replace(new RegExp([T,Y,U].join(""),"g"),aa)}}});return X}O.applyReplacement=M;function g(Z,ae){var af=",";var U="{";var aa="}";var f=O.extend({},ae);delete f.postProcess;while(Z.indexOf(L.reusePrefix)!=-1){k++;if(k>L.maxRecursion){break}var Y=Z.lastIndexOf(L.reusePrefix);var ad=Z.indexOf(L.reuseSuffix,Y)+L.reuseSuffix.length;var T=Z.substring(Y,ad);var ac=T.replace(L.reusePrefix,"").replace(L.reuseSuffix,"");if(ac.indexOf(af)!=-1){var ab=ac.indexOf(af);if(ac.indexOf(U,ab)!=-1&&ac.indexOf(aa,ab)!=-1){var X=ac.indexOf(U,ab);var o=ac.indexOf(aa,X)+aa.length;try{f=O.extend(f,JSON.parse(ac.substring(X,o)));ac=ac.substring(0,ab)}catch(W){}}}var V=G(ac,f);Z=Z.replace(T,V)}return Z}function I(f){return(f.context&&typeof f.context=="string")}function Q(f){return(f.count!==undefined&&typeof f.count!="string"&&f.count!==1)}function a(o,f){f=f||{};var T=m(o,f),U=E(o,f);return U!==undefined||U===T}function c(o,f){if(!h){O.log("i18next not finished initialization. you might have called t function before loading resources finished.");return f.defaultValue||""}k=0;return G.apply(null,arguments)}function m(o,f){return(f.defaultValue!==undefined)?f.defaultValue:o}function B(){var f=[];for(var o=1;o<arguments.length;o++){f.push(arguments[o])}return{postProcess:"sprintf",sprintf:f}}function G(T,ac){if(typeof ac=="string"){if(L.shortcutFunction==="sprintf"){ac=B.apply(null,arguments)}else{if(L.shortcutFunction==="defaultValue"){ac={defaultValue:ac}}}}else{ac=ac||{}}if(typeof T=="string"){T=[T]}var Z=null;for(var U=0;U<T.length;U++){Z=T[U];if(a(Z)){break}}var Y=m(Z,ac),ab=E(Z,ac),aa=ac.lng?O.toLanguages(ac.lng):D,W=ac.ns||L.ns.defaultNs,o;if(Z.indexOf(L.nsseparator)>-1){o=Z.split(L.nsseparator);W=o[0];Z=o[1]}if(ab===undefined&&L.sendMissing){if(ac.lng){j.postMissing(aa[0],W,Z,Y,aa)}else{j.postMissing(L.lng,W,Z,Y,aa)}}var V=ac.postProcess||L.postProcess;if(ab!==undefined&&V){if(J[V]){ab=J[V](ab,Z,ac)}}var X=Y;if(Y.indexOf(L.nsseparator)>-1){o=Y.split(L.nsseparator);X=o[1]}if(X===Z&&L.parseMissingKey){Y=L.parseMissingKey(Y)}if(ab===undefined){Y=M(Y,ac);Y=g(Y,ac);if(V&&J[V]){var f=m(Z,ac);ab=J[V](f,Z,ac)}}return(ab!==undefined)?ab:Y}function E(an,T){T=T||{};var f,aj,W=m(an,T),ad=D;if(!l){return W}if(T.lng){ad=O.toLanguages(T.lng);if(!l[ad[0]]){var o=L.getAsync;L.getAsync=false;S.sync.load(ad,L,function(aq,ap){O.extend(l,ap);L.getAsync=o})}}var ao=T.ns||L.ns.defaultNs;if(an.indexOf(L.nsseparator)>-1){var af=an.split(L.nsseparator);ao=af[0];an=af[1]}if(I(T)){f=O.extend({},T);delete f.context;f.defaultValue=L.contextNotFound;var V=ao+L.nsseparator+an+"_"+T.context;aj=c(V,f);if(aj!=L.contextNotFound){return M(aj,{context:T.context})}}if(Q(T)){f=O.extend({},T);delete f.count;f.defaultValue=L.pluralNotFound;var Z=ao+L.nsseparator+an+L.pluralSuffix;var am=v.get(ad[0],T.count);if(am>=0){Z=Z+"_"+am}else{if(am===1){Z=ao+L.nsseparator+an}}aj=c(Z,f);if(aj!=L.pluralNotFound){return M(aj,{count:T.count,interpolationPrefix:T.interpolationPrefix,interpolationSuffix:T.interpolationSuffix})}}var ab;var ac=an.split(L.keyseparator);for(var ak=0,al=ad.length;ak<al;ak++){if(ab!==undefined){break}var ai=ad[ak];var Y=0;var ag=l[ai]&&l[ai][ao];while(ac[Y]){ag=ag&&ag[ac[Y]];Y++}if(ag!==undefined){if(typeof ag==="string"){ag=M(ag,T);ag=g(ag,T)}else{if(Object.prototype.toString.apply(ag)==="[object Array]"&&!L.returnObjectTrees&&!T.returnObjectTrees){ag=ag.join("\n");ag=M(ag,T);ag=g(ag,T)}else{if(ag===null&&L.fallbackOnNull===true){ag=undefined}else{if(ag!==null){if(!L.returnObjectTrees&&!T.returnObjectTrees){ag="key '"+ao+":"+an+" ("+ai+")' returned a object instead of string.";O.log(ag)}else{if(typeof ag!=="number"){var ah={};O.each(ag,function(ap){ah[ap]=G(ao+L.nsseparator+an+L.keyseparator+ap,T)});ag=ah}}}}}}ab=ag}}if(ab===undefined&&!T.isFallbackLookup&&(L.fallbackToDefaultNS===true||(L.fallbackNS&&L.fallbackNS.length>0))){T.isFallbackLookup=true;if(L.fallbackNS.length){for(var X=0,aa=L.fallbackNS.length;X<aa;X++){ab=E(L.fallbackNS[X]+L.nsseparator+an,T);if(ab){var ae=ab.indexOf(L.nsseparator)>-1?ab.split(L.nsseparator)[1]:ab,U=W.indexOf(L.nsseparator)>-1?W.split(L.nsseparator)[1]:W;if(ae!==U){break}}}}else{ab=E(an,T)}}return ab}function d(){var o;var f=[];if(typeof window!=="undefined"){(function(){var X=window.location.search.substring(1);var W=X.split("&");for(var V=0;V<W.length;V++){var Z=W[V].indexOf("=");if(Z>0){var U=W[V].substring(0,Z);var Y=W[V].substring(Z+1);f[U]=Y}}})();if(f[L.detectLngQS]){o=f[L.detectLngQS]}}if(!o&&typeof document!=="undefined"&&L.useCookie){var T=O.cookie.read(L.cookieName);if(T){o=T}}if(!o&&typeof navigator!=="undefined"){o=(navigator.language)?navigator.language:navigator.userLanguage}return o}var j={load:function(T,o,f){if(o.useLocalStorage){j._loadLocal(T,o,function(Y,V){var X=[];for(var W=0,U=T.length;W<U;W++){if(!V[T[W]]){X.push(T[W])}}if(X.length>0){j._fetch(X,o,function(Z,aa){O.extend(V,aa);j._storeLocal(aa);f(null,V)})}else{f(null,V)}})}else{j._fetch(T,o,function(V,U){f(null,U)})}},_loadLocal:function(V,U,o){var T={},W=new Date().getTime();if(window.localStorage){var f=V.length;O.each(V,function(Z,X){var Y=window.localStorage.getItem("res_"+X);if(Y){Y=JSON.parse(Y);if(Y.i18nStamp&&Y.i18nStamp+U.localStorageExpirationTime>W){T[X]=Y}}f--;if(f===0){o(null,T)}})}},_storeLocal:function(o){if(window.localStorage){for(var f in o){o[f].i18nStamp=new Date().getTime();window.localStorage.setItem("res_"+f,JSON.stringify(o[f]))}}return},_fetch:function(Y,Z,T){var V=Z.ns,X={};if(!Z.dynamicLoad){var o=V.namespaces.length*Y.length,W;O.each(V.namespaces,function(ab,aa){O.each(Y,function(ac,ae){var ad=function(af,ag){if(af){W=W||[];W.push(af)}X[ae]=X[ae]||{};X[ae][aa]=ag;o--;if(o===0){T(W,X)}};if(typeof Z.customLoad=="function"){Z.customLoad(ae,aa,Z,ad)}else{j._fetchOne(ae,aa,Z,ad)}})})}else{var U=function(aa,ab){T(null,ab)};if(typeof Z.customLoad=="function"){Z.customLoad(Y,V.namespaces,Z,U)}else{var f=M(Z.resGetPath,{lng:Y.join("+"),ns:V.namespaces.join("+")});O.ajax({url:f,success:function(ab,aa,ac){O.log("loaded: "+f);U(null,ab)},error:function(ac,aa,ab){O.log("failed loading: "+f);U("failed loading resource.json error: "+ab)},dataType:"json",async:Z.getAsync})}}},_fetchOne:function(U,V,T,f){var o=M(T.resGetPath,{lng:U,ns:V});O.ajax({url:o,success:function(X,W,Y){O.log("loaded: "+o);f(null,X)},error:function(Y,W,X){O.log("failed loading: "+o);f(X,{})},dataType:"json",async:T.getAsync})},postMissing:function(Y,X,aa,V,ab){var Z={};Z[aa]=V;var U=[];if(L.sendMissingTo==="fallback"&&L.fallbackLng!==false){U.push({lng:L.fallbackLng,url:M(L.resPostPath,{lng:L.fallbackLng,ns:X})})}else{if(L.sendMissingTo==="current"||(L.sendMissingTo==="fallback"&&L.fallbackLng===false)){U.push({lng:Y,url:M(L.resPostPath,{lng:Y,ns:X})})}else{if(L.sendMissingTo==="all"){for(var o=0,f=ab.length;o<f;o++){U.push({lng:ab[o],url:M(L.resPostPath,{lng:ab[o],ns:X})})}}}}for(var W=0,T=U.length;W<T;W++){var ac=U[W];O.ajax({url:ac.url,type:L.sendType,data:Z,success:function(ah,ae,ai){O.log("posted missing key '"+aa+"' to: "+ac.url);var af=aa.split(".");var ad=0;var ag=l[ac.lng][X];while(af[ad]){if(ad===af.length-1){ag=ag[af[ad]]=V}else{ag=ag[af[ad]]=ag[af[ad]]||{}}ad++}},error:function(af,ad,ae){O.log("failed posting missing key '"+aa+"' to: "+ac.url)},dataType:"json",async:L.postAsync})}}};var v={rules:{ach:{name:"Acholi",numbers:[1,2],plurals:function(f){return Number(f>1)}},af:{name:"Afrikaans",numbers:[1,2],plurals:function(f){return Number(f!=1)}},ak:{name:"Akan",numbers:[1,2],plurals:function(f){return Number(f>1)}},am:{name:"Amharic",numbers:[1,2],plurals:function(f){return Number(f>1)}},an:{name:"Aragonese",numbers:[1,2],plurals:function(f){return Number(f!=1)}},ar:{name:"Arabic",numbers:[0,1,2,3,11,100],plurals:function(f){return Number(f===0?0:f==1?1:f==2?2:f%100>=3&&f%100<=10?3:f%100>=11?4:5)}},arn:{name:"Mapudungun",numbers:[1,2],plurals:function(f){return Number(f>1)}},ast:{name:"Asturian",numbers:[1,2],plurals:function(f){return Number(f!=1)}},ay:{name:"Aymar\u00e1",numbers:[1],plurals:function(f){return 0}},az:{name:"Azerbaijani",numbers:[1,2],plurals:function(f){return Number(f!=1)}},be:{name:"Belarusian",numbers:[1,2,5],plurals:function(f){return Number(f%10==1&&f%100!=11?0:f%10>=2&&f%10<=4&&(f%100<10||f%100>=20)?1:2)}},bg:{name:"Bulgarian",numbers:[1,2],plurals:function(f){return Number(f!=1)}},bn:{name:"Bengali",numbers:[1,2],plurals:function(f){return Number(f!=1)}},bo:{name:"Tibetan",numbers:[1],plurals:function(f){return 0}},br:{name:"Breton",numbers:[1,2],plurals:function(f){return Number(f>1)}},bs:{name:"Bosnian",numbers:[1,2,5],plurals:function(f){return Number(f%10==1&&f%100!=11?0:f%10>=2&&f%10<=4&&(f%100<10||f%100>=20)?1:2)}},ca:{name:"Catalan",numbers:[1,2],plurals:function(f){return Number(f!=1)}},cgg:{name:"Chiga",numbers:[1],plurals:function(f){return 0}},cs:{name:"Czech",numbers:[1,2,5],plurals:function(f){return Number((f==1)?0:(f>=2&&f<=4)?1:2)}},csb:{name:"Kashubian",numbers:[1,2,5],plurals:function(f){return Number(f==1?0:f%10>=2&&f%10<=4&&(f%100<10||f%100>=20)?1:2)}},cy:{name:"Welsh",numbers:[1,2,3,8],plurals:function(f){return Number((f==1)?0:(f==2)?1:(f!=8&&f!=11)?2:3)}},da:{name:"Danish",numbers:[1,2],plurals:function(f){return Number(f!=1)}},de:{name:"German",numbers:[1,2],plurals:function(f){return Number(f!=1)}},dz:{name:"Dzongkha",numbers:[1],plurals:function(f){return 0}},el:{name:"Greek",numbers:[1,2],plurals:function(f){return Number(f!=1)}},en:{name:"English",numbers:[1,2],plurals:function(f){return Number(f!=1)}},eo:{name:"Esperanto",numbers:[1,2],plurals:function(f){return Number(f!=1)}},es:{name:"Spanish",numbers:[1,2],plurals:function(f){return Number(f!=1)}},es_ar:{name:"Argentinean Spanish",numbers:[1,2],plurals:function(f){return Number(f!=1)}},et:{name:"Estonian",numbers:[1,2],plurals:function(f){return Number(f!=1)}},eu:{name:"Basque",numbers:[1,2],plurals:function(f){return Number(f!=1)}},fa:{name:"Persian",numbers:[1],plurals:function(f){return 0}},fi:{name:"Finnish",numbers:[1,2],plurals:function(f){return Number(f!=1)}},fil:{name:"Filipino",numbers:[1,2],plurals:function(f){return Number(f>1)}},fo:{name:"Faroese",numbers:[1,2],plurals:function(f){return Number(f!=1)}},fr:{name:"French",numbers:[1,2],plurals:function(f){return Number(f>1)}},fur:{name:"Friulian",numbers:[1,2],plurals:function(f){return Number(f!=1)}},fy:{name:"Frisian",numbers:[1,2],plurals:function(f){return Number(f!=1)}},ga:{name:"Irish",numbers:[1,2,3,7,11],plurals:function(f){return Number(f==1?0:f==2?1:f<7?2:f<11?3:4)}},gd:{name:"Scottish Gaelic",numbers:[1,2,3,20],plurals:function(f){return Number((f==1||f==11)?0:(f==2||f==12)?1:(f>2&&f<20)?2:3)}},gl:{name:"Galician",numbers:[1,2],plurals:function(f){return Number(f!=1)}},gu:{name:"Gujarati",numbers:[1,2],plurals:function(f){return Number(f!=1)}},gun:{name:"Gun",numbers:[1,2],plurals:function(f){return Number(f>1)}},ha:{name:"Hausa",numbers:[1,2],plurals:function(f){return Number(f!=1)}},he:{name:"Hebrew",numbers:[1,2],plurals:function(f){return Number(f!=1)}},hi:{name:"Hindi",numbers:[1,2],plurals:function(f){return Number(f!=1)}},hr:{name:"Croatian",numbers:[1,2,5],plurals:function(f){return Number(f%10==1&&f%100!=11?0:f%10>=2&&f%10<=4&&(f%100<10||f%100>=20)?1:2)}},hu:{name:"Hungarian",numbers:[1,2],plurals:function(f){return Number(f!=1)}},hy:{name:"Armenian",numbers:[1,2],plurals:function(f){return Number(f!=1)}},ia:{name:"Interlingua",numbers:[1,2],plurals:function(f){return Number(f!=1)}},id:{name:"Indonesian",numbers:[1],plurals:function(f){return 0}},is:{name:"Icelandic",numbers:[1,2],plurals:function(f){return Number(f%10!=1||f%100==11)}},it:{name:"Italian",numbers:[1,2],plurals:function(f){return Number(f!=1)}},ja:{name:"Japanese",numbers:[1],plurals:function(f){return 0}},jbo:{name:"Lojban",numbers:[1],plurals:function(f){return 0}},jv:{name:"Javanese",numbers:[0,1],plurals:function(f){return Number(f!==0)}},ka:{name:"Georgian",numbers:[1],plurals:function(f){return 0}},kk:{name:"Kazakh",numbers:[1],plurals:function(f){return 0}},km:{name:"Khmer",numbers:[1],plurals:function(f){return 0}},kn:{name:"Kannada",numbers:[1,2],plurals:function(f){return Number(f!=1)}},ko:{name:"Korean",numbers:[1],plurals:function(f){return 0}},ku:{name:"Kurdish",numbers:[1,2],plurals:function(f){return Number(f!=1)}},kw:{name:"Cornish",numbers:[1,2,3,4],plurals:function(f){return Number((f==1)?0:(f==2)?1:(f==3)?2:3)}},ky:{name:"Kyrgyz",numbers:[1],plurals:function(f){return 0}},lb:{name:"Letzeburgesch",numbers:[1,2],plurals:function(f){return Number(f!=1)}},ln:{name:"Lingala",numbers:[1,2],plurals:function(f){return Number(f>1)}},lo:{name:"Lao",numbers:[1],plurals:function(f){return 0}},lt:{name:"Lithuanian",numbers:[1,2,10],plurals:function(f){return Number(f%10==1&&f%100!=11?0:f%10>=2&&(f%100<10||f%100>=20)?1:2)}},lv:{name:"Latvian",numbers:[0,1,2],plurals:function(f){return Number(f%10==1&&f%100!=11?0:f!==0?1:2)}},mai:{name:"Maithili",numbers:[1,2],plurals:function(f){return Number(f!=1)}},mfe:{name:"Mauritian Creole",numbers:[1,2],plurals:function(f){return Number(f>1)}},mg:{name:"Malagasy",numbers:[1,2],plurals:function(f){return Number(f>1)}},mi:{name:"Maori",numbers:[1,2],plurals:function(f){return Number(f>1)}},mk:{name:"Macedonian",numbers:[1,2],plurals:function(f){return Number(f==1||f%10==1?0:1)}},ml:{name:"Malayalam",numbers:[1,2],plurals:function(f){return Number(f!=1)}},mn:{name:"Mongolian",numbers:[1,2],plurals:function(f){return Number(f!=1)}},mnk:{name:"Mandinka",numbers:[0,1,2],plurals:function(f){return Number(0?0:f==1?1:2)}},mr:{name:"Marathi",numbers:[1,2],plurals:function(f){return Number(f!=1)}},ms:{name:"Malay",numbers:[1],plurals:function(f){return 0}},mt:{name:"Maltese",numbers:[1,2,11,20],plurals:function(f){return Number(f==1?0:f===0||(f%100>1&&f%100<11)?1:(f%100>10&&f%100<20)?2:3)}},nah:{name:"Nahuatl",numbers:[1,2],plurals:function(f){return Number(f!=1)}},nap:{name:"Neapolitan",numbers:[1,2],plurals:function(f){return Number(f!=1)}},nb:{name:"Norwegian Bokmal",numbers:[1,2],plurals:function(f){return Number(f!=1)}},ne:{name:"Nepali",numbers:[1,2],plurals:function(f){return Number(f!=1)}},nl:{name:"Dutch",numbers:[1,2],plurals:function(f){return Number(f!=1)}},nn:{name:"Norwegian Nynorsk",numbers:[1,2],plurals:function(f){return Number(f!=1)}},no:{name:"Norwegian",numbers:[1,2],plurals:function(f){return Number(f!=1)}},nso:{name:"Northern Sotho",numbers:[1,2],plurals:function(f){return Number(f!=1)}},oc:{name:"Occitan",numbers:[1,2],plurals:function(f){return Number(f>1)}},or:{name:"Oriya",numbers:[2,1],plurals:function(f){return Number(f!=1)}},pa:{name:"Punjabi",numbers:[1,2],plurals:function(f){return Number(f!=1)}},pap:{name:"Papiamento",numbers:[1,2],plurals:function(f){return Number(f!=1)}},pl:{name:"Polish",numbers:[1,2,5],plurals:function(f){return Number(f==1?0:f%10>=2&&f%10<=4&&(f%100<10||f%100>=20)?1:2)}},pms:{name:"Piemontese",numbers:[1,2],plurals:function(f){return Number(f!=1)}},ps:{name:"Pashto",numbers:[1,2],plurals:function(f){return Number(f!=1)}},pt:{name:"Portuguese",numbers:[1,2],plurals:function(f){return Number(f!=1)}},pt_br:{name:"Brazilian Portuguese",numbers:[1,2],plurals:function(f){return Number(f!=1)}},rm:{name:"Romansh",numbers:[1,2],plurals:function(f){return Number(f!=1)}},ro:{name:"Romanian",numbers:[1,2,20],plurals:function(f){return Number(f==1?0:(f===0||(f%100>0&&f%100<20))?1:2)}},ru:{name:"Russian",numbers:[1,2,5],plurals:function(f){return Number(f%10==1&&f%100!=11?0:f%10>=2&&f%10<=4&&(f%100<10||f%100>=20)?1:2)}},sah:{name:"Yakut",numbers:[1],plurals:function(f){return 0}},sco:{name:"Scots",numbers:[1,2],plurals:function(f){return Number(f!=1)}},se:{name:"Northern Sami",numbers:[1,2],plurals:function(f){return Number(f!=1)}},si:{name:"Sinhala",numbers:[1,2],plurals:function(f){return Number(f!=1)}},sk:{name:"Slovak",numbers:[1,2,5],plurals:function(f){return Number((f==1)?0:(f>=2&&f<=4)?1:2)}},sl:{name:"Slovenian",numbers:[5,1,2,3],plurals:function(f){return Number(f%100==1?1:f%100==2?2:f%100==3||f%100==4?3:0)}},so:{name:"Somali",numbers:[1,2],plurals:function(f){return Number(f!=1)}},son:{name:"Songhay",numbers:[1,2],plurals:function(f){return Number(f!=1)}},sq:{name:"Albanian",numbers:[1,2],plurals:function(f){return Number(f!=1)}},sr:{name:"Serbian",numbers:[1,2,5],plurals:function(f){return Number(f%10==1&&f%100!=11?0:f%10>=2&&f%10<=4&&(f%100<10||f%100>=20)?1:2)}},su:{name:"Sundanese",numbers:[1],plurals:function(f){return 0}},sv:{name:"Swedish",numbers:[1,2],plurals:function(f){return Number(f!=1)}},sw:{name:"Swahili",numbers:[1,2],plurals:function(f){return Number(f!=1)}},ta:{name:"Tamil",numbers:[1,2],plurals:function(f){return Number(f!=1)}},te:{name:"Telugu",numbers:[1,2],plurals:function(f){return Number(f!=1)}},tg:{name:"Tajik",numbers:[1,2],plurals:function(f){return Number(f>1)}},th:{name:"Thai",numbers:[1],plurals:function(f){return 0}},ti:{name:"Tigrinya",numbers:[1,2],plurals:function(f){return Number(f>1)}},tk:{name:"Turkmen",numbers:[1,2],plurals:function(f){return Number(f!=1)}},tr:{name:"Turkish",numbers:[1,2],plurals:function(f){return Number(f>1)}},tt:{name:"Tatar",numbers:[1],plurals:function(f){return 0}},ug:{name:"Uyghur",numbers:[1],plurals:function(f){return 0}},uk:{name:"Ukrainian",numbers:[1,2,5],plurals:function(f){return Number(f%10==1&&f%100!=11?0:f%10>=2&&f%10<=4&&(f%100<10||f%100>=20)?1:2)}},ur:{name:"Urdu",numbers:[1,2],plurals:function(f){return Number(f!=1)}},uz:{name:"Uzbek",numbers:[1,2],plurals:function(f){return Number(f>1)}},vi:{name:"Vietnamese",numbers:[1],plurals:function(f){return 0}},wa:{name:"Walloon",numbers:[1,2],plurals:function(f){return Number(f>1)}},wo:{name:"Wolof",numbers:[1],plurals:function(f){return 0}},yo:{name:"Yoruba",numbers:[1,2],plurals:function(f){return Number(f!=1)}},zh:{name:"Chinese",numbers:[1],plurals:function(f){return 0}}},addRule:function(f,o){v.rules[f]=o},setCurrentLng:function(f){if(!v.currentRule||v.currentRule.lng!==f){var o=f.split("-");v.currentRule={lng:f,rule:v.rules[o[0]]}}},get:function(f,o){var T=f.split("-");function U(V,Z){var X;if(v.currentRule&&v.currentRule.lng===f){X=v.currentRule.rule}else{X=v.rules[V]}if(X){var W=X.plurals(Z);var Y=X.numbers[W];if(X.numbers.length===2&&X.numbers[0]===1){if(Y===2){Y=-1}else{if(Y===1){Y=1}}}return Y}else{return Z===1?"1":"-1"}}return U(T[0],o)}};var J={};var A=function(f,o){J[f]=o};var n=(function(){function f(U){return Object.prototype.toString.call(U).slice(8,-1).toLowerCase()}function o(V,W){for(var U=[];W>0;U[--W]=V){}return U.join("")}var T=function(){if(!T.cache.hasOwnProperty(arguments[0])){T.cache[arguments[0]]=T.parse(arguments[0])}return T.format.call(null,T.cache[arguments[0]],arguments)};T.format=function(ab,aa){var af=1,ad=ab.length,X="",ag,U=[],Y,W,Z,V,ac,ae;for(Y=0;Y<ad;Y++){X=f(ab[Y]);if(X==="string"){U.push(ab[Y])}else{if(X==="array"){Z=ab[Y];if(Z[2]){ag=aa[af];for(W=0;W<Z[2].length;W++){if(!ag.hasOwnProperty(Z[2][W])){throw (n('[sprintf] property "%s" does not exist',Z[2][W]))}ag=ag[Z[2][W]]}}else{if(Z[1]){ag=aa[Z[1]]}else{ag=aa[af++]}}if(/[^s]/.test(Z[8])&&(f(ag)!="number")){throw (n("[sprintf] expecting number but found %s",f(ag)))}switch(Z[8]){case"b":ag=ag.toString(2);break;case"c":ag=String.fromCharCode(ag);break;case"d":ag=parseInt(ag,10);break;case"e":ag=Z[7]?ag.toExponential(Z[7]):ag.toExponential();break;case"f":ag=Z[7]?parseFloat(ag).toFixed(Z[7]):parseFloat(ag);break;case"o":ag=ag.toString(8);break;case"s":ag=((ag=String(ag))&&Z[7]?ag.substring(0,Z[7]):ag);break;case"u":ag=Math.abs(ag);break;case"x":ag=ag.toString(16);break;case"X":ag=ag.toString(16).toUpperCase();break}ag=(/[def]/.test(Z[8])&&Z[3]&&ag>=0?"+"+ag:ag);ac=Z[4]?Z[4]=="0"?"0":Z[4].charAt(1):" ";ae=Z[6]-String(ag).length;V=Z[6]?o(ac,ae):"";U.push(Z[5]?ag+V:V+ag)}}}return U.join("")};T.cache={};T.parse=function(U){var X=U,Y=[],aa=[],Z=0;while(X){if((Y=/^[^\x25]+/.exec(X))!==null){aa.push(Y[0])}else{if((Y=/^\x25{2}/.exec(X))!==null){aa.push("%")}else{if((Y=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(X))!==null){if(Y[2]){Z|=1;var ab=[],W=Y[2],V=[];if((V=/^([a-z_][a-z_\d]*)/i.exec(W))!==null){ab.push(V[1]);while((W=W.substring(V[0].length))!==""){if((V=/^\.([a-z_][a-z_\d]*)/i.exec(W))!==null){ab.push(V[1])}else{if((V=/^\[(\d+)\]/.exec(W))!==null){ab.push(V[1])}else{throw ("[sprintf] huh?")}}}}else{throw ("[sprintf] huh?")}Y[2]=ab}else{Z|=2}if(Z===3){throw ("[sprintf] mixing positional and named placeholders is not (yet) supported")}aa.push(Y)}else{throw ("[sprintf] huh?")}}}X=X.substring(Y[0].length)}return aa};return T})();var u=function(o,f){f.unshift(o);return n.apply(null,f)};A("sprintf",function(T,f,o){if(!o.sprintf){return T}if(Object.prototype.toString.apply(o.sprintf)==="[object Array]"){return u(T,o.sprintf)}else{if(typeof o.sprintf==="object"){return n(T,o.sprintf)}}return T});S.init=N;S.setLng=t;S.preload=e;S.addResourceBundle=P;S.loadNamespace=F;S.loadNamespaces=C;S.setDefaultNamespace=R;S.t=c;S.translate=c;S.exists=a;S.detectLanguage=O.detectLanguage;S.pluralExtensions=v;S.sync=j;S.functions=O;S.lng=s;S.addPostProcessor=A;S.options=L})();