define("qui/classes/storage/Polyfill",[],function(){"use strict";if("undefined"==typeof window.localStorage||"undefined"==typeof window.sessionStorage){var n=function(n){function e(n,e,t){var o,i;t?(o=new Date,o.setTime(o.getTime()+24*t*60*60*1e3),i="; expires="+o.toGMTString()):i="",document.cookie=n+"="+e+i+"; path=/"}function t(n){var e,t,o=n+"=",i=document.cookie.split(";");for(e=0;e<i.length;e++){for(t=i[e];" "==t.charAt(0);)t=t.substring(1,t.length);if(0===t.indexOf(o))return t.substring(o.length,t.length)}return null}function o(t){t=JSON.stringify(t),"session"==n?window.name=t:e("localStorage",t,365)}function i(){"session"==n?window.name="":e("localStorage","",365)}function r(){var e="session"==n?window.name:t("localStorage");return e?JSON.parse(e):{}}var s=r();return{length:0,clear:function(){s={},this.length=0,i()},getItem:function(n){return void 0===s[n]?null:s[n]},key:function(n){var e=0;for(var t in s){if(e==n)return t;e++}return null},removeItem:function(n){delete s[n],this.length--,o(s)},setItem:function(n,e){s[n]=e+"",this.length++,o(s)}}};return"undefined"==typeof window.localStorage&&(window.localStorage=new n("local")),"undefined"==typeof window.sessionStorage&&(window.sessionStorage=new n("session")),n}});
//# sourceMappingURL=Polyfill.js.map