mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
1 line
34 KiB
JSON
1 line
34 KiB
JSON
{"ast":null,"code":"import { __awaiter, __rest } from \"tslib\";\n/* eslint-disable max-lines */\nimport { Capacitor } from '@capacitor/core';\nimport { dropUndefinedKeys, logger, SentryError } from '@sentry/utils';\nimport { SentryCapacitor } from './plugin';\n/**\n * Internal interface for calling native functions\n */\nexport const NATIVE = {\n /**\n * Sending the event over the bridge to native\n * @param event Event\n */\n sendEnvelope(envelope) {\n var _a, _b, _c, _d;\n return __awaiter(this, void 0, void 0, function* () {\n if (!this.enableNative) {\n throw this._DisabledNativeError;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n const header = envelope[0];\n const headerString = JSON.stringify(header);\n let envelopeItemsBuilder = `${headerString}`;\n for (const envelopeItems of envelope[1]) {\n const event = this._getEvent(envelopeItems);\n if (event != undefined) {\n if (NATIVE.platform === 'android') {\n // @ts-ignore Android still uses the old message object, without this the serialization of events will break.\n event.message = {\n message: event.message\n };\n /*\n We do this to avoid duplicate breadcrumbs on Android as sentry-android applies the breadcrumbs\n from the native scope onto every envelope sent through it. This scope will contain the breadcrumbs\n sent through the scope sync feature. This causes duplicate breadcrumbs.\n We then remove the breadcrumbs in all cases but if it is handled == false,\n this is a signal that the app would crash and android would lose the breadcrumbs by the time the app is restarted to read\n the envelope.\n */\n if (((_d = (_c = (_b = (_a = event.exception) === null || _a === void 0 ? void 0 : _a.values) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.mechanism) === null || _d === void 0 ? void 0 : _d.handled) != false && event.breadcrumbs) {\n event.breadcrumbs = [];\n }\n }\n envelopeItems[1] = event;\n }\n // Content type is not inside BaseEnvelopeItemHeaders.\n envelopeItems[0].content_type = 'application/json';\n const itemPayload = JSON.stringify(envelopeItems[1]);\n let length = itemPayload.length;\n try {\n yield SentryCapacitor.getStringBytesLength({\n string: itemPayload\n }).then(resp => {\n length = resp.value;\n });\n } catch (_e) {\n // The native call failed, we do nothing, we have payload.length as a fallback\n }\n envelopeItems[0].length = length;\n const itemHeader = JSON.stringify(envelopeItems[0]);\n envelopeItemsBuilder += `\\n${itemHeader}\\n${itemPayload}`;\n }\n yield SentryCapacitor.captureEnvelope({\n envelope: envelopeItemsBuilder\n });\n });\n },\n /**\n * Starts native with the provided options\n * @param options CapacitorOptions\n */\n initNativeSdk(options) {\n return __awaiter(this, void 0, void 0, function* () {\n if (!options.dsn) {\n logger.warn('Warning: No DSN was provided. The Sentry SDK will be disabled. Native SDK will also not be initalized.');\n return false;\n }\n if (!options.enableNative) {\n if (options.enableNativeNagger) {\n logger.warn('Note: Native Sentry SDK is disabled.');\n }\n this.enableNative = false;\n return false;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n // filter out all options that would crash native\n /* eslint-disable @typescript-eslint/unbound-method, @typescript-eslint/no-unused-vars */\n const {\n // @ts-ignore Vue specific option.\n app,\n // @ts-ignore Vue specific option.\n vue,\n beforeSend,\n beforeBreadcrumb,\n integrations,\n defaultIntegrations,\n transport\n } = options,\n filteredOptions = __rest(options, [\"app\", \"vue\", \"beforeSend\", \"beforeBreadcrumb\", \"integrations\", \"defaultIntegrations\", \"transport\"]);\n return SentryCapacitor.initNativeSdk({\n options: filteredOptions\n });\n });\n },\n /**\n * Fetches the device contexts. Not used on Android.\n */\n fetchNativeDeviceContexts() {\n return __awaiter(this, void 0, void 0, function* () {\n if (!this.enableNative) {\n throw this._DisabledNativeError;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n if (this.platform !== 'ios') {\n // Only ios uses deviceContexts, return an empty object.\n return {};\n }\n return SentryCapacitor.fetchNativeDeviceContexts();\n });\n },\n /**\n * Fetches the release from native\n */\n fetchNativeRelease() {\n return __awaiter(this, void 0, void 0, function* () {\n if (!this.enableNative) {\n throw this._DisabledNativeError;\n }\n return SentryCapacitor.fetchNativeRelease();\n });\n },\n fetchNativeSdkInfo() {\n return __awaiter(this, void 0, void 0, function* () {\n if (!this.enableNative) {\n throw this._DisabledNativeError;\n }\n return SentryCapacitor.fetchNativeSdkInfo();\n });\n },\n /**\n * Triggers a native crash.\n * Use this only for testing purposes.\n */\n crash() {\n if (!this.enableNative) {\n return;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n SentryCapacitor.crash();\n },\n /**\n * Sets the user in the native scope.\n * Passing null clears the user.\n * @param key string\n * @param value string\n */\n setUser(user) {\n if (!this.enableNative) {\n return;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n // separate and serialze all non-default user keys.\n let defaultUserKeys = null;\n let otherUserKeys = null;\n if (user) {\n const {\n id,\n ip_address,\n email,\n username\n } = user,\n otherKeys = __rest(user, [\"id\", \"ip_address\", \"email\", \"username\"]);\n defaultUserKeys = dropUndefinedKeys(this._serializeObject({\n email,\n id,\n ip_address,\n username\n }));\n otherUserKeys = dropUndefinedKeys(this._serializeObject(otherKeys));\n }\n SentryCapacitor.setUser({\n defaultUserKeys,\n otherUserKeys\n });\n },\n /**\n * Sets a tag in the native module.\n * @param key string\n * @param value string\n */\n setTag(key, value) {\n if (!this.enableNative) {\n return;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n const stringifiedValue = typeof value === 'string' ? value : JSON.stringify(value);\n SentryCapacitor.setTag({\n key,\n value: stringifiedValue\n });\n },\n /**\n * Sets an extra in the native scope, will stringify\n * extra value if it isn't already a string.\n * @param key string\n * @param extra any\n */\n setExtra(key, extra) {\n if (!this.enableNative) {\n return;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n // we stringify the extra as native only takes in strings.\n const stringifiedValue = typeof extra === 'string' ? extra : JSON.stringify(extra);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n SentryCapacitor.setExtra({\n key,\n value: stringifiedValue\n });\n },\n /**\n * Adds breadcrumb to the native scope.\n * @param breadcrumb Breadcrumb\n */\n addBreadcrumb(breadcrumb) {\n if (!this.enableNative) {\n return;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n SentryCapacitor.addBreadcrumb(Object.assign(Object.assign({}, breadcrumb), {\n // Process and convert deprecated levels\n level: breadcrumb.level ? this._processLevel(breadcrumb.level) : undefined,\n data: breadcrumb.data ? this._serializeObject(breadcrumb.data) : undefined\n }));\n },\n /**\n * Clears breadcrumbs on the native scope.\n */\n clearBreadcrumbs() {\n if (!this.enableNative) {\n return;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n SentryCapacitor.clearBreadcrumbs();\n },\n /**\n * Sets context on the native scope. Not implemented in Android yet.\n * @param key string\n * @param context key-value map\n */\n setContext(key, context) {\n if (!this.enableNative) {\n return;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n if (this.platform === 'android') {\n // setContext not available on the Android SDK yet.\n this.setExtra(key, context);\n } else {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n SentryCapacitor.setContext({\n key,\n value: context !== null ? this._serializeObject(context) : null\n });\n }\n },\n /**\n * Gets the event from envelopeItem and applies the level filter to the selected event.\n * @param data An envelope item containing the event.\n * @returns The event from envelopeItem or undefined.\n */\n _getEvent(envelopeItem) {\n if (envelopeItem[0].type == 'event' || envelopeItem[0].type == 'transaction') {\n return this._processLevels(envelopeItem[1]);\n }\n return undefined;\n },\n /**\n * Serializes all values of root-level keys into strings.\n * @param data key-value map.\n * @returns An object where all root-level values are strings.\n */\n _serializeObject(data) {\n const serialized = {};\n Object.keys(data).forEach(dataKey => {\n const value = data[dataKey];\n serialized[dataKey] = typeof value === 'string' ? value : JSON.stringify(value);\n });\n return serialized;\n },\n /**\n * Convert js severity level in event.level and event.breadcrumbs to more widely supported levels.\n * @param event\n * @returns Event with more widely supported Severity level strings\n */\n _processLevels(event) {\n var _a;\n const processed = Object.assign(Object.assign({}, event), {\n level: event.level ? this._processLevel(event.level) : undefined,\n breadcrumbs: (_a = event.breadcrumbs) === null || _a === void 0 ? void 0 : _a.map(breadcrumb => Object.assign(Object.assign({}, breadcrumb), {\n level: breadcrumb.level ? this._processLevel(breadcrumb.level) : undefined\n }))\n });\n return processed;\n },\n /**\n * Convert js severity level which has critical and log to more widely supported levels.\n * @param level\n * @returns More widely supported Severity level strings\n */\n _processLevel(level) {\n if (level == 'log') {\n return 'debug';\n } else if (level == 'critical') {\n return 'fatal';\n }\n return level;\n },\n /**\n * Checks whether the SentryCapacitor module is loaded.\n */\n isModuleLoaded() {\n return !!SentryCapacitor;\n },\n /**\n * Checks whether the SentryCapacitor module is loaded and the native client is available\n */\n isNativeClientAvailable() {\n return this.isModuleLoaded() && Capacitor.isPluginAvailable('SentryCapacitor');\n },\n _DisabledNativeError: new SentryError('Native is disabled'),\n _NativeClientError: new SentryError(\"Native Client is not available, can't start on native.\"),\n enableNative: true,\n platform: Capacitor.getPlatform()\n};","map":{"version":3,"names":["__awaiter","__rest","Capacitor","dropUndefinedKeys","logger","SentryError","SentryCapacitor","NATIVE","sendEnvelope","envelope","_a","_b","_c","_d","enableNative","_DisabledNativeError","isNativeClientAvailable","_NativeClientError","header","headerString","JSON","stringify","envelopeItemsBuilder","envelopeItems","event","_getEvent","undefined","platform","message","exception","values","mechanism","handled","breadcrumbs","content_type","itemPayload","length","getStringBytesLength","string","then","resp","value","_e","itemHeader","captureEnvelope","initNativeSdk","options","dsn","warn","enableNativeNagger","app","vue","beforeSend","beforeBreadcrumb","integrations","defaultIntegrations","transport","filteredOptions","fetchNativeDeviceContexts","fetchNativeRelease","fetchNativeSdkInfo","crash","setUser","user","defaultUserKeys","otherUserKeys","id","ip_address","email","username","otherKeys","_serializeObject","setTag","key","stringifiedValue","setExtra","extra","addBreadcrumb","breadcrumb","Object","assign","level","_processLevel","data","clearBreadcrumbs","setContext","context","envelopeItem","type","_processLevels","serialized","keys","forEach","dataKey","processed","map","isModuleLoaded","isPluginAvailable","getPlatform"],"sources":["C:/Users/eudes.inacio/GabineteDigital/gabinete-digital-fo/node_modules/@sentry/capacitor/dist/esm/wrapper.js"],"sourcesContent":["import { __awaiter, __rest } from \"tslib\";\n/* eslint-disable max-lines */\nimport { Capacitor } from '@capacitor/core';\nimport { dropUndefinedKeys, logger, SentryError } from '@sentry/utils';\nimport { SentryCapacitor } from './plugin';\n/**\n * Internal interface for calling native functions\n */\nexport const NATIVE = {\n /**\n * Sending the event over the bridge to native\n * @param event Event\n */\n sendEnvelope(envelope) {\n var _a, _b, _c, _d;\n return __awaiter(this, void 0, void 0, function* () {\n if (!this.enableNative) {\n throw this._DisabledNativeError;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n const header = envelope[0];\n const headerString = JSON.stringify(header);\n let envelopeItemsBuilder = `${headerString}`;\n for (const envelopeItems of envelope[1]) {\n const event = this._getEvent(envelopeItems);\n if (event != undefined) {\n if (NATIVE.platform === 'android') {\n // @ts-ignore Android still uses the old message object, without this the serialization of events will break.\n event.message = { message: event.message };\n /*\n We do this to avoid duplicate breadcrumbs on Android as sentry-android applies the breadcrumbs\n from the native scope onto every envelope sent through it. This scope will contain the breadcrumbs\n sent through the scope sync feature. This causes duplicate breadcrumbs.\n We then remove the breadcrumbs in all cases but if it is handled == false,\n this is a signal that the app would crash and android would lose the breadcrumbs by the time the app is restarted to read\n the envelope.\n */\n if (((_d = (_c = (_b = (_a = event.exception) === null || _a === void 0 ? void 0 : _a.values) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.mechanism) === null || _d === void 0 ? void 0 : _d.handled) != false && event.breadcrumbs) {\n event.breadcrumbs = [];\n }\n }\n envelopeItems[1] = event;\n }\n // Content type is not inside BaseEnvelopeItemHeaders.\n envelopeItems[0].content_type = 'application/json';\n const itemPayload = JSON.stringify(envelopeItems[1]);\n let length = itemPayload.length;\n try {\n yield SentryCapacitor.getStringBytesLength({ string: itemPayload }).then(resp => {\n length = resp.value;\n });\n }\n catch (_e) {\n // The native call failed, we do nothing, we have payload.length as a fallback\n }\n envelopeItems[0].length = length;\n const itemHeader = JSON.stringify(envelopeItems[0]);\n envelopeItemsBuilder += `\\n${itemHeader}\\n${itemPayload}`;\n }\n yield SentryCapacitor.captureEnvelope({ envelope: envelopeItemsBuilder });\n });\n },\n /**\n * Starts native with the provided options\n * @param options CapacitorOptions\n */\n initNativeSdk(options) {\n return __awaiter(this, void 0, void 0, function* () {\n if (!options.dsn) {\n logger.warn('Warning: No DSN was provided. The Sentry SDK will be disabled. Native SDK will also not be initalized.');\n return false;\n }\n if (!options.enableNative) {\n if (options.enableNativeNagger) {\n logger.warn('Note: Native Sentry SDK is disabled.');\n }\n this.enableNative = false;\n return false;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n // filter out all options that would crash native\n /* eslint-disable @typescript-eslint/unbound-method, @typescript-eslint/no-unused-vars */\n const { \n // @ts-ignore Vue specific option.\n app, \n // @ts-ignore Vue specific option.\n vue, beforeSend, beforeBreadcrumb, integrations, defaultIntegrations, transport } = options, filteredOptions = __rest(options, [\"app\", \"vue\", \"beforeSend\", \"beforeBreadcrumb\", \"integrations\", \"defaultIntegrations\", \"transport\"]);\n return SentryCapacitor.initNativeSdk({ options: filteredOptions });\n });\n },\n /**\n * Fetches the device contexts. Not used on Android.\n */\n fetchNativeDeviceContexts() {\n return __awaiter(this, void 0, void 0, function* () {\n if (!this.enableNative) {\n throw this._DisabledNativeError;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n if (this.platform !== 'ios') {\n // Only ios uses deviceContexts, return an empty object.\n return {};\n }\n return SentryCapacitor.fetchNativeDeviceContexts();\n });\n },\n /**\n * Fetches the release from native\n */\n fetchNativeRelease() {\n return __awaiter(this, void 0, void 0, function* () {\n if (!this.enableNative) {\n throw this._DisabledNativeError;\n }\n return SentryCapacitor.fetchNativeRelease();\n });\n },\n fetchNativeSdkInfo() {\n return __awaiter(this, void 0, void 0, function* () {\n if (!this.enableNative) {\n throw this._DisabledNativeError;\n }\n return SentryCapacitor.fetchNativeSdkInfo();\n });\n },\n /**\n * Triggers a native crash.\n * Use this only for testing purposes.\n */\n crash() {\n if (!this.enableNative) {\n return;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n SentryCapacitor.crash();\n },\n /**\n * Sets the user in the native scope.\n * Passing null clears the user.\n * @param key string\n * @param value string\n */\n setUser(user) {\n if (!this.enableNative) {\n return;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n // separate and serialze all non-default user keys.\n let defaultUserKeys = null;\n let otherUserKeys = null;\n if (user) {\n const { id, ip_address, email, username } = user, otherKeys = __rest(user, [\"id\", \"ip_address\", \"email\", \"username\"]);\n defaultUserKeys = dropUndefinedKeys(this._serializeObject({\n email,\n id,\n ip_address,\n username,\n }));\n otherUserKeys = dropUndefinedKeys(this._serializeObject(otherKeys));\n }\n SentryCapacitor.setUser({ defaultUserKeys, otherUserKeys });\n },\n /**\n * Sets a tag in the native module.\n * @param key string\n * @param value string\n */\n setTag(key, value) {\n if (!this.enableNative) {\n return;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n const stringifiedValue = typeof value === 'string' ? value : JSON.stringify(value);\n SentryCapacitor.setTag({ key, value: stringifiedValue });\n },\n /**\n * Sets an extra in the native scope, will stringify\n * extra value if it isn't already a string.\n * @param key string\n * @param extra any\n */\n setExtra(key, extra) {\n if (!this.enableNative) {\n return;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n // we stringify the extra as native only takes in strings.\n const stringifiedValue = typeof extra === 'string' ? extra : JSON.stringify(extra);\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n SentryCapacitor.setExtra({ key, value: stringifiedValue });\n },\n /**\n * Adds breadcrumb to the native scope.\n * @param breadcrumb Breadcrumb\n */\n addBreadcrumb(breadcrumb) {\n if (!this.enableNative) {\n return;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n SentryCapacitor.addBreadcrumb(Object.assign(Object.assign({}, breadcrumb), { \n // Process and convert deprecated levels\n level: breadcrumb.level\n ? this._processLevel(breadcrumb.level)\n : undefined, data: breadcrumb.data\n ? this._serializeObject(breadcrumb.data)\n : undefined }));\n },\n /**\n * Clears breadcrumbs on the native scope.\n */\n clearBreadcrumbs() {\n if (!this.enableNative) {\n return;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n SentryCapacitor.clearBreadcrumbs();\n },\n /**\n * Sets context on the native scope. Not implemented in Android yet.\n * @param key string\n * @param context key-value map\n */\n setContext(key, context) {\n if (!this.enableNative) {\n return;\n }\n if (!this.isNativeClientAvailable()) {\n throw this._NativeClientError;\n }\n if (this.platform === 'android') {\n // setContext not available on the Android SDK yet.\n this.setExtra(key, context);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n SentryCapacitor.setContext({\n key,\n value: context !== null ? this._serializeObject(context) : null,\n });\n }\n },\n /**\n * Gets the event from envelopeItem and applies the level filter to the selected event.\n * @param data An envelope item containing the event.\n * @returns The event from envelopeItem or undefined.\n */\n _getEvent(envelopeItem) {\n if (envelopeItem[0].type == 'event' || envelopeItem[0].type == 'transaction') {\n return this._processLevels(envelopeItem[1]);\n }\n return undefined;\n },\n /**\n * Serializes all values of root-level keys into strings.\n * @param data key-value map.\n * @returns An object where all root-level values are strings.\n */\n _serializeObject(data) {\n const serialized = {};\n Object.keys(data).forEach(dataKey => {\n const value = data[dataKey];\n serialized[dataKey] =\n typeof value === 'string' ? value : JSON.stringify(value);\n });\n return serialized;\n },\n /**\n * Convert js severity level in event.level and event.breadcrumbs to more widely supported levels.\n * @param event\n * @returns Event with more widely supported Severity level strings\n */\n _processLevels(event) {\n var _a;\n const processed = Object.assign(Object.assign({}, event), { level: event.level ? this._processLevel(event.level) : undefined, breadcrumbs: (_a = event.breadcrumbs) === null || _a === void 0 ? void 0 : _a.map(breadcrumb => (Object.assign(Object.assign({}, breadcrumb), { level: breadcrumb.level\n ? this._processLevel(breadcrumb.level)\n : undefined }))) });\n return processed;\n },\n /**\n * Convert js severity level which has critical and log to more widely supported levels.\n * @param level\n * @returns More widely supported Severity level strings\n */\n _processLevel(level) {\n if (level == 'log') {\n return 'debug';\n }\n else if (level == 'critical') {\n return 'fatal';\n }\n return level;\n },\n /**\n * Checks whether the SentryCapacitor module is loaded.\n */\n isModuleLoaded() {\n return !!SentryCapacitor;\n },\n /**\n * Checks whether the SentryCapacitor module is loaded and the native client is available\n */\n isNativeClientAvailable() {\n return (this.isModuleLoaded() && Capacitor.isPluginAvailable('SentryCapacitor'));\n },\n _DisabledNativeError: new SentryError('Native is disabled'),\n _NativeClientError: new SentryError(\"Native Client is not available, can't start on native.\"),\n enableNative: true,\n platform: Capacitor.getPlatform(),\n};\n"],"mappings":"AAAA,SAASA,SAAS,EAAEC,MAAM,QAAQ,OAAO;AACzC;AACA,SAASC,SAAS,QAAQ,iBAAiB;AAC3C,SAASC,iBAAiB,EAAEC,MAAM,EAAEC,WAAW,QAAQ,eAAe;AACtE,SAASC,eAAe,QAAQ,UAAU;AAC1C;AACA;AACA;AACA,OAAO,MAAMC,MAAM,GAAG;EAClB;AACJ;AACA;AACA;EACIC,YAAYA,CAACC,QAAQ,EAAE;IACnB,IAAIC,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE;IAClB,OAAOb,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,EAAE,aAAa;MAChD,IAAI,CAAC,IAAI,CAACc,YAAY,EAAE;QACpB,MAAM,IAAI,CAACC,oBAAoB;MACnC;MACA,IAAI,CAAC,IAAI,CAACC,uBAAuB,CAAC,CAAC,EAAE;QACjC,MAAM,IAAI,CAACC,kBAAkB;MACjC;MACA,MAAMC,MAAM,GAAGT,QAAQ,CAAC,CAAC,CAAC;MAC1B,MAAMU,YAAY,GAAGC,IAAI,CAACC,S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