0byt3m1n1
Path:
C:
/
Program Files
/
RStudio
/
resources
/
app
/
.webpack
/
renderer
/
choose_r
/
[
Home
]
File: index.js
(()=>{"use strict";var e={773:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,s,i){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(o)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(r[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);o&&r[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),s&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=s):c[4]="".concat(s)),t.push(c))}},t}},471:e=>{e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),i="/*# ".concat(s," */");return[t].concat([i]).join("\n")}return[t].join("\n")}},250:e=>{const t={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class n{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||t,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,o){return o&&!this.debug?null:("string"==typeof e[0]&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new n(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new n(this.logger,e)}}var o=new n;class s{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]=this.observers[e]||[],this.observers[e].push(t)})),this}off(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((e=>e!==t)):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this.observers[e]&&[].concat(this.observers[e]).forEach((e=>{e(...n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((t=>{t.apply(t,[e,...n])}))}}function i(){let e,t;const n=new Promise(((n,o)=>{e=n,t=o}));return n.resolve=e,n.reject=t,n}function r(e){return null==e?"":""+e}function a(e,t,n){function o(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function s(){return!e||"string"==typeof e}const i="string"!=typeof t?[].concat(t):t.split(".");for(;i.length>1;){if(s())return{};const t=o(i.shift());!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{}}return s()?{}:{obj:e,k:o(i.shift())}}function l(e,t,n){const{obj:o,k:s}=a(e,t,Object);o[s]=n}function u(e,t){const{obj:n,k:o}=a(e,t);if(n)return n[o]}function c(e,t,n){for(const o in t)"__proto__"!==o&&"constructor"!==o&&(o in e?"string"==typeof e[o]||e[o]instanceof String||"string"==typeof t[o]||t[o]instanceof String?n&&(e[o]=t[o]):c(e[o],t[o],n):e[o]=t[o]);return e}function d(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var p={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function g(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>p[e])):e}const h=[" ",",","?","!",";"];function f(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const o=t.split(n);let s=e;for(let e=0;e<o.length;++e){if(!s)return;if("string"==typeof s[o[e]]&&e+1<o.length)return;if(void 0===s[o[e]]){let i=2,r=o.slice(e,e+i).join(n),a=s[r];for(;void 0===a&&o.length>e+i;)i++,r=o.slice(e,e+i).join(n),a=s[r];if(void 0===a)return;if(null===a)return null;if(t.endsWith(r)){if("string"==typeof a)return a;if(r&&"string"==typeof a[r])return a[r]}const l=o.slice(e+i).join(n);return l?f(a,l,n):void 0}s=s[o[e]]}return s}function m(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class v extends s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const s=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,i=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let r=[e,t];n&&"string"!=typeof n&&(r=r.concat(n)),n&&"string"==typeof n&&(r=r.concat(s?n.split(s):n)),e.indexOf(".")>-1&&(r=e.split("."));const a=u(this.data,r);return a||!i||"string"!=typeof n?a:f(this.data&&this.data[e]&&this.data[e][t],n,s)}addResource(e,t,n,o){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator;let r=[e,t];n&&(r=r.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=e.split("."),o=t,t=r[1]),this.addNamespaces(t),l(this.data,r,o),s.silent||this.emit("added",e,t,n,o)}addResources(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});o.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,o,s){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},r=[e,t];e.indexOf(".")>-1&&(r=e.split("."),o=n,n=t,t=r[1]),this.addNamespaces(t);let a=u(this.data,r)||{};o?c(a,n,s):a={...a,...n},l(this.data,r,a),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var y={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,o,s){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,o,s))})),t}};const b={};class R extends s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,s;super(),n=e,s=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{n[e]&&(s[e]=n[e])})),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=o.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let s=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,r=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const o=h.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===o.length)return!0;const s=new RegExp(`(${o.map((e=>"?"===e?"\\?":e)).join("|")})`);let i=!s.test(e);if(!i){const t=e.indexOf(n);t>0&&!s.test(e.substring(0,t))&&(i=!0)}return i}(e,n,o));if(i&&!r){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:s};const i=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(i[0])>-1)&&(s=i.shift()),e=i.join(o)}return"string"==typeof s&&(s=[s]),{key:e,namespaces:s}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,s=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:r}=this.extractFromKey(e[e.length-1],t),a=r[r.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){const e=t.nsSeparator||this.options.nsSeparator;return o?{res:`${a}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:`${a}${e}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:l,usedNS:a,usedParams:this.getUsedParamsDetails(t)}:i}const c=this.resolve(e,t);let d=c&&c.res;const p=c&&c.usedKey||i,g=c&&c.exactUsedKey||i,h=Object.prototype.toString.apply(d),f=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&d&&"string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof f||"[object Array]"!==h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,d,{...t,ns:r}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(s){const e="[object Array]"===h,n=e?[]:{},o=e?g:p;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const i=`${o}${s}${e}`;n[e]=this.translate(i,{...t,joinArrays:!1,ns:r}),n[e]===i&&(n[e]=d[e])}d=n}}else if(m&&"string"==typeof f&&"[object Array]"===h)d=d.join(f),d&&(d=this.extendTranslation(d,e,t,n));else{let o=!1,r=!1;const u=void 0!==t.count&&"string"!=typeof t.count,p=R.hasDefaultValue(t),g=u?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",f=t[`defaultValue${g}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&p&&(o=!0,d=f),this.isValidLookup(d)||(r=!0,d=i);const m=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:d,v=p&&f!==d&&this.options.updateMissing;if(r||o||v){if(this.logger.log(v?"updateKey":"missingKey",l,a,i,v?f:d),s){const e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const o=(e,n,o)=>{const s=p&&o!==d?o:m;this.options.missingKeyHandler?this.options.missingKeyHandler(e,a,n,s,v,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,a,n,s,v,t),this.emit("missingKey",e,a,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach((e=>{this.pluralResolver.getSuffixes(e,t).forEach((n=>{o([e],i+n,t[`defaultValue${n}`]||f)}))})):o(e,i,f))}d=this.extendTranslation(d,e,t,c,n),r&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${a}:${i}`),(r||o)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${i}`:i,o?d:void 0):this.options.parseMissingKeyHandler(d))}return o?(c.res=d,c.usedParams=this.getUsedParamsDetails(t),c):d}extendTranslation(e,t,n,o,s){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const r="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(r){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),r){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&o&&o.res&&(n.lng=o.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];return s&&s[0]===o[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${o[0]} in key: ${t[0]}`),null):i.translate(...o,t)}),n)),n.interpolation&&this.interpolator.reset()}const r=n.postProcess||this.options.postProcess,a="string"==typeof r?[r]:r;return null!=e&&a&&a.length&&!1!==n.applyPostProcessor&&(e=y.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,o,s,i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const a=this.extractFromKey(e,r),l=a.key;n=l;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==r.count&&"string"!=typeof r.count,d=c&&!r.ordinal&&0===r.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==r.context&&("string"==typeof r.context||"number"==typeof r.context)&&""!==r.context,g=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);u.forEach((e=>{this.isValidLookup(t)||(i=e,!b[`${g[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(b[`${g[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${g.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach((n=>{if(this.isValidLookup(t))return;s=n;const i=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,l,n,e,r);else{let e;c&&(e=this.pluralResolver.getSuffix(n,r.count,r));const t=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(i.push(l+e),r.ordinal&&0===e.indexOf(o)&&i.push(l+e.replace(o,this.options.pluralSeparator)),d&&i.push(l+t)),p){const n=`${l}${this.options.contextSeparator}${r.context}`;i.push(n),c&&(i.push(n+e),r.ordinal&&0===e.indexOf(o)&&i.push(n+e.replace(o,this.options.pluralSeparator)),d&&i.push(n+t))}}let a;for(;a=i.pop();)this.isValidLookup(t)||(o=a,t=this.getResource(n,e,a,r))})))}))})),{res:t,usedKey:n,exactUsedKey:o,usedLng:s,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace;let o=n?e.replace:e;if(n&&void 0!==e.count&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const e of t)delete o[e]}return o}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}function x(e){return e.charAt(0).toUpperCase()+e.slice(1)}class S{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=o.create("languageUtils")}getScriptPartFromCode(e){if(!(e=m(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=m(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=x(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=x(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=x(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],s=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(e))):"string"==typeof e&&s(this.formatLanguageCode(e)),n.forEach((e=>{o.indexOf(e)<0&&s(this.formatLanguageCode(e))})),o}}let w=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],k={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const C=["v1","v2","v3"],E=["v4"],L={zero:0,one:1,two:2,few:3,many:4,other:5};class A{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=o.create("pluralResolver"),this.options.compatibilityJSON&&!E.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return w.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:k[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(m(e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>L[e]-L[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=this.getRule(e,n);return o?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(t)}`:this.getSuffixRetroCompatible(o,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let o=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));const s=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?`_plural_${o.toString()}`:s():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?s():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!C.includes(this.options.compatibilityJSON)}}function O(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,n){const o=u(e,n);return void 0!==o?o:u(t,n)}(e,t,n);return!i&&s&&"string"==typeof n&&(i=f(e,n,o),void 0===i&&(i=f(t,n,o))),i}class T{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=void 0!==t.escape?t.escape:g,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?d(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?d(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?d(t.nestingPrefix):t.nestingPrefixEscaped||d("$t("),this.nestingSuffix=t.nestingSuffix?d(t.nestingSuffix):t.nestingSuffixEscaped||d(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,"g");const t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,"g");const n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(n,"g")}interpolate(e,t,n,o){let s,i,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}const c=e=>{if(e.indexOf(this.formatSeparator)<0){const s=O(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(s,void 0,n,{...o,...t,interpolationkey:e}):s}const s=e.split(this.formatSeparator),i=s.shift().trim(),r=s.join(this.formatSeparator).trim();return this.format(O(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),r,n,{...o,...t,interpolationkey:i})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>u(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?u(this.escape(e)):u(e)}].forEach((t=>{for(a=0;s=t.regex.exec(e);){const n=s[1].trim();if(i=c(n),void 0===i)if("function"==typeof d){const t=d(e,s,o);i="string"==typeof t?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))i="";else{if(p){i=s[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=r(i));const l=t.safeValue(i);if(e=e.replace(s[0],l),p?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=s[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,o,s,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const o=e.split(new RegExp(`${n}[ ]*{`));let i=`{${o[1]}`;e=o[0],i=this.interpolate(i,s);const r=i.match(/'/g),a=i.match(/"/g);(r&&r.length%2==0&&!a||a.length%2!=0)&&(i=i.replace(/'/g,'"'));try{s=JSON.parse(i),t&&(s={...t,...s})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete s.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let l=[];s={...i},s=s.replace&&"string"!=typeof s.replace?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),l=e,u=!0}if(o=t(a.call(this,n[1].trim(),s),s),o&&n[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=r(o)),o||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),o=""),u&&(o=l.reduce(((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()})),o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}function N(e){const t={};return function(n,o,s){const i=o+JSON.stringify(s);let r=t[i];return r||(r=e(m(o),s),t[i]=r),r(n)}}class P{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=o.create("formatter"),this.options=e,this.formats={number:N(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:N(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:N(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:N(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:N(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=N(t)}format(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:s,formatOptions:i}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const o=e.split("(");t=o[0].toLowerCase().trim();const s=o[1].substring(0,o[1].length-1);"currency"===t&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):"relativetime"===t&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach((e=>{if(!e)return;const[t,...o]=e.split(":"),s=o.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=s),"false"===s&&(n[t.trim()]=!1),"true"===s&&(n[t.trim()]=!0),isNaN(s)||(n[t.trim()]=parseInt(s,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[s]){let t=e;try{const r=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},a=r.locale||r.lng||o.locale||o.lng||n;t=this.formats[s](e,a,{...i,...o,...r})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${s}`),e}),e)}}class I extends s{constructor(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=s,this.logger=o.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,s.backend,s)}queueLoad(e,t,n,o){const s={},i={},r={},a={};return e.forEach((e=>{let o=!0;t.forEach((t=>{const r=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[r]=2:this.state[r]<0||(1===this.state[r]?void 0===i[r]&&(i[r]=!0):(this.state[r]=1,o=!1,void 0===i[r]&&(i[r]=!0),void 0===s[r]&&(s[r]=!0),void 0===a[t]&&(a[t]=!0)))})),o||(r[e]=!0)})),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const o=e.split("|"),s=o[0],i=o[1];t&&this.emit("failedLoading",s,i,t),n&&this.store.addResourceBundle(s,i,n),this.state[e]=t?-1:2;const r={};this.queue.forEach((n=>{!function(e,t,n,o){const{obj:s,k:i}=a(e,t,Object);s[i]=s[i]||[],s[i].push(n)}(n.loaded,[s],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{r[e]||(r[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===r[e][t]&&(r[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",r),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:s,callback:i});this.readingCalls++;const r=(r,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}r&&a&&o<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,o+1,2*s,i)}),s):i(r,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,r);try{const n=a(e,t);n&&"function"==typeof n.then?n.then((e=>r(null,e))).catch(r):r(null,n)}catch(e){r(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const s=this.queueLoad(e,t,n,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),o=n[0],s=n[1];this.read(o,s,"read",void 0,void 0,((n,i)=>{n&&this.logger.warn(`${t}loading namespace ${s} for language ${o} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${s} for language ${o}`,i),this.loaded(e,n,i)}))}saveMissing(e,t,n,o,s){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const a={...i,isUpdate:s},l=this.backend.create.bind(this.backend);if(l.length<6)try{let s;s=5===l.length?l(e,t,n,o,a):l(e,t,n,o),s&&"function"==typeof s.then?s.then((e=>r(null,e))).catch(r):r(null,s)}catch(e){r(e)}else l(e,t,n,o,r,a)}e&&e[0]&&this.store.addResource(e[0],t,n,o)}}}function F(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:(e,t,n,o)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function $(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function j(){}class D extends s{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=$(e),this.services={},this.logger=o,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=F();function r(e){return e?"function"==typeof e?new e:e:null}if(this.options={...s,...this.options,...$(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?o.init(r(this.modules.logger),this.options):o.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=P);const n=new S(this.options);this.store=new v(this.options.resources,this.options);const i=this.services;i.logger=o,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new A(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==s.interpolation.format||(i.formatter=r(t),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new T(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new I(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];e.emit(t,...o)})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new R(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];e.emit(t,...o)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=j),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const a=i(),l=()=>{const e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],o=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};n?o(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>o(e))),this.options.preload&&this.options.preload.forEach((e=>o(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const o=i();return e||(e=this.languages),t||(t=this.options.ns),n||(n=j),this.services.backendConnector.reload(e,t,(e=>{o.resolve(),n(e)})),o}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&y.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const o=i();this.emit("languageChanging",e);const s=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},r=(e,i)=>{i?(s(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,o.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||s(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{r(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),o}getFixedT(e,t,n){var o=this;const s=function(e,t){let i;if("object"!=typeof t){for(var r=arguments.length,a=new Array(r>2?r-2:0),l=2;l<r;l++)a[l-2]=arguments[l];i=o.options.overloadTranslationOptionHandler([e,t].concat(a))}else i={...t};i.lng=i.lng||s.lng,i.lngs=i.lngs||s.lngs,i.ns=i.ns||s.ns,i.keyPrefix=i.keyPrefix||n||s.keyPrefix;const u=o.options.keySeparator||".";let c;return c=i.keyPrefix&&Array.isArray(e)?e.map((e=>`${i.keyPrefix}${u}${e}`)):i.keyPrefix?`${i.keyPrefix}${u}${e}`:e,o.t(c,i)};return"string"==typeof e?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=n,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(n,e)||o&&!i(s,e)))}loadNamespaces(e,t){const n=i();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=i();"string"==typeof e&&(e=[e]);const o=this.options.preload||[],s=e.filter((e=>o.indexOf(e)<0));return s.length?(this.options.preload=o.concat(s),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new S(F());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new D(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},s=new D(o);return void 0===e.debug&&void 0===e.prefix||(s.logger=s.logger.clone(e)),["store","services","language"].forEach((e=>{s[e]=this[e]})),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},n&&(s.store=new v(this.store.data,o),s.services.resourceStore=s.store),s.translator=new R(s.services,o),s.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];s.emit(e,...n)})),s.init(o,t),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const M=D.createInstance();M.createInstance=D.createInstance,e.exports=M},539:(e,t,n)=>{n.d(t,{Z:()=>a});var o=n(471),s=n.n(o),i=n(773),r=n.n(i)()(s());r.push([e.id,"body {\n background-color: rgb(240, 240, 240);\n font-size: 9pt;\n font-family: 'Helvetica', 'Arial', sans-serif;\n}\n\nlabel {\n vertical-align: 2px;\n}\n\n.select {\n margin-top: 6px;\n width: 100%;\n}\n\n.select option {\n font-size: 9pt;\n padding: 2px 4px;\n}\n\n.footer-left {\n position: fixed;\n bottom: 8px;\n left: 12px;\n}\n\n.footer-right {\n position: fixed;\n bottom: 8px;\n right: 12px;\n}\n\nbutton {\n width: 72px;\n padding: 3px 4px;\n margin: 4px 0 4px 4px;\n font-size: 8pt;\n user-select: none;\n}\n\nbutton.buttonDownload {\n width: 82px;\n}","",{version:3,sources:["webpack://./src/ui/widgets/choose-r/styles.css"],names:[],mappings:"AAAA;EACE,oCAAoC;EACpC,cAAc;EACd,6CAA6C;AAC/C;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,eAAe;EACf,WAAW;AACb;;AAEA;EACE,cAAc;EACd,gBAAgB;AAClB;;AAEA;EACE,eAAe;EACf,WAAW;EACX,UAAU;AACZ;;AAEA;EACE,eAAe;EACf,WAAW;EACX,WAAW;AACb;;AAEA;EACE,WAAW;EACX,gBAAgB;EAChB,qBAAqB;EACrB,cAAc;EACd,iBAAiB;AACnB;;AAEA;EACE,WAAW;AACb",sourcesContent:["body {\r\n background-color: rgb(240, 240, 240);\r\n font-size: 9pt;\r\n font-family: 'Helvetica', 'Arial', sans-serif;\r\n}\r\n\r\nlabel {\r\n vertical-align: 2px;\r\n}\r\n\r\n.select {\r\n margin-top: 6px;\r\n width: 100%;\r\n}\r\n\r\n.select option {\r\n font-size: 9pt;\r\n padding: 2px 4px;\r\n}\r\n\r\n.footer-left {\r\n position: fixed;\r\n bottom: 8px;\r\n left: 12px;\r\n}\r\n\r\n.footer-right {\r\n position: fixed;\r\n bottom: 8px;\r\n right: 12px;\r\n}\r\n\r\nbutton {\r\n width: 72px;\r\n padding: 3px 4px;\r\n margin: 4px 0 4px 4px;\r\n font-size: 8pt;\r\n user-select: none;\r\n}\r\n\r\nbutton.buttonDownload {\r\n width: 82px;\r\n}"],sourceRoot:""}]);const a=r},116:(e,t,n)=>{n.r(t),n.d(t,{default:()=>v});var o=n(379),s=n.n(o),i=n(795),r=n.n(i),a=n(569),l=n.n(a),u=n(565),c=n.n(u),d=n(216),p=n.n(d),g=n(589),h=n.n(g),f=n(539),m={};m.styleTagTransform=h(),m.setAttributes=c(),m.insert=l().bind(null,"head"),m.domAPI=r(),m.insertStyleElement=p(),s()(f.Z,m);const v=f.Z&&f.Z.locals?f.Z.locals:void 0},379:e=>{var t=[];function n(e){for(var n=-1,o=0;o<t.length;o++)if(t[o].identifier===e){n=o;break}return n}function o(e,o){for(var i={},r=[],a=0;a<e.length;a++){var l=e[a],u=o.base?l[0]+o.base:l[0],c=i[u]||0,d="".concat(u," ").concat(c);i[u]=c+1;var p=n(d),g={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(g);else{var h=s(g,o);o.byIndex=a,t.splice(a,0,{identifier:d,updater:h,references:1})}r.push(d)}return r}function s(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,s){var i=o(e=e||[],s=s||{});return function(e){e=e||[];for(var r=0;r<i.length;r++){var a=n(i[r]);t[a].references--}for(var l=o(e,s),u=0;u<i.length;u++){var c=n(i[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=l}}},569:e=>{var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var s=void 0!==n.layer;s&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,s&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},364:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,s)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.changeLanguage=t.localize=t.initI18n=void 0;const a=r(n(250)),l=i(n(921)),u=i(n(56));t.initI18n=()=>{a.default.init({resources:{en:{translation:l},fr:{translation:u}},fallbackLng:"en"}).catch((e=>{console.log("Error when initializing i18next: "),console.log(e)}))},t.changeLanguage=async(e="en")=>a.default.changeLanguage(e).catch((t=>{console.log("Something went wrong changing language to "+e,t)})),t.localize=function(e,t){try{!function(e,t){e.querySelectorAll("[data-i18n]").forEach((e=>{const n=e.getAttribute("data-i18n"),o=-1===n.indexOf(".")?`${t}.${n}`:n;a.default.exists(o)&&(e.innerHTML=a.default.t(o))}))}(e,t)}catch(e){const t=a.default.t("i18nManager.errorLocalizingDocument");console.log(`${t}: ${e}`)}}},54:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.logError=t.logString=void 0,t.logString=function(e,t){window.desktopLogger.logString(e,t)},t.logError=function(e){window.desktopLogger.logError(e)}},811:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.kWindowsRExe=t.normalizeSeparatorsNative=t.normalizeSeparators=t.checkForNewLanguage=void 0;const n=e=>{if("undefined"!=typeof window){const t=window.localStorage.getItem(e);return{isSet:""!==t&&!!t,value:t}}return{isSet:!1,value:""}};function o(e,t="/"){let n="";return e.startsWith("\\\\")&&(n=`${t}${t}`,e=e.substring(2)),`${n}${e.replace(/[\\/]+/g,t)}`}t.checkForNewLanguage=async()=>new Promise((e=>{const t=(new Date).getTime(),o=setInterval((()=>{if((new Date).getTime()>t+5e3)clearInterval(o),e("en");else{const s=n("LAST_TIME");if(s.isSet){const i=n("LOCALE");i.isSet&&t<=parseInt(""+s.value,10)+3e3&&(clearInterval(o),e(""+i.value))}}}),100)})),t.normalizeSeparators=o,t.normalizeSeparatorsNative=function(e){return o(e,"win32"===process.platform?"\\":"/")},t.kWindowsRExe="Rterm.exe"},921:e=>{e.exports=JSON.parse('{"common":{"buttonOk":"OK","buttonCancel":"Cancel","buttonBrowse":"Browse...","buttonDownloadR":"Download R...","unknownErrorOccurred":"An unknown error occurred.","workingOnIt":"Working on it...","buttonYes":"Yes","buttonNo":"No","buttonQuit":"Quit","noFileSelected":"No file selected","allFiles":"All Files"},"imgAlt":{"dialogQuestion":"Question Mark Icon","dialogInfo":"Information Icon","dialogWarning":"Warning Icon","dialogError":"Error Icon"},"contextMenu":{"saveImageAsDots":"Save image as...","saveImageAs":"Save image as","copyImage":"Copy Image","reload":"Reload","copyImageAddress":"Copy Image Address","cut":"Cut","copy":"Copy","paste":"Paste","selectAll":"Select All","inspectElement":"Inspect Element","errorDownloadingImage":"Error downloading image","downloadCancelledMessage":"The download was cancelled.","downloadInterruptedMessage":"The download was interrupted.","save":"Save"},"chooseRDialog":{"documentTitle":"Choose R Installation","title":"RStudio requires an existing installation of R.","subtitle":"Please select the version of R to use.","use64BitR":"Use your machine\'s default 64-bit version of R","use32BitR":"Use your machine\'s default 32-bit version of R","useCustom":"Choose a specific version of R:","customizeRenderingEngine":"You can also customize the rendering engine used by RStudio.","renderingEngineLabel":"Rendering Engine:","renderingEngineOptionAuto":"Auto-detect (recommended)","renderingEngineOptionDesktop":"Desktop","renderingEngineOptionSoftware":"Software","renderingEngineChangedTitle":"Rendering Engine Changed","renderingEngineChangedMessage":"The rendering engine has been changed.\\nPlease restart RStudio for these changes to take effect.","rLaunchFailedTitle":"Error Loading R","rLaunchFailedMessage":"An error occurred while attempting to load the selected version of R. Please select a different R installation."},"detectRosetta":{"checkFailedTitle":"Rosetta Check Failed","checkFailedMessage":"Something went wrong while detecting your Rosetta installation.","checkFailedDetail":"Please reopen RStudio to try again.","installWarningTitle":"Rosetta is not Installed","installWarningMessage":"Rosetta is not installed on your machine. You may experience issues running RStudio.","installWarningDetail":"To avoid these issues, please install Rosetta and reopen RStudio.","installWarningMoreInfo":"More Information","installWarningRemindLater":"Remind Me Later","installWarningDoNotRemind":"Don\'t Remind Me Again"},"uiFolder":{"chooseRExecutable":"Choose R Executable","rExecutable":"R Executable","browseDots":"Browse...","okCaps":"OK","cancel":"Cancel","errorStartingR":"Error Starting R","problemReportCopiedToClipboard":"Problem report copied to clipboard.","couldNotCopyProblemReportToClipboard":"Could not copy problem report to clipboard.","rLogo":"R Logo","warning":"Warning","rstudioVersion":"RStudio Version","errorMessage":"Error Message","processOutput":"Process Output","rSessionExitedWithCode":"The R session process exited with code {{- exitCode}}.","errors":"Errors","output":"Output","recentLog":"Recent Log","nextSteps":"Next Steps","rCanFailToStartupForManyReasons":"R can fail to start up for many reasons. The following may help you resolve the problem:","investigateAnyErrorsAbove":"Investigate any errors above.","makeSureThatRStartsUpCorrectly":"Make sure that R starts up correctly outside RStudio (using RGui, R.app, or R in a terminal).","fullyUninstallAllVersionsOfRFromYourMachine":"Fully uninstall all versions of R from your machine, and reinstall the version you wish to use with RStudio.","removeStartupCustomizationsSuchAs":"Remove startup customizations such as an {{- rProfileFileExtension}} file, if present.","ifPostingThisReportOnlineUseTheCopyProblemReport":"If posting this report online, use the Copy Problem Report button below to generate a textual version of this diagnostic.","furtherTroubleshootingHelpCanBeFound":"Further troubleshooting help can be found on our website:","troubleshootingRstudioStartup":"Troubleshooting RStudio Startup","copyProblemReport":"Copy Problem Report","cannotConnectToR":"Cannot Connect to R","rstudioCantEstablishAConnectionToR":"RStudio can\'t establish a connection to R. This usually indicates one of the following:","theRSessionIsTakingAnUnusuallyLongTimeToStart":"The R session is taking an unusually long time to start, perhaps because of slow operations in startup scripts or slow network drive access.","rstudioIsUnableToCommunicateWithR":"RStudio is unable to communicate with R over a local network port, possibly because of firewall restrictions or anti-virus software.","pleaseTryTheFollowing":"Please try the following:","ifYouveCustomizedRSessionCreation":"If you\'ve customized R session creation by creating an R profile (e.g. located at {{- rProfileFileExtension}} consider temporarily removing it.","ifYouAreUsingAFirewallOrAntivirus":"If you are using a firewall or antivirus software which guards access to local network ports, add an exclusion for the RStudio and rsession executables.","runRguiRAppOrRInATerminalToEnsure":"Run RGui, R.app, or R in a terminal to ensure that R itself starts up correctly.","retry":"Retry","initializingR":"Initializing R","theRsessionIsInitializing":"The R session is initializing {{- mdash}} please wait a moment...","rSessionFailedToStart":"The R session failed to start."},"applicationTs":{"devModeConfig":"Dev Mode Config","confColon":"conf:","notFoundDotLowercase":"not found.","errorFindingR":"R Not Installed","rstudioFailedToFindRInstalationsOnTheSystem":"R does not appear to be installed. Please install R before using RStudio.\\n\\nYou can download R from the official R Project website.\\nWould you like to go there now?","newRstudioWindow":"New RStudio Window"},"detectRTs":{"rNotFound":"R not found","couldNotLocateAnRInstallationOnTheSystem":"Could not locate an R installation on the system."},"gwtCallbackTs":{"unimplemented":"Unimplemented","callbackNyiLowercase":"{{ipcName}} callback NYI"},"mainTs":{"unhandledException":"Unhandled Exception"},"sessionLauncherTs":{"rSessionFatalError":"The R session had a fatal error.","errorWasCausedByRAttemptingToLoadPackagesFromADifferentIncompatibleRVersion":"This error was very likely caused by R attempting to load packages from a different incompatible version of R on your system. Please remove other versions of R and/or remove environment variables that reference libraries from other versions of R before proceeding."},"utilsTs":{"rsessionNotFoundError":"Could not find rsession executable. Try setting the \\"RSTUDIO_CPP_BUILD_OUTPUT\\" environment variable to the location where src/cpp was built.\\n( Working directory: {{workingDirectory}} )"},"mainWindowTs":{"rSessionFailedToStart":"The R session failed to start."},"i18nManager":{"errorLocalizingDocument":"Error localizing document:"},"licenseDialog":{}}')},56:e=>{e.exports=JSON.parse('{"common":{"buttonOk":"OK","buttonCancel":"Annuler","buttonBrowse":"Parcourir...","buttonDownloadR":"Télécharger R...","unknownErrorOccurred":"Une erreur inconnue s\'est produite.","workingOnIt":"En cours d\'élaboration...","buttonYes":"Oui","buttonNo":"Non","buttonQuit":"Quitter","noFileSelected":"Aucun fichier sélectionné","allFiles":"Tous les fichiers"},"imgAlt":{"dialogQuestion":"Icône du point d\'interrogation","dialogInfo":"Icône d\'information","dialogWarning":"Icône d\'alerte","dialogError":"Icône d\'erreur"},"contextMenu":{"saveImageAsDots":"Enregistrer l\'image sous...","saveImageAs":"Enregistrer l\'image sous","copyImage":"Copier l\'image","reload":"Recharger","copyImageAddress":"Copier l\'adresse de l\'image","cut":"Couper","copy":"Copier","paste":"Coller","selectAll":"Tout sélectionner","inspectElement":"Inspecter l\'élément","errorDownloadingImage":"Erreur de téléchargement de l\'image","downloadCancelledMessage":"Le téléchargement a été annulé","downloadInterruptedMessage":"Le téléchargement a été interrompu.","save":"Sauvegarder"},"chooseRDialog":{"documentTitle":"Choisir l\'installation de R","title":"RStudio requiert une installation existante de R.","subtitle":"Veuillez sélectionner la version de R à utiliser.","use64BitR":"Utilisez la version 64 bits par défaut de R sur votre machine","use32BitR":"Utilisez la version 32 bits par défaut de R sur votre machine","useCustom":"Choisissez une version spécifique de R :","customizeRenderingEngine":"Vous pouvez également personnaliser le moteur de rendu utilisé par RStudio","renderingEngineLabel":"Moteur de rendu :","renderingEngineOptionAuto":"Détection automatique (recommandée)","renderingEngineOptionDesktop":"Espace de travail","renderingEngineOptionSoftware":"Logiciel","renderingEngineChangedTitle":"Moteur de rendu modifié","renderingEngineChangedMessage":"Le moteur de rendu a été modifié. Veuillez redémarrer RStudio pour que ces modifications prennent effet.","rLaunchFailedTitle":"Erreur de chargement de R","rLaunchFailedMessage":"Une erreur s\'est produite lors de la tentative de chargement de la version sélectionnée de R. Veuillez sélectionner une installation de R différente."},"detectRosetta":{"checkFailedTitle":"Rosetta vérification a échoué","checkFailedMessage":"Une erreur s\'est produite lors de la vérification de l\'installation de Rosetta.","checkFailedDetail":"Veuillez rouvrir RStudio pour réessayer.","installWarningTitle":"Rosetta n\'est pas installé","installWarningMessage":"Rosetta n\'est pas installé sur votre machine. Vous pouvez rencontrer des problèmes lors de l\'exécution de RStudio.","installWarningDetail":"Pour éviter ces problèmes, veuillez installer Rosetta et rouvrir RStudio.","installWarningMoreInfo":"Plus d\'informations","installWarningRemindLater":"Rappelez-moi plus tard","installWarningDoNotRemind":"Ne me le rappelez plus"},"uiFolder":{"chooseRExecutable":"Choisissez l\'exécutable de R","rExecutable":"Exécutable R","browseDots":"Parcourir...","okCaps":"OK","cancel":"Annuler","errorStartingR":"Erreur de démarrage de R","problemReportCopiedToClipboard":"Rapport d\'erreur copié dans le presse-papiers.","couldNotCopyProblemReportToClipboard":"Impossible de copier le rapport d\'erreur dans le presse-papiers.","rLogo":"Logo de R","warning":"Avertissement","rstudioVersion":"Version de RStudio","errorMessage":"Message d\'erreur","processOutput":"Sortie du processus","rSessionExitedWithCode":"Le processus de la session R a quitté avec le code {{- exitCode}}.","errors":"Erreurs","output":"Sortie","recentLog":"Journal récent","nextSteps":"Prochaines étapes","rCanFailToStartupForManyReasons":"R peut échouer au démarrage pour de nombreuses raisons. Les éléments suivants peuvent vous aider à résoudre le problème :","investigateAnyErrorsAbove":"Examinez toutes les erreurs ci-dessus.","makeSureThatRStartsUpCorrectly":"Assurez-vous que R démarre correctement en dehors de RStudio (en utilisant RGui, R.app, ou R dans un terminal).","fullyUninstallAllVersionsOfRFromYourMachine":"Désinstaller complètement toutes les versions de R de votre machine, et réinstaller la version que vous souhaitez utiliser avec RStudio.","removeStartupCustomizationsSuchAs":"Supprimez les personnalisations de démarrage telles qu\'un fichier {{- rProfileFileExtension}}, s\'il est présent.","ifPostingThisReportOnlineUseTheCopyProblemReport":"Si vous publiez ce rapport en ligne, utilisez le bouton Copier le rapport de problème ci-dessous pour générer une version textuelle de ce diagnostic.","furtherTroubleshootingHelpCanBeFound":"Une aide supplémentaire au dépannage peut être trouvée sur notre site Web :","troubleshootingRstudioStartup":"Dépannage du démarrage de RStudio","copyProblemReport":"Copier le rapport de problème","cannotConnectToR":"Impossible de se connecter à R","rstudioCantEstablishAConnectionToR":"RStudio ne peut pas établir de connexion à R. Cela indique généralement l\'une des situations suivantes :","theRSessionIsTakingAnUnusuallyLongTimeToStart":"La session R prend un temps anormalement long pour démarrer, peut-être en raison de la lenteur des opérations dans les scripts de démarrage ou de l\'accès lent au lecteur réseau.","rstudioIsUnableToCommunicateWithR":"RStudio est incapable de communiquer avec R sur un port du réseau local, peut-être à cause de restrictions du pare-feu ou d\'un logiciel anti-virus.","pleaseTryTheFollowing":"Veuillez essayer ce qui suit :","ifYouveCustomizedRSessionCreation":"Si vous avez personnalisé la création de session R en créant un profil R (par exemple, situé à {{- rProfileFileExtension}}, envisagez de le supprimer temporairement.","ifYouAreUsingAFirewallOrAntivirus":"Si vous utilisez un pare-feu ou un logiciel antivirus qui surveille l\'accès aux ports du réseau local, ajoutez une exclusion pour les exécutables RStudio et rsession.","runRguiRAppOrRInATerminalToEnsure":"Exécutez RGui, R.app, ou R dans un terminal pour vous assurer que R lui-même démarre correctement.","retry":"Réessayer","initializingR":"Initialisation de R","theRsessionIsInitializing":"La session R est en train de s\'initialiser {{- mdash}} veuillez patienter un instant...","rSessionFailedToStart":"La session R n\'a pas réussi à démarrer."},"applicationTs":{"devModeConfig":"Mode Config DEV","confColon":"conf :","notFoundDotLowercase":"non trouvé.","errorFindingR":"Erreur de recherche de R","rstudioFailedToFindRInstalationsOnTheSystem":"RStudio n\'a pas réussi à trouver d\'installation R sur le système. Merci d\'installer R avant d\'utiliser RStudio.\\n\\nVous pouvez télécharger R sur le site officiel du projet R. \\nVoulez-vous y aller maintenant ?","newRstudioWindow":"Nouvelle fenêtre RStudio"},"detectRTs":{"rNotFound":"R non trouvé","couldNotLocateAnRInstallationOnTheSystem":"Impossible de localiser une installation R sur le système."},"gwtCallbackTs":{"unimplemented":"Non implémenté","callbackNyiLowercase":"{{ipcName}} pas encore implémenté"},"mainTs":{"unhandledException":"Exception non gérée"},"sessionLauncherTs":{"rSessionFatalError":"La session R a eu une erreur fatale.","errorWasCausedByRAttemptingToLoadPackagesFromADifferentIncompatibleRVersion":"Cette erreur a très probablement été causée par la tentative de R de charger des paquets à partir d\'une autre version incompatible de R sur votre système. Veuillez supprimer les autres versions de R et/ou supprimer les variables d\'environnement qui font référence aux bibliothèques d\'autres versions de R avant de poursuivre."},"utilsTs":{"rsessionNotFoundError":"Impossible de trouver l\'exécutable rsession. Essayez de définir la variable d\'environnement \\"RSTUDIO_CPP_BUILD_OUTPUT\\" à l\'emplacement où src/cpp a été construit.\\n( Répertoire de travail : {{workingDirectory}} )"},"mainWindowTs":{"rSessionFailedToStart":"La session R n\'a pas réussi à démarrer."},"i18nManager":{"errorLocalizingDocument":"Erreur de localisation du document :"}}')}},t={};function n(o){var s=t[o];if(void 0!==s)return s.exports;var i=t[o]={id:o,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},void 0!==n&&(n.ab="/native_modules/"),n.nc=void 0,(()=>{const e=n(364);n(116);const t=n(811),o=n(54);(0,e.initI18n)();const s=document.getElementById("select"),i=document.getElementById("use-custom"),r=document.getElementById("use-default-32"),a=document.getElementById("use-default-64");document.querySelectorAll('input[type="radio"]').forEach((e=>{e.addEventListener("click",(()=>{s.disabled=!i.checked}))}));const l=document.getElementById("button-ok"),u=document.getElementById("button-cancel"),c=document.getElementById("button-browse"),d=document.getElementById("button-download"),p=document.getElementById("rendering-engine");function g(e){return{binaryPath:e,renderingEngine:p.value}}l.addEventListener("click",v),r.addEventListener("input",m),a.addEventListener("input",m),i.addEventListener("input",m),s.addEventListener("input",m),u.addEventListener("click",f);let h=!1;function f(){window.callbacks.cancel(),window.close()}async function m(){l.disabled=!(s.value||r.checked||a.checked)}async function v(){if(document.getElementById("use-default-32").checked)await window.callbacks.useDefault32bit(g())&&window.close();else if(document.getElementById("use-default-64").checked)await window.callbacks.useDefault64bit(g())&&window.close();else if(document.getElementById("use-custom").checked){const e=document.getElementById("select").value;await window.callbacks.use(g(e))&&window.close()}}c.addEventListener("click",(async()=>{h=!0;try{await window.callbacks.browse(g())&&window.close()}catch(e){(0,o.logString)("debug",`Error occurred when trying to browse for R: ${e}`)}finally{setTimeout((()=>{h=!1}),150)}})),d.addEventListener("click",(async()=>{window.callbacks.downloadR()})),window.addEventListener("load",(()=>{window.addEventListener("keyup",(e=>{switch(e.key){case"Enter":document.activeElement!==c&&v();break;case"Escape":h||f()}}),!0),(0,t.checkForNewLanguage)().then((async t=>(0,e.changeLanguage)(""+t).then((()=>{(0,e.localize)(document,"chooseRDialog")})))).catch((e=>{console.error("An error happened when trying to fetch a new locale: ",e)}))}))})()})(); //# sourceMappingURL=index.js.map