var a=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var c=(e,n)=>{for(var r in n)a(e,r,{get:n[r],enumerable:!0})},m=(e,n,r,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of u(n))!f.call(e,t)&&t!==r&&a(e,t,{get:()=>n[t],enumerable:!(o=s(n,t))||o.enumerable});return e};var w=e=>m(a({},"__esModule",{value:!0}),e);var h={};c(h,{generateSafeKey:()=>l,navigate:()=>g});module.exports=w(h);function d(e=0,n=255){const r=n-e;if(r<0||r>255)throw new RangeError("Parameters 'min' and 'max' cannot be represented as 'u8'.");let o;for(o=1;o<=r;o<<=1);o-=1;let t;for(let i=30;i>0&&(t=crypto.getRandomValues(new Uint8Array([0]))[0],!(t!=null&&(t&=o)<=r));--i);if(t===void 0)throw new Error("Couldn't generate a valid pseudo-random number!");return t}function l(){let e;do{e="";for(let n=0;n<=d(4,32);n++){const r=d(0,51);e+=String.fromCharCode(r+(r>25?71:65))}}while(e===""||e in window);return e}function g(e){history.pushState({},"",e),window.addEventListener("popstate",()=>history.forward(),{once:!0}),history.back()}0&&(module.exports={generateSafeKey,navigate});
