@dr.pogodin/react-utils 1.23.3 → 1.23.6

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 (52) hide show
  1. package/build/development/client/getInj.js +45 -0
  2. package/build/development/client/getInj.js.map +1 -0
  3. package/build/development/client/index.js +4 -2
  4. package/build/development/client/index.js.map +1 -1
  5. package/build/development/client/init.js +8 -46
  6. package/build/development/client/init.js.map +1 -1
  7. package/build/development/index.js +4 -0
  8. package/build/development/index.js.map +1 -1
  9. package/build/development/server/renderer.js +3 -8
  10. package/build/development/server/renderer.js.map +1 -1
  11. package/build/development/shared/components/CodeSplit/index.js +13 -7
  12. package/build/development/shared/components/CodeSplit/index.js.map +1 -1
  13. package/build/development/shared/components/index.js +0 -7
  14. package/build/development/shared/components/index.js.map +1 -1
  15. package/build/development/shared/utils/config.js +11 -4
  16. package/build/development/shared/utils/config.js.map +1 -1
  17. package/build/development/shared/utils/isomorphy/buildInfo.js +45 -0
  18. package/build/development/shared/utils/isomorphy/buildInfo.js.map +1 -0
  19. package/build/development/shared/utils/isomorphy/environment-check.js +20 -0
  20. package/build/development/shared/utils/isomorphy/environment-check.js.map +1 -0
  21. package/build/development/shared/utils/{isomorphy.js → isomorphy/index.js} +22 -26
  22. package/build/development/shared/utils/isomorphy/index.js.map +1 -0
  23. package/build/development/web.bundle.js +164 -13
  24. package/build/production/client/getInj.js +12 -0
  25. package/build/production/client/getInj.js.map +1 -0
  26. package/build/production/client/index.js +3 -3
  27. package/build/production/client/index.js.map +1 -1
  28. package/build/production/client/init.js +4 -10
  29. package/build/production/client/init.js.map +1 -1
  30. package/build/production/index.js +1 -1
  31. package/build/production/index.js.map +1 -1
  32. package/build/production/server/renderer.js +3 -9
  33. package/build/production/server/renderer.js.map +1 -1
  34. package/build/production/shared/components/CodeSplit/index.js +5 -4
  35. package/build/production/shared/components/CodeSplit/index.js.map +1 -1
  36. package/build/production/shared/components/index.js +1 -1
  37. package/build/production/shared/components/index.js.map +1 -1
  38. package/build/production/shared/utils/config.js +3 -1
  39. package/build/production/shared/utils/config.js.map +1 -1
  40. package/build/production/shared/utils/isomorphy/buildInfo.js +17 -0
  41. package/build/production/shared/utils/isomorphy/buildInfo.js.map +1 -0
  42. package/build/production/shared/utils/isomorphy/environment-check.js +7 -0
  43. package/build/production/shared/utils/isomorphy/environment-check.js.map +1 -0
  44. package/build/production/shared/utils/isomorphy/index.js +16 -0
  45. package/build/production/shared/utils/isomorphy/index.js.map +1 -0
  46. package/build/production/web.bundle.js +1 -1
  47. package/build/production/web.bundle.js.map +1 -1
  48. package/config/webpack/lib-development.js +6 -0
  49. package/package.json +2 -2
  50. package/build/development/shared/utils/isomorphy.js.map +0 -1
  51. package/build/production/shared/utils/isomorphy.js +0 -23
  52. package/build/production/shared/utils/isomorphy.js.map +0 -1
