/*! storejs v2.1.1 | MIT © 2026 kenny wang https://jaywcjlove.github.io/store.js/ */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).store=e()}(this,function(){"use strict";function t(t){return t=JSON.stringify(t),!!/^\{[\s\S]*\}$/.test(t)}function e(t){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return t}}function n(t){return"[object Function]"==={}.toString.call(t)}var r=function(t){var e="_Is_Incognit";try{t||(t=window.localStorage),t.setItem(e,"yes"),t.removeItem(e)}catch(e){var n={_data:{},setItem:function(t,e){return n._data[t]=String(e)},getItem:function(t){return n._data.hasOwnProperty(t)?n._data[t]:void 0},removeItem:function(t){return delete n._data[t]},clear:function(){return n._data={}}};t=n}finally{"yes"===t.getItem(e)&&t.removeItem(e)}return t}();function i(){if(!(this instanceof i))return new i}i.prototype={set:function(e,n){if(e&&!t(e))r.setItem(e,function(t){return void 0===t||"function"==typeof t?t+"":JSON.stringify(t)}(n));else if(t(e))for(var i in e)this.set(i,e[i]);return this},get:function(t){if(void 0===t){var n={};return this.forEach(function(t,e){return n[t]=e}),n}if("?"===t.charAt(0))return this.has(t.substr(1));var i=arguments;if(i.length>1){for(var o={},f=0,u=i.length;f-1&&(n[e[r]]=this.get(e[r]));return n},len:function(){return r.length}};var o=null;function f(e,r){var u,s=arguments,a=null;if(o||(o=i()),0===s.length)return o.get();if(1===s.length){if("string"==typeof e)return o.get(e);if(t(e))return o.set(e)}if(2===s.length&&"string"==typeof e){if(!r)return o.remove(e);if(r&&"string"==typeof r)return o.set(e,r);r&&n(r)&&(a=null,a=r(e,o.get(e)),f.set(e,a))}if(2===s.length&&(u=e,"[object Array]"===Object.prototype.toString.call(u))&&n(r))for(var c=0,h=e.length;c