{"version":3,"sources":["jsdelivr-header.js","/npm/react-native-pitchy@1.0.0/lib/commonjs/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,OAAO,eAAe,QAAS,aAAc,CAC3C,OAAO,IAET,QAAQ,aAAU,EAClB,IAAI,aAAe,QAAQ,gBAC3B,MAAM,cAAgB,+EAAiF,aAAa,SAAS,OAAO,CAClI,IAAK,iCACL,QAAS,KAFW,oFAIhB,mBAAqB,aAAa,cAAc,OAAS,aAAa,cAAc,OAAS,IAAI,MAAM,CAAC,EAAG,CAC/G,GAAA,GACE,MAAM,IAAI,MAAM,cAClB,IAEI,aAAe,IAAI,aAAa,mBAAmB,oBACnD,OAAS,CACb,KAAK,GACI,mBAAmB,KAAK,CAC7B,WAAY,KACZ,WAAY,GACZ,UAAW,WACR,IAGP,MAAK,IACI,mBAAmB,QAE5B,KAAI,IACK,mBAAmB,OAE5B,YAAW,IACF,mBAAmB,cAE5B,YAAY,GACH,aAAa,YAAY,kBAAmB,IAGvD,IAAI,SAAW,QAAQ,QAAU","file":"/npm/react-native-pitchy@1.0.0/lib/commonjs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-native-pitchy@1.0.0/lib/commonjs/index.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\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.default = void 0;\nvar _reactNative = require(\"react-native\");\nconst LINKING_ERROR = `The package 'react-native-pitchy' doesn't seem to be linked. Make sure: \\n\\n` + _reactNative.Platform.select({\n  ios: \"- You have run 'pod install'\\n\",\n  default: ''\n}) + '- You rebuilt the app after installing the package\\n' + '- You are not using Expo Go\\n';\nconst PitchyNativeModule = _reactNative.NativeModules.Pitchy ? _reactNative.NativeModules.Pitchy : new Proxy({}, {\n  get() {\n    throw new Error(LINKING_ERROR);\n  }\n});\nconst eventEmitter = new _reactNative.NativeEventEmitter(PitchyNativeModule);\nconst Pitchy = {\n  init(config) {\n    return PitchyNativeModule.init({\n      bufferSize: 4096,\n      minVolume: -60,\n      algorithm: 'ACF2+',\n      ...config\n    });\n  },\n  start() {\n    return PitchyNativeModule.start();\n  },\n  stop() {\n    return PitchyNativeModule.stop();\n  },\n  isRecording() {\n    return PitchyNativeModule.isRecording();\n  },\n  addListener(callback) {\n    return eventEmitter.addListener('onPitchDetected', callback);\n  }\n};\nvar _default = exports.default = Pitchy;\n"]}