import{splitXorIDA,reconstructXorIDA,nextOddPrime,pkcs7Pad,pkcs7Unpad,generateHMAC,verifyHMAC}from"./crypto-utils.js";let mockCrypto=null,mockVersion=null;export function getCrypto(){return mockCrypto||{splitXorIDA:splitXorIDA,reconstructXorIDA:reconstructXorIDA,nextOddPrime:nextOddPrime,pkcs7Pad:pkcs7Pad,pkcs7Unpad:pkcs7Unpad,generateHMAC:generateHMAC,verifyHMAC:verifyHMAC}}export async function loadCryptoPackage(){"test"!==process.env.NODE_ENV&&console.warn("loadCryptoPackage() is deprecated as of xBind v3.1.1. Crypto is now bundled and always available. Remove this call.")}export function setMockCrypto(o,r){mockCrypto=o,mockVersion=r}export function clearCryptoCache(){mockCrypto=null,mockVersion=null}export function isCryptoLoaded(){return!0}export function getCryptoVersion(){return mockVersion||"bundled"}