"use strict";var a=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var D=(e,r)=>{for(var o in r)a(e,o,{get:r[o],enumerable:!0})},E=(e,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of p(r))!l.call(e,n)&&n!==o&&a(e,n,{get:()=>r[n],enumerable:!(i=h(r,n))||i.enumerable});return e};var P=e=>E(a({},"__esModule",{value:!0}),e);var S={};D(S,{SEARCH_PARAMETER_BUNDLE_FILES:()=>y,getDataDir:()=>d,readJson:()=>_});module.exports=P(S);var c=require("fs"),m=require("node:fs"),t=require("node:path"),u=require("node:url"),f={};function _(e){let r=(0,t.resolve)(d(),e);return JSON.parse((0,c.readFileSync)(r,"utf8"))}var s;function d(){if(s)return s;let e=g(),r=["./","../","./cjs/","./esm/"];for(let o of r){let i=(0,t.resolve)(e,o),n=(0,t.resolve)(i,"fhir");if((0,m.existsSync)(n))return s=i,i}throw new Error("No data directory found")}function g(){if(typeof __dirname<"u")return(0,t.resolve)(__dirname);if(f.url)return(0,t.resolve)((0,t.dirname)((0,u.fileURLToPath)(f.url)));throw new Error("No data directory found")}var y=["fhir/r4/search-parameters.json","fhir/r4/search-parameters-medplum.json","fhir/r4/search-parameters-uscore.json"];0&&(module.exports={SEARCH_PARAMETER_BUNDLE_FILES,getDataDir,readJson});
//# sourceMappingURL=index.cjs.map
