!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("i18nextLocalStorageCache",t):e.i18nextLocalStorageCache=t()}(this,function(){"use strict";function e(e){return a.call(r.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e}function t(e,t,n){var i;return function(){var o=this,a=arguments,r=function(){i=null,n||e.apply(o,a)},c=n&&!i;clearTimeout(i),i=setTimeout(r,t),c&&e.apply(o,a)}}function n(){return{enabled:!1,prefix:"i18next_res_",expirationTime:6048e5}}var i={};i.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i.createClass=function(){function e(e,t){for(var n=0;no&&(i[e]=r)),a--,0===a&&t(null,i)})}()}},{key:"store",value:function(e){if(window.localStorage)for(var t in e)e[t].i18nStamp=(new Date).getTime(),c.setItem(this.options.prefix+t,JSON.stringify(e[t]))}},{key:"save",value:function(e){this.debouncedStore(e)}}]),o}();return l.type="cache",l});