"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lz-string"),t=require("./constants.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(e);exports.validateEnvelope=function(e){if(e.version!==t.CACHE_VERSION)return null;if(Date.now()-e.timestamp>=t.CACHE_TTL)return null;var r=n.default.decompressFromUTF16(e.state);return r?{state:JSON.parse(r),timestamp:e.timestamp}:null};
//# sourceMappingURL=validateEnvelope.js.map
