1!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).i18nextHttpBackend=e()}(function(){return function o(r,i,a){function s(t,e){if(!i[t]){if(!r[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(u)return u(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=i[t]={exports:{}},r[t][0].call(n.exports,function(e){return s(r[t][1][e]||e)},n,n.exports,o,r,i,a)}return i[t].exports}for(var u="function"==typeof require&&require,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c=e("./utils.js"),r=(e=e("./request.js"))&&e.__esModule?e:{default:e};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function u(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){e=((e,t)=>{if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if("object"!=i(n=n.call(e,t||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")})(e,"string");return"symbol"==i(e)?e:e+""}e=function e(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=this,i=e;if(!(r instanceof i))throw new TypeError("Cannot call a class as a function");this.services=t,this.options=n,this.allOptions=o,this.type="backend",this.init(t,n,o)},(d=[{key:"init",value:function(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=a(a(a({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return u({},t,n||"")},parseLoadPayload:function(e,t){},request:r.default,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),n),this.allOptions=o,this.services&&this.options.reloadInterval&&"object"===i(e=setInterval(function(){return t.reload()},this.options.reloadInterval))&&"function"==typeof e.unref&&e.unref()}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(o,r,i,a,s){var u=this,e=this.options.loadPath;"function"==typeof this.options.loadPath&&(e=this.options.loadPath(o,i)),(e=(0,c.makePromise)(e)).then(function(e){var t,n;return e?null==(e=(0,c.interpolateUrl)(e,{lng:o.join("+"),ns:i.join("+")}))?(t=o.map(c.sanitizeLogValue).join(", "),n=i.map(c.sanitizeLogValue).join(", "),s(new Error("i18next-http-backend: unsafe lng/ns value â refusing to build request URL for languages=["+t+"] namespaces=["+n+"]"),!1)):void u.loadUrl(e,s,r,a):s(null,{})})}},{key:"loadUrl",value:function(e,i,a,s){var u=this,t=this.options.parseLoadPayload("str
1ing"==typeof a?[a]:a,"string"==typeof s?[s]:s),f=(0,c.sanitizeLogValue)((0,c.redactUrlCredentials)(e));this.options.request(this.options,e,t,function(e,t){if(t&&(500<=t.status&&t.status<600||!t.status))return i("failed loading "+f+"; status code: "+t.status,!0);if(t&&400<=t.status&&t.status<500)return i("failed loading "+f+"; status code: "+t.status,!1);if(!t&&e&&e.message){var n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(function(e){return-1<n.indexOf(e)}))return i("failed loading "+f+": "+(0,c.sanitizeLogValue)(e.message),!0)}if(e)return i(e,!1);var o,r;try{o="string"==typeof t.data?u.options.parse(t.data,a,s):t.data}catch(e){r="failed parsing "+f+" to json"}if(r)return i(r,!1);i(null,o)})}},{key:"create",value:function(n,o,e,t,r){var i,a,s,u,f=this;this.options.addPath&&("string"==typeof n&&(n=[n]),i=this.options.parsePayload(o,e,t),a=0,s=[],u=[],n.forEach(function(e){var t=f.options.addPath,t=("function"==typeof f.options.addPath&&(t=f.options.addPath(e,o)),(0,c.interpolateUrl)(t,{lng:e,ns:o}));null==t?(a+=1,r&&a===n.length&&r(s,u)):f.options.request(f.options,t,i,function(e,t){a+=1,s.push(e),u.push(t),a===n.length&&"function"==typeof r&&r(s,u)})}))}},{key:"reload",value:function(){var t,e,n=this,o=this.services,r=o.backendConnector,i=o.languageUtils,a=o.logger,o=r.language;o&&"cimode"===o.toLowerCase()||(t=[],(e=function(e){i.toResolveHierarchy(e).forEach(function(e){t.indexOf(e)<0&&t.push(e)})})(o),this.allOptions.preload&&this.allOptions.preload.forEach(e),t.forEach(function(o){n.allOptions.ns.forEach(function(n){r.read(o,n,"read",null,null,function(e,t){e&&a.warn("loading namespace ".concat(n," for language ").concat(o," failed"),e),!e&&t&&a.log("loaded namespace ".concat(n," for language ").concat(o),t),r.loaded("".concat(o,"|").concat(n),e,t)})})}))}}])&&s(e.prototype,d),l&&s(e,l),Object.defineProperty(e,"prototype",{writable:!1});var l,d=e;d.type="backend",n.default=d;t.exports=n.default},{"./request.js":2,"./utils.js":3}],2:[function(e,n,o){!function(q){!function(){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var g=e("./utils.js");function t(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function b(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?t(Object(r),!0).forEach(function(e){var t,n;t=o,n=r[e=e],(e=(e=>(e=((e,t)=>{if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if("object"!=m(n=n.call(e,t||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")})(e,"string"),"symbol"==m(e)?e:e+""))(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})}return o}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var O,w,j="function"==typeof fetch?fetch:void 0;if(void 0!==q&&q.fetch?j=q.fetch:"undefined"!=typeof window&&window.fetch&&(j=window.fetch),(0,g.hasXMLHttpRequest)()&&(void 0!==q&&q.XMLHttpRequest?O=q.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(O=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&(void 0!==q&&q.ActiveXObject?w=q.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(w=window.ActiveXObject)),!(j="function"!=typeof j?void 0:j)&&!O&&!w)try{j=e("cross-fetch")}catch(e){}var P=["__proto__","constructor","prototype"],S=function(e,t){if(t&&"object"===m(t)){for(var n="",o=0,r=Object.keys(t);o<r.length;o++){var i=r[o];-1<P.indexOf(i)||(n+="&"+encodeURIComponent(i)+"="+encodeURIComponent(t[i]))}if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},x=function(e,t,n,o){function r(t){if(!t.ok)return n(t.statusText||"Error",{status:t.status});t.text().then(function(e){n(null,{status:t.status,data:e})}).catch(n)}if(o){o=o(e,t);if(o instanceof Promise)return void o.then(r).catch(n)}("function"==typeof fetch?fetch:j)(e,t).then(r).catch(n)};o.default=function(e,t,n,o){if("function"==typeof n&&(o=n,n=void 0),o=o||function(){},j&&0!==t.indexOf("file:")){var r=e,i=t,a=n,s=o,u=(r.queryStringParams&&(i=S(i,r.queryStringParams)),b({},"function"==typeof r.customHeaders?r.customHeaders():r.customHeaders)),f=("undefined"==typeof window&&void 0!==q&&void 0!==q.process&&q.process.versions&&q.process.versions.node&&(u["User-Agent"]="i18next-http-backend (node/".concat(q.process.version,";
1 ").concat(q.process.platform," ").concat(q.process.arch,")")),a&&(u["Content-Type"]="application/json"),"function"==typeof r.requestOptions?r.requestOptions(a):r.requestOptions),c=b({method:a?"POST":"GET",body:a?r.stringify(a):void 0,headers:u},r._omitFetchOptions?{}:f),a="function"==typeof r.alternateFetch&&1<=r.alternateFetch.length?r.alternateFetch:void 0;try{x(i,c,s,a)}catch(e){if(!f||0===Object.keys(f).length||!e.message||e.message.indexOf("not implemented")<0)return s(e);try{Object.keys(f).forEach(function(e){delete c[e]}),x(i,c,s,a),r._omitFetchOptions=!0}catch(e){s(e)}}}else if((0,g.hasXMLHttpRequest)()||"function"==typeof ActiveXObject){var u=e,f=t,i=n,l=o;i&&"object"===m(i)&&(i=S("",i).slice(1)),u.queryStringParams&&(f=S(f,u.queryStringParams));try{var d=O?new O:new w("MSXML2.XMLHTTP.3.0"),p=(d.open(i?"POST":"GET",f,1),u.crossDomain||d.setRequestHeader("X-Requested-With","XMLHttpRequest"),d.withCredentials=!!u.withCredentials,i&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.overrideMimeType&&d.overrideMimeType("application/json"),u.customHeaders);if(p="function"==typeof p?p():p)for(var y=0,h=Object.keys(p);y<h.length;y++){var v=h[y];-1<P.indexOf(v)||d.setRequestHeader(v,p[v])}d.onreadystatechange=function(){3<d.readyState&&l(400<=d.status?d.statusText:null,{status:d.status,data:d.responseText})},d.send(i)}catch(e){console&&console.log(e)}}else o(new Error("No fetch and no xhr implementation found!"))};n.exports=o.default}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./utils.js":3,"cross-fetch":4}],3:[function(e,t,n){function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.defaults=function(r){return i.call(a.call(arguments,1),function(e){if(e)for(var t=0,n=Object.keys(e);t<n.length;t++){var o=n[t];-1<f.indexOf(o)||void 0===r[o]&&(r[o]=e[o])}}),r},n.hasXMLHttpRequest=function(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":o(XMLHttpRequest))},n.interpolate=function(e,n){return e.replace(p,function(e,t){var t=t.trim();return!(-1<f.indexOf(t))&&null!=(t=n[t])?t:e})},n.interpolateUrl=function(e,a){var s=!1,e=e.replace(p,function(e,t){t=t.trim();if(-1<f.indexOf(t))return e;var n=a[t];if(null==n)return e;var o,r=d[t]||c,t=String(n).split("+"),i=((e,t)=>{var n,o,r,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(o=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return o=e.done,e},e:function(e){r=!0,n=e},f:function(){try{o||null==a.return||a.return()}finally{if(r)throw n}}};if(Array.isArray(e)||(a=((e,t)=>{var n;if(e)return"string"==typeof e?u(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0})(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})(t);try{for(i.s();!(o=i.n()).done;)if(!r(o.value))return s=!0,e}catch(e){i.e(e)}finally{i.f()}return t.join("+")});return s?null:e},n.isSafeLangUrlSegment=c,n.isSafeNsUrlSegment=l,n.isSafeUrlSegment=void 0,n.makePromise=function(e){if((e=>e&&"function"==typeof e.then)(e))return e;return Promise.resolve(e)},n.redactUrlCredentials=function(t){if("string"!=typeof t||0===t.length)return t;try{var e=new URL(t);return e.username||e.password?(e.username="",e.password="",e.toString()):t}catch(e){return t.replace(/(\/\/)[^/@\s]+@/g,"$1")}},n.sanitizeLogValue=function(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")};var r=[],i=r.forEach,a=r.slice,f=["__proto__","constructor","prototype"];function s(e){return"string"==typeof e&&!(0===e.length||128<e.length||-1<f.indexOf(e)||-1<e.indexOf("..")||-1<e.indexOf("\\")||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function c(e){return!(!s(e)||-1<e.indexOf("/"))}function l(e){return s(e)}n.isSafeUrlSegment=c;var d={lng:c,ns:l};var p=/\{\{(.+?)\}\}/g},{}],4:[function(e,t,n){},{}]},{},[1])(1)});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.