'use strict';var crypto=require('crypto');var d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10],y=[0,2,4,6,8,1,3,5,7,9];function S(r,n){let e=!0,t=0;for(;00&&(f=10-f),f}function p(){return typeof Bun<"u"||(process!==void 0?process.versions.bun!==void 0:!1)}function h(r,n,e,t){if(!p())throw new Error("Bun environment is not detected. This function relies on Bun's functionality to work.");return new Bun.CryptoHasher(r,n).update(e,t)}function m(r,n,e,t){return t!==void 0&&typeof e=="string"?crypto.createHmac(r,n).update(e,t):crypto.createHmac(r,n).update(e)}function w(r,n,e,t){return p()?h(r,n,e,t).digest():(r=r,n=n,(e=e,m(r,n,e).digest()))}function s(r,n,e=6,t="sha256",f=-1,o=!1){let u=typeof r!="string"?r:Buffer.from(r,"utf8"),g=o?e+1:e,a=w(t,u,n),B=a[a.length-1]&15;0<=f&&f