@@ -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("@babel/runtime/helpers/classPrivateFieldGet"),require("@babel/runtime/helpers/classPrivateFieldSet"),require("@dr.pogodin/react-global-state"),require("@dr.pogodin/react-themes"),require("axios"),require("dayjs"),require("lodash"),require("prop-types"),require("qs"),require("react"),require("react-dom"),require("react-dom/client"),require("react-helmet"),require("react-router-dom")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/classPrivateFieldGet","@babel/runtime/helpers/classPrivateFieldSet","@dr.pogodin/react-global-state","@dr.pogodin/react-themes","axios","dayjs","lodash","prop-types","qs","react","react-dom","react-dom/client","react-helmet","react-router-dom"],t):"object"==typeof exports?exports["@dr.pogodin/react-utils"]=t(require("@babel/runtime/helpers/classPrivateFieldGet"),require("@babel/runtime/helpers/classPrivateFieldSet"),require("@dr.pogodin/react-global-state"),require("@dr.pogodin/react-themes"),require("axios"),require("dayjs"),require("lodash"),require("prop-types"),require("qs"),require("react"),require("react-dom"),require("react-dom/client"),require("react-helmet"),require("react-router-dom")):e["@dr.pogodin/react-utils"]=t(e["@babel/runtime/helpers/classPrivateFieldGet"],e["@babel/runtime/helpers/classPrivateFieldSet"],e["@dr.pogodin/react-global-state"],e["@dr.pogodin/react-themes"],e.axios,e.dayjs,e.lodash,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__226__,__WEBPACK_EXTERNAL_MODULE__556__,__WEBPACK_EXTERNAL_MODULE__899__,__WEBPACK_EXTERNAL_MODULE__198__,__WEBPACK_EXTERNAL_MODULE__300__,__WEBPACK_EXTERNAL_MODULE__760__,__WEBPACK_EXTERNAL_MODULE__467__,__WEBPACK_EXTERNAL_MODULE__99__,__WEBPACK_EXTERNAL_MODULE__656__,__WEBPACK_EXTERNAL_MODULE__156__,__WEBPACK_EXTERNAL_MODULE__111__,__WEBPACK_EXTERNAL_MODULE__715__,__WEBPACK_EXTERNAL_MODULE__383__,__WEBPACK_EXTERNAL_MODULE__128__){return function(){"use strict";var __webpack_modules__={450:function(e,t,n){n.r(t),n.d(t,{IS_CLIENT_SIDE:function(){return r},IS_SERVER_SIDE:function(){return o},buildTimestamp:function(){return s},getBuildInfo:function(){return c},isDevBuild:function(){return i},isProdBuild:function(){return a}});const r="object"!=typeof process||!process.versions||!process.versions.node||!!n.g.REACT_UTILS_FORCE_CLIENT_SIDE,o=!r;function i(){return!1}function a(){return!0}function c(){return(r?window:n.g).TRU_BUILD_INFO}function s(){return c().timestamp}},869:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{requireWeak:function(){return requireWeak},resolveWeak:function(){return resolveWeak}});var _isomorphy__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(450);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,n]=e;if(def[t])throw Error("Conflict between default and named exports");def[t]=n})),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 n={},r=(t||{}).decode||o,i=0;i<e.length;){var c=e.indexOf("=",i);if(-1===c)break;var s=e.indexOf(";",i);if(-1===s)s=e.length;else if(s<c){i=e.lastIndexOf(";",c-1)+1;continue}var l=e.slice(i,c).trim();if(void 0===n[l]){var u=e.slice(c+1,s).trim();34===u.charCodeAt(0)&&(u=u.slice(1,-1)),n[l]=a(u,r)}i=s+1}return n},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(!r.test(e))throw new TypeError("argument name is invalid");var s=c(t);if(s&&!r.test(s))throw new TypeError("argument val is invalid");var l=e+"="+s;if(null!=a.maxAge){var u=a.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(a.domain){if(!r.test(a.domain))throw new TypeError("option domain is invalid");l+="; Domain="+a.domain}if(a.path){if(!r.test(a.path))throw new TypeError("option path is invalid");l+="; Path="+a.path}if(a.expires){var _=a.expires;if(!function(e){return"[object Date]"===n.call(e)||e instanceof Date}(_)||isNaN(_.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+_.toUTCString()}if(a.httpOnly&&(l+="; HttpOnly"),a.secure&&(l+="; Secure"),a.priority)switch("string"==typeof a.priority?a.priority.toLowerCase():a.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return l};var n=Object.prototype.toString,r=/^[\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,n){var r=n(156),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,i={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:l,ref:u,props:i,_owner:c.current}}t.Fragment=i,t.jsx=l,t.jsxs=l},893:function(e,t,n){e.exports=n(251)},226:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__226__},556:function(e){e.exports=__WEBPACK_EXTERNAL_MODULE__556__},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__},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 n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.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 n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__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 v},BaseModal:function(){return fe},Button:function(){return $},Checkbox:function(){return J},Dropdown:function(){return re},Emitter:function(){return T},GlobalStateProvider:function(){return u.GlobalStateProvider},Input:function(){return ae},JU:function(){return U},Link:function(){return z},MetaTags:function(){return de},Modal:function(){return be},NavLink:function(){return we},PT:function(){return L},PageLayout:function(){return le},ScalableRect:function(){return Ee},Semaphore:function(){return A},ThemeProvider:function(){return e.ThemeProvider},Throbber:function(){return ge},WithTooltip:function(){return Ne},YouTubeVideo:function(){return Me},api:function(){return K()},client:function(){return ee},config:function(){return r},getGlobalState:function(){return u.getGlobalState},getSsrContext:function(){return u.getSsrContext},isomorphy:function(){return o},newBarrier:function(){return g},server:function(){return je},splitComponent:function(){return B},themed:function(){return t()},time:function(){return x},useAsyncCollection:function(){return u.useAsyncCollection},useAsyncData:function(){return u.useAsyncData},useGlobalState:function(){return u.useGlobalState},webpack:function(){return n},withRetries:function(){return X}});var e=__webpack_require__(198),t=__webpack_require__.n(e),n=__webpack_require__(869),r=(0,n.requireWeak)("config")||window.CONFIG||{},o=__webpack_require__(450),i=__webpack_require__(489),a=__webpack_require__(760),c=__webpack_require__.n(a),s=__webpack_require__(467),l=__webpack_require__(156),u=__webpack_require__(899),_=__webpack_require__(226),d=__webpack_require__.n(_),p=__webpack_require__(556),h=__webpack_require__.n(p);function f(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var m=new WeakMap,b=new WeakMap,w=new WeakMap,E=new WeakMap;class v extends Promise{constructor(e){let t,n;super(((r,o)=>{t=e=>{r(e),h()(this,b,!0)},n=e=>{o(e),h()(this,E,!0)},e&&e(t,n)})),f(this,m,{writable:!0,value:void 0}),f(this,b,{writable:!0,value:!1}),f(this,w,{writable:!0,value:void 0}),f(this,E,{writable:!0,value:!1}),h()(this,m,t),h()(this,w,n)}get resolve(){return d()(this,m)}get resolved(){return d()(this,b)}get reject(){return d()(this,w)}get rejected(){return d()(this,E)}then(e,t){const n=super.then(e,t);return h()(n,m,d()(this,m)),h()(n,w,d()(this,w)),n}}function g(e){return new v(e)}async function y(e){const t=new v;if(e>0){const n=setTimeout(t.resolve.bind(t),e);t.abort=()=>clearTimeout(n)}else t.abort=s.noop,t.resolve();return t}c().SEC_MS=1e3,c().MIN_MS=60*c().SEC_MS,c().HOUR_MS=60*c().MIN_MS,c().DAY_MS=24*c().HOUR_MS,c().YEAR_MS=365*c().DAY_MS,c().now=Date.now,c().timer=y,c().useCurrent=function(){let{autorefresh:e=!1,globalStatePath:t="currentTime",precision:n=5*c().SEC_MS}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[r,o]=(0,u.useGlobalState)(t,Date.now);return(0,l.useEffect)((()=>{let t;const r=()=>{o((e=>{const t=Date.now();return Math.abs(t-e)>n?t:e})),e&&(t=setTimeout(r,n))};return r(),()=>{t&&clearTimeout(t)}}),[e,n,o]),r},c().useTimezoneOffset=function(){let{cookieName:e="timezoneOffset",globalStatePath:t="timezoneOffset"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=(0,u.getSsrContext)(!1),[r,o]=(0,u.useGlobalState)(t,(()=>{const t=e&&n?.req?.cookies?.[e];return t?parseInt(t,10):0}));return(0,l.useEffect)((()=>{const t=(new Date).getTimezoneOffset();o(t),e&&(document.cookie=i.serialize(e,t,{path:"/"}))}),[e,o]),r};var x=c();class T{constructor(){this.listeners=[]}get hasListeners(){return!!this.listeners.length}addListener(e){return this.listeners.includes(e)||this.listeners.push(e),()=>this.removeListener(e)}emit(){const{listeners:e}=this;for(let t=0;t<e.length;++t)e[t](...arguments)}removeListener(e){const t=this.listeners.indexOf(e);t>=0&&this.listeners.splice(t,1)}}function S(e,t,n){k(e,t),t.set(e,n)}function k(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}var C=new WeakSet,P=new WeakMap,N=new WeakMap,O=new WeakMap,q=new WeakMap;class A{constructor(e){var t;k(this,t=C),t.add(this),S(this,P,{writable:!0,value:!1}),S(this,N,{writable:!0,value:null}),S(this,O,{writable:!0,value:[]}),S(this,q,{writable:!0,value:void 0}),h()(this,q,!!e)}get ready(){return d()(this,q)}setReady(e){const t=!!e;d()(this,q)!==t&&(h()(this,q,t),t&&!d()(this,P)&&d()(this,O).length&&function(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}(this,C,R).call(this))}async seize(){return this.waitReady(!0)}async waitReady(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!d()(this,q)||d()(this,O).length){const t=new v;d()(this,O).push(t),await t,e&&h()(this,q,!1),d()(this,N).resolve()}else e&&h()(this,q,!1)}}async function R(){for(h()(this,P,!0);d()(this,q)&&d()(this,O).length;)h()(this,N,new v),d()(this,O)[0].resolve(),await d()(this,N),d()(this,O).shift();h()(this,P,!1),h()(this,N,null)}var L=__webpack_require__(99),M=__webpack_require__.n(L),j=__webpack_require__(893);function D(e){let{children:t,chunkName:n,getComponent:r,placeholder:i,...a}=e;const{current:c}=(0,l.useRef)({mounted:!1,pendingStyles:[]}),{publicPath:s}=(0,o.getBuildInfo)(),_=(0,l.lazy)((async()=>{const e=await r();return c.pendingStyles.length&&await Promise.all(c.pendingStyles),e.default?e:{default:e}}));if(o.IS_SERVER_SIDE){const{chunks:e}=(0,u.getGlobalState)().ssrContext;if(e.includes(n))throw Error(`Chunk name clash for "${n}"`);e.push(n)}else c.mounted||(c.mounted=!0,window.CHUNK_GROUPS[n].forEach((e=>{if(!e.endsWith(".css"))return;const t=`${s}/${e}`;let n=document.querySelector(`link[href="${t}"]`);if(!n){n=document.createElement("link"),n.setAttribute("href",t),n.setAttribute("rel","stylesheet");const e=g();n.onload=e.resolve,n.onerror=e.resolve,c.pendingStyles.push(e),document.querySelector("head").appendChild(n)}window.STYLESHEET_USAGE_COUNTERS||={},window.STYLESHEET_USAGE_COUNTERS[t]||=0,++window.STYLESHEET_USAGE_COUNTERS[t]})));return(0,l.useEffect)((()=>()=>{c.mounted=!1,window.CHUNK_GROUPS[n].forEach((e=>{if(!e.endsWith(".css"))return;const t=`${s}/${e}`;if(--window.STYLESHEET_USAGE_COUNTERS[t]<=0){const e=document.querySelector(`link[href="${t}"]`);document.querySelector("head").removeChild(e)}}))}),[n,c,s]),(0,j.jsx)(l.Suspense,{fallback:i,children:(0,j.jsx)(_,{...a,children:t})})}function B(e){let{chunkName:t,getComponent:n,placeholder:r}=e;return function(){let{children:e,...o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.createElement)(D,{...o,chunkName:t,getComponent:n,placeholder:r},e)}}let W;D.propTypes={children:M().node,chunkName:M().string.isRequired,getComponent:M().func.isRequired,placeholder:M().node},D.defaultProps={children:void 0,placeholder:void 0},t().COMPOSE=e.COMPOSE,t().PRIORITY=e.PRIORITY;try{W=process.env.NODE_CONFIG_ENV}catch{}const U="production"!==(W||"production")&&n.requireWeak("./jest","/");async function X(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;for(let r=1;;++r)try{return await e()}catch(e){if(!(r<t))throw e;await y(n)}}var I=__webpack_require__(300),K=__webpack_require__.n(I),Y=__webpack_require__(128);function G(e){let{children:t,className:n,disabled:r,enforceA:o,keepScrollPosition:i,onClick:a,onMouseDown:c,openNewTab:s,replace:u,routerLinkType:_,to:d,...p}=e;return r||o||s||d.match(/^(#|(https?|mailto):)/)?(0,j.jsx)("a",{className:(n?n+" ":"")+"zH52sA",disabled:r,href:d,onClick:r?e=>e.preventDefault():a,onMouseDown:r?e=>e.preventDefault():c,rel:"noopener noreferrer",target:s?"_blank":"",children:t}):(0,l.createElement)(_,{className:n,disabled:r,onMouseDown:c,replace:u,to:d,onClick:e=>{a&&a(e),i||window.scroll(0,0)},...p},t)}function z(e){return(0,j.jsx)(G,{...e,routerLinkType:Y.Link})}function F(e){let{active:t,children:n,disabled:r,enforceA:o,onClick:i,onMouseDown:a,openNewTab:c,replace:s,theme:l,to:u}=e,_=l.button;return t&&l.active&&(_+=` ${l.active}`),r?(l.disabled&&(_+=` ${l.disabled}`),(0,j.jsx)("div",{className:_,children:n})):u?(0,j.jsx)(z,{className:_,enforceA:o,onClick:i,onMouseDown:a,openNewTab:c,replace:s,to:u,children:n}):(0,j.jsx)("div",{className:_,onClick:i,onKeyPress:i,onMouseDown:a,role:"button",tabIndex:0,children:n})}G.defaultProps={children:null,className:null,disabled:!1,enforceA:!1,keepScrollPosition:!1,onClick:null,onMouseDown:null,openNewTab:!1,replace:!1,to:""},G.propTypes={children:M().node,className:M().string,disabled:M().bool,enforceA:M().bool,keepScrollPosition:M().bool,onClick:M().func,onMouseDown:M().func,openNewTab:M().bool,replace:M().bool,routerLinkType:M().elementType.isRequired,to:M().oneOfType([M().object,M().string])};const H=t()("Button",["active","button","disabled"],{button:"E1FNQT",context:"KM0v4f",ad:"_3jm1-Q",hoc:"_0plpDL",active:"MAe9O6",disabled:"Br9IWV"})(F);F.defaultProps={active:!1,children:void 0,disabled:!1,enforceA:!1,onClick:void 0,onMouseDown:void 0,openNewTab:!1,replace:!1,to:void 0},F.propTypes={active:M().bool,children:M().node,disabled:M().bool,enforceA:M().bool,onClick:M().func,onMouseDown:M().func,openNewTab:M().bool,replace:M().bool,theme:H.themeType.isRequired,to:M().oneOfType([M().object,M().string])};var $=H;function V(e){let{checked:t,label:n,onChange:r,theme:o}=e;return(0,j.jsxs)("div",{className:o.container,children:[void 0===n?null:(0,j.jsx)("p",{className:o.label,children:n}),(0,j.jsx)("input",{checked:t,className:o.checkbox,onChange:r,type:"checkbox"})]})}const Q=t()("Checkbox",["checkbox","container","label"],{checkbox:"A-f8qJ",context:"dNQcC6",ad:"earXxa",hoc:"qAPfQ6",container:"Kr0g3M",label:"_3dML-O"})(V);V.propTypes={checked:M().bool,label:M().string,onChange:M().func,theme:Q.themeType.isRequired},V.defaultProps={checked:void 0,label:void 0,onChange:void 0};var J=Q,Z=__webpack_require__(715);function ee(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=document.getElementById("react-view"),r=(0,j.jsx)(u.GlobalStateProvider,{initialState:window.ISTATE,children:(0,j.jsx)(Y.BrowserRouter,{children:(0,j.jsx)(e,{})})});t.dontHydrate?(0,Z.createRoot)(n).render(r):(0,Z.hydrateRoot)(n,r)}function te(e){let{filter:t,label:n,onChange:r,options:o,theme:i,value:a}=e;const c=[(0,j.jsx)("option",{className:i.hiddenOption,children:"‌"},"__reactUtilsHiddenOption")];for(let e=0;e<o.length;++e){let n=o[e];t&&!t(n)||((0,s.isString)(n)&&(n={value:n}),c.push((0,j.jsx)("option",{className:i.option,value:n.value,children:void 0===n.name?n.value:n.name},n.value)))}return(0,j.jsxs)("div",{className:i.container,children:[void 0===n?null:(0,j.jsx)("p",{className:i.label,children:n}),(0,j.jsx)("select",{className:i.select,onChange:r,value:a,children:c}),(0,j.jsx)("div",{className:i.arrow,children:"▼"})]})}const ne=t()("Dropdown",["arrow","container","hiddenOption","label","option","select"],{arrow:"-zPK7Y",context:"haRIry",ad:"D4XHG2",hoc:"N3nd34",container:"_9CQpeA",label:"Gv0kyu",hiddenOption:"RdW3yR",select:"JXK1uw"})(te);te.propTypes={filter:M().func,label:M().string,onChange:M().func,options:M().arrayOf(M().oneOfType([M().shape({name:M().node,value:M().string.isRequired}),M().string]).isRequired),theme:ne.themeType.isRequired,value:M().string},te.defaultProps={filter:void 0,label:void 0,onChange:void 0,options:[],value:void 0};var re=ne;const oe=(0,l.forwardRef)(((e,t)=>{let{label:n,theme:r,...o}=e;return(0,j.jsxs)("span",{className:r.container,children:[void 0===n?null:(0,j.jsx)("p",{className:r.label,children:n}),(0,j.jsx)("input",{className:r.input,ref:t,...o})]})})),ie=t()("Input",["container","input","label"],{container:"Cxx397",context:"X5WszA",ad:"_8s7GCr",hoc:"TVlBYc",input:"M07d4s",label:"gfbdq-"})(oe);oe.propTypes={label:M().string,theme:ie.themeType.isRequired},oe.defaultProps={label:void 0};var ae=ie;function ce(e){let{children:t,leftSidePanelContent:n,rightSidePanelContent:r,theme:o}=e;return(0,j.jsxs)("div",{className:o.container,children:[(0,j.jsx)("div",{className:[o.sidePanel,o.leftSidePanel].join(" "),children:n}),(0,j.jsx)("div",{className:o.mainPanel,children:t}),(0,j.jsx)("div",{className:[o.sidePanel,o.rightSidePanel].join(" "),children:r})]})}const se=t()("PageLayout",["container","leftSidePanel","mainPanel","rightSidePanel","sidePanel"],{container:"T3cuHB",context:"m4mL-M",ad:"m3-mdC",hoc:"J15Z4H",mainPanel:"pPlQO2",sidePanel:"lqNh4h"})(ce);ce.propTypes={children:M().node,leftSidePanelContent:M().node,rightSidePanelContent:M().node,theme:se.themeType.isRequired},ce.defaultProps={children:null,leftSidePanelContent:null,rightSidePanelContent:null};var le=se,ue=__webpack_require__(383);const _e=(0,l.createContext)();function de(e){let{children:t,description:n,image:r,siteName:o,socialDescription:i,socialTitle:a,title:c,url:s}=e;const u=a||c,_=i||n,d=(0,l.useMemo)((()=>({description:n,image:r,siteName:o,socialDescription:i,socialTitle:a,title:c,url:s})),[n,r,o,i,a,c,s]);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(ue.Helmet,{children:[(0,j.jsx)("title",{children:c}),(0,j.jsx)("meta",{name:"description",content:n}),(0,j.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,j.jsx)("meta",{name:"twitter:title",content:u}),(0,j.jsx)("meta",{name:"twitter:description",content:_}),r?(0,j.jsx)("meta",{name:"twitter:image",content:r}):null,o?(0,j.jsx)("meta",{name:"twitter:site",content:`@${o}`}):null,(0,j.jsx)("meta",{name:"og:title",content:u}),r?(0,j.jsx)("meta",{name:"og:image",content:r}):null,r?(0,j.jsx)("meta",{name:"og:image:alt",content:u}):null,(0,j.jsx)("meta",{name:"og:description",content:_}),o?(0,j.jsx)("meta",{name:"og:sitename",content:o}):null,s?(0,j.jsx)("meta",{name:"og:url",content:s}):null]}),t?(0,j.jsx)(_e.Provider,{value:d,children:t}):null]})}de.Context=_e,de.defaultProps={children:null,image:null,siteName:null,socialDescription:null,socialTitle:null,url:null},de.propTypes={children:M().node,description:M().string.isRequired,image:M().string,siteName:M().string,socialDescription:M().string,socialTitle:M().string,title:M().string.isRequired,url:M().string};var pe=__webpack_require__(111),he=__webpack_require__.n(pe);function fe(e){let{children:t,onCancel:n,theme:r}=e;const o=(0,l.useRef)(),i=(0,l.useRef)(),[a,c]=(0,l.useState)();(0,l.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 s=(0,l.useMemo)((()=>(0,j.jsx)("div",{onFocus:()=>{const e=o.current.querySelectorAll("*");for(let t=e.length-1;t>=0;--t)if(e[t].focus(),document.activeElement===e[t])return;i.current.focus()},tabIndex:"0"})),[]);return a?he().createPortal((0,j.jsxs)(j.Fragment,{children:[s,(0,j.jsx)("div",{"aria-label":"Cancel",className:r.overlay,onClick:()=>n(),onKeyDown:e=>{"Escape"===e.key&&n()},ref:e=>{e&&e!==i.current&&(i.current=e,e.focus())},role:"button",tabIndex:"0"}),(0,j.jsx)("div",{"aria-modal":"true",className:r.container,onWheel:e=>e.stopPropagation(),ref:o,role:"dialog",children:t}),(0,j.jsx)("div",{onFocus:()=>{i.current.focus()},tabIndex:"0"}),s]}),a):null}const me=t()("Modal",["container","overlay"],{overlay:"ye2BZo",context:"Szmbbz",ad:"Ah-Nsc",hoc:"Wki41G",container:"gyZ4rc"})(fe);fe.propTypes={onCancel:M().func,children:M().node,theme:me.themeType.isRequired},fe.defaultProps={onCancel:s.noop,children:null};var be=me;function we(e){return(0,j.jsx)(G,{...e,routerLinkType:Y.NavLink})}function Ee(e){let{children:t,className:n,ratio:r}=e;const o=r.split(":"),i=100*o[1]/o[0]+"%",a=(0,j.jsx)("div",{style:{paddingBottom:i},className:"EznFz3",children:(0,j.jsx)("div",{className:"_0vb7tq",children:t})});return n?(0,j.jsx)("div",{className:n,children:a}):a}function ve(e){let{theme:t}=e;return(0,j.jsxs)("span",{className:(t.container?t.container+" ":"")+"_7zdld4",children:[(0,j.jsx)("span",{className:(t.circle?t.circle+" ":"")+"dBrB4g"}),(0,j.jsx)("span",{className:(t.circle?t.circle+" ":"")+"dBrB4g"}),(0,j.jsx)("span",{className:(t.circle?t.circle+" ":"")+"dBrB4g"})]})}Ee.defaultProps={children:null,className:null,ratio:"1:1"},Ee.propTypes={children:M().node,className:M().string,ratio:M().string},ve.defaultProps={theme:{}},ve.propTypes={theme:M().shape({container:M().string,circle:M().string})};var ge=t()("Throbber",["circle","container"],{container:"_7zdld4",context:"uIObt7",ad:"XIxe9o",hoc:"YOyORH",circle:"dBrB4g",bouncing:"TJe-6j"})(ve);const ye={ABOVE_CURSOR:"ABOVE_CURSOR",ABOVE_ELEMENT:"ABOVE_ELEMENT",BELOW_CURSOR:"BELOW_CURSOR",BELOW_ELEMENT:"BELOW_ELEMENT"},xe=["border-bottom-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";"),Te=["border-top-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";");const Se=(0,l.forwardRef)(((e,t)=>{let{children:n,theme:r}=e;const[o,i]=(0,l.useState)(null),a=(e,t,n,r)=>o&&function(e,t,n,r,o){const i=function(e){return{arrow:e.arrow.getBoundingClientRect(),container:e.container.getBoundingClientRect()}}(o),a=function(){const{pageXOffset:e,pageYOffset:t}=window,{documentElement:{clientHeight:n,clientWidth:r}}=document;return{left:e,right:e+r,top:t,bottom:t+n}}(),c=function(e,t,n){const{arrow:r,container:o}=n;return{arrowX:.5*(o.width-r.width),arrowY:o.height,containerX:e-o.width/2,containerY:t-o.height-r.height/1.5,baseArrowStyle:xe}}(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=Te);const s=`left:${c.containerX}px;top:${c.containerY}px`;o.container.setAttribute("style",s);const l=`${c.baseArrowStyle};left:${c.arrowX}px;top:${c.arrowY}px`;o.arrow.setAttribute("style",l)}(e,t,0,0,o);return(0,l.useImperativeHandle)(t,(()=>({pointTo:a}))),(0,l.useEffect)((()=>{const e=function(e){const t=document.createElement("div");e.arrow&&t.setAttribute("class",e.arrow);const n=document.createElement("div");e.content&&n.setAttribute("class",e.content);const r=document.createElement("div");return e.container&&r.setAttribute("class",e.container),r.appendChild(t),r.appendChild(n),document.body.appendChild(r),{container:r,arrow:t,content:n}}(r);return i(e),()=>{document.body.removeChild(e.container),i(null)}}),[r]),o?(0,pe.createPortal)(n,o.content):null}));Se.propTypes={children:M().node,theme:M().shape().isRequired},Se.defaultProps={children:null};var ke=Se;function Ce(e){let{children:t,placement:n,tip:r,theme:o}=e;const i=(0,l.useRef)(),a=(0,l.useRef)(),[c,s]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{if(c&&null!==r){const e=()=>s(!1);return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)}}),[c,r]),(0,j.jsxs)("div",{className:o.wrapper,onMouseLeave:()=>s(!1),onMouseMove:e=>((e,t)=>{if(c){const r=a.current.getBoundingClientRect();e<r.left||e>r.right||t<r.top||t>r.bottom?s(!1):i.current&&i.current.pointTo(e+window.pageXOffset,t+window.pageYOffset,n,a.current)}else s(!0)})(e.clientX,e.clientY),ref:a,children:[c&&null!==r?(0,j.jsx)(ke,{ref:i,theme:o,children:r}):null,t]})}const Pe=t()("WithTooltip",["appearance","arrow","container","content","wrapper"],{arrow:"M9gywF",ad:"_4xT7zE",hoc:"zd-vnH",context:"GdZucr",container:"f9gY8K",appearance:"L4ubm-",wrapper:"_4qDBRM"})(Ce);Pe.PLACEMENTS=ye,Ce.propTypes={children:M().node,placement:M().oneOf(Object.values(ye)),theme:Pe.themeType.isRequired,tip:M().node},Ce.defaultProps={children:null,placement:ye.ABOVE_CURSOR,tip:null};var Ne=Pe,Oe=__webpack_require__(656),qe=__webpack_require__.n(Oe),Ae={container:"jTxmOX",context:"dzIcLh",ad:"_5a9XX1",hoc:"_7sH52O"};function Re(e){let{autoplay:t,src:n,theme:r,title:o}=e,[i,a]=n.split("?");a=a?qe().parse(a):{};const c=a.v||i.match(/\/([a-zA-Z0-9-_]*)$/)[1];return i=`https://www.youtube.com/embed/${c}`,delete a.v,a.autoplay=t?1:0,i+=`?${qe().stringify(a)}`,(0,j.jsxs)(Ee,{className:r.container,ratio:"16:9",children:[(0,j.jsx)(ge,{theme:Ae}),(0,j.jsx)("iframe",{allow:"autoplay",allowFullScreen:!0,className:r.video,src:i,title:o})]})}const Le=t()("YouTubeVideo",["container","video"],{container:"sXHM81",context:"veKyYi",ad:"r3ABzd",hoc:"YKcPnR",video:"SlV2zw"})(Re);Re.propTypes={autoplay:M().bool,src:M().string.isRequired,theme:Le.themeType.isRequired,title:M().string},Re.defaultProps={autoplay:!1,title:""};var Me=Le;const je=n.requireWeak("./server","/")}(),__webpack_exports__}()}));
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@babel/runtime/helpers/classPrivateFieldGet"),require("@babel/runtime/helpers/classPrivateFieldSet"),require("@dr.pogodin/react-global-state"),require("@dr.pogodin/react-themes"),require("axios"),require("dayjs"),require("lodash"),require("prop-types"),require("qs"),require("react"),require("react-dom"),require("react-dom/client"),require("react-helmet"),require("react-router-dom")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/classPrivateFieldGet","@babel/runtime/helpers/classPrivateFieldSet","@dr.pogodin/react-global-state","@dr.pogodin/react-themes","axios","dayjs","lodash","prop-types","qs","react","react-dom","react-dom/client","react-helmet","react-router-dom"],e):"object"==typeof exports?exports["@dr.pogodin/react-utils"]=e(require("@babel/runtime/helpers/classPrivateFieldGet"),require("@babel/runtime/helpers/classPrivateFieldSet"),require("@dr.pogodin/react-global-state"),require("@dr.pogodin/react-themes"),require("axios"),require("dayjs"),require("lodash"),require("prop-types"),require("qs"),require("react"),require("react-dom"),require("react-dom/client"),require("react-helmet"),require("react-router-dom")):t["@dr.pogodin/react-utils"]=e(t["@babel/runtime/helpers/classPrivateFieldGet"],t["@babel/runtime/helpers/classPrivateFieldSet"],t["@dr.pogodin/react-global-state"],t["@dr.pogodin/react-themes"],t.axios,t.dayjs,t.lodash,t["prop-types"],t.qs,t.react,t["react-dom"],t["react-dom/client"],t["react-helmet"],t["react-router-dom"])}("undefined"!=typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__226__,__WEBPACK_EXTERNAL_MODULE__556__,__WEBPACK_EXTERNAL_MODULE__899__,__WEBPACK_EXTERNAL_MODULE__198__,__WEBPACK_EXTERNAL_MODULE__300__,__WEBPACK_EXTERNAL_MODULE__760__,__WEBPACK_EXTERNAL_MODULE__467__,__WEBPACK_EXTERNAL_MODULE__99__,__WEBPACK_EXTERNAL_MODULE__656__,__WEBPACK_EXTERNAL_MODULE__156__,__WEBPACK_EXTERNAL_MODULE__111__,__WEBPACK_EXTERNAL_MODULE__715__,__WEBPACK_EXTERNAL_MODULE__383__,__WEBPACK_EXTERNAL_MODULE__128__){return function(){var __webpack_modules__={144:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return getInj}});var node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(832),node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0__),node_forge_lib_aes__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(925),node_forge_lib_aes__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(node_forge_lib_aes__WEBPACK_IMPORTED_MODULE_1__),_shared_utils_isomorphy_buildInfo__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(971);let inj="undefined"!=typeof document&&document.querySelector('meta[itemprop="drpruinj"]');if(inj){inj.remove();const{key:key}=(0,_shared_utils_isomorphy_buildInfo__WEBPACK_IMPORTED_MODULE_2__.J)();inj=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.decode64(inj.content);const d=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().cipher.createDecipher("AES-CBC",key);d.start({iv:inj.slice(0,key.length)}),d.update(node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.createBuffer(inj.slice(key.length))),d.finish(),inj=node_forge_lib_forge__WEBPACK_IMPORTED_MODULE_0___default().util.decodeUtf8(d.output.data),inj=eval(`(${inj})`)}else inj={};function getInj(){return inj}},190:function(t,e,r){"use strict";r.d(e,{Z:function(){return c}});var i=r(899),n=r(715),o=r(128),a=r(144),s=r(893);function c(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=document.getElementById("react-view"),c=(0,s.jsx)(i.GlobalStateProvider,{initialState:(0,a.Z)().ISTATE,children:(0,s.jsx)(o.BrowserRouter,{children:(0,s.jsx)(t,{})})});e.dontHydrate?(0,n.createRoot)(r).render(c):(0,n.hydrateRoot)(r,c)}},971:function(t,e,r){"use strict";let i;function n(){if(void 0===i)throw Error('"Build Info" has not been initialized yet');return i}r.d(e,{J:function(){return n}}),"undefined"!=typeof BUILD_INFO&&(i=BUILD_INFO)},794:function(t,e,r){"use strict";r.d(e,{b:function(){return i},x:function(){return n}});const i="object"!=typeof process||!process.versions||!process.versions.node||!!r.g.REACT_UTILS_FORCE_CLIENT_SIDE,n=!i},145:function(t,e,r){"use strict";r.r(e),r.d(e,{IS_CLIENT_SIDE:function(){return n.b},IS_SERVER_SIDE:function(){return n.x},buildTimestamp:function(){return s},getBuildInfo:function(){return i.J},isDevBuild:function(){return o},isProdBuild:function(){return a}});var i=r(971),n=r(794);function o(){return!1}function a(){return!0}function s(){return(0,i.J)().timestamp}},869:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{requireWeak:function(){return requireWeak},resolveWeak:function(){return resolveWeak}});var _isomorphy__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(145);function requireWeak(modulePath,basePath){if(_isomorphy__WEBPACK_IMPORTED_MODULE_0__.IS_CLIENT_SIDE)return null;try{const{resolve:resolve}=eval("require")("path"),path=basePath?resolve(basePath,modulePath):modulePath,{default:def,...named}=eval("require")(path);return def?(Object.entries(named).forEach((t=>{let[e,r]=t;if(def[e])throw Error("Conflict between default and named exports");def[e]=r})),def):named}catch{return null}}function resolveWeak(t){return t}},489:function(t,e){"use strict";e.parse=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var r={},i=(e||{}).decode||n,o=0;o<t.length;){var s=t.indexOf("=",o);if(-1===s)break;var c=t.indexOf(";",o);if(-1===c)c=t.length;else if(c<s){o=t.lastIndexOf(";",s-1)+1;continue}var u=t.slice(o,s).trim();if(void 0===r[u]){var h=t.slice(s+1,c).trim();34===h.charCodeAt(0)&&(h=h.slice(1,-1)),r[u]=a(h,i)}o=c+1}return r},e.serialize=function(t,e,n){var a=n||{},s=a.encode||o;if("function"!=typeof s)throw new TypeError("option encode is invalid");if(!i.test(t))throw new TypeError("argument name is invalid");var c=s(e);if(c&&!i.test(c))throw new TypeError("argument val is invalid");var u=t+"="+c;if(null!=a.maxAge){var h=a.maxAge-0;if(isNaN(h)||!isFinite(h))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(h)}if(a.domain){if(!i.test(a.domain))throw new TypeError("option domain is invalid");u+="; Domain="+a.domain}if(a.path){if(!i.test(a.path))throw new TypeError("option path is invalid");u+="; Path="+a.path}if(a.expires){var l=a.expires;if(!function(t){return"[object Date]"===r.call(t)||t instanceof Date}(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");u+="; Expires="+l.toUTCString()}if(a.httpOnly&&(u+="; HttpOnly"),a.secure&&(u+="; Secure"),a.priority)switch("string"==typeof a.priority?a.priority.toLowerCase():a.priority){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(a.sameSite)switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return u};var r=Object.prototype.toString,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function n(t){return-1!==t.indexOf("%")?decodeURIComponent(t):t}function o(t){return encodeURIComponent(t)}function a(t,e){try{return e(t)}catch(e){return t}}},925:function(t,e,r){var i=r(832);function n(t,e){i.cipher.registerAlgorithm(t,(function(){return new i.aes.Algorithm(t,e)}))}r(649),r(967),r(116),t.exports=i.aes=i.aes||{},i.aes.startEncrypting=function(t,e,r,i){var n=d({key:t,output:r,decrypt:!1,mode:i});return n.start(e),n},i.aes.createEncryptionCipher=function(t,e){return d({key:t,output:null,decrypt:!1,mode:e})},i.aes.startDecrypting=function(t,e,r,i){var n=d({key:t,output:r,decrypt:!0,mode:i});return n.start(e),n},i.aes.createDecryptionCipher=function(t,e){return d({key:t,output:null,decrypt:!0,mode:e})},i.aes.Algorithm=function(t,e){h||l();var r=this;r.name=t,r.mode=new e({blockSize:16,cipher:{encrypt:function(t,e){return p(r._w,t,e,!1)},decrypt:function(t,e){return p(r._w,t,e,!0)}}}),r._init=!1},i.aes.Algorithm.prototype.initialize=function(t){if(!this._init){var e,r=t.key;if("string"!=typeof r||16!==r.length&&24!==r.length&&32!==r.length){if(i.util.isArray(r)&&(16===r.length||24===r.length||32===r.length)){e=r,r=i.util.createBuffer();for(var n=0;n<e.length;++n)r.putByte(e[n])}}else r=i.util.createBuffer(r);if(!i.util.isArray(r)){e=r,r=[];var o=e.length();if(16===o||24===o||32===o)for(o>>>=2,n=0;n<o;++n)r.push(e.getInt32())}if(!i.util.isArray(r)||4!==r.length&&6!==r.length&&8!==r.length)throw new Error("Invalid key parameter.");var a=this.mode.name,s=-1!==["CFB","OFB","CTR","GCM"].indexOf(a);this._w=f(r,t.decrypt&&!s),this._init=!0}},i.aes._expandKey=function(t,e){return h||l(),f(t,e)},i.aes._updateBlock=p,n("AES-ECB",i.cipher.modes.ecb),n("AES-CBC",i.cipher.modes.cbc),n("AES-CFB",i.cipher.modes.cfb),n("AES-OFB",i.cipher.modes.ofb),n("AES-CTR",i.cipher.modes.ctr),n("AES-GCM",i.cipher.modes.gcm);var o,a,s,c,u,h=!1;function l(){h=!0,s=[0,1,2,4,8,16,32,64,128,27,54];for(var t=new Array(256),e=0;e<128;++e)t[e]=e<<1,t[e+128]=e+128<<1^283;for(o=new Array(256),a=new Array(256),c=new Array(4),u=new Array(4),e=0;e<4;++e)c[e]=new Array(256),u[e]=new Array(256);var r,i,n,l,f,p,d,_=0,y=0;for(e=0;e<256;++e){l=(l=y^y<<1^y<<2^y<<3^y<<4)>>8^255&l^99,o[_]=l,a[l]=_,p=(f=t[l])<<24^l<<16^l<<8^l^f,d=((r=t[_])^(i=t[r])^(n=t[i]))<<24^(_^n)<<16^(_^i^n)<<8^_^r^n;for(var g=0;g<4;++g)c[g][_]=p,u[g][l]=d,p=p<<24|p>>>8,d=d<<24|d>>>8;0===_?_=y=1:(_=r^t[t[t[r^n]]],y^=t[t[y]])}}function f(t,e){for(var r,i=t.slice(0),n=1,a=i.length,c=4*(a+6+1),h=a;h<c;++h)r=i[h-1],h%a==0?(r=o[r>>>16&255]<<24^o[r>>>8&255]<<16^o[255&r]<<8^o[r>>>24]^s[n]<<24,n++):a>6&&h%a==4&&(r=o[r>>>24]<<24^o[r>>>16&255]<<16^o[r>>>8&255]<<8^o[255&r]),i[h]=i[h-a]^r;if(e){for(var l,f=u[0],p=u[1],d=u[2],_=u[3],y=i.slice(0),g=(h=0,(c=i.length)-4);h<c;h+=4,g-=4)if(0===h||h===c-4)y[h]=i[g],y[h+1]=i[g+3],y[h+2]=i[g+2],y[h+3]=i[g+1];else for(var m=0;m<4;++m)l=i[g+m],y[h+(3&-m)]=f[o[l>>>24]]^p[o[l>>>16&255]]^d[o[l>>>8&255]]^_[o[255&l]];i=y}return i}function p(t,e,r,i){var n,s,h,l,f,p,d,_,y,g,m,b,v=t.length/4-1;i?(n=u[0],s=u[1],h=u[2],l=u[3],f=a):(n=c[0],s=c[1],h=c[2],l=c[3],f=o),p=e[0]^t[0],d=e[i?3:1]^t[1],_=e[2]^t[2],y=e[i?1:3]^t[3];for(var B=3,w=1;w<v;++w)g=n[p>>>24]^s[d>>>16&255]^h[_>>>8&255]^l[255&y]^t[++B],m=n[d>>>24]^s[_>>>16&255]^h[y>>>8&255]^l[255&p]^t[++B],b=n[_>>>24]^s[y>>>16&255]^h[p>>>8&255]^l[255&d]^t[++B],y=n[y>>>24]^s[p>>>16&255]^h[d>>>8&255]^l[255&_]^t[++B],p=g,d=m,_=b;r[0]=f[p>>>24]<<24^f[d>>>16&255]<<16^f[_>>>8&255]<<8^f[255&y]^t[++B],r[i?3:1]=f[d>>>24]<<24^f[_>>>16&255]<<16^f[y>>>8&255]<<8^f[255&p]^t[++B],r[2]=f[_>>>24]<<24^f[y>>>16&255]<<16^f[p>>>8&255]<<8^f[255&d]^t[++B],r[i?1:3]=f[y>>>24]<<24^f[p>>>16&255]<<16^f[d>>>8&255]<<8^f[255&_]^t[++B]}function d(t){var e,r="AES-"+((t=t||{}).mode||"CBC").toUpperCase(),n=(e=t.decrypt?i.cipher.createDecipher(r,t.key):i.cipher.createCipher(r,t.key)).start;return e.start=function(t,r){var o=null;r instanceof i.util.ByteBuffer&&(o=r,r={}),(r=r||{}).output=o,r.iv=t,n.call(e,r)},e}},807:function(t){var e={};t.exports=e;var r={};e.encode=function(t,e,r){if("string"!=typeof e)throw new TypeError('"alphabet" must be a string.');if(void 0!==r&&"number"!=typeof r)throw new TypeError('"maxline" must be a number.');var i="";if(t instanceof Uint8Array){var n=0,o=e.length,a=e.charAt(0),s=[0];for(n=0;n<t.length;++n){for(var c=0,u=t[n];c<s.length;++c)u+=s[c]<<8,s[c]=u%o,u=u/o|0;for(;u>0;)s.push(u%o),u=u/o|0}for(n=0;0===t[n]&&n<t.length-1;++n)i+=a;for(n=s.length-1;n>=0;--n)i+=e[s[n]]}else i=function(t,e){var r=0,i=e.length,n=e.charAt(0),o=[0];for(r=0;r<t.length();++r){for(var a=0,s=t.at(r);a<o.length;++a)s+=o[a]<<8,o[a]=s%i,s=s/i|0;for(;s>0;)o.push(s%i),s=s/i|0}var c="";for(r=0;0===t.at(r)&&r<t.length()-1;++r)c+=n;for(r=o.length-1;r>=0;--r)c+=e[o[r]];return c}(t,e);if(r){var h=new RegExp(".{1,"+r+"}","g");i=i.match(h).join("\r\n")}return i},e.decode=function(t,e){if("string"!=typeof t)throw new TypeError('"input" must be a string.');if("string"!=typeof e)throw new TypeError('"alphabet" must be a string.');var i=r[e];if(!i){i=r[e]=[];for(var n=0;n<e.length;++n)i[e.charCodeAt(n)]=n}t=t.replace(/\s/g,"");var o=e.length,a=e.charAt(0),s=[0];for(n=0;n<t.length;n++){var c=i[t.charCodeAt(n)];if(void 0===c)return;for(var u=0,h=c;u<s.length;++u)h+=s[u]*o,s[u]=255&h,h>>=8;for(;h>0;)s.push(255&h),h>>=8}for(var l=0;t[l]===a&&l<t.length-1;++l)s.push(0);return"undefined"!=typeof Buffer?Buffer.from(s.reverse()):new Uint8Array(s.reverse())}},649:function(t,e,r){var i=r(832);r(116),t.exports=i.cipher=i.cipher||{},i.cipher.algorithms=i.cipher.algorithms||{},i.cipher.createCipher=function(t,e){var r=t;if("string"==typeof r&&(r=i.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+t);return new i.cipher.BlockCipher({algorithm:r,key:e,decrypt:!1})},i.cipher.createDecipher=function(t,e){var r=t;if("string"==typeof r&&(r=i.cipher.getAlgorithm(r))&&(r=r()),!r)throw new Error("Unsupported algorithm: "+t);return new i.cipher.BlockCipher({algorithm:r,key:e,decrypt:!0})},i.cipher.registerAlgorithm=function(t,e){t=t.toUpperCase(),i.cipher.algorithms[t]=e},i.cipher.getAlgorithm=function(t){return(t=t.toUpperCase())in i.cipher.algorithms?i.cipher.algorithms[t]:null};var n=i.cipher.BlockCipher=function(t){this.algorithm=t.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=t.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=t.decrypt,this.algorithm.initialize(t)};n.prototype.start=function(t){t=t||{};var e={};for(var r in t)e[r]=t[r];e.decrypt=this._decrypt,this._finish=!1,this._input=i.util.createBuffer(),this.output=t.output||i.util.createBuffer(),this.mode.start(e)},n.prototype.update=function(t){for(t&&this._input.putBuffer(t);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},n.prototype.finish=function(t){!t||"ECB"!==this.mode.name&&"CBC"!==this.mode.name||(this.mode.pad=function(e){return t(this.blockSize,e,!1)},this.mode.unpad=function(e){return t(this.blockSize,e,!0)});var e={};return e.decrypt=this._decrypt,e.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,e)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,e)||this.mode.afterFinish&&!this.mode.afterFinish(this.output,e)))}},967:function(t,e,r){var i=r(832);r(116),i.cipher=i.cipher||{};var n=t.exports=i.cipher.modes=i.cipher.modes||{};function o(t,e){if("string"==typeof t&&(t=i.util.createBuffer(t)),i.util.isArray(t)&&t.length>4){var r=t;t=i.util.createBuffer();for(var n=0;n<r.length;++n)t.putByte(r[n])}if(t.length()<e)throw new Error("Invalid IV length; got "+t.length()+" bytes and expected "+e+" bytes.");if(!i.util.isArray(t)){var o=[],a=e/4;for(n=0;n<a;++n)o.push(t.getInt32());t=o}return t}function a(t){t[t.length-1]=t[t.length-1]+1&4294967295}function s(t){return[t/4294967296|0,4294967295&t]}n.ecb=function(t){t=t||{},this.name="ECB",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},n.ecb.prototype.start=function(t){},n.ecb.prototype.encrypt=function(t,e,r){if(t.length()<this.blockSize&&!(r&&t.length()>0))return!0;for(var i=0;i<this._ints;++i)this._inBlock[i]=t.getInt32();for(this.cipher.encrypt(this._inBlock,this._outBlock),i=0;i<this._ints;++i)e.putInt32(this._outBlock[i])},n.ecb.prototype.decrypt=function(t,e,r){if(t.length()<this.blockSize&&!(r&&t.length()>0))return!0;for(var i=0;i<this._ints;++i)this._inBlock[i]=t.getInt32();for(this.cipher.decrypt(this._inBlock,this._outBlock),i=0;i<this._ints;++i)e.putInt32(this._outBlock[i])},n.ecb.prototype.pad=function(t,e){var r=t.length()===this.blockSize?this.blockSize:this.blockSize-t.length();return t.fillWithByte(r,r),!0},n.ecb.prototype.unpad=function(t,e){if(e.overflow>0)return!1;var r=t.length(),i=t.at(r-1);return!(i>this.blockSize<<2||(t.truncate(i),0))},n.cbc=function(t){t=t||{},this.name="CBC",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},n.cbc.prototype.start=function(t){if(null===t.iv){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else{if(!("iv"in t))throw new Error("Invalid IV parameter.");this._iv=o(t.iv,this.blockSize),this._prev=this._iv.slice(0)}},n.cbc.prototype.encrypt=function(t,e,r){if(t.length()<this.blockSize&&!(r&&t.length()>0))return!0;for(var i=0;i<this._ints;++i)this._inBlock[i]=this._prev[i]^t.getInt32();for(this.cipher.encrypt(this._inBlock,this._outBlock),i=0;i<this._ints;++i)e.putInt32(this._outBlock[i]);this._prev=this._outBlock},n.cbc.prototype.decrypt=function(t,e,r){if(t.length()<this.blockSize&&!(r&&t.length()>0))return!0;for(var i=0;i<this._ints;++i)this._inBlock[i]=t.getInt32();for(this.cipher.decrypt(this._inBlock,this._outBlock),i=0;i<this._ints;++i)e.putInt32(this._prev[i]^this._outBlock[i]);this._prev=this._inBlock.slice(0)},n.cbc.prototype.pad=function(t,e){var r=t.length()===this.blockSize?this.blockSize:this.blockSize-t.length();return t.fillWithByte(r,r),!0},n.cbc.prototype.unpad=function(t,e){if(e.overflow>0)return!1;var r=t.length(),i=t.at(r-1);return!(i>this.blockSize<<2||(t.truncate(i),0))},n.cfb=function(t){t=t||{},this.name="CFB",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=i.util.createBuffer(),this._partialBytes=0},n.cfb.prototype.start=function(t){if(!("iv"in t))throw new Error("Invalid IV parameter.");this._iv=o(t.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},n.cfb.prototype.encrypt=function(t,e,r){var i=t.length();if(0===i)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&i>=this.blockSize)for(var n=0;n<this._ints;++n)this._inBlock[n]=t.getInt32()^this._outBlock[n],e.putInt32(this._inBlock[n]);else{var o=(this.blockSize-i)%this.blockSize;for(o>0&&(o=this.blockSize-o),this._partialOutput.clear(),n=0;n<this._ints;++n)this._partialBlock[n]=t.getInt32()^this._outBlock[n],this._partialOutput.putInt32(this._partialBlock[n]);if(o>0)t.read-=this.blockSize;else for(n=0;n<this._ints;++n)this._inBlock[n]=this._partialBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return e.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0}},n.cfb.prototype.decrypt=function(t,e,r){var i=t.length();if(0===i)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&i>=this.blockSize)for(var n=0;n<this._ints;++n)this._inBlock[n]=t.getInt32(),e.putInt32(this._inBlock[n]^this._outBlock[n]);else{var o=(this.blockSize-i)%this.blockSize;for(o>0&&(o=this.blockSize-o),this._partialOutput.clear(),n=0;n<this._ints;++n)this._partialBlock[n]=t.getInt32(),this._partialOutput.putInt32(this._partialBlock[n]^this._outBlock[n]);if(o>0)t.read-=this.blockSize;else for(n=0;n<this._ints;++n)this._inBlock[n]=this._partialBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return e.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0}},n.ofb=function(t){t=t||{},this.name="OFB",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=i.util.createBuffer(),this._partialBytes=0},n.ofb.prototype.start=function(t){if(!("iv"in t))throw new Error("Invalid IV parameter.");this._iv=o(t.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},n.ofb.prototype.encrypt=function(t,e,r){var i=t.length();if(0===t.length())return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&i>=this.blockSize)for(var n=0;n<this._ints;++n)e.putInt32(t.getInt32()^this._outBlock[n]),this._inBlock[n]=this._outBlock[n];else{var o=(this.blockSize-i)%this.blockSize;for(o>0&&(o=this.blockSize-o),this._partialOutput.clear(),n=0;n<this._ints;++n)this._partialOutput.putInt32(t.getInt32()^this._outBlock[n]);if(o>0)t.read-=this.blockSize;else for(n=0;n<this._ints;++n)this._inBlock[n]=this._outBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return e.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0}},n.ofb.prototype.decrypt=n.ofb.prototype.encrypt,n.ctr=function(t){t=t||{},this.name="CTR",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=i.util.createBuffer(),this._partialBytes=0},n.ctr.prototype.start=function(t){if(!("iv"in t))throw new Error("Invalid IV parameter.");this._iv=o(t.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},n.ctr.prototype.encrypt=function(t,e,r){var i=t.length();if(0===i)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&i>=this.blockSize)for(var n=0;n<this._ints;++n)e.putInt32(t.getInt32()^this._outBlock[n]);else{var o=(this.blockSize-i)%this.blockSize;for(o>0&&(o=this.blockSize-o),this._partialOutput.clear(),n=0;n<this._ints;++n)this._partialOutput.putInt32(t.getInt32()^this._outBlock[n]);if(o>0&&(t.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return e.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0}a(this._inBlock)},n.ctr.prototype.decrypt=n.ctr.prototype.encrypt,n.gcm=function(t){t=t||{},this.name="GCM",this.cipher=t.cipher,this.blockSize=t.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=i.util.createBuffer(),this._partialBytes=0,this._R=3774873600},n.gcm.prototype.start=function(t){if(!("iv"in t))throw new Error("Invalid IV parameter.");var e,r=i.util.createBuffer(t.iv);if(this._cipherLength=0,e="additionalData"in t?i.util.createBuffer(t.additionalData):i.util.createBuffer(),this._tagLength="tagLength"in t?t.tagLength:128,this._tag=null,t.decrypt&&(this._tag=i.util.createBuffer(t.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var n=r.length();if(12===n)this._j0=[r.getInt32(),r.getInt32(),r.getInt32(),1];else{for(this._j0=[0,0,0,0];r.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[r.getInt32(),r.getInt32(),r.getInt32(),r.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(s(8*n)))}this._inBlock=this._j0.slice(0),a(this._inBlock),this._partialBytes=0,e=i.util.createBuffer(e),this._aDataLength=s(8*e.length());var o=e.length()%this.blockSize;for(o&&e.fillWithByte(0,this.blockSize-o),this._s=[0,0,0,0];e.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[e.getInt32(),e.getInt32(),e.getInt32(),e.getInt32()])},n.gcm.prototype.encrypt=function(t,e,r){var i=t.length();if(0===i)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),0===this._partialBytes&&i>=this.blockSize){for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n]^=t.getInt32());this._cipherLength+=this.blockSize}else{var o=(this.blockSize-i)%this.blockSize;for(o>0&&(o=this.blockSize-o),this._partialOutput.clear(),n=0;n<this._ints;++n)this._partialOutput.putInt32(t.getInt32()^this._outBlock[n]);if(o<=0||r){if(r){var s=i%this.blockSize;this._cipherLength+=s,this._partialOutput.truncate(this.blockSize-s)}else this._cipherLength+=this.blockSize;for(n=0;n<this._ints;++n)this._outBlock[n]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),o>0&&!r)return t.read-=this.blockSize,e.putBytes(this._partialOutput.getBytes(o-this._partialBytes)),this._partialBytes=o,!0;e.putBytes(this._partialOutput.getBytes(i-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),a(this._inBlock)},n.gcm.prototype.decrypt=function(t,e,r){var i=t.length();if(i<this.blockSize&&!(r&&i>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),a(this._inBlock),this._hashBlock[0]=t.getInt32(),this._hashBlock[1]=t.getInt32(),this._hashBlock[2]=t.getInt32(),this._hashBlock[3]=t.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n]^this._hashBlock[n]);i<this.blockSize?this._cipherLength+=i%this.blockSize:this._cipherLength+=this.blockSize},n.gcm.prototype.afterFinish=function(t,e){var r=!0;e.decrypt&&e.overflow&&t.truncate(this.blockSize-e.overflow),this.tag=i.util.createBuffer();var n=this._aDataLength.concat(s(8*this._cipherLength));this._s=this.ghash(this._hashSubkey,this._s,n);var o=[];this.cipher.encrypt(this._j0,o);for(var a=0;a<this._ints;++a)this.tag.putInt32(this._s[a]^o[a]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),e.decrypt&&this.tag.bytes()!==this._tag&&(r=!1),r},n.gcm.prototype.multiply=function(t,e){for(var r=[0,0,0,0],i=e.slice(0),n=0;n<128;++n)t[n/32|0]&1<<31-n%32&&(r[0]^=i[0],r[1]^=i[1],r[2]^=i[2],r[3]^=i[3]),this.pow(i,i);return r},n.gcm.prototype.pow=function(t,e){for(var r=1&t[3],i=3;i>0;--i)e[i]=t[i]>>>1|(1&t[i-1])<<31;e[0]=t[0]>>>1,r&&(e[0]^=this._R)},n.gcm.prototype.tableMultiply=function(t){for(var e=[0,0,0,0],r=0;r<32;++r){var i=t[r/8|0]>>>4*(7-r%8)&15,n=this._m[r][i];e[0]^=n[0],e[1]^=n[1],e[2]^=n[2],e[3]^=n[3]}return e},n.gcm.prototype.ghash=function(t,e,r){return e[0]^=r[0],e[1]^=r[1],e[2]^=r[2],e[3]^=r[3],this.tableMultiply(e)},n.gcm.prototype.generateHashTable=function(t,e){for(var r=8/e,i=4*r,n=16*r,o=new Array(n),a=0;a<n;++a){var s=[0,0,0,0],c=(i-1-a%i)*e;s[a/i|0]=1<<e-1<<c,o[a]=this.generateSubHashTable(this.multiply(s,t),e)}return o},n.gcm.prototype.generateSubHashTable=function(t,e){var r=1<<e,i=r>>>1,n=new Array(r);n[i]=t.slice(0);for(var o=i>>>1;o>0;)this.pow(n[2*o],n[o]=[]),o>>=1;for(o=2;o<i;){for(var a=1;a<o;++a){var s=n[o],c=n[a];n[o+a]=[s[0]^c[0],s[1]^c[1],s[2]^c[2],s[3]^c[3]]}o*=2}for(n[0]=[0,0,0,0],o=i+1;o<r;++o){var u=n[o^i];n[o]=[t[0]^u[0],t[1]^u[1],t[2]^u[2],t[3]^u[3]]}return n}},832:function(t){t.exports={options:{usePureJavaScript:!1}}},116:function(t,e,r){var i=r(832),n=r(807),o=t.exports=i.util=i.util||{};function a(t){if(8!==t&&16!==t&&24!==t&&32!==t)throw new Error("Only 8, 16, 24, or 32 bits supported: "+t)}function s(t){if(this.data="",this.read=0,"string"==typeof t)this.data=t;else if(o.isArrayBuffer(t)||o.isArrayBufferView(t))if("undefined"!=typeof Buffer&&t instanceof Buffer)this.data=t.toString("binary");else{var e=new Uint8Array(t);try{this.data=String.fromCharCode.apply(null,e)}catch(t){for(var r=0;r<e.length;++r)this.putByte(e[r])}}else(t instanceof s||"object"==typeof t&&"string"==typeof t.data&&"number"==typeof t.read)&&(this.data=t.data,this.read=t.read);this._constructedStringLength=0}!function(){if("undefined"!=typeof process&&process.nextTick&&!process.browser)return o.nextTick=process.nextTick,void("function"==typeof setImmediate?o.setImmediate=setImmediate:o.setImmediate=o.nextTick);if("function"==typeof setImmediate)return o.setImmediate=function(){return setImmediate.apply(void 0,arguments)},void(o.nextTick=function(t){return setImmediate(t)});if(o.setImmediate=function(t){setTimeout(t,0)},"undefined"!=typeof window&&"function"==typeof window.postMessage){var t="forge.setImmediate",e=[];o.setImmediate=function(r){e.push(r),1===e.length&&window.postMessage(t,"*")},window.addEventListener("message",(function(r){if(r.source===window&&r.data===t){r.stopPropagation();var i=e.slice();e.length=0,i.forEach((function(t){t()}))}}),!0)}if("undefined"!=typeof MutationObserver){var r=Date.now(),i=!0,n=document.createElement("div");e=[],new MutationObserver((function(){var t=e.slice();e.length=0,t.forEach((function(t){t()}))})).observe(n,{attributes:!0});var a=o.setImmediate;o.setImmediate=function(t){Date.now()-r>15?(r=Date.now(),a(t)):(e.push(t),1===e.length&&n.setAttribute("a",i=!i))}}o.nextTick=o.setImmediate}(),o.isNodejs="undefined"!=typeof process&&process.versions&&process.versions.node,o.globalScope=o.isNodejs?r.g:"undefined"==typeof self?window:self,o.isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},o.isArrayBuffer=function(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer},o.isArrayBufferView=function(t){return t&&o.isArrayBuffer(t.buffer)&&void 0!==t.byteLength},o.ByteBuffer=s,o.ByteStringBuffer=s,o.ByteStringBuffer.prototype._optimizeConstructedString=function(t){this._constructedStringLength+=t,this._constructedStringLength>4096&&(this.data.substr(0,1),this._constructedStringLength=0)},o.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},o.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},o.ByteStringBuffer.prototype.putByte=function(t){return this.putBytes(String.fromCharCode(t))},o.ByteStringBuffer.prototype.fillWithByte=function(t,e){t=String.fromCharCode(t);for(var r=this.data;e>0;)1&e&&(r+=t),(e>>>=1)>0&&(t+=t);return this.data=r,this._optimizeConstructedString(e),this},o.ByteStringBuffer.prototype.putBytes=function(t){return this.data+=t,this._optimizeConstructedString(t.length),this},o.ByteStringBuffer.prototype.putString=function(t){return this.putBytes(o.encodeUtf8(t))},o.ByteStringBuffer.prototype.putInt16=function(t){return this.putBytes(String.fromCharCode(t>>8&255)+String.fromCharCode(255&t))},o.ByteStringBuffer.prototype.putInt24=function(t){return this.putBytes(String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t))},o.ByteStringBuffer.prototype.putInt32=function(t){return this.putBytes(String.fromCharCode(t>>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t))},o.ByteStringBuffer.prototype.putInt16Le=function(t){return this.putBytes(String.fromCharCode(255&t)+String.fromCharCode(t>>8&255))},o.ByteStringBuffer.prototype.putInt24Le=function(t){return this.putBytes(String.fromCharCode(255&t)+String.fromCharCode(t>>8&255)+String.fromCharCode(t>>16&255))},o.ByteStringBuffer.prototype.putInt32Le=function(t){return this.putBytes(String.fromCharCode(255&t)+String.fromCharCode(t>>8&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>24&255))},o.ByteStringBuffer.prototype.putInt=function(t,e){a(e);var r="";do{e-=8,r+=String.fromCharCode(t>>e&255)}while(e>0);return this.putBytes(r)},o.ByteStringBuffer.prototype.putSignedInt=function(t,e){return t<0&&(t+=2<<e-1),this.putInt(t,e)},o.ByteStringBuffer.prototype.putBuffer=function(t){return this.putBytes(t.getBytes())},o.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},o.ByteStringBuffer.prototype.getInt16=function(){var t=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,t},o.ByteStringBuffer.prototype.getInt24=function(){var t=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,t},o.ByteStringBuffer.prototype.getInt32=function(){var t=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,t},o.ByteStringBuffer.prototype.getInt16Le=function(){var t=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,t},o.ByteStringBuffer.prototype.getInt24Le=function(){var t=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,t},o.ByteStringBuffer.prototype.getInt32Le=function(){var t=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,t},o.ByteStringBuffer.prototype.getInt=function(t){a(t);var e=0;do{e=(e<<8)+this.data.charCodeAt(this.read++),t-=8}while(t>0);return e},o.ByteStringBuffer.prototype.getSignedInt=function(t){var e=this.getInt(t),r=2<<t-2;return e>=r&&(e-=r<<1),e},o.ByteStringBuffer.prototype.getBytes=function(t){var e;return t?(t=Math.min(this.length(),t),e=this.data.slice(this.read,this.read+t),this.read+=t):0===t?e="":(e=0===this.read?this.data:this.data.slice(this.read),this.clear()),e},o.ByteStringBuffer.prototype.bytes=function(t){return void 0===t?this.data.slice(this.read):this.data.slice(this.read,this.read+t)},o.ByteStringBuffer.prototype.at=function(t){return this.data.charCodeAt(this.read+t)},o.ByteStringBuffer.prototype.setAt=function(t,e){return this.data=this.data.substr(0,this.read+t)+String.fromCharCode(e)+this.data.substr(this.read+t+1),this},o.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},o.ByteStringBuffer.prototype.copy=function(){var t=o.createBuffer(this.data);return t.read=this.read,t},o.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},o.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},o.ByteStringBuffer.prototype.truncate=function(t){var e=Math.max(0,this.length()-t);return this.data=this.data.substr(this.read,e),this.read=0,this},o.ByteStringBuffer.prototype.toHex=function(){for(var t="",e=this.read;e<this.data.length;++e){var r=this.data.charCodeAt(e);r<16&&(t+="0"),t+=r.toString(16)}return t},o.ByteStringBuffer.prototype.toString=function(){return o.decodeUtf8(this.bytes())},o.DataBuffer=function(t,e){e=e||{},this.read=e.readOffset||0,this.growSize=e.growSize||1024;var r=o.isArrayBuffer(t),i=o.isArrayBufferView(t);if(r||i)return this.data=r?new DataView(t):new DataView(t.buffer,t.byteOffset,t.byteLength),void(this.write="writeOffset"in e?e.writeOffset:this.data.byteLength);this.data=new DataView(new ArrayBuffer(0)),this.write=0,null!=t&&this.putBytes(t),"writeOffset"in e&&(this.write=e.writeOffset)},o.DataBuffer.prototype.length=function(){return this.write-this.read},o.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},o.DataBuffer.prototype.accommodate=function(t,e){if(this.length()>=t)return this;e=Math.max(e||this.growSize,t);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),i=new Uint8Array(this.length()+e);return i.set(r),this.data=new DataView(i.buffer),this},o.DataBuffer.prototype.putByte=function(t){return this.accommodate(1),this.data.setUint8(this.write++,t),this},o.DataBuffer.prototype.fillWithByte=function(t,e){this.accommodate(e);for(var r=0;r<e;++r)this.data.setUint8(t);return this},o.DataBuffer.prototype.putBytes=function(t,e){if(o.isArrayBufferView(t)){var r=(i=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)).byteLength-i.byteOffset;return this.accommodate(r),new Uint8Array(this.data.buffer,this.write).set(i),this.write+=r,this}if(o.isArrayBuffer(t)){var i=new Uint8Array(t);return this.accommodate(i.byteLength),new Uint8Array(this.data.buffer).set(i,this.write),this.write+=i.byteLength,this}if(t instanceof o.DataBuffer||"object"==typeof t&&"number"==typeof t.read&&"number"==typeof t.write&&o.isArrayBufferView(t.data))return i=new Uint8Array(t.data.byteLength,t.read,t.length()),this.accommodate(i.byteLength),new Uint8Array(t.data.byteLength,this.write).set(i),this.write+=i.byteLength,this;if(t instanceof o.ByteStringBuffer&&(t=t.data,e="binary"),e=e||"binary","string"==typeof t){var n;if("hex"===e)return this.accommodate(Math.ceil(t.length/2)),n=new Uint8Array(this.data.buffer,this.write),this.write+=o.binary.hex.decode(t,n,this.write),this;if("base64"===e)return this.accommodate(3*Math.ceil(t.length/4)),n=new Uint8Array(this.data.buffer,this.write),this.write+=o.binary.base64.decode(t,n,this.write),this;if("utf8"===e&&(t=o.encodeUtf8(t),e="binary"),"binary"===e||"raw"===e)return this.accommodate(t.length),n=new Uint8Array(this.data.buffer,this.write),this.write+=o.binary.raw.decode(n),this;if("utf16"===e)return this.accommodate(2*t.length),n=new Uint16Array(this.data.buffer,this.write),this.write+=o.text.utf16.encode(n),this;throw new Error("Invalid encoding: "+e)}throw Error("Invalid parameter: "+t)},o.DataBuffer.prototype.putBuffer=function(t){return this.putBytes(t),t.clear(),this},o.DataBuffer.prototype.putString=function(t){return this.putBytes(t,"utf16")},o.DataBuffer.prototype.putInt16=function(t){return this.accommodate(2),this.data.setInt16(this.write,t),this.write+=2,this},o.DataBuffer.prototype.putInt24=function(t){return this.accommodate(3),this.data.setInt16(this.write,t>>8&65535),this.data.setInt8(this.write,t>>16&255),this.write+=3,this},o.DataBuffer.prototype.putInt32=function(t){return this.accommodate(4),this.data.setInt32(this.write,t),this.write+=4,this},o.DataBuffer.prototype.putInt16Le=function(t){return this.accommodate(2),this.data.setInt16(this.write,t,!0),this.write+=2,this},o.DataBuffer.prototype.putInt24Le=function(t){return this.accommodate(3),this.data.setInt8(this.write,t>>16&255),this.data.setInt16(this.write,t>>8&65535,!0),this.write+=3,this},o.DataBuffer.prototype.putInt32Le=function(t){return this.accommodate(4),this.data.setInt32(this.write,t,!0),this.write+=4,this},o.DataBuffer.prototype.putInt=function(t,e){a(e),this.accommodate(e/8);do{e-=8,this.data.setInt8(this.write++,t>>e&255)}while(e>0);return this},o.DataBuffer.prototype.putSignedInt=function(t,e){return a(e),this.accommodate(e/8),t<0&&(t+=2<<e-1),this.putInt(t,e)},o.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},o.DataBuffer.prototype.getInt16=function(){var t=this.data.getInt16(this.read);return this.read+=2,t},o.DataBuffer.prototype.getInt24=function(){var t=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,t},o.DataBuffer.prototype.getInt32=function(){var t=this.data.getInt32(this.read);return this.read+=4,t},o.DataBuffer.prototype.getInt16Le=function(){var t=this.data.getInt16(this.read,!0);return this.read+=2,t},o.DataBuffer.prototype.getInt24Le=function(){var t=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,t},o.DataBuffer.prototype.getInt32Le=function(){var t=this.data.getInt32(this.read,!0);return this.read+=4,t},o.DataBuffer.prototype.getInt=function(t){a(t);var e=0;do{e=(e<<8)+this.data.getInt8(this.read++),t-=8}while(t>0);return e},o.DataBuffer.prototype.getSignedInt=function(t){var e=this.getInt(t),r=2<<t-2;return e>=r&&(e-=r<<1),e},o.DataBuffer.prototype.getBytes=function(t){var e;return t?(t=Math.min(this.length(),t),e=this.data.slice(this.read,this.read+t),this.read+=t):0===t?e="":(e=0===this.read?this.data:this.data.slice(this.read),this.clear()),e},o.DataBuffer.prototype.bytes=function(t){return void 0===t?this.data.slice(this.read):this.data.slice(this.read,this.read+t)},o.DataBuffer.prototype.at=function(t){return this.data.getUint8(this.read+t)},o.DataBuffer.prototype.setAt=function(t,e){return this.data.setUint8(t,e),this},o.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},o.DataBuffer.prototype.copy=function(){return new o.DataBuffer(this)},o.DataBuffer.prototype.compact=function(){if(this.read>0){var t=new Uint8Array(this.data.buffer,this.read),e=new Uint8Array(t.byteLength);e.set(t),this.data=new DataView(e),this.write-=this.read,this.read=0}return this},o.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},o.DataBuffer.prototype.truncate=function(t){return this.write=Math.max(0,this.length()-t),this.read=Math.min(this.read,this.write),this},o.DataBuffer.prototype.toHex=function(){for(var t="",e=this.read;e<this.data.byteLength;++e){var r=this.data.getUint8(e);r<16&&(t+="0"),t+=r.toString(16)}return t},o.DataBuffer.prototype.toString=function(t){var e=new Uint8Array(this.data,this.read,this.length());if("binary"===(t=t||"utf8")||"raw"===t)return o.binary.raw.encode(e);if("hex"===t)return o.binary.hex.encode(e);if("base64"===t)return o.binary.base64.encode(e);if("utf8"===t)return o.text.utf8.decode(e);if("utf16"===t)return o.text.utf16.decode(e);throw new Error("Invalid encoding: "+t)},o.createBuffer=function(t,e){return e=e||"raw",void 0!==t&&"utf8"===e&&(t=o.encodeUtf8(t)),new o.ByteBuffer(t)},o.fillString=function(t,e){for(var r="";e>0;)1&e&&(r+=t),(e>>>=1)>0&&(t+=t);return r},o.xorBytes=function(t,e,r){for(var i="",n="",o="",a=0,s=0;r>0;--r,++a)n=t.charCodeAt(a)^e.charCodeAt(a),s>=10&&(i+=o,o="",s=0),o+=String.fromCharCode(n),++s;return i+o},o.hexToBytes=function(t){var e="",r=0;for(!0&t.length&&(r=1,e+=String.fromCharCode(parseInt(t[0],16)));r<t.length;r+=2)e+=String.fromCharCode(parseInt(t.substr(r,2),16));return e},o.bytesToHex=function(t){return o.createBuffer(t).toHex()},o.int32ToBytes=function(t){return String.fromCharCode(t>>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t)};var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],h="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";o.encode64=function(t,e){for(var r,i,n,o="",a="",s=0;s<t.length;)r=t.charCodeAt(s++),i=t.charCodeAt(s++),n=t.charCodeAt(s++),o+=c.charAt(r>>2),o+=c.charAt((3&r)<<4|i>>4),isNaN(i)?o+="==":(o+=c.charAt((15&i)<<2|n>>6),o+=isNaN(n)?"=":c.charAt(63&n)),e&&o.length>e&&(a+=o.substr(0,e)+"\r\n",o=o.substr(e));return a+o},o.decode64=function(t){t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var e,r,i,n,o="",a=0;a<t.length;)e=u[t.charCodeAt(a++)-43],r=u[t.charCodeAt(a++)-43],i=u[t.charCodeAt(a++)-43],n=u[t.charCodeAt(a++)-43],o+=String.fromCharCode(e<<2|r>>4),64!==i&&(o+=String.fromCharCode((15&r)<<4|i>>2),64!==n&&(o+=String.fromCharCode((3&i)<<6|n)));return o},o.encodeUtf8=function(t){return unescape(encodeURIComponent(t))},o.decodeUtf8=function(t){return decodeURIComponent(escape(t))},o.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:n.encode,decode:n.decode}},o.binary.raw.encode=function(t){return String.fromCharCode.apply(null,t)},o.binary.raw.decode=function(t,e,r){var i=e;i||(i=new Uint8Array(t.length));for(var n=r=r||0,o=0;o<t.length;++o)i[n++]=t.charCodeAt(o);return e?n-r:i},o.binary.hex.encode=o.bytesToHex,o.binary.hex.decode=function(t,e,r){var i=e;i||(i=new Uint8Array(Math.ceil(t.length/2)));var n=0,o=r=r||0;for(1&t.length&&(n=1,i[o++]=parseInt(t[0],16));n<t.length;n+=2)i[o++]=parseInt(t.substr(n,2),16);return e?o-r:i},o.binary.base64.encode=function(t,e){for(var r,i,n,o="",a="",s=0;s<t.byteLength;)r=t[s++],i=t[s++],n=t[s++],o+=c.charAt(r>>2),o+=c.charAt((3&r)<<4|i>>4),isNaN(i)?o+="==":(o+=c.charAt((15&i)<<2|n>>6),o+=isNaN(n)?"=":c.charAt(63&n)),e&&o.length>e&&(a+=o.substr(0,e)+"\r\n",o=o.substr(e));return a+o},o.binary.base64.decode=function(t,e,r){var i,n,o,a,s=e;s||(s=new Uint8Array(3*Math.ceil(t.length/4))),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var c=0,h=r=r||0;c<t.length;)i=u[t.charCodeAt(c++)-43],n=u[t.charCodeAt(c++)-43],o=u[t.charCodeAt(c++)-43],a=u[t.charCodeAt(c++)-43],s[h++]=i<<2|n>>4,64!==o&&(s[h++]=(15&n)<<4|o>>2,64!==a&&(s[h++]=(3&o)<<6|a));return e?h-r:s.subarray(0,h)},o.binary.base58.encode=function(t,e){return o.binary.baseN.encode(t,h,e)},o.binary.base58.decode=function(t,e){return o.binary.baseN.decode(t,h,e)},o.text={utf8:{},utf16:{}},o.text.utf8.encode=function(t,e,r){t=o.encodeUtf8(t);var i=e;i||(i=new Uint8Array(t.length));for(var n=r=r||0,a=0;a<t.length;++a)i[n++]=t.charCodeAt(a);return e?n-r:i},o.text.utf8.decode=function(t){return o.decodeUtf8(String.fromCharCode.apply(null,t))},o.text.utf16.encode=function(t,e,r){var i=e;i||(i=new Uint8Array(2*t.length));for(var n=new Uint16Array(i.buffer),o=r=r||0,a=r,s=0;s<t.length;++s)n[a++]=t.charCodeAt(s),o+=2;return e?o-r:i},o.text.utf16.decode=function(t){return String.fromCharCode.apply(null,new Uint16Array(t.buffer))},o.deflate=function(t,e,r){if(e=o.decode64(t.deflate(o.encode64(e)).rval),r){var i=2;32&e.charCodeAt(1)&&(i=6),e=e.substring(i,e.length-4)}return e},o.inflate=function(t,e,r){var i=t.inflate(o.encode64(e)).rval;return null===i?null:o.decode64(i)};var l=function(t,e,r){if(!t)throw new Error("WebStorage not available.");var i;if(null===r?i=t.removeItem(e):(r=o.encode64(JSON.stringify(r)),i=t.setItem(e,r)),void 0!==i&&!0!==i.rval){var n=new Error(i.error.message);throw n.id=i.error.id,n.name=i.error.name,n}},f=function(t,e){if(!t)throw new Error("WebStorage not available.");var r=t.getItem(e);if(t.init)if(null===r.rval){if(r.error){var i=new Error(r.error.message);throw i.id=r.error.id,i.name=r.error.name,i}r=null}else r=r.rval;return null!==r&&(r=JSON.parse(o.decode64(r))),r},p=function(t,e,r,i){var n=f(t,e);null===n&&(n={}),n[r]=i,l(t,e,n)},d=function(t,e,r){var i=f(t,e);return null!==i&&(i=r in i?i[r]:null),i},_=function(t,e,r){var i=f(t,e);if(null!==i&&r in i){delete i[r];var n=!0;for(var o in i){n=!1;break}n&&(i=null),l(t,e,i)}},y=function(t,e){l(t,e,null)},g=function(t,e,r){var i,n=null;void 0===r&&(r=["web","flash"]);var o=!1,a=null;for(var s in r){i=r[s];try{if("flash"===i||"both"===i){if(null===e[0])throw new Error("Flash local storage not available.");n=t.apply(this,e),o="flash"===i}"web"!==i&&"both"!==i||(e[0]=localStorage,n=t.apply(this,e),o=!0)}catch(t){a=t}if(o)break}if(!o)throw a;return n};o.setItem=function(t,e,r,i,n){g(p,arguments,n)},o.getItem=function(t,e,r,i){return g(d,arguments,i)},o.removeItem=function(t,e,r,i){g(_,arguments,i)},o.clearItems=function(t,e,r){g(y,arguments,r)},o.isEmpty=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},o.format=function(t){for(var e,r,i=/%./g,n=0,o=[],a=0;e=i.exec(t);){(r=t.substring(a,i.lastIndex-2)).length>0&&o.push(r),a=i.lastIndex;var s=e[0][1];switch(s){case"s":case"o":n<arguments.length?o.push(arguments[1+n++]):o.push("<?>");break;case"%":o.push("%");break;default:o.push("<%"+s+"?>")}}return o.push(t.substring(a)),o.join("")},o.formatNumber=function(t,e,r,i){var n=t,o=isNaN(e=Math.abs(e))?2:e,a=void 0===r?",":r,s=void 0===i?".":i,c=n<0?"-":"",u=parseInt(n=Math.abs(+n||0).toFixed(o),10)+"",h=u.length>3?u.length%3:0;return c+(h?u.substr(0,h)+s:"")+u.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+s)+(o?a+Math.abs(n-u).toFixed(o).slice(2):"")},o.formatSize=function(t){return t>=1073741824?o.formatNumber(t/1073741824,2,".","")+" GiB":t>=1048576?o.formatNumber(t/1048576,2,".","")+" MiB":t>=1024?o.formatNumber(t/1024,0)+" KiB":o.formatNumber(t,0)+" bytes"},o.bytesFromIP=function(t){return-1!==t.indexOf(".")?o.bytesFromIPv4(t):-1!==t.indexOf(":")?o.bytesFromIPv6(t):null},o.bytesFromIPv4=function(t){if(4!==(t=t.split(".")).length)return null;for(var e=o.createBuffer(),r=0;r<t.length;++r){var i=parseInt(t[r],10);if(isNaN(i))return null;e.putByte(i)}return e.getBytes()},o.bytesFromIPv6=function(t){for(var e=0,r=2*(8-(t=t.split(":").filter((function(t){return 0===t.length&&++e,!0}))).length+e),i=o.createBuffer(),n=0;n<8;++n)if(t[n]&&0!==t[n].length){var a=o.hexToBytes(t[n]);a.length<2&&i.putByte(0),i.putBytes(a)}else i.fillWithByte(0,r),r=0;return i.getBytes()},o.bytesToIP=function(t){return 4===t.length?o.bytesToIPv4(t):16===t.length?o.bytesToIPv6(t):null},o.bytesToIPv4=function(t){if(4!==t.length)return null;for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e.join(".")},o.bytesToIPv6=function(t){if(16!==t.length)return null;for(var e=[],r=[],i=0,n=0;n<t.length;n+=2){for(var a=o.bytesToHex(t[n]+t[n+1]);"0"===a[0]&&"0"!==a;)a=a.substr(1);if("0"===a){var s=r[r.length-1],c=e.length;s&&c===s.end+1?(s.end=c,s.end-s.start>r[i].end-r[i].start&&(i=r.length-1)):r.push({start:c,end:c})}e.push(a)}if(r.length>0){var u=r[i];u.end-u.start>0&&(e.splice(u.start,u.end-u.start+1,""),0===u.start&&e.unshift(""),7===u.end&&e.push(""))}return e.join(":")},o.estimateCores=function(t,e){if("function"==typeof t&&(e=t,t={}),t=t||{},"cores"in o&&!t.update)return e(null,o.cores);if("undefined"!=typeof navigator&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return o.cores=navigator.hardwareConcurrency,e(null,o.cores);if("undefined"==typeof Worker)return o.cores=1,e(null,o.cores);if("undefined"==typeof Blob)return o.cores=2,e(null,o.cores);var r=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",(function(t){for(var e=Date.now(),r=e+4;Date.now()<r;);self.postMessage({st:e,et:r})}))}.toString(),")()"],{type:"application/javascript"}));!function t(i,n,a){if(0===n){var s=Math.floor(i.reduce((function(t,e){return t+e}),0)/i.length);return o.cores=Math.max(1,s),URL.revokeObjectURL(r),e(null,o.cores)}!function(t,e){for(var i=[],n=[],o=0;o<t;++o){var a=new Worker(r);a.addEventListener("message",(function(r){if(n.push(r.data),n.length===t){for(var o=0;o<t;++o)i[o].terminate();e(0,n)}})),i.push(a)}for(o=0;o<t;++o)i[o].postMessage(o)}(a,(function(e,r){i.push(function(t,e){for(var r=[],i=0;i<t;++i)for(var n=e[i],o=r[i]=[],a=0;a<t;++a)if(i!==a){var s=e[a];(n.st>s.st&&n.st<s.et||s.st>n.st&&s.st<n.et)&&o.push(a)}return r.reduce((function(t,e){return Math.max(t,e.length)}),0)}(a,r)),t(i,n-1,a)}))}([],5,16)}},251:function(t,e,r){"use strict";var i=r(156),n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(t,e,r){var i,o={},u=null,h=null;for(i in void 0!==r&&(u=""+r),void 0!==e.key&&(u=""+e.key),void 0!==e.ref&&(h=e.ref),e)a.call(e,i)&&!c.hasOwnProperty(i)&&(o[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps)void 0===o[i]&&(o[i]=e[i]);return{$$typeof:n,type:t,key:u,ref:h,props:o,_owner:s.current}}e.Fragment=o,e.jsx=u,e.jsxs=u},893:function(t,e,r){"use strict";t.exports=r(251)},226:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__226__},556:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__556__},899:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__899__},198:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__198__},300:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__300__},760:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__760__},467:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__467__},99:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__99__},656:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__656__},156:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__156__},111:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__111__},715:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__715__},383:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__383__},128:function(t){"use strict";t.exports=__WEBPACK_EXTERNAL_MODULE__128__}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=function(t,e){for(var r in e)__webpack_require__.o(e,r)&&!__webpack_require__.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Barrier:function(){return w},BaseModal:function(){return gt},Button:function(){return Q},Checkbox:function(){return rt},Dropdown:function(){return ot},Emitter:function(){return C},GlobalStateProvider:function(){return f.GlobalStateProvider},Input:function(){return ct},JU:function(){return X},Link:function(){return $},MetaTags:function(){return dt},Modal:function(){return bt},NavLink:function(){return vt},PT:function(){return N},PageLayout:function(){return lt},ScalableRect:function(){return Bt},Semaphore:function(){return P},ThemeProvider:function(){return t.ThemeProvider},Throbber:function(){return kt},WithTooltip:function(){return Tt},YouTubeVideo:function(){return jt},api:function(){return H()},client:function(){return qt},config:function(){return o},getGlobalState:function(){return f.getGlobalState},getSsrContext:function(){return f.getSsrContext},isomorphy:function(){return a},newBarrier:function(){return k},server:function(){return Rt},splitComponent:function(){return K},themed:function(){return e()},time:function(){return E},useAsyncCollection:function(){return f.useAsyncCollection},useAsyncData:function(){return f.useAsyncData},useGlobalState:function(){return f.useGlobalState},webpack:function(){return i},withRetries:function(){return F}});var t=__webpack_require__(198),e=__webpack_require__.n(t),r=__webpack_require__(794),i=__webpack_require__(869);const n=(r.b?__webpack_require__(144).Z().CONFIG:(0,i.requireWeak)("config"))||{};if(r.b){const t=__webpack_require__(489);n.CSRF=t.parse(document.cookie).csrfToken}var o=n,a=__webpack_require__(145),s=__webpack_require__(489),c=__webpack_require__(760),u=__webpack_require__.n(c),h=__webpack_require__(467),l=__webpack_require__(156),f=__webpack_require__(899),p=__webpack_require__(226),d=__webpack_require__.n(p),_=__webpack_require__(556),y=__webpack_require__.n(_);function g(t,e,r){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,r)}var m=new WeakMap,b=new WeakMap,v=new WeakMap,B=new WeakMap;class w extends Promise{constructor(t){let e,r;super(((i,n)=>{e=t=>{i(t),y()(this,b,!0)},r=t=>{n(t),y()(this,B,!0)},t&&t(e,r)})),g(this,m,{writable:!0,value:void 0}),g(this,b,{writable:!0,value:!1}),g(this,v,{writable:!0,value:void 0}),g(this,B,{writable:!0,value:!1}),y()(this,m,e),y()(this,v,r)}get resolve(){return d()(this,m)}get resolved(){return d()(this,b)}get reject(){return d()(this,v)}get rejected(){return d()(this,B)}then(t,e){const r=super.then(t,e);return y()(r,m,d()(this,m)),y()(r,v,d()(this,v)),r}}function k(t){return new w(t)}async function S(t){const e=new w;if(t>0){const r=setTimeout(e.resolve.bind(e),t);e.abort=()=>clearTimeout(r)}else e.abort=h.noop,e.resolve();return e}u().SEC_MS=1e3,u().MIN_MS=60*u().SEC_MS,u().HOUR_MS=60*u().MIN_MS,u().DAY_MS=24*u().HOUR_MS,u().YEAR_MS=365*u().DAY_MS,u().now=Date.now,u().timer=S,u().useCurrent=function(){let{autorefresh:t=!1,globalStatePath:e="currentTime",precision:r=5*u().SEC_MS}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[i,n]=(0,f.useGlobalState)(e,Date.now);return(0,l.useEffect)((()=>{let e;const i=()=>{n((t=>{const e=Date.now();return Math.abs(e-t)>r?e:t})),t&&(e=setTimeout(i,r))};return i(),()=>{e&&clearTimeout(e)}}),[t,r,n]),i},u().useTimezoneOffset=function(){let{cookieName:t="timezoneOffset",globalStatePath:e="timezoneOffset"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,f.getSsrContext)(!1),[i,n]=(0,f.useGlobalState)(e,(()=>{const e=t&&r?.req?.cookies?.[t];return e?parseInt(e,10):0}));return(0,l.useEffect)((()=>{const e=(new Date).getTimezoneOffset();n(e),t&&(document.cookie=s.serialize(t,e,{path:"/"}))}),[t,n]),i};var E=u();class C{constructor(){this.listeners=[]}get hasListeners(){return!!this.listeners.length}addListener(t){return this.listeners.includes(t)||this.listeners.push(t),()=>this.removeListener(t)}emit(){const{listeners:t}=this;for(let e=0;e<t.length;++e)t[e](...arguments)}removeListener(t){const e=this.listeners.indexOf(t);e>=0&&this.listeners.splice(e,1)}}function A(t,e,r){I(t,e),e.set(t,r)}function I(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}var x=new WeakSet,O=new WeakMap,T=new WeakMap,L=new WeakMap,D=new WeakMap;class P{constructor(t){var e;I(this,e=x),e.add(this),A(this,O,{writable:!0,value:!1}),A(this,T,{writable:!0,value:null}),A(this,L,{writable:!0,value:[]}),A(this,D,{writable:!0,value:void 0}),y()(this,D,!!t)}get ready(){return d()(this,D)}setReady(t){const e=!!t;d()(this,D)!==e&&(y()(this,D,e),e&&!d()(this,O)&&d()(this,L).length&&function(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}(this,x,M).call(this))}async seize(){return this.waitReady(!0)}async waitReady(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!d()(this,D)||d()(this,L).length){const e=new w;d()(this,L).push(e),await e,t&&y()(this,D,!1),d()(this,T).resolve()}else t&&y()(this,D,!1)}}async function M(){for(y()(this,O,!0);d()(this,D)&&d()(this,L).length;)y()(this,T,new w),d()(this,L)[0].resolve(),await d()(this,T),d()(this,L).shift();y()(this,O,!1),y()(this,T,null)}var N=__webpack_require__(99),j=__webpack_require__.n(N),R=__webpack_require__(893);let q,z,U;function W(t){let{children:e,chunkName:r,getComponent:i,placeholder:n,...o}=t;const{current:s}=(0,l.useRef)({mounted:!1,pendingStyles:[]}),{publicPath:c}=(0,a.getBuildInfo)(),u=(0,l.lazy)((async()=>{const t=await i();return s.pendingStyles.length&&await Promise.all(s.pendingStyles),t.default?t:{default:t}}));if(a.IS_SERVER_SIDE){const{chunks:t}=(0,f.getGlobalState)().ssrContext;if(t.includes(r))throw Error(`Chunk name clash for "${r}"`);t.push(r)}else s.mounted||(s.mounted=!0,q[r].forEach((t=>{if(!t.endsWith(".css"))return;const e=`${c}/${t}`;let r=document.querySelector(`link[href="${e}"]`);if(!r){r=document.createElement("link"),r.setAttribute("href",e),r.setAttribute("rel","stylesheet");const t=k();r.onload=t.resolve,r.onerror=t.resolve,s.pendingStyles.push(t),document.querySelector("head").appendChild(r)}const i=z[e]||0;z[e]=i+1})));return(0,l.useEffect)((()=>()=>{s.mounted=!1,q[r].forEach((t=>{if(!t.endsWith(".css"))return;const e=`${c}/${t}`;if(--z[e]<=0){const t=document.querySelector(`link[href="${e}"]`);document.querySelector("head").removeChild(t)}}))}),[r,s,c]),(0,R.jsx)(l.Suspense,{fallback:n,children:(0,R.jsx)(u,{...o,children:e})})}function K(t){let{chunkName:e,getComponent:r,placeholder:i}=t;return function(){let{children:t,...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.createElement)(W,{...n,chunkName:e,getComponent:r,placeholder:i},t)}}a.IS_CLIENT_SIDE&&(q=__webpack_require__(144).Z().CHUNK_GROUPS||{},z={}),W.propTypes={children:j().node,chunkName:j().string.isRequired,getComponent:j().func.isRequired,placeholder:j().node},W.defaultProps={children:void 0,placeholder:void 0},e().COMPOSE=t.COMPOSE,e().PRIORITY=t.PRIORITY;try{U=process.env.NODE_CONFIG_ENV}catch{}const X="production"!==(U||"production")&&i.requireWeak("./jest","/");async function F(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;for(let i=1;;++i)try{return await t()}catch(t){if(!(i<e))throw t;await S(r)}}var V=__webpack_require__(300),H=__webpack_require__.n(V),G=__webpack_require__(128);function Y(t){let{children:e,className:r,disabled:i,enforceA:n,keepScrollPosition:o,onClick:a,onMouseDown:s,openNewTab:c,replace:u,routerLinkType:h,to:f,...p}=t;return i||n||c||f.match(/^(#|(https?|mailto):)/)?(0,R.jsx)("a",{className:(r?r+" ":"")+"zH52sA",disabled:i,href:f,onClick:i?t=>t.preventDefault():a,onMouseDown:i?t=>t.preventDefault():s,rel:"noopener noreferrer",target:c?"_blank":"",children:e}):(0,l.createElement)(h,{className:r,disabled:i,onMouseDown:s,replace:u,to:f,onClick:t=>{a&&a(t),o||window.scroll(0,0)},...p},e)}function $(t){return(0,R.jsx)(Y,{...t,routerLinkType:G.Link})}function Z(t){let{active:e,children:r,disabled:i,enforceA:n,onClick:o,onMouseDown:a,openNewTab:s,replace:c,theme:u,to:h}=t,l=u.button;return e&&u.active&&(l+=` ${u.active}`),i?(u.disabled&&(l+=` ${u.disabled}`),(0,R.jsx)("div",{className:l,children:r})):h?(0,R.jsx)($,{className:l,enforceA:n,onClick:o,onMouseDown:a,openNewTab:s,replace:c,to:h,children:r}):(0,R.jsx)("div",{className:l,onClick:o,onKeyPress:o,onMouseDown:a,role:"button",tabIndex:0,children:r})}Y.defaultProps={children:null,className:null,disabled:!1,enforceA:!1,keepScrollPosition:!1,onClick:null,onMouseDown:null,openNewTab:!1,replace:!1,to:""},Y.propTypes={children:j().node,className:j().string,disabled:j().bool,enforceA:j().bool,keepScrollPosition:j().bool,onClick:j().func,onMouseDown:j().func,openNewTab:j().bool,replace:j().bool,routerLinkType:j().elementType.isRequired,to:j().oneOfType([j().object,j().string])};const J=e()("Button",["active","button","disabled"],{button:"E1FNQT",context:"KM0v4f",ad:"_3jm1-Q",hoc:"_0plpDL",active:"MAe9O6",disabled:"Br9IWV"})(Z);Z.defaultProps={active:!1,children:void 0,disabled:!1,enforceA:!1,onClick:void 0,onMouseDown:void 0,openNewTab:!1,replace:!1,to:void 0},Z.propTypes={active:j().bool,children:j().node,disabled:j().bool,enforceA:j().bool,onClick:j().func,onMouseDown:j().func,openNewTab:j().bool,replace:j().bool,theme:J.themeType.isRequired,to:j().oneOfType([j().object,j().string])};var Q=J;function tt(t){let{checked:e,label:r,onChange:i,theme:n}=t;return(0,R.jsxs)("div",{className:n.container,children:[void 0===r?null:(0,R.jsx)("p",{className:n.label,children:r}),(0,R.jsx)("input",{checked:e,className:n.checkbox,onChange:i,type:"checkbox"})]})}const et=e()("Checkbox",["checkbox","container","label"],{checkbox:"A-f8qJ",context:"dNQcC6",ad:"earXxa",hoc:"qAPfQ6",container:"Kr0g3M",label:"_3dML-O"})(tt);tt.propTypes={checked:j().bool,label:j().string,onChange:j().func,theme:et.themeType.isRequired},tt.defaultProps={checked:void 0,label:void 0,onChange:void 0};var rt=et;function it(t){let{filter:e,label:r,onChange:i,options:n,theme:o,value:a}=t;const s=[(0,R.jsx)("option",{className:o.hiddenOption,children:"‌"},"__reactUtilsHiddenOption")];for(let t=0;t<n.length;++t){let r=n[t];e&&!e(r)||((0,h.isString)(r)&&(r={value:r}),s.push((0,R.jsx)("option",{className:o.option,value:r.value,children:void 0===r.name?r.value:r.name},r.value)))}return(0,R.jsxs)("div",{className:o.container,children:[void 0===r?null:(0,R.jsx)("p",{className:o.label,children:r}),(0,R.jsx)("select",{className:o.select,onChange:i,value:a,children:s}),(0,R.jsx)("div",{className:o.arrow,children:"▼"})]})}const nt=e()("Dropdown",["arrow","container","hiddenOption","label","option","select"],{arrow:"-zPK7Y",context:"haRIry",ad:"D4XHG2",hoc:"N3nd34",container:"_9CQpeA",label:"Gv0kyu",hiddenOption:"RdW3yR",select:"JXK1uw"})(it);it.propTypes={filter:j().func,label:j().string,onChange:j().func,options:j().arrayOf(j().oneOfType([j().shape({name:j().node,value:j().string.isRequired}),j().string]).isRequired),theme:nt.themeType.isRequired,value:j().string},it.defaultProps={filter:void 0,label:void 0,onChange:void 0,options:[],value:void 0};var ot=nt;const at=(0,l.forwardRef)(((t,e)=>{let{label:r,theme:i,...n}=t;return(0,R.jsxs)("span",{className:i.container,children:[void 0===r?null:(0,R.jsx)("p",{className:i.label,children:r}),(0,R.jsx)("input",{className:i.input,ref:e,...n})]})})),st=e()("Input",["container","input","label"],{container:"Cxx397",context:"X5WszA",ad:"_8s7GCr",hoc:"TVlBYc",input:"M07d4s",label:"gfbdq-"})(at);at.propTypes={label:j().string,theme:st.themeType.isRequired},at.defaultProps={label:void 0};var ct=st;function ut(t){let{children:e,leftSidePanelContent:r,rightSidePanelContent:i,theme:n}=t;return(0,R.jsxs)("div",{className:n.container,children:[(0,R.jsx)("div",{className:[n.sidePanel,n.leftSidePanel].join(" "),children:r}),(0,R.jsx)("div",{className:n.mainPanel,children:e}),(0,R.jsx)("div",{className:[n.sidePanel,n.rightSidePanel].join(" "),children:i})]})}const ht=e()("PageLayout",["container","leftSidePanel","mainPanel","rightSidePanel","sidePanel"],{container:"T3cuHB",context:"m4mL-M",ad:"m3-mdC",hoc:"J15Z4H",mainPanel:"pPlQO2",sidePanel:"lqNh4h"})(ut);ut.propTypes={children:j().node,leftSidePanelContent:j().node,rightSidePanelContent:j().node,theme:ht.themeType.isRequired},ut.defaultProps={children:null,leftSidePanelContent:null,rightSidePanelContent:null};var lt=ht,ft=__webpack_require__(383);const pt=(0,l.createContext)();function dt(t){let{children:e,description:r,image:i,siteName:n,socialDescription:o,socialTitle:a,title:s,url:c}=t;const u=a||s,h=o||r,f=(0,l.useMemo)((()=>({description:r,image:i,siteName:n,socialDescription:o,socialTitle:a,title:s,url:c})),[r,i,n,o,a,s,c]);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(ft.Helmet,{children:[(0,R.jsx)("title",{children:s}),(0,R.jsx)("meta",{name:"description",content:r}),(0,R.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,R.jsx)("meta",{name:"twitter:title",content:u}),(0,R.jsx)("meta",{name:"twitter:description",content:h}),i?(0,R.jsx)("meta",{name:"twitter:image",content:i}):null,n?(0,R.jsx)("meta",{name:"twitter:site",content:`@${n}`}):null,(0,R.jsx)("meta",{name:"og:title",content:u}),i?(0,R.jsx)("meta",{name:"og:image",content:i}):null,i?(0,R.jsx)("meta",{name:"og:image:alt",content:u}):null,(0,R.jsx)("meta",{name:"og:description",content:h}),n?(0,R.jsx)("meta",{name:"og:sitename",content:n}):null,c?(0,R.jsx)("meta",{name:"og:url",content:c}):null]}),e?(0,R.jsx)(pt.Provider,{value:f,children:e}):null]})}dt.Context=pt,dt.defaultProps={children:null,image:null,siteName:null,socialDescription:null,socialTitle:null,url:null},dt.propTypes={children:j().node,description:j().string.isRequired,image:j().string,siteName:j().string,socialDescription:j().string,socialTitle:j().string,title:j().string.isRequired,url:j().string};var _t=__webpack_require__(111),yt=__webpack_require__.n(_t);function gt(t){let{children:e,onCancel:r,theme:i}=t;const n=(0,l.useRef)(),o=(0,l.useRef)(),[a,s]=(0,l.useState)();(0,l.useEffect)((()=>{const t=document.createElement("div");return document.body.classList.add("scrolling-disabled-by-modal"),document.body.appendChild(t),s(t),()=>{document.body.classList.remove("scrolling-disabled-by-modal"),document.body.removeChild(t)}}),[]);const c=(0,l.useMemo)((()=>(0,R.jsx)("div",{onFocus:()=>{const t=n.current.querySelectorAll("*");for(let e=t.length-1;e>=0;--e)if(t[e].focus(),document.activeElement===t[e])return;o.current.focus()},tabIndex:"0"})),[]);return a?yt().createPortal((0,R.jsxs)(R.Fragment,{children:[c,(0,R.jsx)("div",{"aria-label":"Cancel",className:i.overlay,onClick:()=>r(),onKeyDown:t=>{"Escape"===t.key&&r()},ref:t=>{t&&t!==o.current&&(o.current=t,t.focus())},role:"button",tabIndex:"0"}),(0,R.jsx)("div",{"aria-modal":"true",className:i.container,onWheel:t=>t.stopPropagation(),ref:n,role:"dialog",children:e}),(0,R.jsx)("div",{onFocus:()=>{o.current.focus()},tabIndex:"0"}),c]}),a):null}const mt=e()("Modal",["container","overlay"],{overlay:"ye2BZo",context:"Szmbbz",ad:"Ah-Nsc",hoc:"Wki41G",container:"gyZ4rc"})(gt);gt.propTypes={onCancel:j().func,children:j().node,theme:mt.themeType.isRequired},gt.defaultProps={onCancel:h.noop,children:null};var bt=mt;function vt(t){return(0,R.jsx)(Y,{...t,routerLinkType:G.NavLink})}function Bt(t){let{children:e,className:r,ratio:i}=t;const n=i.split(":"),o=100*n[1]/n[0]+"%",a=(0,R.jsx)("div",{style:{paddingBottom:o},className:"EznFz3",children:(0,R.jsx)("div",{className:"_0vb7tq",children:e})});return r?(0,R.jsx)("div",{className:r,children:a}):a}function wt(t){let{theme:e}=t;return(0,R.jsxs)("span",{className:(e.container?e.container+" ":"")+"_7zdld4",children:[(0,R.jsx)("span",{className:(e.circle?e.circle+" ":"")+"dBrB4g"}),(0,R.jsx)("span",{className:(e.circle?e.circle+" ":"")+"dBrB4g"}),(0,R.jsx)("span",{className:(e.circle?e.circle+" ":"")+"dBrB4g"})]})}Bt.defaultProps={children:null,className:null,ratio:"1:1"},Bt.propTypes={children:j().node,className:j().string,ratio:j().string},wt.defaultProps={theme:{}},wt.propTypes={theme:j().shape({container:j().string,circle:j().string})};var kt=e()("Throbber",["circle","container"],{container:"_7zdld4",context:"uIObt7",ad:"XIxe9o",hoc:"YOyORH",circle:"dBrB4g",bouncing:"TJe-6j"})(wt);const St={ABOVE_CURSOR:"ABOVE_CURSOR",ABOVE_ELEMENT:"ABOVE_ELEMENT",BELOW_CURSOR:"BELOW_CURSOR",BELOW_ELEMENT:"BELOW_ELEMENT"},Et=["border-bottom-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";"),Ct=["border-top-color:transparent","border-left-color:transparent","border-right-color:transparent"].join(";");const At=(0,l.forwardRef)(((t,e)=>{let{children:r,theme:i}=t;const[n,o]=(0,l.useState)(null),a=(t,e,r,i)=>n&&function(t,e,r,i,n){const o=function(t){return{arrow:t.arrow.getBoundingClientRect(),container:t.container.getBoundingClientRect()}}(n),a=function(){const{pageXOffset:t,pageYOffset:e}=window,{documentElement:{clientHeight:r,clientWidth:i}}=document;return{left:t,right:t+i,top:e,bottom:e+r}}(),s=function(t,e,r){const{arrow:i,container:n}=r;return{arrowX:.5*(n.width-i.width),arrowY:n.height,containerX:t-n.width/2,containerY:e-n.height-i.height/1.5,baseArrowStyle:Et}}(t,e,o);if(s.containerX<a.left+6)s.containerX=a.left+6,s.arrowX=Math.max(6,t-s.containerX-o.arrow.width/2);else{const e=a.right-6-o.container.width;s.containerX>e&&(s.containerX=e,s.arrowX=Math.min(o.container.width-6,t-s.containerX-o.arrow.width/2))}s.containerY<a.top+6&&(s.containerY+=o.container.height+2*o.arrow.height,s.arrowY-=o.container.height+o.arrow.height,s.baseArrowStyle=Ct);const c=`left:${s.containerX}px;top:${s.containerY}px`;n.container.setAttribute("style",c);const u=`${s.baseArrowStyle};left:${s.arrowX}px;top:${s.arrowY}px`;n.arrow.setAttribute("style",u)}(t,e,0,0,n);return(0,l.useImperativeHandle)(e,(()=>({pointTo:a}))),(0,l.useEffect)((()=>{const t=function(t){const e=document.createElement("div");t.arrow&&e.setAttribute("class",t.arrow);const r=document.createElement("div");t.content&&r.setAttribute("class",t.content);const i=document.createElement("div");return t.container&&i.setAttribute("class",t.container),i.appendChild(e),i.appendChild(r),document.body.appendChild(i),{container:i,arrow:e,content:r}}(i);return o(t),()=>{document.body.removeChild(t.container),o(null)}}),[i]),n?(0,_t.createPortal)(r,n.content):null}));At.propTypes={children:j().node,theme:j().shape().isRequired},At.defaultProps={children:null};var It=At;function xt(t){let{children:e,placement:r,tip:i,theme:n}=t;const o=(0,l.useRef)(),a=(0,l.useRef)(),[s,c]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{if(s&&null!==i){const t=()=>c(!1);return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)}}),[s,i]),(0,R.jsxs)("div",{className:n.wrapper,onMouseLeave:()=>c(!1),onMouseMove:t=>((t,e)=>{if(s){const i=a.current.getBoundingClientRect();t<i.left||t>i.right||e<i.top||e>i.bottom?c(!1):o.current&&o.current.pointTo(t+window.pageXOffset,e+window.pageYOffset,r,a.current)}else c(!0)})(t.clientX,t.clientY),ref:a,children:[s&&null!==i?(0,R.jsx)(It,{ref:o,theme:n,children:i}):null,e]})}const Ot=e()("WithTooltip",["appearance","arrow","container","content","wrapper"],{arrow:"M9gywF",ad:"_4xT7zE",hoc:"zd-vnH",context:"GdZucr",container:"f9gY8K",appearance:"L4ubm-",wrapper:"_4qDBRM"})(xt);Ot.PLACEMENTS=St,xt.propTypes={children:j().node,placement:j().oneOf(Object.values(St)),theme:Ot.themeType.isRequired,tip:j().node},xt.defaultProps={children:null,placement:St.ABOVE_CURSOR,tip:null};var Tt=Ot,Lt=__webpack_require__(656),Dt=__webpack_require__.n(Lt),Pt={container:"jTxmOX",context:"dzIcLh",ad:"_5a9XX1",hoc:"_7sH52O"};function Mt(t){let{autoplay:e,src:r,theme:i,title:n}=t,[o,a]=r.split("?");a=a?Dt().parse(a):{};const s=a.v||o.match(/\/([a-zA-Z0-9-_]*)$/)[1];return o=`https://www.youtube.com/embed/${s}`,delete a.v,a.autoplay=e?1:0,o+=`?${Dt().stringify(a)}`,(0,R.jsxs)(Bt,{className:i.container,ratio:"16:9",children:[(0,R.jsx)(kt,{theme:Pt}),(0,R.jsx)("iframe",{allow:"autoplay",allowFullScreen:!0,className:i.video,src:o,title:n})]})}const Nt=e()("YouTubeVideo",["container","video"],{container:"sXHM81",context:"veKyYi",ad:"r3ABzd",hoc:"YKcPnR",video:"SlV2zw"})(Mt);Mt.propTypes={autoplay:j().bool,src:j().string.isRequired,theme:Nt.themeType.isRequired,title:j().string},Mt.defaultProps={autoplay:!1,title:""};var jt=Nt;const Rt=i.requireWeak("./server","/"),qt=Rt?void 0:__webpack_require__(190).Z}(),__webpack_exports__}()}));
3
3
  //# sourceMappingURL=web.bundle.js.map