{"version":3,"sources":["jsdelivr-header.js","/npm/inspect-property@0.0.7/lib/inspect-property.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,MAAM,iBAAmB,QAAQ,oBAC3B,gBAAkB,QAAQ,qBAC1B,oBAAsB,QAAQ,0BAEpC,SAAS,gBAAgB,EAAG,GAAc,UAAE,EAAY,IAAG,gBAAE,GAAkB,EAAI,kBAAE,GAAoB,EAAI,cAAE,EAAa,UAAE,GAAc,CAAC,GAC3I,MAAM,EAAW,GAAK,EAAe,EAAE,GAAgB,EACjD,EAAqB,CACzB,MAAO,EACP,YAAY,EACZ,YAAa,CACX,KAAM,GAAY,EAAS,aAAe,EAAS,YAAY,KAC/D,IAAK,GAAY,EAAS,cAsB9B,OAlBI,GAAK,IACP,EAAmB,mBAAqB,OAAO,yBAAyB,EAAG,IAG7C,aAA5B,EAAmB,MAAuB,IAC5C,EAAmB,mBAAqB,iBAAiB,IAG3B,aAA5B,EAAmB,MAAmD,WAA5B,EAAmB,OAC/D,EAAmB,WAAa,oBAAoB,GAAU,CAAC,EAAO,EAAK,EAAM,EAAQ,KACvF,EAAM,EAAK,KAAK,IAAc,CAAK,GAClC,CAAE,gBAAe,cAEpB,gBAAgB,EAAmB,YAAY,CAAC,EAAO,KACrD,EAAmB,WAAW,GAAO,SAA0C,EAA4B,gBAAgB,EAAO,KAAM,CAAE,kBAAiB,mBAAmB,IAA3E,CAAmF,KAInL,CACT,CAEA,OAAO,QAAU","file":"/npm/inspect-property@0.0.7/lib/inspect-property.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/inspect-property@0.0.7/lib/inspect-property.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nconst _inspectFunction = require('inspect-function');\nconst forEachProperty = require('for-each-property');\nconst forEachPropertyDeep = require('for-each-property-deep');\n\nfunction inspectProperty(o, propertyName, { delimiter = '.', inspectFunction = true, inspectProperties = true, enumerability, inherited } = {}) {\n  const property = o && propertyName ? o[propertyName] : o;\n  const propertyInspection = {\n    value: property,\n    type: typeof(property),\n    constructor: {\n      name: property && property.constructor && property.constructor.name,\n      ref: property && property.constructor\n    }\n  };\n\n  if (o && propertyName) {\n    propertyInspection.propertyDescriptor = Object.getOwnPropertyDescriptor(o, propertyName);\n  }\n\n  if (propertyInspection.type === 'function' && inspectFunction) {\n    propertyInspection.functionInspection = _inspectFunction(property);\n  }\n\n  if (propertyInspection.type === 'function' || propertyInspection.type === 'object') {\n    propertyInspection.properties = forEachPropertyDeep(property, (value, key, path, parent, state) => {\n      state[path.join(delimiter)] = value;\n    }, { enumerability, inherited });\n\n    forEachProperty(propertyInspection.properties, (value, key) => {\n      propertyInspection.properties[key] = value === undefined || value === null || !inspectProperties ? value : inspectProperty(value, null, { inspectFunction, inspectProperties: false });\n    });\n  }\n\n  return propertyInspection;\n}\n\nmodule.exports = inspectProperty;"]}