const e=`2.0.5`,t=()=>e,n=()=>`5.1.1`,r=()=>{try{return process.versions.node.split(`.`)[0]??`22`}catch{return`22`}},i=()=>`0.4.1`,a=()=>`3.0.8`,o=()=>`1.1.1`,s=e=>`^${e}`,c=new Map(`name.version.private.description.keywords.homepage.bugs.repository.license.author.contributors.funding.type.packageManager.devEngines.engines.bin.exports.main.module.types.files.scripts.dependencies.devDependencies.peerDependencies.peerDependenciesMeta.optionalDependencies.bundledDependencies.resolutions.overrides.pnpm.lint-staged`.split(`.`).map((e,t)=>[e,t])),l=new Set([`scripts`,`dependencies`,`devDependencies`,`peerDependencies`,`peerDependenciesMeta`,`optionalDependencies`,`bundledDependencies`,`resolutions`,`overrides`]);function u(e,t){let n=c.get(e),r=c.get(t);return n!==void 0&&r!==void 0?n-r:n===void 0?r===void 0?e.localeCompare(t):1:-1}function d(e){return Object.fromEntries(Object.entries(e).sort(([e],[t])=>e.localeCompare(t)))}function f(e){let t=Object.entries(e).sort(([e],[t])=>u(e,t));return Object.fromEntries(t.map(([e,t])=>l.has(e)&&t&&typeof t==`object`&&!Array.isArray(t)?[e,d(t)]:[e,t]))}export{s as a,t as c,i,e as l,n,a as o,r,o as s,f as t};
//# sourceMappingURL=sortPackageJson-DTp1MCwj.js.map