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C5D,EAAE,SAAS,EAAE,8EAAyC;AACtD,CAAC,CAAC;AACF;AACA,MAAM,sBAAsB,GAAG,uBAAuB,CAAC,YAAY,CAAC,IAAI,yEAAoC,CAAC;AAC7G;AACA,IAAI,aAAa,IAAI,OAAO,mBAAmB,KAAK,UAAU,EAAE;AAChE,EAAE,aAAa,CAAC,eAAe,GAAG,sBAAsB,CAAC,mBAAmB,CAAC,EAAE;AAC/E,CAAC;AACD;AACK,MAAC,cAAc;AACpB,EAAE,OAAO,kBAAkB,KAAK,UAAU;AAC1C,MAAM,wEAAmC,CAAC,kBAAkB,EAAE,YAAY,CAAC;AAC3E,MAAM,UAAU;AACX,MAAC,kBAAkB;AACxB,EAAE,OAAO,sBAAsB,KAAK,UAAU;AAC9C,MAAM,4EAAuC,CAAC,sBAAsB,EAAE,YAAY,CAAC;AACnF,MAAM,UAAU;AAChB;AACM,yBAAmB,GAAG,aAAa,GAAG,uEAAkC,CAAC,aAAa,EAAE,GAAG;;;;;;;;;;AC1CjG;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA","sources":["webpack://quran.com/src/pages/_document.tsx","webpack://quran.com/sentry-wrapper-module","webpack://quran.com/external commonjs \"@sentry/nextjs\"","webpack://quran.com/external commonjs \"lodash/findKey\"","webpack://quran.com/external commonjs \"next/dist/server/get-page-files.js\"","webpack://quran.com/external commonjs \"next/dist/server/htmlescape.js\"","webpack://quran.com/external commonjs \"next/dist/server/utils.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/constants.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/html-context.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/is-plain-object.js\"","webpack://quran.com/external commonjs \"react\"","webpack://quran.com/external commonjs \"react/jsx-runtime\""],"sourcesContent":["import Document, { Html, Head, Main, NextScript, DocumentContext } from 'next/document';\n\nimport { getDir } from '@/utils/locale';\n\nconst DEFAULT_LOCALE = 'en';\n\nclass MyDocument extends Document {\n static async getInitialProps(ctx: DocumentContext) {\n const initialProps = await Document.getInitialProps(ctx);\n return { ...initialProps, locale: ctx?.locale || DEFAULT_LOCALE };\n }\n\n render = () => (\n <Html dir={getDir(this.props.locale)} lang={this.props.locale}>\n <Head />\n <body>\n <Main />\n <NextScript />\n </body>\n </Html>\n );\n}\n\nexport default MyDocument;\n","import * as Sentry from '@sentry/nextjs';\nimport * as serverComponentModule from '__SENTRY_WRAPPING_TARGET_FILE__.cjs';\nexport * from '__SENTRY_WRAPPING_TARGET_FILE__.cjs';\n\n/*\n * This file is a template for the code which will be substituted when our webpack loader handles non-API files in the\n * `pages/` directory.\n *\n * We use `__SENTRY_WRAPPING_TARGET_FILE__.cjs` as a placeholder for the path to the file being wrapped. Because it's not a real package,\n * this causes both TS and ESLint to complain, hence the pragma comments below.\n */\n\nconst userPageModule = serverComponentModule ;\n\nconst pageComponent = userPageModule ? userPageModule.default : undefined;\n\nconst origGetInitialProps = pageComponent ? pageComponent.getInitialProps : undefined;\nconst origGetStaticProps = userPageModule ? userPageModule.getStaticProps : undefined;\nconst origGetServerSideProps = userPageModule ? userPageModule.getServerSideProps : undefined;\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst getInitialPropsWrappers = {\n '/_app': Sentry.wrapAppGetInitialPropsWithSentry,\n '/_document': Sentry.wrapDocumentGetInitialPropsWithSentry,\n '/_error': Sentry.wrapErrorGetInitialPropsWithSentry,\n};\n\nconst getInitialPropsWrapper = getInitialPropsWrappers['/_document'] || Sentry.wrapGetInitialPropsWithSentry;\n\nif (pageComponent && typeof origGetInitialProps === 'function') {\n pageComponent.getInitialProps = getInitialPropsWrapper(origGetInitialProps) ;\n}\n\nconst getStaticProps =\n typeof origGetStaticProps === 'function'\n ? Sentry.wrapGetStaticPropsWithSentry(origGetStaticProps, '/_document')\n : undefined;\nconst getServerSideProps =\n typeof origGetServerSideProps === 'function'\n ? Sentry.wrapGetServerSidePropsWithSentry(origGetServerSideProps, '/_document')\n : undefined;\n\nconst pageWrapperTemplate = pageComponent ? Sentry.wrapPageComponentWithSentry(pageComponent ) : pageComponent;\n\nexport { pageWrapperTemplate as default, getServerSideProps, getStaticProps };\n","module.exports = require(\"@sentry/nextjs\");","module.exports = require(\"lodash/findKey\");","module.exports = require(\"next/dist/server/get-page-files.js\");","module.exports = require(\"next/dist/server/htmlescape.js\");","module.exports = require(\"next/dist/server/utils.js\");","module.exports = require(\"next/dist/shared/lib/constants.js\");","module.exports = require(\"next/dist/shared/lib/html-context.js\");","module.exports = require(\"next/dist/shared/lib/is-plain-object.js\");","module.exports = require(\"react\");","module.exports = require(\"react/jsx-runtime\");"],"names":["DEFAULT_LOCALE","MyDocument","Document","getInitialProps","ctx","initialProps","locale","render","_jsxs","Html","dir","getDir","props","lang","_jsx","Head","body","Main","NextScript"],"sourceRoot":""}