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OAXAA,EAAWC,OAAOC,OAASD,OAAOC,OAAOC,OAAS,SAAUC,GAC1D,IAAK,IAAIvJ,EAAI,EAAGA,EAAIwJ,UAAU1I,OAAQd,IAAK,CACzC,IAAIyJ,EAASD,UAAUxJ,GACvB,IAAK,IAAI0E,KAAO+E,EACVL,OAAOM,UAAUC,eAAeC,KAAKH,EAAQ/E,KAC/C6E,EAAO7E,GAAO+E,EAAO/E,GAG3B,CACA,OAAO6E,CACT,EACOJ,EAASU,MAAMC,KAAMN,UAC9B","sources":["webpack:///./node_modules/@mui/x-license-pro/encoding/md5.js","webpack:///./node_modules/@mui/x-license-pro/encoding/base64.js","webpack:///./node_modules/@mui/x-license-pro/utils/licenseScope.js","webpack:///./node_modules/@mui/x-license-pro/utils/licensingModel.js","webpack:///./node_modules/@mui/x-license-pro/generateLicense/generateLicense.js","webpack:///./node_modules/@mui/x-license-pro/utils/licenseErrorMessageUtils.js","webpack:///./node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","webpack:///./node_modules/@mui/x-license-pro/utils/licenseInfo.js","webpack:///./node_modules/@mui/x-license-pro/utils/licenseStatus.js","webpack:///./node_modules/@mui/x-license-pro/verifyLicense/verifyLicense.js","webpack:///./node_modules/@mui/x-license-pro/Unstable_LicenseInfoProvider/LicenseInfoContext.js","webpack:///./node_modules/@mui/x-license-pro/useLicenseVerifier/useLicenseVerifier.js","webpack:///./node_modules/@mui/x-license-pro/Watermark/Watermark.js","webpack:///./node_modules/@mui/x-license-pro/Unstable_LicenseInfoProvider/LicenseInfoProvider.js","webpack:///./node_modules/react/jsx-runtime.js","webpack:///./node_modules/@babel/runtime/helpers/esm/extends.js"],"sourcesContent":["/* eslint-disable */\n// See \"precomputation\" in notes\nconst k = [];\nlet i = 0;\nfor (; i < 64;) {\n k[i] = 0 | Math.sin(++i % Math.PI) * 4294967296;\n // k[i] = 0 | (Math.abs(Math.sin(++i)) * 4294967296);\n}\n\nexport function md5(s) {\n const words = [];\n let b,\n c,\n d,\n j = unescape(encodeURI(s)) + '\\x80',\n a = j.length;\n const h = [b = 0x67452301, c = 0xefcdab89, ~b, ~c];\n s = --a / 4 + 2 | 15;\n\n // See \"Length bits\" in notes\n words[--s] = a * 8;\n for (; ~a;) {\n // a !== -1\n words[a >> 2] |= j.charCodeAt(a) << 8 * a--;\n }\n for (i = j = 0; i < s; i += 16) {\n a = h;\n for (; j < 64; a = [d = a[3], b + ((d = a[0] + [b & c | ~b & d, d & b | ~d & c, b ^ c ^ d, c ^ (b | ~d)][a = j >> 4] + k[j] + ~~words[i | [j, 5 * j + 1, 3 * j + 5, 7 * j][a] & 15]) << (a = [7, 12, 17, 22, 5, 9, 14, 20, 4, 11, 16, 23, 6, 10, 15, 21][4 * a + j++ % 4]) | d >>> -a), b, c]) {\n b = a[1] | 0;\n c = a[2];\n }\n\n // See \"Integer safety\" in notes\n for (j = 4; j;) h[--j] += a[j];\n\n // j === 0\n }\n\n for (s = ''; j < 32;) {\n s += (h[j >> 3] >> (1 ^ j++) * 4 & 15).toString(16);\n // s += ((h[j >> 3] >> (4 ^ 4 * j++)) & 15).toString(16);\n }\n\n return s;\n}","/* eslint-disable */\nconst _keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\nfunction utf8Encode(str) {\n for (let n = 0; n < str.length; n++) {\n const c = str.charCodeAt(n);\n if (c >= 128) {\n throw new Error('ASCII only support');\n }\n }\n return str;\n}\nexport const base64Decode = input => {\n let output = '';\n let chr1, chr2, chr3;\n let enc1, enc2, enc3, enc4;\n let i = 0;\n input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, '');\n while (i < input.length) {\n enc1 = _keyStr.indexOf(input.charAt(i++));\n enc2 = _keyStr.indexOf(input.charAt(i++));\n enc3 = _keyStr.indexOf(input.charAt(i++));\n enc4 = _keyStr.indexOf(input.charAt(i++));\n chr1 = enc1 << 2 | enc2 >> 4;\n chr2 = (enc2 & 15) << 4 | enc3 >> 2;\n chr3 = (enc3 & 3) << 6 | enc4;\n output = output + String.fromCharCode(chr1);\n if (enc3 != 64) {\n output = output + String.fromCharCode(chr2);\n }\n if (enc4 != 64) {\n output = output + String.fromCharCode(chr3);\n }\n }\n return output;\n};\nexport const base64Encode = input => {\n let output = '';\n let chr1, chr2, chr3, enc1, enc2, enc3, enc4;\n let i = 0;\n input = utf8Encode(input);\n while (i < input.length) {\n chr1 = input.charCodeAt(i++);\n chr2 = input.charCodeAt(i++);\n chr3 = input.charCodeAt(i++);\n enc1 = chr1 >> 2;\n enc2 = (chr1 & 3) << 4 | chr2 >> 4;\n enc3 = (chr2 & 15) << 2 | chr3 >> 6;\n enc4 = chr3 & 63;\n if (isNaN(chr2)) {\n enc3 = enc4 = 64;\n } else if (isNaN(chr3)) {\n enc4 = 64;\n }\n output = output + _keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4);\n }\n return output;\n};","export const LICENSE_SCOPES = ['pro', 'premium'];","export const LICENSING_MODELS = [\n/**\n * A license is outdated if the current version of the software was released after the expiry date of the license.\n * But the license can be used indefinitely with an older version of the software.\n */\n'perpetual',\n/**\n * On development, a license is outdated if the expiry date has been reached\n * On production, a license is outdated if the current version of the software was released after the expiry date of the license (see \"perpetual\")\n */\n'annual',\n/**\n * TODO 2025 remove, legacy name of annual.\n */\n'subscription'];","import { md5 } from '../encoding/md5';\nimport { base64Encode } from '../encoding/base64';\nimport { LICENSE_SCOPES } from '../utils/licenseScope';\nimport { LICENSING_MODELS } from '../utils/licensingModel';\nconst licenseVersion = '2';\nfunction getClearLicenseString(details) {\n if (details.scope && !LICENSE_SCOPES.includes(details.scope)) {\n throw new Error('MUI: Invalid scope');\n }\n if (details.licensingModel && !LICENSING_MODELS.includes(details.licensingModel)) {\n throw new Error('MUI: Invalid licensing model');\n }\n return `O=${details.orderNumber},E=${details.expiryDate.getTime()},S=${details.scope},LM=${details.licensingModel},KV=${licenseVersion}`;\n}\nexport function generateLicense(details) {\n const licenseStr = getClearLicenseString(details);\n return `${md5(base64Encode(licenseStr))}${base64Encode(licenseStr)}`;\n}","function showError(message) {\n console.error(['*************************************************************', '', ...message, '', '*************************************************************'].join('\\n'));\n}\nexport function showInvalidLicenseKeyError() {\n showError(['MUI: Invalid license key.', '', \"Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.\", '', 'To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument', 'Please check the license key installation https://mui.com/r/x-license-key-installation.']);\n}\nexport function showLicenseKeyPlanMismatchError() {\n showError(['MUI: License key plan mismatch.', '', 'Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use `DataGridPremium` with a license key for the Pro plan.', '', 'To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.', \"Of if you didn't intend to use Premium features, you can replace the import of `@mui/x-data-grid-premium` with `@mui/x-data-grid-pro`.\"]);\n}\nexport function showMissingLicenseKeyError({\n plan,\n packageName\n}) {\n showError(['MUI: Missing license key.', '', `The license key is missing. You might not be allowed to use \\`${packageName}\\` which is part of MUI X ${plan}.`, '', 'To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.', 'If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the software immediately.']);\n}\nexport function showExpiredPackageVersionError({\n packageName\n}) {\n showError(['MUI: Expired package version.', '', `You have installed a version of \\`${packageName}\\` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase.`, '', 'To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key.']);\n}\nexport function showExpiredAnnualGraceLicenseKeyError({\n plan,\n licenseKey,\n expiryTimestamp\n}) {\n showError(['MUI: Expired license key.', '', `Your annual license key to use MUI X ${plan}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, '']);\n}\nexport function showExpiredAnnualLicenseKeyError({\n plan,\n licenseKey,\n expiryTimestamp\n}) {\n throw new Error(['MUI: Expired license key.', '', `Your annual license key to use MUI X ${plan}'s on non-production environments is expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, ''].join('\\n'));\n}","/* eslint-disable */\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nexport default typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();","import { ponyfillGlobal } from '@mui/utils';\n\n/**\n * @ignore - do not document.\n */\n\n// Store the license information in a global, so it can be shared\n// when module duplication occurs. The duplication of the modules can happen\n// if using multiple version of MUI X at the same time of the bundler\n// decide to duplicate to improve the size of the chunks.\n// eslint-disable-next-line no-underscore-dangle\nponyfillGlobal.__MUI_LICENSE_INFO__ = ponyfillGlobal.__MUI_LICENSE_INFO__ || {\n key: undefined\n};\nexport class LicenseInfo {\n static getLicenseInfo() {\n // eslint-disable-next-line no-underscore-dangle\n return ponyfillGlobal.__MUI_LICENSE_INFO__;\n }\n static getLicenseKey() {\n return LicenseInfo.getLicenseInfo().key;\n }\n static setLicenseKey(key) {\n const licenseInfo = LicenseInfo.getLicenseInfo();\n licenseInfo.key = key;\n }\n}","// eslint-disable-next-line @typescript-eslint/naming-convention\nexport let LICENSE_STATUS = /*#__PURE__*/function (LICENSE_STATUS) {\n LICENSE_STATUS[\"NotFound\"] = \"NotFound\";\n LICENSE_STATUS[\"Invalid\"] = \"Invalid\";\n LICENSE_STATUS[\"ExpiredAnnual\"] = \"ExpiredAnnual\";\n LICENSE_STATUS[\"ExpiredAnnualGrace\"] = \"ExpiredAnnualGrace\";\n LICENSE_STATUS[\"ExpiredVersion\"] = \"ExpiredVersion\";\n LICENSE_STATUS[\"Valid\"] = \"Valid\";\n LICENSE_STATUS[\"OutOfScope\"] = \"OutOfScope\";\n return LICENSE_STATUS;\n}({});","import { base64Decode, base64Encode } from '../encoding/base64';\nimport { md5 } from '../encoding/md5';\nimport { LICENSE_STATUS } from '../utils/licenseStatus';\nimport { LICENSE_SCOPES } from '../utils/licenseScope';\nimport { LICENSING_MODELS } from '../utils/licensingModel';\nconst getDefaultReleaseDate = () => {\n const today = new Date();\n today.setHours(0, 0, 0, 0);\n return today;\n};\nexport function generateReleaseInfo(releaseDate = getDefaultReleaseDate()) {\n return base64Encode(releaseDate.getTime().toString());\n}\nconst expiryReg = /^.*EXPIRY=([0-9]+),.*$/;\n/**\n * Format: ORDER:${orderNumber},EXPIRY=${expiryTimestamp},KEYVERSION=1\n */\nconst decodeLicenseVersion1 = license => {\n let expiryTimestamp;\n try {\n expiryTimestamp = parseInt(license.match(expiryReg)[1], 10);\n if (!expiryTimestamp || Number.isNaN(expiryTimestamp)) {\n expiryTimestamp = null;\n }\n } catch (err) {\n expiryTimestamp = null;\n }\n return {\n scope: 'pro',\n licensingModel: 'perpetual',\n expiryTimestamp\n };\n};\n\n/**\n * Format: O=${orderNumber},E=${expiryTimestamp},S=${scope},LM=${licensingModel},KV=2`;\n */\nconst decodeLicenseVersion2 = license => {\n const licenseInfo = {\n scope: null,\n licensingModel: null,\n expiryTimestamp: null\n };\n license.split(',').map(token => token.split('=')).filter(el => el.length === 2).forEach(([key, value]) => {\n if (key === 'S') {\n licenseInfo.scope = value;\n }\n if (key === 'LM') {\n licenseInfo.licensingModel = value;\n }\n if (key === 'E') {\n const expiryTimestamp = parseInt(value, 10);\n if (expiryTimestamp && !Number.isNaN(expiryTimestamp)) {\n licenseInfo.expiryTimestamp = expiryTimestamp;\n }\n }\n });\n return licenseInfo;\n};\n\n/**\n * Decode the license based on its key version and return a version-agnostic `MuiLicense` object.\n */\nconst decodeLicense = encodedLicense => {\n const license = base64Decode(encodedLicense);\n if (license.includes('KEYVERSION=1')) {\n return decodeLicenseVersion1(license);\n }\n if (license.includes('KV=2')) {\n return decodeLicenseVersion2(license);\n }\n return null;\n};\nexport function verifyLicense({\n releaseInfo,\n licenseKey,\n acceptedScopes\n}) {\n if (!releaseInfo) {\n throw new Error('MUI: The release information is missing. Not able to validate license.');\n }\n if (!licenseKey) {\n return {\n status: LICENSE_STATUS.NotFound\n };\n }\n const hash = licenseKey.substr(0, 32);\n const encoded = licenseKey.substr(32);\n if (hash !== md5(encoded)) {\n return {\n status: LICENSE_STATUS.Invalid\n };\n }\n const license = decodeLicense(encoded);\n if (license == null) {\n console.error('Error checking license. Key version not found!');\n return {\n status: LICENSE_STATUS.Invalid\n };\n }\n if (license.licensingModel == null || !LICENSING_MODELS.includes(license.licensingModel)) {\n console.error('Error checking license. Licensing model not found or invalid!');\n return {\n status: LICENSE_STATUS.Invalid\n };\n }\n if (license.expiryTimestamp == null) {\n console.error('Error checking license. Expiry timestamp not found or invalid!');\n return {\n status: LICENSE_STATUS.Invalid\n };\n }\n if (license.licensingModel === 'perpetual' || process.env.NODE_ENV === 'production') {\n const pkgTimestamp = parseInt(base64Decode(releaseInfo), 10);\n if (Number.isNaN(pkgTimestamp)) {\n throw new Error('MUI: The release information is invalid. Not able to validate license.');\n }\n if (license.expiryTimestamp < pkgTimestamp) {\n return {\n status: LICENSE_STATUS.ExpiredVersion\n };\n }\n } else if (license.licensingModel === 'subscription' || license.licensingModel === 'annual') {\n if (new Date().getTime() > license.expiryTimestamp) {\n if (\n // 30 days grace\n new Date().getTime() < license.expiryTimestamp + 1000 * 3600 * 24 * 30 || process.env.NODE_ENV !== 'development') {\n return {\n status: LICENSE_STATUS.ExpiredAnnualGrace,\n meta: {\n expiryTimestamp: license.expiryTimestamp,\n licenseKey\n }\n };\n }\n return {\n status: LICENSE_STATUS.ExpiredAnnual,\n meta: {\n expiryTimestamp: license.expiryTimestamp,\n licenseKey\n }\n };\n }\n }\n if (license.scope == null || !LICENSE_SCOPES.includes(license.scope)) {\n console.error('Error checking license. scope not found or invalid!');\n return {\n status: LICENSE_STATUS.Invalid\n };\n }\n if (!acceptedScopes.includes(license.scope)) {\n return {\n status: LICENSE_STATUS.OutOfScope\n };\n }\n return {\n status: LICENSE_STATUS.Valid\n };\n}","import * as React from 'react';\nexport default /*#__PURE__*/React.createContext({\n key: undefined\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { verifyLicense } from '../verifyLicense/verifyLicense';\nimport { LicenseInfo } from '../utils/licenseInfo';\nimport { showExpiredAnnualGraceLicenseKeyError, showExpiredAnnualLicenseKeyError, showInvalidLicenseKeyError, showMissingLicenseKeyError, showLicenseKeyPlanMismatchError, showExpiredPackageVersionError } from '../utils/licenseErrorMessageUtils';\nimport { LICENSE_STATUS } from '../utils/licenseStatus';\nimport LicenseInfoContext from '../Unstable_LicenseInfoProvider/LicenseInfoContext';\nexport const sharedLicenseStatuses = {};\nexport function useLicenseVerifier(packageName, releaseInfo) {\n const {\n key: contextKey\n } = React.useContext(LicenseInfoContext);\n return React.useMemo(() => {\n const licenseKey = contextKey != null ? contextKey : LicenseInfo.getLicenseKey();\n\n // Cache the response to not trigger the error twice.\n if (sharedLicenseStatuses[packageName] && sharedLicenseStatuses[packageName].key === licenseKey) {\n return sharedLicenseStatuses[packageName].licenseVerifier;\n }\n const acceptedScopes = packageName.includes('premium') ? ['premium'] : ['pro', 'premium'];\n const plan = packageName.includes('premium') ? 'Premium' : 'Pro';\n const licenseStatus = verifyLicense({\n releaseInfo,\n licenseKey,\n acceptedScopes\n });\n sharedLicenseStatuses[packageName] = {\n key: licenseKey,\n licenseVerifier: licenseStatus\n };\n const fullPackageName = `@mui/${packageName}`;\n if (licenseStatus.status === LICENSE_STATUS.Valid) {\n // Skip\n } else if (licenseStatus.status === LICENSE_STATUS.Invalid) {\n showInvalidLicenseKeyError();\n } else if (licenseStatus.status === LICENSE_STATUS.OutOfScope) {\n showLicenseKeyPlanMismatchError();\n } else if (licenseStatus.status === LICENSE_STATUS.NotFound) {\n showMissingLicenseKeyError({\n plan,\n packageName: fullPackageName\n });\n } else if (licenseStatus.status === LICENSE_STATUS.ExpiredAnnualGrace) {\n showExpiredAnnualGraceLicenseKeyError(_extends({\n plan\n }, licenseStatus.meta));\n } else if (licenseStatus.status === LICENSE_STATUS.ExpiredAnnual) {\n showExpiredAnnualLicenseKeyError(_extends({\n plan\n }, licenseStatus.meta));\n } else if (licenseStatus.status === LICENSE_STATUS.ExpiredVersion) {\n showExpiredPackageVersionError({\n packageName: fullPackageName\n });\n } else if (process.env.NODE_ENV !== 'production') {\n throw new Error('missing status handler');\n }\n return licenseStatus;\n }, [packageName, releaseInfo, contextKey]);\n}","import * as React from 'react';\nimport { useLicenseVerifier } from '../useLicenseVerifier';\nimport { LICENSE_STATUS } from '../utils/licenseStatus';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getLicenseErrorMessage(licenseStatus) {\n switch (licenseStatus) {\n case LICENSE_STATUS.ExpiredAnnualGrace:\n case LICENSE_STATUS.ExpiredAnnual:\n return 'MUI X Expired license key';\n case LICENSE_STATUS.ExpiredVersion:\n return 'MUI X Expired package version';\n case LICENSE_STATUS.Invalid:\n return 'MUI X Invalid license key';\n case LICENSE_STATUS.OutOfScope:\n return 'MUI X License key plan mismatch';\n case LICENSE_STATUS.NotFound:\n return 'MUI X Missing license key';\n default:\n throw new Error('MUI: Unhandled MUI X license status.');\n }\n}\nexport function Watermark(props) {\n const {\n packageName,\n releaseInfo\n } = props;\n const licenseStatus = useLicenseVerifier(packageName, releaseInfo);\n if (licenseStatus.status === LICENSE_STATUS.Valid) {\n return null;\n }\n return /*#__PURE__*/_jsx(\"div\", {\n style: {\n position: 'absolute',\n pointerEvents: 'none',\n color: '#8282829e',\n zIndex: 100000,\n width: '100%',\n textAlign: 'center',\n bottom: '50%',\n right: 0,\n letterSpacing: 5,\n fontSize: 24\n },\n children: getLicenseErrorMessage(licenseStatus.status)\n });\n}","import * as React from 'react';\nimport LicenseInfoContext from './LicenseInfoContext';\n\n/**\n * @ignore - do not document.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * @ignore - do not document.\n */\nexport function LicenseInfoProvider({\n info,\n children\n}) {\n return /*#__PURE__*/_jsx(LicenseInfoContext.Provider, {\n value: info,\n children: children\n });\n}","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}"],"names":["k","i","Math","sin","PI","md5","s","words","b","c","d","j","unescape","encodeURI","a","length","h","charCodeAt","toString","_keyStr","base64Decode","input","chr1","chr2","chr3","enc1","enc2","enc3","enc4","output","replace","indexOf","charAt","String","fromCharCode","base64Encode","str","n","Error","utf8Encode","isNaN","LICENSE_SCOPES","LICENSING_MODELS","licenseVersion","generateLicense","details","licenseStr","scope","includes","licensingModel","orderNumber","expiryDate","getTime","getClearLicenseString","showError","message","console","error","join","showInvalidLicenseKeyError","showLicenseKeyPlanMismatchError","showMissingLicenseKeyError","plan","packageName","showExpiredPackageVersionError","showExpiredAnnualGraceLicenseKeyError","licenseKey","expiryTimestamp","Date","showExpiredAnnualLicenseKeyError","window","self","Function","ponyfillGlobal","__MUI_LICENSE_INFO__","key","undefined","LicenseInfo","getLicenseInfo","getLicenseKey","setLicenseKey","LICENSE_STATUS","getDefaultReleaseDate","today","setHours","generateReleaseInfo","releaseDate","expiryReg","decodeLicense","encodedLicense","license","parseInt","match","Number","err","decodeLicenseVersion1","licenseInfo","split","map","token","filter","el","forEach","value","decodeLicenseVersion2","verifyLicense","releaseInfo","acceptedScopes","status","NotFound","hash","substr","encoded","Invalid","pkgTimestamp","ExpiredVersion","ExpiredAnnualGrace","meta","Valid","OutOfScope","sharedLicenseStatuses","useLicenseVerifier","contextKey","LicenseInfoContext","licenseVerifier","licenseStatus","fullPackageName","ExpiredAnnual","getLicenseErrorMessage","Watermark","props","style","position","pointerEvents","color","zIndex","width","textAlign","bottom","right","letterSpacing","fontSize","children","LicenseInfoProvider","info","Provider","module","exports","_extends","Object","assign","bind","target","arguments","source","prototype","hasOwnProperty","call","apply","this"],"sourceRoot":""}