/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/opencv4nodejs-m1@1.1.0/lib/opencv4nodejs.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
const promisify=require("./promisify"),extendWithJsSources=require("./src"),path=require("path"),isElectron=process.versions.hasOwnProperty("electron"),packagePath="node_modules/opencv4nodejs-m1";if("win32"===process.platform){const e=path.join(__dirname,"..","deps","win32","x64","vc17","bin");process.env.PATH=e+path.delimiter+(process.env.PATH||"")}function loadBinding(){const e=[];try{const o=require("prebuild-install").getPath();o&&e.push(o)}catch(e){}try{require("../package.json");const o=path.join(__dirname,"..","prebuilds"),n=process.platform,r=process.arch,s=[`${n}-${r}/${isElectron?"electron":"node"}-v${process.versions.modules}.node`,`${n}-${r}/node.napi.node`,`${n}-${r}/opencv4nodejs.node`];for(const n of s)e.push(path.join(o,n))}catch(e){}if(isElectron)try{const o=require("electron"),n=(o.app||o.remote.app).getAppPath();e.push(path.resolve(n,packagePath,"build/Release/opencv4nodejs.node")),e.push(path.resolve(n,packagePath,"build/Release/opencv4nodejs"))}catch(e){}e.push(path.join(__dirname,"..","build","Release","opencv4nodejs.node"));const o=[];for(const n of e)try{return"undefined"!=typeof __non_webpack_require__?__non_webpack_require__(n):require(n)}catch(e){o.push({location:n,error:e.message})}try{return require("bindings")("opencv4nodejs")}catch(e){throw o.push({location:"bindings module",error:e.message}),new Error("Could not load opencv4nodejs native module. Tried locations:\n"+o.map((e=>`  - ${e.location}\n    Error: ${e.error}`)).join("\n")+"\n\nMake sure you have run `npm install` and the native module was built correctly.")}}const bindings=loadBinding();let cv=promisify(bindings);cv=extendWithJsSources(cv),module.exports=cv;
//# sourceMappingURL=/sm/c2109555cbcda6c6f8b0e7534d5211588488e449db1c0907874fbeff4fbbe9f6.map