@dr.pogodin/react-utils 1.26.0 → 1.26.2

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.
Files changed (29) hide show
  1. package/build/development/shared/components/ScalableRect/index.js +1 -1
  2. package/build/development/shared/components/ScalableRect/index.js.map +1 -1
  3. package/build/development/shared/components/Throbber/index.js.map +1 -1
  4. package/build/development/web.bundle.js +1 -1
  5. package/build/production/shared/components/ScalableRect/index.js +1 -1
  6. package/build/production/shared/components/ScalableRect/index.js.map +1 -1
  7. package/build/production/shared/components/Throbber/index.js.map +1 -1
  8. package/build/production/web.bundle.js +1 -1
  9. package/build/production/web.bundle.js.map +1 -1
  10. package/build/types-code/shared/components/Throbber/index.d.ts +1 -0
  11. package/config/babel/node-ssr.d.ts +17 -0
  12. package/config/babel/node-ssr.js +91 -0
  13. package/config/babel/webpack.d.ts +40 -0
  14. package/config/babel/webpack.js +107 -0
  15. package/config/webpack/app-base.d.ts +140 -0
  16. package/config/webpack/app-base.js +313 -0
  17. package/config/webpack/app-development.d.ts +13 -0
  18. package/config/webpack/app-development.js +69 -0
  19. package/config/webpack/app-production.d.ts +16 -0
  20. package/config/webpack/app-production.js +57 -0
  21. package/config/webpack/lib-base.d.ts +20 -0
  22. package/config/webpack/lib-base.js +154 -0
  23. package/config/webpack/lib-development.d.ts +5 -0
  24. package/config/webpack/lib-development.js +33 -0
  25. package/config/webpack/lib-production.d.ts +5 -0
  26. package/config/webpack/lib-production.js +40 -0
  27. package/package.json +3 -3
  28. package/src/shared/components/ScalableRect/index.tsx +1 -1
  29. package/src/shared/components/Throbber/index.tsx +1 -0
@@ -68,7 +68,7 @@ ScalableRect.propTypes = {
68
68
  }
69
69
 
70
70
  // If given, "ratio" must have "H:W" format.
