/*! cacheJS 21-06-2016 */ !function(a,b){"use strict";var c=function(){var a="localStorage";return{init:function(a){this.localStorageProvider=new e(a),this.arrayProvider=new f(a)},use:function(b){a=b},getProvider:function(b){var c=b||a;switch(c){case"localStorage":return this.localStorageProvider;case"array":return this.arrayProvider}}}},d=function(){var a={prefix:"_cache",ttl:604800},b={cacheAdded:[],cacheRemoved:[]},d={generateKey:function(b){var c=a.prefix+"_",d=[];for(var e in b)b.hasOwnProperty(e)&&d.push(e);d.sort();for(var f=0;f=d.ttl?(localStorage.removeItem(c),null):d.data):null},set:function(b,c,d,e){d=d||a.getDefault().ttl;var f=a.generateKey(b);localStorage.setItem(f,JSON.stringify({data:c,ttl:d,createdAt:a.getCurrentTime()}));for(var g in e)if(e.hasOwnProperty(g)){var h=a.generateContextKey(g,e[g]),i=localStorage.getItem(h);if(null!==i){i=JSON.parse(i);var j=!1;if(Array.prototype.indexOf)j=i.indexOf(f)>=0;else for(var k=0;k=e.ttl?(delete b[d],null):e.data}return null},set:function(d,e,f,g){var h=a.generateKey(d);f=null===f||"undefined"==typeof f?a.getDefault().ttl:f,b[h]={data:e,ttl:f,createdAt:a.getCurrentTime()};for(var i in g)if(g.hasOwnProperty(i)){var j=a.generateContextKey(i,g[i]),k=c.hasOwnProperty(j)?c[j]:null;if(null!==k){var l=!1;if(Array.prototype.indexOf)l=k.indexOf(h)>=0;else for(var m=0;m