{"version":3,"sources":["jsdelivr-header.js","/npm/react-native-open-graph-scraper@6.3.9/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,IAAI,gBAAmB,MAAQ,KAAK,iBAAoB,SAAU,GAC9D,OAAQ,GAAO,EAAI,WAAc,EAAM,CAAE,QAAW,EACxD,EACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IAEtD,MAAM,mBAAqB,gBAAgB,QAAQ,2BAmBnD,eAAe,IAAI,GACf,IAAI,EACJ,IACI,QAAgB,EAAI,mBAAmB,SAAS,EACpD,CACA,MAAO,GACH,MAAM,EAAY,EAalB,KAZoB,CAChB,OAAO,EACP,OAAQ,CACJ,SAAS,EACT,WAAY,EAAQ,IACpB,MAAO,EAAU,QACjB,aAAc,GAElB,cAAU,EACV,UAAM,EAId,CAOA,MANsB,CAClB,OAAO,EACP,OAAQ,EAAQ,SAChB,SAAU,EAAQ,SAClB,KAAM,EAAQ,KAGtB,CA5CA,OAAO,OAAS,QAAQ,UAAU,OA6ClC,QAAQ,QAAU,IAClB,OAAO,QAAU","file":"/npm/react-native-open-graph-scraper@6.3.9/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-native-open-graph-scraper@6.3.9/dist/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\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/* eslint-disable max-len, import/no-import-module-exports */\nconst openGraphScraper_1 = __importDefault(require(\"./lib/openGraphScraper\"));\n// NOTE: @rkstar\n// we have to set the global buffer here because react-native does not have Buffer built-in\nglobal.Buffer = require('buffer').Buffer;\n/**\n * `open-graph-scraper` uses [fetch](https://developer.mozilla.org/en-US/docs/Web/API/fetch) for http requests\n * for scraping Open Graph and Twitter Card info off a website.\n *\n * @param {object} options - The options used by Open Graph Scraper\n * @param {boolean} [options.onlyGetOpenGraphInfo] - Only fetch open graph info and don't fall back on anything else.\n * @param {object} [options.customMetaTags] - Here you can define custom meta tags you want to scrape.\n * @param {object} [options.fetchOptions] - Sets the options used by fetch for the http requests\n * @param {object} [options.validatorSettings] - Sets the options used by validator.js for testing the URL\n * @param {string[]} [options.blacklist] - Pass in an array of sites you don't want ogs to run on.\n * @param {string} [options.html] - You can pass in an HTML string to run ogs on it. (use without options.url)\n * @param {number} [options.timeout] - Number of seconds before the fetch request ends. (default is 10 seconds)\n * @param {string} options.url - URL of the site. (Required)\n * @returns {Promise} Promise Object with the Open Graph results\n */\nasync function run(options) {\n    let results;\n    try {\n        results = await (0, openGraphScraper_1.default)(options);\n    }\n    catch (error) {\n        const exception = error;\n        const returnError = {\n            error: true,\n            result: {\n                success: false,\n                requestUrl: options.url,\n                error: exception.message,\n                errorDetails: exception,\n            },\n            response: undefined,\n            html: undefined,\n        };\n        // eslint-disable-next-line @typescript-eslint/no-throw-literal\n        throw returnError;\n    }\n    const returnSuccess = {\n        error: false,\n        result: results.ogObject,\n        response: results.response,\n        html: results.html,\n    };\n    return returnSuccess;\n}\nexports.default = run;\nmodule.exports = run;\n"]}