@dr.pogodin/react-utils 1.23.9 → 1.23.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/build/development/client/getInj.js.map +1 -1
- package/build/development/client/index.js.map +1 -1
- package/build/development/client/init.js.map +1 -1
- package/build/development/index.js.map +1 -1
- package/build/development/server/Cache.js.map +1 -1
- package/build/development/server/index.js.map +1 -1
- package/build/development/server/renderer.js.map +1 -1
- package/build/development/server/server.js.map +1 -1
- package/build/development/shared/components/Button/index.js.map +1 -1
- package/build/development/shared/components/Checkbox/index.js.map +1 -1
- package/build/development/shared/components/CodeSplit/index.js.map +1 -1
- package/build/development/shared/components/Dropdown/index.js.map +1 -1
- package/build/development/shared/components/GenericLink/index.js.map +1 -1
- package/build/development/shared/components/Input/index.js.map +1 -1
- package/build/development/shared/components/Link.js.map +1 -1
- package/build/development/shared/components/MetaTags.js.map +1 -1
- package/build/development/shared/components/Modal/index.js.map +1 -1
- package/build/development/shared/components/NavLink.js.map +1 -1
- package/build/development/shared/components/PageLayout/index.js.map +1 -1
- package/build/development/shared/components/ScalableRect/index.js.map +1 -1
- package/build/development/shared/components/Throbber/index.js.map +1 -1
- package/build/development/shared/components/WithTooltip/Tooltip.js.map +1 -1
- package/build/development/shared/components/WithTooltip/index.js.map +1 -1
- package/build/development/shared/components/YouTubeVideo/index.js.map +1 -1
- package/build/development/shared/utils/config.js.map +1 -1
- package/build/development/shared/utils/index.js.map +1 -1
- package/build/development/shared/utils/isomorphy/index.js.map +1 -1
- package/build/development/shared/utils/jest/E2eSsrEnv.js.map +1 -1
- package/build/development/shared/utils/jest/index.js.map +1 -1
- package/build/development/shared/utils/splitComponent.js.map +1 -1
- package/build/development/shared/utils/time.js.map +1 -1
- package/build/development/web.bundle.js +49 -191
- package/build/production/client/getInj.js.map +1 -1
- package/build/production/client/index.js.map +1 -1
- package/build/production/client/init.js.map +1 -1
- package/build/production/index.js.map +1 -1
- package/build/production/server/Cache.js.map +1 -1
- package/build/production/server/index.js +1 -1
- package/build/production/server/index.js.map +1 -1
- package/build/production/server/renderer.js.map +1 -1
- package/build/production/server/server.js.map +1 -1
- package/build/production/shared/components/Button/index.js.map +1 -1
- package/build/production/shared/components/Checkbox/index.js.map +1 -1
- package/build/production/shared/components/CodeSplit/index.js.map +1 -1
- package/build/production/shared/components/Dropdown/index.js.map +1 -1
- package/build/production/shared/components/GenericLink/index.js.map +1 -1
- package/build/production/shared/components/Input/index.js.map +1 -1
- package/build/production/shared/components/Link.js.map +1 -1
- package/build/production/shared/components/MetaTags.js.map +1 -1
- package/build/production/shared/components/Modal/index.js.map +1 -1
- package/build/production/shared/components/NavLink.js.map +1 -1
- package/build/production/shared/components/PageLayout/index.js.map +1 -1
- package/build/production/shared/components/ScalableRect/index.js.map +1 -1
- package/build/production/shared/components/Throbber/index.js.map +1 -1
- package/build/production/shared/components/WithTooltip/Tooltip.js.map +1 -1
- package/build/production/shared/components/WithTooltip/index.js.map +1 -1
- package/build/production/shared/components/YouTubeVideo/index.js.map +1 -1
- package/build/production/shared/utils/config.js.map +1 -1
- package/build/production/shared/utils/index.js.map +1 -1
- package/build/production/shared/utils/isomorphy/index.js.map +1 -1
- package/build/production/shared/utils/jest/E2eSsrEnv.js +1 -1
- package/build/production/shared/utils/jest/E2eSsrEnv.js.map +1 -1
- package/build/production/shared/utils/jest/index.js.map +1 -1
- package/build/production/shared/utils/splitComponent.js.map +1 -1
- package/build/production/shared/utils/time.js.map +1 -1
- package/build/production/web.bundle.js +1 -1
- package/build/production/web.bundle.js.map +1 -1
- package/config/webpack/lib-base.js +2 -0
- package/package.json +31 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"splitComponent.js","names":["_react","require","_CodeSplit","_interopRequireDefault","splitComponent","chunkName","getComponent","placeholder","children","props","createElement","CodeSplit"],"sources":["../../../../src/shared/utils/splitComponent.js"],"sourcesContent":["/* eslint-disable react/jsx-props-no-spreading */\n\nimport { createElement } from 'react';\n\nimport CodeSplit from 'components/CodeSplit';\n\n/**\n * Wraps a regular React component into a \"code splitting\" component,\n * i.e. all code used exclusively by that component and its sub-tree\n * will go into a separate, asynchronously loaded, code chunk for\n * the client-side.\n * @param {object} options\n * @param {string} options.chunkName\n * @param {function} options.getComponent\n * @param {React.Element} [options.placeholder]\n * @return {React.ElementType}\n */\nexport default function splitComponent({\n chunkName,\n getComponent,\n placeholder,\n}) {\n // eslint-disable-next-line react/prop-types\n return ({ children, ...props } = {}) => createElement(\n CodeSplit,\n {\n ...props,\n chunkName,\n getComponent,\n placeholder,\n },\n children,\n );\n}\n"],"mappings":"wLAEA,IAAAA,MAAA,CAAAC,OAAA,UAEA,IAAAC,UAAA,CAAAC,sBAAA,CAAAF,OAAA,6BAJA,kDAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACe,QAAS,CAAAG,cAAcA,CAAC,CACrCC,SAAS,CACTC,YAAY,CACZC,WACF,CAAC,CAAE,CACD;AACA,MAAO,CAAC,CAAEC,QAAQ,CAAE,GAAGC,KAAM,CAAC,CAAG,CAAC,CAAC,gBAAK,GAAAC,oBAAa,EACnDC,kBAAS,CACT,CACE,GAAGF,KAAK,CACRJ,SAAS,CACTC,YAAY,CACZC,WACF,CAAC,CACDC,
|
|
1
|
+
{"version":3,"file":"splitComponent.js","names":["_react","require","_CodeSplit","_interopRequireDefault","splitComponent","chunkName","getComponent","placeholder","children","props","createElement","CodeSplit"],"sources":["../../../../src/shared/utils/splitComponent.js"],"sourcesContent":["/* eslint-disable react/jsx-props-no-spreading */\n\nimport { createElement } from 'react';\n\nimport CodeSplit from 'components/CodeSplit';\n\n/**\n * Wraps a regular React component into a \"code splitting\" component,\n * i.e. all code used exclusively by that component and its sub-tree\n * will go into a separate, asynchronously loaded, code chunk for\n * the client-side.\n * @param {object} options\n * @param {string} options.chunkName\n * @param {function} options.getComponent\n * @param {React.Element} [options.placeholder]\n * @return {React.ElementType}\n */\nexport default function splitComponent({\n chunkName,\n getComponent,\n placeholder,\n}) {\n // eslint-disable-next-line react/prop-types\n return ({ children, ...props } = {}) => createElement(\n CodeSplit,\n {\n ...props,\n chunkName,\n getComponent,\n placeholder,\n },\n children,\n );\n}\n"],"mappings":"wLAEA,IAAAA,MAAA,CAAAC,OAAA,UAEA,IAAAC,UAAA,CAAAC,sBAAA,CAAAF,OAAA,6BAJA,kDAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACe,QAAS,CAAAG,cAAcA,CAAC,CACrCC,SAAS,CACTC,YAAY,CACZC,WACF,CAAC,CAAE,CACD;AACA,MAAO,CAAC,CAAEC,QAAQ,CAAE,GAAGC,KAAM,CAAC,CAAG,CAAC,CAAC,gBAAK,GAAAC,oBAAa,EACnDC,kBAAS,CACT,CACE,GAAGF,KAAK,CACRJ,SAAS,CACTC,YAAY,CACZC,WACF,CAAC,CACDC,QACF,CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.js","names":["_cookie","_interopRequireDefault","require","_dayjs","_lodash","_react","_jsUtils","_reactGlobalState","useCurrent","autorefresh","globalStatePath","precision","dayjs","SEC_MS","now","setter","useGlobalState","Date","useEffect","timerId","update","old","neu","Math","abs","setTimeout","clearTimeout","useTimezoneOffset","cookieName","ssrContext","getSsrContext","offset","setOffset","value","req","cookies","parseInt","date","getTimezoneOffset","document","cookie","Cookie","serialize","path","assign","DAY_MS","HOUR_MS","MIN_MS","YEAR_MS","timer","_default","exports","default"],"sources":["../../../../src/shared/utils/time.js"],"sourcesContent":["/* global document */\n\nimport Cookie from 'cookie';\nimport dayjs from 'dayjs';\nimport { assign } from 'lodash';\nimport { useEffect } from 'react';\n\nimport {\n DAY_MS,\n HOUR_MS,\n MIN_MS,\n SEC_MS,\n YEAR_MS,\n timer,\n} from '@dr.pogodin/js-utils';\n\nimport { getSsrContext, useGlobalState } from '@dr.pogodin/react-global-state';\n\n/**\n * This react hook wraps Date.now() function in a SSR friendly way,\n * ensuring that all calls to useCurrent() within the same render return\n * exactly the same time (which is retrieved from Date.now() first, and\n * then stored in the global state to be reused in all other calls), which\n * is also passed and used in the first client side render, and then updated\n * with a finite precision to avoid infinite re-rendering loops.\n * @param {object} [options] Optional settings.\n * @param {string} [options.globalStatePath=\"currentTime\"] Global state path\n * to keep the current time value.\n * @param {number} [options.precision= 5 * time.SEC_MS] Current time precision.\n * The hook won't update the current time stored in the global state unless it\n * is different from Date.now() result by this number (in milliseconds).\n * Default to 5 seconds.\n * @param {boolean} [options.autorefresh=false] Set `true` to automatically\n * refresh time stored in the global state with the given `precision` (and\n * thus automatically re-rendering components dependent on this hook, or\n * the global state with the period equal to the `precision`.\n * @return {number} Unix timestamp in milliseconds.\n */\nexport function useCurrent({\n autorefresh = false,\n globalStatePath = 'currentTime',\n precision = 5 * dayjs.SEC_MS,\n} = {}) {\n const [now, setter] = useGlobalState(globalStatePath, Date.now);\n useEffect(() => {\n let timerId;\n const update = () => {\n setter((old) => {\n const neu = Date.now();\n return Math.abs(neu - old) > precision ? neu : old;\n });\n if (autorefresh) timerId = setTimeout(update, precision);\n };\n update();\n return () => {\n if (timerId) clearTimeout(timerId);\n };\n }, [autorefresh, precision, setter]);\n return now;\n}\n\n/**\n * Wraps the standard Date.getTimezoneOffset() method in a SSR-friendly way.\n * This hook retrieves the offset value at the client side and uses a cookie\n * to pass it to the server in subsequent requests from that user. At the server\n * side the value from cookie is used in renders and passed back to the client\n * via the global state. Prior to the value being known (in the very first\n * request from the user, when the cookie is still missing), zero value is used\n * as the default value.\n *\n * @param {object} [options] Optional settings.\n * @param {string} [options.cookieName=\"timezoneOffset\"] Optional. The name of\n * cookie to use to store the timezone offset. Defaults \"timezoneOffset\". Set\n * to a falsy value to forbid using cookies altogether (in that case the hook\n * will always return zero value at the server-side, and in the first render\n * at the client-side).\n * @param {string} [options.timezoneOffset=\"timezoneOffset\"] Optional.\n * The global state path to store the offset. Defaults \"timezoneOffset\".\n * @return {number} Timezone offset.\n */\nexport function useTimezoneOffset({\n cookieName = 'timezoneOffset',\n globalStatePath = 'timezoneOffset',\n} = {}) {\n const ssrContext = getSsrContext(false);\n const [offset, setOffset] = useGlobalState(globalStatePath, () => {\n const value = cookieName && ssrContext?.req?.cookies?.[cookieName];\n return value ? parseInt(value, 10) : 0;\n });\n useEffect(() => {\n const date = new Date();\n const value = date.getTimezoneOffset();\n setOffset(value);\n if (cookieName) {\n document.cookie = Cookie.serialize(cookieName, value, { path: '/' });\n }\n }, [cookieName, setOffset]);\n return offset;\n}\n\nassign(dayjs, {\n DAY_MS,\n HOUR_MS,\n MIN_MS,\n SEC_MS,\n YEAR_MS,\n now: Date.now,\n timer,\n useCurrent,\n useTimezoneOffset,\n});\n\nexport default dayjs;\n"],"mappings":"0PAEA,IAAAA,OAAA,CAAAC,sBAAA,CAAAC,OAAA,YACA,IAAAC,MAAA,CAAAF,sBAAA,CAAAC,OAAA,WACA,IAAAE,OAAA,CAAAF,OAAA,WACA,IAAAG,MAAA,CAAAH,OAAA,UAEA,IAAAI,QAAA,CAAAJ,OAAA,yBASA,IAAAK,iBAAA,CAAAL,OAAA,mCAhBA,sBAkBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACO,QAAS,CAAAM,UAAUA,CAAC,CACzBC,WAAW,CAAG,KAAK,CACnBC,eAAe,CAAG,aAAa,CAC/BC,SAAS,CAAG,CAAC,CAAGC,cAAK,CAACC,MACxB,CAAC,CAAG,CAAC,CAAC,CAAE,CACN,KAAM,CAACC,GAAG,CAAEC,MAAM,CAAC,CAAG,GAAAC,gCAAc,EAACN,eAAe,CAAEO,IAAI,CAACH,GAAG,CAAC,CAC/D,GAAAI,gBAAS,EAAC,IAAM,CACd,GAAI,CAAAC,OAAO,CACX,KAAM,CAAAC,MAAM,CAAGA,CAAA,GAAM,CACnBL,MAAM,CAAEM,GAAG,EAAK,CACd,KAAM,CAAAC,GAAG,CAAGL,IAAI,CAACH,GAAG,
|
|
1
|
+
{"version":3,"file":"time.js","names":["_cookie","_interopRequireDefault","require","_dayjs","_lodash","_react","_jsUtils","_reactGlobalState","useCurrent","autorefresh","globalStatePath","precision","dayjs","SEC_MS","now","setter","useGlobalState","Date","useEffect","timerId","update","old","neu","Math","abs","setTimeout","clearTimeout","useTimezoneOffset","cookieName","ssrContext","getSsrContext","offset","setOffset","value","req","cookies","parseInt","date","getTimezoneOffset","document","cookie","Cookie","serialize","path","assign","DAY_MS","HOUR_MS","MIN_MS","YEAR_MS","timer","_default","exports","default"],"sources":["../../../../src/shared/utils/time.js"],"sourcesContent":["/* global document */\n\nimport Cookie from 'cookie';\nimport dayjs from 'dayjs';\nimport { assign } from 'lodash';\nimport { useEffect } from 'react';\n\nimport {\n DAY_MS,\n HOUR_MS,\n MIN_MS,\n SEC_MS,\n YEAR_MS,\n timer,\n} from '@dr.pogodin/js-utils';\n\nimport { getSsrContext, useGlobalState } from '@dr.pogodin/react-global-state';\n\n/**\n * This react hook wraps Date.now() function in a SSR friendly way,\n * ensuring that all calls to useCurrent() within the same render return\n * exactly the same time (which is retrieved from Date.now() first, and\n * then stored in the global state to be reused in all other calls), which\n * is also passed and used in the first client side render, and then updated\n * with a finite precision to avoid infinite re-rendering loops.\n * @param {object} [options] Optional settings.\n * @param {string} [options.globalStatePath=\"currentTime\"] Global state path\n * to keep the current time value.\n * @param {number} [options.precision= 5 * time.SEC_MS] Current time precision.\n * The hook won't update the current time stored in the global state unless it\n * is different from Date.now() result by this number (in milliseconds).\n * Default to 5 seconds.\n * @param {boolean} [options.autorefresh=false] Set `true` to automatically\n * refresh time stored in the global state with the given `precision` (and\n * thus automatically re-rendering components dependent on this hook, or\n * the global state with the period equal to the `precision`.\n * @return {number} Unix timestamp in milliseconds.\n */\nexport function useCurrent({\n autorefresh = false,\n globalStatePath = 'currentTime',\n precision = 5 * dayjs.SEC_MS,\n} = {}) {\n const [now, setter] = useGlobalState(globalStatePath, Date.now);\n useEffect(() => {\n let timerId;\n const update = () => {\n setter((old) => {\n const neu = Date.now();\n return Math.abs(neu - old) > precision ? neu : old;\n });\n if (autorefresh) timerId = setTimeout(update, precision);\n };\n update();\n return () => {\n if (timerId) clearTimeout(timerId);\n };\n }, [autorefresh, precision, setter]);\n return now;\n}\n\n/**\n * Wraps the standard Date.getTimezoneOffset() method in a SSR-friendly way.\n * This hook retrieves the offset value at the client side and uses a cookie\n * to pass it to the server in subsequent requests from that user. At the server\n * side the value from cookie is used in renders and passed back to the client\n * via the global state. Prior to the value being known (in the very first\n * request from the user, when the cookie is still missing), zero value is used\n * as the default value.\n *\n * @param {object} [options] Optional settings.\n * @param {string} [options.cookieName=\"timezoneOffset\"] Optional. The name of\n * cookie to use to store the timezone offset. Defaults \"timezoneOffset\". Set\n * to a falsy value to forbid using cookies altogether (in that case the hook\n * will always return zero value at the server-side, and in the first render\n * at the client-side).\n * @param {string} [options.timezoneOffset=\"timezoneOffset\"] Optional.\n * The global state path to store the offset. Defaults \"timezoneOffset\".\n * @return {number} Timezone offset.\n */\nexport function useTimezoneOffset({\n cookieName = 'timezoneOffset',\n globalStatePath = 'timezoneOffset',\n} = {}) {\n const ssrContext = getSsrContext(false);\n const [offset, setOffset] = useGlobalState(globalStatePath, () => {\n const value = cookieName && ssrContext?.req?.cookies?.[cookieName];\n return value ? parseInt(value, 10) : 0;\n });\n useEffect(() => {\n const date = new Date();\n const value = date.getTimezoneOffset();\n setOffset(value);\n if (cookieName) {\n document.cookie = Cookie.serialize(cookieName, value, { path: '/' });\n }\n }, [cookieName, setOffset]);\n return offset;\n}\n\nassign(dayjs, {\n DAY_MS,\n HOUR_MS,\n MIN_MS,\n SEC_MS,\n YEAR_MS,\n now: Date.now,\n timer,\n useCurrent,\n useTimezoneOffset,\n});\n\nexport default dayjs;\n"],"mappings":"0PAEA,IAAAA,OAAA,CAAAC,sBAAA,CAAAC,OAAA,YACA,IAAAC,MAAA,CAAAF,sBAAA,CAAAC,OAAA,WACA,IAAAE,OAAA,CAAAF,OAAA,WACA,IAAAG,MAAA,CAAAH,OAAA,UAEA,IAAAI,QAAA,CAAAJ,OAAA,yBASA,IAAAK,iBAAA,CAAAL,OAAA,mCAhBA,sBAkBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACO,QAAS,CAAAM,UAAUA,CAAC,CACzBC,WAAW,CAAG,KAAK,CACnBC,eAAe,CAAG,aAAa,CAC/BC,SAAS,CAAG,CAAC,CAAGC,cAAK,CAACC,MACxB,CAAC,CAAG,CAAC,CAAC,CAAE,CACN,KAAM,CAACC,GAAG,CAAEC,MAAM,CAAC,CAAG,GAAAC,gCAAc,EAACN,eAAe,CAAEO,IAAI,CAACH,GAAG,CAAC,CAC/D,GAAAI,gBAAS,EAAC,IAAM,CACd,GAAI,CAAAC,OAAO,CACX,KAAM,CAAAC,MAAM,CAAGA,CAAA,GAAM,CACnBL,MAAM,CAAEM,GAAG,EAAK,CACd,KAAM,CAAAC,GAAG,CAAGL,IAAI,CAACH,GAAG,CAAC,CAAC,CACtB,MAAO,CAAAS,IAAI,CAACC,GAAG,CAACF,GAAG,CAAGD,GAAG,CAAC,CAAGV,SAAS,CAAGW,GAAG,CAAGD,GACjD,CAAC,CAAC,CACF,GAAIZ,WAAW,CAAEU,OAAO,CAAGM,UAAU,CAACL,MAAM,CAAET,SAAS,CACzD,CAAC,CACDS,MAAM,CAAC,CAAC,CACR,MAAO,IAAM,CACX,GAAID,OAAO,CAAEO,YAAY,CAACP,OAAO,CACnC,CACF,CAAC,CAAE,CAACV,WAAW,CAAEE,SAAS,CAAEI,MAAM,CAAC,CAAC,CACpC,MAAO,CAAAD,GACT,CAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACO,QAAS,CAAAa,iBAAiBA,CAAC,CAChCC,UAAU,CAAG,gBAAgB,CAC7BlB,eAAe,CAAG,gBACpB,CAAC,CAAG,CAAC,CAAC,CAAE,CACN,KAAM,CAAAmB,UAAU,CAAG,GAAAC,+BAAa,EAAC,KAAK,CAAC,CACvC,KAAM,CAACC,MAAM,CAAEC,SAAS,CAAC,CAAG,GAAAhB,gCAAc,EAACN,eAAe,CAAE,IAAM,CAChE,KAAM,CAAAuB,KAAK,CAAGL,UAAU,EAAIC,UAAU,EAAEK,GAAG,EAAEC,OAAO,GAAGP,UAAU,CAAC,CAClE,MAAO,CAAAK,KAAK,CAAGG,QAAQ,CAACH,KAAK,CAAE,EAAE,CAAC,CAAG,CACvC,CAAC,CAAC,CACF,GAAAf,gBAAS,EAAC,IAAM,CACd,KAAM,CAAAmB,IAAI,CAAG,GAAI,CAAApB,IAAM,CACvB,KAAM,CAAAgB,KAAK,CAAGI,IAAI,CAACC,iBAAiB,CAAC,CAAC,CACtCN,SAAS,CAACC,KAAK,CAAC,CAChB,GAAIL,UAAU,CAAE,CACdW,QAAQ,CAACC,MAAM,CAAGC,eAAM,CAACC,SAAS,CAACd,UAAU,CAAEK,KAAK,CAAE,CAAEU,IAAI,CAAE,GAAI,CAAC,CACrE,CACF,CAAC,CAAE,CAACf,UAAU,CAAEI,SAAS,CAAC,CAAC,CAC3B,MAAO,CAAAD,MACT,CAEA,GAAAa,cAAM,EAAChC,cAAK,CAAE,CACZiC,MAAM,CAANA,eAAM,CACNC,OAAO,CAAPA,gBAAO,CACPC,MAAM,CAANA,eAAM,CACNlC,MAAM,CAANA,eAAM,CACNmC,OAAO,CAAPA,gBAAO,CACPlC,GAAG,CAAEG,IAAI,CAACH,GAAG,CACbmC,KAAK,CAALA,cAAK,CACLzC,UAAU,CACVmB,iBACF,CAAC,CAAC,CAAC,IAAAuB,QAAA,CAEYtC,cAAK,CAAAuC,OAAA,CAAAC,OAAA,CAAAF,QAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see web.bundle.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@dr.pogodin/react-global-state"),require("@dr.pogodin/react-themes"),require("axios"),require("dayjs"),require("lodash"),require("prop-types"),require("qs"),require("react"),require("react-dom"),require("react-dom/client"),require("react-helmet"),require("react-router-dom")):"function"==typeof define&&define.amd?define(["@dr.pogodin/react-global-state","@dr.pogodin/react-themes","axios","dayjs","lodash","prop-types","qs","react","react-dom","react-dom/client","react-helmet","react-router-dom"],e):"object"==typeof exports?exports["@dr.pogodin/react-utils"]=e(require("@dr.pogodin/react-global-state"),require("@dr.pogodin/react-themes"),require("axios"),require("dayjs"),require("lodash"),require("prop-types"),require("qs"),require("react"),require("react-dom"),require("react-dom/client"),require("react-helmet"),require("react-router-dom")):t["@dr.pogodin/react-utils"]=e(t["@dr.pogodin/react-global-state"],t["@dr.pogodin/react-themes"],t.axios,t.dayjs,t.lodash,t["prop-types"],t.qs,t.react,t["react-dom"],t["react-dom/client"],t["react-helmet"],t["react-router-dom"])}("undefined"!=typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__899__,__WEBPACK_EXTERNAL_MODULE__198__,__WEBPACK_EXTERNAL_MODULE__300__,__WEBPACK_EXTERNAL_MODULE__760__,__WEBPACK_EXTERNAL_MODULE__467__,__WEBPACK_EXTERNAL_MODULE__99__,__WEBPACK_EXTERNAL_MODULE__656__,__WEBPACK_EXTERNAL_MODULE__156__,__WEBPACK_EXTERNAL_MODULE__111__,__WEBPACK_EXTERNAL_MODULE__715__,__WEBPACK_EXTERNAL_MODULE__383__,__WEBPACK_EXTERNAL_MODULE__128__){return function(){var __webpack_modules__={963:function(t,e){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.PENDING="PENDING",t.REJECTED="REJECTED",t.RESOLVED="RESOLVED"}(r||(r={})),e.default=class extends Promise{constructor(t){let e,i;super(((n,o)=>{e=t=>{n(t),this.p_state=r.RESOLVED},i=t=>{o(t),this.p_state=r.REJECTED},t&&t(e,i)})),this.p_state=r.PENDING,this.p_resolve=e,this.p_reject=i}get resolve(){return this.p_resolve}get reject(){return this.p_reject}get resolved(){return this.p_state===r.RESOLVED}get rejected(){return this.p_state===r.REJECTED}get settled(){return this.p_state!==r.PENDING}catch(t){return super.catch(t)}finally(t){return super.finally(t)}then(t,e){const r=super.then(t,e);return r.p_resolve=this.resolve,r.p_reject=this.reject,r}}},378:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=class{constructor(){this.p_listeners=[]}get hasListeners(){return!!this.p_listeners.length}get listeners(){return this.p_listeners}addListener(t){return this.p_listeners.includes(t)||this.p_listeners.push(t),()=>this.removeListener(t)}emit(...t){const{p_listeners:e}=this;for(let r=0;r<e.length;++r)e[r](...t)}removeListener(t){const e=this.p_listeners.indexOf(t);e>=0&&this.p_listeners.splice(e,1)}}},475:function(t,e,r){"use strict";var i=this&&this.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(n,o){function a(t){try{c(i.next(t))}catch(t){o(t)}}function s(t){try{c(i.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((i=i.apply(t,e||[])).next())}))},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(r(963));e.default=class{constructor(t=!1){this.p_draining=!1,this.p_drainLock=null,this.p_queue=[],this.p_ready=!!t}get ready(){return this.p_ready}setReady(t){const e=!!t;this.p_ready!==e&&(this.p_ready=e,e&&!this.p_draining&&this.p_queue.length&&this.p_drainQueue())}seize(){return i(this,void 0,void 0,(function*(){return this.waitReady(!0)}))}waitReady(t=!1){return i(this,void 0,void 0,(function*(){if(!this.p_ready||this.p_queue.length){const e=new o.default;this.p_queue.push(e),yield e,t&&(this.p_ready=!1),this.p_drainLock.resolve()}else t&&(this.p_ready=!1)}))}p_drainQueue(){return i(this,void 0,void 0,(function*(){for(this.p_draining=!0;this.p_ready&&this.p_queue.length;)this.p_drainLock=new o.default,this.p_queue[0].resolve(),yield this.p_drainLock,this.p_queue.shift();this.p_draining=!1,this.p_drainLock=null}))}}},874:function(t,e,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(e,r);n&&!("get"in n?!e.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,n)}:function(t,e,r,i){void 0===i&&(i=r),t[i]=e[r]}),n=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||i(e,t,r)},o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=e.Emitter=e.Barrier=void 0;var a=r(963);Object.defineProperty(e,"Barrier",{enumerable:!0,get:function(){return o(a).default}});var s=r(378);Object.defineProperty(e,"Emitter",{enumerable:!0,get:function(){return o(s).default}});var c=r(475);Object.defineProperty(e,"Semaphore",{enumerable:!0,get:function(){return o(c).default}}),n(r(118),e)},118:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.timer=e.Timer=e.YEAR_MS=e.DAY_MS=e.HOUR_MS=e.MIN_MS=e.SEC_MS=void 0;const n=i(r(963));e.SEC_MS=1e3,e.MIN_MS=60*e.SEC_MS,e.HOUR_MS=60*e.MIN_MS,e.DAY_MS=24*e.HOUR_MS,e.YEAR_MS=365*e.DAY_MS;class o extends n.default{get abort(){return this.p_abort}get timeout(){return this.p_timeout}constructor(t){super(t),this.p_abort=()=>{}}init(t){if(void 0!==this.p_timeout)throw Error("This Timer is initialized already");if(this.p_timeout=t,t>0){const e=setTimeout(super.resolve.bind(this),t);this.p_abort=()=>clearTimeout(e)}else super.resolve();return this}then(t,e){const r=super.then(t,e);return void 0!==this.timeout&&r.init(this.timeout),r}}e.Timer=o,e.timer=function(t){return(new o).init(t)}},144:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return getInj}});var node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(832),node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0__),node_forge_lib_aes__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(925),node_forge_lib_aes__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(node_forge_lib_aes__WEBPACK_IMPORTED_MODULE_1__),_shared_utils_isomorphy_buildInfo__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(971);let inj="undefined"!=typeof document&&document.querySelector('meta[itemprop="drpruinj"]');if(inj){inj.remove();const{key:key}=(0,_shared_utils_isomorphy_buildInfo__WEBPACK_IMPORTED_MODULE_2__.J)();inj=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.decode64(inj.content);const d=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().cipher.createDecipher("AES-CBC",key);d.start({iv:inj.slice(0,key.length)}),d.update(node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.createBuffer(inj.slice(key.length))),d.finish(),inj=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.decodeUtf8(d.output.data),inj=eval(`(${inj})`)}else inj={};function getInj(){return inj}},190:function(t,e,r){"use strict";r.d(e,{Z:function(){return c}});var i=r(899),n=r(715),o=r(128),a=r(144),s=r(893);function c(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=document.getElementById("react-view"),c=(0,s.jsx)(i.GlobalStateProvider,{initialState:(0,a.Z)().ISTATE,children:(0,s.jsx)(o.BrowserRouter,{children:(0,s.jsx)(t,{})})});e.dontHydrate?(0,n.createRoot)(r).render(c):(0,n.hydrateRoot)(r,c)}},971:function(t,e,r){"use strict";let i;function n(){if(void 0===i)throw Error('"Build Info" has not been initialized yet');return i}r.d(e,{J:function(){return n}}),"undefined"!=typeof BUILD_INFO&&(i=BUILD_INFO)},794:function(t,e,r){"use strict";r.d(e,{b:function(){return i},x:function(){return n}});const i="object"!=typeof process||!process.versions||!process.versions.node||!!r.g.REACT_UTILS_FORCE_CLIENT_SIDE,n=!i},145:function(t,e,r){"use strict";r.r(e),r.d(e,{IS_CLIENT_SIDE:function(){return n.b},IS_SERVER_SIDE:function(){return n.x},buildTimestamp:function(){return s},getBuildInfo:function(){return i.J},isDevBuild:function(){return o},isProdBuild:function(){return a}});var i=r(971),n=r(794);function o(){return!1}function a(){return!0}function s(){return(0,i.J)().timestamp}},869:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{requireWeak:function(){return requireWeak},resolveWeak:function(){return resolveWeak}});var _isomorphy__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(145);function requireWeak(modulePath,basePath){if(_isomorphy__WEBPACK_IMPORTED_MODULE_0__.IS_CLIENT_SIDE)return null;try{const{resolve:resolve}=eval("require")("path"),path=basePath?resolve(basePath,modulePath):modulePath,{default:def,...named}=eval("require")(path);return def?(Object.entries(named).forEach((t=>{let[e,r]=t;if(def[e])throw Error("Conflict between default and named exports");def[e]=r})),def):named}catch{return null}}function resolveWeak(t){return t}},489:function(t,e){"use strict";e.parse=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var r={},i=(e||{}).decode||n,o=0;o<t.length;){var s=t.indexOf("=",o);if(-1===s)break;var c=t.indexOf(";",o);if(-1===c)c=t.length;else if(c<s){o=t.lastIndexOf(";",s-1)+1;continue}var u=t.slice(o,s).trim();if(void 0===r[u]){var h=t.slice(s+1,c).trim();34===h.charCodeAt(0)&&(h=h.slice(1,-1)),r[u]=a(h,i)}o=c+1}return r},e.serialize=function(t,e,n){var a=n||{},s=a.encode||o;if("function"!=typeof s)throw new TypeError("option encode is invalid");if(!i.test(t))throw new TypeError("argument name is invalid");var c=s(e);if(c&&!i.test(c))throw new TypeError("argument val is invalid");var u=t+"="+c;if(null!=a.maxAge){var h=a.maxAge-0;if(isNaN(h)||!isFinite(h))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(h)}if(a.domain){if(!i.test(a.domain))throw new TypeError("option domain is invalid");u+="; Domain="+a.domain}if(a.path){if(!i.test(a.path))throw new TypeError("option path is invalid");u+="; Path="+a.path}if(a.expires){var l=a.expires;if(!function(t){return"[object Date]"===r.call(t)||t instanceof Date}(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");u+="; Expires="+l.toUTCString()}if(a.httpOnly&&(u+="; HttpOnly"),a.secure&&(u+="; Secure"),a.priority)switch("string"==typeof a.priority?a.priority.toLowerCase():a.priority){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return u};var r=Object.prototype.toString,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function n(t){return-1!==t.indexOf("%")?decodeURIComponent(t):t}function o(t){return encodeURIComponent(t)}function a(t,e){try{return e(t)}catch(e){return t}}},925:function(t,e,r){var i=r(832);function n(t,e){i.cipher.registerAlgorithm(t,(function(){return new i.aes.Algorithm(t,e)}))}r(649),r(967),r(116),t.exports=i.aes=i.aes||{},i.aes.startEncrypting=function(t,e,r,i){var n=_({key:t,output:r,decrypt:!1,mode:i});return n.start(e),n},i.aes.createEncryptionCipher=function(t,e){return _({key:t,output:null,decrypt:!1,mode:e})},i.aes.startDecrypting=function(t,e,r,i){var n=_({key:t,output:r,decrypt:!0,mode:i});return n.start(e),n},i.aes.createDecryptionCipher=function(t,e){return _({key:t,output:null,decrypt:!0,mode:e})},i.aes.Algorithm=function(t,e){h||f();var r=this;r.name=t,r.mode=new e({blockSize:16,cipher:{encrypt:function(t,e){return d(r._w,t,e,!1)},decrypt:function(t,e){return d(r._w,t,e,!0)}}}),r._init=!1},i.aes.Algorithm.prototype.initialize=function(t){if(!this._init){var e,r=t.key;if("string"!=typeof r||16!==r.length&&24!==r.length&&32!==r.length){if(i.util.isArray(r)&&(16===r.length||24===r.length||32===r.length)){e=r,r=i.util.createBuffer();for(var n=0;n<e.length;++n)r.putByte(e[n])}}else r=i.util.createBuffer(r);if(!i.util.isArray(r)){e=r,r=[];var o=e.length();if(16===o||24===o||32===o)for(o>>>=2,n=0;n<o;++n)r.push(e.getInt32())}if(!i.util.isArray(r)||4!==r.length&&6!==r.length&&8!==r.length)throw new Error("Invalid key parameter.");var a=this.mode.name,s=-1!==["CFB","OFB","CTR","GCM"].indexOf(a);this._w=p(r,t.decrypt&&!s),this._init=!0}},i.aes._expandKey=function(t,e){return h||f(),p(t,e)},i.aes._updateBlock=d,n("AES-ECB",i.cipher.modes.ecb),n("AES-CBC",i.cipher.modes.cbc),n("AES-CFB",i.cipher.modes.cfb),n("AES-OFB",i.cipher.modes.ofb),n("AES-CTR",i.cipher.modes.ctr),n("AES-GCM",i.cipher.modes.gcm);var o,a,s,c,u,h=!1,l=4;function f(){h=!0,s=[0,1,2,4,8,16,32,64,128,27,54];for(var t=new Array(256),e=0;e<128;++e)t[e]=e<<1,t[e+128]=e+128<<1^283;for(o=new Array(256),a=new Array(256),c=new Array(4),u=new Array(4),e=0;e<4;++e)c[e]=new Array(256),u[e]=new Array(256);var r,i,n,l,f,p,d,_=0,y=0;for(e=0;e<256;++e){l=(l=y^y<<1^y<<2^y<<3^y<<4)>>8^255&l^99,o[_]=l,a[l]=_,p=(f=t[l])<<24^l<<16^l<<8^l^f,d=((r=t[_])^(i=t[r])^(n=t[i]))<<24^(_^n)<<16^(_^i^n)<<8^_^r^n;for(var g=0;g<4;++g)c[g][_]=p,u[g][l]=d,p=p<<24|p>>>8,d=d<<24|d>>>8;0===_?_=y=1:(_=r^t[t[t[r^n]]],y^=t[t[y]])}}function p(t,e){for(var r,i=t.slice(0),n=1,a=i.length,c=l*(a+6+1),h=a;h<c;++h)r=i[h-1],h%a==0?(r=o[r>>>16&255]<<24^o[r>>>8&255]<<16^o[255&r]<<8^o[r>>>24]^s[n]<<24,n++):a>6&&h%a==4&&(r=o[r>>>24]<<24^o[r>>>16&255]<<16^o[r>>>8&255]<<8^o[255&r]),i[h]=i[h-a]^r;if(e){for(var f,p=u[0],d=u[1],_=u[2],y=u[3],g=i.slice(0),m=(h=0,(c=i.length)-l);h<c;h+=l,m-=l)if(0===h||h===c-l)g[h]=i[m],g[h+1]=i[m+3],g[h+2]=i[m+2],g[h+3]=i[m+1];else for(var b=0;b<l;++b)f=i[m+b],g[h+(3&-b)]=p[o[f>>>24]]^d[o[f>>>16&255]]^_[o[f>>>8&255]]^y[o[255&f]];i=g}return i}function d(t,e,r,i){var n,s,h,l,f,p,d,_,y,g,m,b,v=t.length/4-1;i?(n=u[0],s=u[1],h=u[2],l=u[3],f=a):(n=c[0],s=c[1],h=c[2],l=c[3],f=o),p=e[0]^t[0],d=e[i?3:1]^t[1],_=e[2]^t[2],y=e[i?1:3]^t[3];for(var B=3,w=1;w<v;++w)g=n[p>>>24]^s[d>>>16&255]^h[_>>>8&255]^l[255&y]^t[++B],m=n[d>>>24]^s[_>>>16&255]^h[y>>>8&255]^l[255&p]^t[++B],b=n[_>>>24]^s[y>>>16&255]^h[p>>>8&255]^l[255&d]^t[++B],y=n[y>>>24]^s[p>>>16&255]^h[d>>>8&255]^l[255&_]^t[++B],p=g,d=m,_=b;r[0]=f[p>>>24]<<24^f[d>>>16&255]<<16^f[_>>>8&255]<<8^f[255&y]^t[++B],r[i?3:1]=f[d>>>24]<<24^f[_>>>16&255]<<16^f[y>>>8&255]<<8^f[255&p]^t[++B],r[2]=f[_>>>24]<<24^f[y>>>16&255]<<16^f[p>>>8&255]<<8^f[255&d]^t[++B],r[i?1:3]=f[y>>>24]<<24^f[p>>>16&255]<<16^f[d>>>8&255]<<8^f[255&_]^t[++B]}function _(t){var e,r="AES-"+((t=t||{}).mode||"CBC").toUpperCase(),n=(e=t.decrypt?i.cipher.createDecipher(r,t.key):i.cipher.createCipher(r,t.key)).start;return e.start=function(t,r){var o=null;r instanceof i.util.ByteBuffer&&(o=r,r={}),(r=r||{}).output=o,r.iv=t,n.call(e,r)},e}},807:function(t){var e={};t.exports=e;var r={};e.encode=function(t,e,r){if("string"!=typeof e)throw new TypeError('"alphabet" must be a string.');if(void 0!==r&&"number"!=typeof r)throw new TypeError('"maxline" must be a number.');var i="";if(t instanceof Uint8Array){var n=0,o=e.length,a=e.charAt(0),s=[0];for(n=0;n<t.length;++n){for(var c=0,u=t[n];c<s.length;++c)u+=s[c]<<8,s[c]=u%o,u=u/o|0;for(;u>0;)s.push(u%o),u=u/o|0}for(n=0;0===t[n]&&n<t.length-1;++n)i+=a;for(n=s.length-1;n>=0;--n)i+=e[s[n]]}else i=function(t,e){var r=0,i=e.length,n=e.charAt(0),o=[0];for(r=0;r<t.length();++r){for(var a=0,s=t.at(r);a<o.length;++a)s+=o[a]<<8,o[a]=s%i,s=s/i|0;for(;s>0;)o.push(s%i),s=s/i|0}var c="";for(r=0;0===t.at(r)&&r<t.length()-1;++r)c+=n;for(r=o.length-1;r>=0;--r)c+=e[o[r]];return c}(t,e);if(r){var h=new RegExp(".{1,"+r+"}","g");i=i.match(h).join("\r\n")}return i},e.decode=function(t,e){if("string"!=typeof t)throw new TypeError('"input" must be a string.');if("string"!=typeof e)throw new TypeError('"alphabet" must be a string.');var i=r[e];if(!i){i=r[e]=[];for(var n=0;n<e.length;++n)i[e.charCodeAt(n)]=n}t=t.replace(/\s/g,"");var o=e.length,a=e.charAt(0),s=[0];for(n=0;n<t.length;n++){var c=i[t.charCodeAt(n)];if(void 0===c)return;for(var u=0,h=c;u<s.length;++u)h+=s[u]*o,s[u]=255&h,h>>=8;for(;h>0;)s.push(255&h),h>>=8}for(var l=0;t[l]===a&&l<t.length-1;++l)s.push(0);return"undefined"!=typeof Buffer?Buffer.from(s.reverse()):new Uint8Array(s.reverse())}},649:function(t,e,r){var i=r(832);r(116),t.exports=i.cipher=i.cipher||{},i.cipher.algorithms=i.cipher.algorithms||{},i.cipher.createCipher=function(t,e){var r=t;if("string"==typeof r&&(r=i.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+t);return new i.cipher.BlockCipher({algorithm:r,key:e,decrypt:!1})},i.cipher.createDecipher=function(t,e){var r=t;if("string"==typeof r&&(r=i.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+t);return new i.cipher.BlockCipher({algorithm:r,key:e,decrypt:!0})},i.cipher.registerAlgorithm=function(t,e){t=t.toUpperCase(),i.cipher.algorithms[t]=e},i.cipher.getAlgorithm=function(t){return(t=t.toUpperCase())in i.cipher.algorithms?i.cipher.algorithms[t]:null};var n=i.cipher.BlockCipher=function(t){this.algorithm=t.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=t.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=t.decrypt,this.algorithm.initialize(t)};n.prototype.start=function(t){t=t||{};var e={};for(var r in t)e[r]=t[r];e.decrypt=this._decrypt,this._finish=!1,this._input=i.util.createBuffer(),this.output=t.output||i.util.createBuffer(),this.mode.start(e)},n.prototype.update=function(t){for(t&&this._input.putBuffer(t);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},n.prototype.finish=function(t){!t||"ECB"!==this.mode.name&&"CBC"!==this.mode.name||(this.mode.pad=function(e){return t(this.blockSize,e,!1)},this.mode.unpad=function(e){return t(this.blockSize,e,!0)});var e={};return e.decrypt=this._decrypt,e.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,e)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,e)||this.mode.afterFinish&&!this.mode.afterFinish(this.output,e)))}},967:function(t,e,r){var i=r(832);r(116),i.cipher=i.cipher||{};var n=t.exports=i.cipher.modes=i.cipher.modes||{};function o(t,e){if("string"==typeof t&&(t=i.util.createBuffer(t)),i.util.isArray(t)&&t.length>4){var r=t;t=i.util.createBuffer();for(var n=0;n<r.length;++n)t.putByte(r[n])}if(t.length()<e)throw new Error("Invalid IV length; got "+t.length()+" bytes and expected "+e+" bytes.");if(!i.util.isArray(t)){var o=[],a=e/4;for(n=0;n<a;++n)o.push(t.getInt32());t=o}return t}function a(t){t[t.length-1]=t[t.length-1]+1&4294967295}function s(t){return[t/4294967296|0,4294967295&t]}n.ecb=function(t){t=t||{},this.name="ECB",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},n.ecb.prototype.start=function(t){},n.ecb.prototype.encrypt=function(t,e,r){if(t.length()<this.blockSize&&!(r&&t.length()>0))return!0;for(var i=0;i<this._ints;++i)this._inBlock[i]=t.getInt32();for(this.cipher.encrypt(this._inBlock,this._outBlock),i=0;i<this._ints;++i)e.putInt32(this._outBlock[i])},n.ecb.prototype.decrypt=function(t,e,r){if(t.length()<this.blockSize&&!(r&&t.length()>0))return!0;for(var i=0;i<this._ints;++i)this._inBlock[i]=t.getInt32();for(this.cipher.decrypt(this._inBlock,this._outBlock),i=0;i<this._ints;++i)e.putInt32(this._outBlock[i])},n.ecb.prototype.pad=function(t,e){var r=t.length()===this.blockSize?this.blockSize:this.blockSize-t.length();return t.fillWithByte(r,r),!0},n.ecb.prototype.unpad=function(t,e){if(e.overflow>0)return!1;var r=t.length(),i=t.at(r-1);return!(i>this.blockSize<<2||(t.truncate(i),0))},n.cbc=function(t){t=t||{},this.name="CBC",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},n.cbc.prototype.start=function(t){if(null===t.iv){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else{if(!("iv"in t))throw new Error("Invalid IV parameter.");this._iv=o(t.iv,this.blockSize),this._prev=this._iv.slice(0)}},n.cbc.prototype.encrypt=function(t,e,r){if(t.length()<this.blockSize&&!(r&&t.length()>0))return!0;for(var i=0;i<this._ints;++i)this._inBlock[i]=this._prev[i]^t.getInt32();for(this.cipher.encrypt(this._inBlock,this._outBlock),i=0;i<this._ints;++i)e.putInt32(this._outBlock[i]);this._prev=this._outBlock},n.cbc.prototype.decrypt=function(t,e,r){if(t.length()<this.blockSize&&!(r&&t.length()>0))return!0;for(var i=0;i<this._ints;++i)this._inBlock[i]=t.getInt32();for(this.cipher.decrypt(this._inBlock,this._outBlock),i=0;i<this._ints;++i)e.putInt32(this._prev[i]^this._outBlock[i]);this._prev=this._inBlock.slice(0)},n.cbc.prototype.pad=function(t,e){var r=t.length()===this.blockSize?this.blockSize:this.blockSize-t.length();return t.fillWithByte(r,r),!0},n.cbc.prototype.unpad=function(t,e){if(e.overflow>0)return!1;var r=t.length(),i=t.at(r-1);return!(i>this.blockSize<<2||(t.truncate(i),0))},n.cfb=function(t){t=t||{},this.name="CFB",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=i.util.createBuffer(),this._partialBytes=0},n.cfb.prototype.start=function(t){if(!("iv"in t))throw new Error("Invalid IV parameter.");this._iv=o(t.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},n.cfb.prototype.encrypt=function(t,e,r){var i=t.length();if(0===i)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&i>=this.blockSize)for(var n=0;n<this._ints;++n)this._inBlock[n]=t.getInt32()^this._outBlock[n],e.putInt32(this._inBlock[n]);else{var o=(this.blockSize-i)%this.blockSize;for(o>0&&(o=this.blockSize-o),this._partialOutput.clear(),n=0;n<this._ints;++n)this._partialBlock[n]=t.getInt32()^this._outBlock[n],this._partialOutput.putInt32(this._partialBlock[n]);if(o>0)t.read-=this.blockSize;else for(n=0;n<this._ints;++n)this._inBlock[n]=this._partialBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return e.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0}},n.cfb.prototype.decrypt=function(t,e,r){var i=t.length();if(0===i)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&i>=this.blockSize)for(var n=0;n<this._ints;++n)this._inBlock[n]=t.getInt32(),e.putInt32(this._inBlock[n]^this._outBlock[n]);else{var o=(this.blockSize-i)%this.blockSize;for(o>0&&(o=this.blockSize-o),this._partialOutput.clear(),n=0;n<this._ints;++n)this._partialBlock[n]=t.getInt32(),this._partialOutput.putInt32(this._partialBlock[n]^this._outBlock[n]);if(o>0)t.read-=this.blockSize;else for(n=0;n<this._ints;++n)this._inBlock[n]=this._partialBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return e.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0}},n.ofb=function(t){t=t||{},this.name="OFB",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=i.util.createBuffer(),this._partialBytes=0},n.ofb.prototype.start=function(t){if(!("iv"in t))throw new Error("Invalid IV parameter.");this._iv=o(t.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},n.ofb.prototype.encrypt=function(t,e,r){var i=t.length();if(0===t.length())return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&i>=this.blockSize)for(var n=0;n<this._ints;++n)e.putInt32(t.getInt32()^this._outBlock[n]),this._inBlock[n]=this._outBlock[n];else{var o=(this.blockSize-i)%this.blockSize;for(o>0&&(o=this.blockSize-o),this._partialOutput.clear(),n=0;n<this._ints;++n)this._partialOutput.putInt32(t.getInt32()^this._outBlock[n]);if(o>0)t.read-=this.blockSize;else for(n=0;n<this._ints;++n)this._inBlock[n]=this._outBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return e.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0}},n.ofb.prototype.decrypt=n.ofb.prototype.encrypt,n.ctr=function(t){t=t||{},this.name="CTR",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=i.util.createBuffer(),this._partialBytes=0},n.ctr.prototype.start=function(t){if(!("iv"in t))throw new Error("Invalid IV parameter.");this._iv=o(t.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},n.ctr.prototype.encrypt=function(t,e,r){var i=t.length();if(0===i)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&i>=this.blockSize)for(var n=0;n<this._ints;++n)e.putInt32(t.getInt32()^this._outBlock[n]);else{var o=(this.blockSize-i)%this.blockSize;for(o>0&&(o=this.blockSize-o),this._partialOutput.clear(),n=0;n<this._ints;++n)this._partialOutput.putInt32(t.getInt32()^this._outBlock[n]);if(o>0&&(t.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return e.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0}a(this._inBlock)},n.ctr.prototype.decrypt=n.ctr.prototype.encrypt,n.gcm=function(t){t=t||{},this.name="GCM",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=i.util.createBuffer(),this._partialBytes=0,this._R=3774873600},n.gcm.prototype.start=function(t){if(!("iv"in t))throw new Error("Invalid IV parameter.");var e,r=i.util.createBuffer(t.iv);if(this._cipherLength=0,e="additionalData"in t?i.util.createBuffer(t.additionalData):i.util.createBuffer(),this._tagLength="tagLength"in t?t.tagLength:128,this._tag=null,t.decrypt&&(this._tag=i.util.createBuffer(t.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var n=r.length();if(12===n)this._j0=[r.getInt32(),r.getInt32(),r.getInt32(),1];else{for(this._j0=[0,0,0,0];r.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[r.getInt32(),r.getInt32(),r.getInt32(),r.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(s(8*n)))}this._inBlock=this._j0.slice(0),a(this._inBlock),this._partialBytes=0,e=i.util.createBuffer(e),this._aDataLength=s(8*e.length());var o=e.length()%this.blockSize;for(o&&e.fillWithByte(0,this.blockSize-o),this._s=[0,0,0,0];e.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[e.getInt32(),e.getInt32(),e.getInt32(),e.getInt32()])},n.gcm.prototype.encrypt=function(t,e,r){var i=t.length();if(0===i)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&i>=this.blockSize){for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n]^=t.getInt32());this._cipherLength+=this.blockSize}else{var o=(this.blockSize-i)%this.blockSize;for(o>0&&(o=this.blockSize-o),this._partialOutput.clear(),n=0;n<this._ints;++n)this._partialOutput.putInt32(t.getInt32()^this._outBlock[n]);if(o<=0||r){if(r){var s=i%this.blockSize;this._cipherLength+=s,this._partialOutput.truncate(this.blockSize-s)}else this._cipherLength+=this.blockSize;for(n=0;n<this._ints;++n)this._outBlock[n]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.read-=this.blockSize,e.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),a(this._inBlock)},n.gcm.prototype.decrypt=function(t,e,r){var i=t.length();if(i<this.blockSize&&!(r&&i>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),a(this._inBlock),this._hashBlock[0]=t.getInt32(),this._hashBlock[1]=t.getInt32(),this._hashBlock[2]=t.getInt32(),this._hashBlock[3]=t.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n]^this._hashBlock[n]);i<this.blockSize?this._cipherLength+=i%this.blockSize:this._cipherLength+=this.blockSize},n.gcm.prototype.afterFinish=function(t,e){var r=!0;e.decrypt&&e.overflow&&t.truncate(this.blockSize-e.overflow),this.tag=i.util.createBuffer();var n=this._aDataLength.concat(s(8*this._cipherLength));this._s=this.ghash(this._hashSubkey,this._s,n);var o=[];this.cipher.encrypt(this._j0,o);for(var a=0;a<this._ints;++a)this.tag.putInt32(this._s[a]^o[a]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),e.decrypt&&this.tag.bytes()!==this._tag&&(r=!1),r},n.gcm.prototype.multiply=function(t,e){for(var r=[0,0,0,0],i=e.slice(0),n=0;n<128;++n)t[n/32|0]&1<<31-n%32&&(r[0]^=i[0],r[1]^=i[1],r[2]^=i[2],r[3]^=i[3]),this.pow(i,i);return r},n.gcm.prototype.pow=function(t,e){for(var r=1&t[3],i=3;i>0;--i)e[i]=t[i]>>>1|(1&t[i-1])<<31;e[0]=t[0]>>>1,r&&(e[0]^=this._R)},n.gcm.prototype.tableMultiply=function(t){for(var e=[0,0,0,0],r=0;r<32;++r){var i=t[r/8|0]>>>4*(7-r%8)&15,n=this._m[r][i];e[0]^=n[0],e[1]^=n[1],e[2]^=n[2],e[3]^=n[3]}return e},n.gcm.prototype.ghash=function(t,e,r){return e[0]^=r[0],e[1]^=r[1],e[2]^=r[2],e[3]^=r[3],this.tableMultiply(e)},n.gcm.prototype.generateHashTable=function(t,e){for(var r=8/e,i=4*r,n=16*r,o=new Array(n),a=0;a<n;++a){var s=[0,0,0,0],c=(i-1-a%i)*e;s[a/i|0]=1<<e-1<<c,o[a]=this.generateSubHashTable(this.multiply(s,t),e)}return o},n.gcm.prototype.generateSubHashTable=function(t,e){var r=1<<e,i=r>>>1,n=new Array(r);n[i]=t.slice(0);for(var o=i>>>1;o>0;)this.pow(n[2*o],n[o]=[]),o>>=1;for(o=2;o<i;){for(var a=1;a<o;++a){var s=n[o],c=n[a];n[o+a]=[s[0]^c[0],s[1]^c[1],s[2]^c[2],s[3]^c[3]]}o*=2}for(n[0]=[0,0,0,0],o=i+1;o<r;++o){var u=n[o^i];n[o]=[t[0]^u[0],t[1]^u[1],t[2]^u[2],t[3]^u[3]]}return n}},832:function(t){t.exports={options:{usePureJavaScript:!1}}},116:function(t,e,r){var i=r(832),n=r(807),o=t.exports=i.util=i.util||{};function a(t){if(8!==t&&16!==t&&24!==t&&32!==t)throw new Error("Only 8, 16, 24, or 32 bits supported: "+t)}function s(t){if(this.data="",this.read=0,"string"==typeof t)this.data=t;else if(o.isArrayBuffer(t)||o.isArrayBufferView(t))if("undefined"!=typeof Buffer&&t instanceof Buffer)this.data=t.toString("binary");else{var e=new Uint8Array(t);try{this.data=String.fromCharCode.apply(null,e)}catch(t){for(var r=0;r<e.length;++r)this.putByte(e[r])}}else(t instanceof s||"object"==typeof t&&"string"==typeof t.data&&"number"==typeof t.read)&&(this.data=t.data,this.read=t.read);this._constructedStringLength=0}!function(){if("undefined"!=typeof process&&process.nextTick&&!process.browser)return o.nextTick=process.nextTick,void("function"==typeof setImmediate?o.setImmediate=setImmediate:o.setImmediate=o.nextTick);if("function"==typeof setImmediate)return o.setImmediate=function(){return setImmediate.apply(void 0,arguments)},void(o.nextTick=function(t){return setImmediate(t)});if(o.setImmediate=function(t){setTimeout(t,0)},"undefined"!=typeof window&&"function"==typeof window.postMessage){var t="forge.setImmediate",e=[];o.setImmediate=function(r){e.push(r),1===e.length&&window.postMessage(t,"*")},window.addEventListener("message",(function(r){if(r.source===window&&r.data===t){r.stopPropagation();var i=e.slice();e.length=0,i.forEach((function(t){t()}))}}),!0)}if("undefined"!=typeof MutationObserver){var r=Date.now(),i=!0,n=document.createElement("div");e=[],new MutationObserver((function(){var t=e.slice();e.length=0,t.forEach((function(t){t()}))})).observe(n,{attributes:!0});var a=o.setImmediate;o.setImmediate=function(t){Date.now()-r>15?(r=Date.now(),a(t)):(e.push(t),1===e.length&&n.setAttribute("a",i=!i))}}o.nextTick=o.setImmediate}(),o.isNodejs="undefined"!=typeof process&&process.versions&&process.versions.node,o.globalScope=o.isNodejs?r.g:"undefined"==typeof self?window:self,o.isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},o.isArrayBuffer=function(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer},o.isArrayBufferView=function(t){return t&&o.isArrayBuffer(t.buffer)&&void 0!==t.byteLength},o.ByteBuffer=s,o.ByteStringBuffer=s,o.ByteStringBuffer.prototype._optimizeConstructedString=function(t){this._constructedStringLength+=t,this._constructedStringLength>4096&&(this.data.substr(0,1),this._constructedStringLength=0)},o.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},o.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},o.ByteStringBuffer.prototype.putByte=function(t){return this.putBytes(String.fromCharCode(t))},o.ByteStringBuffer.prototype.fillWithByte=function(t,e){t=String.fromCharCode(t);for(var r=this.data;e>0;)1&e&&(r+=t),(e>>>=1)>0&&(t+=t);return this.data=r,this._optimizeConstructedString(e),this},o.ByteStringBuffer.prototype.putBytes=function(t){return this.data+=t,this._optimizeConstructedString(t.length),this},o.ByteStringBuffer.prototype.putString=function(t){return this.putBytes(o.encodeUtf8(t))},o.ByteStringBuffer.prototype.putInt16=function(t){return this.putBytes(String.fromCharCode(t>>8&255)+String.fromCharCode(255&t))},o.ByteStringBuffer.prototype.putInt24=function(t){return this.putBytes(String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t))},o.ByteStringBuffer.prototype.putInt32=function(t){return this.putBytes(String.fromCharCode(t>>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t))},o.ByteStringBuffer.prototype.putInt16Le=function(t){return this.putBytes(String.fromCharCode(255&t)+String.fromCharCode(t>>8&255))},o.ByteStringBuffer.prototype.putInt24Le=function(t){return this.putBytes(String.fromCharCode(255&t)+String.fromCharCode(t>>8&255)+String.fromCharCode(t>>16&255))},o.ByteStringBuffer.prototype.putInt32Le=function(t){return this.putBytes(String.fromCharCode(255&t)+String.fromCharCode(t>>8&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>24&255))},o.ByteStringBuffer.prototype.putInt=function(t,e){a(e);var r="";do{e-=8,r+=String.fromCharCode(t>>e&255)}while(e>0);return this.putBytes(r)},o.ByteStringBuffer.prototype.putSignedInt=function(t,e){return t<0&&(t+=2<<e-1),this.putInt(t,e)},o.ByteStringBuffer.prototype.putBuffer=function(t){return this.putBytes(t.getBytes())},o.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},o.ByteStringBuffer.prototype.getInt16=function(){var t=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,t},o.ByteStringBuffer.prototype.getInt24=function(){var t=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,t},o.ByteStringBuffer.prototype.getInt32=function(){var t=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,t},o.ByteStringBuffer.prototype.getInt16Le=function(){var t=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,t},o.ByteStringBuffer.prototype.getInt24Le=function(){var t=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,t},o.ByteStringBuffer.prototype.getInt32Le=function(){var t=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,t},o.ByteStringBuffer.prototype.getInt=function(t){a(t);var e=0;do{e=(e<<8)+this.data.charCodeAt(this.read++),t-=8}while(t>0);return e},o.ByteStringBuffer.prototype.getSignedInt=function(t){var e=this.getInt(t),r=2<<t-2;return e>=r&&(e-=r<<1),e},o.ByteStringBuffer.prototype.getBytes=function(t){var e;return t?(t=Math.min(this.length(),t),e=this.data.slice(this.read,this.read+t),this.read+=t):0===t?e="":(e=0===this.read?this.data:this.data.slice(this.read),this.clear()),e},o.ByteStringBuffer.prototype.bytes=function(t){return void 0===t?this.data.slice(this.read):this.data.slice(this.read,this.read+t)},o.ByteStringBuffer.prototype.at=function(t){return this.data.charCodeAt(this.read+t)},o.ByteStringBuffer.prototype.setAt=function(t,e){return this.data=this.data.substr(0,this.read+t)+String.fromCharCode(e)+this.data.substr(this.read+t+1),this},o.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},o.ByteStringBuffer.prototype.copy=function(){var t=o.createBuffer(this.data);return t.read=this.read,t},o.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},o.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},o.ByteStringBuffer.prototype.truncate=function(t){var e=Math.max(0,this.length()-t);return this.data=this.data.substr(this.read,e),this.read=0,this},o.ByteStringBuffer.prototype.toHex=function(){for(var t="",e=this.read;e<this.data.length;++e){var r=this.data.charCodeAt(e);r<16&&(t+="0"),t+=r.toString(16)}return t},o.ByteStringBuffer.prototype.toString=function(){return o.decodeUtf8(this.bytes())},o.DataBuffer=function(t,e){e=e||{},this.read=e.readOffset||0,this.growSize=e.growSize||1024;var r=o.isArrayBuffer(t),i=o.isArrayBufferView(t);if(r||i)return this.data=r?new DataView(t):new DataView(t.buffer,t.byteOffset,t.byteLength),void(this.write="writeOffset"in e?e.writeOffset:this.data.byteLength);this.data=new DataView(new ArrayBuffer(0)),this.write=0,null!=t&&this.putBytes(t),"writeOffset"in e&&(this.write=e.writeOffset)},o.DataBuffer.prototype.length=function(){return this.write-this.read},o.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},o.DataBuffer.prototype.accommodate=function(t,e){if(this.length()>=t)return this;e=Math.max(e||this.growSize,t);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),i=new Uint8Array(this.length()+e);return i.set(r),this.data=new DataView(i.buffer),this},o.DataBuffer.prototype.putByte=function(t){return this.accommodate(1),this.data.setUint8(this.write++,t),this},o.DataBuffer.prototype.fillWithByte=function(t,e){this.accommodate(e);for(var r=0;r<e;++r)this.data.setUint8(t);return this},o.DataBuffer.prototype.putBytes=function(t,e){if(o.isArrayBufferView(t)){var r=(i=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)).byteLength-i.byteOffset;return this.accommodate(r),new Uint8Array(this.data.buffer,this.write).set(i),this.write+=r,this}if(o.isArrayBuffer(t)){var i=new Uint8Array(t);return this.accommodate(i.byteLength),new Uint8Array(this.data.buffer).set(i,this.write),this.write+=i.byteLength,this}if(t instanceof o.DataBuffer||"object"==typeof t&&"number"==typeof t.read&&"number"==typeof t.write&&o.isArrayBufferView(t.data))return i=new Uint8Array(t.data.byteLength,t.read,t.length()),this.accommodate(i.byteLength),new Uint8Array(t.data.byteLength,this.write).set(i),this.write+=i.byteLength,this;if(t instanceof o.ByteStringBuffer&&(t=t.data,e="binary"),e=e||"binary","string"==typeof t){var n;if("hex"===e)return this.accommodate(Math.ceil(t.length/2)),n=new Uint8Array(this.data.buffer,this.write),this.write+=o.binary.hex.decode(t,n,this.write),this;if("base64"===e)return this.accommodate(3*Math.ceil(t.length/4)),n=new Uint8Array(this.data.buffer,this.write),this.write+=o.binary.base64.decode(t,n,this.write),this;if("utf8"===e&&(t=o.encodeUtf8(t),e="binary"),"binary"===e||"raw"===e)return this.accommodate(t.length),n=new Uint8Array(this.data.buffer,this.write),this.write+=o.binary.raw.decode(n),this;if("utf16"===e)return this.accommodate(2*t.length),n=new Uint16Array(this.data.buffer,this.write),this.write+=o.text.utf16.encode(n),this;throw new Error("Invalid encoding: "+e)}throw Error("Invalid parameter: "+t)},o.DataBuffer.prototype.putBuffer=function(t){return this.putBytes(t),t.clear(),this},o.DataBuffer.prototype.putString=function(t){return this.putBytes(t,"utf16")},o.DataBuffer.prototype.putInt16=function(t){return this.accommodate(2),this.data.setInt16(this.write,t),this.write+=2,this},o.DataBuffer.prototype.putInt24=function(t){return this.accommodate(3),this.data.setInt16(this.write,t>>8&65535),this.data.setInt8(this.write,t>>16&255),this.write+=3,this},o.DataBuffer.prototype.putInt32=function(t){return this.accommodate(4),this.data.setInt32(this.write,t),this.write+=4,this},o.DataBuffer.prototype.putInt16Le=function(t){return this.accommodate(2),this.data.setInt16(this.write,t,!0),this.write+=2,this},o.DataBuffer.prototype.putInt24Le=function(t){return this.accommodate(3),this.data.setInt8(this.write,t>>16&255),this.data.setInt16(this.write,t>>8&65535,!0),this.write+=3,this},o.DataBuffer.prototype.putInt32Le=function(t){return this.accommodate(4),this.data.setInt32(this.write,t,!0),this.write+=4,this},o.DataBuffer.prototype.putInt=function(t,e){a(e),this.accommodate(e/8);do{e-=8,this.data.setInt8(this.write++,t>>e&255)}while(e>0);return this},o.DataBuffer.prototype.putSignedInt=function(t,e){return a(e),this.accommodate(e/8),t<0&&(t+=2<<e-1),this.putInt(t,e)},o.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},o.DataBuffer.prototype.getInt16=function(){var t=this.data.getInt16(this.read);return this.read+=2,t},o.DataBuffer.prototype.getInt24=function(){var t=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,t},o.DataBuffer.prototype.getInt32=function(){var t=this.data.getInt32(this.read);return this.read+=4,t},o.DataBuffer.prototype.getInt16Le=function(){var t=this.data.getInt16(this.read,!0);return this.read+=2,t},o.DataBuffer.prototype.getInt24Le=function(){var t=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,t},o.DataBuffer.prototype.getInt32Le=function(){var t=this.data.getInt32(this.read,!0);return this.read+=4,t},o.DataBuffer.prototype.getInt=function(t){a(t);var e=0;do{e=(e<<8)+this.data.getInt8(this.read++),t-=8}while(t>0);return e},o.DataBuffer.prototype.getSignedInt=function(t){var e=this.getInt(t),r=2<<t-2;return e>=r&&(e-=r<<1),e},o.DataBuffer.prototype.getBytes=function(t){var e;return t?(t=Math.min(this.length(),t),e=this.data.slice(this.read,this.read+t),this.read+=t):0===t?e="":(e=0===this.read?this.data:this.data.slice(this.read),this.clear()),e},o.DataBuffer.prototype.bytes=function(t){return void 0===t?this.data.slice(this.read):this.data.slice(this.read,this.read+t)},o.DataBuffer.prototype.at=function(t){return this.data.getUint8(this.read+t)},o.DataBuffer.prototype.setAt=function(t,e){return this.data.setUint8(t,e),this},o.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},o.DataBuffer.prototype.copy=function(){return new o.DataBuffer(this)},o.DataBuffer.prototype.compact=function(){if(this.read>0){var t=new Uint8Array(this.data.buffer,this.read),e=new Uint8Array(t.byteLength);e.set(t),this.data=new DataView(e),this.write-=this.read,this.read=0}return this},o.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},o.DataBuffer.prototype.truncate=function(t){return this.write=Math.max(0,this.length()-t),this.read=Math.min(this.read,this.write),this},o.DataBuffer.prototype.toHex=function(){for(var t="",e=this.read;e<this.data.byteLength;++e){var r=this.data.getUint8(e);r<16&&(t+="0"),t+=r.toString(16)}return t},o.DataBuffer.prototype.toString=function(t){var e=new Uint8Array(this.data,this.read,this.length());if("binary"===(t=t||"utf8")||"raw"===t)return o.binary.raw.encode(e);if("hex"===t)return o.binary.hex.encode(e);if("base64"===t)return o.binary.base64.encode(e);if("utf8"===t)return o.text.utf8.decode(e);if("utf16"===t)return o.text.utf16.decode(e);throw new Error("Invalid encoding: "+t)},o.createBuffer=function(t,e){return e=e||"raw",void 0!==t&&"utf8"===e&&(t=o.encodeUtf8(t)),new o.ByteBuffer(t)},o.fillString=function(t,e){for(var r="";e>0;)1&e&&(r+=t),(e>>>=1)>0&&(t+=t);return r},o.xorBytes=function(t,e,r){for(var i="",n="",o="",a=0,s=0;r>0;--r,++a)n=t.charCodeAt(a)^e.charCodeAt(a),s>=10&&(i+=o,o="",s=0),o+=String.fromCharCode(n),++s;return i+o},o.hexToBytes=function(t){var e="",r=0;for(!0&t.length&&(r=1,e+=String.fromCharCode(parseInt(t[0],16)));r<t.length;r+=2)e+=String.fromCharCode(parseInt(t.substr(r,2),16));return e},o.bytesToHex=function(t){return o.createBuffer(t).toHex()},o.int32ToBytes=function(t){return String.fromCharCode(t>>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t)};var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],h="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";o.encode64=function(t,e){for(var r,i,n,o="",a="",s=0;s<t.length;)r=t.charCodeAt(s++),i=t.charCodeAt(s++),n=t.charCodeAt(s++),o+=c.charAt(r>>2),o+=c.charAt((3&r)<<4|i>>4),isNaN(i)?o+="==":(o+=c.charAt((15&i)<<2|n>>6),o+=isNaN(n)?"=":c.charAt(63&n)),e&&o.length>e&&(a+=o.substr(0,e)+"\r\n",o=o.substr(e));return a+o},o.decode64=function(t){t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var e,r,i,n,o="",a=0;a<t.length;)e=u[t.charCodeAt(a++)-43],r=u[t.charCodeAt(a++)-43],i=u[t.charCodeAt(a++)-43],n=u[t.charCodeAt(a++)-43],o+=String.fromCharCode(e<<2|r>>4),64!==i&&(o+=String.fromCharCode((15&r)<<4|i>>2),64!==n&&(o+=String.fromCharCode((3&i)<<6|n)));return o},o.encodeUtf8=function(t){return unescape(encodeURIComponent(t))},o.decodeUtf8=function(t){return decodeURIComponent(escape(t))},o.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:n.encode,decode:n.decode}},o.binary.raw.encode=function(t){return String.fromCharCode.apply(null,t)},o.binary.raw.decode=function(t,e,r){var i=e;i||(i=new Uint8Array(t.length));for(var n=r=r||0,o=0;o<t.length;++o)i[n++]=t.charCodeAt(o);return e?n-r:i},o.binary.hex.encode=o.bytesToHex,o.binary.hex.decode=function(t,e,r){var i=e;i||(i=new Uint8Array(Math.ceil(t.length/2)));var n=0,o=r=r||0;for(1&t.length&&(n=1,i[o++]=parseInt(t[0],16));n<t.length;n+=2)i[o++]=parseInt(t.substr(n,2),16);return e?o-r:i},o.binary.base64.encode=function(t,e){for(var r,i,n,o="",a="",s=0;s<t.byteLength;)r=t[s++],i=t[s++],n=t[s++],o+=c.charAt(r>>2),o+=c.charAt((3&r)<<4|i>>4),isNaN(i)?o+="==":(o+=c.charAt((15&i)<<2|n>>6),o+=isNaN(n)?"=":c.charAt(63&n)),e&&o.length>e&&(a+=o.substr(0,e)+"\r\n",o=o.substr(e));return a+o},o.binary.base64.decode=function(t,e,r){var i,n,o,a,s=e;s||(s=new Uint8Array(3*Math.ceil(t.length/4))),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var c=0,h=r=r||0;c<t.length;)i=u[t.charCodeAt(c++)-43],n=u[t.charCodeAt(c++)-43],o=u[t.charCodeAt(c++)-43],a=u[t.charCodeAt(c++)-43],s[h++]=i<<2|n>>4,64!==o&&(s[h++]=(15&n)<<4|o>>2,64!==a&&(s[h++]=(3&o)<<6|a));return e?h-r:s.subarray(0,h)},o.binary.base58.encode=function(t,e){return o.binary.baseN.encode(t,h,e)},o.binary.base58.decode=function(t,e){return o.binary.baseN.decode(t,h,e)},o.text={utf8:{},utf16:{}},o.text.utf8.encode=function(t,e,r){t=o.encodeUtf8(t);var i=e;i||(i=new Uint8Array(t.length));for(var n=r=r||0,a=0;a<t.length;++a)i[n++]=t.charCodeAt(a);return e?n-r:i},o.text.utf8.decode=function(t){return o.decodeUtf8(String.fromCharCode.apply(null,t))},o.text.utf16.encode=function(t,e,r){var i=e;i||(i=new Uint8Array(2*t.length));for(var n=new Uint16Array(i.buffer),o=r=r||0,a=r,s=0;s<t.length;++s)n[a++]=t.charCodeAt(s),o+=2;return e?o-r:i},o.text.utf16.decode=function(t){return String.fromCharCode.apply(null,new Uint16Array(t.buffer))},o.deflate=function(t,e,r){if(e=o.decode64(t.deflate(o.encode64(e)).rval),r){var i=2;32&e.charCodeAt(1)&&(i=6),e=e.substring(i,e.length-4)}return e},o.inflate=function(t,e,r){var i=t.inflate(o.encode64(e)).rval;return null===i?null:o.decode64(i)};var l=function(t,e,r){if(!t)throw new Error("WebStorage not available.");var i;if(null===r?i=t.removeItem(e):(r=o.encode64(JSON.stringify(r)),i=t.setItem(e,r)),void 0!==i&&!0!==i.rval){var n=new Error(i.error.message);throw n.id=i.error.id,n.name=i.error.name,n}},f=function(t,e){if(!t)throw new Error("WebStorage not available.");var r=t.getItem(e);if(t.init)if(null===r.rval){if(r.error){var i=new Error(r.error.message);throw i.id=r.error.id,i.name=r.error.name,i}r=null}else r=r.rval;return null!==r&&(r=JSON.parse(o.decode64(r))),r},p=function(t,e,r,i){var n=f(t,e);null===n&&(n={}),n[r]=i,l(t,e,n)},d=function(t,e,r){var i=f(t,e);return null!==i&&(i=r in i?i[r]:null),i},_=function(t,e,r){var i=f(t,e);if(null!==i&&r in i){delete i[r];var n=!0;for(var o in i){n=!1;break}n&&(i=null),l(t,e,i)}},y=function(t,e){l(t,e,null)},g=function(t,e,r){var i,n=null;void 0===r&&(r=["web","flash"]);var o=!1,a=null;for(var s in r){i=r[s];try{if("flash"===i||"both"===i){if(null===e[0])throw new Error("Flash local storage not available.");n=t.apply(this,e),o="flash"===i}"web"!==i&&"both"!==i||(e[0]=localStorage,n=t.apply(this,e),o=!0)}catch(t){a=t}if(o)break}if(!o)throw a;return n};o.setItem=function(t,e,r,i,n){g(p,arguments,n)},o.getItem=function(t,e,r,i){return g(d,arguments,i)},o.removeItem=function(t,e,r,i){g(_,arguments,i)},o.clearItems=function(t,e,r){g(y,arguments,r)},o.isEmpty=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},o.format=function(t){for(var e,r,i=/%./g,n=0,o=[],a=0;e=i.exec(t);){(r=t.substring(a,i.lastIndex-2)).length>0&&o.push(r),a=i.lastIndex;var s=e[0][1];switch(s){case"s":case"o":n<arguments.length?o.push(arguments[1+n++]):o.push("<?>");break;case"%":o.push("%");break;default:o.push("<%"+s+"?>")}}return o.push(t.substring(a)),o.join("")},o.formatNumber=function(t,e,r,i){var n=t,o=isNaN(e=Math.abs(e))?2:e,a=void 0===r?",":r,s=void 0===i?".":i,c=n<0?"-":"",u=parseInt(n=Math.abs(+n||0).toFixed(o),10)+"",h=u.length>3?u.length%3:0;return c+(h?u.substr(0,h)+s:"")+u.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+s)+(o?a+Math.abs(n-u).toFixed(o).slice(2):"")},o.formatSize=function(t){return t>=1073741824?o.formatNumber(t/1073741824,2,".","")+" GiB":t>=1048576?o.formatNumber(t/1048576,2,".","")+" MiB":t>=1024?o.formatNumber(t/1024,0)+" KiB":o.formatNumber(t,0)+" bytes"},o.bytesFromIP=function(t){return-1!==t.indexOf(".")?o.bytesFromIPv4(t):-1!==t.indexOf(":")?o.bytesFromIPv6(t):null},o.bytesFromIPv4=function(t){if(4!==(t=t.split(".")).length)return null;for(var e=o.createBuffer(),r=0;r<t.length;++r){var i=parseInt(t[r],10);if(isNaN(i))return null;e.putByte(i)}return e.getBytes()},o.bytesFromIPv6=function(t){for(var e=0,r=2*(8-(t=t.split(":").filter((function(t){return 0===t.length&&++e,!0}))).length+e),i=o.createBuffer(),n=0;n<8;++n)if(t[n]&&0!==t[n].length){var a=o.hexToBytes(t[n]);a.length<2&&i.putByte(0),i.putBytes(a)}else i.fillWithByte(0,r),r=0;return i.getBytes()},o.bytesToIP=function(t){return 4===t.length?o.bytesToIPv4(t):16===t.length?o.bytesToIPv6(t):null},o.bytesToIPv4=function(t){if(4!==t.length)return null;for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e.join(".")},o.bytesToIPv6=function(t){if(16!==t.length)return null;for(var e=[],r=[],i=0,n=0;n<t.length;n+=2){for(var a=o.bytesToHex(t[n]+t[n+1]);"0"===a[0]&&"0"!==a;)a=a.substr(1);if("0"===a){var s=r[r.length-1],c=e.length;s&&c===s.end+1?(s.end=c,s.end-s.start>r[i].end-r[i].start&&(i=r.length-1)):r.push({start:c,end:c})}e.push(a)}if(r.length>0){var u=r[i];u.end-u.start>0&&(e.splice(u.start,u.end-u.start+1,""),0===u.start&&e.unshift(""),7===u.end&&e.push(""))}return e.join(":")},o.estimateCores=function(t,e){if("function"==typeof t&&(e=t,t={}),t=t||{},"cores"in o&&!t.update)return e(null,o.cores);if("undefined"!=typeof navigator&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return o.cores=navigator.hardwareConcurrency,e(null,o.cores);if("undefined"==typeof Worker)return o.cores=1,e(null,o.cores);if("undefined"==typeof Blob)return o.cores=2,e(null,o.cores);var r=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",(function(t){for(var e=Date.now(),r=e+4;Date.now()<r;);self.postMessage({st:e,et:r})}))}.toString(),")()"],{type:"application/javascript"}));!function t(i,n,a){if(0===n){var s=Math.floor(i.reduce((function(t,e){return t+e}),0)/i.length);return o.cores=Math.max(1,s),URL.revokeObjectURL(r),e(null,o.cores)}!function(t,e){for(var i=[],n=[],o=0;o<t;++o){var a=new Worker(r);a.addEventListener("message",(function(r){if(n.push(r.data),n.length===t){for(var o=0;o<t;++o)i[o].terminate();e(0,n)}})),i.push(a)}for(o=0;o<t;++o)i[o].postMessage(o)}(a,(function(e,r){i.push(function(t,e){for(var r=[],i=0;i<t;++i)for(var n=e[i],o=r[i]=[],a=0;a<t;++a)if(i!==a){var s=e[a];(n.st>s.st&&n.st<s.et||s.st>n.st&&s.st<n.et)&&o.push(a)}return r.reduce((function(t,e){return Math.max(t,e.length)}),0)}(a,r)),t(i,n-1,a)}))}([],5,16)}},251:function(t,e,r){"use strict";var i=r(156),n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,r){var i,o={},u=null,h=null;for(i in void 0!==r&&(u=""+r),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(h=e.ref),e)a.call(e,i)&&!c.hasOwnProperty(i)&&(o[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===o[i]&&(o[i]=e[i]);return{$$typeof:n,type:t,key:u,ref:h,props:o,_owner:s.current}}e.Fragment=o,e.jsx=u,e.jsxs=u},893:function(t,e,r){"use strict";t.exports=r(251)},899:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__899__},198:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__198__},300:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__300__},760:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__760__},467:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__467__},99:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__99__},656:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__656__},156:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__156__},111:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__111__},715:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__715__},383:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__383__},128:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__128__}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=function(t,e){for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Barrier:function(){return f.Barrier},BaseModal:function(){return J},Button:function(){return L},Checkbox:function(){return N},Dropdown:function(){return q},Emitter:function(){return f.Emitter},GlobalStateProvider:function(){return p.GlobalStateProvider},Input:function(){return W},JU:function(){return S},Link:function(){return O},MetaTags:function(){return Y},Modal:function(){return Q},NavLink:function(){return tt},PT:function(){return y},PageLayout:function(){return F},ScalableRect:function(){return et},Semaphore:function(){return f.Semaphore},ThemeProvider:function(){return t.ThemeProvider},Throbber:function(){return it},WithTooltip:function(){return lt},YouTubeVideo:function(){return gt},api:function(){return A()},client:function(){return bt},config:function(){return o},getGlobalState:function(){return p.getGlobalState},getSsrContext:function(){return p.getSsrContext},isomorphy:function(){return a},newBarrier:function(){return _},server:function(){return mt},splitComponent:function(){return k},themed:function(){return e()},time:function(){return d},useAsyncCollection:function(){return p.useAsyncCollection},useAsyncData:function(){return p.useAsyncData},useGlobalState:function(){return p.useGlobalState},webpack:function(){return i},withRetries:function(){return E}});var t=__webpack_require__(198),e=__webpack_require__.n(t),r=__webpack_require__(794),i=__webpack_require__(869);const n=(r.b?__webpack_require__(144).Z().CONFIG:(0,i.requireWeak)("config"))||{};if(r.b&&"undefined"!=typeof document){const t=__webpack_require__(489);n.CSRF=t.parse(document.cookie).csrfToken}var o=n,a=__webpack_require__(145),s=__webpack_require__(489),c=__webpack_require__(760),u=__webpack_require__.n(c),h=__webpack_require__(467),l=__webpack_require__(156),f=__webpack_require__(874),p=__webpack_require__(899);(0,h.assign)(u(),{DAY_MS:f.DAY_MS,HOUR_MS:f.HOUR_MS,MIN_MS:f.MIN_MS,SEC_MS:f.SEC_MS,YEAR_MS:f.YEAR_MS,now:Date.now,timer:f.timer,useCurrent:function(){let{autorefresh:t=!1,globalStatePath:e="currentTime",precision:r=5*u().SEC_MS}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[i,n]=(0,p.useGlobalState)(e,Date.now);return(0,l.useEffect)((()=>{let e;const i=()=>{n((t=>{const e=Date.now();return Math.abs(e-t)>r?e:t})),t&&(e=setTimeout(i,r))};return i(),()=>{e&&clearTimeout(e)}}),[t,r,n]),i},useTimezoneOffset:function(){let{cookieName:t="timezoneOffset",globalStatePath:e="timezoneOffset"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,p.getSsrContext)(!1),[i,n]=(0,p.useGlobalState)(e,(()=>{const e=t&&r?.req?.cookies?.[t];return e?parseInt(e,10):0}));return(0,l.useEffect)((()=>{const e=(new Date).getTimezoneOffset();n(e),t&&(document.cookie=s.serialize(t,e,{path:"/"}))}),[t,n]),i}});var d=u();function _(t){return new f.Barrier(t)}var y=__webpack_require__(99),g=__webpack_require__.n(y),m=__webpack_require__(893);let b,v,B;function w(t){let{children:e,chunkName:r,getComponent:i,placeholder:n,...o}=t;const{current:s}=(0,l.useRef)({mounted:!1,pendingStyles:[]}),{publicPath:c}=(0,a.getBuildInfo)(),u=(0,l.lazy)((async()=>{const t=await i();return s.pendingStyles.length&&await Promise.all(s.pendingStyles),t.default?t:{default:t}}));if(a.IS_SERVER_SIDE){const{chunks:t}=(0,p.getGlobalState)().ssrContext;if(t.includes(r))throw Error(`Chunk name clash for "${r}"`);t.push(r)}else s.mounted||(s.mounted=!0,b[r].forEach((t=>{if(!t.endsWith(".css"))return;const e=`${c}/${t}`;let r=document.querySelector(`link[href="${e}"]`);if(!r){r=document.createElement("link"),r.setAttribute("href",e),r.setAttribute("rel","stylesheet");const t=_();r.onload=t.resolve,r.onerror=t.resolve,s.pendingStyles.push(t),document.querySelector("head").appendChild(r)}const i=v[e]||0;v[e]=i+1})));return(0,l.useEffect)((()=>()=>{s.mounted=!1,b[r].forEach((t=>{if(!t.endsWith(".css"))return;const e=`${c}/${t}`;if(--v[e]<=0){const t=document.querySelector(`link[href="${e}"]`);document.querySelector("head").removeChild(t)}}))}),[r,s,c]),(0,m.jsx)(l.Suspense,{fallback:n,children:(0,m.jsx)(u,{...o,children:e})})}function k(t){let{chunkName:e,getComponent:r,placeholder:i}=t;return function(){let{children:t,...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.createElement)(w,{...n,chunkName:e,getComponent:r,placeholder:i},t)}}a.IS_CLIENT_SIDE&&(b=__webpack_require__(144).Z().CHUNK_GROUPS||{},v={}),w.propTypes={children:g().node,chunkName:g().string.isRequired,getComponent:g().func.isRequired,placeholder:g().node},w.defaultProps={children:void 0,placeholder:void 0},e().COMPOSE=t.COMPOSE,e().PRIORITY=t.PRIORITY;try{B=process.env.NODE_CONFIG_ENV}catch{}const S="production"!==(B||"production")&&i.requireWeak("./jest","/");async function E(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;for(let i=1;;++i)try{return await t()}catch(t){if(!(i<e))throw t;await d.timer(r)}}var C=__webpack_require__(300),A=__webpack_require__.n(C),I=__webpack_require__(128);function x(t){let{children:e,className:r,disabled:i,enforceA:n,keepScrollPosition:o,onClick:a,onMouseDown:s,openNewTab:c,replace:u,routerLinkType:h,to:f,...p}=t;return i||n||c||f.match(/^(#|(https?|mailto):)/)?(0,m.jsx)("a",{className:(r?r+" ":"")+"zH52sA",disabled:i,href:f,onClick:i?t=>t.preventDefault():a,onMouseDown:i?t=>t.preventDefault():s,rel:"noopener noreferrer",target:c?"_blank":"",children:e}):(0,l.createElement)(h,{className:r,disabled:i,onMouseDown:s,replace:u,to:f,onClick:t=>{a&&a(t),o||window.scroll(0,0)},...p},e)}function O(t){return(0,m.jsx)(x,{...t,routerLinkType:I.Link})}function D(t){let{active:e,children:r,disabled:i,enforceA:n,onClick:o,onMouseDown:a,openNewTab:s,replace:c,theme:u,to:h}=t,l=u.button;return e&&u.active&&(l+=` ${u.active}`),i?(u.disabled&&(l+=` ${u.disabled}`),(0,m.jsx)("div",{className:l,children:r})):h?(0,m.jsx)(O,{className:l,enforceA:n,onClick:o,onMouseDown:a,openNewTab:s,replace:c,to:h,children:r}):(0,m.jsx)("div",{className:l,onClick:o,onKeyDown:o,onMouseDown:a,role:"button",tabIndex:0,children:r})}x.defaultProps={children:null,className:null,disabled:!1,enforceA:!1,keepScrollPosition:!1,onClick:null,onMouseDown:null,openNewTab:!1,replace:!1,to:""},x.propTypes={children:g().node,className:g().string,disabled:g().bool,enforceA:g().bool,keepScrollPosition:g().bool,onClick:g().func,onMouseDown:g().func,openNewTab:g().bool,replace:g().bool,routerLinkType:g().elementType.isRequired,to:g().oneOfType([g().object,g().string])};const T=e()("Button",["active","button","disabled"],{button:"E1FNQT",context:"KM0v4f",ad:"_3jm1-Q",hoc:"_0plpDL",active:"MAe9O6",disabled:"Br9IWV"})(D);D.defaultProps={active:!1,children:void 0,disabled:!1,enforceA:!1,onClick:void 0,onMouseDown:void 0,openNewTab:!1,replace:!1,to:void 0},D.propTypes={active:g().bool,children:g().node,disabled:g().bool,enforceA:g().bool,onClick:g().func,onMouseDown:g().func,openNewTab:g().bool,replace:g().bool,theme:T.themeType.isRequired,to:g().oneOfType([g().object,g().string])};var L=T;function M(t){let{checked:e,label:r,onChange:i,theme:n}=t;return(0,m.jsxs)("div",{className:n.container,children:[void 0===r?null:(0,m.jsx)("p",{className:n.label,children:r}),(0,m.jsx)("input",{checked:e,className:n.checkbox,onChange:i,type:"checkbox"})]})}const P=e()("Checkbox",["checkbox","container","label"],{checkbox:"A-f8qJ",context:"dNQcC6",ad:"earXxa",hoc:"qAPfQ6",container:"Kr0g3M",label:"_3dML-O"})(M);M.propTypes={checked:g().bool,label:g().string,onChange:g().func,theme:P.themeType.isRequired},M.defaultProps={checked:void 0,label:void 0,onChange:void 0};var N=P;function j(t){let{filter:e,label:r,onChange:i,options:n,theme:o,value:a}=t;const s=[(0,m.jsx)("option",{className:o.hiddenOption,children:""},"__reactUtilsHiddenOption")];for(let t=0;t<n.length;++t){let r=n[t];e&&!e(r)||((0,h.isString)(r)&&(r={value:r}),s.push((0,m.jsx)("option",{className:o.option,value:r.value,children:void 0===r.name?r.value:r.name},r.value)))}return(0,m.jsxs)("div",{className:o.container,children:[void 0===r?null:(0,m.jsx)("p",{className:o.label,children:r}),(0,m.jsx)("select",{className:o.select,onChange:i,value:a,children:s}),(0,m.jsx)("div",{className:o.arrow,children:"▼"})]})}const R=e()("Dropdown",["arrow","container","hiddenOption","label","option","select"],{arrow:"-zPK7Y",context:"haRIry",ad:"D4XHG2",hoc:"N3nd34",container:"_9CQpeA",label:"Gv0kyu",hiddenOption:"RdW3yR",select:"JXK1uw"})(j);j.propTypes={filter:g().func,label:g().string,onChange:g().func,options:g().arrayOf(g().oneOfType([g().shape({name:g().node,value:g().string.isRequired}),g().string]).isRequired),theme:R.themeType.isRequired,value:g().string},j.defaultProps={filter:void 0,label:void 0,onChange:void 0,options:[],value:void 0};var q=R;const z=(0,l.forwardRef)(((t,e)=>{let{label:r,theme:i,...n}=t;return(0,m.jsxs)("span",{className:i.container,children:[void 0===r?null:(0,m.jsx)("p",{className:i.label,children:r}),(0,m.jsx)("input",{className:i.input,ref:e,...n})]})})),U=e()("Input",["container","input","label"],{container:"Cxx397",context:"X5WszA",ad:"_8s7GCr",hoc:"TVlBYc",input:"M07d4s",label:"gfbdq-"})(z);z.propTypes={label:g().string,theme:U.themeType.isRequired},z.defaultProps={label:void 0};var W=U;function K(t){let{children:e,leftSidePanelContent:r,rightSidePanelContent:i,theme:n}=t;return(0,m.jsxs)("div",{className:n.container,children:[(0,m.jsx)("div",{className:[n.sidePanel,n.leftSidePanel].join(" "),children:r}),(0,m.jsx)("div",{className:n.mainPanel,children:e}),(0,m.jsx)("div",{className:[n.sidePanel,n.rightSidePanel].join(" "),children:i})]})}const X=e()("PageLayout",["container","leftSidePanel","mainPanel","rightSidePanel","sidePanel"],{container:"T3cuHB",context:"m4mL-M",ad:"m3-mdC",hoc:"J15Z4H",mainPanel:"pPlQO2",sidePanel:"lqNh4h"})(K);K.propTypes={children:g().node,leftSidePanelContent:g().node,rightSidePanelContent:g().node,theme:X.themeType.isRequired},K.defaultProps={children:null,leftSidePanelContent:null,rightSidePanelContent:null};var F=X,V=__webpack_require__(383);const H=(0,l.createContext)();function Y(t){let{children:e,description:r,image:i,siteName:n,socialDescription:o,socialTitle:a,title:s,url:c}=t;const u=a||s,h=o||r,f=(0,l.useMemo)((()=>({description:r,image:i,siteName:n,socialDescription:o,socialTitle:a,title:s,url:c})),[r,i,n,o,a,s,c]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(V.Helmet,{children:[(0,m.jsx)("title",{children:s}),(0,m.jsx)("meta",{name:"description",content:r}),(0,m.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,m.jsx)("meta",{name:"twitter:title",content:u}),(0,m.jsx)("meta",{name:"twitter:description",content:h}),i?(0,m.jsx)("meta",{name:"twitter:image",content:i}):null,n?(0,m.jsx)("meta",{name:"twitter:site",content:`@${n}`}):null,(0,m.jsx)("meta",{name:"og:title",content:u}),i?(0,m.jsx)("meta",{name:"og:image",content:i}):null,i?(0,m.jsx)("meta",{name:"og:image:alt",content:u}):null,(0,m.jsx)("meta",{name:"og:description",content:h}),n?(0,m.jsx)("meta",{name:"og:sitename",content:n}):null,c?(0,m.jsx)("meta",{name:"og:url",content:c}):null]}),e?(0,m.jsx)(H.Provider,{value:f,children:e}):null]})}Y.Context=H,Y.defaultProps={children:null,image:null,siteName:null,socialDescription:null,socialTitle:null,url:null},Y.propTypes={children:g().node,description:g().string.isRequired,image:g().string,siteName:g().string,socialDescription:g().string,socialTitle:g().string,title:g().string.isRequired,url:g().string};var G=__webpack_require__(111),$=__webpack_require__.n(G);function J(t){let{children:e,onCancel:r,theme:i}=t;const n=(0,l.useRef)(),o=(0,l.useRef)(),[a,s]=(0,l.useState)();(0,l.useEffect)((()=>{const t=document.createElement("div");return document.body.classList.add("scrolling-disabled-by-modal"),document.body.appendChild(t),s(t),()=>{document.body.classList.remove("scrolling-disabled-by-modal"),document.body.removeChild(t)}}),[]);const c=(0,l.useMemo)((()=>(0,m.jsx)("div",{onFocus:()=>{const t=n.current.querySelectorAll("*");for(let e=t.length-1;e>=0;--e)if(t[e].focus(),document.activeElement===t[e])return;o.current.focus()},tabIndex:"0"})),[]);return a?$().createPortal((0,m.jsxs)(m.Fragment,{children:[c,(0,m.jsx)("div",{"aria-label":"Cancel",className:i.overlay,onClick:()=>r(),onKeyDown:t=>{"Escape"===t.key&&r()},ref:t=>{t&&t!==o.current&&(o.current=t,t.focus())},role:"button",tabIndex:"0"}),(0,m.jsx)("div",{"aria-modal":"true",className:i.container,onWheel:t=>t.stopPropagation(),ref:n,role:"dialog",children:e}),(0,m.jsx)("div",{onFocus:()=>{o.current.focus()},tabIndex:"0"}),c]}),a):null}const Z=e()("Modal",["container","overlay"],{overlay:"ye2BZo",context:"Szmbbz",ad:"Ah-Nsc",hoc:"Wki41G",container:"gyZ4rc"})(J);J.propTypes={onCancel:g().func,children:g().node,theme:Z.themeType.isRequired},J.defaultProps={onCancel:h.noop,children:null};var Q=Z;function tt(t){return(0,m.jsx)(x,{...t,routerLinkType:I.NavLink})}function et(t){let{children:e,className:r,ratio:i}=t;const n=i.split(":"),o=100*n[1]/n[0]+"%",a=(0,m.jsx)("div",{style:{paddingBottom:o},className:"EznFz3",children:(0,m.jsx)("div",{className:"_0vb7tq",children:e})});return r?(0,m.jsx)("div",{className:r,children:a}):a}function rt(t){let{theme:e}=t;return(0,m.jsxs)("span",{className:(e.container?e.container+" ":"")+"_7zdld4",children:[(0,m.jsx)("span",{className:(e.circle?e.circle+" ":"")+"dBrB4g"}),(0,m.jsx)("span",{className:(e.circle?e.circle+" ":"")+"dBrB4g"}),(0,m.jsx)("span",{className:(e.circle?e.circle+" ":"")+"dBrB4g"})]})}et.defaultProps={children:null,className:null,ratio:"1:1"},et.propTypes={children:g().node,className:g().string,ratio:g().string},rt.defaultProps={theme:{}},rt.propTypes={theme:g().shape({container:g().string,circle:g().string})};var it=e()("Throbber",["circle","container"],{container:"_7zdld4",context:"uIObt7",ad:"XIxe9o",hoc:"YOyORH",circle:"dBrB4g",bouncing:"TJe-6j"})(rt);const nt={ABOVE_CURSOR:"ABOVE_CURSOR",ABOVE_ELEMENT:"ABOVE_ELEMENT",BELOW_CURSOR:"BELOW_CURSOR",BELOW_ELEMENT:"BELOW_ELEMENT"},ot=["border-bottom-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";"),at=["border-top-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";");const st=(0,l.forwardRef)(((t,e)=>{let{children:r,theme:i}=t;const[n,o]=(0,l.useState)(null),a=(t,e,r,i)=>n&&function(t,e,r,i,n){const o=function(t){return{arrow:t.arrow.getBoundingClientRect(),container:t.container.getBoundingClientRect()}}(n),a=function(){const{pageXOffset:t,pageYOffset:e}=window,{documentElement:{clientHeight:r,clientWidth:i}}=document;return{left:t,right:t+i,top:e,bottom:e+r}}(),s=function(t,e,r){const{arrow:i,container:n}=r;return{arrowX:.5*(n.width-i.width),arrowY:n.height,containerX:t-n.width/2,containerY:e-n.height-i.height/1.5,baseArrowStyle:ot}}(t,e,o);if(s.containerX<a.left+6)s.containerX=a.left+6,s.arrowX=Math.max(6,t-s.containerX-o.arrow.width/2);else{const e=a.right-6-o.container.width;s.containerX>e&&(s.containerX=e,s.arrowX=Math.min(o.container.width-6,t-s.containerX-o.arrow.width/2))}s.containerY<a.top+6&&(s.containerY+=o.container.height+2*o.arrow.height,s.arrowY-=o.container.height+o.arrow.height,s.baseArrowStyle=at);const c=`left:${s.containerX}px;top:${s.containerY}px`;n.container.setAttribute("style",c);const u=`${s.baseArrowStyle};left:${s.arrowX}px;top:${s.arrowY}px`;n.arrow.setAttribute("style",u)}(t,e,0,0,n);return(0,l.useImperativeHandle)(e,(()=>({pointTo:a}))),(0,l.useEffect)((()=>{const t=function(t){const e=document.createElement("div");t.arrow&&e.setAttribute("class",t.arrow);const r=document.createElement("div");t.content&&r.setAttribute("class",t.content);const i=document.createElement("div");return t.container&&i.setAttribute("class",t.container),i.appendChild(e),i.appendChild(r),document.body.appendChild(i),{container:i,arrow:e,content:r}}(i);return o(t),()=>{document.body.removeChild(t.container),o(null)}}),[i]),n?(0,G.createPortal)(r,n.content):null}));st.propTypes={children:g().node,theme:g().shape().isRequired},st.defaultProps={children:null};var ct=st;function ut(t){let{children:e,placement:r,tip:i,theme:n}=t;const o=(0,l.useRef)(),a=(0,l.useRef)(),[s,c]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{if(s&&null!==i){const t=()=>c(!1);return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)}}),[s,i]),(0,m.jsxs)("div",{className:n.wrapper,onMouseLeave:()=>c(!1),onMouseMove:t=>((t,e)=>{if(s){const i=a.current.getBoundingClientRect();t<i.left||t>i.right||e<i.top||e>i.bottom?c(!1):o.current&&o.current.pointTo(t+window.pageXOffset,e+window.pageYOffset,r,a.current)}else c(!0)})(t.clientX,t.clientY),ref:a,children:[s&&null!==i?(0,m.jsx)(ct,{ref:o,theme:n,children:i}):null,e]})}const ht=e()("WithTooltip",["appearance","arrow","container","content","wrapper"],{arrow:"M9gywF",ad:"_4xT7zE",hoc:"zd-vnH",context:"GdZucr",container:"f9gY8K",appearance:"L4ubm-",wrapper:"_4qDBRM"})(ut);ht.PLACEMENTS=nt,ut.propTypes={children:g().node,placement:g().oneOf(Object.values(nt)),theme:ht.themeType.isRequired,tip:g().node},ut.defaultProps={children:null,placement:nt.ABOVE_CURSOR,tip:null};var lt=ht,ft=__webpack_require__(656),pt=__webpack_require__.n(ft),dt={container:"jTxmOX",context:"dzIcLh",ad:"_5a9XX1",hoc:"_7sH52O"};function _t(t){let{autoplay:e,src:r,theme:i,title:n}=t,[o,a]=r.split("?");a=a?pt().parse(a):{};const s=a.v||o.match(/\/([a-zA-Z0-9-_]*)$/)[1];return o=`https://www.youtube.com/embed/${s}`,delete a.v,a.autoplay=e?1:0,o+=`?${pt().stringify(a)}`,(0,m.jsxs)(et,{className:i.container,ratio:"16:9",children:[(0,m.jsx)(it,{theme:dt}),(0,m.jsx)("iframe",{allow:"autoplay",allowFullScreen:!0,className:i.video,src:o,title:n})]})}const yt=e()("YouTubeVideo",["container","video"],{container:"sXHM81",context:"veKyYi",ad:"r3ABzd",hoc:"YKcPnR",video:"SlV2zw"})(_t);_t.propTypes={autoplay:g().bool,src:g().string.isRequired,theme:yt.themeType.isRequired,title:g().string},_t.defaultProps={autoplay:!1,title:""};var gt=yt;const mt=i.requireWeak("./server","/"),bt=mt?void 0:__webpack_require__(190).Z}(),__webpack_exports__}()}));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@dr.pogodin/js-utils"),require("@dr.pogodin/react-global-state"),require("@dr.pogodin/react-themes"),require("axios"),require("dayjs"),require("lodash"),require("node-forge/lib/aes"),require("node-forge/lib/forge"),require("prop-types"),require("qs"),require("react"),require("react-dom"),require("react-dom/client"),require("react-helmet"),require("react-router-dom")):"function"==typeof define&&define.amd?define(["@dr.pogodin/js-utils","@dr.pogodin/react-global-state","@dr.pogodin/react-themes","axios","dayjs","lodash","node-forge/lib/aes","node-forge/lib/forge","prop-types","qs","react","react-dom","react-dom/client","react-helmet","react-router-dom"],t):"object"==typeof exports?exports["@dr.pogodin/react-utils"]=t(require("@dr.pogodin/js-utils"),require("@dr.pogodin/react-global-state"),require("@dr.pogodin/react-themes"),require("axios"),require("dayjs"),require("lodash"),require("node-forge/lib/aes"),require("node-forge/lib/forge"),require("prop-types"),require("qs"),require("react"),require("react-dom"),require("react-dom/client"),require("react-helmet"),require("react-router-dom")):e["@dr.pogodin/react-utils"]=t(e["@dr.pogodin/js-utils"],e["@dr.pogodin/react-global-state"],e["@dr.pogodin/react-themes"],e.axios,e.dayjs,e.lodash,e["node-forge/lib/aes"],e["node-forge/lib/forge"],e["prop-types"],e.qs,e.react,e["react-dom"],e["react-dom/client"],e["react-helmet"],e["react-router-dom"])}("undefined"!=typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__269__,__WEBPACK_EXTERNAL_MODULE__899__,__WEBPACK_EXTERNAL_MODULE__198__,__WEBPACK_EXTERNAL_MODULE__300__,__WEBPACK_EXTERNAL_MODULE__760__,__WEBPACK_EXTERNAL_MODULE__467__,__WEBPACK_EXTERNAL_MODULE__0__,__WEBPACK_EXTERNAL_MODULE__654__,__WEBPACK_EXTERNAL_MODULE__99__,__WEBPACK_EXTERNAL_MODULE__656__,__WEBPACK_EXTERNAL_MODULE__156__,__WEBPACK_EXTERNAL_MODULE__111__,__WEBPACK_EXTERNAL_MODULE__715__,__WEBPACK_EXTERNAL_MODULE__383__,__WEBPACK_EXTERNAL_MODULE__128__){return function(){"use strict";var __webpack_modules__={144:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return getInj}});var node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(654),node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0__),node_forge_lib_aes__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),node_forge_lib_aes__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(node_forge_lib_aes__WEBPACK_IMPORTED_MODULE_1__),_shared_utils_isomorphy_buildInfo__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(971);let inj="undefined"!=typeof document&&document.querySelector('meta[itemprop="drpruinj"]');if(inj){inj.remove();const{key:key}=(0,_shared_utils_isomorphy_buildInfo__WEBPACK_IMPORTED_MODULE_2__.J)();inj=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.decode64(inj.content);const d=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().cipher.createDecipher("AES-CBC",key);d.start({iv:inj.slice(0,key.length)}),d.update(node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.createBuffer(inj.slice(key.length))),d.finish(),inj=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.decodeUtf8(d.output.data),inj=eval(`(${inj})`)}else inj={};function getInj(){return inj}},190:function(e,t,r){r.d(t,{Z:function(){return _}});var n=r(899),o=r(715),i=r(128),a=r(144),c=r(893);function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=document.getElementById("react-view"),_=(0,c.jsx)(n.GlobalStateProvider,{initialState:(0,a.Z)().ISTATE,children:(0,c.jsx)(i.BrowserRouter,{children:(0,c.jsx)(e,{})})});t.dontHydrate?(0,o.createRoot)(r).render(_):(0,o.hydrateRoot)(r,_)}},971:function(e,t,r){let n;function o(){if(void 0===n)throw Error('"Build Info" has not been initialized yet');return n}r.d(t,{J:function(){return o}}),"undefined"!=typeof BUILD_INFO&&(n=BUILD_INFO)},794:function(e,t,r){r.d(t,{b:function(){return n},x:function(){return o}});const n="object"!=typeof process||!process.versions||!process.versions.node||!!r.g.REACT_UTILS_FORCE_CLIENT_SIDE,o=!n},145:function(e,t,r){r.r(t),r.d(t,{IS_CLIENT_SIDE:function(){return o.b},IS_SERVER_SIDE:function(){return o.x},buildTimestamp:function(){return c},getBuildInfo:function(){return n.J},isDevBuild:function(){return i},isProdBuild:function(){return a}});var n=r(971),o=r(794);function i(){return!1}function a(){return!0}function c(){return(0,n.J)().timestamp}},869:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{requireWeak:function(){return requireWeak},resolveWeak:function(){return resolveWeak}});var _isomorphy__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(145);function requireWeak(modulePath,basePath){if(_isomorphy__WEBPACK_IMPORTED_MODULE_0__.IS_CLIENT_SIDE)return null;try{const{resolve:resolve}=eval("require")("path"),path=basePath?resolve(basePath,modulePath):modulePath,{default:def,...named}=eval("require")(path);return def?(Object.entries(named).forEach((e=>{let[t,r]=e;if(def[t])throw Error("Conflict between default and named exports");def[t]=r})),def):named}catch{return null}}function resolveWeak(e){return e}},489:function(e,t){t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var r={},n=(t||{}).decode||o,i=0;i<e.length;){var c=e.indexOf("=",i);if(-1===c)break;var _=e.indexOf(";",i);if(-1===_)_=e.length;else if(_<c){i=e.lastIndexOf(";",c-1)+1;continue}var l=e.slice(i,c).trim();if(void 0===r[l]){var s=e.slice(c+1,_).trim();34===s.charCodeAt(0)&&(s=s.slice(1,-1)),r[l]=a(s,n)}i=_+1}return r},t.serialize=function(e,t,o){var a=o||{},c=a.encode||i;if("function"!=typeof c)throw new TypeError("option encode is invalid");if(!n.test(e))throw new TypeError("argument name is invalid");var _=c(t);if(_&&!n.test(_))throw new TypeError("argument val is invalid");var l=e+"="+_;if(null!=a.maxAge){var s=a.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(s)}if(a.domain){if(!n.test(a.domain))throw new TypeError("option domain is invalid");l+="; Domain="+a.domain}if(a.path){if(!n.test(a.path))throw new TypeError("option path is invalid");l+="; Path="+a.path}if(a.expires){var u=a.expires;if(!function(e){return"[object Date]"===r.call(e)||e instanceof Date}(u)||isNaN(u.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+u.toUTCString()}if(a.httpOnly&&(l+="; HttpOnly"),a.secure&&(l+="; Secure"),a.priority)switch("string"==typeof a.priority?a.priority.toLowerCase():a.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return l};var r=Object.prototype.toString,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function o(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function i(e){return encodeURIComponent(e)}function a(e,t){try{return t(e)}catch(t){return e}}},251:function(e,t,r){var n=r(156),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,i={},l=null,s=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(s=t.ref),t)a.call(t,n)&&!_.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:s,props:i,_owner:c.current}}t.Fragment=i,t.jsx=l,t.jsxs=l},893:function(e,t,r){e.exports=r(251)},269:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__269__},899:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__899__},198:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__198__},300:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__300__},760:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__760__},467:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__467__},0:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__0__},654:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__654__},99:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__99__},656:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__656__},156:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__156__},111:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__111__},715:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__715__},383:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__383__},128:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__128__}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};return function(){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Barrier:function(){return d.Barrier},BaseModal:function(){return Z},Button:function(){return L},Checkbox:function(){return j},Dropdown:function(){return I},Emitter:function(){return d.Emitter},GlobalStateProvider:function(){return p.GlobalStateProvider},Input:function(){return K},JU:function(){return k},Link:function(){return q},MetaTags:function(){return G},Modal:function(){return Q},NavLink:function(){return ee},PT:function(){return m},PageLayout:function(){return z},ScalableRect:function(){return te},Semaphore:function(){return d.Semaphore},ThemeProvider:function(){return e.ThemeProvider},Throbber:function(){return ne},WithTooltip:function(){return ue},YouTubeVideo:function(){return be},api:function(){return P()},client:function(){return ge},config:function(){return i},getGlobalState:function(){return p.getGlobalState},getSsrContext:function(){return p.getSsrContext},isomorphy:function(){return a},newBarrier:function(){return h},server:function(){return Ee},splitComponent:function(){return x},themed:function(){return t()},time:function(){return f},useAsyncCollection:function(){return p.useAsyncCollection},useAsyncData:function(){return p.useAsyncData},useGlobalState:function(){return p.useGlobalState},webpack:function(){return n},withRetries:function(){return T}});var e=__webpack_require__(198),t=__webpack_require__.n(e),r=__webpack_require__(794),n=__webpack_require__(869);const o=(r.b?__webpack_require__(144).Z().CONFIG:(0,n.requireWeak)("config"))||{};if(r.b&&"undefined"!=typeof document){const e=__webpack_require__(489);o.CSRF=e.parse(document.cookie).csrfToken}var i=o,a=__webpack_require__(145),c=__webpack_require__(489),_=__webpack_require__(760),l=__webpack_require__.n(_),s=__webpack_require__(467),u=__webpack_require__(156),d=__webpack_require__(269),p=__webpack_require__(899);(0,s.assign)(l(),{DAY_MS:d.DAY_MS,HOUR_MS:d.HOUR_MS,MIN_MS:d.MIN_MS,SEC_MS:d.SEC_MS,YEAR_MS:d.YEAR_MS,now:Date.now,timer:d.timer,useCurrent:function(){let{autorefresh:e=!1,globalStatePath:t="currentTime",precision:r=5*l().SEC_MS}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[n,o]=(0,p.useGlobalState)(t,Date.now);return(0,u.useEffect)((()=>{let t;const n=()=>{o((e=>{const t=Date.now();return Math.abs(t-e)>r?t:e})),e&&(t=setTimeout(n,r))};return n(),()=>{t&&clearTimeout(t)}}),[e,r,o]),n},useTimezoneOffset:function(){let{cookieName:e="timezoneOffset",globalStatePath:t="timezoneOffset"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,p.getSsrContext)(!1),[n,o]=(0,p.useGlobalState)(t,(()=>{const t=e&&r?.req?.cookies?.[e];return t?parseInt(t,10):0}));return(0,u.useEffect)((()=>{const t=(new Date).getTimezoneOffset();o(t),e&&(document.cookie=c.serialize(e,t,{path:"/"}))}),[e,o]),n}});var f=l();function h(e){return new d.Barrier(e)}var m=__webpack_require__(99),b=__webpack_require__.n(m),E=__webpack_require__(893);let g,w,v;function y(e){let{children:t,chunkName:r,getComponent:n,placeholder:o,...i}=e;const{current:c}=(0,u.useRef)({mounted:!1,pendingStyles:[]}),{publicPath:_}=(0,a.getBuildInfo)(),l=(0,u.lazy)((async()=>{const e=await n();return c.pendingStyles.length&&await Promise.all(c.pendingStyles),e.default?e:{default:e}}));if(a.IS_SERVER_SIDE){const{chunks:e}=(0,p.getGlobalState)().ssrContext;if(e.includes(r))throw Error(`Chunk name clash for "${r}"`);e.push(r)}else c.mounted||(c.mounted=!0,g[r].forEach((e=>{if(!e.endsWith(".css"))return;const t=`${_}/${e}`;let r=document.querySelector(`link[href="${t}"]`);if(!r){r=document.createElement("link"),r.setAttribute("href",t),r.setAttribute("rel","stylesheet");const e=h();r.onload=e.resolve,r.onerror=e.resolve,c.pendingStyles.push(e),document.querySelector("head").appendChild(r)}const n=w[t]||0;w[t]=n+1})));return(0,u.useEffect)((()=>()=>{c.mounted=!1,g[r].forEach((e=>{if(!e.endsWith(".css"))return;const t=`${_}/${e}`;if(--w[t]<=0){const e=document.querySelector(`link[href="${t}"]`);document.querySelector("head").removeChild(e)}}))}),[r,c,_]),(0,E.jsx)(u.Suspense,{fallback:o,children:(0,E.jsx)(l,{...i,children:t})})}function x(e){let{chunkName:t,getComponent:r,placeholder:n}=e;return function(){let{children:e,...o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,u.createElement)(y,{...o,chunkName:t,getComponent:r,placeholder:n},e)}}a.IS_CLIENT_SIDE&&(g=__webpack_require__(144).Z().CHUNK_GROUPS||{},w={}),y.propTypes={children:b().node,chunkName:b().string.isRequired,getComponent:b().func.isRequired,placeholder:b().node},y.defaultProps={children:void 0,placeholder:void 0},t().COMPOSE=e.COMPOSE,t().PRIORITY=e.PRIORITY;try{v=process.env.NODE_CONFIG_ENV}catch{}const k="production"!==(v||"production")&&n.requireWeak("./jest","/");async function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;for(let n=1;;++n)try{return await e()}catch(e){if(!(n<t))throw e;await f.timer(r)}}var C=__webpack_require__(300),P=__webpack_require__.n(C),O=__webpack_require__(128);function A(e){let{children:t,className:r,disabled:n,enforceA:o,keepScrollPosition:i,onClick:a,onMouseDown:c,openNewTab:_,replace:l,routerLinkType:s,to:d,...p}=e;return n||o||_||d.match(/^(#|(https?|mailto):)/)?(0,E.jsx)("a",{className:(r?r+" ":"")+"zH52sA",disabled:n,href:d,onClick:n?e=>e.preventDefault():a,onMouseDown:n?e=>e.preventDefault():c,rel:"noopener noreferrer",target:_?"_blank":"",children:t}):(0,u.createElement)(s,{className:r,disabled:n,onMouseDown:c,replace:l,to:d,onClick:e=>{a&&a(e),i||window.scroll(0,0)},...p},t)}function q(e){return(0,E.jsx)(A,{...e,routerLinkType:O.Link})}function S(e){let{active:t,children:r,disabled:n,enforceA:o,onClick:i,onMouseDown:a,openNewTab:c,replace:_,theme:l,to:s}=e,u=l.button;return t&&l.active&&(u+=` ${l.active}`),n?(l.disabled&&(u+=` ${l.disabled}`),(0,E.jsx)("div",{className:u,children:r})):s?(0,E.jsx)(q,{className:u,enforceA:o,onClick:i,onMouseDown:a,openNewTab:c,replace:_,to:s,children:r}):(0,E.jsx)("div",{className:u,onClick:i,onKeyDown:i,onMouseDown:a,role:"button",tabIndex:0,children:r})}A.defaultProps={children:null,className:null,disabled:!1,enforceA:!1,keepScrollPosition:!1,onClick:null,onMouseDown:null,openNewTab:!1,replace:!1,to:""},A.propTypes={children:b().node,className:b().string,disabled:b().bool,enforceA:b().bool,keepScrollPosition:b().bool,onClick:b().func,onMouseDown:b().func,openNewTab:b().bool,replace:b().bool,routerLinkType:b().elementType.isRequired,to:b().oneOfType([b().object,b().string])};const N=t()("Button",["active","button","disabled"],{button:"E1FNQT",context:"KM0v4f",ad:"_3jm1-Q",hoc:"_0plpDL",active:"MAe9O6",disabled:"Br9IWV"})(S);S.defaultProps={active:!1,children:void 0,disabled:!1,enforceA:!1,onClick:void 0,onMouseDown:void 0,openNewTab:!1,replace:!1,to:void 0},S.propTypes={active:b().bool,children:b().node,disabled:b().bool,enforceA:b().bool,onClick:b().func,onMouseDown:b().func,openNewTab:b().bool,replace:b().bool,theme:N.themeType.isRequired,to:b().oneOfType([b().object,b().string])};var L=N;function M(e){let{checked:t,label:r,onChange:n,theme:o}=e;return(0,E.jsxs)("div",{className:o.container,children:[void 0===r?null:(0,E.jsx)("p",{className:o.label,children:r}),(0,E.jsx)("input",{checked:t,className:o.checkbox,onChange:n,type:"checkbox"})]})}const R=t()("Checkbox",["checkbox","container","label"],{checkbox:"A-f8qJ",context:"dNQcC6",ad:"earXxa",hoc:"qAPfQ6",container:"Kr0g3M",label:"_3dML-O"})(M);M.propTypes={checked:b().bool,label:b().string,onChange:b().func,theme:R.themeType.isRequired},M.defaultProps={checked:void 0,label:void 0,onChange:void 0};var j=R;function D(e){let{filter:t,label:r,onChange:n,options:o,theme:i,value:a}=e;const c=[(0,E.jsx)("option",{className:i.hiddenOption,children:""},"__reactUtilsHiddenOption")];for(let e=0;e<o.length;++e){let r=o[e];t&&!t(r)||((0,s.isString)(r)&&(r={value:r}),c.push((0,E.jsx)("option",{className:i.option,value:r.value,children:void 0===r.name?r.value:r.name},r.value)))}return(0,E.jsxs)("div",{className:i.container,children:[void 0===r?null:(0,E.jsx)("p",{className:i.label,children:r}),(0,E.jsx)("select",{className:i.select,onChange:n,value:a,children:c}),(0,E.jsx)("div",{className:i.arrow,children:"▼"})]})}const B=t()("Dropdown",["arrow","container","hiddenOption","label","option","select"],{arrow:"-zPK7Y",context:"haRIry",ad:"D4XHG2",hoc:"N3nd34",container:"_9CQpeA",label:"Gv0kyu",hiddenOption:"RdW3yR",select:"JXK1uw"})(D);D.propTypes={filter:b().func,label:b().string,onChange:b().func,options:b().arrayOf(b().oneOfType([b().shape({name:b().node,value:b().string.isRequired}),b().string]).isRequired),theme:B.themeType.isRequired,value:b().string},D.defaultProps={filter:void 0,label:void 0,onChange:void 0,options:[],value:void 0};var I=B;const W=(0,u.forwardRef)(((e,t)=>{let{label:r,theme:n,...o}=e;return(0,E.jsxs)("span",{className:n.container,children:[void 0===r?null:(0,E.jsx)("p",{className:n.label,children:r}),(0,E.jsx)("input",{className:n.input,ref:t,...o})]})})),U=t()("Input",["container","input","label"],{container:"Cxx397",context:"X5WszA",ad:"_8s7GCr",hoc:"TVlBYc",input:"M07d4s",label:"gfbdq-"})(W);W.propTypes={label:b().string,theme:U.themeType.isRequired},W.defaultProps={label:void 0};var K=U;function X(e){let{children:t,leftSidePanelContent:r,rightSidePanelContent:n,theme:o}=e;return(0,E.jsxs)("div",{className:o.container,children:[(0,E.jsx)("div",{className:[o.sidePanel,o.leftSidePanel].join(" "),children:r}),(0,E.jsx)("div",{className:o.mainPanel,children:t}),(0,E.jsx)("div",{className:[o.sidePanel,o.rightSidePanel].join(" "),children:n})]})}const Y=t()("PageLayout",["container","leftSidePanel","mainPanel","rightSidePanel","sidePanel"],{container:"T3cuHB",context:"m4mL-M",ad:"m3-mdC",hoc:"J15Z4H",mainPanel:"pPlQO2",sidePanel:"lqNh4h"})(X);X.propTypes={children:b().node,leftSidePanelContent:b().node,rightSidePanelContent:b().node,theme:Y.themeType.isRequired},X.defaultProps={children:null,leftSidePanelContent:null,rightSidePanelContent:null};var z=Y,$=__webpack_require__(383);const F=(0,u.createContext)();function G(e){let{children:t,description:r,image:n,siteName:o,socialDescription:i,socialTitle:a,title:c,url:_}=e;const l=a||c,s=i||r,d=(0,u.useMemo)((()=>({description:r,image:n,siteName:o,socialDescription:i,socialTitle:a,title:c,url:_})),[r,n,o,i,a,c,_]);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)($.Helmet,{children:[(0,E.jsx)("title",{children:c}),(0,E.jsx)("meta",{name:"description",content:r}),(0,E.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,E.jsx)("meta",{name:"twitter:title",content:l}),(0,E.jsx)("meta",{name:"twitter:description",content:s}),n?(0,E.jsx)("meta",{name:"twitter:image",content:n}):null,o?(0,E.jsx)("meta",{name:"twitter:site",content:`@${o}`}):null,(0,E.jsx)("meta",{name:"og:title",content:l}),n?(0,E.jsx)("meta",{name:"og:image",content:n}):null,n?(0,E.jsx)("meta",{name:"og:image:alt",content:l}):null,(0,E.jsx)("meta",{name:"og:description",content:s}),o?(0,E.jsx)("meta",{name:"og:sitename",content:o}):null,_?(0,E.jsx)("meta",{name:"og:url",content:_}):null]}),t?(0,E.jsx)(F.Provider,{value:d,children:t}):null]})}G.Context=F,G.defaultProps={children:null,image:null,siteName:null,socialDescription:null,socialTitle:null,url:null},G.propTypes={children:b().node,description:b().string.isRequired,image:b().string,siteName:b().string,socialDescription:b().string,socialTitle:b().string,title:b().string.isRequired,url:b().string};var H=__webpack_require__(111),V=__webpack_require__.n(H);function Z(e){let{children:t,onCancel:r,theme:n}=e;const o=(0,u.useRef)(),i=(0,u.useRef)(),[a,c]=(0,u.useState)();(0,u.useEffect)((()=>{const e=document.createElement("div");return document.body.classList.add("scrolling-disabled-by-modal"),document.body.appendChild(e),c(e),()=>{document.body.classList.remove("scrolling-disabled-by-modal"),document.body.removeChild(e)}}),[]);const _=(0,u.useMemo)((()=>(0,E.jsx)("div",{onFocus:()=>{const e=o.current.querySelectorAll("*");for(let t=e.length-1;t>=0;--t)if(e[t].focus(),document.activeElement===e[t])return;i.current.focus()},tabIndex:"0"})),[]);return a?V().createPortal((0,E.jsxs)(E.Fragment,{children:[_,(0,E.jsx)("div",{"aria-label":"Cancel",className:n.overlay,onClick:()=>r(),onKeyDown:e=>{"Escape"===e.key&&r()},ref:e=>{e&&e!==i.current&&(i.current=e,e.focus())},role:"button",tabIndex:"0"}),(0,E.jsx)("div",{"aria-modal":"true",className:n.container,onWheel:e=>e.stopPropagation(),ref:o,role:"dialog",children:t}),(0,E.jsx)("div",{onFocus:()=>{i.current.focus()},tabIndex:"0"}),_]}),a):null}const J=t()("Modal",["container","overlay"],{overlay:"ye2BZo",context:"Szmbbz",ad:"Ah-Nsc",hoc:"Wki41G",container:"gyZ4rc"})(Z);Z.propTypes={onCancel:b().func,children:b().node,theme:J.themeType.isRequired},Z.defaultProps={onCancel:s.noop,children:null};var Q=J;function ee(e){return(0,E.jsx)(A,{...e,routerLinkType:O.NavLink})}function te(e){let{children:t,className:r,ratio:n}=e;const o=n.split(":"),i=100*o[1]/o[0]+"%",a=(0,E.jsx)("div",{style:{paddingBottom:i},className:"EznFz3",children:(0,E.jsx)("div",{className:"_0vb7tq",children:t})});return r?(0,E.jsx)("div",{className:r,children:a}):a}function re(e){let{theme:t}=e;return(0,E.jsxs)("span",{className:(t.container?t.container+" ":"")+"_7zdld4",children:[(0,E.jsx)("span",{className:(t.circle?t.circle+" ":"")+"dBrB4g"}),(0,E.jsx)("span",{className:(t.circle?t.circle+" ":"")+"dBrB4g"}),(0,E.jsx)("span",{className:(t.circle?t.circle+" ":"")+"dBrB4g"})]})}te.defaultProps={children:null,className:null,ratio:"1:1"},te.propTypes={children:b().node,className:b().string,ratio:b().string},re.defaultProps={theme:{}},re.propTypes={theme:b().shape({container:b().string,circle:b().string})};var ne=t()("Throbber",["circle","container"],{container:"_7zdld4",context:"uIObt7",ad:"XIxe9o",hoc:"YOyORH",circle:"dBrB4g",bouncing:"TJe-6j"})(re);const oe={ABOVE_CURSOR:"ABOVE_CURSOR",ABOVE_ELEMENT:"ABOVE_ELEMENT",BELOW_CURSOR:"BELOW_CURSOR",BELOW_ELEMENT:"BELOW_ELEMENT"},ie=["border-bottom-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";"),ae=["border-top-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";");const ce=(0,u.forwardRef)(((e,t)=>{let{children:r,theme:n}=e;const[o,i]=(0,u.useState)(null),a=(e,t,r,n)=>o&&function(e,t,r,n,o){const i=function(e){return{arrow:e.arrow.getBoundingClientRect(),container:e.container.getBoundingClientRect()}}(o),a=function(){const{pageXOffset:e,pageYOffset:t}=window,{documentElement:{clientHeight:r,clientWidth:n}}=document;return{left:e,right:e+n,top:t,bottom:t+r}}(),c=function(e,t,r){const{arrow:n,container:o}=r;return{arrowX:.5*(o.width-n.width),arrowY:o.height,containerX:e-o.width/2,containerY:t-o.height-n.height/1.5,baseArrowStyle:ie}}(e,t,i);if(c.containerX<a.left+6)c.containerX=a.left+6,c.arrowX=Math.max(6,e-c.containerX-i.arrow.width/2);else{const t=a.right-6-i.container.width;c.containerX>t&&(c.containerX=t,c.arrowX=Math.min(i.container.width-6,e-c.containerX-i.arrow.width/2))}c.containerY<a.top+6&&(c.containerY+=i.container.height+2*i.arrow.height,c.arrowY-=i.container.height+i.arrow.height,c.baseArrowStyle=ae);const _=`left:${c.containerX}px;top:${c.containerY}px`;o.container.setAttribute("style",_);const l=`${c.baseArrowStyle};left:${c.arrowX}px;top:${c.arrowY}px`;o.arrow.setAttribute("style",l)}(e,t,0,0,o);return(0,u.useImperativeHandle)(t,(()=>({pointTo:a}))),(0,u.useEffect)((()=>{const e=function(e){const t=document.createElement("div");e.arrow&&t.setAttribute("class",e.arrow);const r=document.createElement("div");e.content&&r.setAttribute("class",e.content);const n=document.createElement("div");return e.container&&n.setAttribute("class",e.container),n.appendChild(t),n.appendChild(r),document.body.appendChild(n),{container:n,arrow:t,content:r}}(n);return i(e),()=>{document.body.removeChild(e.container),i(null)}}),[n]),o?(0,H.createPortal)(r,o.content):null}));ce.propTypes={children:b().node,theme:b().shape().isRequired},ce.defaultProps={children:null};var _e=ce;function le(e){let{children:t,placement:r,tip:n,theme:o}=e;const i=(0,u.useRef)(),a=(0,u.useRef)(),[c,_]=(0,u.useState)(!1);return(0,u.useEffect)((()=>{if(c&&null!==n){const e=()=>_(!1);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)}}),[c,n]),(0,E.jsxs)("div",{className:o.wrapper,onMouseLeave:()=>_(!1),onMouseMove:e=>((e,t)=>{if(c){const n=a.current.getBoundingClientRect();e<n.left||e>n.right||t<n.top||t>n.bottom?_(!1):i.current&&i.current.pointTo(e+window.pageXOffset,t+window.pageYOffset,r,a.current)}else _(!0)})(e.clientX,e.clientY),ref:a,children:[c&&null!==n?(0,E.jsx)(_e,{ref:i,theme:o,children:n}):null,t]})}const se=t()("WithTooltip",["appearance","arrow","container","content","wrapper"],{arrow:"M9gywF",ad:"_4xT7zE",hoc:"zd-vnH",context:"GdZucr",container:"f9gY8K",appearance:"L4ubm-",wrapper:"_4qDBRM"})(le);se.PLACEMENTS=oe,le.propTypes={children:b().node,placement:b().oneOf(Object.values(oe)),theme:se.themeType.isRequired,tip:b().node},le.defaultProps={children:null,placement:oe.ABOVE_CURSOR,tip:null};var ue=se,de=__webpack_require__(656),pe=__webpack_require__.n(de),fe={container:"jTxmOX",context:"dzIcLh",ad:"_5a9XX1",hoc:"_7sH52O"};function he(e){let{autoplay:t,src:r,theme:n,title:o}=e,[i,a]=r.split("?");a=a?pe().parse(a):{};const c=a.v||i.match(/\/([a-zA-Z0-9-_]*)$/)[1];return i=`https://www.youtube.com/embed/${c}`,delete a.v,a.autoplay=t?1:0,i+=`?${pe().stringify(a)}`,(0,E.jsxs)(te,{className:n.container,ratio:"16:9",children:[(0,E.jsx)(ne,{theme:fe}),(0,E.jsx)("iframe",{allow:"autoplay",allowFullScreen:!0,className:n.video,src:i,title:o})]})}const me=t()("YouTubeVideo",["container","video"],{container:"sXHM81",context:"veKyYi",ad:"r3ABzd",hoc:"YKcPnR",video:"SlV2zw"})(he);he.propTypes={autoplay:b().bool,src:b().string.isRequired,theme:me.themeType.isRequired,title:b().string},he.defaultProps={autoplay:!1,title:""};var be=me;const Ee=n.requireWeak("./server","/"),ge=Ee?void 0:__webpack_require__(190).Z}(),__webpack_exports__}()}));
|
|
3
3
|
//# sourceMappingURL=web.bundle.js.map
|