{"version":3,"file":"core.js","names":["Package","name","details","settings","_classCallCheck","url","version","ga","sessionStorage","setItem","domain","func","Function","customDomain","environmentUtility","isDevelopment","configUrl","packageSettings","PackageSettings","getSettings","loaded","packageConfig","PackageConfiguration","pkgDomainUrl","getItem","cachedVersion","getCachedVersion","config","packageTemplate","PackageTemplate","templates","init","fasah","_createClass","key","value","load","customConfig","_this","testUtility","clear","prepareForLoading","originalConfig","getName","getVersion","getUrl","getTemplates","getTarget","panel","getPanel","callInitMethod","currentDate","Date","getTime","getJson","pkgDomainURL","i18next","loadNamespaces","getLocales","self","getConfiguration","afterLoad","loadImportedPackages","_this2","packageName","getSubscribeMethods","forEach","subscribeMethod","method","event","subscribe","Cookies","set","session","getDomain","publish","data","title","document","dispatchEvent","CustomEvent","bubbles","detail","callBack","addEventListener","e","loggedIn","undefined","sessionDomainUrl","initControlsObjectsIfNeeded","_this3","getControls","control","getImportPackages","importedPackage","packages","package","pkg","getPackage","validInit","window","configuration","fasahUtility","clone","css","js","locales","controls","sharedControls","import","components","target","pushSharedControlsJavascriptAndCssPaths","pushControlsJavascriptAndCssPaths","mapJavascriptAndCssFilesPathsToFullPath","pushComponentsJavascriptAndCssPaths","updateCustomConfig","callback","Loader","getCss","getJs","getVersioning","pkgCachedVersion","versionParam","map","includes","_this4","push","_this5","Object","entries","_ref","_ref2","_slicedToArray","controlKey","projectName","split","startsWith","substring","hasOwnProperty","template","pkgName","getPkgInstance","getPkgInstanceProps","pkgInstance","app","templateUrl","get","htmlContent","content","_this6","fileName","concat","_this7","componentsPreLoaded","component","loadedComponents","configSettings","customSettings","settingsKey","elementHtml","packageVersion","packageUrl","loadTemplates","initializeTarget","_this8","_iterator","_createForOfIteratorHelper","_step","_loop","templateName","s","n","done","err","f","_this9","bindTargetElement","baseUrl","packageTarget","obj","$","html","Engine","language","location","pathname","urlParams","portalName","_this10","mainConfig","portals","integrationApi","fillIntegrationApis","afterLoadBasicCssAndJavascriptFiles","bind","loadMainPackage","addLanguageToBody","addZatcaThemeToBody","path","body","classList","add","localStorage","enableZatcaTheme","progress","start","xmlHttp","XMLHttpRequest","open","onreadystatechange","failerStatus","status","internalServerError","readyState","successStatus","responseText","send","httpRequest","params","type","setRequestHeader","JSON","parse","response","hitType","eventCategory","eventAction","eventLabel","hostname","prod","stag"],"sources":["../../../Fasah/3.0/core.js"],"sourcesContent":["class Package {\n\n constructor(name, details, settings) {\n\n\n var url = '/' + name;\n var version = details;\n \n\n if (typeof (details) !== 'string') {\n\n url = details.url;\n version = details.version;\n\n }\n\n if (!name || !version) {\n console.error(\"Error creating package, name and version must be provided!\", name, version);\n ga('send', 'event', 'Package constructor', 'Error', \"creating package\", \"Error creating package, name and version must be provided!\" + name + version);\n } else if (!settings) {\n console.info(\"creating package\", name, version, url);\n ga('send', 'event', 'Core Js', 'Error', 'Package constructor', \"creating package\" + ' ' + name + ' ' + version);\n } else {\n console.info(\"creating package\", name, version, url, settings);\n ga('send', 'event', 'Core Js', 'Error', 'Package constructor', \"creating package\" + ' ' + name + ' ' + version + ' ' + settings);\n }\n\n this.name = name;\n this.version = version;\n sessionStorage.setItem(\"apiBaseUrl\", \"\");\n sessionStorage.setItem(\"pkgDomainUrl\", \"\");\n if (details.domain) {\n var func = new Function(\"return function () { return \" + details.domain + \"}\")();\n var customDomain = func();\n if(environmentUtility.isDevelopment()) { \n url = url; \n } else { \n url = customDomain + url; \n } \n sessionStorage.setItem(\"pkgDomainUrl\", customDomain);\n }\n this.url = url;\n this.configUrl = url + '/' + version + '/fe-pkg';\n this.packageSettings = new PackageSettings(settings);\n this.settings = this.packageSettings.getSettings();\n this.loaded = false;\n this.packageConfig = new PackageConfiguration();\n this.packageConfig.pkgDomainUrl = sessionStorage.getItem(\"pkgDomainUrl\");\n this.cachedVersion = this.packageConfig.getCachedVersion();\n this.config = null;\n this.packageTemplate = new PackageTemplate(this.packageConfig);\n this.templates = null;\n this.init = null;\n fasah[name] = this;\n }\n\n load(customConfig) {\n //NK Clear the test hash to avoid repeating the same key\n testUtility.clear();\n\n customConfig = customConfig || {};\n if (this.loaded) {\n\n this.prepareForLoading(this.originalConfig, customConfig);\n\n this.packageTemplate.load(this.packageConfig.getName(), this.packageConfig.getVersion(), this.packageConfig.getUrl(), this.packageConfig.getTemplates(), this.packageConfig.getTarget(), () => {\n this.panel = this.packageTemplate.getPanel();\n this.templates = this.packageTemplate.getTemplates();\n this.callInitMethod();\n });\n } else {\n this.loaded = true;\n let currentDate = new Date().getTime();\n fasah.getJson(this.configUrl + '?v=' + currentDate, (config) => {\n\n config.url = this.url;\n config.pkgDomainURL = this.packageConfig.pkgDomainUrl;\n\n this.prepareForLoading(config, customConfig);\n\n i18next.loadNamespaces(this.packageConfig.getLocales(), () => {\n this.packageTemplate.load(this.packageConfig.getName(), this.packageConfig.getVersion(), this.packageConfig.getUrl(), this.packageConfig.getTemplates(), this.packageConfig.getTarget(), () => {\n\n this.panel = this.packageTemplate.getPanel();\n this.templates = this.packageTemplate.getTemplates();\n\n let self = this;\n this.packageConfig.load(() => {\n this.config = this.packageConfig.getConfiguration();\n self.afterLoad();\n });\n });\n });\n\n this.loadImportedPackages();\n this.originalConfig = config;\n });\n }\n\n }\n\n afterLoad() {\n\n let packageName = this.packageConfig.getName();\n\n this.packageConfig.getSubscribeMethods().forEach(subscribeMethod => {\n\n let method = subscribeMethod;\n let event = packageName + '.' + subscribeMethod;\n\n if (typeof (subscribeMethod) != \"string\") {\n method = subscribeMethod.method;\n event = subscribeMethod.event;\n\n if (!method || !event) {\n console.error(\"error mapping subscription to package (\" + packageName + \"), expecting the subscription to be string of method name or object with event and method name\");\n ga('send', 'event', 'Core Js', 'Error', 'After Load function', \"error mapping subscription to package (\" + packageName + \"), expecting the subscription to be string of method name or object with event and method name\");\n }\n }\n\n if (!this[method]) {\n console.error(\"error mapping subscription to package (\" + packageName + \"), expecting the following method: fasah.\" + packageName + \".\" + method);\n ga('send', 'event', 'Core Js', 'Error', 'After Load function', \"error mapping subscription to package (\" + packageName + \"), expecting the following method: fasah.\" + packageName + \".\" + method);\n return;\n }\n\n this.subscribe(event, this[method]);\n });\n\n this.callInitMethod();\n\n //save user's last interaction timestamp [when multi tabs]\n Cookies.set('last_interaction', new Date(), { domain: fasah.session.getDomain() });\n }\n\n publish(event, data) {\n ga('send', 'event', 'oga', 'Click', data.name, data.title);\n document.dispatchEvent(new CustomEvent(event, { bubbles: false, detail: data }));\n }\n\n subscribe(event, callBack) {\n document.addEventListener(event, (e) => {\n callBack(e.detail);\n }, false);\n }\n\n /* private methods */\n\n prepareForLoading(config, customConfig) {\n\n if(fasah.session.loggedIn && config != undefined){\n let sessionDomainUrl = sessionStorage.getItem(\"pkgDomainUrl\");\n let pkgDomainUrl = config.pkgDomainURL == '' && sessionDomainUrl ? sessionStorage.getItem(\"pkgDomainUrl\") : config.pkgDomainURL;\n sessionStorage.setItem(\"pkgDomainUrl\", pkgDomainUrl);\n }\n\n this.packageConfig.init(config, customConfig);\n this.initControlsObjectsIfNeeded();\n this.packageSettings.init(config.settings, customConfig.settings);\n }\n\n initControlsObjectsIfNeeded() {\n this.packageConfig.getControls().forEach(control => {\n if (!this[control]) {\n this[control] = {};\n }\n })\n }\n\n loadImportedPackages() {\n this.packageConfig.getImportPackages().forEach(importedPackage => {\n let name = importedPackage;\n let details = fasah.packages[name];\n let settings;\n\n if (typeof (importedPackage) != \"string\") {\n name = importedPackage.package;\n details = fasah.packages[name];\n settings = importedPackage.settings;\n }\n let pkg = fasah.getPackage(name, details, settings);\n pkg.load();\n });\n }\n\n callInitMethod() {\n let validInit = this.init != null && typeof this.init == \"function\";\n if (validInit) {\n this.init();\n }\n }\n}\n\nwindow.Package = Package;\n\nclass PackageConfiguration {\n\n constructor() {\n this.configuration = {};\n }\n\n init(config, customConfig) {\n\n //NK clone the configuration\n this.configuration = fasahUtility.clone(config);\n\n this.configuration.css = config?.css || [];\n this.configuration.js = config.js || [];\n this.configuration.locales = config.locales || [];\n this.configuration.templates = config.templates || [];\n this.configuration.controls = config.controls || [];\n this.configuration.sharedControls = config.sharedControls || [];\n this.configuration.import = config.import || [];\n this.configuration.subscribe = config.subscribe || [];\n this.configuration.components = config.components || [];\n this.configuration.name = config.name;\n this.configuration.version = config.version;\n this.configuration.cachedVersion = config.cachedVersion || '';\n this.configuration.target = config.target;\n this.configuration.url = config.url;\n this.configuration.css = typeof (config.css) == \"boolean\" ? ['css/' + this.configuration.name + '.css'] : this.configuration.css;\n this.configuration.js = typeof (config.js) == \"boolean\" ? ['js/' + this.configuration.name + '.js'] : this.configuration.js;\n this.configuration.locales = typeof (config.locales) == \"boolean\" ? [this.configuration.name] : this.configuration.locales;\n this.pushSharedControlsJavascriptAndCssPaths();\n this.pushControlsJavascriptAndCssPaths();\n this.mapJavascriptAndCssFilesPathsToFullPath();\n this.pushComponentsJavascriptAndCssPaths();\n\n this.updateCustomConfig(customConfig);\n }\n\n load(callback) {\n new Loader().load(this.getCss(), this.getJs(), callback);\n }\n\n /* get methods */\n\n getConfiguration() {\n return this.configuration;\n }\n\n getLocales() {\n return this.configuration.locales;\n }\n\n getSubscribeMethods() {\n return this.configuration.subscribe;\n }\n\n getImportPackages() {\n return this.configuration.import;\n }\n\n getControls() {\n return this.configuration.controls;\n }\n\n getTemplates() {\n return this.configuration.templates;\n }\n\n getVersion() {\n return this.configuration.version;\n }\n\n getCachedVersion() {\n return this.configuration.cachedVersion;\n }\n \n getUrl() {\n return this.configuration.url;\n }\n\n getName() {\n return this.configuration.name;\n }\n\n getVersioning(){\n //let cachedVersion = localStorage.getItem(this.getName() + '_cachedVersion');\n // let pkgCachedVersion = this.getCachedVersion();\n // let versionParam = '';\n // if(pkgCachedVersion){\n // if(cachedVersion != pkgCachedVersion){\n // localStorage.setItem(this.getName() + '_cachedVersion', pkgCachedVersion);\n // versionParam = '?v=' + pkgCachedVersion;\n // }else{\n // versionParam = '?v=' + pkgCachedVersion;\n // }\n // }\n let pkgCachedVersion = this.getCachedVersion();\n return pkgCachedVersion ? '?v='+this.getCachedVersion(): '' ;\n //return versionParam;\n }\n\n getCss() {\n let versionParam = this.getVersioning();\n \n return this.configuration.css.map((css)=>{return !css.includes('/components') ? css + versionParam : css;});\n \n }\n\n getJs() {\n \n let versionParam = this.getVersioning();\n \n return this.configuration.js.map((js)=>{return !js.includes('/components') ? js + versionParam : js;});\n }\n\n getTarget() {\n return this.configuration.target;\n }\n\n /* private methods */\n\n updateCustomConfig(customConfig) {\n for (let key in customConfig) {\n this.configuration[key] = customConfig[key];\n }\n }\n\n pushControlsJavascriptAndCssPaths() {\n this.configuration.controls.forEach(control => {\n this.configuration.css.push('controls/' + control + '/' + control + '.css');\n this.configuration.js.push('controls/' + control + '/' + control + '.js');\n });\n }\n\n pushSharedControlsJavascriptAndCssPaths() {\n fasah.sharedControls ? '' : fasah.sharedControls = {};\n Object.entries(this.configuration.sharedControls).forEach(([controlKey, control]) => {\n let projectName = control.url.split('/')[0];\n projectName.startsWith('_') ? projectName = projectName.substring(1) : '';\n\n fasah.sharedControls[projectName] ? '' : fasah.sharedControls[projectName] = {};\n\n if (!fasah.sharedControls[projectName].hasOwnProperty(control.name)) {\n let template = '';\n fasah.sharedControls[projectName][control.name] = {\n pkgName: this.getName(),\n getPkgInstance: () => {\n return fasah[fasah.sharedControls[projectName][control.name].pkgName];\n },\n getPkgInstanceProps: () => {\n let pkgInstance = fasah.sharedControls[projectName][control.name].getPkgInstance();\n return {\n pkgInstance,\n app: pkgInstance.app,\n config: pkgInstance.config,\n settings: pkgInstance.settings,\n };\n },\n \n template: template,\n };\n if(control.template){\n let templateUrl = \"../../../\" + control.url + '/' + control.name + '/' + 'template/' + control.name + '.html';\n fasah.get(templateUrl, (htmlContent) => {\n \n let content = htmlContent;\n fasah.sharedControls[projectName][control.name].template = content;\n });\n }\n\n\n \n }\n\n // else if(this.getName() !== fasah.sharedControls[control.subParent][control.name].pkgName){\n else if(this.getName() !== fasah.sharedControls[projectName][control.name].pkgName){\n fasah.sharedControls[projectName][control.name].pkgName = this.getName(); \n }\n \n this.configuration.css.push(\"../../../\" + control.url + '/' + control.name + '/' + control.name + '.css');\n this.configuration.js.push(\"../../../\" + control.url + '/' + control.name + '/' + control.name + '.js');\n \n });\n \n }\n\n mapJavascriptAndCssFilesPathsToFullPath() {\n this.configuration.css = this.configuration.css.map(fileName => {\n return `${this.configuration.url}/${this.configuration.version}/${fileName}`;\n });\n\n this.configuration.js = this.configuration.js.map(fileName => {\n return `${this.configuration.url}/${this.configuration.version}/${fileName}`;\n });\n }\n\n pushComponentsJavascriptAndCssPaths() {\n\n //if compontnets are preloaded then return;\n if (fasah.componentsPreLoaded) return;\n\n this.configuration.components.forEach(component => {\n //NK, do not load the component if it is loaded already\n if (!fasah.loadedComponents[component]) {\n fasah.loadedComponents[component] = fasah.components[component];\n this.configuration.css.push('/components/' + component + '/' + fasah.components[component] + '/' + component + '.css');\n this.configuration.js.push('/components/' + component + '/' + fasah.components[component] + '/' + component + '.js');\n }\n })\n }\n}\n\nwindow.PackageConfiguration = PackageConfiguration;\n\nclass PackageSettings {\n\n constructor(settings) {\n this.settings = settings || {};\n }\n\n init(configSettings, customSettings) {\n let settings = null;\n if (configSettings) {\n settings = configSettings;\n if (customSettings) {\n for (let settingsKey in customSettings) {\n settings[settingsKey] = customSettings[settingsKey];\n }\n }\n } else if (customSettings) {\n settings = customSettings;\n }\n\n if (settings) {\n if (this.settings) {\n for (let key in settings) {\n this.settings[key] = settings[key];\n }\n } else {\n this.settings = settings;\n }\n }\n this.settings = this.settings || {};\n }\n\n /* get methods */\n getSettings() {\n return this.settings;\n }\n}\n\nwindow.PackageSettings = PackageSettings;\n\nclass PackageTemplate {\n \n constructor(packageConfig) {\n this.packageConfig = packageConfig;\n this.templates = null;\n this.elementHtml = null;\n this.panel = null;\n this.target = null;\n }\n\n load(packageName, packageVersion, packageUrl, templates, target, callback) {\n if (!this.templates) {\n this.loadTemplates(templates, packageName, packageVersion, packageUrl);\n }\n\n if (!target) {\n callback();\n return;\n }\n\n this.target = target;\n this.initializeTarget(packageName, packageVersion, packageUrl, target, callback);\n }\n\n /* get methods */\n\n getTemplates() {\n return this.templates;\n }\n\n getPanel() {\n return this.panel;\n }\n\n /* private methods */\n\n loadTemplates(templates, packageName, packageVersion, packageUrl) {\n this.templates = {};\n let versionParam = '';\n /**getVersioning()**/\n versionParam = this.packageConfig.getVersioning();\n\n for (let templateName of templates) {\n let templateUrl = `${packageUrl}/${packageVersion}/templates/${templateName}.html${versionParam}`;\n fasah.get(templateUrl, (htmlContent) => {\n this.templates[templateName] = htmlContent;\n });\n }\n }\n\n\n initializeTarget(packageName, packageVersion, packageUrl, target, callback) {\n\n if (this.elementHtml) {\n this.bindTargetElement(packageName, target);\n callback()\n } else {\n let baseUrl = `${packageUrl}/${packageVersion}/`;\n let versionParam = '';\n /**getVersioning()**/\n versionParam = this.packageConfig.getVersioning();\n\n fasah.get(baseUrl + 'element.html' + versionParam, (htmlContent) => {\n if (htmlContent == 404) {\n fasah.get(baseUrl + 'templates/default.html', (htmlContent) => {\n this.elementHtml = htmlContent;\n this.bindTargetElement(packageName, target);\n callback()\n });\n } else {\n this.elementHtml = htmlContent;\n this.bindTargetElement(packageName, target);\n callback()\n }\n });\n }\n }\n\n bindTargetElement(packageName, packageTarget) {\n let obj = $(packageTarget);\n\n if (obj) {\n obj.html(this.elementHtml);\n this.panel = obj;\n } else {\n console.warn(packageName, \"element.html cannot be bound to '\" + packageTarget + \"', its not found in dom\");\n }\n }\n}\n\nwindow.PackageTemplate = PackageTemplate;\n\nclass Engine {\n\n constructor() {\n this.language = document.location.pathname.startsWith('/ar') ? 'ar' : 'en';\n this.urlParams = {};\n this.portalName = location.pathname.split('/')[2];\n }\n\n init() {\n this.getJson('/pkgconf/fe-pkg', (mainConfig) => {\n this.packages = mainConfig.packages;\n this.components = mainConfig.components;\n this.loadedComponents = {};//NK, cache the loaded components\n this.portals = mainConfig.portals;\n this.componentsPreLoaded = mainConfig.componentsPreLoaded || false;\n\n this.integrationApi = this.fillIntegrationApis(mainConfig.integrationApi);\n\n new Loader().load(mainConfig.css, mainConfig.js, this.afterLoadBasicCssAndJavascriptFiles.bind(this));\n });\n }\n\n afterLoadBasicCssAndJavascriptFiles() {\n this.loadMainPackage();\n this.addLanguageToBody();\n this.addZatcaThemeToBody();\n }\n\n loadMainPackage() {\n let path = document.location.pathname.split('/');\n let pkg = new Package(path[2], path[3]);\n pkg.load();\n }\n\n addLanguageToBody() {\n if (!document.body) {\n console.warn(\"Trying to access document body before initialize it\");\n }\n document.body.classList.add(this.language);\n }\n\n addZatcaThemeToBody() {\n if (!document.body) {\n console.warn(\"Trying to access document body before initialize it\");\n }\n if(localStorage.enableZatcaTheme == 'true'){\n document.body.classList.add('zatca-theme');\n }\n }\n\n get(url, callBack) {\n\n progress.start();\n let xmlHttp = new XMLHttpRequest();\n\n xmlHttp.open('GET', url, true);\n\n xmlHttp.onreadystatechange = () => {\n\n progress.done();\n\n let failerStatus = xmlHttp.status === 404;\n let internalServerError = xmlHttp.status === 500;\n let readyState = xmlHttp.readyState === 4;\n let successStatus = xmlHttp.status === 200;\n if (failerStatus) {\n callBack(404);\n ga('send', 'event', 'Get Request', 'Error', xmlHttp.responseText, url);\n\n }\n if (internalServerError) {\n callBack(internalServerError);\n ga('send', 'event', 'Get Request', 'Error', xmlHttp.responseText, url)\n }\n if (readyState && successStatus) {\n callBack(xmlHttp.responseText);\n }\n };\n\n xmlHttp.send(null);\n }\n\n httpRequest(url, params, type, callBack) {\n\n progress.start();\n\n let xmlHttp = new XMLHttpRequest();\n\n xmlHttp.open(type, url, true);\n\n xmlHttp.setRequestHeader('Content-type', 'application/json; charset=utf-8');\n\n xmlHttp.onreadystatechange = () => {\n\n progress.done();\n let internalServerError = xmlHttp.status === 500;\n let failerStatus = xmlHttp.status === 404;\n let readyState = xmlHttp.readyState === 4;\n let successStatus = xmlHttp.status === 200;\n if (failerStatus) {\n callBack(404);\n ga('send', 'event', 'Get Request', 'Error', xmlHttp.responseText, url);\n }\n if (internalServerError) {\n callBack(internalServerError);\n ga('send', 'event', 'Get Request', 'Error', xmlHttp.responseText, url);\n }\n if (readyState && successStatus) {\n let obj = JSON.parse(xmlHttp.responseText);\n callBack(obj);\n }\n };\n\n xmlHttp.send(params);\n }\n\n getJson(url, callBack) {\n fasah.get(url, (response) => {\n let obj = JSON.parse(response);\n callBack(obj);\n });\n }\n\n getPackage(name, details, settings) {\n ga('send', {\n hitType: 'event',\n eventCategory: name,\n eventAction: 'click',\n eventLabel: `Fasah - ${window.location.hostname} - ${fasah.portalName}`\n });\n\n return this[name] ? this[name] : new Package(name, details, settings);\n }\n\n fillIntegrationApis(integrationApi) {\n if (window.location.hostname == \"oga.fasah.sa\") {\n return integrationApi.prod;\n } else {\n return integrationApi.stag;\n }\n }\n}\n\nwindow.Engine = Engine;"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAMA,OAAO;IAET,SAAAA,QAAYC,IAAI,EAAEC,OAAO,EAAEC,QAAQ,EAAE;MAAAC,eAAA,OAAAJ,OAAA;MAGjC,IAAIK,GAAG,GAAG,GAAG,GAAGJ,IAAI;MACpB,IAAIK,OAAO,GAAGJ,OAAO;MAGrB,IAAI,OAAQA,OAAQ,KAAK,QAAQ,EAAE;QAE/BG,GAAG,GAAGH,OAAO,CAACG,GAAG;QACjBC,OAAO,GAAGJ,OAAO,CAACI,OAAO;MAE7B;MAEA,IAAI,CAACL,IAAI,IAAI,CAACK,OAAO,EAAE;QAEnBC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,kBAAkB,EAAE,4DAA4D,GAAGN,IAAI,GAAGK,OAAO,CAAC;MAC1J,CAAC,MAAM,IAAI,CAACH,QAAQ,EAAE;QAElBI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,GAAG,GAAG,GAAGN,IAAI,GAAG,GAAG,GAAGK,OAAO,CAAC;MACnH,CAAC,MAAM;QAEHC,EAAE,CAAC,MAAM,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