71
- if (!ratio.match(/\d\.\d+/)) {
71
+ if (!ratio.match(/\d+:\d+/)) {
72
72
  return Error('"ratio" prop must have "H:W" format');
73
73
  }
74
74
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_propTypes","_interopRequireDefault","require","_jsxRuntime","ScalableRect","children","className","ratio","aux","split","paddingBottom","parseFloat","rect","jsx","style","defaultProps","undefined","propTypes","PT","node","string","props","name","Error","match","_default","exports","default"],"sources":["../../../../../src/shared/components/ScalableRect/index.tsx"],"sourcesContent":["import PT from 'prop-types';\nimport { type ReactNode } from 'react';\n\nimport './style.scss';\n\ntype PropsT = {\n children?: ReactNode;\n className?: string;\n ratio?: `${number}:${number}`,\n};\n\n/**\n * The `<ScalableRect>` component implements container keeping given aspect\n * ratio, while its width is altered.\n *\n * **Children:** Component children are rendered as the component's content.\n * @param {object} props\n * @param {string} [props.className] CSS class for component container.\n * @param {string} [props.ratio=1:1] Ratio of the rendered rectangle sides,\n * in `W:H` form.\n */\nconst ScalableRect: React.FunctionComponent<PropsT> = ({\n children,\n className,\n ratio,\n}) => {\n const aux = ratio!.split(':');\n const paddingBottom = `${(100 * parseFloat(aux[1])) / parseFloat(aux[0])}%`;\n\n /* NOTE: In case the following code looks strange to you, mind that we want to\n * allow the user to set custom styles on this component. If user passes in a\n * \"className\" prop (possibly \"styleName\", but that one is converted to\n * \"className\" by Babel just before being passed into this component), it\n * should not interfere with the sizing behavior, thus we need an extra <div>\n * level in this component; however, if user does not need a custom styling,\n * we can save one level of HTML code, so we do it. */\n const rect = (\n <div\n style={{ paddingBottom }}\n styleName=\"container\"\n >\n <div styleName=\"wrapper\">\n {children}\n </div>\n </div>\n );\n return className ? (\n <div className={className}>\n {rect}\n </div>\n ) : rect;\n};\n\nScalableRect.defaultProps = {\n children: null,\n className: undefined,\n ratio: '1:1',\n};\n\nScalableRect.propTypes = {\n children: PT.node,\n className: PT.string,\n ratio: (props, name) => {\n const ratio = props[name];\n\n // \"ratio\" prop is not required (defaults \"1:1\").\n if (ratio === undefined) return null;\n\n // If given, \"ratio\" must be a string.\n if (typeof ratio !== 'string') {\n return Error('\"ratio\" prop must be a string');\n }\n\n // If given, \"ratio\" must have \"H:W\" format.\n if (!ratio.match(/\\d\\.\\d+/)) {\n return Error('\"ratio\" prop must have \"H:W\" format');\n }\n\n // Everything looks right.\n return null;\n },\n};\n\nexport default ScalableRect;\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACAA,OAAA;AAAuC,IAAAC,WAAA,GAAAD,OAAA;AAUvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAME,YAA6C,GAAGA,CAAC;EACrDC,QAAQ;EACRC,SAAS;EACTC;AACF,CAAC,KAAK;EACJ,MAAMC,GAAG,GAAGD,KAAK,CAAEE,KAAK,CAAC,GAAG,CAAC;EAC7B,MAAMC,aAAa,GAAI,GAAG,GAAG,GAAGC,UAAU,CAACH,GAAG,CAAC,CAAC,CAAC,CAAC,GAAIG,UAAU,CAACH,GAAG,CAAC,CAAC,CAAC,CAAE,GAAE;;EAE3E;AACF;AACA;AACA;AACA;AACA;AACA;EACE,MAAMI,IAAI,gBACR,IAAAT,WAAA,CAAAU,GAAA;IACEC,KAAK,EAAE;MAAEJ;IAAc,CAAE;IACzBJ,SAAS,EAAC,yFAAW;IAAAD,QAAA,eAErB,IAAAF,WAAA,CAAAU,GAAA;MAAKP,SAAS,EAAC,uFAAS;MAAAD,QAAA,EACrBA;IAAQ,CACN;EAAC,CACH,CACN;EACD,OAAOC,SAAS,gBACd,IAAAH,WAAA,CAAAU,GAAA;IAAKP,SAAS,EAAEA,SAAU;IAAAD,QAAA,EACvBO;EAAI,CACF,CAAC,GACJA,IAAI;AACV,CAAC;AAEDR,YAAY,CAACW,YAAY,GAAG;EAC1BV,QAAQ,EAAE,IAAI;EACdC,SAAS,EAAEU,SAAS;EACpBT,KAAK,EAAE;AACT,CAAC;AAEDH,YAAY,CAACa,SAAS,GAAG;EACvBZ,QAAQ,EAAEa,kBAAE,CAACC,IAAI;EACjBb,SAAS,EAAEY,kBAAE,CAACE,MAAM;EACpBb,KAAK,EAAEA,CAACc,KAAK,EAAEC,IAAI,KAAK;IACtB,MAAMf,KAAK,GAAGc,KAAK,CAACC,IAAI,CAAC;;IAEzB;IACA,IAAIf,KAAK,KAAKS,SAAS,EAAE,OAAO,IAAI;;IAEpC;IACA,IAAI,OAAOT,KAAK,KAAK,QAAQ,EAAE;MAC7B,OAAOgB,KAAK,CAAC,+BAA+B,CAAC;IAC/C;;IAEA;IACA,IAAI,CAAChB,KAAK,CAACiB,KAAK,CAAC,SAAS,CAAC,EAAE;MAC3B,OAAOD,KAAK,CAAC,qCAAqC,CAAC;IACrD;;IAEA;IACA,OAAO,IAAI;EACb;AACF,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEavB,YAAY"}
1
+ {"version":3,"file":"index.js","names":["_propTypes","_interopRequireDefault","require","_jsxRuntime","ScalableRect","children","className","ratio","aux","split","paddingBottom","parseFloat","rect","jsx","style","defaultProps","undefined","propTypes","PT","node","string","props","name","Error","match","_default","exports","default"],"sources":["../../../../../src/shared/components/ScalableRect/index.tsx"],"sourcesContent":["import PT from 'prop-types';\nimport { type ReactNode } from 'react';\n\nimport './style.scss';\n\ntype PropsT = {\n children?: ReactNode;\n className?: string;\n ratio?: `${number}:${number}`,\n};\n\n/**\n * The `<ScalableRect>` component implements container keeping given aspect\n * ratio, while its width is altered.\n *\n * **Children:** Component children are rendered as the component's content.\n * @param {object} props\n * @param {string} [props.className] CSS class for component container.\n * @param {string} [props.ratio=1:1] Ratio of the rendered rectangle sides,\n * in `W:H` form.\n */\nconst ScalableRect: React.FunctionComponent<PropsT> = ({\n children,\n className,\n ratio,\n}) => {\n const aux = ratio!.split(':');\n const paddingBottom = `${(100 * parseFloat(aux[1])) / parseFloat(aux[0])}%`;\n\n /* NOTE: In case the following code looks strange to you, mind that we want to\n * allow the user to set custom styles on this component. If user passes in a\n * \"className\" prop (possibly \"styleName\", but that one is converted to\n * \"className\" by Babel just before being passed into this component), it\n * should not interfere with the sizing behavior, thus we need an extra <div>\n * level in this component; however, if user does not need a custom styling,\n * we can save one level of HTML code, so we do it. */\n const rect = (\n <div\n style={{ paddingBottom }}\n styleName=\"container\"\n >\n <div styleName=\"wrapper\">\n {children}\n </div>\n </div>\n );\n return className ? (\n <div className={className}>\n {rect}\n </div>\n ) : rect;\n};\n\nScalableRect.defaultProps = {\n children: null,\n className: undefined,\n ratio: '1:1',\n};\n\nScalableRect.propTypes = {\n children: PT.node,\n className: PT.string,\n ratio: (props, name) => {\n const ratio = props[name];\n\n // \"ratio\" prop is not required (defaults \"1:1\").\n if (ratio === undefined) return null;\n\n // If given, \"ratio\" must be a string.\n if (typeof ratio !== 'string') {\n return Error('\"ratio\" prop must be a string');\n }\n\n // If given, \"ratio\" must have \"H:W\" format.\n if (!ratio.match(/\\d+:\\d+/)) {\n return Error('\"ratio\" prop must have \"H:W\" format');\n }\n\n // Everything looks right.\n return null;\n },\n};\n\nexport default ScalableRect;\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACAA,OAAA;AAAuC,IAAAC,WAAA,GAAAD,OAAA;AAUvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAME,YAA6C,GAAGA,CAAC;EACrDC,QAAQ;EACRC,SAAS;EACTC;AACF,CAAC,KAAK;EACJ,MAAMC,GAAG,GAAGD,KAAK,CAAEE,KAAK,CAAC,GAAG,CAAC;EAC7B,MAAMC,aAAa,GAAI,GAAG,GAAG,GAAGC,UAAU,CAACH,GAAG,CAAC,CAAC,CAAC,CAAC,GAAIG,UAAU,CAACH,GAAG,CAAC,CAAC,CAAC,CAAE,GAAE;;EAE3E;AACF;AACA;AACA;AACA;AACA;AACA;EACE,MAAMI,IAAI,gBACR,IAAAT,WAAA,CAAAU,GAAA;IACEC,KAAK,EAAE;MAAEJ;IAAc,CAAE;IACzBJ,SAAS,EAAC,yFAAW;IAAAD,QAAA,eAErB,IAAAF,WAAA,CAAAU,GAAA;MAAKP,SAAS,EAAC,uFAAS;MAAAD,QAAA,EACrBA;IAAQ,CACN;EAAC,CACH,CACN;EACD,OAAOC,SAAS,gBACd,IAAAH,WAAA,CAAAU,GAAA;IAAKP,SAAS,EAAEA,SAAU;IAAAD,QAAA,EACvBO;EAAI,CACF,CAAC,GACJA,IAAI;AACV,CAAC;AAEDR,YAAY,CAACW,YAAY,GAAG;EAC1BV,QAAQ,EAAE,IAAI;EACdC,SAAS,EAAEU,SAAS;EACpBT,KAAK,EAAE;AACT,CAAC;AAEDH,YAAY,CAACa,SAAS,GAAG;EACvBZ,QAAQ,EAAEa,kBAAE,CAACC,IAAI;EACjBb,SAAS,EAAEY,kBAAE,CAACE,MAAM;EACpBb,KAAK,EAAEA,CAACc,KAAK,EAAEC,IAAI,KAAK;IACtB,MAAMf,KAAK,GAAGc,KAAK,CAACC,IAAI,CAAC;;IAEzB;IACA,IAAIf,KAAK,KAAKS,SAAS,EAAE,OAAO,IAAI;;IAEpC;IACA,IAAI,OAAOT,KAAK,KAAK,QAAQ,EAAE;MAC7B,OAAOgB,KAAK,CAAC,+BAA+B,CAAC;IAC/C;;IAEA;IACA,IAAI,CAAChB,KAAK,CAACiB,KAAK,CAAC,SAAS,CAAC,EAAE;MAC3B,OAAOD,KAAK,CAAC,qCAAqC,CAAC;IACrD;;IAEA;IACA,OAAO,IAAI;EACb;AACF,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEavB,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_reactThemes","_interopRequireDefault","require","_jsxRuntime","defaultTheme","Throbber","theme","jsxs","className","container","children","jsx","circle","ThemedThrobber","themed","propTypes","themeType","isRequired","_default","exports","default"],"sources":["../../../../../src/shared/components/Throbber/index.tsx"],"sourcesContent":["import themed, { type Theme } from '@dr.pogodin/react-themes';\n\nimport defaultTheme from './theme.scss';\n\ntype PropsT = {\n theme: Theme & {\n container?: string;\n circle?: string;\n };\n};\n\n/**\n * Throbber is an \"action in progress\" indicator, which renders\n * three bouncing circles as a simple pending activity indicator,\n * and can be further themed to a certain degree.\n * @param {object} [props] Component properties.\n * @param {ThrobberTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....]\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n */\nconst Throbber: React.FunctionComponent<PropsT> = ({ theme }) => (\n <span className={theme.container} styleName=\"container\">\n <span className={theme.circle} styleName=\"circle\" />\n <span className={theme.circle} styleName=\"circle\" />\n <span className={theme.circle} styleName=\"circle\" />\n </span>\n);\n\nconst ThemedThrobber = themed(\n Throbber,\n 'Throbber',\n [\n 'circle',\n 'container',\n ],\n defaultTheme,\n);\n\nThrobber.propTypes = {\n theme: ThemedThrobber.themeType.isRequired,\n};\n\nexport default ThemedThrobber;\n"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA8D,IAAAC,WAAA,GAAAD,OAAA;AAAA,MAAAE,YAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAW9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,QAAyC,GAAGA,CAAC;EAAEC;AAAM,CAAC,kBAC1D,IAAAH,WAAA,CAAAI,IAAA;EAAMC,SAAS,GAAEF,KAAK,CAACG,SAAS,GAAfH,KAAK,CAACG,SAAS,oGAAC;EAAAC,QAAA,gBAC/B,IAAAP,WAAA,CAAAQ,GAAA;IAAMH,SAAS,GAAEF,KAAK,CAACM,MAAM,GAAZN,KAAK,CAACM,MAAM;EAAC,CAAqB,CAAC,eACpD,IAAAT,WAAA,CAAAQ,GAAA;IAAMH,SAAS,GAAEF,KAAK,CAACM,MAAM,GAAZN,KAAK,CAACM,MAAM;EAAC,CAAqB,CAAC,eACpD,IAAAT,WAAA,CAAAQ,GAAA;IAAMH,SAAS,GAAEF,KAAK,CAACM,MAAM,GAAZN,KAAK,CAACM,MAAM;EAAC,CAAqB,CAAC;AAAA,CAChD,CACP;AAED,MAAMC,cAAc,GAAG,IAAAC,oBAAM,EAC3BT,QAAQ,EACR,UAAU,EACV,CACE,QAAQ,EACR,WAAW,CACZ,EACDD,YACF,CAAC;AAEDC,QAAQ,CAACU,SAAS,GAAG;EACnBT,KAAK,EAAEO,cAAc,CAACG,SAAS,CAACC;AAClC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaP,cAAc"}
1
+ {"version":3,"file":"index.js","names":["_reactThemes","_interopRequireDefault","require","_jsxRuntime","defaultTheme","Throbber","theme","jsxs","className","container","children","jsx","circle","ThemedThrobber","themed","propTypes","themeType","isRequired","_default","exports","default"],"sources":["../../../../../src/shared/components/Throbber/index.tsx"],"sourcesContent":["import themed, { type Theme } from '@dr.pogodin/react-themes';\n\nimport defaultTheme from './theme.scss';\n\ntype PropsT = {\n theme: Theme & {\n bouncing?: string;\n container?: string;\n circle?: string;\n };\n};\n\n/**\n * Throbber is an \"action in progress\" indicator, which renders\n * three bouncing circles as a simple pending activity indicator,\n * and can be further themed to a certain degree.\n * @param {object} [props] Component properties.\n * @param {ThrobberTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....]\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n */\nconst Throbber: React.FunctionComponent<PropsT> = ({ theme }) => (\n <span className={theme.container} styleName=\"container\">\n <span className={theme.circle} styleName=\"circle\" />\n <span className={theme.circle} styleName=\"circle\" />\n <span className={theme.circle} styleName=\"circle\" />\n </span>\n);\n\nconst ThemedThrobber = themed(\n Throbber,\n 'Throbber',\n [\n 'circle',\n 'container',\n ],\n defaultTheme,\n);\n\nThrobber.propTypes = {\n theme: ThemedThrobber.themeType.isRequired,\n};\n\nexport default ThemedThrobber;\n"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA8D,IAAAC,WAAA,GAAAD,OAAA;AAAA,MAAAE,YAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAY9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,QAAyC,GAAGA,CAAC;EAAEC;AAAM,CAAC,kBAC1D,IAAAH,WAAA,CAAAI,IAAA;EAAMC,SAAS,GAAEF,KAAK,CAACG,SAAS,GAAfH,KAAK,CAACG,SAAS,oGAAC;EAAAC,QAAA,gBAC/B,IAAAP,WAAA,CAAAQ,GAAA;IAAMH,SAAS,GAAEF,KAAK,CAACM,MAAM,GAAZN,KAAK,CAACM,MAAM;EAAC,CAAqB,CAAC,eACpD,IAAAT,WAAA,CAAAQ,GAAA;IAAMH,SAAS,GAAEF,KAAK,CAACM,MAAM,GAAZN,KAAK,CAACM,MAAM;EAAC,CAAqB,CAAC,eACpD,IAAAT,WAAA,CAAAQ,GAAA;IAAMH,SAAS,GAAEF,KAAK,CAACM,MAAM,GAAZN,KAAK,CAACM,MAAM;EAAC,CAAqB,CAAC;AAAA,CAChD,CACP;AAED,MAAMC,cAAc,GAAG,IAAAC,oBAAM,EAC3BT,QAAQ,EACR,UAAU,EACV,CACE,QAAQ,EACR,WAAW,CACZ,EACDD,YACF,CAAC;AAEDC,QAAQ,CAACU,SAAS,GAAG;EACnBT,KAAK,EAAEO,cAAc,CAACG,SAAS,CAACC;AAClC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaP,cAAc"}
@@ -156,7 +156,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var prop
156
156
  \******************************************************/
157
157
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
158
158
 
159
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ \"prop-types\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ \"./src/shared/components/ScalableRect/style.scss\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n/**\n * The `<ScalableRect>` component implements container keeping given aspect\n * ratio, while its width is altered.\n *\n * **Children:** Component children are rendered as the component's content.\n * @param {object} props\n * @param {string} [props.className] CSS class for component container.\n * @param {string} [props.ratio=1:1] Ratio of the rendered rectangle sides,\n * in `W:H` form.\n */\nconst ScalableRect = _ref => {\n let {\n children,\n className,\n ratio\n } = _ref;\n const aux = ratio.split(':');\n const paddingBottom = `${100 * parseFloat(aux[1]) / parseFloat(aux[0])}%`;\n\n /* NOTE: In case the following code looks strange to you, mind that we want to\n * allow the user to set custom styles on this component. If user passes in a\n * \"className\" prop (possibly \"styleName\", but that one is converted to\n * \"className\" by Babel just before being passed into this component), it\n * should not interfere with the sizing behavior, thus we need an extra <div>\n * level in this component; however, if user does not need a custom styling,\n * we can save one level of HTML code, so we do it. */\n const rect = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n style: {\n paddingBottom\n },\n className: \"-dr-pogodin-react-utils___src-shared-components-ScalableRect-style___container___EznFz3\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n className: \"-dr-pogodin-react-utils___src-shared-components-ScalableRect-style___wrapper___0vb7tq\",\n children: children\n })\n });\n return className ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n className: className,\n children: rect\n }) : rect;\n};\nScalableRect.defaultProps = {\n children: null,\n className: undefined,\n ratio: '1:1'\n};\nScalableRect.propTypes = {\n children: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),\n className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),\n ratio: (props, name) => {\n const ratio = props[name];\n\n // \"ratio\" prop is not required (defaults \"1:1\").\n if (ratio === undefined) return null;\n\n // If given, \"ratio\" must be a string.\n if (typeof ratio !== 'string') {\n return Error('\"ratio\" prop must be a string');\n }\n\n // If given, \"ratio\" must have \"H:W\" format.\n if (!ratio.match(/\\d\\.\\d+/)) {\n return Error('\"ratio\" prop must have \"H:W\" format');\n }\n\n // Everything looks right.\n return null;\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ScalableRect);\n\n//# sourceURL=webpack://@dr.pogodin/react-utils/./src/shared/components/ScalableRect/index.tsx?");
159
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ \"prop-types\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ \"./src/shared/components/ScalableRect/style.scss\");\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ \"./node_modules/react/jsx-runtime.js\");\n\n\n\n\n/**\n * The `<ScalableRect>` component implements container keeping given aspect\n * ratio, while its width is altered.\n *\n * **Children:** Component children are rendered as the component's content.\n * @param {object} props\n * @param {string} [props.className] CSS class for component container.\n * @param {string} [props.ratio=1:1] Ratio of the rendered rectangle sides,\n * in `W:H` form.\n */\nconst ScalableRect = _ref => {\n let {\n children,\n className,\n ratio\n } = _ref;\n const aux = ratio.split(':');\n const paddingBottom = `${100 * parseFloat(aux[1]) / parseFloat(aux[0])}%`;\n\n /* NOTE: In case the following code looks strange to you, mind that we want to\n * allow the user to set custom styles on this component. If user passes in a\n * \"className\" prop (possibly \"styleName\", but that one is converted to\n * \"className\" by Babel just before being passed into this component), it\n * should not interfere with the sizing behavior, thus we need an extra <div>\n * level in this component; however, if user does not need a custom styling,\n * we can save one level of HTML code, so we do it. */\n const rect = /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n style: {\n paddingBottom\n },\n className: \"-dr-pogodin-react-utils___src-shared-components-ScalableRect-style___container___EznFz3\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n className: \"-dr-pogodin-react-utils___src-shared-components-ScalableRect-style___wrapper___0vb7tq\",\n children: children\n })\n });\n return className ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(\"div\", {\n className: className,\n children: rect\n }) : rect;\n};\nScalableRect.defaultProps = {\n children: null,\n className: undefined,\n ratio: '1:1'\n};\nScalableRect.propTypes = {\n children: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),\n className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),\n ratio: (props, name) => {\n const ratio = props[name];\n\n // \"ratio\" prop is not required (defaults \"1:1\").\n if (ratio === undefined) return null;\n\n // If given, \"ratio\" must be a string.\n if (typeof ratio !== 'string') {\n return Error('\"ratio\" prop must be a string');\n }\n\n // If given, \"ratio\" must have \"H:W\" format.\n if (!ratio.match(/\\d+:\\d+/)) {\n return Error('\"ratio\" prop must have \"H:W\" format');\n }\n\n // Everything looks right.\n return null;\n }\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (ScalableRect);\n\n//# sourceURL=webpack://@dr.pogodin/react-utils/./src/shared/components/ScalableRect/index.tsx?");
160
160
 
161
161
  /***/ }),
162
162
 
@@ -16,6 +16,6 @@
16
16
  * we can save one level of HTML code, so we do it. */const rect=/*#__PURE__*/(0,_jsxRuntime.jsx)("div",{style:{paddingBottom},className:"EznFz3",children:/*#__PURE__*/(0,_jsxRuntime.jsx)("div",{className:"_0vb7tq",children:children})});return className?/*#__PURE__*/(0,_jsxRuntime.jsx)("div",{className:className,children:rect}):rect};ScalableRect.defaultProps={children:null,className:undefined,ratio:"1:1"};ScalableRect.propTypes={children:_propTypes.default.node,className:_propTypes.default.string,ratio:(props,name)=>{const ratio=props[name];// "ratio" prop is not required (defaults "1:1").
17
17
  if(ratio===undefined)return null;// If given, "ratio" must be a string.
18
18
  if(typeof ratio!=="string"){return Error("\"ratio\" prop must be a string")}// If given, "ratio" must have "H:W" format.
19
- if(!ratio.match(/\d\.\d+/)){return Error("\"ratio\" prop must have \"H:W\" format")}// Everything looks right.
19
+ if(!ratio.match(/\d+:\d+/)){return Error("\"ratio\" prop must have \"H:W\" format")}// Everything looks right.
20
20
  return null}};var _default=exports.default=ScalableRect;
21
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_propTypes","_interopRequireDefault","require","_jsxRuntime","ScalableRect","children","className","ratio","aux","split","paddingBottom","parseFloat","rect","jsx","style","defaultProps","undefined","propTypes","PT","node","string","props","name","Error","match","_default","exports","default"],"sources":["../../../../../src/shared/components/ScalableRect/index.tsx"],"sourcesContent":["import PT from 'prop-types';\nimport { type ReactNode } from 'react';\n\nimport './style.scss';\n\ntype PropsT = {\n children?: ReactNode;\n className?: string;\n ratio?: `${number}:${number}`,\n};\n\n/**\n * The `<ScalableRect>` component implements container keeping given aspect\n * ratio, while its width is altered.\n *\n * **Children:** Component children are rendered as the component's content.\n * @param {object} props\n * @param {string} [props.className] CSS class for component container.\n * @param {string} [props.ratio=1:1] Ratio of the rendered rectangle sides,\n * in `W:H` form.\n */\nconst ScalableRect: React.FunctionComponent<PropsT> = ({\n children,\n className,\n ratio,\n}) => {\n const aux = ratio!.split(':');\n const paddingBottom = `${(100 * parseFloat(aux[1])) / parseFloat(aux[0])}%`;\n\n /* NOTE: In case the following code looks strange to you, mind that we want to\n * allow the user to set custom styles on this component. If user passes in a\n * \"className\" prop (possibly \"styleName\", but that one is converted to\n * \"className\" by Babel just before being passed into this component), it\n * should not interfere with the sizing behavior, thus we need an extra <div>\n * level in this component; however, if user does not need a custom styling,\n * we can save one level of HTML code, so we do it. */\n const rect = (\n <div\n style={{ paddingBottom }}\n styleName=\"container\"\n >\n <div styleName=\"wrapper\">\n {children}\n </div>\n </div>\n );\n return className ? (\n <div className={className}>\n {rect}\n </div>\n ) : rect;\n};\n\nScalableRect.defaultProps = {\n children: null,\n className: undefined,\n ratio: '1:1',\n};\n\nScalableRect.propTypes = {\n children: PT.node,\n className: PT.string,\n ratio: (props, name) => {\n const ratio = props[name];\n\n // \"ratio\" prop is not required (defaults \"1:1\").\n if (ratio === undefined) return null;\n\n // If given, \"ratio\" must be a string.\n if (typeof ratio !== 'string') {\n return Error('\"ratio\" prop must be a string');\n }\n\n // If given, \"ratio\" must have \"H:W\" format.\n if (!ratio.match(/\\d\\.\\d+/)) {\n return Error('\"ratio\" prop must have \"H:W\" format');\n }\n\n // Everything looks right.\n return null;\n },\n};\n\nexport default ScalableRect;\n"],"mappings":"gLAAA,IAAAA,UAAA,CAAAC,sBAAA,CAAAC,OAAA,gBACAA,OAAA,UAAuC,IAAAC,WAAA,CAAAD,OAAA,sBAUvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACA,KAAM,CAAAE,YAA6C,CAAGA,CAAC,CACrDC,QAAQ,CACRC,SAAS,CACTC,KACF,CAAC,GAAK,CACJ,KAAM,CAAAC,GAAG,CAAGD,KAAK,CAAEE,KAAK,CAAC,GAAG,CAAC,CAC7B,KAAM,CAAAC,aAAa,CAAI,GAAG,GAAG,CAAGC,UAAU,CAACH,GAAG,CAAC,CAAC,CAAC,CAAC,CAAIG,UAAU,CAACH,GAAG,CAAC,CAAC,CAAC,CAAE,GAAE,CAE3E;AACF;AACA;AACA;AACA;AACA;AACA,wDACE,KAAM,CAAAI,IAAI,cACR,GAAAT,WAAA,CAAAU,GAAA,SACEC,KAAK,CAAE,CAAEJ,aAAc,CAAE,CACzBJ,SAAS,CAAC,QAAW,CAAAD,QAAA,cAErB,GAAAF,WAAA,CAAAU,GAAA,SAAKP,SAAS,CAAC,SAAS,CAAAD,QAAA,CACrBA,QAAQ,CACN,CAAC,CACH,CACN,CACD,MAAO,CAAAC,SAAS,cACd,GAAAH,WAAA,CAAAU,GAAA,SAAKP,SAAS,CAAEA,SAAU,CAAAD,QAAA,CACvBO,IAAI,CACF,CAAC,CACJA,IACN,CAAC,CAEDR,YAAY,CAACW,YAAY,CAAG,CAC1BV,QAAQ,CAAE,IAAI,CACdC,SAAS,CAAEU,SAAS,CACpBT,KAAK,CAAE,KACT,CAAC,CAEDH,YAAY,CAACa,SAAS,CAAG,CACvBZ,QAAQ,CAAEa,kBAAE,CAACC,IAAI,CACjBb,SAAS,CAAEY,kBAAE,CAACE,MAAM,CACpBb,KAAK,CAAEA,CAACc,KAAK,CAAEC,IAAI,GAAK,CACtB,KAAM,CAAAf,KAAK,CAAGc,KAAK,CAACC,IAAI,CAAC,CAEzB;AACA,GAAIf,KAAK,GAAKS,SAAS,CAAE,MAAO,KAAI,CAEpC;AACA,GAAI,MAAO,CAAAT,KAAK,GAAK,QAAQ,CAAE,CAC7B,MAAO,CAAAgB,KAAK,CAAC,iCAA+B,CAC9C,CAEA;AACA,GAAI,CAAChB,KAAK,CAACiB,KAAK,CAAC,SAAS,CAAC,CAAE,CAC3B,MAAO,CAAAD,KAAK,CAAC,yCAAqC,CACpD,CAEA;AACA,MAAO,KACT,CACF,CAAC,CAAC,IAAAE,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAEavB,YAAY"}
1
+ {"version":3,"file":"index.js","names":["_propTypes","_interopRequireDefault","require","_jsxRuntime","ScalableRect","children","className","ratio","aux","split","paddingBottom","parseFloat","rect","jsx","style","defaultProps","undefined","propTypes","PT","node","string","props","name","Error","match","_default","exports","default"],"sources":["../../../../../src/shared/components/ScalableRect/index.tsx"],"sourcesContent":["import PT from 'prop-types';\nimport { type ReactNode } from 'react';\n\nimport './style.scss';\n\ntype PropsT = {\n children?: ReactNode;\n className?: string;\n ratio?: `${number}:${number}`,\n};\n\n/**\n * The `<ScalableRect>` component implements container keeping given aspect\n * ratio, while its width is altered.\n *\n * **Children:** Component children are rendered as the component's content.\n * @param {object} props\n * @param {string} [props.className] CSS class for component container.\n * @param {string} [props.ratio=1:1] Ratio of the rendered rectangle sides,\n * in `W:H` form.\n */\nconst ScalableRect: React.FunctionComponent<PropsT> = ({\n children,\n className,\n ratio,\n}) => {\n const aux = ratio!.split(':');\n const paddingBottom = `${(100 * parseFloat(aux[1])) / parseFloat(aux[0])}%`;\n\n /* NOTE: In case the following code looks strange to you, mind that we want to\n * allow the user to set custom styles on this component. If user passes in a\n * \"className\" prop (possibly \"styleName\", but that one is converted to\n * \"className\" by Babel just before being passed into this component), it\n * should not interfere with the sizing behavior, thus we need an extra <div>\n * level in this component; however, if user does not need a custom styling,\n * we can save one level of HTML code, so we do it. */\n const rect = (\n <div\n style={{ paddingBottom }}\n styleName=\"container\"\n >\n <div styleName=\"wrapper\">\n {children}\n </div>\n </div>\n );\n return className ? (\n <div className={className}>\n {rect}\n </div>\n ) : rect;\n};\n\nScalableRect.defaultProps = {\n children: null,\n className: undefined,\n ratio: '1:1',\n};\n\nScalableRect.propTypes = {\n children: PT.node,\n className: PT.string,\n ratio: (props, name) => {\n const ratio = props[name];\n\n // \"ratio\" prop is not required (defaults \"1:1\").\n if (ratio === undefined) return null;\n\n // If given, \"ratio\" must be a string.\n if (typeof ratio !== 'string') {\n return Error('\"ratio\" prop must be a string');\n }\n\n // If given, \"ratio\" must have \"H:W\" format.\n if (!ratio.match(/\\d+:\\d+/)) {\n return Error('\"ratio\" prop must have \"H:W\" format');\n }\n\n // Everything looks right.\n return null;\n },\n};\n\nexport default ScalableRect;\n"],"mappings":"gLAAA,IAAAA,UAAA,CAAAC,sBAAA,CAAAC,OAAA,gBACAA,OAAA,UAAuC,IAAAC,WAAA,CAAAD,OAAA,sBAUvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACA,KAAM,CAAAE,YAA6C,CAAGA,CAAC,CACrDC,QAAQ,CACRC,SAAS,CACTC,KACF,CAAC,GAAK,CACJ,KAAM,CAAAC,GAAG,CAAGD,KAAK,CAAEE,KAAK,CAAC,GAAG,CAAC,CAC7B,KAAM,CAAAC,aAAa,CAAI,GAAG,GAAG,CAAGC,UAAU,CAACH,GAAG,CAAC,CAAC,CAAC,CAAC,CAAIG,UAAU,CAACH,GAAG,CAAC,CAAC,CAAC,CAAE,GAAE,CAE3E;AACF;AACA;AACA;AACA;AACA;AACA,wDACE,KAAM,CAAAI,IAAI,cACR,GAAAT,WAAA,CAAAU,GAAA,SACEC,KAAK,CAAE,CAAEJ,aAAc,CAAE,CACzBJ,SAAS,CAAC,QAAW,CAAAD,QAAA,cAErB,GAAAF,WAAA,CAAAU,GAAA,SAAKP,SAAS,CAAC,SAAS,CAAAD,QAAA,CACrBA,QAAQ,CACN,CAAC,CACH,CACN,CACD,MAAO,CAAAC,SAAS,cACd,GAAAH,WAAA,CAAAU,GAAA,SAAKP,SAAS,CAAEA,SAAU,CAAAD,QAAA,CACvBO,IAAI,CACF,CAAC,CACJA,IACN,CAAC,CAEDR,YAAY,CAACW,YAAY,CAAG,CAC1BV,QAAQ,CAAE,IAAI,CACdC,SAAS,CAAEU,SAAS,CACpBT,KAAK,CAAE,KACT,CAAC,CAEDH,YAAY,CAACa,SAAS,CAAG,CACvBZ,QAAQ,CAAEa,kBAAE,CAACC,IAAI,CACjBb,SAAS,CAAEY,kBAAE,CAACE,MAAM,CACpBb,KAAK,CAAEA,CAACc,KAAK,CAAEC,IAAI,GAAK,CACtB,KAAM,CAAAf,KAAK,CAAGc,KAAK,CAACC,IAAI,CAAC,CAEzB;AACA,GAAIf,KAAK,GAAKS,SAAS,CAAE,MAAO,KAAI,CAEpC;AACA,GAAI,MAAO,CAAAT,KAAK,GAAK,QAAQ,CAAE,CAC7B,MAAO,CAAAgB,KAAK,CAAC,iCAA+B,CAC9C,CAEA;AACA,GAAI,CAAChB,KAAK,CAACiB,KAAK,CAAC,SAAS,CAAC,CAAE,CAC3B,MAAO,CAAAD,KAAK,CAAC,yCAAqC,CACpD,CAEA;AACA,MAAO,KACT,CACF,CAAC,CAAC,IAAAE,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAEavB,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_reactThemes","_interopRequireDefault","require","_jsxRuntime","defaultTheme","Throbber","theme","jsxs","className","container","children","jsx","circle","ThemedThrobber","themed","propTypes","themeType","isRequired","_default","exports","default"],"sources":["../../../../../src/shared/components/Throbber/index.tsx"],"sourcesContent":["import themed, { type Theme } from '@dr.pogodin/react-themes';\n\nimport defaultTheme from './theme.scss';\n\ntype PropsT = {\n theme: Theme & {\n container?: string;\n circle?: string;\n };\n};\n\n/**\n * Throbber is an \"action in progress\" indicator, which renders\n * three bouncing circles as a simple pending activity indicator,\n * and can be further themed to a certain degree.\n * @param {object} [props] Component properties.\n * @param {ThrobberTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....]\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n */\nconst Throbber: React.FunctionComponent<PropsT> = ({ theme }) => (\n <span className={theme.container} styleName=\"container\">\n <span className={theme.circle} styleName=\"circle\" />\n <span className={theme.circle} styleName=\"circle\" />\n <span className={theme.circle} styleName=\"circle\" />\n </span>\n);\n\nconst ThemedThrobber = themed(\n Throbber,\n 'Throbber',\n [\n 'circle',\n 'container',\n ],\n defaultTheme,\n);\n\nThrobber.propTypes = {\n theme: ThemedThrobber.themeType.isRequired,\n};\n\nexport default ThemedThrobber;\n"],"mappings":"gLAAA,IAAAA,YAAA,CAAAC,sBAAA,CAAAC,OAAA,8BAA8D,IAAAC,WAAA,CAAAD,OAAA,4BAAAE,YAAA,+GAW9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACA,KAAM,CAAAC,QAAyC,CAAGA,CAAC,CAAEC,KAAM,CAAC,gBAC1D,GAAAH,WAAA,CAAAI,IAAA,UAAMC,SAAS,EAAEF,KAAK,CAACG,SAAS,CAAfH,KAAK,CAACG,SAAS,kBAAC,CAAAC,QAAA,eAC/B,GAAAP,WAAA,CAAAQ,GAAA,UAAMH,SAAS,EAAEF,KAAK,CAACM,MAAM,CAAZN,KAAK,CAACM,MAAM,iBAAC,CAAqB,CAAC,cACpD,GAAAT,WAAA,CAAAQ,GAAA,UAAMH,SAAS,EAAEF,KAAK,CAACM,MAAM,CAAZN,KAAK,CAACM,MAAM,iBAAC,CAAqB,CAAC,cACpD,GAAAT,WAAA,CAAAQ,GAAA,UAAMH,SAAS,EAAEF,KAAK,CAACM,MAAM,CAAZN,KAAK,CAACM,MAAM,iBAAC,CAAqB,CAAC,EAChD,CACP,CAED,KAAM,CAAAC,cAAc,CAAG,GAAAC,oBAAM,EAC3BT,QAAQ,CACR,UAAU,CACV,CACE,QAAQ,CACR,WAAW,CACZ,CACDD,YACF,CAAC,CAEDC,QAAQ,CAACU,SAAS,CAAG,CACnBT,KAAK,CAAEO,cAAc,CAACG,SAAS,CAACC,UAClC,CAAC,CAAC,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAEaP,cAAc"}
1
+ {"version":3,"file":"index.js","names":["_reactThemes","_interopRequireDefault","require","_jsxRuntime","defaultTheme","Throbber","theme","jsxs","className","container","children","jsx","circle","ThemedThrobber","themed","propTypes","themeType","isRequired","_default","exports","default"],"sources":["../../../../../src/shared/components/Throbber/index.tsx"],"sourcesContent":["import themed, { type Theme } from '@dr.pogodin/react-themes';\n\nimport defaultTheme from './theme.scss';\n\ntype PropsT = {\n theme: Theme & {\n bouncing?: string;\n container?: string;\n circle?: string;\n };\n};\n\n/**\n * Throbber is an \"action in progress\" indicator, which renders\n * three bouncing circles as a simple pending activity indicator,\n * and can be further themed to a certain degree.\n * @param {object} [props] Component properties.\n * @param {ThrobberTheme} [props.theme] _Ad hoc_ theme.\n * @param {...any} [props....]\n * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties)\n */\nconst Throbber: React.FunctionComponent<PropsT> = ({ theme }) => (\n <span className={theme.container} styleName=\"container\">\n <span className={theme.circle} styleName=\"circle\" />\n <span className={theme.circle} styleName=\"circle\" />\n <span className={theme.circle} styleName=\"circle\" />\n </span>\n);\n\nconst ThemedThrobber = themed(\n Throbber,\n 'Throbber',\n [\n 'circle',\n 'container',\n ],\n defaultTheme,\n);\n\nThrobber.propTypes = {\n theme: ThemedThrobber.themeType.isRequired,\n};\n\nexport default ThemedThrobber;\n"],"mappings":"gLAAA,IAAAA,YAAA,CAAAC,sBAAA,CAAAC,OAAA,8BAA8D,IAAAC,WAAA,CAAAD,OAAA,4BAAAE,YAAA,+GAY9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GACA,KAAM,CAAAC,QAAyC,CAAGA,CAAC,CAAEC,KAAM,CAAC,gBAC1D,GAAAH,WAAA,CAAAI,IAAA,UAAMC,SAAS,EAAEF,KAAK,CAACG,SAAS,CAAfH,KAAK,CAACG,SAAS,kBAAC,CAAAC,QAAA,eAC/B,GAAAP,WAAA,CAAAQ,GAAA,UAAMH,SAAS,EAAEF,KAAK,CAACM,MAAM,CAAZN,KAAK,CAACM,MAAM,iBAAC,CAAqB,CAAC,cACpD,GAAAT,WAAA,CAAAQ,GAAA,UAAMH,SAAS,EAAEF,KAAK,CAACM,MAAM,CAAZN,KAAK,CAACM,MAAM,iBAAC,CAAqB,CAAC,cACpD,GAAAT,WAAA,CAAAQ,GAAA,UAAMH,SAAS,EAAEF,KAAK,CAACM,MAAM,CAAZN,KAAK,CAACM,MAAM,iBAAC,CAAqB,CAAC,EAChD,CACP,CAED,KAAM,CAAAC,cAAc,CAAG,GAAAC,oBAAM,EAC3BT,QAAQ,CACR,UAAU,CACV,CACE,QAAQ,CACR,WAAW,CACZ,CACDD,YACF,CAAC,CAEDC,QAAQ,CAACU,SAAS,CAAG,CACnBT,KAAK,CAAEO,cAAc,CAACG,SAAS,CAACC,UAClC,CAAC,CAAC,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAEaP,cAAc"}
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see web.bundle.js.LICENSE.txt */
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__={88: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__(120);let inj={};const metaElement="undefined"!=typeof document?document.querySelector('meta[itemprop="drpruinj"]'):null;if(metaElement){metaElement.remove();let data=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.decode64(metaElement.content);const{key:key}=(0,_shared_utils_isomorphy_buildInfo__WEBPACK_IMPORTED_MODULE_2__.J)(),d=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().cipher.createDecipher("AES-CBC",key);d.start({iv:data.slice(0,key.length)}),d.update(node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.createBuffer(data.slice(key.length))),d.finish(),data=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.decodeUtf8(d.output.data),inj=eval(`(${data})`)}else inj={};function getInj(){return inj}},7:function(e,t,r){r.d(t,{Z:function(){return l}}),r(156);var n=r(899),o=r(715),i=r(128),a=r(88),c=r(893);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=document.getElementById("react-view");if(!r)throw Error("Failed to find container for React app");const l=(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(l):(0,o.hydrateRoot)(r,l)}},120: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)},848: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},463: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(120),o=r(848);function i(){return!1}function a(){return!0}function c(){return(0,n.J)().timestamp}},911: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__(463);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 l=e.indexOf(";",i);if(-1===l)l=e.length;else if(l<c){i=e.lastIndexOf(";",c-1)+1;continue}var _=e.slice(i,c).trim();if(void 0===r[_]){var s=e.slice(c+1,l).trim();34===s.charCodeAt(0)&&(s=s.slice(1,-1)),r[_]=a(s,n)}i=l+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 l=c(t);if(l&&!n.test(l))throw new TypeError("argument val is invalid");var _=e+"="+l;if(null!=a.maxAge){var s=a.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");_+="; Max-Age="+Math.floor(s)}if(a.domain){if(!n.test(a.domain))throw new TypeError("option domain is invalid");_+="; Domain="+a.domain}if(a.path){if(!n.test(a.path))throw new TypeError("option path is invalid");_+="; 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");_+="; Expires="+u.toUTCString()}if(a.httpOnly&&(_+="; HttpOnly"),a.secure&&(_+="; Secure"),a.priority)switch("string"==typeof a.priority?a.priority.toLowerCase():a.priority){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; 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:_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"strict":_+="; SameSite=Strict";break;case"none":_+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return _};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,l={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var n,i={},_=null,s=null;for(n in void 0!==r&&(_=""+r),void 0!==t.key&&(_=""+t.key),void 0!==t.ref&&(s=t.ref),t)a.call(t,n)&&!l.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:_,ref:s,props:i,_owner:c.current}}t.Fragment=i,t.jsx=_,t.jsxs=_},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 u.Barrier},BaseModal:function(){return ae},Button:function(){return W},Checkbox:function(){return K},Dropdown:function(){return z},Emitter:function(){return u.Emitter},GlobalStateProvider:function(){return d.GlobalStateProvider},Input:function(){return G},JU:function(){return S},Link:function(){return j},MetaTags:function(){return re},Modal:function(){return le},NavLink:function(){return _e},PT:function(){return E},PageLayout:function(){return J},Rgs:function(){return p()},ScalableRect:function(){return ue},Semaphore:function(){return u.Semaphore},ThemeProvider:function(){return e.ThemeProvider},Throbber:function(){return fe},WithTooltip:function(){return xe},YouTubeVideo:function(){return Se},api:function(){return R()},client:function(){return qe},config:function(){return i},getGlobalState:function(){return d.getGlobalState},getSsrContext:function(){return f},isomorphy:function(){return a},server:function(){return Le},splitComponent:function(){return C},themed:function(){return O},time:function(){return h},useAsyncCollection:function(){return d.useAsyncCollection},useAsyncData:function(){return d.useAsyncData},useGlobalState:function(){return d.useGlobalState},webpack:function(){return n},withRetries:function(){return L}});var e=__webpack_require__(198),t=__webpack_require__.n(e),r=__webpack_require__(848),n=__webpack_require__(911);const o=(r.b?__webpack_require__(88).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__(463),c=__webpack_require__(489),l=__webpack_require__(760),_=__webpack_require__.n(l),s=__webpack_require__(156),u=__webpack_require__(269),d=__webpack_require__(899),p=__webpack_require__.n(d);const{getSsrContext:f}=p(),m={DAY_MS:u.DAY_MS,HOUR_MS:u.HOUR_MS,MIN_MS:u.MIN_MS,SEC_MS:u.SEC_MS,YEAR_MS:u.YEAR_MS,now:Date.now,timer:u.timer,useCurrent:function(){let{autorefresh:e=!1,globalStatePath:t="currentTime",precision:r=5*u.SEC_MS}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[n,o]=(0,d.useGlobalState)(t,Date.now);return(0,s.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=f(!1),[n,o]=(0,d.useGlobalState)(t,(()=>{var t;const n=e&&(null==r||null===(t=r.req)||void 0===t||null===(t=t.cookies)||void 0===t?void 0:t[e]);return n?parseInt(n,10):0}));return(0,s.useEffect)((()=>{const t=(new Date).getTimezoneOffset();o(t),e&&(document.cookie=c.serialize(e,t.toString(),{path:"/"}))}),[e,o]),n}};var h=Object.assign(_(),m),E=__webpack_require__(99),b=__webpack_require__.n(E),g=__webpack_require__(893);let w;a.IS_CLIENT_SIDE&&(w=__webpack_require__(88).Z().CHUNK_GROUPS||{});const v={};function y(){return(0,a.getBuildInfo)().publicPath}function T(e,t,r){let n;const o=`${y()}/${e}`,i=`${document.location.origin}${o}`;if(!t.has(i)){let e=document.querySelector(`link[href="${o}"]`);e||(e=document.createElement("link"),e.setAttribute("rel","stylesheet"),e.setAttribute("href",o),document.head.appendChild(e)),n=new u.Barrier,e.addEventListener("load",(()=>n.resolve())),e.addEventListener("error",(()=>n.resolve()))}if(r){const e=v[o]||0;v[o]=1+e}return n}function x(e,t){if(!t[e])throw Error(`Unknown chunk name "${e}"`)}function P(e,t,r){const n=[],o=t[e],i=function(){const e=new Set,{styleSheets:t}=document;for(let r=0;r<t.length;++r){const{href:n}=t[r];n&&e.add(n)}return e}();for(let e=0;e<o.length;++e){const t=o[e];if(t.endsWith(".css")){const e=T(t,i,r);e&&n.push(e)}}return n.length?Promise.allSettled(n).then():Promise.resolve()}const k=new Set;function C(e){let{chunkName:t,getComponent:r,placeholder:n}=e;if(a.IS_CLIENT_SIDE&&x(t,w),k.has(t))throw Error(`Repeated splitComponent() call for the chunk "${t}"`);k.add(t);const o=(0,s.lazy)((async()=>{const e=await r(),n="default"in e?e.default:e;a.IS_CLIENT_SIDE&&await P(t,w,!1);const o=(0,s.forwardRef)(((e,r)=>{let{children:o,...i}=e;if(a.IS_SERVER_SIDE){const{chunkGroups:e,chunks:r}=f();x(t,e),r.includes(t)||r.push(t)}return(0,s.useInsertionEffect)((()=>(P(t,w,!0),()=>function(e,t){const r=t[e];for(let e=0;e<r.length;++e){const t=r[e];if(t.endsWith(".css")){const e=`${y()}/${t}`;--v[e]<=0&&document.head.querySelector(`link[href="${e}"]`).remove()}}}(t,w))),[]),(0,g.jsx)(n,{ref:r,...i,children:o})}));return{default:o}})),i=e=>{let{children:t,...r}=e;return(0,g.jsx)(s.Suspense,{fallback:n,children:(0,g.jsx)(o,{...r,children:t})})};return i.propTypes={children:b().node},i.defaultProps={children:void 0},i}const O=t();let A;O.COMPOSE=e.COMPOSE,O.PRIORITY=e.PRIORITY;try{A=process.env.NODE_CONFIG_ENV}catch{}const S="production"!==(A||"production")?n.requireWeak("./jest","/"):null;async function L(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 h.timer(r)}}var q=__webpack_require__(300),R=__webpack_require__.n(q),N=__webpack_require__(128);const M=e=>{let{children:t,className:r,disabled:n,enforceA:o,keepScrollPosition:i,onClick:a,onMouseDown:c,openNewTab:l,replace:_,routerLinkType:s,to:u,...d}=e;if(n||o||l||null!=u&&u.match(/^(#|(https?|mailto):)/))return(0,g.jsx)("a",{className:(r?r+" ":"")+"zH52sA",href:u,onClick:n?e=>e.preventDefault():a,onMouseDown:n?e=>e.preventDefault():c,rel:"noopener noreferrer",target:l?"_blank":"",children:t});const p=s;return(0,g.jsx)(p,{className:r,onMouseDown:c,replace:_,to:u,onClick:e=>{a&&a(e),i||window.scroll(0,0)},...d,children:t})};M.defaultProps={children:null,className:"",disabled:!1,enforceA:!1,keepScrollPosition:!1,onClick:void 0,onMouseDown:void 0,openNewTab:!1,replace:!1,to:""},M.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])};var D=M,j=e=>(0,g.jsx)(D,{...e,routerLinkType:N.Link});const B=e=>{let{active:t,children:r,disabled:n,enforceA:o,onClick:i,onMouseDown:a,openNewTab:c,replace:l,theme:_,to:s}=e,u=_.button;return t&&_.active&&(u+=` ${_.active}`),n?(_.disabled&&(u+=` ${_.disabled}`),(0,g.jsx)("div",{className:u,children:r})):s?(0,g.jsx)(j,{className:u,enforceA:o,onClick:i,onMouseDown:a,openNewTab:c,replace:l,to:s,children:r}):(0,g.jsx)("div",{className:u,onClick:i,onKeyDown:i,onMouseDown:a,role:"button",tabIndex:0,children:r})},I=t()(B,"Button",["active","button","disabled"],{button:"E1FNQT",context:"KM0v4f",ad:"_3jm1-Q",hoc:"_0plpDL",active:"MAe9O6",disabled:"Br9IWV"});B.defaultProps={active:!1,children:void 0,disabled:!1,enforceA:!1,onClick:void 0,onMouseDown:void 0,openNewTab:!1,replace:!1,to:void 0},B.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:I.themeType.isRequired,to:b().oneOfType([b().object,b().string])};var W=I;const U=e=>{let{checked:t,label:r,onChange:n,theme:o}=e;return(0,g.jsxs)("div",{className:o.container,children:[void 0===r?null:(0,g.jsx)("p",{className:o.label,children:r}),(0,g.jsx)("input",{checked:t,className:o.checkbox,onChange:n,type:"checkbox"})]})},X=t()(U,"Checkbox",["checkbox","container","label"],{checkbox:"A-f8qJ",context:"dNQcC6",ad:"earXxa",hoc:"qAPfQ6",container:"Kr0g3M",label:"_3dML-O"});U.propTypes={checked:b().bool,label:b().string,onChange:b().func,theme:X.themeType.isRequired},U.defaultProps={checked:void 0,label:void 0,onChange:void 0};var K=X;const Y=e=>{let{filter:t,label:r,onChange:n,options:o=[],theme:i,value:a}=e,c=!1;const l=[];for(let e=0;e<o.length;++e){const r=o[e];if(!t||t(r)){let e,t;"string"==typeof r?(t=r,e=r):(t=r.name||r.value,e=r.value),c||(c=e===a),l.push((0,g.jsx)("option",{className:i.option,value:e,children:t},e))}}const _=c?null:(0,g.jsx)("option",{disabled:!0,className:i.hiddenOption,value:a,children:a},"__reactUtilsHiddenOption");return(0,g.jsxs)("div",{className:i.container,children:[void 0===r?null:(0,g.jsx)("p",{className:i.label,children:r}),(0,g.jsxs)("select",{className:i.select,onChange:n,value:a,children:[_,l]}),(0,g.jsx)("div",{className:i.arrow,children:"▼"})]})},$=t()(Y,"Dropdown",["arrow","container","hiddenOption","label","option","select"],{arrow:"-zPK7Y",context:"haRIry",ad:"D4XHG2",hoc:"N3nd34",container:"_9CQpeA",label:"Gv0kyu",hiddenOption:"RdW3yR",select:"JXK1uw"});Y.propTypes={filter:b().func,label:b().string,onChange:b().func,options:b().arrayOf(b().oneOfType([b().shape({name:b().string,value:b().string.isRequired}),b().string]).isRequired),theme:$.themeType.isRequired,value:b().string},Y.defaultProps={filter:void 0,label:void 0,onChange:void 0,options:[],value:""};var z=$;const F=(0,s.forwardRef)(((e,t)=>{let{label:r,theme:n,...o}=e;return(0,g.jsxs)("span",{className:n.container,children:[void 0===r?null:(0,g.jsx)("p",{className:n.label,children:r}),(0,g.jsx)("input",{className:n.input,ref:t,...o})]})})),H=t()(F,"Input",["container","input","label"],{container:"Cxx397",context:"X5WszA",ad:"_8s7GCr",hoc:"TVlBYc",input:"M07d4s",label:"gfbdq-"});F.propTypes={label:b().string,theme:H.themeType.isRequired},F.defaultProps={label:void 0};var G=H;const V=e=>{let{children:t,leftSidePanelContent:r,rightSidePanelContent:n,theme:o}=e;return(0,g.jsxs)("div",{className:o.container,children:[(0,g.jsx)("div",{className:[o.sidePanel,o.leftSidePanel].join(" "),children:r}),(0,g.jsx)("div",{className:o.mainPanel,children:t}),(0,g.jsx)("div",{className:[o.sidePanel,o.rightSidePanel].join(" "),children:n})]})},Z=t()(V,"PageLayout",["container","leftSidePanel","mainPanel","rightSidePanel","sidePanel"],{container:"T3cuHB",context:"m4mL-M",ad:"m3-mdC",hoc:"J15Z4H",mainPanel:"pPlQO2",sidePanel:"lqNh4h"});V.propTypes={children:b().node,leftSidePanelContent:b().node,rightSidePanelContent:b().node,theme:Z.themeType.isRequired},V.defaultProps={children:null,leftSidePanelContent:null,rightSidePanelContent:null};var J=Z,Q=__webpack_require__(383);const ee=(0,s.createContext)({description:"",title:""}),te=e=>{let{children:t,description:r,image:n,siteName:o,socialDescription:i,socialTitle:a,title:c,url:l}=e;const _=a||c,u=i||r,d=(0,s.useMemo)((()=>({description:r,image:n,siteName:o,socialDescription:i,socialTitle:a,title:c,url:l})),[r,n,o,i,a,c,l]);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(Q.Helmet,{children:[(0,g.jsx)("title",{children:c}),(0,g.jsx)("meta",{name:"description",content:r}),(0,g.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,g.jsx)("meta",{name:"twitter:title",content:_}),(0,g.jsx)("meta",{name:"twitter:description",content:u}),n?(0,g.jsx)("meta",{name:"twitter:image",content:n}):null,o?(0,g.jsx)("meta",{name:"twitter:site",content:`@${o}`}):null,(0,g.jsx)("meta",{name:"og:title",content:_}),n?(0,g.jsx)("meta",{name:"og:image",content:n}):null,n?(0,g.jsx)("meta",{name:"og:image:alt",content:_}):null,(0,g.jsx)("meta",{name:"og:description",content:u}),o?(0,g.jsx)("meta",{name:"og:sitename",content:o}):null,l?(0,g.jsx)("meta",{name:"og:url",content:l}):null]}),t?(0,g.jsx)(ee.Provider,{value:d,children:t}):null]})};te.Context=ee,te.defaultProps={children:null,image:"",siteName:"",socialDescription:"",socialTitle:"",url:""},te.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 re=te,ne=__webpack_require__(467),oe=__webpack_require__(111),ie=__webpack_require__.n(oe);const ae=e=>{let{children:t,onCancel:r,theme:n}=e;const o=(0,s.useRef)(null),i=(0,s.useRef)(null),[a,c]=(0,s.useState)();(0,s.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 l=(0,s.useMemo)((()=>(0,g.jsx)("div",{onFocus:()=>{var e,t;const r=null===(e=o.current)||void 0===e?void 0:e.querySelectorAll("*");for(let e=r.length-1;e>=0;--e)if(r[e].focus(),document.activeElement===r[e])return;null===(t=i.current)||void 0===t||t.focus()},tabIndex:0})),[]);return a?ie().createPortal((0,g.jsxs)(g.Fragment,{children:[l,(0,g.jsx)("div",{"aria-label":"Cancel",className:n.overlay,onClick:()=>r&&r(),onKeyDown:e=>{"Escape"===e.key&&r&&r()},ref:e=>{e&&e!==i.current&&(i.current=e,e.focus())},role:"button",tabIndex:0}),(0,g.jsx)("div",{"aria-modal":"true",className:n.container,onWheel:e=>e.stopPropagation(),ref:o,role:"dialog",children:t}),(0,g.jsx)("div",{onFocus:()=>{var e;null===(e=i.current)||void 0===e||e.focus()},tabIndex:0}),l]}),a):null},ce=t()(ae,"Modal",["container","overlay"],{overlay:"ye2BZo",context:"Szmbbz",ad:"Ah-Nsc",hoc:"Wki41G",container:"gyZ4rc"});ae.propTypes={onCancel:b().func,children:b().node,theme:ce.themeType.isRequired},ae.defaultProps={onCancel:ne.noop,children:null};var le=ce,_e=e=>(0,g.jsx)(D,{...e,routerLinkType:N.NavLink});const se=e=>{let{children:t,className:r,ratio:n}=e;const o=n.split(":"),i=100*parseFloat(o[1])/parseFloat(o[0])+"%",a=(0,g.jsx)("div",{style:{paddingBottom:i},className:"EznFz3",children:(0,g.jsx)("div",{className:"_0vb7tq",children:t})});return r?(0,g.jsx)("div",{className:r,children:a}):a};se.defaultProps={children:null,className:void 0,ratio:"1:1"},se.propTypes={children:b().node,className:b().string,ratio:(e,t)=>{const r=e[t];return void 0===r?null:"string"!=typeof r?Error('"ratio" prop must be a string'):r.match(/\d\.\d+/)?null:Error('"ratio" prop must have "H:W" format')}};var ue=se;const de=e=>{let{theme:t}=e;return(0,g.jsxs)("span",{className:(t.container?t.container+" ":"")+"_7zdld4",children:[(0,g.jsx)("span",{className:(t.circle?t.circle+" ":"")+"dBrB4g"}),(0,g.jsx)("span",{className:(t.circle?t.circle+" ":"")+"dBrB4g"}),(0,g.jsx)("span",{className:(t.circle?t.circle+" ":"")+"dBrB4g"})]})},pe=t()(de,"Throbber",["circle","container"],{container:"_7zdld4",context:"uIObt7",ad:"XIxe9o",hoc:"YOyORH",circle:"dBrB4g",bouncing:"TJe-6j"});de.propTypes={theme:pe.themeType.isRequired};var fe=pe;let me=function(e){return e.ABOVE_CURSOR="ABOVE_CURSOR",e.ABOVE_ELEMENT="ABOVE_ELEMENT",e.BELOW_CURSOR="BELOW_CURSOR",e.BELOW_ELEMENT="BELOW_ELEMENT",e}({});const he=["border-bottom-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";"),Ee=["border-top-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";");function be(e,t,r,n,o){const i=function(e){return{arrow:e.arrow.getBoundingClientRect(),container:e.container.getBoundingClientRect()}}(o),a=function(){const{scrollX:e,scrollY: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:he}}(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=Ee);const l=`left:${c.containerX}px;top:${c.containerY}px`;o.container.setAttribute("style",l);const _=`${c.baseArrowStyle};left:${c.arrowX}px;top:${c.arrowY}px`;o.arrow.setAttribute("style",_)}const ge=(0,s.forwardRef)(((e,t)=>{let{children:r,theme:n}=e;const{current:o}=(0,s.useRef)({lastElement:void 0,lastPageX:0,lastPageY:0,lastPlacement:void 0}),[i,a]=(0,s.useState)(null),c=(e,t,r,n)=>{o.lastElement=n,o.lastPageX=e,o.lastPageY=t,o.lastPlacement=r,i&&be(e,t,0,0,i)};return(0,s.useImperativeHandle)(t,(()=>({pointTo:c}))),(0,s.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 a(e),()=>{document.body.removeChild(e.container),a(null)}}),[n]),(0,s.useEffect)((()=>{i&&be(o.lastPageX,o.lastPageY,o.lastPlacement,o.lastElement,i)}),[i,o.lastPageX,o.lastPageY,o.lastPlacement,o.lastElement]),i?(0,oe.createPortal)(r,i.content):null}));ge.propTypes={children:b().node,theme:b().shape({}).isRequired},ge.defaultProps={children:null};var we=ge;const ve=e=>{let{children:t,placement:r,tip:n,theme:o}=e;const{current:i}=(0,s.useRef)({lastCursorX:0,lastCursorY:0,triggeredByTouch:!1,timerId:void 0}),a=(0,s.useRef)(),c=(0,s.useRef)(null),[l,_]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{if(l&&null!==n){a.current&&a.current.pointTo(i.lastCursorX+window.scrollX,i.lastCursorY+window.scrollY,r,c.current);const e=()=>_(!1);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)}}),[i.lastCursorX,i.lastCursorY,r,l,n]),(0,g.jsxs)("div",{className:o.wrapper,onMouseLeave:()=>_(!1),onMouseMove:e=>((e,t)=>{if(l){const n=c.current.getBoundingClientRect();e<n.left||e>n.right||t<n.top||t>n.bottom?_(!1):a.current&&a.current.pointTo(e+window.scrollX,t+window.scrollY,r,c.current)}else i.lastCursorX=e,i.lastCursorY=t,i.triggeredByTouch?i.timerId||(i.timerId=setTimeout((()=>{i.triggeredByTouch=!1,i.timerId=void 0,_(!0)}),300)):_(!0)})(e.clientX,e.clientY),onClick:()=>{i.timerId&&(clearTimeout(i.timerId),i.timerId=void 0,i.triggeredByTouch=!1)},onTouchStart:()=>{i.triggeredByTouch=!0},ref:c,role:"presentation",children:[l&&null!==n?(0,g.jsx)(we,{ref:a,theme:o,children:n}):null,t]})},ye=t()(ve,"WithTooltip",["appearance","arrow","container","content","wrapper"],{arrow:"M9gywF",ad:"_4xT7zE",hoc:"zd-vnH",context:"GdZucr",container:"f9gY8K",appearance:"L4ubm-",wrapper:"_4qDBRM"}),Te=ye;Te.PLACEMENTS=me,ve.propTypes={children:b().node,placement:b().oneOf(Object.values(me)),theme:ye.themeType.isRequired,tip:b().node},ve.defaultProps={children:null,placement:me.ABOVE_CURSOR,tip:null};var xe=Te,Pe=__webpack_require__(656),ke=__webpack_require__.n(Pe),Ce={container:"jTxmOX",context:"dzIcLh",ad:"_5a9XX1",hoc:"_7sH52O"};const Oe=e=>{var t;let{autoplay:r,src:n,theme:o,title:i}=e;const a=n.split("?");let c=a[0];const l=a[1],_=l?ke().parse(l):{},s=_.v||(null===(t=c.match(/\/([a-zA-Z0-9-_]*)$/))||void 0===t?void 0:t[1]);return c=`https://www.youtube.com/embed/${s}`,delete _.v,_.autoplay=r?"1":"0",c+=`?${ke().stringify(_)}`,(0,g.jsxs)(ue,{className:o.container,ratio:"16:9",children:[(0,g.jsx)(fe,{theme:Ce}),(0,g.jsx)("iframe",{allow:"autoplay",allowFullScreen:!0,className:o.video,src:c,title:i})]})},Ae=t()(Oe,"YouTubeVideo",["container","video"],{container:"sXHM81",context:"veKyYi",ad:"r3ABzd",hoc:"YKcPnR",video:"SlV2zw"});Oe.propTypes={autoplay:b().bool,src:b().string.isRequired,theme:Ae.themeType.isRequired,title:b().string},Oe.defaultProps={autoplay:!1,title:""};var Se=Ae;const Le=n.requireWeak("./server","/"),qe=Le?void 0:__webpack_require__(7).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__={88: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__(120);let inj={};const metaElement="undefined"!=typeof document?document.querySelector('meta[itemprop="drpruinj"]'):null;if(metaElement){metaElement.remove();let data=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.decode64(metaElement.content);const{key:key}=(0,_shared_utils_isomorphy_buildInfo__WEBPACK_IMPORTED_MODULE_2__.J)(),d=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().cipher.createDecipher("AES-CBC",key);d.start({iv:data.slice(0,key.length)}),d.update(node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.createBuffer(data.slice(key.length))),d.finish(),data=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.decodeUtf8(d.output.data),inj=eval(`(${data})`)}else inj={};function getInj(){return inj}},7:function(e,t,r){r.d(t,{Z:function(){return l}}),r(156);var n=r(899),o=r(715),i=r(128),a=r(88),c=r(893);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=document.getElementById("react-view");if(!r)throw Error("Failed to find container for React app");const l=(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(l):(0,o.hydrateRoot)(r,l)}},120: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)},848: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},463: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(120),o=r(848);function i(){return!1}function a(){return!0}function c(){return(0,n.J)().timestamp}},911: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__(463);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 l=e.indexOf(";",i);if(-1===l)l=e.length;else if(l<c){i=e.lastIndexOf(";",c-1)+1;continue}var _=e.slice(i,c).trim();if(void 0===r[_]){var s=e.slice(c+1,l).trim();34===s.charCodeAt(0)&&(s=s.slice(1,-1)),r[_]=a(s,n)}i=l+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 l=c(t);if(l&&!n.test(l))throw new TypeError("argument val is invalid");var _=e+"="+l;if(null!=a.maxAge){var s=a.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");_+="; Max-Age="+Math.floor(s)}if(a.domain){if(!n.test(a.domain))throw new TypeError("option domain is invalid");_+="; Domain="+a.domain}if(a.path){if(!n.test(a.path))throw new TypeError("option path is invalid");_+="; 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");_+="; Expires="+u.toUTCString()}if(a.httpOnly&&(_+="; HttpOnly"),a.secure&&(_+="; Secure"),a.priority)switch("string"==typeof a.priority?a.priority.toLowerCase():a.priority){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; 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:_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"strict":_+="; SameSite=Strict";break;case"none":_+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return _};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,l={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var n,i={},_=null,s=null;for(n in void 0!==r&&(_=""+r),void 0!==t.key&&(_=""+t.key),void 0!==t.ref&&(s=t.ref),t)a.call(t,n)&&!l.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:_,ref:s,props:i,_owner:c.current}}t.Fragment=i,t.jsx=_,t.jsxs=_},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 u.Barrier},BaseModal:function(){return ae},Button:function(){return W},Checkbox:function(){return K},Dropdown:function(){return z},Emitter:function(){return u.Emitter},GlobalStateProvider:function(){return d.GlobalStateProvider},Input:function(){return G},JU:function(){return S},Link:function(){return j},MetaTags:function(){return re},Modal:function(){return le},NavLink:function(){return _e},PT:function(){return E},PageLayout:function(){return J},Rgs:function(){return p()},ScalableRect:function(){return ue},Semaphore:function(){return u.Semaphore},ThemeProvider:function(){return e.ThemeProvider},Throbber:function(){return fe},WithTooltip:function(){return xe},YouTubeVideo:function(){return Se},api:function(){return R()},client:function(){return qe},config:function(){return i},getGlobalState:function(){return d.getGlobalState},getSsrContext:function(){return f},isomorphy:function(){return a},server:function(){return Le},splitComponent:function(){return C},themed:function(){return O},time:function(){return h},useAsyncCollection:function(){return d.useAsyncCollection},useAsyncData:function(){return d.useAsyncData},useGlobalState:function(){return d.useGlobalState},webpack:function(){return n},withRetries:function(){return L}});var e=__webpack_require__(198),t=__webpack_require__.n(e),r=__webpack_require__(848),n=__webpack_require__(911);const o=(r.b?__webpack_require__(88).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__(463),c=__webpack_require__(489),l=__webpack_require__(760),_=__webpack_require__.n(l),s=__webpack_require__(156),u=__webpack_require__(269),d=__webpack_require__(899),p=__webpack_require__.n(d);const{getSsrContext:f}=p(),m={DAY_MS:u.DAY_MS,HOUR_MS:u.HOUR_MS,MIN_MS:u.MIN_MS,SEC_MS:u.SEC_MS,YEAR_MS:u.YEAR_MS,now:Date.now,timer:u.timer,useCurrent:function(){let{autorefresh:e=!1,globalStatePath:t="currentTime",precision:r=5*u.SEC_MS}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[n,o]=(0,d.useGlobalState)(t,Date.now);return(0,s.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=f(!1),[n,o]=(0,d.useGlobalState)(t,(()=>{var t;const n=e&&(null==r||null===(t=r.req)||void 0===t||null===(t=t.cookies)||void 0===t?void 0:t[e]);return n?parseInt(n,10):0}));return(0,s.useEffect)((()=>{const t=(new Date).getTimezoneOffset();o(t),e&&(document.cookie=c.serialize(e,t.toString(),{path:"/"}))}),[e,o]),n}};var h=Object.assign(_(),m),E=__webpack_require__(99),b=__webpack_require__.n(E),g=__webpack_require__(893);let w;a.IS_CLIENT_SIDE&&(w=__webpack_require__(88).Z().CHUNK_GROUPS||{});const v={};function y(){return(0,a.getBuildInfo)().publicPath}function T(e,t,r){let n;const o=`${y()}/${e}`,i=`${document.location.origin}${o}`;if(!t.has(i)){let e=document.querySelector(`link[href="${o}"]`);e||(e=document.createElement("link"),e.setAttribute("rel","stylesheet"),e.setAttribute("href",o),document.head.appendChild(e)),n=new u.Barrier,e.addEventListener("load",(()=>n.resolve())),e.addEventListener("error",(()=>n.resolve()))}if(r){const e=v[o]||0;v[o]=1+e}return n}function x(e,t){if(!t[e])throw Error(`Unknown chunk name "${e}"`)}function P(e,t,r){const n=[],o=t[e],i=function(){const e=new Set,{styleSheets:t}=document;for(let r=0;r<t.length;++r){const{href:n}=t[r];n&&e.add(n)}return e}();for(let e=0;e<o.length;++e){const t=o[e];if(t.endsWith(".css")){const e=T(t,i,r);e&&n.push(e)}}return n.length?Promise.allSettled(n).then():Promise.resolve()}const k=new Set;function C(e){let{chunkName:t,getComponent:r,placeholder:n}=e;if(a.IS_CLIENT_SIDE&&x(t,w),k.has(t))throw Error(`Repeated splitComponent() call for the chunk "${t}"`);k.add(t);const o=(0,s.lazy)((async()=>{const e=await r(),n="default"in e?e.default:e;a.IS_CLIENT_SIDE&&await P(t,w,!1);const o=(0,s.forwardRef)(((e,r)=>{let{children:o,...i}=e;if(a.IS_SERVER_SIDE){const{chunkGroups:e,chunks:r}=f();x(t,e),r.includes(t)||r.push(t)}return(0,s.useInsertionEffect)((()=>(P(t,w,!0),()=>function(e,t){const r=t[e];for(let e=0;e<r.length;++e){const t=r[e];if(t.endsWith(".css")){const e=`${y()}/${t}`;--v[e]<=0&&document.head.querySelector(`link[href="${e}"]`).remove()}}}(t,w))),[]),(0,g.jsx)(n,{ref:r,...i,children:o})}));return{default:o}})),i=e=>{let{children:t,...r}=e;return(0,g.jsx)(s.Suspense,{fallback:n,children:(0,g.jsx)(o,{...r,children:t})})};return i.propTypes={children:b().node},i.defaultProps={children:void 0},i}const O=t();let A;O.COMPOSE=e.COMPOSE,O.PRIORITY=e.PRIORITY;try{A=process.env.NODE_CONFIG_ENV}catch{}const S="production"!==(A||"production")?n.requireWeak("./jest","/"):null;async function L(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 h.timer(r)}}var q=__webpack_require__(300),R=__webpack_require__.n(q),N=__webpack_require__(128);const M=e=>{let{children:t,className:r,disabled:n,enforceA:o,keepScrollPosition:i,onClick:a,onMouseDown:c,openNewTab:l,replace:_,routerLinkType:s,to:u,...d}=e;if(n||o||l||null!=u&&u.match(/^(#|(https?|mailto):)/))return(0,g.jsx)("a",{className:(r?r+" ":"")+"zH52sA",href:u,onClick:n?e=>e.preventDefault():a,onMouseDown:n?e=>e.preventDefault():c,rel:"noopener noreferrer",target:l?"_blank":"",children:t});const p=s;return(0,g.jsx)(p,{className:r,onMouseDown:c,replace:_,to:u,onClick:e=>{a&&a(e),i||window.scroll(0,0)},...d,children:t})};M.defaultProps={children:null,className:"",disabled:!1,enforceA:!1,keepScrollPosition:!1,onClick:void 0,onMouseDown:void 0,openNewTab:!1,replace:!1,to:""},M.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])};var D=M,j=e=>(0,g.jsx)(D,{...e,routerLinkType:N.Link});const B=e=>{let{active:t,children:r,disabled:n,enforceA:o,onClick:i,onMouseDown:a,openNewTab:c,replace:l,theme:_,to:s}=e,u=_.button;return t&&_.active&&(u+=` ${_.active}`),n?(_.disabled&&(u+=` ${_.disabled}`),(0,g.jsx)("div",{className:u,children:r})):s?(0,g.jsx)(j,{className:u,enforceA:o,onClick:i,onMouseDown:a,openNewTab:c,replace:l,to:s,children:r}):(0,g.jsx)("div",{className:u,onClick:i,onKeyDown:i,onMouseDown:a,role:"button",tabIndex:0,children:r})},I=t()(B,"Button",["active","button","disabled"],{button:"E1FNQT",context:"KM0v4f",ad:"_3jm1-Q",hoc:"_0plpDL",active:"MAe9O6",disabled:"Br9IWV"});B.defaultProps={active:!1,children:void 0,disabled:!1,enforceA:!1,onClick:void 0,onMouseDown:void 0,openNewTab:!1,replace:!1,to:void 0},B.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:I.themeType.isRequired,to:b().oneOfType([b().object,b().string])};var W=I;const U=e=>{let{checked:t,label:r,onChange:n,theme:o}=e;return(0,g.jsxs)("div",{className:o.container,children:[void 0===r?null:(0,g.jsx)("p",{className:o.label,children:r}),(0,g.jsx)("input",{checked:t,className:o.checkbox,onChange:n,type:"checkbox"})]})},X=t()(U,"Checkbox",["checkbox","container","label"],{checkbox:"A-f8qJ",context:"dNQcC6",ad:"earXxa",hoc:"qAPfQ6",container:"Kr0g3M",label:"_3dML-O"});U.propTypes={checked:b().bool,label:b().string,onChange:b().func,theme:X.themeType.isRequired},U.defaultProps={checked:void 0,label:void 0,onChange:void 0};var K=X;const Y=e=>{let{filter:t,label:r,onChange:n,options:o=[],theme:i,value:a}=e,c=!1;const l=[];for(let e=0;e<o.length;++e){const r=o[e];if(!t||t(r)){let e,t;"string"==typeof r?(t=r,e=r):(t=r.name||r.value,e=r.value),c||(c=e===a),l.push((0,g.jsx)("option",{className:i.option,value:e,children:t},e))}}const _=c?null:(0,g.jsx)("option",{disabled:!0,className:i.hiddenOption,value:a,children:a},"__reactUtilsHiddenOption");return(0,g.jsxs)("div",{className:i.container,children:[void 0===r?null:(0,g.jsx)("p",{className:i.label,children:r}),(0,g.jsxs)("select",{className:i.select,onChange:n,value:a,children:[_,l]}),(0,g.jsx)("div",{className:i.arrow,children:"▼"})]})},$=t()(Y,"Dropdown",["arrow","container","hiddenOption","label","option","select"],{arrow:"-zPK7Y",context:"haRIry",ad:"D4XHG2",hoc:"N3nd34",container:"_9CQpeA",label:"Gv0kyu",hiddenOption:"RdW3yR",select:"JXK1uw"});Y.propTypes={filter:b().func,label:b().string,onChange:b().func,options:b().arrayOf(b().oneOfType([b().shape({name:b().string,value:b().string.isRequired}),b().string]).isRequired),theme:$.themeType.isRequired,value:b().string},Y.defaultProps={filter:void 0,label:void 0,onChange:void 0,options:[],value:""};var z=$;const F=(0,s.forwardRef)(((e,t)=>{let{label:r,theme:n,...o}=e;return(0,g.jsxs)("span",{className:n.container,children:[void 0===r?null:(0,g.jsx)("p",{className:n.label,children:r}),(0,g.jsx)("input",{className:n.input,ref:t,...o})]})})),H=t()(F,"Input",["container","input","label"],{container:"Cxx397",context:"X5WszA",ad:"_8s7GCr",hoc:"TVlBYc",input:"M07d4s",label:"gfbdq-"});F.propTypes={label:b().string,theme:H.themeType.isRequired},F.defaultProps={label:void 0};var G=H;const V=e=>{let{children:t,leftSidePanelContent:r,rightSidePanelContent:n,theme:o}=e;return(0,g.jsxs)("div",{className:o.container,children:[(0,g.jsx)("div",{className:[o.sidePanel,o.leftSidePanel].join(" "),children:r}),(0,g.jsx)("div",{className:o.mainPanel,children:t}),(0,g.jsx)("div",{className:[o.sidePanel,o.rightSidePanel].join(" "),children:n})]})},Z=t()(V,"PageLayout",["container","leftSidePanel","mainPanel","rightSidePanel","sidePanel"],{container:"T3cuHB",context:"m4mL-M",ad:"m3-mdC",hoc:"J15Z4H",mainPanel:"pPlQO2",sidePanel:"lqNh4h"});V.propTypes={children:b().node,leftSidePanelContent:b().node,rightSidePanelContent:b().node,theme:Z.themeType.isRequired},V.defaultProps={children:null,leftSidePanelContent:null,rightSidePanelContent:null};var J=Z,Q=__webpack_require__(383);const ee=(0,s.createContext)({description:"",title:""}),te=e=>{let{children:t,description:r,image:n,siteName:o,socialDescription:i,socialTitle:a,title:c,url:l}=e;const _=a||c,u=i||r,d=(0,s.useMemo)((()=>({description:r,image:n,siteName:o,socialDescription:i,socialTitle:a,title:c,url:l})),[r,n,o,i,a,c,l]);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(Q.Helmet,{children:[(0,g.jsx)("title",{children:c}),(0,g.jsx)("meta",{name:"description",content:r}),(0,g.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,g.jsx)("meta",{name:"twitter:title",content:_}),(0,g.jsx)("meta",{name:"twitter:description",content:u}),n?(0,g.jsx)("meta",{name:"twitter:image",content:n}):null,o?(0,g.jsx)("meta",{name:"twitter:site",content:`@${o}`}):null,(0,g.jsx)("meta",{name:"og:title",content:_}),n?(0,g.jsx)("meta",{name:"og:image",content:n}):null,n?(0,g.jsx)("meta",{name:"og:image:alt",content:_}):null,(0,g.jsx)("meta",{name:"og:description",content:u}),o?(0,g.jsx)("meta",{name:"og:sitename",content:o}):null,l?(0,g.jsx)("meta",{name:"og:url",content:l}):null]}),t?(0,g.jsx)(ee.Provider,{value:d,children:t}):null]})};te.Context=ee,te.defaultProps={children:null,image:"",siteName:"",socialDescription:"",socialTitle:"",url:""},te.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 re=te,ne=__webpack_require__(467),oe=__webpack_require__(111),ie=__webpack_require__.n(oe);const ae=e=>{let{children:t,onCancel:r,theme:n}=e;const o=(0,s.useRef)(null),i=(0,s.useRef)(null),[a,c]=(0,s.useState)();(0,s.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 l=(0,s.useMemo)((()=>(0,g.jsx)("div",{onFocus:()=>{var e,t;const r=null===(e=o.current)||void 0===e?void 0:e.querySelectorAll("*");for(let e=r.length-1;e>=0;--e)if(r[e].focus(),document.activeElement===r[e])return;null===(t=i.current)||void 0===t||t.focus()},tabIndex:0})),[]);return a?ie().createPortal((0,g.jsxs)(g.Fragment,{children:[l,(0,g.jsx)("div",{"aria-label":"Cancel",className:n.overlay,onClick:()=>r&&r(),onKeyDown:e=>{"Escape"===e.key&&r&&r()},ref:e=>{e&&e!==i.current&&(i.current=e,e.focus())},role:"button",tabIndex:0}),(0,g.jsx)("div",{"aria-modal":"true",className:n.container,onWheel:e=>e.stopPropagation(),ref:o,role:"dialog",children:t}),(0,g.jsx)("div",{onFocus:()=>{var e;null===(e=i.current)||void 0===e||e.focus()},tabIndex:0}),l]}),a):null},ce=t()(ae,"Modal",["container","overlay"],{overlay:"ye2BZo",context:"Szmbbz",ad:"Ah-Nsc",hoc:"Wki41G",container:"gyZ4rc"});ae.propTypes={onCancel:b().func,children:b().node,theme:ce.themeType.isRequired},ae.defaultProps={onCancel:ne.noop,children:null};var le=ce,_e=e=>(0,g.jsx)(D,{...e,routerLinkType:N.NavLink});const se=e=>{let{children:t,className:r,ratio:n}=e;const o=n.split(":"),i=100*parseFloat(o[1])/parseFloat(o[0])+"%",a=(0,g.jsx)("div",{style:{paddingBottom:i},className:"EznFz3",children:(0,g.jsx)("div",{className:"_0vb7tq",children:t})});return r?(0,g.jsx)("div",{className:r,children:a}):a};se.defaultProps={children:null,className:void 0,ratio:"1:1"},se.propTypes={children:b().node,className:b().string,ratio:(e,t)=>{const r=e[t];return void 0===r?null:"string"!=typeof r?Error('"ratio" prop must be a string'):r.match(/\d+:\d+/)?null:Error('"ratio" prop must have "H:W" format')}};var ue=se;const de=e=>{let{theme:t}=e;return(0,g.jsxs)("span",{className:(t.container?t.container+" ":"")+"_7zdld4",children:[(0,g.jsx)("span",{className:(t.circle?t.circle+" ":"")+"dBrB4g"}),(0,g.jsx)("span",{className:(t.circle?t.circle+" ":"")+"dBrB4g"}),(0,g.jsx)("span",{className:(t.circle?t.circle+" ":"")+"dBrB4g"})]})},pe=t()(de,"Throbber",["circle","container"],{container:"_7zdld4",context:"uIObt7",ad:"XIxe9o",hoc:"YOyORH",circle:"dBrB4g",bouncing:"TJe-6j"});de.propTypes={theme:pe.themeType.isRequired};var fe=pe;let me=function(e){return e.ABOVE_CURSOR="ABOVE_CURSOR",e.ABOVE_ELEMENT="ABOVE_ELEMENT",e.BELOW_CURSOR="BELOW_CURSOR",e.BELOW_ELEMENT="BELOW_ELEMENT",e}({});const he=["border-bottom-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";"),Ee=["border-top-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";");function be(e,t,r,n,o){const i=function(e){return{arrow:e.arrow.getBoundingClientRect(),container:e.container.getBoundingClientRect()}}(o),a=function(){const{scrollX:e,scrollY: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:he}}(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=Ee);const l=`left:${c.containerX}px;top:${c.containerY}px`;o.container.setAttribute("style",l);const _=`${c.baseArrowStyle};left:${c.arrowX}px;top:${c.arrowY}px`;o.arrow.setAttribute("style",_)}const ge=(0,s.forwardRef)(((e,t)=>{let{children:r,theme:n}=e;const{current:o}=(0,s.useRef)({lastElement:void 0,lastPageX:0,lastPageY:0,lastPlacement:void 0}),[i,a]=(0,s.useState)(null),c=(e,t,r,n)=>{o.lastElement=n,o.lastPageX=e,o.lastPageY=t,o.lastPlacement=r,i&&be(e,t,0,0,i)};return(0,s.useImperativeHandle)(t,(()=>({pointTo:c}))),(0,s.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 a(e),()=>{document.body.removeChild(e.container),a(null)}}),[n]),(0,s.useEffect)((()=>{i&&be(o.lastPageX,o.lastPageY,o.lastPlacement,o.lastElement,i)}),[i,o.lastPageX,o.lastPageY,o.lastPlacement,o.lastElement]),i?(0,oe.createPortal)(r,i.content):null}));ge.propTypes={children:b().node,theme:b().shape({}).isRequired},ge.defaultProps={children:null};var we=ge;const ve=e=>{let{children:t,placement:r,tip:n,theme:o}=e;const{current:i}=(0,s.useRef)({lastCursorX:0,lastCursorY:0,triggeredByTouch:!1,timerId:void 0}),a=(0,s.useRef)(),c=(0,s.useRef)(null),[l,_]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{if(l&&null!==n){a.current&&a.current.pointTo(i.lastCursorX+window.scrollX,i.lastCursorY+window.scrollY,r,c.current);const e=()=>_(!1);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)}}),[i.lastCursorX,i.lastCursorY,r,l,n]),(0,g.jsxs)("div",{className:o.wrapper,onMouseLeave:()=>_(!1),onMouseMove:e=>((e,t)=>{if(l){const n=c.current.getBoundingClientRect();e<n.left||e>n.right||t<n.top||t>n.bottom?_(!1):a.current&&a.current.pointTo(e+window.scrollX,t+window.scrollY,r,c.current)}else i.lastCursorX=e,i.lastCursorY=t,i.triggeredByTouch?i.timerId||(i.timerId=setTimeout((()=>{i.triggeredByTouch=!1,i.timerId=void 0,_(!0)}),300)):_(!0)})(e.clientX,e.clientY),onClick:()=>{i.timerId&&(clearTimeout(i.timerId),i.timerId=void 0,i.triggeredByTouch=!1)},onTouchStart:()=>{i.triggeredByTouch=!0},ref:c,role:"presentation",children:[l&&null!==n?(0,g.jsx)(we,{ref:a,theme:o,children:n}):null,t]})},ye=t()(ve,"WithTooltip",["appearance","arrow","container","content","wrapper"],{arrow:"M9gywF",ad:"_4xT7zE",hoc:"zd-vnH",context:"GdZucr",container:"f9gY8K",appearance:"L4ubm-",wrapper:"_4qDBRM"}),Te=ye;Te.PLACEMENTS=me,ve.propTypes={children:b().node,placement:b().oneOf(Object.values(me)),theme:ye.themeType.isRequired,tip:b().node},ve.defaultProps={children:null,placement:me.ABOVE_CURSOR,tip:null};var xe=Te,Pe=__webpack_require__(656),ke=__webpack_require__.n(Pe),Ce={container:"jTxmOX",context:"dzIcLh",ad:"_5a9XX1",hoc:"_7sH52O"};const Oe=e=>{var t;let{autoplay:r,src:n,theme:o,title:i}=e;const a=n.split("?");let c=a[0];const l=a[1],_=l?ke().parse(l):{},s=_.v||(null===(t=c.match(/\/([a-zA-Z0-9-_]*)$/))||void 0===t?void 0:t[1]);return c=`https://www.youtube.com/embed/${s}`,delete _.v,_.autoplay=r?"1":"0",c+=`?${ke().stringify(_)}`,(0,g.jsxs)(ue,{className:o.container,ratio:"16:9",children:[(0,g.jsx)(fe,{theme:Ce}),(0,g.jsx)("iframe",{allow:"autoplay",allowFullScreen:!0,className:o.video,src:c,title:i})]})},Ae=t()(Oe,"YouTubeVideo",["container","video"],{container:"sXHM81",context:"veKyYi",ad:"r3ABzd",hoc:"YKcPnR",video:"SlV2zw"});Oe.propTypes={autoplay:b().bool,src:b().string.isRequired,theme:Ae.themeType.isRequired,title:b().string},Oe.defaultProps={autoplay:!1,title:""};var Se=Ae;const Le=n.requireWeak("./server","/"),qe=Le?void 0:__webpack_require__(7).Z}(),__webpack_exports__}()}));
3
3
  //# sourceMappingURL=web.bundle.js.map