(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(2406)},function(e,t,n){"use strict";(function(e){function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=n(494),a=n(0),i=r(a),s=r(n(2420)),c=r(n(1050)),l=r(n(631)),u=r(n(2421)),d=r(n(246));function f(){return(f=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var S=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(w))return r}}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(w,"active"),r.setAttribute("data-styled-version","5.2.0");var i=k();return i&&r.setAttribute("nonce",i),n.insertBefore(r,a),r},A=function(){function e(e){var t=this.element=S(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&E(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a=M&&(M=t+1),P.set(e,t),T.set(t,e)},D="style["+w+'][data-styled-version="5.2.0"]',H=new RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),G=function(e,t,n){for(var r,o=n.split(","),a=0,i=o.length;a0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),q=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},V=function(e){return q(5381,e)},W=/^\s*\/\/.*$/gm,$=[":","[",".","#"];function K(e){var t,n,r,o,a=void 0===e?m:e,i=a.options,s=void 0===i?m:i,l=a.plugins,u=void 0===l?g:l,d=new c(s),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,a,i,s,c,l,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,r,a){return 0===r&&$.includes(a[n.length])||a.match(o)?e:"."+t};function b(e,a,i,s){void 0===s&&(s="&");var c=e.replace(W,""),l=a&&i?i+" "+a+" { "+c+" }":c;return t=s,n=a,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d(i||!a?"":a,l)}return d.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),b.hash=u.length?u.reduce((function(e,t){return t.name||E(15),q(e,t.name)}),5381).toString():"",b}var Y=i.createContext(),X=Y.Consumer,Q=i.createContext(),Z=(Q.Consumer,new U),J=K();function ee(){return a.useContext(Y)||Z}function te(){return a.useContext(Q)||J}function ne(e){var t=a.useState(e.stylisPlugins),n=t[0],r=t[1],o=ee(),c=a.useMemo((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=a.useMemo((function(){return K({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return a.useEffect((function(){s(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i.createElement(Y.Provider,{value:c},i.createElement(Q.Provider,{value:l},e.children))}var re=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=J);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return E(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=J),this.name+e.hash},e}(),oe=/([A-Z])/,ae=new RegExp(oe,"g"),ie=/^ms-/,se=function(e){return"-"+e.toLowerCase()};function ce(e){return oe.test(e)?e.replace(ae,se).replace(ie,"-ms-"):e}var le=function(e){return null==e||!1===e||""===e};function ue(e,t,n,r){if(Array.isArray(e)){for(var o,a=[],i=0,s=e.length;i1?t-1:0),r=1;r1?t-1:0),r=1;r25?39:97))};function ve(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=be(t%52)+n;return(be(t%52)+n).replace(me,"$1-$2")}function ye(e){for(var t=0;t>>0);if(!t.hasNameForId(r,i)){var s=n(a,"."+i,void 0,r);t.insertRules(r,i,s)}o.push(i),this.staticRulesId=i}else{for(var c=this.rules.length,l=q(this.baseHash,n.hash),u="",d=0;d>>0);if(!t.hasNameForId(r,g)){var m=n(u,"."+g,void 0,r);t.insertRules(r,g,m)}o.push(g)}}return o.join(" ")},e}(),xe=(new Set,function(e,t,n){return void 0===n&&(n=m),e.theme!==n.theme&&e.theme||t||n.theme}),Oe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function Ee(e){return e.replace(Oe,"-").replace(ke,"")}function Se(e){return"string"==typeof e&&!0}var Ae=function(e){return ve(V(e)>>>0)},Ce=i.createContext(),je=Ce.Consumer,Le={};function Pe(e,t,n){var r=y(e),o=!Se(e),s=t.displayName,c=void 0===s?function(e){return Se(e)?"styled."+e:"Styled("+v(e)+")"}(e):s,l=t.componentId,p=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Ee(e);Le[n]=(Le[n]||0)+1;var r=n+"-"+Ae("5.2.0"+n+Le[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,h=t.attrs,w=void 0===h?g:h,_=t.displayName&&t.componentId?Ee(t.displayName)+"-"+t.componentId:t.componentId||p,x=r&&e.attrs?Array.prototype.concat(e.attrs,w).filter(Boolean):w,O=t.shouldForwardProp;r&&e.shouldForwardProp&&(O=O?function(n,r){return e.shouldForwardProp(n,r)&&t.shouldForwardProp(n,r)}:e.shouldForwardProp);var k,E=new _e(n,_,r?e.componentStyle:void 0),S=function(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,s=e.foldedComponentIds,c=e.shouldForwardProp,l=e.styledComponentId,d=e.target,p=function(e,t,n){void 0===e&&(e=m);var r=f({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,a,i=e;for(t in b(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],a=i[t],n&&a?n+" "+a:n||a):i[t]})),[r,o]}(xe(t,a.useContext(Ce),i)||m,t,r),h=p[0],g=p[1],v=function(e,t,n,r){var o=ee(),a=te();return e.isStatic&&!t?e.generateAndInjectStyles(m,o,a):e.generateAndInjectStyles(n,o,a)}(o,r.length>0,h),y=n,w=g.$as||t.$as||g.as||t.as||d,_=Se(w),x=g!==t?f({},t,{},g):t,O=c||_&&u,k={};for(var E in x)"$"!==E[0]&&"as"!==E&&("forwardedAs"===E?k.as=x[E]:O&&!O(E,u)||(k[E]=x[E]));return t.style&&g.style!==t.style&&(k.style=f({},t.style,{},g.style)),k.className=Array.prototype.concat(s,l,v!==l?v:null,t.className,g.className).filter(Boolean).join(" "),k.ref=y,a.createElement(w,k)}(k,e,t)};return S.displayName=c,(k=i.forwardRef(S)).attrs=x,k.componentStyle=E,k.displayName=c,k.shouldForwardProp=O,k.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):g,k.styledComponentId=_,k.target=r?e.target:e,k.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(t,["componentId"]),a=r&&r+"-"+(Se(e)?e:Ee(v(e)));return Pe(e,f({},o,{attrs:x,componentId:a}),n)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?ge({},e.defaultProps,t):t}}),k.toString=function(){return"."+k.styledComponentId},o&&d(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),k}var Te=function(e){return function e(t,n,r){if(void 0===r&&(r=m),!o.isValidElementType(n))return E(1,String(n));var a=function(){return t(n,r,de.apply(void 0,arguments))};return a.withConfig=function(o){return e(t,n,f({},r,{},o))},a.attrs=function(o){return e(t,n,f({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},a}(Pe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Te[e]=Te(e)}));var Me=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ye(e),U.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(ue(this.rules,t,n,r).join(""),""),a=this.componentId+e;n.insertRules(a,a,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&U.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}(),Ie=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=k();return""},this.getStyleTags=function(){return e.sealed?E(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return E(2);var n=((t={})[w]="",t["data-styled-version"]="5.2.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=k();return r&&(n.nonce=r),[i.createElement("style",f({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new U({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?E(2):i.createElement(ne,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return E(3)},e}(),Re={StyleSheet:U,masterSheet:Z};t.ServerStyleSheet=Ie,t.StyleSheetConsumer=X,t.StyleSheetContext=Y,t.StyleSheetManager=ne,t.ThemeConsumer=je,t.ThemeContext=Ce,t.ThemeProvider=function(e){var t=a.useContext(Ce),n=a.useMemo((function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?E(8):t?f({},t,{},e):e:E(14)}(e.theme,t)}),[e.theme,t]);return e.children?i.createElement(Ce.Provider,{value:n},e.children):null},t.__PRIVATE__=Re,t.createGlobalStyle=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};b=h({},b,{},e)}(e.options.react),function(e){g=e}(e)}};function k(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return S("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],o=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!t.services.backendConnector.backend||!(!i(r,e)||o&&!i(a,e))))}function j(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var L=n(292),P=n.n(L);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=Object(s.useContext)(v),o=y()&&r||{},a=o.i18n,i=o.defaultNS,c=n||a||x();if(c&&!c.reportNamespaces&&(c.reportNamespaces=new _),!c){S("You will need pass in an i18next instance by using initReactI18next");var l=[function(e){return e},{},!1];return l.t=function(e){return e},l.i18n={},l.ready=!1,l}var u=M({},w(),{},c.options.react,{},t),d=u.useSuspense,f=e||i||c.options&&c.options.defaultNS;f="string"==typeof f?[f]:f||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(f);var p=(c.isInitialized||c.initializedStoreOnce)&&f.every((function(e){return C(e,c,u)}));function h(){return{t:c.getFixedT(null,"fallback"===u.nsMode?f:f[0])}}var g=Object(s.useState)(h()),m=P()(g,2),b=m[0],O=m[1];Object(s.useEffect)((function(){var e=!0,t=u.bindI18n,n=u.bindI18nStore;function r(){e&&O(h())}return p||d||A(c,f,(function(){e&&O(h())})),t&&c&&c.on(t,r),n&&c&&c.store.on(n,r),function(){e=!1,t&&c&&t.split(" ").forEach((function(e){return c.off(e,r)})),n&&c&&n.split(" ").forEach((function(e){return c.store.off(e,r)}))}}),[f.join()]);var k=[b.t,c,p];if(k.t=b.t,k.i18n=c,k.ready=p,p)return k;if(!p&&!d)return k;throw new Promise((function(e){A(c,f,(function(){O(h()),e()}))}))}var R=n(319),N=n.n(R);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function r(r){var a=r.forwardedRef,i=o()(r,["forwardedRef"]),s=I(e,i),l=P()(s,3),u=H({},i,{t:l[0],i18n:l[1],tReady:l[2]});return t.withRef&&a&&(u.ref=a),c.a.createElement(n,u)}r.displayName="withI18nextTranslation(".concat(j(n),")"),r.WrappedComponent=n;return t.withRef?c.a.forwardRef((function(e,t){return c.a.createElement(r,N()({},e,{forwardedRef:t}))})):r}}n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return G})),n.d(t,"a",(function(){return O}))},function(e,t,n){"use strict";e.exports=n(2608)},function(e,t,n){"use strict";var r=n(163),o=n.n(r),a=function(e,t){var n=o()({},e,t);for(var r in e){var a;e[r]&&"object"==typeof t[r]&&o()(n,((a={})[r]=o()(e[r],t[r]),a))}return n},i={breakpoints:[40,52,64].map((function(e){return e+"em"}))},s=function(e){return"@media screen and (min-width: "+e+")"},c=function(e,t){return l(t,e,e)},l=function(e,t,n,r,o){for(t=t&&t.split?t.split("."):[t],r=0;r1&&c.forEach((function(n){var o;r[n]=e(((o={})[n]=t[n],o))})),r},d=function(e,t,n,r,a){var i={};return r.slice(0,e.length).forEach((function(r,s){var c,l=e[s],u=t(r,n,a);l?o()(i,((c={})[l]=o()({},i[l],u),c)):o()(i,u)})),i},f=function(e,t,n,r,a){var i={};for(var c in r){var l=e[c],u=t(r[c],n,a);if(l){var d,f=s(l);o()(i,((d={})[f]=o()({},i[f],u),d))}else o()(i,u)}return i},p=function(e){var t=e.properties,n=e.property,r=e.scale,o=e.transform,a=void 0===o?c:o,i=e.defaultScale;t=t||[n];var s=function(e,n,r){var o={},i=a(e,n,r);if(null!==i)return t.forEach((function(e){o[e]=i})),o};return s.scale=r,s.defaults=i,s},h=function(e){void 0===e&&(e={});var t={};return Object.keys(e).forEach((function(n){var r=e[n];t[n]=!0!==r?"function"!=typeof r?p(r):r:p({property:n,scale:n})})),u(t)},g=h({width:{property:"width",scale:"sizes",transform:function(e,t){return l(t,e,!function(e){return"number"==typeof e&&!isNaN(e)}(e)||e>1?e:100*e+"%")}},height:{property:"height",scale:"sizes"},minWidth:{property:"minWidth",scale:"sizes"},minHeight:{property:"minHeight",scale:"sizes"},maxWidth:{property:"maxWidth",scale:"sizes"},maxHeight:{property:"maxHeight",scale:"sizes"},size:{properties:["width","height"],scale:"sizes"},overflow:!0,overflowX:!0,overflowY:!0,display:!0,verticalAlign:!0}),m={color:{property:"color",scale:"colors"},backgroundColor:{property:"backgroundColor",scale:"colors"},opacity:!0};m.bg=m.backgroundColor;var b=h(m),v=h({fontFamily:{property:"fontFamily",scale:"fonts"},fontSize:{property:"fontSize",scale:"fontSizes",defaultScale:[12,14,16,20,24,32,48,64,72]},fontWeight:{property:"fontWeight",scale:"fontWeights"},lineHeight:{property:"lineHeight",scale:"lineHeights"},letterSpacing:{property:"letterSpacing",scale:"letterSpacings"},textAlign:!0,fontStyle:!0}),y=h({alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:!0,flex:!0,flexGrow:!0,flexShrink:!0,flexBasis:!0,justifySelf:!0,alignSelf:!0,order:!0}),w={space:[0,4,8,16,32,64,128,256,512]},_=h({gridGap:{property:"gridGap",scale:"space",defaultScale:w.space},gridColumnGap:{property:"gridColumnGap",scale:"space",defaultScale:w.space},gridRowGap:{property:"gridRowGap",scale:"space",defaultScale:w.space},gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridAutoRows:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0}),x={border:{property:"border",scale:"borders"},borderWidth:{property:"borderWidth",scale:"borderWidths"},borderStyle:{property:"borderStyle",scale:"borderStyles"},borderColor:{property:"borderColor",scale:"colors"},borderRadius:{property:"borderRadius",scale:"radii"},borderTop:{property:"borderTop",scale:"borders"},borderTopLeftRadius:{property:"borderTopLeftRadius",scale:"radii"},borderTopRightRadius:{property:"borderTopRightRadius",scale:"radii"},borderRight:{property:"borderRight",scale:"borders"},borderBottom:{property:"borderBottom",scale:"borders"},borderBottomLeftRadius:{property:"borderBottomLeftRadius",scale:"radii"},borderBottomRightRadius:{property:"borderBottomRightRadius",scale:"radii"},borderLeft:{property:"borderLeft",scale:"borders"},borderX:{properties:["borderLeft","borderRight"],scale:"borders"},borderY:{properties:["borderTop","borderBottom"],scale:"borders"},borderTopWidth:{property:"borderTopWidth",scale:"borderWidths"},borderTopColor:{property:"borderTopColor",scale:"colors"},borderTopStyle:{property:"borderTopStyle",scale:"borderStyles"}};x.borderTopLeftRadius={property:"borderTopLeftRadius",scale:"radii"},x.borderTopRightRadius={property:"borderTopRightRadius",scale:"radii"},x.borderBottomWidth={property:"borderBottomWidth",scale:"borderWidths"},x.borderBottomColor={property:"borderBottomColor",scale:"colors"},x.borderBottomStyle={property:"borderBottomStyle",scale:"borderStyles"},x.borderBottomLeftRadius={property:"borderBottomLeftRadius",scale:"radii"},x.borderBottomRightRadius={property:"borderBottomRightRadius",scale:"radii"},x.borderLeftWidth={property:"borderLeftWidth",scale:"borderWidths"},x.borderLeftColor={property:"borderLeftColor",scale:"colors"},x.borderLeftStyle={property:"borderLeftStyle",scale:"borderStyles"},x.borderRightWidth={property:"borderRightWidth",scale:"borderWidths"},x.borderRightColor={property:"borderRightColor",scale:"colors"},x.borderRightStyle={property:"borderRightStyle",scale:"borderStyles"};var O=h(x),k={background:!0,backgroundImage:!0,backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0};k.bgImage=k.backgroundImage,k.bgSize=k.backgroundSize,k.bgPosition=k.backgroundPosition,k.bgRepeat=k.backgroundRepeat;var E=h(k),S={space:[0,4,8,16,32,64,128,256,512]},A=h({position:!0,zIndex:{property:"zIndex",scale:"zIndices"},top:{property:"top",scale:"space",defaultScale:S.space},right:{property:"right",scale:"space",defaultScale:S.space},bottom:{property:"bottom",scale:"space",defaultScale:S.space},left:{property:"left",scale:"space",defaultScale:S.space}}),C={space:[0,4,8,16,32,64,128,256,512]},j=function(e){return"number"==typeof e&&!isNaN(e)},L=function(e,t){if(!j(e))return l(t,e,e);var n=e<0,r=Math.abs(e),o=l(t,r,r);return j(o)?o*(n?-1:1):n?"-"+o:o},P={};P.margin={margin:{property:"margin",scale:"space",transform:L,defaultScale:C.space},marginTop:{property:"marginTop",scale:"space",transform:L,defaultScale:C.space},marginRight:{property:"marginRight",scale:"space",transform:L,defaultScale:C.space},marginBottom:{property:"marginBottom",scale:"space",transform:L,defaultScale:C.space},marginLeft:{property:"marginLeft",scale:"space",transform:L,defaultScale:C.space},marginX:{properties:["marginLeft","marginRight"],scale:"space",transform:L,defaultScale:C.space},marginY:{properties:["marginTop","marginBottom"],scale:"space",transform:L,defaultScale:C.space}},P.margin.m=P.margin.margin,P.margin.mt=P.margin.marginTop,P.margin.mr=P.margin.marginRight,P.margin.mb=P.margin.marginBottom,P.margin.ml=P.margin.marginLeft,P.margin.mx=P.margin.marginX,P.margin.my=P.margin.marginY,P.padding={padding:{property:"padding",scale:"space",defaultScale:C.space},paddingTop:{property:"paddingTop",scale:"space",defaultScale:C.space},paddingRight:{property:"paddingRight",scale:"space",defaultScale:C.space},paddingBottom:{property:"paddingBottom",scale:"space",defaultScale:C.space},paddingLeft:{property:"paddingLeft",scale:"space",defaultScale:C.space},paddingX:{properties:["paddingLeft","paddingRight"],scale:"space",defaultScale:C.space},paddingY:{properties:["paddingTop","paddingBottom"],scale:"space",defaultScale:C.space}},P.padding.p=P.padding.padding,P.padding.pt=P.padding.paddingTop,P.padding.pr=P.padding.paddingRight,P.padding.pb=P.padding.paddingBottom,P.padding.pl=P.padding.paddingLeft,P.padding.px=P.padding.paddingX,P.padding.py=P.padding.paddingY;var T=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r=0)return I(e,t,t);var n=Math.abs(t),r=I(e,n,n);return"string"==typeof r?"-"+r:-1*r},B=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,t){var n;return M({},e,((n={})[t]=F,n))}),{}),z=function e(t){return function(n){void 0===n&&(n={});var r=M({},N,{},n.theme||n),o={},a=function(e){return function(t){var n={},r=I(t,"breakpoints",R),o=[null].concat(r.map((function(e){return"@media screen and (min-width: "+e+")"})));for(var a in e){var i="function"==typeof e[a]?e[a](t):e[a];if(null!=i)if(Array.isArray(i))for(var s=0;s{r+="color"===t?u(r)?e[t]:Object(c.a)(e[t]):`${u(r)?t:Object(c.a)(t)}${Object(c.a)(e[t].toString())}`}),r}const f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],p=["theme"],h=["theme"];function g(e){return 0===Object.keys(e).length}function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const b=Object(i.a)();var v=n(417);n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return w}));const y=e=>m(e)&&"classes"!==e,w=m,_=function(e={}){const{defaultTheme:t=b,rootShouldForwardProp:n=m,slotShouldForwardProp:i=m}=e;return(e,c={})=>{const{name:l,slot:u,skipVariantsResolver:b,skipSx:v,overridesResolver:y}=c,w=Object(o.a)(c,f),_=void 0!==b?b:u&&"Root"!==u||!1,x=v||!1;let O=m;"Root"===u?O=n:u&&(O=i);const k=Object(a.a)(e,Object(r.a)({shouldForwardProp:O,label:void 0},w)),E=(e,...n)=>{const a=n?n.map(e=>"function"==typeof e&&e.__emotion_real!==e?n=>{let{theme:a}=n,i=Object(o.a)(n,p);return e(Object(r.a)({theme:g(a)?t:a},i))}:e):[];let i=e;l&&y&&a.push(e=>{const n=g(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,n);if(r){const t={};return Object.entries(r).forEach(([n,r])=>{t[n]="function"==typeof r?r(e):r}),y(e,t)}return null}),l&&!_&&a.push(e=>{const n=g(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,a;const{ownerState:i={}}=e,s=[],c=null==n?void 0:null==(o=n.components)?void 0:null==(a=o[r])?void 0:a.variants;return c&&c.forEach(n=>{let r=!0;Object.keys(n.props).forEach(t=>{i[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)}),r&&s.push(t[d(n.props)])}),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(e=>{const t=d(e.props);r[t]=e.style}),r})(l,n),n,l)}),x||a.push(e=>{const n=g(e.theme)?t:e.theme;return Object(s.a)(Object(r.a)({},e,{theme:n}))});const c=a.length-n.length;if(Array.isArray(e)&&c>0){const t=new Array(c).fill("");i=[...e,...t],i.raw=[...e.raw,...t]}else"function"==typeof e&&(i=n=>{let{theme:a}=n,i=Object(o.a)(n,h);return e(Object(r.a)({theme:g(a)?t:a},i))});return k(i,...a)};return k.withConfig&&(E.withConfig=k.withConfig),E}}({defaultTheme:v.a,rootShouldForwardProp:y});t.a=_},function(e,t,n){"use strict";n.d(t,"k",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"n",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"p",(function(){return l})),n.d(t,"q",(function(){return u})),n.d(t,"o",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"l",(function(){return p})),n.d(t,"r",(function(){return h})),n.d(t,"g",(function(){return g})),n.d(t,"f",(function(){return m})),n.d(t,"h",(function(){return b})),n.d(t,"j",(function(){return v})),n.d(t,"i",(function(){return y})),n.d(t,"m",(function(){return w}));n(26);function r(e,t){for(var n=e.length,r=0;r0;)t(e[--n],n)}function c(e,t){for(var n=e.length,r=0;r0;)if(t(e[--n],n))return n;return-1}(e,t);if(-1!==n)return e[n]}function v(e,t){for(var n=0,r=e.length,o=!1;n>1,i=t(e[a]);i<0?n=a+1:0===i?(o=!0,n=a+1):r=a}return{found:o,index:o?n-1:n}}function y(e,t){for(var n=0,r=e.length,o=!1;n>1,i=t(e[a]);i<0?n=a+1:0===i?(o=!0,r=a):r=a}return{found:o,index:n}}function w(e,t){for(var n=e.length;n>0;)t(e[--n])||e.splice(n,1)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return l}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function l(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o=0&&o<1?(s=a,c=i):o>=1&&o<2?(s=i,c=a):o>=2&&o<3?(c=a,l=i):o>=3&&o<4?(c=i,l=a):o>=4&&o<5?(s=i,l=a):o>=5&&o<6&&(s=a,l=i);var u=n-a/2;return r(s+u,c+u,l+u)}var p={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var h=/^#[a-fA-F0-9]{6}$/,g=/^#[a-fA-F0-9]{8}$/,m=/^#[a-fA-F0-9]{3}$/,b=/^#[a-fA-F0-9]{4}$/,v=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,y=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,w=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,_=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function x(e){if("string"!=typeof e)throw new l(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return p[t]?"#"+p[t]:e}(e);if(t.match(h))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(g)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(m))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(b)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=v.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=y.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=w.exec(t);if(i){var s="rgb("+f(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",c=v.exec(s);if(!c)throw new l(4,t,s);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10)}}var u=_.exec(t.substring(0,50));if(u){var d="rgb("+f(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",x=v.exec(d);if(!x)throw new l(4,t,d);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+u[4])>1?parseFloat(""+u[4])/100:parseFloat(""+u[4])}}throw new l(5)}function O(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(n,r,o),i=Math.min(n,r,o),s=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var c=a-i,l=s>.5?c/(2-a-i):c/(a+i);switch(a){case n:t=(r-o)/c+(r=1?C(e,t,n):"rgba("+f(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?C(e.hue,e.saturation,e.lightness):"rgba("+f(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new l(2)}function P(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return k("#"+E(e)+E(t)+E(n));if("object"==typeof e&&void 0===t&&void 0===n)return k("#"+E(e.red)+E(e.green)+E(e.blue));throw new l(6)}function T(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=x(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?P(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?P(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new l(7)}function M(e){if("object"!=typeof e)throw new l(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return T(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return P(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return L(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return j(e);throw new l(8)}function I(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function R(e,t,n){return Math.max(e,Math.min(t,n))}function N(e,t){if("transparent"===t)return t;var n=O(t);return M(r({},n,{lightness:R(0,1,n.lightness-parseFloat(e))}))}var D=I(N);function H(e,t){if("transparent"===t)return t;var n=O(t);return M(r({},n,{lightness:R(0,1,n.lightness+parseFloat(e))}))}var G=I(H);function F(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var o=x(t),a=r({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),i=x(n),s=r({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),c=a.alpha-s.alpha,l=2*parseFloat(e)-1,u=((l*c==-1?l:l+c)/(1+l*c)+1)/2,d=1-u;return T({red:Math.floor(a.red*u+s.red*d),green:Math.floor(a.green*u+s.green*d),blue:Math.floor(a.blue*u+s.blue*d),alpha:a.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))})}var B=I(F);function z(e,t){if("transparent"===t)return t;var n=x(t);return T(r({},n,{alpha:R(0,1,(100*("number"==typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))}var U=I(z);function q(e,t){return"transparent"===t?t:B(parseFloat(e),"rgb(0, 0, 0)",t)}var V=I(q);function W(e,t){return"transparent"===t?t:B(parseFloat(e),"rgb(255, 255, 255)",t)}var $=I(W);function K(e,t){if("transparent"===t)return t;var n=x(t);return T(r({},n,{alpha:R(0,1,+(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))}var Y=I(K)},function(e,t,n){var r=n(98),o=n(241).f,a=n(186),i=n(222),s=n(941),c=n(1142),l=n(591);e.exports=function(e,t){var n,u,d,f,p,h=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(p=o(n,u))&&p.value:n[u],!l(g?u:h+(m?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&a(f,"sham",!0),i(n,u,f,e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i}));var r=function(){function e(e){Object.defineProperty(this,"_value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._value=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value/100},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"percent",{get:function(){return this._value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toString",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._value+"%"}}),Object.defineProperty(e.prototype,"interpolate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return e+this.value*(t-e)}}),Object.defineProperty(e,"normalize",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r){return t instanceof e?t:new e(n===r?0:100*Math.min(Math.max(1/(r-n)*(t-n),0),1))}}),e}();function o(e){return new r(e)}o(0);var a=o(100),i=o(50)},function(e,t,n){"use strict";t.__esModule=!0,t.Card=t.Image=t.Button=t.Link=t.Heading=t.Text=t.Flex=t.Box=void 0;a(n(0));var r=a(n(1)),o=n(1242);function a(e){return e&&e.__esModule?e:{default:e}}function i(){return(i=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"f",(function(){return l})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]e.length?Array(t-e.length+1).join(n)+e:e}function S(e){return function(e){return e.replace(/^[\s]*/,"")}(function(e){return e.replace(/[\s]*$/,"")}(e))}function A(e){if(void 0===e)return"string";var t=(e=(e=(e=e.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return t?t[1]:"number"===e?"number":"date"===e?"date":"duration"===e?"duration":e.match(/[#0]/)?"number":e.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function C(e){return e.replace(/\/(date|number|duration)$/i,"")}function j(e){return e?e.replace(/<[^>]*>/g,""):e}function L(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function P(e,t){void 0===t&&(t=!1);var n=new Date(e.getFullYear(),0,0),r=e.getTime()-n.getTime()+60*(n.getTimezoneOffset()-e.getTimezoneOffset())*1e3;return Math.floor(r/864e5)}function T(e,t){void 0===t&&(t=!1);var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),r=n.getUTCDay()||7;n.setUTCDate(n.getUTCDate()+4-r);var o=new Date(Date.UTC(n.getUTCFullYear(),0,1));return Math.ceil(((n.getTime()-o.getTime())/864e5+1)/7)}function M(e,t){void 0===t&&(t=!1);var n=T(new Date(e.getFullYear(),e.getMonth(),1),t),r=T(e,t);return 1==r&&(r=53),r-n+1}function I(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=!1);var o=new Date(t,0,4,0,0,0,0);return r&&o.setUTCFullYear(t),7*e+n-((o.getDay()||7)+3)}function R(e,t){return e>12?e-=12:0===e&&(e=12),null!=t?e+(t-1):e}function N(e,t,n,r){if(void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r=!1),r)return t?"Coordinated Universal Time":"UTC";var o=e.toLocaleString("UTC"),a=e.toLocaleString("UTC",{timeZoneName:t?"long":"short"}).substr(o.length);return!1===n&&(a=a.replace(/ (standard|daylight|summer|winter) /i," ")),a}function D(e){var t=new Date(Date.UTC(2012,0,1,0,0,0,0)),n=new Date(t.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(t.toLocaleString("en-US",{timeZone:e})).getTime()-n.getTime())/6e4*-1}function H(e){return e.charAt(0).toUpperCase()+e.slice(1)}function G(e){var t,n,r,o=e.h,a=e.s,i=e.l;if(0==a)t=n=r=i;else{var s=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},c=i<.5?i*(1+a):i+a-i*a,l=2*i-c;t=s(l,c,o+1/3),n=s(l,c,o),r=s(l,c,o-1/3)}return{r:Math.round(255*t),g:Math.round(255*n),b:Math.round(255*r)}}function F(e){var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.max(t,n,r),a=Math.min(t,n,r),i=0,s=0,c=(o+a)/2;if(o===a)i=s=0;else{var l=o-a;switch(s=c>.5?l/(2-o-a):l/(o+a),o){case t:i=(n-r)/l+(n0?255-e:e;return Math.round(n*t)}function U(e,t){if(e){var n=z(Math.min(Math.max(e.r,e.g,e.b),230),t);return{r:Math.max(0,Math.min(255,Math.round(e.r+n))),g:Math.max(0,Math.min(255,Math.round(e.g+n))),b:Math.max(0,Math.min(255,Math.round(e.b+n))),a:e.a}}return e}function q(e){return(299*e.r+587*e.g+114*e.b)/1e3>=128}function V(e,t){if(void 0===e||1==t)return e;var n=F(e);return n.s=t,G(n)}function W(e,t,n){void 0===t&&(t={r:255,g:255,b:255}),void 0===n&&(n={r:255,g:255,b:255});var r=t,o=n;return q(n)&&(r=n,o=t),q(e)?o:r}function $(e,t){return e||(e=[]),Object(o.f)(Object(o.f)([],Object(o.e)(e),!1),Object(o.e)(t),!1).filter((function(e,t,n){return n.indexOf(e)===t}))}function K(e,t){return!!t&&(e.left==t.left&&(e.right==t.right&&(e.top==t.top&&e.bottom==t.bottom)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(0);function o(e,t){var n=Object(r.useState)((function(){return{inputs:t,result:e()}}))[0],o=Object(r.useRef)(n),a=Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}function c(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function m(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof v?Promise.resolve(n.value.v).then(c,l):u(a[0][2],n)}catch(e){u(a[0][3],e)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function E(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";var r=n(255),o=n(52);function a(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if("skip"===(n=e.name.value)||"include"===n){var n,r=e.arguments;e.name.value;Object(o.b)(r&&1===r.length,38);var a=r[0];Object(o.b)(a.name&&"if"===a.name.value,39);var i=a.value;Object(o.b)(i&&("Variable"===i.kind||"BooleanValue"===i.kind),40),t.push({directive:e,ifArgument:a})}}));return t}(n).every((function(e){var n=e.directive,r=e.ifArgument,a=!1;return"Variable"===r.value.kind?(a=t&&t[r.value.name.value],Object(o.b)(void 0!==a,37)):a=r.value.value,"skip"===n.name.value?!a:a}))}function i(e,t){return function(e){var t=[];return Object(r.b)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function s(e){return e&&i(["client"],e)&&i(["export"],e)}var c=n(23);function l(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new o.a(41);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(Object(o.b)(1===r.length,42),n=r[0].name.value),Object(c.a)(Object(c.a)({},e),{definitions:Object(c.f)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function u(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function d(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return Object(o.b)(n,43),n;default:return null}}var f=n(1866),p=n.n(f);function h(e){return{__ref:String(e)}}function g(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function m(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var a={};n.fields.map((function(e){return m(a,e.name,e.value,r)})),e[t.value]=a}else if(function(e){return"Variable"===e.kind}(n)){var i=(r||{})[n.name.value];e[t.value]=i}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return m(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw new o.a(52);e[t.value]=null}}function b(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var o=r.name,a=r.value;return m(n[e.name.value],o,a,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,o=e.value;return m(r,n,o,t)}))),y(e.name.value,r,n)}var v=["connection","include","skip","client","rest","export"];function y(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o={};return r.forEach((function(e){o[e]=t[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var i=p()(t);a+="("+i+")"}return n&&Object.keys(n).forEach((function(e){-1===v.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)})),a}function w(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,o=e.value;return m(n,r,o,t)})),n}return null}function _(e){return e.alias?e.alias.value:e.name.value}function x(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,o=t.selections;r1)for(var r=new Y,o=1;o0}function oe(e){return e.errors&&e.errors.length>0||!1}"function"==typeof Symbol&&Symbol.species&&Object.defineProperty(ne,Symbol.species,{value:U.a});var ae="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product);function ie(){for(var e=[],t=0;t1?"s":" required, but only "+t.length+" present")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"l",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"f",(function(){return f})),n.d(t,"m",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"k",(function(){return g})),n.d(t,"g",(function(){return m})),n.d(t,"j",(function(){return v}));var r=n(26),o=Math.PI,a=o/2,i=o/180,s=180/o;function c(e,t,n){if(!Object(r.e)(t)||t<=0){var o=Math.round(e);return n&&o-e==.5&&o--,o}var a=Math.pow(10,t);return Math.round(e*a)/a}function l(e,t){if(!Object(r.e)(t)||t<=0)return Math.ceil(e);var n=Math.pow(10,t);return Math.ceil(e*n)/n}function u(e,t,n,r,o){return{x:(-e.x+t.x/r+n.x)*r,y:(-e.y+t.y/o+n.y)*o}}function d(e,t,n,r,o){return{x:(e.x+t.x/r-n.x)*r,y:(e.y+t.y/o-n.y)*o}}function f(e,t,n){return Math.min(Math.max(e,t),n)}function p(e){return Math.sin(i*e)}function h(e){return Math.cos(i*e)}function g(e){return(e%=360)<0&&(e+=360),e}function m(e,t,n,r,o){var a=Number.MAX_VALUE,i=Number.MAX_VALUE,s=-Number.MAX_VALUE,c=-Number.MAX_VALUE,l=[];l.push(b(o,n)),l.push(b(o,r));for(var u=Math.min(90*Math.floor(n/90),90*Math.floor(r/90)),d=Math.max(90*Math.ceil(n/90),90*Math.ceil(r/90)),f=u;f<=d;f+=90)f>=n&&f<=r&&l.push(b(o,f));for(var p=0;ps&&(s=h.x),h.y>c&&(c=h.y)}return{left:e+a,top:t+i,right:e+s,bottom:t+c}}function b(e,t){return{x:e*h(t),y:e*p(t)}}function v(e){var t=e.length;if(t>0){var n=e[0],r=n.left,o=n.top,a=n.right,i=n.bottom;if(t>1)for(var s=1;sthis.map(e))):m(t)}}}class p extends d{constructor(e){super(),u(this,"state","hasError"),u(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(e){return this}}class h extends d{constructor(e){super(),u(this,"state","loading"),u(this,"contents",void 0),this.contents=e}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(e){return b(this.contents.then(t=>{const n=e(t);if(w(n)){const e=n;switch(e.state){case"hasValue":return e.contents;case"hasError":throw e.contents;case"loading":return e.contents}}return n}).catch(t=>{if(c(t))return t.then(()=>this.map(e).contents);throw t}))}}function g(e){return Object.freeze(new f(e))}function m(e){return Object.freeze(new p(e))}function b(e){return Object.freeze(new h(e))}function v(){return Object.freeze(new h(new Promise(()=>{})))}function y(e){const t=function(e){return e.every(e=>"hasValue"===e.state)?g(e.map(e=>e.contents)):e.some(e=>"hasError"===e.state)?m(l(e.find(e=>"hasError"===e.state),"Invalid loadable passed to loadableAll").contents):b(Promise.all(e.map(e=>e.contents)))}((Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])).map(e=>w(e)?e:c(e)?b(e):g(e)));return Array.isArray(e)?t:t.map(t=>Object.getOwnPropertyNames(e).reduce((e,n,r)=>({...e,[n]:t[r]}),{}))}function w(e){return e instanceof d}const _={of:e=>c(e)?b(e):w(e)?e:g(e),error:e=>m(e),loading:()=>v(),all:y,isLoadable:w};var x={loadableWithValue:g,loadableWithError:m,loadableWithPromise:b,loadableLoading:v,loadableAll:y,isLoadable:w,RecoilLoadable:_},O=x.loadableWithValue,k=x.loadableWithError,E=x.loadableWithPromise,S=x.loadableLoading,A=x.loadableAll,C=x.isLoadable,j=x.RecoilLoadable,L=Object.freeze({__proto__:null,loadableWithValue:O,loadableWithError:k,loadableWithPromise:E,loadableLoading:S,loadableAll:A,isLoadable:C,RecoilLoadable:j});const P={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};var T;void 0!==e&&null!=(null===(T=e)||void 0===T?void 0:T.env)&&(function(t,n){var r,o;const a=null===(r=e.env[t])||void 0===r?void 0:null===(o=r.toLowerCase())||void 0===o?void 0:o.trim();if(null!=a&&""!==a){if(!["true","false"].includes(a))throw s(`process.env.${t} value must be 'true', 'false', or empty: ${a}`);n("true"===a)}}("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",e=>{P.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=e}),function(t,n){var r;const o=null===(r=e.env[t])||void 0===r?void 0:r.trim();null!=o&&""!==o&&n(o.split(/\s*,\s*|\s+/))}("RECOIL_GKS_ENABLED",e=>{e.forEach(e=>{P.RECOIL_GKS_ENABLED.add(e)})}));var M=P;function I(e){return M.RECOIL_GKS_ENABLED.has(e)}I.setPass=e=>{M.RECOIL_GKS_ENABLED.add(e)},I.setFail=e=>{M.RECOIL_GKS_ENABLED.delete(e)},I.clear=()=>{M.RECOIL_GKS_ENABLED.clear()};var R=I;var N,D,H,G=function(e,t,{error:n}={}){return null};const F=null!==(N=o.a.createMutableSource)&&void 0!==N?N:o.a.unstable_createMutableSource,B=null!==(D=o.a.useMutableSource)&&void 0!==D?D:o.a.unstable_useMutableSource,z=null!==(H=o.a.useSyncExternalStore)&&void 0!==H?H:o.a.unstable_useSyncExternalStore;let U=!1;var q={createMutableSource:F,useMutableSource:B,useSyncExternalStore:z,currentRendererSupportsUseSyncExternalStore:function(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=o.a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,r=null!=(null!==(e=null==t?void 0:t.current)&&void 0!==e?e:n.currentDispatcher).useSyncExternalStore;return!z||r||U||(U=!0,G("A React renderer without React 18+ API support is being used with React 18+.")),r},reactMode:function(){return R("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:R("recoil_sync_external_store")&&null!=z?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:R("recoil_mutable_source")&&null!=B&&"undefined"!=typeof window&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?R("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:R("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}},isFastRefreshEnabled:function(){return!1}};class V{constructor(e){u(this,"key",void 0),this.key=e}toJSON(){return{key:this.key}}}class W extends V{}class $ extends V{}var K={AbstractRecoilValue:V,RecoilState:W,RecoilValueReadOnly:$,isRecoilValue:function(e){return e instanceof W||e instanceof $}},Y=K.AbstractRecoilValue,X=K.RecoilState,Q=K.RecoilValueReadOnly,Z=K.isRecoilValue,J=Object.freeze({__proto__:null,AbstractRecoilValue:Y,RecoilState:X,RecoilValueReadOnly:Q,isRecoilValue:Z});var ee=function(e,...t){0};var te=function(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()};const{isFastRefreshEnabled:ne}=q;class re{}const oe=new re,ae=new Map,ie=new Map;class se extends Error{}const ce=new Map;function le(e){return ce.get(e)}var ue={nodes:ae,recoilValues:ie,registerNode:function(e){M.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&function(e){if(ae.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in\n production. But it is safe to ignore this warning if it occurred because of\n hot module replacement.`;console.warn(t)}}(e.key),ae.set(e.key,e);const t=null==e.set?new J.RecoilValueReadOnly(e.key):new J.RecoilState(e.key);return ie.set(e.key,t),t},getNode:function(e){const t=ae.get(e);if(null==t)throw new se(`Missing definition for RecoilValue: "${e}""`);return t},getNodeMaybe:function(e){return ae.get(e)},deleteNodeConfigIfPossible:function(e){var t;if(!R("recoil_memory_managament_2020"))return;const n=ae.get(e);var r;null!=n&&null!==(t=n.shouldDeleteConfigOnRelease)&&void 0!==t&&t.call(n)&&(ae.delete(e),null===(r=le(e))||void 0===r||r(),ce.delete(e))},setConfigDeletionHandler:function(e,t){R("recoil_memory_managament_2020")&&(void 0===t?ce.delete(e):ce.set(e,t))},getConfigDeletionHandler:le,recoilValuesForKeys:function(e){return te(e,e=>l(ie.get(e)))},NodeMissingError:se,DefaultValue:re,DEFAULT_VALUE:oe};var de={enqueueExecution:function(e,t){t()}};var fe=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n={},r=Math.pow(2,5),o=r-1,a=r/2,i=r/4,s={},c=function(e){return function(){return e}},l=n.hash=function(e){var n=void 0===e?"undefined":t(e);if("number"===n)return e;"string"!==n&&(e+="");for(var r=0,o=0,a=e.length;o>>e&o},d=function(e){return 1<>1&1431655765))+(n>>2&858993459))+(n>>4)&252645135,n+=n>>8,127&(n+=n>>16);var n},p=function(e,t,n,r){var o=r;if(!e){var a=r.length;o=new Array(a);for(var i=0;i1?v(e,this.hash,c):c[0]}var l=r();return l===s?this:(++i.value,_(e,n,this.hash,this,o,b(e,o,a,l)))},E=function(e,t,n,r,o,i,s){var c=this.mask,l=this.children,b=u(n,o),v=d(b),_=f(c,v),O=c&v,k=O?l[_]:g,E=k._modify(e,t,n+5,r,o,i,s);if(k===E)return this;var S,A=x(e,this),C=c,j=void 0;if(O&&m(E)){if(!(C&=~v))return g;if(l.length<=2&&((S=l[1^_])===g||1===S.type||2===S.type))return l[1^_];j=h(A,_,l)}else if(O||m(E))j=p(A,_,E,l);else{if(l.length>=a)return function(e,t,n,r,o){for(var a=[],i=r,s=0,c=0;i;++c)1&i&&(a[c]=o[s++]),i>>>=1;return a[t]=n,w(e,s+1,a)}(e,b,E,c,l);C|=v,j=function(e,t,n,r){var o=r.length;if(e){for(var a=o;a>=t;)r[a--]=r[a];return r[t]=n,r}for(var i=0,s=0,c=new Array(o+1);i{n.set(r,t(e,r))}),n};function we(e,t,n,r){const{nodeDeps:o,nodeToNodeSubscriptions:a}=n,i=o.get(e);if(i&&r&&i!==r.nodeDeps.get(e))return;o.set(e,t);const s=null==i?t:ve(t,i);for(const t of s){a.has(t)||a.set(t,new Set),l(a.get(t)).add(e)}if(i){const n=ve(i,t);for(const t of n){if(!a.has(t))return;const n=l(a.get(t));n.delete(e),0===n.size&&a.delete(t)}}}var _e={cloneGraph:function(e){return{nodeDeps:ye(e.nodeDeps,e=>new Set(e)),nodeToNodeSubscriptions:ye(e.nodeToNodeSubscriptions,e=>new Set(e))}},graph:function(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}},saveDepsToStore:function(e,t,n,r){var o,a,i,s;const c=n.getState();r!==c.currentTree.version&&r!==(null===(o=c.nextTree)||void 0===o?void 0:o.version)&&r!==(null===(a=c.previousTree)||void 0===a?void 0:a.version)&&G("Tried to save dependencies to a discarded tree");const l=n.getGraph(r);if(we(e,t,l),r===(null===(i=c.previousTree)||void 0===i?void 0:i.version)){we(e,t,n.getGraph(c.currentTree.version),l)}if(r===(null===(s=c.previousTree)||void 0===s?void 0:s.version)||r===c.currentTree.version){var u;const r=null===(u=c.nextTree)||void 0===u?void 0:u.version;if(void 0!==r){we(e,t,n.getGraph(r),l)}}}};let xe=0;let Oe=0;let ke=0;var Ee={getNextTreeStateVersion:()=>xe++,getNextStoreID:()=>Oe++,getNextComponentID:()=>ke++};const{persistentMap:Se}=be,{graph:Ae}=_e,{getNextTreeStateVersion:Ce}=Ee;function je(){const e=Ce();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:Se(),nonvalidatedAtoms:Se()}}var Le={makeEmptyTreeState:je,makeEmptyStoreState:function(){const e=je();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(e.version,Ae()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}},getNextTreeStateVersion:Ce};class Pe{}var Te={RetentionZone:Pe,retentionZone:function(){return new Pe}};var Me={setByAddingToSet:function(e,t){const n=new Set(e);return n.add(t),n},setByDeletingFromSet:function(e,t){const n=new Set(e);return n.delete(t),n},mapBySettingInMap:function(e,t,n){const r=new Map(e);return r.set(t,n),r},mapByUpdatingInMap:function(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r},mapByDeletingFromMap:function(e,t){const n=new Map(e);return n.delete(t),n},mapByDeletingMultipleFromMap:function(e,t){const n=new Map(e);return t.forEach(e=>n.delete(e)),n}};var Ie=function*(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)};var Re=function(e,t){return new Proxy(e,{get:(e,n)=>(!(n in e)&&n in t&&(e[n]=t[n]()),e[n]),ownKeys:e=>Object.keys(e)})};const{getNode:Ne,getNodeMaybe:De,recoilValuesForKeys:He}=ue,{RetentionZone:Ge}=Te,{setByAddingToSet:Fe}=Me,Be=Object.freeze(new Set);class ze extends Error{}function Ue(e,t,n,r){const o=e.getState();if(o.nodeCleanupFunctions.has(n))return;const a=Ne(n),i=function(e,t,n){if(!R("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function o(e){let n=r.get(e);n||r.set(e,n=new Set),n.add(t)}if(n instanceof Ge)o(n);else if(Array.isArray(n))for(const e of n)o(e);return()=>{if(!R("recoil_memory_managament_2020"))return;const{retention:r}=e.getState();function o(e){const n=r.nodesRetainedByZone.get(e);null==n||n.delete(t),n&&0===n.size&&r.nodesRetainedByZone.delete(e)}if(n instanceof Ge)o(n);else if(Array.isArray(n))for(const e of n)o(e)}}(e,n,a.retainedBy),s=a.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{s(),i()})}function qe(e,t,n){return Ne(n).peek(e,t)}function Ve(e,t,n){const r=new Set,o=Array.from(n),a=e.getGraph(t.version);for(let e=o.pop();e;e=o.pop()){var i;r.add(e);const t=null!==(i=a.nodeToNodeSubscriptions.get(e))&&void 0!==i?i:Be;for(const e of t)r.has(e)||o.push(e)}return r}var We={getNodeLoadable:function(e,t,n){return Ue(e,t,n,"get"),Ne(n).get(e,t)},peekNodeLoadable:qe,setNodeValue:function(e,t,n,r){const o=Ne(n);if(null==o.set)throw new ze(`Attempt to set read-only RecoilValue: ${n}`);const a=o.set;return Ue(e,t,n,"set"),a(e,t,r)},initializeNode:function(e,t,n){Ue(e,e.getState().currentTree,t,n)},cleanUpNode:function(e,t){var n;const r=e.getState();null===(n=r.nodeCleanupFunctions.get(t))||void 0===n||n(),r.nodeCleanupFunctions.delete(t)},setUnvalidatedAtomValue_DEPRECATED:function(e,t,n){var r;const o=De(t);return null==o||null===(r=o.invalidate)||void 0===r||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:Fe(e.dirtyAtoms,t)}},peekNodeInfo:function(e,t,n){const r=e.getState(),o=e.getGraph(t.version),a=Ne(n).nodeType;return Re({type:a},{loadable:()=>qe(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>"selector"!==a&&t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var e;return He(null!==(e=o.nodeDeps.get(n))&&void 0!==e?e:[])},subscribers:()=>{var o,a;return{nodes:He(Ie(Ve(e,t,new Set([n])),e=>e!==n)),components:te(null!==(o=null===(a=r.nodeToComponentSubscriptions.get(n))||void 0===a?void 0:a.values())&&void 0!==o?o:[],([e])=>({name:e}))}}})},getDownstreamNodes:Ve};let $e=null;var Ke={setInvalidateMemoizedSnapshot:function(e){$e=e},invalidateMemoizedSnapshot:function(){var e;null===(e=$e)||void 0===e||e()}};const{getDownstreamNodes:Ye,getNodeLoadable:Xe,setNodeValue:Qe}=We,{getNextComponentID:Ze}=Ee,{getNode:Je,getNodeMaybe:et}=ue,{DefaultValue:tt}=ue,{reactMode:nt}=q,{AbstractRecoilValue:rt,RecoilState:ot,RecoilValueReadOnly:at,isRecoilValue:it}=J,{invalidateMemoizedSnapshot:st}=Ke;function ct(e,t,n){if("set"===n.type){const{recoilValue:r,valueOrUpdater:o}=n,a=function(e,t,{key:n},r){if("function"==typeof r){const o=Xe(e,t,n);if("loading"===o.state){const e=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw G(e),s(e)}if("hasError"===o.state)throw o.contents;return r(o.contents)}return r}(e,t,r,o),i=Qe(e,t,r.key,a);for(const[e,n]of i.entries())lt(t,e,n)}else if("setLoadable"===n.type){const{recoilValue:{key:e},loadable:r}=n;lt(t,e,r)}else if("markModified"===n.type){const{recoilValue:{key:e}}=n;t.dirtyAtoms.add(e)}else if("setUnvalidated"===n.type){var r;const{recoilValue:{key:e},unvalidatedValue:o}=n,a=et(e);null==a||null===(r=a.invalidate)||void 0===r||r.call(a,t),t.atomValues.delete(e),t.nonvalidatedAtoms.set(e,o),t.dirtyAtoms.add(e)}else G(`Unknown action ${n.type}`)}function lt(e,t,n){"hasValue"===n.state&&n.contents instanceof tt?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function ut(e,t){e.replaceState(n=>{const r=pt(n);for(const n of t)ct(e,r,n);return ht(e,r),st(),r})}function dt(e,t){if(ft.length){const n=ft[ft.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else ut(e,[t])}const ft=[];function pt(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function ht(e,t){const n=Ye(e,t,t.dirtyAtoms);for(const e of n){var r,o;null===(r=et(e))||void 0===r||null===(o=r.invalidate)||void 0===o||o.call(r,t)}}function gt(e,t,n){dt(e,{type:"set",recoilValue:t,valueOrUpdater:n})}var mt={RecoilValueReadOnly:at,AbstractRecoilValue:rt,RecoilState:ot,getRecoilValueAsLoadable:function(e,{key:t},n=e.getState().currentTree){var r,o;const a=e.getState();n.version!==a.currentTree.version&&n.version!==(null===(r=a.nextTree)||void 0===r?void 0:r.version)&&n.version!==(null===(o=a.previousTree)||void 0===o?void 0:o.version)&&G("Tried to read from a discarded tree");const i=Xe(e,n,t);return"loading"===i.state&&i.contents.catch(()=>{}),i},setRecoilValue:gt,setRecoilValueLoadable:function(e,t,n){if(n instanceof tt)return gt(e,t,n);dt(e,{type:"setLoadable",recoilValue:t,loadable:n})},markRecoilValueModified:function(e,t){dt(e,{type:"markModified",recoilValue:t})},setUnvalidatedRecoilValue:function(e,t,n){dt(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})},subscribeToRecoilValue:function(e,{key:t},n,r=null){const o=Ze(),a=e.getState();a.nodeToComponentSubscriptions.has(t)||a.nodeToComponentSubscriptions.set(t,new Map),l(a.nodeToComponentSubscriptions.get(t)).set(o,[null!=r?r:"",n]);const i=nt();if(i.early&&("LEGACY"===i.mode||"MUTABLE_SOURCE"===i.mode)){const r=e.getState().nextTree;r&&r.dirtyAtoms.has(t)&&n(r)}return{release:()=>{const n=e.getState(),r=n.nodeToComponentSubscriptions.get(t);void 0!==r&&r.has(o)?(r.delete(o),0===r.size&&n.nodeToComponentSubscriptions.delete(t)):G(`Subscription missing at release time for atom ${t}. This is a bug in Recoil.`)}}},isRecoilValue:it,applyAtomValueWrites:function(e,t){const n=e.clone();return t.forEach((e,t)=>{"hasValue"===e.state&&e.contents instanceof tt?n.delete(t):n.set(t,e)}),n},batchStart:function(){const e=new Map;return ft.push(e),()=>{for(const[t,n]of e)ut(t,n);ft.pop()!==e&&G("Incorrect order of batch popping")}},writeLoadableToTreeState:lt,invalidateDownstreams:ht,copyTreeState:pt,refreshRecoilValue:function(e,t){var n;const{currentTree:r}=e.getState(),o=Je(t.key);null===(n=o.clearCache)||void 0===n||n.call(o,e,r)}};var bt=function(e,t,n){const r=e.entries();let o=r.next();for(;!o.done;){const a=o.value;if(t.call(n,a[1],a[0],e))return!0;o=r.next()}return!1};const{cleanUpNode:vt}=We,{deleteNodeConfigIfPossible:yt,getNode:wt}=ue,{RetentionZone:_t}=Te,xt=new Set;function Ot(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return void G("releaseNodesNowOnCurrentTree should only be called at the end of a batch");const o=new Set;for(const e of t)if(e instanceof _t)for(const t of Et(n,e))o.add(t);else o.add(e);const a=function(e,t){const n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),a=new Set,i=new Set;return s(t),a;function s(t){const c=new Set,u=function(e,t,n,r,o){const a=e.getGraph(t.version),i=[],s=new Set;for(;n.size>0;)c(l(n.values().next().value));return i;function c(e){if(r.has(e)||o.has(e))return void n.delete(e);if(s.has(e))return;const t=a.nodeToNodeSubscriptions.get(e);if(t)for(const e of t)c(e);s.add(e),n.delete(e),i.push(e)}}(e,r,t,a,i);for(const e of u){var d;if("recoilRoot"===wt(e).retainedBy){i.add(e);continue}if((null!==(d=n.retention.referenceCounts.get(e))&&void 0!==d?d:0)>0){i.add(e);continue}if(St(e).some(e=>n.retention.referenceCounts.get(e))){i.add(e);continue}const t=o.nodeToNodeSubscriptions.get(e);t&&bt(t,e=>i.has(e))?i.add(e):(a.add(e),c.add(e))}const f=new Set;for(const e of c)for(const t of null!==(p=o.nodeDeps.get(e))&&void 0!==p?p:xt){var p;a.has(t)||f.add(t)}f.size&&s(f)}}(e,o);for(const t of a)kt(e,r,t)}function kt(e,t,n){if(!R("recoil_memory_managament_2020"))return;vt(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const o=St(n);for(const e of o){var a;null===(a=r.retention.nodesRetainedByZone.get(e))||void 0===a||a.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const i=r.graphsByVersion.get(t.version);if(i){const e=i.nodeDeps.get(n);if(void 0!==e){i.nodeDeps.delete(n);for(const t of e){var s;null===(s=i.nodeToNodeSubscriptions.get(t))||void 0===s||s.delete(n)}}i.nodeToNodeSubscriptions.delete(n)}yt(n)}function Et(e,t){var n;return null!==(n=e.retention.nodesRetainedByZone.get(t))&&void 0!==n?n:xt}function St(e){const t=wt(e).retainedBy;return void 0===t||"components"===t||"recoilRoot"===t?[]:t instanceof _t?[t]:t}function At(e,t){if(!R("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),function(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):Ot(e,new Set([t]))}(e,t)}var Ct={SUSPENSE_TIMEOUT_MS:12e4,updateRetainCount:function(e,t,n){var r;if(!R("recoil_memory_managament_2020"))return;const o=e.getState().retention.referenceCounts,a=(null!==(r=o.get(t))&&void 0!==r?r:0)+n;0===a?At(e,t):o.set(t,a)},updateRetainCountToZero:At,releaseScheduledRetainablesNow:function(e){if(!R("recoil_memory_managament_2020"))return;const t=e.getState();Ot(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()},retainedByOptionWithDefault:function(e){return void 0===e?"recoilRoot":e}};const{unstable_batchedUpdates:jt}=i.a;var Lt={unstable_batchedUpdates:jt};const{unstable_batchedUpdates:Pt}=Lt;var Tt={unstable_batchedUpdates:Pt};const{batchStart:Mt}=mt,{unstable_batchedUpdates:It}=Tt;let Rt=It||(e=>e());var Nt={getBatcher:()=>Rt,setBatcher:e=>{Rt=e},batchUpdates:e=>{Rt(()=>{let t=()=>{};try{t=Mt(),e()}finally{t()}})}};var Dt=function*(e){for(const t of e)for(const e of t)yield e};const Ht="undefined"==typeof Window||"undefined"==typeof window,Gt="undefined"!=typeof navigator&&"ReactNative"===navigator.product;var Ft={isSSR:Ht,isReactNative:Gt,isWindow:e=>!Ht&&(e===window||e instanceof Window)};var Bt={memoizeWithArgsHash:function(e,t){let n;return(...r)=>{n||(n={});const o=t(...r);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...r)),n[o]}},memoizeOneWithArgsHash:function(e,t){let n,r;return(...o)=>{const a=t(...o);return n===a?r:(n=a,r=e(...o),r)}},memoizeOneWithArgsHashAndInvalidation:function(e,t){let n,r;return[(...o)=>{const a=t(...o);return n===a?r:(n=a,r=e(...o),r)},()=>{n=null}]}};const{batchUpdates:zt}=Nt,{initializeNode:Ut,peekNodeInfo:qt}=We,{graph:Vt}=_e,{getNextStoreID:Wt}=Ee,{DEFAULT_VALUE:$t,recoilValues:Kt,recoilValuesForKeys:Yt}=ue,{AbstractRecoilValue:Xt,getRecoilValueAsLoadable:Qt,setRecoilValue:Zt,setUnvalidatedRecoilValue:Jt}=mt,{updateRetainCount:en}=Ct,{setInvalidateMemoizedSnapshot:tn}=Ke,{getNextTreeStateVersion:nn,makeEmptyStoreState:rn}=Le,{isSSR:on}=Ft,{memoizeOneWithArgsHashAndInvalidation:an}=Bt;class sn{constructor(e,t){u(this,"_store",void 0),u(this,"_refCount",1),u(this,"getLoadable",e=>(this.checkRefCount_INTERNAL(),Qt(this._store,e))),u(this,"getPromise",e=>(this.checkRefCount_INTERNAL(),this.getLoadable(e).toPromise())),u(this,"getNodes_UNSTABLE",e=>{if(this.checkRefCount_INTERNAL(),!0===(null==e?void 0:e.isModified)){if(!1===(null==e?void 0:e.isInitialized))return[];const t=this._store.getState().currentTree;return Yt(t.dirtyAtoms)}const t=this._store.getState().knownAtoms,n=this._store.getState().knownSelectors;return null==(null==e?void 0:e.isInitialized)?Kt.values():!0===e.isInitialized?Yt(Dt([t,n])):Ie(Kt.values(),({key:e})=>!t.has(e)&&!n.has(e))}),u(this,"getInfo_UNSTABLE",({key:e})=>(this.checkRefCount_INTERNAL(),qt(this._store,this._store.getState().currentTree,e))),u(this,"map",e=>{this.checkRefCount_INTERNAL();const t=new dn(this,zt);return e(t),t}),u(this,"asyncMap",async e=>{this.checkRefCount_INTERNAL();const t=new dn(this,zt);return t.retain(),await e(t),t.autoRelease_INTERNAL(),t}),this._store={storeID:Wt(),parentStoreID:t,getState:()=>e,replaceState:t=>{e.currentTree=t(e.currentTree)},getGraph:t=>{const n=e.graphsByVersion;if(n.has(t))return l(n.get(t));const r=Vt();return n.set(t,r),r},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw s("Cannot subscribe to Snapshots")}};for(const e of this._store.getState().knownAtoms)Ut(this._store,e,"get"),en(this._store,e,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0&&G("Attempt to retain() Snapshot that was already released."),this._refCount++;let e=!1;return()=>{e||(e=!0,this._release())}}autoRelease_INTERNAL(){on||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,0===this._refCount){if(this._store.getState().nodeCleanupFunctions.forEach(e=>e()),this._store.getState().nodeCleanupFunctions.clear(),!R("recoil_memory_managament_2020"))return}else this._refCount}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){R("recoil_memory_managament_2020")&&this._refCount}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function cn(e,t,n=!1){const r=e.getState(),o=n?nn():t.version;return{currentTree:{version:n?o:t.version,stateID:n?o:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:(new Map).set(o,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(te(r.nodeCleanupFunctions.entries(),([e])=>[e,()=>{}]))}}const[ln,un]=an((e,t)=>{var n;const r=e.getState(),o="latest"===t?null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree:l(r.previousTree);return new sn(cn(e,o),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String(null===(n=e.getState().nextTree)||void 0===n?void 0:n.version)+String(e.getState().currentTree.version)+String(null===(r=e.getState().previousTree)||void 0===r?void 0:r.version)});tn(un);class dn extends sn{constructor(e,t){super(cn(e.getStore_INTERNAL(),e.getStore_INTERNAL().getState().currentTree,!0),e.getStoreID()),u(this,"_batch",void 0),u(this,"set",(e,t)=>{this.checkRefCount_INTERNAL();const n=this.getStore_INTERNAL();this._batch(()=>{en(n,e.key,1),Zt(this.getStore_INTERNAL(),e,t)})}),u(this,"reset",e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();this._batch(()=>{en(t,e.key,1),Zt(this.getStore_INTERNAL(),e,$t)})}),u(this,"setUnvalidatedAtomValues_DEPRECATED",e=>{this.checkRefCount_INTERNAL();const t=this.getStore_INTERNAL();zt(()=>{for(const[n,r]of e.entries())en(t,n,1),Jt(t,new Xt(n),r)})}),this._batch=t}}var fn={Snapshot:sn,MutableSnapshot:dn,freshSnapshot:function(e){const t=new sn(rn());return null!=e?t.map(e):t},cloneSnapshot:function(e,t="latest"){const n=ln(e,t);return n.isRetained()?n:(un(),ln(e,t))}},pn=fn.Snapshot,hn=fn.MutableSnapshot,gn=fn.freshSnapshot,mn=fn.cloneSnapshot,bn=Object.freeze({__proto__:null,Snapshot:pn,MutableSnapshot:hn,freshSnapshot:gn,cloneSnapshot:mn});var vn=function(...e){const t=new Set;for(const n of e)for(const e of n)t.add(e);return t};const{useRef:yn}=o.a;var wn=function(e){const t=yn(e);return t.current===e&&"function"==typeof e&&(t.current=e()),t};const{getNextTreeStateVersion:_n,makeEmptyStoreState:xn}=Le,{cleanUpNode:On,getDownstreamNodes:kn,initializeNode:En,setNodeValue:Sn,setUnvalidatedAtomValue_DEPRECATED:An}=We,{graph:Cn}=_e,{cloneGraph:jn}=_e,{getNextStoreID:Ln}=Ee,{createMutableSource:Pn,reactMode:Tn}=q,{applyAtomValueWrites:Mn}=mt,{releaseScheduledRetainablesNow:In}=Ct,{freshSnapshot:Rn}=bn,{useCallback:Nn,useContext:Dn,useEffect:Hn,useMemo:Gn,useRef:Fn,useState:Bn}=o.a;function zn(){throw s("This component must be used inside a component.")}const Un=Object.freeze({storeID:Ln(),getState:zn,replaceState:zn,getGraph:zn,subscribeToTransactions:zn,addTransactionMetadata:zn});let qn=!1;function Vn(e){if(qn)throw s("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(null===t.nextTree){R("recoil_memory_managament_2020")&&R("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&In(e);const n=t.currentTree.version,r=_n();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,jn(l(t.graphsByVersion.get(n))))}}const Wn=o.a.createContext({current:Un}),$n=()=>Dn(Wn),Kn=o.a.createContext(null);function Yn(e,t,n){const r=kn(e,n,n.dirtyAtoms);for(const e of r){const r=t.nodeToComponentSubscriptions.get(e);if(r)for(const[e,[t,o]]of r)o(n)}}function Xn(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[n,o]of t.nodeTransactionSubscriptions)if(r.has(n))for(const[t,n]of o)n(e);for(const[n,r]of t.transactionSubscriptions)r(e);(!Tn().early||t.suspendedComponentResolvers.size>0)&&(Yn(e,t,n),t.suspendedComponentResolvers.forEach(e=>e()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(e=>e(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function Qn({setNotifyBatcherOfChange:e}){const t=$n(),[,n]=Bn([]);return e(()=>n({})),Hn(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),Hn(()=>{de.enqueueExecution("Batcher",()=>{!function(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(null==n)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,Xn(e),null!=t.previousTree?t.graphsByVersion.delete(t.previousTree.version):G("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,R("recoil_memory_managament_2020")&&null==n&&In(e)}finally{t.commitDepth--}}(t.current)})}),null}let Zn=0;function Jn({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let a;const i=e=>{const t=a.current.graphsByVersion;if(t.has(e))return l(t.get(e));const n=Cn();return t.set(e,n),n},s=(e,t)=>{if(null==t){const{transactionSubscriptions:t}=p.current.getState(),n=Zn++;return t.set(n,e),{release:()=>{t.delete(n)}}}{const{nodeTransactionSubscriptions:n}=p.current.getState();n.has(t)||n.set(t,new Map);const r=Zn++;return l(n.get(t)).set(r,e),{release:()=>{const e=n.get(t);e&&(e.delete(r),0===e.size&&n.delete(t))}}}},c=e=>{Vn(p.current);for(const t of Object.keys(e))l(p.current.getState().nextTree).transactionMetadata[t]=e[t]},u=e=>{Vn(p.current);const t=l(a.current.nextTree);let n;try{qn=!0,n=e(t)}finally{qn=!1}n!==t&&(a.current.nextTree=n,Tn().early&&Yn(p.current,a.current,n),l(d.current)())},d=Fn(null),f=Nn(e=>{d.current=e},[d]),p=wn(()=>null!=n?n:{storeID:Ln(),getState:()=>a.current,replaceState:u,getGraph:i,subscribeToTransactions:s,addTransactionMetadata:c});null!=n&&(p.current=n),a=wn(()=>null!=e?function(e,t){const n=xn();return t({set:(t,r)=>{const o=n.currentTree,a=Sn(e,o,t.key,r),i=new Set(a.keys()),s=o.nonvalidatedAtoms.clone();for(const e of i)s.delete(e);n.currentTree={...o,dirtyAtoms:vn(o.dirtyAtoms,i),atomValues:Mn(o.atomValues,a),nonvalidatedAtoms:s}},setUnvalidatedAtomValues:e=>{e.forEach((e,t)=>{n.currentTree=An(n.currentTree,t,e)})}}),n}(p.current,e):null!=t?function(e){const t=Rn(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(e=>e()),n.nodeCleanupFunctions.clear(),n}(t):xn());const h=Gn(()=>null==Pn?void 0:Pn(a,()=>a.current.currentTree.version),[a]);return Hn(()=>{const e=p.current;for(const t of new Set(e.getState().knownAtoms))En(e,t,"get");return()=>{for(const t of e.getState().knownAtoms)On(e,t)}},[p]),o.a.createElement(Wn.Provider,{value:p},o.a.createElement(Kn.Provider,{value:h},o.a.createElement(Qn,{setNotifyBatcherOfChange:f}),r))}var er={RecoilRoot:function(e){const{override:t,...n}=e,r=$n();return!1===t&&r.current!==Un?e.children:o.a.createElement(Jn,n)},useStoreRef:$n,useRecoilMutableSource:function(){const e=Dn(Kn);return null==e&&ee("Attempted to use a Recoil hook outside of a . must be an ancestor of any component that uses Recoil hooks."),e},useRecoilStoreID:function(){return $n().current.storeID},notifyComponents_FOR_TESTING:Yn,sendEndOfBatchNotifications_FOR_TESTING:Xn};var tr=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{t.current=e}),t.current};const{useStoreRef:ar}=er,{SUSPENSE_TIMEOUT_MS:ir}=Ct,{updateRetainCount:sr}=Ct,{RetentionZone:cr}=Te,{useEffect:lr,useRef:ur}=o.a,{isSSR:dr}=Ft;var fr=function(e){if(R("recoil_memory_managament_2020"))return function(e){const t=(Array.isArray(e)?e:[e]).map(e=>e instanceof cr?e:e.key),n=ar();lr(()=>{if(!R("recoil_memory_managament_2020"))return;const e=n.current;if(r.current&&!dr)window.clearTimeout(r.current),r.current=null;else for(const n of t)sr(e,n,1);return()=>{for(const n of t)sr(e,n,-1)}},[n,...t]);const r=ur(),o=or(t);if(!(dr||void 0!==o&&tr(o,t))){const e=n.current;for(const n of t)sr(e,n,1);if(o)for(const t of o)sr(e,t,-1);r.current&&window.clearTimeout(r.current),r.current=window.setTimeout(()=>{r.current=null;for(const n of t)sr(e,n,-1)},ir)}}(e)};var pr=function(){return""};const{batchUpdates:hr}=Nt,{DEFAULT_VALUE:gr}=ue,{currentRendererSupportsUseSyncExternalStore:mr,reactMode:br,useMutableSource:vr,useSyncExternalStore:yr}=q,{useRecoilMutableSource:wr,useStoreRef:_r}=er,{isRecoilValue:xr}=J,{AbstractRecoilValue:Or,getRecoilValueAsLoadable:kr,setRecoilValue:Er,setUnvalidatedRecoilValue:Sr,subscribeToRecoilValue:Ar}=mt,{useCallback:Cr,useEffect:jr,useMemo:Lr,useRef:Pr,useState:Tr}=o.a,{setByAddingToSet:Mr}=Me,{isSSR:Ir}=Ft;function Rr(e,t,n){if("hasValue"===e.state)return e.contents;if("loading"===e.state){throw new Promise(t=>{const r=n.current.getState().suspendedComponentResolvers;r.add(t),Ir&&c(e.contents)&&e.contents.finally(()=>{r.delete(t)})})}throw"hasError"===e.state?e.contents:s(`Invalid value of loadable atom "${t.key}"`)}function Nr(e){const t=_r(),n=pr(),r=Cr(()=>{var n;const r=t.current,o=r.getState(),a=br().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return{loadable:kr(r,e,a),key:e.key}},[t,e]),o=Cr(e=>{let t;return()=>{var n,r;const o=e();return null!==(n=t)&&void 0!==n&&n.loadable.is(o.loadable)&&(null===(r=t)||void 0===r?void 0:r.key)===o.key?t:(t=o,o)}},[]),a=Lr(()=>o(r),[r,o]),i=Cr(r=>{const o=t.current;return Ar(o,e,r,n).release},[t,e,n]);return yr(i,a,a).loadable}function Dr(e){const t=_r(),n=Cr(()=>{var n;const r=t.current,o=r.getState(),a=br().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return kr(r,e,a)},[t,e]),r=Cr(()=>n(),[n]),o=pr(),a=Cr((r,a)=>{const i=t.current;return Ar(i,e,()=>{if(!R("recoil_suppress_rerender_in_callback"))return a();const e=n();l.current.is(e)||a(),l.current=e},o).release},[t,e,o,n]),i=wr();if(null==i)throw s("Recoil hooks must be used in components contained within a component.");const c=vr(i,r,a),l=Pr(c);return jr(()=>{l.current=c}),c}function Hr(e){const t=_r(),n=pr(),r=Cr(()=>{var n;const r=t.current,o=r.getState(),a=br().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return kr(r,e,a)},[t,e]),o=Cr(()=>({loadable:r(),key:e.key}),[r,e.key]),a=Cr(e=>{const t=o();return e.loadable.is(t.loadable)&&e.key===t.key?e:t},[o]);jr(()=>{const r=Ar(t.current,e,e=>{s(a)},n);return s(a),r.release},[n,e,t,a]);const[i,s]=Tr(o);return i.key!==e.key?o().loadable:i.loadable}function Gr(e){const t=_r(),[,n]=Tr([]),r=pr(),o=Cr(()=>{var n;const r=t.current,o=r.getState(),a=br().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree;return kr(r,e,a)},[t,e]),a=o(),i=Pr(a);return jr(()=>{i.current=a}),jr(()=>{const a=t.current,s=a.getState(),c=Ar(a,e,e=>{var t;if(!R("recoil_suppress_rerender_in_callback"))return n([]);const r=o();null!==(t=i.current)&&void 0!==t&&t.is(r)||n(r),i.current=r},r);if(s.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{i.current=null,n([])});else{var l;if(!R("recoil_suppress_rerender_in_callback"))return n([]);const e=o();null!==(l=i.current)&&void 0!==l&&l.is(e)||n(e),i.current=e}return c.release},[r,o,e,t]),a}function Fr(e){return R("recoil_memory_managament_2020")&&fr(e),{TRANSITION_SUPPORT:Hr,SYNC_EXTERNAL_STORE:mr()?Nr:Hr,MUTABLE_SOURCE:Dr,LEGACY:Gr}[br().mode](e)}function Br(e){const t=_r();return Rr(Fr(e),e,t)}function zr(e){const t=_r();return Cr(n=>{Er(t.current,e,n)},[t,e])}function Ur(e){return R("recoil_memory_managament_2020")&&fr(e),Hr(e)}function qr(e){const t=_r();return Rr(Ur(e),e,t)}var Vr={recoilComponentGetRecoilValueCount_FOR_TESTING:{current:0},useRecoilInterface:function(){const e=pr(),t=_r(),[,n]=Tr([]),r=Pr(new Set);r.current=new Set;const o=Pr(new Set),a=Pr(new Map),i=Cr(e=>{const t=a.current.get(e);t&&(t.release(),a.current.delete(e))},[a]),s=Cr((e,t)=>{a.current.has(t)&&n([])},[]);return jr(()=>{const n=t.current;ve(r.current,o.current).forEach(t=>{if(a.current.has(t))return void ee(`Double subscription to RecoilValue "${t}"`);const r=Ar(n,new Or(t),e=>s(e,t),e);a.current.set(t,r),n.getState().nextTree?n.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{s(n.getState(),t)}):s(n.getState(),t)}),ve(o.current,r.current).forEach(e=>{i(e)}),o.current=r.current}),jr(()=>{const n=a.current;return ve(r.current,new Set(n.keys())).forEach(r=>{const o=Ar(t.current,new Or(r),e=>s(e,r),e);n.set(r,o)}),()=>n.forEach((e,t)=>i(t))},[e,t,i,s]),Lr(()=>{function e(e){return n=>{Er(t.current,e,n)}}function n(e){var n;r.current.has(e.key)||(r.current=Mr(r.current,e.key));const o=t.current.getState();return kr(t.current,e,br().early&&null!==(n=o.nextTree)&&void 0!==n?n:o.currentTree)}function o(e){return Rr(n(e),e,t)}return{getRecoilValue:o,getRecoilValueLoadable:n,getRecoilState:function(t){return[o(t),e(t)]},getRecoilStateLoadable:function(t){return[n(t),e(t)]},getSetRecoilState:e,getResetRecoilState:function(e){return()=>Er(t.current,e,gr)}}},[r,t])},useRecoilState:function(e){return[Br(e),zr(e)]},useRecoilStateLoadable:function(e){return[Fr(e),zr(e)]},useRecoilValue:Br,useRecoilValueLoadable:Fr,useResetRecoilState:function(e){const t=_r();return Cr(()=>{Er(t.current,e,gr)},[t,e])},useSetRecoilState:zr,useSetUnvalidatedAtomValues:function(){const e=_r();return(t,n={})=>{hr(()=>{e.current.addTransactionMetadata(n),t.forEach((t,n)=>Sr(e.current,new Or(n),t))})}},useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Ur,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:qr,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:function(e){return[qr(e),zr(e)]}};var Wr=function(e,t){const n=new Map;for(const[r,o]of e)t(o,r)&&n.set(r,o);return n};var $r=function(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n};var Kr=function(...e){const t=new Map;for(let n=0;nt.current.subscribeToTransactions(e).release,[e,t])}function uo(e){const t=e.atomValues.toMap(),n=ye(Wr(t,(e,t)=>{const n=Qr(t).persistence_UNSTABLE;return null!=n&&"none"!==n.type&&"hasValue"===e.state}),e=>e.contents);return Kr(e.nonvalidatedAtoms.toMap(),n)}function fo(e,t){var n;const r=e.getState(),o=null!==(n=r.nextTree)&&void 0!==n?n:r.currentTree,a=t.getStore_INTERNAL().getState().currentTree;Yr(()=>{const n=new Set;for(const e of[o.atomValues.keys(),a.atomValues.keys()])for(const t of e){var r,i;(null===(r=o.atomValues.get(t))||void 0===r?void 0:r.contents)!==(null===(i=a.atomValues.get(t))||void 0===i?void 0:i.contents)&&Qr(t).shouldRestoreFromSnapshots&&n.add(t)}n.forEach(t=>{to(e,new eo(t),a.atomValues.has(t)?l(a.atomValues.get(t)):Xr)}),e.replaceState(e=>({...e,stateID:t.getID()}))})}var po={useRecoilSnapshot:function(){const e=Jr(),[t,n]=so(()=>ro(e.current)),r=or(t),o=io(),a=io();if(lo(oo(e=>n(ro(e)),[])),ao(()=>{const e=t.retain();var n;o.current&&!co&&(window.clearTimeout(o.current),o.current=null,null===(n=a.current)||void 0===n||n.call(a),a.current=null);return()=>{window.setTimeout(e,10)}},[t]),r!==t&&!co){var i;if(o.current)window.clearTimeout(o.current),o.current=null,null===(i=a.current)||void 0===i||i.call(a),a.current=null;a.current=t.retain(),o.current=window.setTimeout(()=>{var e;o.current=null,null===(e=a.current)||void 0===e||e.call(a),a.current=null},no)}return t},gotoSnapshot:fo,useGotoRecoilSnapshot:function(){const e=Jr();return oo(t=>fo(e.current,t),[e])},useRecoilTransactionObserver:function(e){lo(oo(t=>{const n=ro(t,"latest"),r=ro(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))},useTransactionObservation_DEPRECATED:function(e){lo(oo(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(G("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"),n=t.getState().currentTree);const o=uo(r),a=uo(n),i=ye(Zr,e=>{var t,n,r,o;return{persistence_UNSTABLE:{type:null!==(t=null===(n=e.persistence_UNSTABLE)||void 0===n?void 0:n.type)&&void 0!==t?t:"none",backButton:null!==(r=null===(o=e.persistence_UNSTABLE)||void 0===o?void 0:o.backButton)&&void 0!==r&&r}}}),s=$r(r.dirtyAtoms,e=>o.has(e)||a.has(e));e({atomValues:o,previousAtomValues:a,atomInfo:i,modifiedAtoms:s,transactionMetadata:{...r.transactionMetadata}})},[e]))},useTransactionSubscription_DEPRECATED:lo};const{peekNodeInfo:ho}=We,{useStoreRef:go}=er;var mo=function(){const e=go();return({key:t})=>ho(e.current,e.current.getState().currentTree,t)};const{reactMode:bo}=q,{RecoilRoot:vo,useStoreRef:yo}=er,{useMemo:wo}=o.a;var _o=function(){"MUTABLE_SOURCE"===bo().mode&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=yo().current;return wo(()=>function({children:t}){return o.a.createElement(vo,{store_INTERNAL:e},t)},[e])};const{loadableWithValue:xo}=L,{initializeNode:Oo}=We,{DEFAULT_VALUE:ko,getNode:Eo}=ue,{copyTreeState:So,getRecoilValueAsLoadable:Ao,invalidateDownstreams:Co,writeLoadableToTreeState:jo}=mt;function Lo(e){return"atom"===Eo(e.key).nodeType}class Po{constructor(e,t){u(this,"_store",void 0),u(this,"_treeState",void 0),u(this,"_changes",void 0),u(this,"get",e=>{if(this._changes.has(e.key))return this._changes.get(e.key);if(!Lo(e))throw s("Reading selectors within atomicUpdate is not supported");const t=Ao(this._store,e,this._treeState);if("hasValue"===t.state)return t.contents;throw"hasError"===t.state?t.contents:s(`Expected Recoil atom ${e.key} to have a value, but it is in a loading state.`)}),u(this,"set",(e,t)=>{if(!Lo(e))throw s("Setting selectors within atomicUpdate is not supported");if("function"==typeof t){const n=this.get(e);this._changes.set(e.key,t(n))}else Oo(this._store,e.key,"set"),this._changes.set(e.key,t)}),u(this,"reset",e=>{this.set(e,ko)}),this._store=e,this._treeState=t,this._changes=new Map}newTreeState_INTERNAL(){if(0===this._changes.size)return this._treeState;const e=So(this._treeState);for(const[t,n]of this._changes)jo(e,t,xo(n));return Co(this._store,e),e}}var To=function(e){return t=>{e.replaceState(n=>{const r=new Po(e,n);return t(r),r.newTreeState_INTERNAL()})}},Mo=Object.freeze({__proto__:null,atomicUpdater:To});var Io=function(e,t){if(!e)throw new Error(t)};const{atomicUpdater:Ro}=Mo,{batchUpdates:No}=Nt,{DEFAULT_VALUE:Do}=ue,{useStoreRef:Ho}=er,{refreshRecoilValue:Go,setRecoilValue:Fo}=mt,{cloneSnapshot:Bo}=bn,{gotoSnapshot:zo}=po,{useCallback:Uo}=o.a;class qo{}const Vo=new qo;function Wo(e,t,n,r){let o,a=Vo;var i;(No(()=>{const i="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if("function"!=typeof t)throw s(i);const c=Re({...null!=r?r:{},set:(t,n)=>Fo(e,t,n),reset:t=>Fo(e,t,Do),refresh:t=>Go(e,t),gotoSnapshot:t=>zo(e,t),transact_UNSTABLE:t=>Ro(e)(t)},{snapshot:()=>{const t=Bo(e);return o=t.retain(),t}}),l=t(c);if("function"!=typeof l)throw s(i);a=l(...n)}),a instanceof qo&&Io(!1),c(a))?a=a.finally(()=>{var e;null===(e=o)||void 0===e||e()}):null===(i=o)||void 0===i||i();return a}var $o={recoilCallback:Wo,useRecoilCallback:function(e,t){const n=Ho();return Uo((...t)=>Wo(n.current,e,t),null!=t?[...t,n]:void 0)}};const{useStoreRef:Ko}=er,{refreshRecoilValue:Yo}=mt,{useCallback:Xo}=o.a;var Qo=function(e){const t=Ko();return Xo(()=>{const n=t.current;Yo(n,e)},[e,t])};const{atomicUpdater:Zo}=Mo,{useStoreRef:Jo}=er,{useMemo:ea}=o.a;var ta=function(e,t){const n=Jo();return ea(()=>(...t)=>{Zo(n.current)(n=>{e(n)(...t)})},null!=t?[...t,n]:void 0)};var na=class{constructor(e){u(this,"value",void 0),this.value=e}},ra=Object.freeze({__proto__:null,WrappedValue:na});const{isFastRefreshEnabled:oa}=q;class aa extends Error{}var ia=class{constructor(e){var t,n,r;u(this,"_name",void 0),u(this,"_numLeafs",void 0),u(this,"_root",void 0),u(this,"_onHit",void 0),u(this,"_onSet",void 0),u(this,"_mapNodeValue",void 0),this._name=null==e?void 0:e.name,this._numLeafs=0,this._root=null,this._onHit=null!==(t=null==e?void 0:e.onHit)&&void 0!==t?t:()=>{},this._onSet=null!==(n=null==e?void 0:e.onSet)&&void 0!==n?n:()=>{},this._mapNodeValue=null!==(r=null==e?void 0:e.mapNodeValue)&&void 0!==r?r:e=>e}size(){return this._numLeafs}root(){return this._root}get(e,t){var n;return null===(n=this.getLeafNode(e,t))||void 0===n?void 0:n.value}getLeafNode(e,t){if(null==this._root)return;let n=this._root;for(;n;){if(null==t||t.onNodeVisit(n),"leaf"===n.type)return this._onHit(n),n;const r=this._mapNodeValue(e(n.nodeKey));n=n.branches.get(r)}}set(e,t,n){const r=()=>{var r,o,a,i;let s,c;for(const[t,r]of e){var l,u,d;const e=this._root;if("leaf"===(null==e?void 0:e.type))throw this.invalidCacheError();const o=s;if(s=o?o.branches.get(c):e,s=null!==(l=s)&&void 0!==l?l:{type:"branch",nodeKey:t,parent:o,branches:new Map,branchKey:c},"branch"!==s.type||s.nodeKey!==t)throw this.invalidCacheError();null==o||o.branches.set(c,s),null==n||null===(u=n.onNodeVisit)||void 0===u||u.call(n,s),c=this._mapNodeValue(r),this._root=null!==(d=this._root)&&void 0!==d?d:s}const f=s?null===(r=s)||void 0===r?void 0:r.branches.get(c):this._root;if(null!=f&&("leaf"!==f.type||f.branchKey!==c))throw this.invalidCacheError();const p={type:"leaf",value:t,parent:s,branchKey:c};null===(o=s)||void 0===o||o.branches.set(c,p),this._root=null!==(a=this._root)&&void 0!==a?a:p,this._numLeafs++,this._onSet(p),null==n||null===(i=n.onNodeVisit)||void 0===i||i.call(n,p)};try{r()}catch(e){if(!(e instanceof aa))throw e;this.clear(),r()}}delete(e){const t=this.root();if(!t)return!1;if(e===t)return this._root=null,this._numLeafs=0,!0;let n=e.parent,r=e.branchKey;for(;n;){var o;if(n.branches.delete(r),n===t)return 0===n.branches.size?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(n.branches.size>0)break;r=null===(o=n)||void 0===o?void 0:o.branchKey,n=n.parent}for(;n!==t;n=n.parent)if(null==n)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const e=oa()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw G(e+(null!=this._name?` - ${this._name}`:"")),new aa}},sa=Object.freeze({__proto__:null,TreeCache:ia});var ca=class{constructor(e){var t;u(this,"_maxSize",void 0),u(this,"_size",void 0),u(this,"_head",void 0),u(this,"_tail",void 0),u(this,"_map",void 0),u(this,"_keyMapper",void 0),this._maxSize=e.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=null!==(t=e.mapKey)&&void 0!==t?t:e=>e}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(e){return this._map.has(this._keyMapper(e))}get(e){const t=this._keyMapper(e),n=this._map.get(t);if(n)return this.set(e,n.value),n.value}set(e,t){const n=this._keyMapper(e);this._map.get(n)&&this.delete(e);const r=this.head(),o={key:e,right:r,left:null,value:t};r?r.left=o:this._tail=o,this._map.set(n,o),this._head=o,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const e=this.tail();e&&this.delete(e.key)}delete(e){const t=this._keyMapper(e);if(!this._size||!this._map.has(t))return;const n=l(this._map.get(t)),r=n.right,o=n.left;r&&(r.left=n.left),o&&(o.right=n.right),n===this.head()&&(this._head=r),n===this.tail()&&(this._tail=o),this._map.delete(t),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}},la=Object.freeze({__proto__:null,LRUCache:ca});const{LRUCache:ua}=la,{TreeCache:da}=sa;var fa=function({name:e,maxSize:t,mapNodeValue:n=(e=>e)}){const r=new ua({maxSize:t}),o=new da({name:e,mapNodeValue:n,onHit:e=>{r.set(e,!0)},onSet:e=>{const n=r.tail();r.set(e,!0),n&&o.size()>t&&o.delete(n.key)}});return o};var pa=function(e,t={allowFunctions:!1}){return function e(t,n,r){if("string"==typeof t&&!t.includes('"')&&!t.includes("\\"))return`"${t}"`;switch(typeof t){case"undefined":return"";case"boolean":return t?"true":"false";case"number":case"symbol":return String(t);case"string":return JSON.stringify(t);case"function":if(!0!==(null==n?void 0:n.allowFunctions))throw s("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${t.name})__`}if(null===t)return"null";var o;if("object"!=typeof t)return null!==(o=JSON.stringify(t))&&void 0!==o?o:"";if(c(t))return"__PROMISE__";if(Array.isArray(t))return`[${t.map((t,r)=>e(t,n,r.toString()))}]`;if("function"==typeof t.toJSON)return e(t.toJSON(r),n,r);if(t instanceof Map){const o={};for(const[r,a]of t)o["string"==typeof r?r:e(r,n)]=a;return e(o,n,r)}return t instanceof Set?e(Array.from(t).sort((t,r)=>e(t,n).localeCompare(e(r,n))),n,r):void 0!==Symbol&&null!=t[Symbol.iterator]&&"function"==typeof t[Symbol.iterator]?e(Array.from(t),n,r):`{${Object.keys(t).filter(e=>void 0!==t[e]).sort().map(r=>`${e(r,n)}:${e(t[r],n,r)}`).join(",")}}`}(e,t)};const{TreeCache:ha}=sa,ga={equality:"reference",eviction:"keep-all",maxSize:1/0};var ma=function({equality:e=ga.equality,eviction:t=ga.eviction,maxSize:n=ga.maxSize}=ga,r){return function(e,t,n,r){switch(e){case"keep-all":return new ha({name:r,mapNodeValue:n});case"lru":return fa({name:r,maxSize:l(t),mapNodeValue:n});case"most-recent":return fa({name:r,maxSize:1,mapNodeValue:n})}throw s(`Unrecognized eviction policy ${e}`)}(t,n,function(e){switch(e){case"reference":return e=>e;case"value":return e=>pa(e)}throw s(`Unrecognized equality policy ${e}`)}(e),r)};const{isReactNative:ba,isWindow:va}=Ft;var ya={startPerfBlock:function(e){return()=>null}};const{isLoadable:wa,loadableWithError:_a,loadableWithPromise:xa,loadableWithValue:Oa}=L,{WrappedValue:ka}=ra,{getNodeLoadable:Ea,peekNodeLoadable:Sa,setNodeValue:Aa}=We,{saveDepsToStore:Ca}=_e,{DEFAULT_VALUE:ja,getConfigDeletionHandler:La,getNode:Pa,registerNode:Ta}=ue,{isRecoilValue:Ma}=J,{markRecoilValueModified:Ia}=mt,{retainedByOptionWithDefault:Ra}=Ct,{recoilCallback:Na}=$o,{startPerfBlock:Da}=ya;class Ha{}const Ga=new Ha,Fa=[],Ba=new Map,za=(()=>{let e=0;return()=>e++})();function Ua(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:o}=e,a=null!=e.set?e.set:void 0;const i=new Set,u=ma(null!=o?o:{equality:"reference",eviction:"keep-all"},n),d=Ra(e.retainedBy_UNSTABLE),f=new Map;let p=0;function h(){return!R("recoil_memory_managament_2020")||p>0}function g(e){return e.getState().knownSelectors.add(n),p++,()=>{p--}}function m(){return void 0!==La(n)&&!h()}function b(e,t,n,r,o){L(t,r,o),v(e,n)}function v(e,t){j(e,t)&&C(e),y(t,!0)}function y(e,n){const r=Ba.get(e);if(null!=r){for(const e of r)Ia(e,l(t));n&&Ba.delete(e)}}function w(e,t){let n=Ba.get(t);null==n&&Ba.set(t,n=new Set),n.add(e)}function _(e,t,n,r,o,a){return t.then(r=>{if(!h())throw C(e),Ga;null!=a.loadingDepKey&&a.loadingDepPromise===t?n.atomValues.set(a.loadingDepKey,Oa(r)):e.getState().knownSelectors.forEach(e=>{n.atomValues.delete(e)});const i=k(e,n);if(i&&"loading"!==i.state){if((j(e,o)||null==A(e))&&v(e,o),"hasValue"===i.state)return i.contents;throw i.contents}if(!j(e,o)){const t=S(e,n);if(null!=t)return t.loadingLoadable.contents}const[s,c]=O(e,n,o);if("loading"!==s.state&&b(e,n,o,s,c),"hasError"===s.state)throw s.contents;return s.contents}).catch(t=>{if(t instanceof Ha)throw Ga;if(!h())throw C(e),Ga;const a=_a(t);throw b(e,n,o,a,r),t})}function x(e,t,r,o){var a,s,c,l,u,d,f;(j(e,o)||t.version===(null===(a=e.getState())||void 0===a?void 0:null===(s=a.currentTree)||void 0===s?void 0:s.version)||t.version===(null===(c=e.getState())||void 0===c?void 0:null===(l=c.nextTree)||void 0===l?void 0:l.version))&&Ca(n,r,e,null!==(u=null===(d=e.getState())||void 0===d?void 0:null===(f=d.nextTree)||void 0===f?void 0:f.version)&&void 0!==u?u:e.getState().currentTree.version);for(const e of r)i.add(e)}function O(e,o,a){const i=Da(n);let u=!0,d=!0;const f=()=>{i(),d=!1};let p,g,m=!1;const v={loadingDepKey:null,loadingDepPromise:null},w=new Map;function O({key:t}){const n=Ea(e,o,t);switch(w.set(t,n),u||(x(e,o,new Set(w.keys()),a),function(e,t){if(j(e,t)){l(A(e)).stateVersions.clear(),y(t,!1)}}(e,a)),n.state){case"hasValue":return n.contents;case"hasError":throw n.contents;case"loading":throw v.loadingDepKey=t,v.loadingDepPromise=n.contents,n.contents}throw s("Invalid Loadable state")}const k=n=>(...r)=>{if(d)throw s("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return null==t&&Io(!1),Na(e,n,r,{node:t})};try{p=r({get:O,getCallback:k}),p=Ma(p)?O(p):p,wa(p)&&("hasError"===p.state&&(m=!0),p=p.contents),c(p)?p=function(e,t,n,r,o,a){return t.then(t=>{if(!h())throw C(e),Ga;const a=Oa(t);return b(e,n,o,a,r),t}).catch(t=>{if(!h())throw C(e),Ga;if(c(t))return _(e,t,n,r,o,a);const i=_a(t);throw b(e,n,o,i,r),t})}(e,p,o,w,a,v).finally(f):f(),p=p instanceof ka?p.value:p}catch(t){p=t,c(p)?p=_(e,p,o,w,a,v).finally(f):(m=!0,f())}return g=m?_a(p):c(p)?xa(p):Oa(p),u=!1,function(e,t,n){if(j(e,t)){const t=A(e);null!=t&&(t.depValuesDiscoveredSoFarDuringAsyncWork=n)}}(e,a,w),x(e,o,new Set(w.keys()),a),[g,w]}function k(e,t){let r=t.atomValues.get(n);if(null!=r)return r;const o=new Set;try{r=u.get(n=>("string"!=typeof n&&Io(!1),Ea(e,t,n).contents),{onNodeVisit:e=>{"branch"===e.type&&e.nodeKey!==n&&o.add(e.nodeKey)}})}catch(e){throw s(`Problem with cache lookup for selector "${n}": ${e.message}`)}var a;r&&(t.atomValues.set(n,r),x(e,t,o,null===(a=A(e))||void 0===a?void 0:a.executionID));return r}function E(e,t){const n=k(e,t);if(null!=n)return C(e),n;const r=S(e,t);var o;if(null!=r)return"loading"===(null===(o=r.loadingLoadable)||void 0===o?void 0:o.state)&&w(e,r.executionID),r.loadingLoadable;const a=za(),[i,s]=O(e,t,a);return"loading"===i.state?(!function(e,t,n,r,o){f.set(e,{depValuesDiscoveredSoFarDuringAsyncWork:r,executionID:t,loadingLoadable:n,stateVersions:new Map([[o.version,!0]])})}(e,a,i,s,t),w(e,a)):(C(e),L(t,i,s)),i}function S(e,t){const n=Dt([f.has(e)?[l(f.get(e))]:[],te(Ie(f,([t])=>t!==e),([,e])=>e)]);function r(n){for(const[r,o]of n)if(!Ea(e,t,r).is(o))return!0;return!1}for(const e of n){if(e.stateVersions.get(t.version)||!r(e.depValuesDiscoveredSoFarDuringAsyncWork))return e.stateVersions.set(t.version,!0),e;e.stateVersions.set(t.version,!1)}}function A(e){return f.get(e)}function C(e){f.delete(e)}function j(e,t){var n;return t===(null===(n=A(e))||void 0===n?void 0:n.executionID)}function L(e,t,r){e.atomValues.set(n,t);try{u.set(function(e){return Array.from(e.entries()).map(([e,t])=>[e,t.contents])}(r),t)}catch(e){throw s(`Problem with setting cache for selector "${n}": ${e.message}`)}}function P(e,t){const r=t.atomValues.get(n);return null!=r?r:u.get(n=>{var r;return"string"!=typeof n&&Io(!1),null===(r=Sa(e,t,n))||void 0===r?void 0:r.contents})}function T(e,t){return function(e){if(Fa.includes(n)){const e=`Recoil selector has circular dependencies: ${Fa.slice(Fa.indexOf(n)).join(" → ")}`;return _a(s(e))}Fa.push(n);try{return e()}finally{Fa.pop()}}(()=>E(e,t))}function M(e){e.atomValues.delete(n)}function I(e,n){null==t&&Io(!1);for(const t of i){var r;const o=Pa(t);null===(r=o.clearCache)||void 0===r||r.call(o,e,n)}i.clear(),M(n),u.clear(),Ia(e,t)}if(null!=a){return t=Ta({key:n,nodeType:"selector",peek:P,get:T,set:(e,t,r)=>{let o=!1;const i=new Map;function l({key:r}){if(o)throw s("Recoil: Async selector sets are not currently supported.");const a=Ea(e,t,r);if("hasValue"===a.state)return a.contents;if("loading"===a.state){const e=`Getting value of asynchronous atom or selector "${r}" in a pending state while setting selector "${n}" is not yet supported.`;throw G(e),s(e)}throw a.contents}function u(n,r){if(o){const e="Recoil: Async selector sets are not currently supported.";throw G(e),s(e)}const a="function"==typeof r?r(l(n)):r;Aa(e,t,n.key,a).forEach((e,t)=>i.set(t,e))}const d=a({set:u,get:l,reset:function(e){u(e,ja)}},r);if(void 0!==d)throw c(d)?s("Recoil: Async selector sets are not currently supported."):s("Recoil: selector set should be a void function.");return o=!0,i},init:g,invalidate:M,clearCache:I,shouldDeleteConfigOnRelease:m,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})}return t=Ta({key:n,nodeType:"selector",peek:P,get:T,init:g,invalidate:M,clearCache:I,shouldDeleteConfigOnRelease:m,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:d})}Ua.value=e=>new ka(e);var qa=Ua;const{isLoadable:Va,loadableWithError:Wa,loadableWithPromise:$a,loadableWithValue:Ka}=L,{WrappedValue:Ya}=ra,{peekNodeInfo:Xa}=We,{DEFAULT_VALUE:Qa,DefaultValue:Za,getConfigDeletionHandler:Ja,registerNode:ei,setConfigDeletionHandler:ti}=ue,{isRecoilValue:ni}=J,{getRecoilValueAsLoadable:ri,markRecoilValueModified:oi,setRecoilValue:ai,setRecoilValueLoadable:ii}=mt,{retainedByOptionWithDefault:si}=Ct,ci=e=>e instanceof Ya?e.value:e;function li(e){const{key:t,persistence_UNSTABLE:n}=e,r=si(e.retainedBy_UNSTABLE);let o=0;function a(e){return $a(e.then(e=>(i=Ka(e),e)).catch(e=>{throw i=Wa(e),e}))}let i=c(e.default)?a(e.default):Va(e.default)?"loading"===e.default.state?a(e.default.contents):e.default:Ka(ci(e.default));f(i.contents);let u=void 0;const d=new Map;function f(e){return e}function p(e,n){var r,o;return null!==(r=null!==(o=n.atomValues.get(t))&&void 0!==o?o:u)&&void 0!==r?r:i}const h=ei({key:t,nodeType:"atom",peek:p,get:function(e,r){if(r.atomValues.has(t))return l(r.atomValues.get(t));if(r.nonvalidatedAtoms.has(t)){if(null!=u)return u;if(null==n)return ee(`Tried to restore a persisted value for atom ${t} but it has no persistence settings.`),i;const e=r.nonvalidatedAtoms.get(t),o=n.validator(e,Qa),a=o instanceof Za?i:Ka(o);return u=a,u}return i},set:function(e,n,r){if(n.atomValues.has(t)){const e=l(n.atomValues.get(t));if("hasValue"===e.state&&r===e.contents)return new Map}else if(!n.nonvalidatedAtoms.has(t)&&r instanceof Za)return new Map;return u=void 0,(new Map).set(t,Ka(r))},init:function(n,r,a){var l;if(o++,n.getState().knownAtoms.add(t),"loading"===i.state){const e=()=>{var e;(null!==(e=n.getState().nextTree)&&void 0!==e?e:n.getState().currentTree).atomValues.has(t)||oi(n,h)};i.contents.finally(e)}const u=null!==(l=e.effects)&&void 0!==l?l:e.effects_UNSTABLE;if(null!=u){let e=Qa,o=!0,l=!1,y=null;function f(a){if(o&&a.key===t){const t=e;return t instanceof Za?p(n,r):c(t)?$a(t.then(e=>e instanceof Za?i.toPromise():e)):Ka(t)}return ri(n,a)}function g(e){return f(e).toPromise()}function m(r){var a;const i=Xa(n,null!==(a=n.getState().nextTree)&&void 0!==a?a:n.getState().currentTree,r.key);return!o||r.key!==t||e instanceof Za?i:{...i,isSet:!0,loadable:f(r)}}const w=t=>r=>{if(o){const n=f(h),o="hasValue"===n.state?n.contents:Qa;e="function"==typeof r?r(o):r,c(e)&&(e=e.then(e=>(y={effect:t,value:e},e)))}else{if(c(r))throw s("Setting atoms to async values is not implemented.");"function"!=typeof r&&(y={effect:t,value:ci(r)}),ai(n,h,"function"==typeof r?e=>{const n=ci(r(e));return y={effect:t,value:n},n}:ci(r))}},_=e=>()=>w(e)(Qa),x=e=>r=>{var o;const{release:a}=n.subscribeToTransactions(n=>{var o;let{currentTree:a,previousTree:s}=n.getState();s||(G("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),s=a);const c=null!==(o=a.atomValues.get(t))&&void 0!==o?o:i;if("hasValue"===c.state){var l,u,d,f;const n=c.contents,o=null!==(l=s.atomValues.get(t))&&void 0!==l?l:i,p="hasValue"===o.state?o.contents:Qa;(null===(u=y)||void 0===u?void 0:u.effect)!==e||(null===(d=y)||void 0===d?void 0:d.value)!==n?r(n,p,!a.atomValues.has(t)):(null===(f=y)||void 0===f?void 0:f.effect)===e&&(y=null)}},t);d.set(n,[...null!==(o=d.get(n))&&void 0!==o?o:[],a])};for(const t of u)try{const e=t({node:h,storeID:n.storeID,parentStoreID_UNSTABLE:n.parentStoreID,trigger:a,setSelf:w(t),resetSelf:_(t),onSet:x(t),getPromise:g,getLoadable:f,getInfo_UNSTABLE:m});var b;if(null!=e)d.set(n,[...null!==(b=d.get(n))&&void 0!==b?b:[],e])}catch(t){e=t,l=!0}if(o=!1,!(e instanceof Za)){var v;const o=l?Wa(e):c(e)?$a(function(e,n){const r=n.then(n=>{var o,a;return(null===(a=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===a?void 0:a.contents)===r&&ai(e,h,n),n}).catch(n=>{var o,a;throw(null===(a=(null!==(o=e.getState().nextTree)&&void 0!==o?o:e.getState().currentTree).atomValues.get(t))||void 0===a?void 0:a.contents)===r&&ii(e,h,Wa(n)),n});return r}(n,e)):Ka(ci(e));o.contents,r.atomValues.set(t,o),null===(v=n.getState().nextTree)||void 0===v||v.atomValues.set(t,o)}}return()=>{var e;o--,null===(e=d.get(n))||void 0===e||e.forEach(e=>e()),d.delete(n)}},invalidate:function(){u=void 0},shouldDeleteConfigOnRelease:function(){return void 0!==Ja(t)&&o<=0},dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return h}function ui(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return ni(n)?function(e){const t=ui({...e,default:Qa,persistence_UNSTABLE:void 0===e.persistence_UNSTABLE?void 0:{...e.persistence_UNSTABLE,validator:t=>t instanceof Za?t:l(e.persistence_UNSTABLE).validator(t,Qa)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=qa({key:`${e.key}__withFallback`,get:({get:n})=>{const r=n(t);return r instanceof Za?e.default:r},set:({set:e},n)=>e(t,n),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return ti(n.key,Ja(e.key)),n}({...t,default:n}):li({...t,default:n})}ui.value=e=>new Ya(e);var di=ui;var fi=class{constructor(e){var t;u(this,"_map",void 0),u(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=null!==(t=null==e?void 0:e.mapKey)&&void 0!==t?t:e=>e}size(){return this._map.size}has(e){return this._map.has(this._keyMapper(e))}get(e){return this._map.get(this._keyMapper(e))}set(e,t){this._map.set(this._keyMapper(e),t)}delete(e){this._map.delete(this._keyMapper(e))}clear(){this._map.clear()}},pi=Object.freeze({__proto__:null,MapCache:fi});const{LRUCache:hi}=la,{MapCache:gi}=pi,mi={equality:"reference",eviction:"none",maxSize:1/0};var bi=function({equality:e=mi.equality,eviction:t=mi.eviction,maxSize:n=mi.maxSize}=mi){return function(e,t,n){switch(e){case"keep-all":return new gi({mapKey:n});case"lru":return new hi({mapKey:n,maxSize:l(t)});case"most-recent":return new hi({mapKey:n,maxSize:1})}throw s(`Unrecognized eviction policy ${e}`)}(t,n,function(e){switch(e){case"reference":return e=>e;case"value":return e=>pa(e)}throw s(`Unrecognized equality policy ${e}`)}(e))};const{setConfigDeletionHandler:vi}=ue;var yi=function(e){var t,n;const r=bi({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n,o;const a=r.get(t);if(null!=a)return a;const{cachePolicyForParams_UNSTABLE:i,...s}=e,c="default"in e?e.default:new Promise(()=>{}),l=di({...s,key:`${e.key}__${null!==(n=pa(t))&&void 0!==n?n:"void"}`,default:"function"==typeof c?c(t):c,retainedBy_UNSTABLE:"function"==typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE,effects:"function"==typeof e.effects?e.effects(t):"function"==typeof e.effects_UNSTABLE?e.effects_UNSTABLE(t):null!==(o=e.effects)&&void 0!==o?o:e.effects_UNSTABLE});return r.set(t,l),vi(l.key,()=>{r.delete(t)}),l}};const{setConfigDeletionHandler:wi}=ue;let _i=0;var xi=function(e){var t,n;const r=bi({equality:null!==(t=null===(n=e.cachePolicyForParams_UNSTABLE)||void 0===n?void 0:n.equality)&&void 0!==t?t:"value",eviction:"keep-all"});return t=>{var n;let o;try{o=r.get(t)}catch(t){throw s(`Problem with cache lookup for selector ${e.key}: ${t.message}`)}if(null!=o)return o;const a=`${e.key}__selectorFamily/${null!==(n=pa(t,{allowFunctions:!0}))&&void 0!==n?n:"void"}/${_i++}`,i=n=>e.get(t)(n),c=e.cachePolicy_UNSTABLE,l="function"==typeof e.retainedBy_UNSTABLE?e.retainedBy_UNSTABLE(t):e.retainedBy_UNSTABLE;let u;if(null!=e.set){const n=e.set;u=qa({key:a,get:i,set:(e,r)=>n(t)(e,r),cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l})}else u=qa({key:a,get:i,cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:l});return r.set(t,u),wi(u.key,()=>{r.delete(t)}),u}};const Oi=xi({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});var ki=function(e){return Oi(e)};const Ei=xi({key:"__error",get:e=>()=>{throw s(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});var Si=function(e){return Ei(e)};var Ai=function(e){return e};const{loadableWithError:Ci,loadableWithPromise:ji,loadableWithValue:Li}=L;function Pi(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[o,a]of t.entries())try{n[o]=e(a)}catch(e){r[o]=e}return[n,r]}function Ti(e){return null!=e&&!c(e)}function Mi(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function Ii(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((e,n,r)=>({...e,[n]:t[r]}),{})}function Ri(e,t,n){return Ii(e,n.map((e,n)=>null==e?Li(t[n]):c(e)?ji(e):Ci(e)))}var Ni={waitForNone:xi({key:"__waitForNone",get:e=>({get:t})=>{const n=Mi(e),[r,o]=Pi(t,n);return Ri(e,r,o)},dangerouslyAllowMutability:!0}),waitForAny:xi({key:"__waitForAny",get:e=>({get:t})=>{const n=Mi(e),[r,o]=Pi(t,n);return o.some(e=>!c(e))?Ri(e,r,o):new Promise(t=>{for(const[n,a]of o.entries())c(a)&&a.then(a=>{r[n]=a,o[n]=void 0,t(Ri(e,r,o))}).catch(a=>{o[n]=a,t(Ri(e,r,o))})})},dangerouslyAllowMutability:!0}),waitForAll:xi({key:"__waitForAll",get:e=>({get:t})=>{const n=Mi(e),[r,o]=Pi(t,n);if(o.every(e=>null==e))return Ii(e,r);const a=o.find(Ti);if(null!=a)throw a;return Promise.all(o).then(t=>{return Ii(e,(n=r,t.map((e,t)=>void 0===e?n[t]:e)));var n})},dangerouslyAllowMutability:!0}),waitForAllSettled:xi({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Mi(e),[r,o]=Pi(t,n);return o.every(e=>!c(e))?Ri(e,r,o):Promise.all(o.map((e,t)=>c(e)?e.then(e=>{r[t]=e,o[t]=void 0}).catch(e=>{r[t]=void 0,o[t]=e}):null)).then(()=>Ri(e,r,o))},dangerouslyAllowMutability:!0}),noWait:xi({key:"__noWait",get:e=>({get:t})=>{try{return qa.value(Li(t(e)))}catch(e){return qa.value(c(e)?ji(e):Ci(e))}},dangerouslyAllowMutability:!0})};const{RecoilLoadable:Di}=L,{DefaultValue:Hi}=ue,{RecoilRoot:Gi,useRecoilStoreID:Fi}=er,{isRecoilValue:Bi}=J,{retentionZone:zi}=Te,{freshSnapshot:Ui}=bn,{useRecoilState:qi,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Vi,useRecoilStateLoadable:Wi,useRecoilValue:$i,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ki,useRecoilValueLoadable:Yi,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Xi,useResetRecoilState:Qi,useSetRecoilState:Zi}=Vr,{useGotoRecoilSnapshot:Ji,useRecoilSnapshot:es,useRecoilTransactionObserver:ts}=po,{useRecoilCallback:ns}=$o,{noWait:rs,waitForAll:os,waitForAllSettled:as,waitForAny:is,waitForNone:ss}=Ni;var cs={DefaultValue:Hi,isRecoilValue:Bi,RecoilLoadable:Di,RecoilEnv:M,RecoilRoot:Gi,useRecoilStoreID:Fi,useRecoilBridgeAcrossReactRoots_UNSTABLE:_o,atom:di,selector:qa,atomFamily:yi,selectorFamily:xi,constSelector:ki,errorSelector:Si,readOnlySelector:Ai,noWait:rs,waitForNone:ss,waitForAny:is,waitForAll:os,waitForAllSettled:as,useRecoilValue:$i,useRecoilValueLoadable:Yi,useRecoilState:qi,useRecoilStateLoadable:Wi,useSetRecoilState:Zi,useResetRecoilState:Qi,useGetRecoilValueInfo_UNSTABLE:mo,useRecoilRefresher_UNSTABLE:Qo,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Xi,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Ki,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Vi,useRecoilCallback:ns,useRecoilTransaction_UNSTABLE:ta,useGotoRecoilSnapshot:Ji,useRecoilSnapshot:es,useRecoilTransactionObserver_UNSTABLE:ts,snapshot_UNSTABLE:Ui,useRetain:fr,retentionZone:zi},ls=cs.RecoilRoot,us=cs.atom,ds=cs.useRecoilValue,fs=cs.useRecoilState,ps=cs.useSetRecoilState}).call(this,n(143))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var r=n(33);function o(e){Object(r.a)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},function(e,t,n){"use strict";n(1407);var r=n(1408),o=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1409)),a=n(1410),i=n(1411),s=n(1412),c=(n(1413),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(511)),l=n(1415),u=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(635)),d=n(767),f=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1416)),p=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1421)),h=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(768)),g=n(1424),m=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1425));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;n.d(t,"g",(function(){return r.a})),n.d(t,"f",(function(){return o.a})),n.d(t,"e",(function(){return a.a})),n.d(t,"d",(function(){return i.a})),n.d(t,"c",(function(){return s.a})),n.d(t,"h",(function(){return c.a})),n.d(t,"m",(function(){return l.a})),n.d(t,"k",(function(){return u.a})),n.d(t,"l",(function(){return d.a})),n.d(t,"b",(function(){return f.a})),n.d(t,"n",(function(){return p.a})),n.d(t,"a",(function(){return h.a})),n.d(t,"i",(function(){return g.a})),n.d(t,"j",(function(){return m.a}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},,function(e,t,n){"use strict";var r=n(1085),o=n(465);var a=n(417);function i({props:e,name:t}){return function({props:e,name:t,defaultTheme:n}){const a=Object(o.a)(n);return Object(r.a)({theme:a,name:t,props:e})}({props:e,name:t,defaultTheme:a.a})}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t>> line 116",r.error),u(u({},r),{},{data:(null==r?void 0:r.data)&&(null==r?void 0:null===(e=r.data)||void 0===e?void 0:e.client)})};m(v,"useApolloClient{client}\nuseCallback{onCompleted}\nuseQuery{result}",(function(){return[a.useApolloClient,a.useQuery]})),(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(h.register(b,"GET_CLIENT","/__w/1271/s/packages/gameplan/src/common/graphql/client.ts"),h.register(v,"useClient","/__w/1271/s/packages/gameplan/src/common/graphql/client.ts")),(g="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&g(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return f}));var r,o=n(92);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var s,c,l=function(){return{id:Object(o.b)(),clientId:Object(o.b)(),clientReviewId:Object(o.e)()}},u=function(){return{variables:l(),fetchPolicy:"cache-first",errorPolicy:"all",notifyOnNetworkStatusChange:!0}},d=function(e){return function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&s(e);var _="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},x=Object(c.gql)(r||(r=w(["\n query ClientPerformance($clientId: ID!, $period: PerformanceRange!) {\n clientPerformance(clientId: $clientId, period: $period)\n }\n"]))),O=Object(c.gql)(o||(o=w(["\n query ManagedAccountPerformance($clientId: ID!, $accountId: ID!, $period: PerformanceRange!) {\n managedAccountPerformance(clientId: $clientId, accountId: $accountId, period: $period)\n }\n"]))),k=Object(c.gql)(a||(a=w(["\n query ManagedAccountPerformance($clientId: ID!, $sleeveId: ID!, $period: PerformanceRange!) {\n managedSleevePerformance(clientId: $clientId, sleeveId: $sleeveId, period: $period)\n }\n"]))),E=Object(c.gql)(i||(i=w(["\n query PerformanceTimeframe {\n performanceTimeframe @client\n }\n"]))),S="client",A=function(e,t,n,r,o){var a=Object(c.useApolloClient)(),i=Object(l.useContext)(h.a),s=Object(l.useContext)(h.b).errors.includes(e),d=Object(p.b)(a),f=d.variables,m=y(d,g),v=Object(l.useCallback)((function(){s||i({type:u.t.FlagPerformanceError,payload:e})}),[s,i,e]),w=b(b({},f),{},{period:t});r&&(w[r]=e);var _=Object(c.useQuery)(n,b(b({},m),{},{errorPolicy:"none",onError:v,skip:s,variables:w})),x=_.data;return b(b({},_),{},{error:s,data:x?x[o]:null})};_(A,"useApolloClient{client}\nuseContext{dispatch}\nuseContext{state}\nuseCallback{onError}\nuseQuery{result}",(function(){return[c.useApolloClient,c.useQuery]}));var C=function(e,t,n,r,o){var a=Object(c.useApolloClient)();return e.map((function(e){var i,s=e.id,c=b(b({},Object(p.c)()),{},(v(i={},r,s),v(i,"period",t),i));try{var l=a.readQuery({query:n,variables:c});if(l)return b(b({},e),{},{performance:l[o]})}catch(e){}return b(b({},e),{},{performance:void 0})}))};_(C,"useApolloClient{client}",(function(){return[c.useApolloClient]}));var j=function(){var e=Object(c.useQuery)(E).data;return null==e?void 0:e.performanceTimeframe};_(j,"useQuery{{ data }}",(function(){return[c.useQuery]}));var L=function(e){var t=A(S,e,x,null,"clientPerformance"),n=Object(l.useCallback)((function(){t.refetch(),Object(f.a)("Clicked retry client performance","GPRTRYPERF")}),[t]);return b(b({},t),{},{refetch:n})};_(L,"useManagedPerformance{result}\nuseCallback{refetch}",(function(){return[A]}));var P=function(e,t){var n=A(e,t,O,"accountId","managedAccountPerformance"),r=Object(l.useCallback)((function(){n.refetch(),Object(f.a)("Clicked retry account performance","GPRTRYPERF")}),[n]);return b(b({},n),{},{refetch:r})};_(P,"useManagedPerformance{result}\nuseCallback{refetch}",(function(){return[A]}));var T=function(e,t){var n=A(e,t,k,"sleeveId","managedSleevePerformance"),r=Object(l.useCallback)((function(){n.refetch(),Object(f.a)("Clicked retry sleeve performance","GPRTRYPERF")}),[n]);return b(b({},n),{},{refetch:r})};_(T,"useManagedPerformance{result}\nuseCallback{refetch}",(function(){return[A]}));var M=function(e){var t=Object(d.a)().data,n=[];return t&&(n=t.accounts),C(n,e,O,"accountId","managedAccountPerformance")};_(M,"useManagedAccounts{{ data }}\nuseCachedPerformances{}",(function(){return[d.a,C]}));var I,R,N=function(e,t){var n=Object(d.a)().data,r=[];if(n){var o=n.accounts.find((function(t){return t.id===e}));o&&(r=o.sleeves)}return C(r,t,k,"sleeveId","managedSleevePerformance")};_(N,"useManagedAccounts{{ data }}\nuseCachedPerformances{}",(function(){return[d.a,C]})),(I="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(I.register(x,"GET_CLIENT_PERFORMANCE","/__w/1271/s/packages/gameplan/src/common/graphql/performance.ts"),I.register(O,"GET_MANAGED_ACCOUNT_PERFORMANCE","/__w/1271/s/packages/gameplan/src/common/graphql/performance.ts"),I.register(k,"GET_MANAGED_SLEEVE_PERFORMANCE","/__w/1271/s/packages/gameplan/src/common/graphql/performance.ts"),I.register(E,"GET_PERFORMANCE_TIMEFRAME","/__w/1271/s/packages/gameplan/src/common/graphql/performance.ts"),I.register(S,"CLIENT_PERFORMANCE_ERROR_ID","/__w/1271/s/packages/gameplan/src/common/graphql/performance.ts"),I.register(A,"useManagedPerformance","/__w/1271/s/packages/gameplan/src/common/graphql/performance.ts"),I.register(C,"useCachedPerformances","/__w/1271/s/packages/gameplan/src/common/graphql/performance.ts"),I.register(j,"usePerformanceTimeframe","/__w/1271/s/packages/gameplan/src/common/graphql/performance.ts"),I.register(L,"useClientPerformance","/__w/1271/s/packages/gameplan/src/common/graphql/performance.ts"),I.register(P,"useManagedAccountPerformance","/__w/1271/s/packages/gameplan/src/common/graphql/performance.ts"),I.register(T,"useManagedSleevePerformance","/__w/1271/s/packages/gameplan/src/common/graphql/performance.ts"),I.register(M,"usePerformantAccounts","/__w/1271/s/packages/gameplan/src/common/graphql/performance.ts"),I.register(N,"usePerformantSleeves","/__w/1271/s/packages/gameplan/src/common/graphql/performance.ts")),(R="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&R(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n(212);var r=n(90),o=n.n(r),a=(n(354),n(0)),i=n.n(a),s=(n(833),n(834)),c=n.n(s),l=n(835),u=n.n(l);var d,f,p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},h=i.a.createContext();function g(){return f}function m(){return p}var b=function(){function e(){c()(this,e),this.usedNamespaces={}}return u()(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function v(){return d}function y(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return _("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],o=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!t.services.backendConnector.backend||!(!i(r,e)||o&&!i(a,e))))}var k=n(292),E=n.n(k);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=Object(a.useContext)(h),o=g()&&r||{},i=o.i18n,s=o.defaultNS,c=n||i||v();if(c&&!c.reportNamespaces&&(c.reportNamespaces=new b),!c){_("You will need pass in an i18next instance by using initReactI18next");var l=[function(e){return e},{},!1];return l.t=function(e){return e},l.i18n={},l.ready=!1,l}var u=A({},m(),{},c.options.react,{},t),d=u.useSuspense,f=e||s||c.options&&c.options.defaultNS;f="string"==typeof f?[f]:f||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(f);var p=(c.isInitialized||c.initializedStoreOnce)&&f.every((function(e){return O(e,c,u)}));function y(){return{t:c.getFixedT(null,"fallback"===u.nsMode?f:f[0])}}var w=Object(a.useState)(y()),k=E()(w,2),S=k[0],C=k[1];Object(a.useEffect)((function(){var e=!0,t=u.bindI18n,n=u.bindI18nStore;function r(){e&&C(y())}return p||d||x(c,f,(function(){e&&C(y())})),t&&c&&c.on(t,r),n&&c&&c.store.on(n,r),function(){e=!1,t&&c&&t.split(" ").forEach((function(e){return c.off(e,r)})),n&&c&&n.split(" ").forEach((function(e){return c.store.off(e,r)}))}}),[f.join()]);var j=[S.t,c,p];if(j.t=S.t,j.i18n=c,j.ready=p,p)return j;if(!p&&!d)return j;throw new Promise((function(e){x(c,f,(function(){C(y()),e()}))}))}n(319);n.d(t,"a",(function(){return C}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n(23),o=Object.setPrototypeOf,a=void 0===o?function(e,t){return e.__proto__=t,e}:o,i=function(e){function t(n){void 0===n&&(n="Invariant Violation");var r=e.call(this,"number"==typeof n?"Invariant Violation: "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name="Invariant Violation",a(r,t.prototype),r}return Object(r.c)(t,e),t}(Error);function s(e,t){if(!e)throw new i(t)}function c(e){return function(){return console[e].apply(console,arguments)}}!function(e){e.warn=c("warn"),e.error=c("error")}(s||(s={}));var l={env:{}};if("object"==typeof e)l=e;else try{Function("stub","process = stub")(l)}catch(e){}}).call(this,n(143))},function(e,t,n){"use strict";(function(e){var r;n.d(t,"h",(function(){return o})),n.d(t,"j",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"i",(function(){return i})),n.d(t,"b",(function(){return g})),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var o,a;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;!function(e){e.Client="client",e.Advisor="advisor",e.Developer="developer"}(o||(o={})),function(e){e.Client="ClientRole",e.Advisor="AdvisorRole"}(a||(a={}));var i,s="callback",c="us-east-2",l="token id_token",u="code",d="_",f="Signature not yet current";!function(e){e.InvalidEmail="InvalidEmail",e.ClockDrift="ClockDrift"}(i||(i={}));var p,h,g="auth_ui";(p="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(p.register(s,"CALLBACK_PATHNAME","/__w/1271/s/packages/auth-ui/src/constants/auth-constants.ts"),p.register(c,"LOGIN_REGION","/__w/1271/s/packages/auth-ui/src/constants/auth-constants.ts"),p.register(l,"ADVISOR_OAUTH_RESPONSE_TYPE","/__w/1271/s/packages/auth-ui/src/constants/auth-constants.ts"),p.register(u,"OAUTH_RESPONSE_TYPE","/__w/1271/s/packages/auth-ui/src/constants/auth-constants.ts"),p.register(d,"NONCE_PATH_SEPARATOR","/__w/1271/s/packages/auth-ui/src/constants/auth-constants.ts"),p.register(f,"CLOCK_DRIFT_ERROR_TEXT","/__w/1271/s/packages/auth-ui/src/constants/auth-constants.ts"),p.register(g,"AUTH_UI_APPLICATION_ID","/__w/1271/s/packages/auth-ui/src/constants/auth-constants.ts")),(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&h(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(1108),o=n(164);function a(e,t){return t&&"string"==typeof t?t.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e):null}function i(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:a(e,n)||r,t&&(o=t(o)),o}t.a=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:c}=e,l=e=>{if(null==e[t])return null;const l=e[t],u=a(e.theme,s)||{};return Object(o.b)(e,l,e=>{let o=i(u,c,e);return e===o&&"string"==typeof e&&(o=i(u,c,`${t}${"default"===e?"":Object(r.a)(e)}`,e)),!1===n?o:{[n]:o}})};return l.propTypes={},l.filterProps=[t],l}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(1108),o=n(199);function a(e,t){return t&&"string"==typeof t?t.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e):null}function i(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:a(e,n)||r,t&&(o=t(o)),o}t.a=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:c}=e,l=e=>{if(null==e[t])return null;const l=e[t],u=a(e.theme,s)||{};return Object(o.b)(e,l,e=>{let o=i(u,c,e);return e===o&&"string"==typeof e&&(o=i(u,c,`${t}${"default"===e?"":Object(r.a)(e)}`,e)),!1===n?o:{[n]:o}})};return l.propTypes={},l.filterProps=[t],l}},function(e,t,n){"use strict";var r=n(48),o=n(37),a=(n(339),n(99)),i=(n(773),n(1432),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(29));n(377),n(345),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;n.d(t,"i",(function(){return r.d})),n.d(t,"f",(function(){return o.f})),n.d(t,"e",(function(){return o.e})),n.d(t,"d",(function(){return o.d})),n.d(t,"c",(function(){return o.c})),n.d(t,"g",(function(){return o.h})),n.d(t,"j",(function(){return o.m})),n.d(t,"a",(function(){return o.a})),n.d(t,"b",(function(){return a.a})),n.d(t,"l",(function(){return a.f})),n.d(t,"k",(function(){return i.d})),n.d(t,"h",(function(){return i.c}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){var r=n(117);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){"use strict";(function(e){n.d(t,"f",(function(){return k})),n.d(t,"h",(function(){return E})),n.d(t,"a",(function(){return S})),n.d(t,"k",(function(){return A})),n.d(t,"i",(function(){return C})),n.d(t,"j",(function(){return j})),n.d(t,"l",(function(){return L})),n.d(t,"b",(function(){return P})),n.d(t,"e",(function(){return T})),n.d(t,"d",(function(){return M})),n.d(t,"c",(function(){return I})),n.d(t,"g",(function(){return R}));var r,o,a,i,s,c,l,u,d,f,p,h,g,m=n(56),b=n(21),v=n(345),y=n(1),w=n.n(y);function _(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(g="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&g(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var x,O,k=w()(m.k).attrs((function(){return{fontSize:"stepUp2",fontWeight:"bold",textAlign:"center",color:"darkContrast"}}))(r||(r=_(["\n margin: ",";\n\n @media only screen and (max-width: ",") {\n margin: 0 10%;\n }\n"])),(function(e){var t=e.theme;return"0 ".concat(t.space[7])}),v.a.mobile.max),E=w()(b.Image)(o||(o=_(["\n height: ",";\n margin-bottom: ",";\n"])),(function(e){return e.src?"3.125rem":"auto"}),(function(e){var t=e.theme;return e.src?t.space[5]:"auto"})),S=w()(b.Flex)(a||(a=_(["\n flex-direction: column;\n position: relative;\n max-width: 600px;\n background-color: ",";\n border-radius: ",";\n box-shadow: ",";\n margin: ",";\n\n @media only screen and (max-width: ",") {\n width: 100%;\n max-width: none;\n margin: 0;\n border-radius: 0;\n }\n"])),(function(e){return e.theme.colors.lightContrast}),(function(e){return e.theme.radii.normal}),(function(e){return e.theme.shadows.normal}),(function(e){var t=e.theme;return"".concat(t.space[6]," ").concat(t.space[7])}),v.a.mobile.max),A=w()(b.Box)(i||(i=_(["\n width: 100%;\n text-align: center;\n padding: ",";\n"])),(function(e){var t=e.theme;return"".concat(t.space[6]," 0 ").concat(t.space[4]," 0")})),C=w()(b.Flex)(s||(s=_(["\n flex-direction: column;\n flex-grow: 1;\n justify-content: center;\n width: 100%;\n padding: ",";\n\n @media only screen and (max-width: ",") {\n padding: ",";\n }\n"])),(function(e){var t=e.theme;return"0 ".concat(t.space[7]," ").concat(t.space[5])}),v.a.mobile.max,(function(e){var t=e.theme;return"0 ".concat(t.space[5]," ").concat(t.space[5])})),j=w()(b.Box)(c||(c=_(["\n width: 100%;\n font-size: ",";\n color: ",";\n border-top: ",";\n padding: ",";\n"])),(function(e){return e.theme.fontSizes.stepDown1}),(function(e){return e.theme.colors.darkContrast}),(function(e){var t=e.theme;return"1px solid ".concat(t.colors.mediumNonEssential)}),(function(e){var t=e.theme;return"".concat(t.space[5]," ").concat(t.space[7])})),L=w()(b.Box).attrs((function(){return{as:"button",type:"button"}}))(l||(l=_(["\n color: ",";\n font-weight: ",";\n font-size: ",";\n background-color: transparent;\n border: none;\n text-decoration: none;\n cursor: pointer;\n\n &:hover,\n &:focus {\n text-decoration-line: underline;\n }\n"])),(function(e){return e.theme.colors.brandPrimary}),(function(e){return e.theme.fontWeights.medium}),(function(e){return e.theme.fontSizes.stepDown1})),P=w()(b.Box).attrs({fontSize:"stepUp1"})(u||(u=_(["\n text-align: center;\n"]))),T=w()(b.Box)(d||(d=_(["\n width: 100%;\n min-height: 3rem;\n"]))),M=w()(b.Flex)(f||(f=_(["\n border-radius: ",";\n background-color: ",";\n flex-direction: row;\n align-items: center;\n margin-bottom: ",";\n"])),(function(e){return e.theme.radii.normal}),(function(e){return e.theme.colors.lightRegular}),(function(e){return e.theme.space[2]})),I=w()(b.Flex)(p||(p=_(["\n background-color: ",";\n border-radius: ",";\n justify-content: center;\n align-items: center;\n align-self: stretch;\n padding: ",";\n margin-right: ",";\n"])),(function(e){return e.theme.colors.negative}),(function(e){var t=e.theme;return"".concat(t.radii.normal," 0 0 ").concat(t.radii.normal)}),(function(e){return e.theme.space[3]}),(function(e){return e.theme.space[2]})),R=w()(b.Flex)(h||(h=_(["\n position: absolute;\n width: 100%;\n height: 100%;\n background-color: ",";\n z-index: ",";\n"])),(function(e){return e.theme.colors.loading}),(function(e){return e.theme.zIndices.above}));(x="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(x.register(k,"Heading","/__w/1271/s/packages/auth-ui/src/components/client-auth/auth.styles.tsx"),x.register(E,"Logo","/__w/1271/s/packages/auth-ui/src/components/client-auth/auth.styles.tsx"),x.register(S,"AuthSection","/__w/1271/s/packages/auth-ui/src/components/client-auth/auth.styles.tsx"),x.register(A,"SectionHeader","/__w/1271/s/packages/auth-ui/src/components/client-auth/auth.styles.tsx"),x.register(C,"SectionBody","/__w/1271/s/packages/auth-ui/src/components/client-auth/auth.styles.tsx"),x.register(j,"SectionFooter","/__w/1271/s/packages/auth-ui/src/components/client-auth/auth.styles.tsx"),x.register(L,"SigninLink","/__w/1271/s/packages/auth-ui/src/components/client-auth/auth.styles.tsx"),x.register(P,"Description","/__w/1271/s/packages/auth-ui/src/components/client-auth/auth.styles.tsx"),x.register(T,"FormErrorContainer","/__w/1271/s/packages/auth-ui/src/components/client-auth/auth.styles.tsx"),x.register(M,"FormError","/__w/1271/s/packages/auth-ui/src/components/client-auth/auth.styles.tsx"),x.register(I,"ErrorIcon","/__w/1271/s/packages/auth-ui/src/components/client-auth/auth.styles.tsx"),x.register(R,"LoaderOverlay","/__w/1271/s/packages/auth-ui/src/components/client-auth/auth.styles.tsx")),(O="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&O(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"l",(function(){return f})),n.d(t,"k",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"j",(function(){return g})),n.d(t,"a",(function(){return m})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"i",(function(){return w})),n.d(t,"d",(function(){return _}));var r,o=n(403),a=n(189),i=n(53),s=n(156);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var c,l,u=Object(o.a)(!1),d={active:!1,phoneNumber:"",countryCode:"1",nonce:"",email:""},f=Object(o.a)(d),p=Object(o.a)(null),h={active:!1,email:"",code:""},g=Object(o.a)(h),m="",b=Object(o.a)(m),v=Object(o.a)(location.pathname.includes(i.c)),y=Object(a.b)(Object(o.a)(sessionStorage.getItem(s.a.ClientAccessId)),sessionStorage,s.a.ClientAccessId),w=Object(a.b)(Object(o.a)(localStorage.getItem(s.a.LoginPersona)||i.h.Client),localStorage,s.a.LoginPersona),_=Object(o.a)(null);(c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(c.register(u,"loggedInVar","/__w/1271/s/packages/auth-ui/src/graphql/vars.ts"),c.register(d,"DEFAULT_SIGNUP_VAR","/__w/1271/s/packages/auth-ui/src/graphql/vars.ts"),c.register(f,"signUpVar","/__w/1271/s/packages/auth-ui/src/graphql/vars.ts"),c.register(p,"sessionErrorVar","/__w/1271/s/packages/auth-ui/src/graphql/vars.ts"),c.register(h,"DEFAULT_RESET_PASSWORD_VAR","/__w/1271/s/packages/auth-ui/src/graphql/vars.ts"),c.register(g,"resetPasswordVar","/__w/1271/s/packages/auth-ui/src/graphql/vars.ts"),c.register(m,"DEFAULT_NONCE_VAR","/__w/1271/s/packages/auth-ui/src/graphql/vars.ts"),c.register(b,"nonceVar","/__w/1271/s/packages/auth-ui/src/graphql/vars.ts"),c.register(v,"oauthFlowCompleteVar","/__w/1271/s/packages/auth-ui/src/graphql/vars.ts"),c.register(y,"authorizedClientIdVar","/__w/1271/s/packages/auth-ui/src/graphql/vars.ts"),c.register(w,"personaVar","/__w/1271/s/packages/auth-ui/src/graphql/vars.ts"),c.register(_,"authorizedAdvisorIdVar","/__w/1271/s/packages/auth-ui/src/graphql/vars.ts")),(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&l(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return d})),n.d(t,"i",(function(){return o})),n.d(t,"j",(function(){return u})),n.d(t,"k",(function(){return l})),n.d(t,"l",(function(){return c})),n.d(t,"m",(function(){return g})),n.d(t,"n",(function(){return k})),n.d(t,"o",(function(){return x})),n.d(t,"p",(function(){return m})),n.d(t,"q",(function(){return _})),n.d(t,"r",(function(){return s}));const r="undefined"==typeof window||"Deno"in window;function o(){}function a(e,t){return"function"==typeof e?e(t):e}function i(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t,n){return w(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function l(e,t,n){return w(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function u(e,t,n){return w(e)?[{...t,queryKey:e},n]:[e||{},t]}function d(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:a,queryKey:i,stale:s}=e;if(w(i))if(r){if(t.queryHash!==p(i,t.options))return!1}else if(!g(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((void 0===o||o===t.state.fetchStatus)&&!(a&&!a(t)))}function f(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:a}=e;if(w(a)){if(!t.options.mutationKey)return!1;if(n){if(h(t.options.mutationKey)!==h(a))return!1}else if(!g(t.options.mutationKey,a))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(o&&!o(t))}function p(e,t){return((null==t?void 0:t.queryKeyHashFn)||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>v(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function g(e,t){return function e(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(t&&n&&"object"==typeof t&&"object"==typeof n)return!Object.keys(n).some(r=>!e(t[r],n[r]));return!1}(e,t)}function m(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function b(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function v(e){if(!y(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!y(n)&&!!n.hasOwnProperty("isPrototypeOf")}function y(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return Array.isArray(e)}function _(e){return new Promise(t=>{setTimeout(t,e)})}function x(e){_(0).then(e)}function O(){if("function"==typeof AbortController)return new AbortController}function k(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;const r=b(t)&&b(n);if(r||v(t)&&v(n)){const o=r?t.length:Object.keys(t).length,a=r?n:Object.keys(n),i=a.length,s=r?[]:{};let c=0;for(let o=0;o>>16},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"g",{get:function(){return this._hex>>8&255},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return 255&this._hex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toCSS",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return void 0===e&&(e=1),"rgba("+this.r+", "+this.g+", "+this.b+", "+e+")"}}),Object.defineProperty(e.prototype,"toCSSHex",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"#"+o.B(this.r.toString(16),2)+o.B(this.g.toString(16),2)+o.B(this.b.toString(16),2)}}),Object.defineProperty(e.prototype,"toHSL",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return void 0===e&&(e=1),o.E({r:this.r,g:this.g,b:this.b,a:e})}}),Object.defineProperty(e,"fromHSL",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){var r=o.v({h:e,s:t,l:n});return this.fromRGB(r.r,r.g,r.b)}}),Object.defineProperty(e.prototype,"toString",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.toCSSHex()}}),Object.defineProperty(e,"fromHex",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return new e(t)}}),Object.defineProperty(e,"fromRGB",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r){return new e((0|r)+(n<<8)+(t<<16))}}),Object.defineProperty(e,"fromString",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return new e(i(t))}}),Object.defineProperty(e,"fromCSS",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return new e(function(e){var t=(e=e.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(t)t.push("1");else if(!(t=e.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i)))return 0;for(var n="",r=1;r<=3;r++){var o=parseInt(t[r]).toString(16);1==o.length&&(o="0"+o),n+=o}return i(n)}(t))}}),Object.defineProperty(e,"fromAny",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(a.g(t)){if("#"==t[0])return e.fromString(t);if("rgb"==t.substr(0,3))return e.fromCSS(t)}else{if(a.e(t))return e.fromHex(t);if(t instanceof e)return e.fromHex(t.hex)}throw new Error("Unknown color syntax: "+t)}}),Object.defineProperty(e,"alternative",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){var r=o.b({r:e.r,g:e.g,b:e.b},t?{r:t.r,g:t.g,b:t.b}:void 0,n?{r:n.r,g:n.g,b:n.b}:void 0);return this.fromRGB(r.r,r.g,r.b)}}),Object.defineProperty(e,"interpolate",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,o,a){if(void 0===a&&(a="rgb"),"hsl"==a){var i=n.toHSL(),s=o.toHSL();return e.fromHSL(Object(r.c)(t,i.h,s.h),Object(r.c)(t,i.s,s.s),Object(r.c)(t,i.l,s.l))}return e.fromRGB(Object(r.c)(t,n.r,o.r),Object(r.c)(t,n.g,o.g),Object(r.c)(t,n.b,o.b))}}),Object.defineProperty(e,"lighten",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){var r=o.y({r:t.r,g:t.g,b:t.b},n);return e.fromRGB(r.r,r.g,r.b)}}),Object.defineProperty(e,"brighten",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){var r=o.d({r:t.r,g:t.g,b:t.b},n);return e.fromRGB(r.r,r.g,r.b)}}),Object.defineProperty(e,"saturate",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){var r=o.G({r:t.r,g:t.g,b:t.b},n);return e.fromRGB(r.r,r.g,r.b)}}),e}()},function(e,t,n){"use strict";(function(e){n.d(t,"u",(function(){return q})),n.d(t,"w",(function(){return V})),n.d(t,"A",(function(){return K})),n.d(t,"g",(function(){return Y})),n.d(t,"v",(function(){return X})),n.d(t,"n",(function(){return Q})),n.d(t,"o",(function(){return Z})),n.d(t,"h",(function(){return J})),n.d(t,"t",(function(){return ee})),n.d(t,"z",(function(){return te})),n.d(t,"y",(function(){return ne})),n.d(t,"r",(function(){return re})),n.d(t,"s",(function(){return oe})),n.d(t,"l",(function(){return ae})),n.d(t,"k",(function(){return ie})),n.d(t,"x",(function(){return ce})),n.d(t,"f",(function(){return le})),n.d(t,"m",(function(){return ue})),n.d(t,"i",(function(){return de})),n.d(t,"j",(function(){return pe})),n.d(t,"a",(function(){return he})),n.d(t,"c",(function(){return ge})),n.d(t,"b",(function(){return me})),n.d(t,"e",(function(){return be})),n.d(t,"d",(function(){return ve})),n.d(t,"p",(function(){return we})),n.d(t,"q",(function(){return _e}));var r,o,a,i,s,c,l,u,d,f,p,h,g,m,b,v,y,w,_,x,O,k,E,S,A,C,j,L,P,T,M,I,R,N=n(48),D=n(18),H=n(4),G=n(1),F=n.n(G);function B(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(R="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&R(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var z,U,q=F()(H.Box)(r||(r=B(["\n display: flex;\n flex-direction: column;\n width: 32%;\n\n /* Portrait */\n @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1) {\n width: 100%;\n margin-bottom: 20px;\n }\n @media print {\n @media (orientation: portrait) {\n width: 100%;\n page-break-inside: avoid;\n page-break-after: auto;\n }\n }\n"]))),V=F.a.h1(o||(o=B(["\n color: #49515b;\n font-style: normal;\n font-weight: 500;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 1.4px;\n margin: 0;\n padding: 0;\n"]))),W=F.a.h1(a||(a=B(["\n color: #6d7984;\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 1.4px;\n margin: 0;\n padding: 0;\n align-items: right;\n"]))),$=F.a.h1(i||(i=B(["\n color: #6d7984;\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 1.4px;\n margin: 0;\n padding: 0;\n align-items: end;\n"]))),K=F()(H.Box)(s||(s=B(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n gap: 0px;\n background: #ffffff;\n box-shadow: ",";\n\n border-radius: 5px;\n"])),(function(e){return e.isPresentationView?0:"0px 5px 20px rgba(27, 38, 50, 0.15)"})),Y=F()(H.Box)(c||(c=B(["\n color: #44505b;\n font-style: normal;\n font-weight: 700;\n font-size: 16px;\n line-height: 20px;\n letter-spacing: -0.2px;\n margin: 0;\n padding: 0;\n"]))),X=F()(H.Box)(l||(l=B(["\n color: #44505b;\n font-style: normal;\n font-weight: 600;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: -0.2px;\n margin: 0;\n padding: 0;\n"]))),Q=F()(H.Box)(u||(u=B(["\n color: #44505b;\n font-style: normal;\n font-weight: 700;\n font-size: 1.25rem;\n line-height: 25px;\n letter-spacing: 0.2px;\n margin: 0;\n padding: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"]))),Z=F()(H.Box)(d||(d=B(["\n color: #44505b;\n font-style: normal;\n font-weight: 700;\n font-size: 1.25rem;\n line-height: 25px;\n letter-spacing: 0.2px;\n margin: 0 auto;\n padding: 0;\n\n display: -webkit-box !important;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n word-break: break-all;\n"]))),J=F()(H.Box)(f||(f=B(["\n display: flex;\n justify-content: center;\n align-items: start;\n flex-direction: column;\n padding: 11px 12px;\n gap: 4px;\n background: ",";\n border: ",";\n border-radius: 6px;\n min-width: ",";\n\n @media print {\n border-radius: 0px;\n border: 1px solid ",";\n }\n"])),(function(e){return e.theme.colors.lightContrast}),(function(e){var t=e.borderColor,n=e.theme,r=e.isPresentationView;return"1px solid ".concat(r?Object(D.i)(.6,n.colors.brandPrimary):Object(D.i)(.8,t))}),(function(e){return e.isPresentationView?"auto":"100%"}),(function(e){return e.theme.colors.brandPrimary})),ee=F()(H.Box)(p||(p=B(["\n display: flex;\n justify-content: center;\n align-items: start;\n flex-direction: column;\n padding: 4px 12px;\n gap: 4px;\n min-width: 146px;\n width: 100%;\n"]))),te=F()(H.Box)(h||(h=B(["\n display: flex;\n flex-direction: row;\n justify-content: right;\n align-items: end;\n /* padding: 12px 0px; */\n gap: 62px;\n border-top: ",";\n background-color: ",";\n"])),(function(e){var t=e.isPresentationView,n=e.backgroundColor;return"2px solid ".concat(t?Object(D.d)(.8,n):n)}),(function(e){var t=e.backgroundColor;return Object(D.i)(.8,t)})),ne=F()(H.Box)(g||(g=B(["\n border-top: ",";\n\n display: flex;\n flex-direction: row;\n justify-content: left;\n align-items: center;\n padding: 0;\n gap: 115px;\n font-size: 12px;\n background-color: ",";\n"])),(function(e){var t=e.isPresentationView,n=e.backgroundColor;return t?"2px solid ".concat(n):"1px solid #d1d4d6"}),(function(e){var t=e.backgroundColor;return Object(D.i)(.9,t)})),re=F()(H.Box)(m||(m=B(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n padding: ",";\n width: 100%;\n border-bottom: ",";\n\n @media only screen and (min-device-width: 768px) and (max-device-width: 1440px) {\n padding: ",";\n width: 100%;\n }\n"])),(function(e){return e.isPresentationView?"0":"12px 8px 12px 16px"}),(function(e){var t=e.isPresentationView,n=e.theme;return t?0:"1px solid ".concat(n.colors.lightGrey)}),(function(e){return e.isPresentationView?"0":"12px 20px"})),oe=F()(H.Box)(b||(b=B(["\n display: flex;\n flex-direction: row;\n\n width: ",";\n padding: ",";\n justify-content: space-between;\n\n @media only screen and (min-device-width: 768px) and (max-device-width: 1440px) {\n width: 100%;\n }\n\n @media print {\n width: 100%;\n padding: 0px 16px 0px 0px;\n @media (orientation: portrait) {\n width: max-content;\n padding: 0px 16px 0px 0px;\n gap: 50px;\n }\n }\n"])),(function(e){e.isPresentationView;return"100%"}),(function(e){return e.isPresentationView?"0px 16px 0px 35px":"36px 16px 12px 16px"})),ae=F()(H.Box)(v||(v=B(["\n display: flex;\n width: ",";\n height: ",";\n align-items: ",";\n justify-content: center;\n flex-direction: ",";\n\n @media only screen and (min-device-width: 768px) and (max-device-width: 1440px) {\n width: 30%;\n }\n @media print {\n width: 35%;\n padding: '12px 0px 12px 0px';\n height: 300px;\n }\n"])),(function(e){e.isPresentationView;return"25%"}),(function(e){return e.isPresentationView?"325px":"auto"}),(function(e){return e.isPresentationView?"center":"flex-start"}),(function(e){return e.isPresentationView?"column":"row"})),ie=F()(H.Box)(y||(y=B(["\n display: flex;\n flex-direction: column;\n align-items: start;\n padding: ",";\n gap: 8px;\n width: ",";\n min-height: 271px;\n\n @media only screen and (min-device-width: 768px) and (max-device-width: 1440px) {\n width: 63%;\n }\n \n @media screen and (max-width: 1440px) {\n min-height: 351px;\n }\n\n @media print {\n width: 65%;\n padding: '12px 0px 12px 0px';\n }\n"])),(function(e){return e.isPresentationView?"12px 0px 12px 7px":"0px 0px 0px 7px"}),(function(e){return e.isPresentationView?"65%":"70%"})),se=F()(H.Box)(w||(w=B(["\n display: flex;\n justify-content: center;\n align-items: start;\n flex-direction: column;\n background: #ffffff;\n font-size: 14px;\n"]))),ce=F()(H.Box)(_||(_=B(["\n width: 100%;\n .table-body {\n background: #fff;\n padding: 0;\n }\n\n > div {\n box-shadow: none;\n border: ",";\n border-radius: ",";\n }\n\n div.header {\n > div {\n padding: 0.667rem;\n }\n ","\n }\n\n div.total-box {\n /* "," */\n > div {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n }\n }\n\n div:has(div.header) {\n padding: 0;\n }\n div:has(div.total-box) {\n padding: 0 0 0 0;\n }\n div:has(div.body-box) {\n padding: 0;\n line-height: 1;\n font-weight: 500;\n width: 100%;\n }\n"])),(function(e){return e.isPresentationView?"1px solid #d1d4d6;":"none"}),(function(e){return e.isPresentationView?"6px":"0.375rem"}),(function(e){return e.isPresentationView&&"\n padding:0;\n border-top:0;\n\n > div {\n padding: 0.75rem;\n padding-left: 1rem;\n }\n "}),(function(e){return e.isPresentationView&&"padding:0"})),le=F()(H.Box)(x||(x=B(["\n min-width: 30%;\n\n padding-top: 8px;\n padding-bottom: 8px;\n\n div.body-box:has(div) {\n border-radius: 0rem;\n }\n"]))),ue=F()(N.e)(O||(O=B(["\n font-size: 12px;\n line-height: 16px;\n font-weight: 700;\n padding: 5px 15px 6px 15px;\n margin: 2px;\n"]))),de=F()(H.Box)(k||(k=B(["\n font-size: 12px;\n font-weight: ",";\n color: rgba(27, 38, 50, 0.8);\n display: flex;\n align-items: center;\n\n .performance-value-error {\n font-size: 12px;\n }\n"])),(function(e){return e.isSubtitle?"500":"600"})),fe=F()(H.Box)(E||(E=B(["\n font-weight: 500;\n"]))),pe=F()(H.Box)(S||(S=B(["\n font-size: 12px;\n font-weight: 700;\n color: rgba(27, 38, 50, 0.8);\n display: flex;\n align-items: center;\n\n .performance-value-error {\n font-size: 12px;\n }\n"]))),he=F()(H.Flex)(A||(A=B(["\n border-bottom: 1px solid #d1d4d6;\n\n padding-top: 8px;\n padding-bottom: 8px;\n\n &:first-child {\n padding-top: 0px;\n }\n\n &:last-child {\n padding-bottom: 0px;\n border-bottom: 0;\n }\n"]))),ge=F()(H.Flex)(C||(C=B(["\n padding-top: 8px;\n padding-bottom: 8px;\n width: 100%;\n align-items: flex-start;\n flex-direction: column;\n"]))),me=F()(H.Flex)(j||(j=B(["\n padding-top: 4px;\n padding-bottom: 4px;\n width: 100%;\n\n :last-child {\n margin-bottom: -16px;\n }\n"]))),be=F()(H.Flex)(L||(L=B(["\n display: flex;\n flex-direction: row;\n align-items: center;\n width: 100%;\n padding: 0.22rem 0.75rem 0.22rem 2.5rem;\n border-bottom: 1px solid #d1d4d6;\n overflow-wrap: normal;\n justify-content: space-between;\n\n :first-child {\n padding-top: 7px;\n }\n\n &:last-child {\n border-bottom: none;\n }\n"]))),ve=F()(H.Flex)(P||(P=B(["\n font-weight: 500;\n font-size: 9px;\n line-height: 12px;\n color: ",";\n\n .performance-value-error {\n font-size: 9px;\n }\n"])),(function(e){return e.theme.colors.darkRegular})),ye=F()(H.Flex)(T||(T=B([""]))),we=F.a.div(M||(M=B(["\n width: 100%;\n @media print {\n display: none;\n }\n"]))),_e=F.a.div(I||(I=B(["\n display: none;\n @media print {\n display: initial;\n width: 100%;\n }\n"])));(z="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(z.register(q,"StyledContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(V,"StyledTitle","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(W,"StyledMarketV","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register($,"StyledTotals","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(K,"ValueBox","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(Y,"BoldStyledParagraph","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(X,"StyledParagraph","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(Q,"HeaderParagraph","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(Z,"HeaderParagraphPresentation","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(J,"BorderedValueBox","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(ee,"SimpleValueBox","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(te,"TotalBox","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(ne,"TitleBox","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(re,"RowBox","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(oe,"RowContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(ae,"ChartContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(ie,"ButtonContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(se,"AccordionBox","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(ce,"TableStyles","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(le,"BodyBox","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(ue,"EditButton","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(de,"BucketingAccountTableBox","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(fe,"SmallAccordionTable","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(pe,"BucketingAccountTableBoxValue","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(he,"AccordionContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(ge,"AccountsContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(me,"AccountAccordionContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(be,"AssetDetailRow","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(ve,"AssetDetailBox","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(ye,"FooterLabelSecond","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(we,"NonPrintableControl","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx"),z.register(_e,"PrintableControl","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/ChartComponent/ChartComponent.style.tsx")),(U="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&U(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}));n(16);function r(e){return Object.keys(e)}function o(e,t){return r(e).sort(t)}function a(e){return Object.assign({},e)}function i(e,t){r(e).forEach((function(n){t(n,e[n])}))}function s(e,t){for(var n in e)if(c(e,n)&&!t(n,e[n]))break}function c(e,t){return{}.hasOwnProperty.call(e,t)}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var r=n(2422),o=n(2423),a=n(1194);function i(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(i()=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var a,i=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,s/=2,c/=2,n/=2}function l(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var u=-1;for(a=n;as&&(n=s-c),a=n;a>=0;a--){for(var d=!0,f=0;fo&&(r=o):r=o;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var i=0;i>8,o=n%256,a.push(o),a.push(r);return a}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:l>223?3:l>191?2:1;if(o+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(a=e[o+1]))&&(c=(31&l)<<6|63&a)>127&&(u=c);break;case 3:a=e[o+1],i=e[o+2],128==(192&a)&&128==(192&i)&&(c=(15&l)<<12|(63&a)<<6|63&i)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:a=e[o+1],i=e[o+2],s=e[o+3],128==(192&a)&&128==(192&i)&&128==(192&s)&&(c=(15&l)<<18|(63&a)<<12|(63&i)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(r>>>=0),i=(n>>>=0)-(t>>>=0),s=Math.min(a,i),l=this.slice(r,o),u=e.slice(t,n),d=0;do)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function T(e,t,n,r,o,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,a=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function I(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,a=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function R(e,t,n,r,o,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,a){return a||R(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,a){return a||R(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],o=1,a=0;++a=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,o=1,a=this[e+--r];r>0&&(o*=256);)a+=this[e+--r]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||T(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+o]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);T(this,e,t,n,o-1,-o)}var a=0,i=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);T(this,e,t,n,o-1,-o)}var a=n-1,i=1,s=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/i>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function B(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(116))},function(e,t,n){"use strict";var r=n(508);n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b}));var o=n(1186);n.d(t,"c",(function(){return o.a}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";var r=n(17),o=n(155),a=n(16),i=function(e){function t(t){var n=e.call(this)||this;return Object.defineProperty(n,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(n,"_container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(n,"_events",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n._container=t,n._events=n.events.onAll((function(e){if("clear"===e.type)a.c(e.oldValues,(function(e){n._onRemoved(e)}));else if("push"===e.type)n._onInserted(e.newValue);else if("setIndex"===e.type)n._onRemoved(e.oldValue),n._onInserted(e.newValue,e.index);else if("insertIndex"===e.type)n._onInserted(e.newValue,e.index);else if("removeIndex"===e.type)n._onRemoved(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");n._onRemoved(e.value),n._onInserted(e.value,e.newIndex)}})),n}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"_onInserted",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){e._setParent(this._container,!0);var n=this._container._childrenDisplay;void 0===t?n.addChild(e._display):n.addChildAt(e._display,t)}}),Object.defineProperty(t.prototype,"_onRemoved",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._container._childrenDisplay.removeChild(e._display),this._container.markDirtyBounds(),this._container.markDirty()}}),Object.defineProperty(t.prototype,"isDisposed",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._disposed}}),Object.defineProperty(t.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._disposed||(this._disposed=!0,this._events.dispose(),a.c(this.values,(function(e){e.dispose()})))}}),t}(o.a),s=n(20),c=n(252),l=n(245),u=n(457),d=n(456),f=n(381),p=n(470),h=n(26),g=n(24);n.d(t,"a",(function(){return m}));var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"_display",{enumerable:!0,configurable:!0,writable:!0,value:t._root._renderer.makeContainer()}),Object.defineProperty(t,"_childrenDisplay",{enumerable:!0,configurable:!0,writable:!0,value:t._root._renderer.makeContainer()}),Object.defineProperty(t,"children",{enumerable:!0,configurable:!0,writable:!0,value:new i(t)}),Object.defineProperty(t,"_percentageSizeChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(t,"_percentagePositionChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(t,"_prevWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(t,"_prevHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(t,"_contentWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(t,"_contentHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(t,"_contentMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_vsbd0",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_vsbd1",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"_afterNew",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._afterNew.call(this),this._display.addChild(this._childrenDisplay)}}),Object.defineProperty(t.prototype,"_dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){a.e(this.allChildren(),(function(e){e.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),e.prototype._dispose.call(this)}}),Object.defineProperty(t.prototype,"_changed",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(e.prototype._changed.call(this),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((function(e){e.removePrivate("x"),e.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((function(e){e.markDirtyPosition()})),this.isDirty("maskContent")){var t=this._childrenDisplay,n=this._contentMask;this.get("maskContent")?n||(n=l.a.new(this._root,{width:this.width()+.5,height:this.height()+.5}),this._contentMask=n,t.addChildAt(n._display,0),t.mask=n._display):n&&(t.removeChild(n._display),t.mask=null,n.dispose(),this._contentMask=void 0)}}}),Object.defineProperty(t.prototype,"_updateSize",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._updateSize.call(this),a.c(this._percentageSizeChildren,(function(e){e._updateSize()})),a.c(this._percentagePositionChildren,(function(e){e.markDirtyPosition(),e._updateSize()})),this.updateBackground()}}),Object.defineProperty(t.prototype,"updateBackground",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.get("background"),t=this._localBounds;if(t&&!this.isHidden()){var n=t.left,r=t.top,o=t.right-n,a=t.bottom-r,i=this.get("maxWidth"),s=this.get("maxHeight");s&&a>s&&(a=s),i&&o>i&&(o=i);var c=this.width(),l=this.height();e&&(e.setAll({width:o,height:a,x:n,y:r}),this._display.interactive&&(e._display.interactive=!0));var u=this._contentMask;u&&u.setAll({width:c+.5,height:l+.5});var d=this.get("verticalScrollbar");if(d){d.set("height",l),d.set("x",c-d.width()-d.get("marginRight",0)),d.set("end",d.get("start",0)+l/this._contentHeight);var f=d.get("background");f&&f.setAll({width:d.width(),height:l});var p=!0;this._contentHeight<=l&&(p=!1),d.setPrivate("visible",p)}}}}),Object.defineProperty(t.prototype,"_applyThemes",{enumerable:!1,configurable:!0,writable:!0,value:function(){return!!e.prototype._applyThemes.call(this)&&(this.eachChildren((function(e){e._applyThemes()})),!0)}}),Object.defineProperty(t.prototype,"_applyState",{enumerable:!1,configurable:!0,writable:!0,value:function(t){e.prototype._applyState.call(this,t),this.get("setStateOnChildren")&&this.eachChildren((function(e){e.states.apply(t)}))}}),Object.defineProperty(t.prototype,"_applyStateAnimated",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){e.prototype._applyStateAnimated.call(this,t,n),this.get("setStateOnChildren")&&this.eachChildren((function(e){e.states.applyAnimate(t,n)}))}}),Object.defineProperty(t.prototype,"innerWidth",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}}),Object.defineProperty(t.prototype,"innerHeight",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}}),Object.defineProperty(t.prototype,"_getBounds",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.get("width"),t=this.get("height"),n=this.getPrivate("width"),r=this.getPrivate("height"),o={left:0,top:0,right:this.width(),bottom:this.height()},a=this.get("layout"),i=!1,s=!1;if((a instanceof u.a||a instanceof f.a)&&(i=!0),a instanceof d.a&&(s=!0),null==e&&null==n||null==t&&null==r||this.get("verticalScrollbar")){var c=Number.MAX_VALUE,l=c,p=-c,g=c,m=-c,b=this.get("paddingLeft",0),v=this.get("paddingTop",0),y=this.get("paddingRight",0),w=this.get("paddingBottom",0);this.children.each((function(e){if("absolute"!=e.get("position")&&e.get("isMeasured")){var t=e.adjustedLocalBounds(),n=e.x(),r=e.y(),o=n+t.left,a=n+t.right,c=r+t.top,u=r+t.bottom;i&&(o-=e.get("marginLeft",0),a+=e.get("marginRight",0)),s&&(c-=e.get("marginTop",0),u+=e.get("marginBottom",0)),op&&(p=a),cm&&(m=u)}})),l==c&&(l=0),p==-c&&(p=0),g==c&&(g=0),m==-c&&(m=0),o.left=l-b,o.top=g-v,o.right=p+y,o.bottom=m+w}else;this._contentWidth=o.right-o.left,this._contentHeight=o.bottom-o.top,h.e(e)&&(o.left=0,o.right=e),h.e(n)&&(o.left=0,o.right=n),h.e(t)&&(o.top=0,o.bottom=t),h.e(r)&&(o.top=0,o.bottom=r),this._localBounds=o}}),Object.defineProperty(t.prototype,"_updateBounds",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=this.get("layout");t&&t.updateContainer(this),e.prototype._updateBounds.call(this),this.updateBackground()}}),Object.defineProperty(t.prototype,"markDirty",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype.markDirty.call(this),this._root._addDirtyParent(this)}}),Object.defineProperty(t.prototype,"_prepareChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.innerWidth(),t=this.innerHeight();if(e!=this._prevWidth||t!=this._prevHeight){var n=this.get("layout"),r=!1,o=!1;n&&((n instanceof u.a||n instanceof f.a)&&(r=!0),n instanceof d.a&&(o=!0)),a.c(this._percentageSizeChildren,(function(n){if(!r){var a=n.get("width");a instanceof s.a&&n.setPrivate("width",a.value*e)}if(!o){var i=n.get("height");i instanceof s.a&&n.setPrivate("height",i.value*t)}})),a.c(this._percentagePositionChildren,(function(e){e.markDirtyPosition(),e.markDirtyBounds()})),this._prevWidth=e,this._prevHeight=t,this._sizeDirty=!0,this.updateBackground()}this._handleStates()}}),Object.defineProperty(t.prototype,"_updateChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;if(this.isDirty("html")){var t=this.get("html");t&&""!==t?this._root._setHTMLContent(this,Object(p.a)(this,this.get("html",""))):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}if(this.isDirty("verticalScrollbar")){var n,r=this.get("verticalScrollbar");if(r)r._setParent(this),r.children.removeValue(r.startGrip),r.children.removeValue(r.endGrip),this.set("maskContent",!0),this.set("paddingRight",r.width()+r.get("marginRight",0)+r.get("marginLeft",0)),(n=this.get("background"))||(n=this.set("background",l.a.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(function(t){var n=t.originalEvent;if(g.w(n,e)){n.preventDefault();var o=n.deltaY/5e3,a=r.get("start",0),i=r.get("end",1);a+o>0&&i+o<1&&(r.set("start",a+o),r.set("end",i+o))}})),this._disposers.push(this._vsbd0),this._vsbd1=r.events.on("rangechanged",(function(){var t=e._contentHeight,n=e._childrenDisplay,o=e._contentMask;n.y=-r.get("start")*t,n.markDirtyLayer(),o&&(o._display.y=-n.y,n.mask=o._display)})),this._disposers.push(this._vsbd1),this._display.addChild(r._display);else if(o=this._prevSettings.verticalScrollbar)this._display.removeChild(o._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose(),this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0)}this.isDirty("background")&&((o=this._prevSettings.background)&&this._display.removeChild(o._display),(n=this.get("background"))instanceof c.a&&(n.set("isMeasured",!1),n._setParent(this),this._display.addChildAt(n._display,0)));if(this.isDirty("mask")){var o,a=this.get("mask");if((o=this._prevSettings.mask)&&(this._display.removeChild(o._display),o!=a&&o.dispose()),a){var i=a.parent;i&&i.children.removeValue(a),a._setParent(this),this._display.addChildAt(a._display,0),this._childrenDisplay.mask=a._display}}}}),Object.defineProperty(t.prototype,"_processTemplateField",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._processTemplateField.call(this),this.children.each((function(e){e._processTemplateField()}))}}),Object.defineProperty(t.prototype,"walkChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.children.each((function(n){n instanceof t&&n.walkChildren(e),e(n)}))}}),Object.defineProperty(t.prototype,"eachChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.get("background");t&&e(t);var n=this.get("verticalScrollbar");n&&e(n);var r=this.get("mask");r&&e(r),this.children.values.forEach((function(t){e(t)}))}}),Object.defineProperty(t.prototype,"allChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=[];return this.eachChildren((function(t){e.push(t)})),e}}),Object.defineProperty(t.prototype,"_setDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var n=t!==this._dataItem;e.prototype._setDataItem.call(this,t);var r=this.get("html","");r&&""!==r&&n&&this._root._setHTMLContent(this,Object(p.a)(this,r))}}),Object.defineProperty(t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Container"}),Object.defineProperty(t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:c.a.classNames.concat([t.className])}),t}(c.a)},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(1)),r(n(2)),r(n(3)),r(n(4)),r(n(5)),r(n(6)),r(n(7)),r(n(8)),r(n(9)),r(n(10)),r(n(11)),r(n(12)),r(n(13))},function(e,t,n){e.exports={a:"Anchor__a___1_Iz8"}},function(e,t,n){e.exports={button:"Button__button___vS7Mv",signInButton:"Button__signInButton___3bUH-",googleSignInButton:"Button__googleSignInButton___1YiCu",signInButtonIcon:"Button__signInButtonIcon___ihN75",auth0SignInButton:"Button__auth0SignInButton___znnCj",facebookSignInButton:"Button__facebookSignInButton___34Txh",amazonSignInButton:"Button__amazonSignInButton___2EMtl",oAuthSignInButton:"Button__oAuthSignInButton___3UGOl",signInButtonContent:"Button__signInButtonContent___xqTXJ"}},function(e,t,n){e.exports={formContainer:"Form__formContainer___1GA3x",formSection:"Form__formSection___1PPvW",formField:"Form__formField___38Ikl",formRow:"Form__formRow___2mwRs"}},function(e,t,n){e.exports={hint:"Hint__hint___2XngB"}},function(e,t,n){e.exports={input:"Input__input___3e_bf",inputLabel:"Input__inputLabel___3VF0S",label:"Input__label___23sO8",radio:"Input__radio___2hllK"}},function(e,t,n){e.exports={navBar:"Nav__navBar___xtCFA",navRight:"Nav__navRight___1QG2J",nav:"Nav__nav___2Dx2Y",navItem:"Nav__navItem___1LtFQ"}},function(e,t,n){e.exports={photoPickerButton:"PhotoPicker__photoPickerButton___2XdVn",photoPlaceholder:"PhotoPicker__photoPlaceholder___2JXO4",photoPlaceholderIcon:"PhotoPicker__photoPlaceholderIcon___3Et71"}},function(e,t,n){e.exports={container:"Section__container___3YYTG",actionRow:"Section__actionRow___2LWSU",sectionHeader:"Section__sectionHeader___2djyg",sectionHeaderHint:"Section__sectionHeaderHint___3Wxdc",sectionBody:"Section__sectionBody___ihqqd",sectionHeaderContent:"Section__sectionHeaderContent___1UCqa",sectionFooter:"Section__sectionFooter___1T54C",sectionFooterPrimaryContent:"Section__sectionFooterPrimaryContent___2r9ZX",sectionFooterSecondaryContent:"Section__sectionFooterSecondaryContent___Nj41Q"}},function(e,t,n){e.exports={selectInput:"SelectInput__selectInput___3efO4"}},function(e,t,n){e.exports={strike:"Strike__strike___1XV1b",strikeContent:"Strike__strikeContent___10gLb"}},function(e,t,n){e.exports={toast:"Toast__toast___XXr3v",toastClose:"Toast__toastClose___18lU4"}},function(e,t,n){e.exports={totpQrcode:"Totp__totpQrcode___1crLx"}},function(e,t,n){e.exports={sumerianSceneContainer:"XR__sumerianSceneContainer___3nVMt",sumerianScene:"XR__sumerianScene___2Tt7-",loadingOverlay:"XR__loadingOverlay___IbqcI",loadingContainer:"XR__loadingContainer___2Itxb",loadingLogo:"XR__loadingLogo___Ub7xQ",loadingSceneName:"XR__loadingSceneName___3__ne",loadingBar:"XR__loadingBar___2vcke",loadingBarFill:"XR__loadingBarFill___3M-D9",sceneErrorText:"XR__sceneErrorText___2y0tp",sceneBar:"XR__sceneBar___2ShrP",sceneName:"XR__sceneName___1ApHr",sceneActions:"XR__sceneActions___7plGs",actionButton:"XR__actionButton___2poIM",tooltip:"XR__tooltip___UYyhn",actionIcon:"XR__actionIcon___2qnd2",autoShowTooltip:"XR__autoShowTooltip___V1QH7"}}])},function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function x(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:"MTD",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Object(g.useApolloClient)(),o=Object(v.b)(r),a=S(S({},o),{},{variables:S(S({},o.variables),{},{period:t,includePerformance:n})}),i=Object(g.useQuery)(F,a);return S(S({},i),{},{data:i.data?null==i?void 0:null===(e=i.data)||void 0===e?void 0:e.portfolioBuckets:[]})};j(V,"useApolloClient{client}\nuseQuery{useQueryResult}",(function(){return[g.useApolloClient,g.useQuery]}));var W=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"MTD",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Object(g.useApolloClient)(),o=Object(v.b)(r),a=S(S({},o),{},{variables:S(S({},o.variables),{},{includePerformance:n,period:t})}),i=Object(g.useQuery)(G,a);return S(S({},i),{},{data:i.data?null==i?void 0:null===(e=i.data)||void 0===e?void 0:e.portfolioRegistrations:[]})};j(W,"useApolloClient{client}\nuseQuery{useQueryResult}",(function(){return[g.useApolloClient,g.useQuery]}));var $=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"MTD",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Object(g.useApolloClient)(),o=Object(v.b)(r),a=S(S({},o),{},{variables:S(S({},o.variables),{},{period:t,includePerformance:n})}),i=Object(g.useQuery)(B,a);return S(S({},i),{},{data:i.data?null==i?void 0:null===(e=i.data)||void 0===e?void 0:e.portfolioAccounts:[]})};j($,"useApolloClient{client}\nuseQuery{useQueryResult}",(function(){return[g.useApolloClient,g.useQuery]}));var K=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"MTD",r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=Object(g.useApolloClient)(),i=Object(v.b)(a),s=S(S({},i),{},{variables:S(S({},i.variables),{},{period:n,includePerformance:r})}),c=Object(g.useQuery)(z,s),l=null==c?void 0:null===(e=c.data)||void 0===e?void 0:null===(t=e.portfolioAssets)||void 0===t?void 0:t.data.filter((function(e){return e.accountId===o}));return S(S({},c),{},{data:c.data?l:[]})};j(K,"useApolloClient{client}\nuseQuery{useQueryResult}",(function(){return[g.useApolloClient,g.useQuery]}));var Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"MTD",t=Object(v.b)(Object(g.useApolloClient)()),n=S(S({},t),{},{variables:S(S({},t.variables),{},{period:e})}),r=Object(g.useQuery)(I,n);return S(S({},r),{},{data:r.data})};j(Y,"useApolloClient{}\nuseQuery{result}",(function(){return[g.useApolloClient,g.useQuery]}));var X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"MTD",n=Object(g.useQuery)(R,{client:b.a,variables:{clientId:Object(y.b)(),accountIds:e,period:t}});return S(S({},n),{},{data:n.data})};j(X,"useQuery{result}",(function(){return[g.useQuery]}));var Q,Z,J=function(){var e=Object(g.useApolloClient)(),t=Object(v.a)(e),n=O(Object(g.useMutation)(N,t),1)[0];return Object(m.useCallback)(function(){var e,t=(e=_().mark((function e(t){return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n({variables:{clientId:Object(y.b)(),bucketDetails:t}}));case 1:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){x(a,r,o,i,s,"next",e)}function s(e){x(a,r,o,i,s,"throw",e)}i(void 0)}))});return function(e){return t.apply(this,arguments)}}(),[n,e])};j(J,"useApolloClient{client}\nuseMutation{[updateBucketDetails]}\nuseCallback{}",(function(){return[g.useApolloClient,g.useMutation]})),(Q="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(Q.register(L,"GET_BUCKETING_COMMENTS","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(P,"UPDATE_BUCKETING_COMMENTS","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(T,"useBucketingComments","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(M,"useUpdateBucketingComments","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(I,"GET_BUCKETING_DETAILS","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(R,"GET_ACCOUNT_ASSET_DETAILS","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(N,"UPDATE_BUCKET_DETAILS","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(D,"GET_BUCKET_DATA","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(H,"GET_PORTFOLIO_VALUE","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(G,"GET_PORTFOLIO_REGISTRATION","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(F,"GET_PORTFOLIO_BUCKETS","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(B,"GET_PORTFOLIO_ACCOUNTS","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(z,"GET_PORTFOLIO_ASSETS","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(U,"useBucketDetails","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(q,"usePortfolioValue","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(V,"usePortfolioBuckets","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(W,"usePortfolioRegistrations","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register($,"usePortfolioAccounts","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(K,"usePortfolioAssets","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(Y,"useBucketingDetails","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(X,"useAccountAssetDetails","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts"),Q.register(J,"useUpdateBucketDetailsMutation","/__w/1271/s/packages/gameplan/src/common/graphql/bucketing.ts")),(Z="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&Z(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r,o=n(18),a=n(630);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var i,s,c={darkContrast:"#1B2632",darkRegular:Object(o.i)(.2,"#1B2632"),darkLighterRegular:Object(o.i)(.95,"#1B2632"),darkSubtle:Object(o.i)(.4,"#1B2632"),darkNonEssential:Object(o.i)(.6,"#1B2632"),darkGrey:"#5F6770",lightContrast:"#ffffff",lightRegular:Object(o.a)(.05,"#ffffff"),lightSubtle:Object(o.a)(.1,"#ffffff"),lightNonEssential:Object(o.a)(.15,"#ffffff"),lightGrey:"#D1D4D6",lightGrey2:"#D9D9D9",mediumGrey:"#8D9298",mediumContrast:"#7b7b7b",mediumRegular:Object(o.i)(.2,"#7b7b7b"),mediumSubtle:Object(o.i)(.4,"#7b7b7b"),mediumNonEssential:Object(o.i)(.6,"#7b7b7b"),positive:"#13D273",negative:"#EA6348",warning:"#FEB707",informational:"#afbdc7",brandPrimary:"#4298B5",brandSecondary:"#4298B5",brandTertiary:"#4298B5",link:"#d6b556",lightBlue:"#08A0FF",darkWhite:"#E8E9EB",lightYellow:Object(o.i)(.6,"#D6B556")},l={borders:{subtle:"1px solid ".concat(c.lightSubtle),card:"1px solid ".concat(c.lightGrey)},breakpoints:Object.keys(a.a).map((function(e){return a.a[e]})),mediaQueries:{},radii:{small:"0.375rem",circular:"50%"},colors:c,fontBases:["16px"],fontSizes:{stepUp5:"1rem",stepUp4:"1rem",stepUp3:"1rem",stepUp2:"1rem",stepUp1:"1rem",baseline:"1rem",stepDown1:"1rem",stepDown2:"1rem",stepDown3:"1rem"},lineHeights:{fit:1,tight:1.2,baseline:1.2,open:1.2},fonts:{primary:"HelveticaNeueLTPro,arial,sans-serif",secondary:"HelveticaNeueLTPro,arial,sans-serif",tertiary:"HelveticaNeueLTPro,arial,sans-serif"},letterSpacings:{open2:"0.0125rem",open1:"0.0125rem",baseline:"0.0125rem",tight1:"0.0125rem",tight2:"0.0125rem"},fontWeights:{ultra:200,thin:300,light:400,normal:500,medium:600,bold:700},shadows:{},space:["0","0.125rem","0.25rem","0.5rem","1rem","2rem","3rem","6rem"],zIndices:{max:9999,above:1}};(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(i.register(c,"colors","/__w/1271/s/packages/themes/src/core/theme.ts"),i.register(l,"theme","/__w/1271/s/packages/themes/src/core/theme.ts")),(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&s(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";var r=n(22),o=n(6),a=n(0),i=(n(7),n(28)),s=n(3165),c=n(585),l=n(15),u=n(39),d=n(32),f=n(402),p=n(433);function h(e){return Object(f.a)("MuiTypography",e)}Object(p.a)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var g=n(5);const m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],b=Object(l.a)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Object(d.a)(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Object(o.a)({margin:0},t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),v={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},y={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},w=a.forwardRef((function(e,t){const n=Object(u.a)({props:e,name:"MuiTypography"}),a=(e=>y[e]||e)(n.color),l=Object(s.a)(Object(o.a)({},n,{color:a})),{align:f="inherit",className:p,component:w,gutterBottom:_=!1,noWrap:x=!1,paragraph:O=!1,variant:k="body1",variantMapping:E=v}=l,S=Object(r.a)(l,m),A=Object(o.a)({},l,{align:f,color:a,className:p,component:w,gutterBottom:_,noWrap:x,paragraph:O,variant:k,variantMapping:E}),C=w||(O?"p":E[k]||v[k])||"span",j=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,s={root:["root",a,"inherit"!==e.align&&`align${Object(d.a)(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Object(c.a)(s,h,i)})(A);return Object(g.jsx)(b,Object(o.a)({as:C,ref:t,ownerState:A,className:Object(i.a)(j.root,p)},S))}));t.a=w},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"desc",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"name",r=Object(s.f)(e);return y(r,t,n)};g(w,"usePerformantAccounts{performant}\nuseSortedCollection{}",(function(){return[s.f,y]}));var _,x,O=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"value",o=Object(s.g)(e,t);return y(o,n,r)};g(O,"usePerformantSleeves{performant}\nuseSortedCollection{}",(function(){return[s.g,y]})),(_="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(_.register(m,"DISPLAY_PREFERENCES","/__w/1271/s/packages/gameplan/src/common/graphql/account.ts"),_.register(b,"GET_MANAGED_ACCOUNTS","/__w/1271/s/packages/gameplan/src/common/graphql/account.ts"),_.register(v,"useManagedAccounts","/__w/1271/s/packages/gameplan/src/common/graphql/account.ts"),_.register(y,"useSortedCollection","/__w/1271/s/packages/gameplan/src/common/graphql/account.ts"),_.register(w,"useSortedAccounts","/__w/1271/s/packages/gameplan/src/common/graphql/account.ts"),_.register(O,"useSortedSleeves","/__w/1271/s/packages/gameplan/src/common/graphql/account.ts")),(x="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&x(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";var r=n(123),o=n(578),a=n(3272),i={},s=function(){function e(){}return e.setItem=function(e,t){return i[e]=t,i[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(i,e)?i[e]:void 0},e.removeItem=function(e){return delete i[e]},e.clear=function(){return i={}},e}(),c=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(e){this.storageWindow=s}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),l=n(300),u=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},f=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},h=function(){for(var e=[],t=0;te)&&n}}(n))},v=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},y=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}var F,B,z,U,q,V,W,$,K,Y,X,Q,Z,J,ee,te,ne,re,oe,ae,ie,se,ce,le,ue,de,fe,pe,he,ge,me,be,ve,ye,we,_e,xe,Oe,ke,Ee,Se,Ae,Ce,je,Le,Pe,Te,Me,Ie,Re,Ne,De,He,Ge,Fe,Be,ze;Object.create;!function(e){e.AUTHENTICATED_ROLE="AuthenticatedRole",e.DENY="Deny"}(F||(F={})),(B||(B={})).filterSensitiveLog=function(e){return N({},e)},(z||(z={})).filterSensitiveLog=function(e){return N({},e)},(U||(U={})).filterSensitiveLog=function(e){return N({},e)},(q||(q={})).filterSensitiveLog=function(e){return N({},e)},(V||(V={})).filterSensitiveLog=function(e){return N({},e)},(W||(W={})).filterSensitiveLog=function(e){return N({},e)},($||($={})).filterSensitiveLog=function(e){return N({},e)},(K||(K={})).filterSensitiveLog=function(e){return N({},e)},(Y||(Y={})).filterSensitiveLog=function(e){return N({},e)},(X||(X={})).filterSensitiveLog=function(e){return N({},e)},function(e){e.ACCESS_DENIED="AccessDenied",e.INTERNAL_SERVER_ERROR="InternalServerError"}(Q||(Q={})),(Z||(Z={})).filterSensitiveLog=function(e){return N({},e)},(J||(J={})).filterSensitiveLog=function(e){return N({},e)},(ee||(ee={})).filterSensitiveLog=function(e){return N({},e)},(te||(te={})).filterSensitiveLog=function(e){return N({},e)},(ne||(ne={})).filterSensitiveLog=function(e){return N({},e)},(re||(re={})).filterSensitiveLog=function(e){return N({},e)},(oe||(oe={})).filterSensitiveLog=function(e){return N({},e)},(ae||(ae={})).filterSensitiveLog=function(e){return N({},e)},(ie||(ie={})).filterSensitiveLog=function(e){return N({},e)},(se||(se={})).filterSensitiveLog=function(e){return N({},e)},(ce||(ce={})).filterSensitiveLog=function(e){return N({},e)},(le||(le={})).filterSensitiveLog=function(e){return N({},e)},(ue||(ue={})).filterSensitiveLog=function(e){return N({},e)},(de||(de={})).filterSensitiveLog=function(e){return N({},e)},(fe||(fe={})).filterSensitiveLog=function(e){return N({},e)},function(e){e.CONTAINS="Contains",e.EQUALS="Equals",e.NOT_EQUAL="NotEqual",e.STARTS_WITH="StartsWith"}(pe||(pe={})),(he||(he={})).filterSensitiveLog=function(e){return N({},e)},(ge||(ge={})).filterSensitiveLog=function(e){return N({},e)},function(e){e.RULES="Rules",e.TOKEN="Token"}(me||(me={})),(be||(be={})).filterSensitiveLog=function(e){return N({},e)},(ve||(ve={})).filterSensitiveLog=function(e){return N({},e)},(ye||(ye={})).filterSensitiveLog=function(e){return N({},e)},(we||(we={})).filterSensitiveLog=function(e){return N({},e)},(_e||(_e={})).filterSensitiveLog=function(e){return N({},e)},(xe||(xe={})).filterSensitiveLog=function(e){return N({},e)},(Oe||(Oe={})).filterSensitiveLog=function(e){return N({},e)},(ke||(ke={})).filterSensitiveLog=function(e){return N({},e)},(Ee||(Ee={})).filterSensitiveLog=function(e){return N({},e)},(Se||(Se={})).filterSensitiveLog=function(e){return N({},e)},(Ae||(Ae={})).filterSensitiveLog=function(e){return N({},e)},(Ce||(Ce={})).filterSensitiveLog=function(e){return N({},e)},(je||(je={})).filterSensitiveLog=function(e){return N({},e)},(Le||(Le={})).filterSensitiveLog=function(e){return N({},e)},(Pe||(Pe={})).filterSensitiveLog=function(e){return N({},e)},(Te||(Te={})).filterSensitiveLog=function(e){return N({},e)},(Me||(Me={})).filterSensitiveLog=function(e){return N({},e)},(Ie||(Ie={})).filterSensitiveLog=function(e){return N({},e)},(Re||(Re={})).filterSensitiveLog=function(e){return N({},e)},(Ne||(Ne={})).filterSensitiveLog=function(e){return N({},e)},(De||(De={})).filterSensitiveLog=function(e){return N({},e)},(He||(He={})).filterSensitiveLog=function(e){return N({},e)},(Ge||(Ge={})).filterSensitiveLog=function(e){return N({},e)},(Fe||(Fe={})).filterSensitiveLog=function(e){return N({},e)},(Be||(Be={})).filterSensitiveLog=function(e){return N({},e)},(ze||(ze={})).filterSensitiveLog=function(e){return N({},e)};var Ue=function(){function e(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return e.isInstance=function(e){if(!e)return!1;var t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers},e}(),qe=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers},e.prototype.clone=function(){var t,n=new e(Object(M.__assign)(Object(M.__assign)({},this),{headers:Object(M.__assign)({},this.headers)}));return n.query&&(n.query=(t=n.query,Object.keys(t).reduce((function(e,n){var r,o=t[n];return Object(M.__assign)(Object(M.__assign)({},e),((r={})[n]=Array.isArray(o)?Object(M.__spread)(o):o,r))}),{}))),n},e}();var Ve=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r,o,a,i,s,c,l,u,d,f,p,h,g,m,b;return H(this,(function(v){switch(v.label){case 0:return r=[N({},e)],b={},[4,wt(e.body,t)];case 1:switch(n=N.apply(void 0,r.concat([(b.body=v.sent(),b)])),a="UnknownError",i=n.body.__type.split("#"),a=void 0===i[1]?i[0]:i[1],a){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":return[3,6];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return s=[{}],[4,$e(n,t)];case 3:return o=N.apply(void 0,[N.apply(void 0,s.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 4:return c=[{}],[4,Ke(n,t)];case 5:return o=N.apply(void 0,[N.apply(void 0,c.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 6:return l=[{}],[4,Ye(n,t)];case 7:return o=N.apply(void 0,[N.apply(void 0,l.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 8:return u=[{}],[4,Xe(n,t)];case 9:return o=N.apply(void 0,[N.apply(void 0,u.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 10:return d=[{}],[4,Ze(n,t)];case 11:return o=N.apply(void 0,[N.apply(void 0,d.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 12:return f=[{}],[4,Je(n,t)];case 13:return o=N.apply(void 0,[N.apply(void 0,f.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 14:return p=[{}],[4,et(n,t)];case 15:return o=N.apply(void 0,[N.apply(void 0,p.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 16:return h=[{}],[4,tt(n,t)];case 17:return o=N.apply(void 0,[N.apply(void 0,h.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 18:g=n.body,a=g.code||g.Code||a,o=N(N({},g),{name:""+a,message:g.message||g.Message||a,$fault:"client",$metadata:bt(e)}),v.label=19;case 19:return m=o.message||o.Message||a,o.message=m,delete o.Message,[2,Promise.reject(Object.assign(new Error(m),o))]}}))}))},We=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r,o,a,i,s,c,l,u,d,f,p,h,g,m,b;return H(this,(function(v){switch(v.label){case 0:return r=[N({},e)],b={},[4,wt(e.body,t)];case 1:switch(n=N.apply(void 0,r.concat([(b.body=v.sent(),b)])),a="UnknownError",i=n.body.__type.split("#"),a=void 0===i[1]?i[0]:i[1],a){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return s=[{}],[4,$e(n,t)];case 3:return o=N.apply(void 0,[N.apply(void 0,s.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 4:return c=[{}],[4,Ke(n,t)];case 5:return o=N.apply(void 0,[N.apply(void 0,c.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 6:return l=[{}],[4,Xe(n,t)];case 7:return o=N.apply(void 0,[N.apply(void 0,l.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 8:return u=[{}],[4,Qe(n,t)];case 9:return o=N.apply(void 0,[N.apply(void 0,u.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 10:return d=[{}],[4,Ze(n,t)];case 11:return o=N.apply(void 0,[N.apply(void 0,d.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 12:return f=[{}],[4,Je(n,t)];case 13:return o=N.apply(void 0,[N.apply(void 0,f.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 14:return p=[{}],[4,et(n,t)];case 15:return o=N.apply(void 0,[N.apply(void 0,p.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 16:return h=[{}],[4,tt(n,t)];case 17:return o=N.apply(void 0,[N.apply(void 0,h.concat([v.sent()])),{name:a,$metadata:bt(e)}]),[3,19];case 18:g=n.body,a=g.code||g.Code||a,o=N(N({},g),{name:""+a,message:g.message||g.Message||a,$fault:"client",$metadata:bt(e)}),v.label=19;case 19:return m=o.message||o.Message||a,o.message=m,delete o.Message,[2,Promise.reject(Object.assign(new Error(m),o))]}}))}))},$e=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=it(n,t),[2,N({name:"ExternalServiceException",$fault:"client",$metadata:bt(e)},r)]}))}))},Ke=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=lt(n,t),[2,N({name:"InternalErrorException",$fault:"server",$metadata:bt(e)},r)]}))}))},Ye=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=ut(n,t),[2,N({name:"InvalidIdentityPoolConfigurationException",$fault:"client",$metadata:bt(e)},r)]}))}))},Xe=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=dt(n,t),[2,N({name:"InvalidParameterException",$fault:"client",$metadata:bt(e)},r)]}))}))},Qe=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=ft(n,t),[2,N({name:"LimitExceededException",$fault:"client",$metadata:bt(e)},r)]}))}))},Ze=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=pt(n,t),[2,N({name:"NotAuthorizedException",$fault:"client",$metadata:bt(e)},r)]}))}))},Je=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=ht(n,t),[2,N({name:"ResourceConflictException",$fault:"client",$metadata:bt(e)},r)]}))}))},et=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=gt(n,t),[2,N({name:"ResourceNotFoundException",$fault:"client",$metadata:bt(e)},r)]}))}))},tt=function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n=e.body,r=mt(n,t),[2,N({name:"TooManyRequestsException",$fault:"client",$metadata:bt(e)},r)]}))}))},nt=function(e,t){return N(N(N({},void 0!==e.CustomRoleArn&&{CustomRoleArn:e.CustomRoleArn}),void 0!==e.IdentityId&&{IdentityId:e.IdentityId}),void 0!==e.Logins&&{Logins:ot(e.Logins,t)})},rt=function(e,t){return N(N(N({},void 0!==e.AccountId&&{AccountId:e.AccountId}),void 0!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId}),void 0!==e.Logins&&{Logins:ot(e.Logins,t)})},ot=function(e,t){return Object.entries(e).reduce((function(e,t){var n,r=G(t,2),o=r[0],a=r[1];return N(N({},e),((n={})[o]=a,n))}),{})},at=function(e,t){return{AccessKeyId:void 0!==e.AccessKeyId&&null!==e.AccessKeyId?e.AccessKeyId:void 0,Expiration:void 0!==e.Expiration&&null!==e.Expiration?new Date(Math.round(1e3*e.Expiration)):void 0,SecretKey:void 0!==e.SecretKey&&null!==e.SecretKey?e.SecretKey:void 0,SessionToken:void 0!==e.SessionToken&&null!==e.SessionToken?e.SessionToken:void 0}},it=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},st=function(e,t){return{Credentials:void 0!==e.Credentials&&null!==e.Credentials?at(e.Credentials):void 0,IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},ct=function(e,t){return{IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},lt=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},ut=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},dt=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},ft=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},pt=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},ht=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},gt=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},mt=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},bt=function(e){return{httpStatusCode:e.statusCode,httpHeaders:e.headers,requestId:e.headers["x-amzn-requestid"]}},vt=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},yt=function(e,t,n,r,o){return D(void 0,void 0,void 0,(function(){var a,i,s,c,l,u;return H(this,(function(d){switch(d.label){case 0:return[4,e.endpoint()];case 1:return a=d.sent(),i=a.hostname,s=a.protocol,c=void 0===s?"https":s,l=a.port,u={protocol:c,hostname:i,port:l,method:"POST",path:n,headers:t},void 0!==r&&(u.hostname=r),void 0!==o&&(u.body=o),[2,new qe(u)]}}))}))},wt=function(e,t){return function(e,t){return vt(e,t).then((function(e){return t.utf8Encoder(e)}))}(e,t).then((function(e){return e.length?JSON.parse(e):{}}))},_t={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"]},xt={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"]};function Ot(e,t,n){return{applyToStack:function(r){r.add(function(e,t){return function(n,r){return function(o){return Object(M.__awaiter)(void 0,void 0,void 0,(function(){var a,i,s,c,l;return Object(M.__generator)(this,(function(u){switch(u.label){case 0:return a=r.logger,i=r.outputFilterSensitiveLog,[4,n(o)];case 1:return s=u.sent().response,"function"==typeof(null==a?void 0:a.debug)&&a.debug({httpResponse:s}),[4,t(s,e)];case 2:return c=u.sent(),c.$metadata,l=Object(M.__rest)(c,["$metadata"]),"function"==typeof(null==a?void 0:a.info)&&a.info({output:i(l)}),[2,{response:s,output:c}]}}))}))}}}(e,n),_t),r.add(function(e,t){return function(n,r){return function(o){return Object(M.__awaiter)(void 0,void 0,void 0,(function(){var a,i,s;return Object(M.__generator)(this,(function(c){switch(c.label){case 0:return a=r.logger,i=r.inputFilterSensitiveLog,"function"==typeof(null==a?void 0:a.info)&&a.info({input:i(o.input)}),[4,t(o.input,e)];case 1:return s=c.sent(),"function"==typeof(null==a?void 0:a.debug)&&a.debug({httpRequest:s}),[2,n(Object(M.__assign)(Object(M.__assign)({},o),{request:s}))]}}))}))}}}(e,t),xt)}}}var kt=function(){var e=[],t=[],n=new Set,r=function(n){return e.forEach((function(e){n.add(e.middleware,Object(M.__assign)({},e))})),t.forEach((function(e){n.addRelativeTo(e.middleware,Object(M.__assign)({},e))})),n},o=function(e){var t=[];return e.before.forEach((function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,Object(M.__spread)(o(e)))})),t.push(e),e.after.reverse().forEach((function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,Object(M.__spread)(o(e)))})),t},a=function(){var n,r=[],a=[],i={};return e.forEach((function(e){var t=Object(M.__assign)(Object(M.__assign)({},e),{before:[],after:[]});t.name&&(i[t.name]=t),r.push(t)})),t.forEach((function(e){var t=Object(M.__assign)(Object(M.__assign)({},e),{before:[],after:[]});t.name&&(i[t.name]=t),a.push(t)})),a.forEach((function(e){if(e.toMiddleware){var t=i[e.toMiddleware];if(void 0===t)throw new Error(e.toMiddleware+" is not found when adding "+(e.name||"anonymous")+" middleware "+e.relation+" "+e.toMiddleware);"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}})),(n=r,n.sort((function(e,t){return Et[t.step]-Et[e.step]||St[t.priority||"normal"]-St[e.priority||"normal"]}))).map(o).reduce((function(e,t){return e.push.apply(e,Object(M.__spread)(t)),e}),[]).map((function(e){return e.middleware}))},i={add:function(t,r){void 0===r&&(r={});var o=r.name,a=Object(M.__assign)({step:"initialize",priority:"normal",middleware:t},r);if(o){if(n.has(o))throw new Error("Duplicate middleware name '"+o+"'");n.add(o)}e.push(a)},addRelativeTo:function(e,r){var o=r.name,a=Object(M.__assign)({middleware:e},r);if(o){if(n.has(o))throw new Error("Duplicated middleware name '"+o+"'");n.add(o)}t.push(a)},clone:function(){return r(kt())},use:function(e){e.applyToStack(i)},remove:function(r){return"string"==typeof r?function(r){var o=!1,a=function(e){return!e.name||e.name!==r||(o=!0,n.delete(r),!1)};return e=e.filter(a),t=t.filter(a),o}(r):function(r){var o=!1,a=function(e){return e.middleware!==r||(o=!0,e.name&&n.delete(e.name),!1)};return e=e.filter(a),t=t.filter(a),o}(r)},removeByTag:function(r){var o=!1,a=function(e){var t=e.tags,a=e.name;return!t||!t.includes(r)||(a&&n.delete(a),o=!0,!1)};return e=e.filter(a),t=t.filter(a),o},concat:function(e){var t=r(kt());return t.use(e),t},applyToStack:r,resolve:function(e,t){var n,r;try{for(var o=Object(M.__values)(a().reverse()),i=o.next();!i.done;i=o.next()){e=(0,i.value)(e,t)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e}};return i},Et={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},St={high:3,normal:2,low:1},At=function(){function e(e){this.middlewareStack=kt(),this.config=e}return e.prototype.send=function(e,t,n){var r="function"!=typeof t?t:void 0,o="function"==typeof t?t:n,a=e.resolveMiddleware(this.middlewareStack,this.config,r);if(!o)return a(e).then((function(e){return e.output}));a(e).then((function(e){return o(null,e.output)}),(function(e){return o(e)})).catch((function(){}))},e.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}(),Ct=function(){this.middlewareStack=kt()};var jt=function(){var e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,Object(M.__spread)([null],arguments)),n=new t;return Object.setPrototypeOf(n,e.prototype),n};jt.prototype=Object.create(String.prototype,{constructor:{value:jt,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(jt,String);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(M.__extends)(t,e),t.prototype.deserializeJSON=function(){return JSON.parse(e.prototype.toString.call(this))},t.prototype.toJSON=function(){return e.prototype.toString.call(this)},t.fromObject=function(e){return e instanceof t?e:new t(e instanceof String||"string"==typeof e?e:JSON.stringify(e))}}(jt);var Lt=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return R(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Ot(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o=t.logger,a={logger:o,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:ie.filterSensitiveLog,outputFilterSensitiveLog:ce.filterSensitiveLog};"function"==typeof o.info&&o.info({clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand"});var i=t.requestHandler;return r.resolve((function(e){return i.handle(e.request,n||{})}),a)},t.prototype.serialize=function(e,t){return function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},r=JSON.stringify(nt(e,t)),[2,yt(t,n,"/",void 0,r)]}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return D(void 0,void 0,void 0,(function(){var n,r,o;return H(this,(function(a){switch(a.label){case 0:return e.statusCode>=300?[2,Ve(e,t)]:[4,wt(e.body,t)];case 1:return n=a.sent(),{},r=st(n,t),o=N({$metadata:bt(e)},r),[2,Promise.resolve(o)]}}))}))}(e,t)},t}(Ct),Pt=function(e){function t(t,n){void 0===n&&(n=!0);var r=e.call(this,t)||this;return r.tryNextLink=n,r}return Object(M.__extends)(t,e),t}(Error);function Tt(e){return Promise.all(Object.keys(e).reduce((function(t,n){var r=e[n];return"string"==typeof r?t.push([n,r]):t.push(r().then((function(e){return[n,e]}))),t}),[])).then((function(e){return e.reduce((function(e,t){var n=Object(M.__read)(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}))}function Mt(e){var t=this;return function(){return Object(M.__awaiter)(t,void 0,void 0,(function(){var t,n,r,o,a,i,s,c,l,u,d,f,p;return Object(M.__generator)(this,(function(h){switch(h.label){case 0:return u=(l=e.client).send,d=Lt.bind,p={CustomRoleArn:e.customRoleArn,IdentityId:e.identityId},e.logins?[4,Tt(e.logins)]:[3,2];case 1:return f=h.sent(),[3,3];case 2:f=void 0,h.label=3;case 3:return[4,u.apply(l,[new(d.apply(Lt,[void 0,(p.Logins=f,p)]))])];case 4:return t=h.sent().Credentials,n=void 0===t?function(){throw new Pt("Response from Amazon Cognito contained no credentials")}():t,r=n.AccessKeyId,o=void 0===r?function(){throw new Pt("Response from Amazon Cognito contained no access key ID")}():r,a=n.Expiration,i=n.SecretKey,s=void 0===i?function(){throw new Pt("Response from Amazon Cognito contained no secret key")}():i,c=n.SessionToken,[2,{identityId:e.identityId,accessKeyId:o,secretAccessKey:s,sessionToken:c,expiration:a}]}}))}))}}var It=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return R(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Ot(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o=t.logger,a={logger:o,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:ue.filterSensitiveLog,outputFilterSensitiveLog:de.filterSensitiveLog};"function"==typeof o.info&&o.info({clientName:"CognitoIdentityClient",commandName:"GetIdCommand"});var i=t.requestHandler;return r.resolve((function(e){return i.handle(e.request,n||{})}),a)},t.prototype.serialize=function(e,t){return function(e,t){return D(void 0,void 0,void 0,(function(){var n,r;return H(this,(function(o){return n={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},r=JSON.stringify(rt(e,t)),[2,yt(t,n,"/",void 0,r)]}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return D(void 0,void 0,void 0,(function(){var n,r,o;return H(this,(function(a){switch(a.label){case 0:return e.statusCode>=300?[2,We(e,t)]:[4,wt(e.body,t)];case 1:return n=a.sent(),{},r=ct(n,t),o=N({$metadata:bt(e)},r),[2,Promise.resolve(o)]}}))}))}(e,t)},t}(Ct),Rt=function(){function e(e){void 0===e&&(e="aws:cognito-identity-ids"),this.dbName=e}return e.prototype.getItem=function(e){return this.withObjectStore("readonly",(function(t){var n=t.get(e);return new Promise((function(e){n.onerror=function(){return e(null)},n.onsuccess=function(){return e(n.result?n.result.value:null)}}))})).catch((function(){return null}))},e.prototype.removeItem=function(e){return this.withObjectStore("readwrite",(function(t){var n=t.delete(e);return new Promise((function(e,t){n.onerror=function(){return t(n.error)},n.onsuccess=function(){return e()}}))}))},e.prototype.setItem=function(e,t){return this.withObjectStore("readwrite",(function(n){var r=n.put({id:e,value:t});return new Promise((function(e,t){r.onerror=function(){return t(r.error)},r.onsuccess=function(){return e()}}))}))},e.prototype.getDb=function(){var e=self.indexedDB.open(this.dbName,1);return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)},e.onblocked=function(){n(new Error("Unable to access DB"))},e.onupgradeneeded=function(){var t=e.result;t.onerror=function(){n(new Error("Failed to create object store"))},t.createObjectStore("IdentityIds",{keyPath:"id"})}}))},e.prototype.withObjectStore=function(e,t){return this.getDb().then((function(n){var r=n.transaction("IdentityIds",e);return r.oncomplete=function(){return n.close()},new Promise((function(e,n){r.onerror=function(){return n(r.error)},e(t(r.objectStore("IdentityIds")))})).catch((function(e){throw n.close(),e}))}))},e}(),Nt=new(function(){function e(e){void 0===e&&(e={}),this.store=e}return e.prototype.getItem=function(e){return e in this.store?this.store[e]:null},e.prototype.removeItem=function(e){delete this.store[e]},e.prototype.setItem=function(e,t){this.store[e]=t},e}());function Dt(e){var t=this,n=e.accountId,r=e.cache,o=void 0===r?"object"==typeof self&&self.indexedDB?new Rt:"object"==typeof window&&window.localStorage?window.localStorage:Nt:r,a=e.client,i=e.customRoleArn,s=e.identityPoolId,c=e.logins,l=e.userIdentifier,u=void 0===l?c&&0!==Object.keys(c).length?void 0:"ANONYMOUS":l,d=u?"aws:cognito-identity-credentials:"+s+":"+u:void 0,f=function(){return Object(M.__awaiter)(t,void 0,void 0,(function(){var e,t,r,l,u,p,h,g,m;return Object(M.__generator)(this,(function(b){switch(b.label){case 0:return(t=d)?[4,o.getItem(d)]:[3,2];case 1:t=b.sent(),b.label=2;case 2:return(e=t)?[3,7]:(p=(u=a).send,h=It.bind,m={AccountId:n,IdentityPoolId:s},c?[4,Tt(c)]:[3,4]);case 3:return g=b.sent(),[3,5];case 4:g=void 0,b.label=5;case 5:return[4,p.apply(u,[new(h.apply(It,[void 0,(m.Logins=g,m)]))])];case 6:r=b.sent().IdentityId,l=void 0===r?function(){throw new Pt("Response from Amazon Cognito contained no identity ID")}():r,e=l,d&&Promise.resolve(o.setItem(d,e)).catch((function(){})),b.label=7;case 7:return[2,(f=Mt({client:a,customRoleArn:i,logins:c,identityId:e}))()]}}))}))};return function(){return f().catch((function(e){return Object(M.__awaiter)(t,void 0,void 0,(function(){return Object(M.__generator)(this,(function(t){throw d&&Promise.resolve(o.removeItem(d)).catch((function(){})),e}))}))}))}}var Ht=n(1071),Gt=n(1824),Ft=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,Bt)},Bt=function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()};for(var zt=function(){function e(e){void 0===e&&(e={}),this.httpOptions=e}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=null==t?void 0:t.abortSignal,r=this.httpOptions.requestTimeout;if(null==n?void 0:n.aborted){var o=new Error("Request aborted");return o.name="AbortError",Promise.reject(o)}var a=e.path;if(e.query){var i=function(e){var t,n,r=[];try{for(var o=Object(M.__values)(Object.keys(e).sort()),a=o.next();!a.done;a=o.next()){var i=a.value,s=e[i];if(i=Ft(i),Array.isArray(s))for(var c=0,l=s.length;c>=6;var l=o/4*3;a>>=i%8;for(var u=Math.floor(i/8),d=0;d>f)}}return new Uint8Array(n)}function Qt(e){return new Promise((function(t,n){var r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new Error("Reader aborted too early"));var o=null!==(e=r.result)&&void 0!==e?e:"",a=o.indexOf(","),i=a>-1?a+1:o.length;t(o.substring(i))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)}))}var Zt={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high"},Jt=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(n){return Object(M.__awaiter)(void 0,void 0,void 0,(function(){return Object(M.__generator)(this,(function(r){return[2,e.retryStrategy.retry(t,n)]}))}))}}}(e),Zt)}}},en=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],tn=["Throttling","ThrottlingException","ThrottledException","RequestThrottledException","TooManyRequestsException","ProvisionedThroughputExceededException","TransactionInProgressException","RequestLimitExceeded","BandwidthLimitExceeded","LimitExceededException","RequestThrottled","SlowDown","PriorRequestNotComplete","EC2ThrottledException"],nn=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"],rn=[500,502,503,504],on=function(e){var t;return tn.includes(e.name)||1==(null===(t=e.$retryable)||void 0===t?void 0:t.throttling)},an=n(1823),sn=function(e,t){return Math.floor(Math.min(2e4,Math.random()*Math.pow(2,t)*e))},cn=function(e){return!!e&&(function(e){return void 0!==e.$retryable}(e)||function(e){return en.includes(e.name)}(e)||on(e)||function(e){var t;return nn.includes(e.name)||rn.includes((null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||0)}(e))},ln=function(){function e(e,t){var n,r,o,a,i,s,c,l;this.maxAttemptsProvider=e,this.retryDecider=null!==(n=null==t?void 0:t.retryDecider)&&void 0!==n?n:cn,this.delayDecider=null!==(r=null==t?void 0:t.delayDecider)&&void 0!==r?r:sn,this.retryQuota=null!==(o=null==t?void 0:t.retryQuota)&&void 0!==o?o:(i=a=500,s=a,c=function(e){return"TimeoutError"===e.name?10:5},l=function(e){return c(e)<=s},Object.freeze({hasRetryTokens:l,retrieveRetryTokens:function(e){if(!l(e))throw new Error("No retry token available");var t=c(e);return s-=t,t},releaseRetryTokens:function(e){s+=null!=e?e:1,s=Math.min(s,i)}}))}return e.prototype.shouldRetry=function(e,t,n){return t>l]}t+="==".slice(0,4-s)}return t},bodyLengthChecker:function(e){if("string"==typeof e){for(var t=e.length,n=t-1;n>=0;n--){var r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2)}return t}return"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.size?e.size:void 0},credentialDefaultProvider:function(){},defaultUserAgent:(fn=Ht.name,pn=Ht.version,"aws-sdk-js-v3-"+fn+"/"+pn+" "+("undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:"")),maxAttempts:3,region:(dn="Region is missing",function(){throw new Error(dn)}),requestHandler:new zt,sha256:Gt.Sha256,streamCollector:function(e){return"function"==typeof Blob&&e instanceof Blob?function(e){return Object(M.__awaiter)(this,void 0,void 0,(function(){var t,n;return Object(M.__generator)(this,(function(r){switch(r.label){case 0:return[4,Qt(e)];case 1:return t=r.sent(),n=Xt(t),[2,new Uint8Array(n)]}}))}))}(e):function(e){return Object(M.__awaiter)(this,void 0,void 0,(function(){var t,n,r,o,a,i,s;return Object(M.__generator)(this,(function(c){switch(c.label){case 0:t=new Uint8Array(0),n=e.getReader(),r=!1,c.label=1;case 1:return r?[3,3]:[4,n.read()];case 2:return o=c.sent(),a=o.done,(i=o.value)&&(s=t,(t=new Uint8Array(s.length+i.length)).set(s),t.set(i,s.length)),r=a,[3,1];case 3:return[2,t]}}))}))}(e)},urlParser:function(e){var t,n=new URL(e),r=n.hostname,o=n.pathname,a=n.port,i=n.protocol,s=n.search;return s&&(t=function(e){var t,n,r={};if(e=e.replace(/^\?/,""))try{for(var o=Object(M.__values)(e.split("&")),a=o.next();!a.done;a=o.next()){var i=a.value,s=Object(M.__read)(i.split("="),2),c=s[0],l=s[1],u=void 0===l?null:l;c=decodeURIComponent(c),u&&(u=decodeURIComponent(u)),c in r?Array.isArray(r[c])?r[c].push(u):r[c]=[r[c],u]:r[c]=u}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(s)),{hostname:r,port:a?parseInt(a):void 0,protocol:i,path:o,query:t}},utf8Decoder:hn.a,utf8Encoder:hn.b}),xn=function(e){var t=e.endpoint,n=e.urlParser;if("string"==typeof t){var r=Promise.resolve(n(t));return function(){return r}}if("object"==typeof t){var o=Promise.resolve(t);return function(){return o}}return t},On=function(e){return Object(M.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r,o,a;return Object(M.__generator)(this,(function(i){switch(i.label){case 0:return t=e.tls,n=void 0===t||t,[4,e.region()];case 1:if(r=i.sent(),!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");return[4,e.regionInfoProvider(r)];case 2:if(!(o=(null!==(a=i.sent())&&void 0!==a?a:{}).hostname))throw new Error("Cannot resolve hostname from client config");return[2,e.urlParser((n?"https:":"http:")+"//"+o)]}}))}))},kn=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e};var En={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware"},Sn=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(n){return function(r){return Object(M.__awaiter)(t,void 0,void 0,(function(){var t,o,a,i,s;return Object(M.__generator)(this,(function(c){return t=r.request,qe.isInstance(t)&&(o=t.body,a=t.headers,o&&-1===Object.keys(a).map((function(e){return e.toLowerCase()})).indexOf("content-length")&&void 0!==(i=e(o))&&(t.headers=Object(M.__assign)(Object(M.__assign)({},t.headers),((s={})["content-length"]=String(i),s)))),[2,n(Object(M.__assign)(Object(M.__assign)({},r),{request:t}))]}))}))}}}(e.bodyLengthChecker),En)}}};var An={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"]},Cn=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(n){return Object(M.__awaiter)(void 0,void 0,void 0,(function(){var r,o;return Object(M.__generator)(this,(function(a){return qe.isInstance(n.request)?(r=n.request,o=(e.requestHandler.metadata||{}).handlerProtocol,(void 0===o?"":o).indexOf("h2")>=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]}))}))}}}(e),An)}}},jn={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize"},Ln=function(e){return{applyToStack:function(e){e.add((function(e,t){return function(n){return Object(M.__awaiter)(void 0,void 0,void 0,(function(){var r,o,a,i;return Object(M.__generator)(this,(function(s){switch(s.label){case 0:return r=t.logger,[4,e(n)];case 1:return o=s.sent(),r?(a=o.response,"function"==typeof r.info&&r.info({metadata:{statusCode:a.statusCode,requestId:null!==(i=a.headers["x-amzn-requestid"])&&void 0!==i?i:a.headers["x-amzn-request-id"],extendedRequestId:a.headers["x-amz-id-2"],cfId:a.headers["x-amz-cf-id"]}}),[2,o]):[2,o]}}))}))}}),jn)}}},Pn="X-Amz-Date".toLowerCase(),Tn=["authorization",Pn,"date"],Mn="X-Amz-Signature".toLowerCase(),In="X-Amz-Security-Token".toLowerCase(),Rn={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Nn=/^proxy-/,Dn=/^sec-/,Hn="AWS4-HMAC-SHA256-PAYLOAD",Gn={},Fn=[];function Bn(e,t,n){return e+"/"+t+"/"+n+"/aws4_request"}for(var zn={},Un={},qn=0;qn<256;qn++){var Vn=qn.toString(16).toLowerCase();1===Vn.length&&(Vn="0"+Vn),zn[qn]=Vn,Un[Vn]=qn}function Wn(e){for(var t="",n=0;n-1&&delete e.headers[a]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e}function Zn(e){return function(e){if("number"==typeof e)return new Date(1e3*e);if("string"==typeof e)return Number(e)?new Date(1e3*Number(e)):new Date(e);return e}(e).toISOString().replace(/\.\d{3}Z$/,"Z")}var Jn=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,o=e.service,a=e.sha256,i=e.uriEscapePath,s=void 0===i||i;this.service=o,this.sha256=a,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof t||t,this.regionProvider=nr(r),this.credentialProvider=rr(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),Object(M.__awaiter)(this,void 0,void 0,(function(){var n,r,o,a,i,s,c,l,u,d,f,p,h,g,m,b,v,y,w,_,x,O,k;return Object(M.__generator)(this,(function(E){switch(E.label){case 0:return n=t.signingDate,r=void 0===n?new Date:n,o=t.expiresIn,a=void 0===o?3600:o,i=t.unsignableHeaders,s=t.signableHeaders,c=t.signingRegion,l=t.signingService,[4,this.credentialProvider()];case 1:return u=E.sent(),null==c?[3,2]:(f=c,[3,4]);case 2:return[4,this.regionProvider()];case 3:f=E.sent(),E.label=4;case 4:return d=f,p=er(r),h=p.longDate,g=p.shortDate,a>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(m=Bn(g,d,null!=l?l:this.service),b=function(e){var t,n,r="function"==typeof e.clone?e.clone():Yn(e),o=r.headers,a=r.query,i=void 0===a?{}:a;try{for(var s=Object(M.__values)(Object.keys(o)),c=s.next();!c.done;c=s.next()){var l=c.value;"x-amz-"===l.toLowerCase().substr(0,6)&&(i[l]=o[l],delete o[l])}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return Object(M.__assign)(Object(M.__assign)({},e),{headers:o,query:i})}(Qn(e)),u.sessionToken&&(b.query["X-Amz-Security-Token"]=u.sessionToken),b.query["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",b.query["X-Amz-Credential"]=u.accessKeyId+"/"+m,b.query["X-Amz-Date"]=h,b.query["X-Amz-Expires"]=a.toString(10),v=$n(b,i,s),b.query["X-Amz-SignedHeaders"]=tr(v),y=b.query,w="X-Amz-Signature",_=this.getSignature,x=[h,m,this.getSigningKey(u,d,g,l)],O=this.createCanonicalRequest,k=[b,v],[4,Kn(e,this.sha256)]);case 5:return[4,_.apply(this,x.concat([O.apply(this,k.concat([E.sent()]))]))];case 6:return y[w]=E.sent(),[2,b]}}))}))},e.prototype.sign=function(e,t){return Object(M.__awaiter)(this,void 0,void 0,(function(){return Object(M.__generator)(this,(function(n){return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]}))}))},e.prototype.signEvent=function(e,t){var n=e.headers,r=e.payload,o=t.signingDate,a=void 0===o?new Date:o,i=t.priorSignature,s=t.signingRegion,c=t.signingService;return Object(M.__awaiter)(this,void 0,void 0,(function(){var e,t,o,l,u,d,f,p,h,g,m;return Object(M.__generator)(this,(function(b){switch(b.label){case 0:return null==s?[3,1]:(t=s,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=b.sent(),b.label=3;case 3:return e=t,o=er(a),l=o.shortDate,u=o.longDate,d=Bn(l,e,null!=c?c:this.service),[4,Kn({headers:{},body:r},this.sha256)];case 4:return f=b.sent(),(p=new this.sha256).update(n),g=Wn,[4,p.digest()];case 5:return h=g.apply(void 0,[b.sent()]),m=[Hn,u,d,i,h,f].join("\n"),[2,this.signString(m,{signingDate:a,signingRegion:e,signingService:c})]}}))}))},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,o=void 0===r?new Date:r,a=n.signingRegion,i=n.signingService;return Object(M.__awaiter)(this,void 0,void 0,(function(){var t,n,r,s,c,l,u,d;return Object(M.__generator)(this,(function(f){switch(f.label){case 0:return[4,this.credentialProvider()];case 1:return t=f.sent(),null==a?[3,2]:(r=a,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=f.sent(),f.label=4;case 4:return n=r,s=er(o).shortDate,u=(l=this.sha256).bind,[4,this.getSigningKey(t,n,s,i)];case 5:return(c=new(u.apply(l,[void 0,f.sent()]))).update(e),d=Wn,[4,c.digest()];case 6:return[2,d.apply(void 0,[f.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,o=void 0===r?new Date:r,a=n.signableHeaders,i=n.unsignableHeaders,s=n.signingRegion,c=n.signingService;return Object(M.__awaiter)(this,void 0,void 0,(function(){var t,n,r,l,u,d,f,p,h,g,m;return Object(M.__generator)(this,(function(b){switch(b.label){case 0:return[4,this.credentialProvider()];case 1:return t=b.sent(),null==s?[3,2]:(r=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=b.sent(),b.label=4;case 4:return n=r,l=Qn(e),u=er(o),d=u.longDate,f=u.shortDate,p=Bn(f,n,null!=c?c:this.service),l.headers[Pn]=d,t.sessionToken&&(l.headers[In]=t.sessionToken),[4,Kn(l,this.sha256)];case 5:return h=b.sent(),!function(e,t){var n,r;e=e.toLowerCase();try{for(var o=Object(M.__values)(Object.keys(t)),a=o.next();!a.done;a=o.next()){if(e===a.value.toLowerCase())return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}("x-amz-content-sha256",l.headers)&&this.applyChecksum&&(l.headers["x-amz-content-sha256"]=h),g=$n(l,i,a),[4,this.getSignature(d,p,this.getSigningKey(t,n,f,c),this.createCanonicalRequest(l,g,h))];case 6:return m=b.sent(),l.headers.authorization="AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+p+", SignedHeaders="+tr(g)+", Signature="+m,[2,l]}}))}))},e.prototype.createCanonicalRequest=function(e,t,n){var r=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,n,r=e.query,o=void 0===r?{}:r,a=[],i={},s=function(e){if(e.toLowerCase()===Mn)return"continue";a.push(e);var t=o[e];"string"==typeof t?i[e]=Ft(e)+"="+Ft(t):Array.isArray(t)&&(i[e]=t.slice(0).sort().reduce((function(t,n){return t.concat([Ft(e)+"="+Ft(n)])}),[]).join("&"))};try{for(var c=Object(M.__values)(Object.keys(o).sort()),l=c.next();!l.done;l=c.next()){s(l.value)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return a.map((function(e){return i[e]})).filter((function(e){return e})).join("&")}(e)+"\n"+r.map((function(e){return e+":"+t[e]})).join("\n")+"\n\n"+r.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return Object(M.__awaiter)(this,void 0,void 0,(function(){var r,o;return Object(M.__generator)(this,(function(a){switch(a.label){case 0:return(r=new this.sha256).update(n),[4,r.digest()];case 1:return o=a.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+Wn(o)]}}))}))},e.prototype.getCanonicalPath=function(e){var t=e.path;return this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/"):t},e.prototype.getSignature=function(e,t,n,r){return Object(M.__awaiter)(this,void 0,void 0,(function(){var o,a,i,s,c;return Object(M.__generator)(this,(function(l){switch(l.label){case 0:return[4,this.createStringToSign(e,t,r)];case 1:return o=l.sent(),s=(i=this.sha256).bind,[4,n];case 2:return(a=new(s.apply(i,[void 0,l.sent()]))).update(o),c=Wn,[4,a.digest()];case 3:return[2,c.apply(void 0,[l.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,n,r){return function(e,t,n,r,o){var a=n+":"+r+":"+o+":"+t.accessKeyId+":"+t.sessionToken;if(a in Gn)return Gn[a];for(Fn.push(a);Fn.length>50;)delete Gn[Fn.shift()];return Gn[a]=new Promise((function(i,s){var c,l,u=Promise.resolve("AWS4"+t.secretAccessKey),d=function(t){(u=u.then((function(n){return r=t,(o=new e(n)).update(r),o.digest();var r,o}))).catch((function(){}))};try{for(var f=Object(M.__values)([n,r,o,"aws4_request"]),p=f.next();!p.done;p=f.next()){d(p.value)}}catch(e){c={error:e}}finally{try{p&&!p.done&&(l=f.return)&&l.call(f)}finally{if(c)throw c.error}}u.then(i,(function(e){delete Gn[a],s(e)}))}))}(this.sha256,e,n,t,r||this.service)},e}(),er=function(e){var t=Zn(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},tr=function(e){return Object.keys(e).sort().join(";")},nr=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e},rr=function(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e};function or(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e}var ar={name:"getUserAgentMiddleware",step:"build",tags:["SET_USER_AGENT","USER_AGENT"]},ir=function(e){return{applyToStack:function(t){var n;t.add((n=e,function(e){return function(t){var r=t.request;if(!qe.isInstance(r))return e(t);var o=r.headers,a="node"===n.runtime?"user-agent":"x-amz-user-agent";return o[a]?o[a]+=" "+n.defaultUserAgent:o[a]=""+n.defaultUserAgent,n.customUserAgent&&(o[a]+=" "+n.customUserAgent),e(Object(M.__assign)(Object(M.__assign)({},t),{request:r}))}}),ar)}}},sr=function(e){function t(t){var n,r,o=this,a=function(e){if(!e.region)throw new Error("Region is missing");return Object(M.__assign)(Object(M.__assign)({},e),{region:kn(e.region)})}(N(N({},_n),t)),i=function(e){var t=un(e.maxAttempts);return Object(M.__assign)(Object(M.__assign)({},e),{maxAttempts:t,retryStrategy:e.retryStrategy||new ln(t)})}(function(e){var t,n=this,r=or(e.credentials||e.credentialDefaultProvider(e)),o=e.signingEscapePath,a=void 0===o||o,i=e.systemClockOffset,s=void 0===i?e.systemClockOffset||0:i,c=e.sha256;return t=e.signer?or(e.signer):function(){return or(e.region)().then((function(t){return Object(M.__awaiter)(n,void 0,void 0,(function(){return Object(M.__generator)(this,(function(n){switch(n.label){case 0:return[4,e.regionInfoProvider(t)];case 1:return[2,[n.sent()||{},t]]}}))}))})).then((function(t){var n=Object(M.__read)(t,2),o=n[0],i=n[1],s=o.signingRegion,l=void 0===s?e.signingRegion:s,u=o.signingService,d=void 0===u?e.signingName:u;return e.signingRegion=e.signingRegion||l||i,e.signingName=e.signingName||d,new Jn({credentials:r,region:e.signingRegion,service:e.signingName,sha256:c,uriEscapePath:a})}))},Object(M.__assign)(Object(M.__assign)({},e),{systemClockOffset:s,signingEscapePath:a,credentials:r,signer:t})}((n=a,Object(M.__assign)(Object(M.__assign)({},n),{tls:null===(r=n.tls)||void 0===r||r,endpoint:n.endpoint?xn(n):function(){return On(n)},isCustomEndpoint:!!n.endpoint}))));return(o=e.call(this,i)||this).config=i,o.middlewareStack.use(Jt(o.config)),o.middlewareStack.use(ir(o.config)),o.middlewareStack.use(Sn(o.config)),o.middlewareStack.use(Cn(o.config)),o.middlewareStack.use(Ln(o.config)),o}return R(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(At),cr=function(){return(cr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1](new Date).getTime()?(dr.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:o,expires_at:a})):this._refreshHandlers[t]&&"function"==typeof this._refreshHandlers[t]?(dr.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:this._refreshHandlers[t],provider:t,user:n})):(dr.debug("no refresh handler for provider:",t),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(e){var t=this,n=e.refreshHandler,r=e.provider,o=e.user;return b(n,[],1e4).then((function(e){return dr.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:r,token:e.token,user:o,identity_id:e.identity_id,expires_at:e.expires_at})})).catch((function(e){return"string"==typeof e&&0===e.toLowerCase().lastIndexOf("network error",e.length)||t.clear(),dr.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)}))},e.prototype._isExpired=function(e){if(!e)return dr.debug("no credentials for expiration check"),!0;dr.debug("are these credentials expired?",e);var t=Date.now();return e.expiration.getTime()<=t},e.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=function(){return lr(this,void 0,void 0,(function(){var e,t,n,r,o,a,i,s=this;return ur(this,(function(c){switch(c.label){case 0:if(dr.debug("setting credentials for guest"),e=this._config,t=e.identityPoolId,n=e.region,e.mandatorySignIn)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!t)return dr.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")];if(!n)return dr.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")];r=void 0,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this._storageSync];case 2:return c.sent(),r=this._storage.getItem("CognitoIdentityId-"+t),this._identityId=r,[3,4];case 3:return o=c.sent(),dr.debug("Failed to get the cached identityId",o),[3,4];case 4:return a=new sr({region:n,customUserAgent:P()}),i=void 0,i=r?Mt({identityId:r,client:a})():function(){return lr(s,void 0,void 0,(function(){var e;return ur(this,(function(n){switch(n.label){case 0:return[4,a.send(new It({IdentityPoolId:t}))];case 1:return e=n.sent().IdentityId,this._identityId=e,[2,Mt({client:a,identityId:e})()]}}))}))}().catch((function(e){return lr(s,void 0,void 0,(function(){return ur(this,(function(t){throw e}))}))})),[2,this._loadCredentials(i,"guest",!1,null).then((function(e){return e})).catch((function(e){return lr(s,void 0,void 0,(function(){var n=this;return ur(this,(function(o){return"ResourceNotFoundException"===e.name&&e.message==="Identity '"+r+"' not found."?(dr.debug("Failed to load guest credentials"),this._storage.removeItem("CognitoIdentityId-"+t),i=function(){return lr(n,void 0,void 0,(function(){var e;return ur(this,(function(n){switch(n.label){case 0:return[4,a.send(new It({IdentityPoolId:t}))];case 1:return e=n.sent().IdentityId,this._identityId=e,[2,Mt({client:a,identityId:e})()]}}))}))}().catch((function(e){return lr(n,void 0,void 0,(function(){return ur(this,(function(t){throw e}))}))})),[2,this._loadCredentials(i,"guest",!1,null)]):[2,e]}))}))}))]}}))}))},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,n=e.token,r=e.identity_id,o={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[t]||t;if(!o)return Promise.reject("You must specify a federated provider");var a={};a[o]=n;var i=this._config,s=i.identityPoolId,c=i.region;if(!s)return dr.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!c)return dr.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var l=new sr({region:c,customUserAgent:P()}),u=void 0;r?u=Mt({identityId:r,logins:a,client:l})():u=Dt({logins:a,identityPoolId:s,client:l})();return this._loadCredentials(u,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;dr.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),r=this._config,o=r.region,a=r.userPoolId,i=r.identityPoolId;if(!i)return dr.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!o)return dr.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var s={};s["cognito-idp."+o+".amazonaws.com/"+a]=n;var c=new sr({region:o,customUserAgent:P()}),l=lr(t,void 0,void 0,(function(){var e;return ur(this,(function(t){switch(t.label){case 0:return[4,c.send(new It({IdentityPoolId:i,Logins:s}))];case 1:return e=t.sent().IdentityId,this._identityId=e,[2,Mt({client:c,logins:s,identityId:e})()]}}))})).catch((function(e){return lr(t,void 0,void 0,(function(){return ur(this,(function(t){throw e}))}))}));return this._loadCredentials(l,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,n,r){var o=this,a=this,i=this._config.identityPoolId;return new Promise((function(s,c){e.then((function(e){return lr(o,void 0,void 0,(function(){var o,c,l,u,d,f;return ur(this,(function(p){switch(p.label){case 0:if(dr.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),a._credentials=e,a._credentials.authenticated=n,a._credentials_source=t,a._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===t){o=Object.assign({id:this._credentials.identityId},r.user),c=r.provider,l=r.token,u=r.expires_at,d=r.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:c,token:l,user:o,expires_at:u,identity_id:d}))}catch(e){dr.debug("Failed to put federated info into auth storage",e)}}if("guest"!==t)return[3,4];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,this._storageSync];case 2:return p.sent(),this._storage.setItem("CognitoIdentityId-"+i,e.identityId),[3,4];case 3:return f=p.sent(),dr.debug("Failed to cache identityId",f),[3,4];case 4:return s(a._credentials),[2]}}))}))})).catch((function(t){if(t)return dr.debug("Failed to load credentials",e),dr.debug("Error loading credentials",t),void c(t)}))}))},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(dr.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return lr(this,void 0,void 0,(function(){return ur(this,(function(e){return this._credentials=null,this._credentials_source=null,dr.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}())(null);T.a.register(fr);var pr=new o.a("Parser"),hr=function(e){var t,n={};if(e.aws_mobile_analytics_app_id){var r={AWSPinpoint:{appId:e.aws_mobile_analytics_app_id,region:e.aws_mobile_analytics_app_region}};n.Analytics=r}return(e.aws_cognito_identity_pool_id||e.aws_user_pools_id)&&(n.Auth={userPoolId:e.aws_user_pools_id,userPoolWebClientId:e.aws_user_pools_web_client_id,region:e.aws_cognito_region,identityPoolId:e.aws_cognito_identity_pool_id,identityPoolRegion:e.aws_cognito_region,mandatorySignIn:"enable"===e.aws_mandatory_sign_in}),t=e.aws_user_files_s3_bucket?{AWSS3:{bucket:e.aws_user_files_s3_bucket,region:e.aws_user_files_s3_bucket_region,dangerouslyConnectToHttpEndpointForTesting:e.aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing}}:e?e.Storage||e:{},n.Analytics=Object.assign({},n.Analytics,e.Analytics),n.Auth=Object.assign({},n.Auth,e.Auth),n.Storage=Object.assign({},t),pr.debug("parse config",e,"to amplifyconfig",n),n},gr=function(){function e(){}return e.parseMobilehubConfig=hr,e}(),mr=n(551);function br(e,t){void 0===t&&(t={});var n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return void 0===t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(e){}return e}var vr=function(){return(vr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0&&this.changeListeners.splice(t,1)},e}(),wr=Object(l.b)().isBrowser,_r=function(){function e(e){void 0===e&&(e={}),this.cookies=new yr,this.store=wr?window.localStorage:Object.create(null),this.cookies=e.req?new yr(e.req.headers.cookie):new yr,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!0,configurable:!0}),e.prototype.clear=function(){var e=this;Array.from(new Array(this.length)).map((function(t,n){return e.key(n)})).forEach((function(t){return e.removeItem(t)}))},e.prototype.getItem=function(e){return this.getLocalItem(e)},e.prototype.getLocalItem=function(e){return Object.prototype.hasOwnProperty.call(this.store,e)?this.store[e]:null},e.prototype.getUniversalItem=function(e){return this.cookies.get(e)},e.prototype.key=function(e){return Object.keys(this.store)[e]},e.prototype.removeItem=function(e){this.removeLocalItem(e),this.removeUniversalItem(e)},e.prototype.removeLocalItem=function(e){delete this.store[e]},e.prototype.removeUniversalItem=function(e){this.cookies.remove(e,{path:"/"})},e.prototype.setItem=function(e,t){switch(this.setLocalItem(e,t),e.split(".").pop()){case"LastAuthUser":case"accessToken":case"idToken":this.setUniversalItem(e,t)}},e.prototype.setLocalItem=function(e,t){this.store[e]=t},e.prototype.setUniversalItem=function(e,t){this.cookies.set(e,t,{path:"/",sameSite:!0,secure:"localhost"!==window.location.hostname})},e}();var xr=n(254),Or=n(250),kr=function(e){var t=window.open(e,"_self");return t?Promise.resolve(t):Promise.reject()},Er=n(632),Sr=n.n(Er),Ar=n(658),Cr=n.n(Ar),jr=function(){return(jr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Mr="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Ir=function(e,t,n){a.a.dispatch("auth",{event:e,data:t,message:n},"Auth",Mr)},Rr=new o.a("OAuth"),Nr=function(){function e(e){var t=e.config,n=e.cognitoClientId,r=e.scopes,o=void 0===r?[]:r;if(this._urlOpener=t.urlOpener||kr,this._config=t,this._cognitoClientId=n,!this.isValidScopes(o))throw Error("scopes must be a String Array");this._scopes=o}return e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))},e.prototype.oauthSignIn=function(e,t,n,o,a,i){void 0===e&&(e="code"),void 0===a&&(a=r.b.Cognito);var s=this._generateState(32),c=i?s+"-"+i.split("").map((function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")})).join(""):s;!function(e){window.sessionStorage.setItem("oauth_state",e)}(c);var l,u=this._generateRandom(128);l=u,window.sessionStorage.setItem("ouath_pkce_key",l);var d=this._generateChallenge(u),f=this._scopes.join(" "),p="https://"+t+"/oauth2/authorize?"+Object.entries(jr(jr({redirect_uri:n,response_type:e,client_id:o,identity_provider:a,scope:f,state:c},"code"===e?{code_challenge:d}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map((function(e){var t=Tr(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&");Rr.debug("Redirecting to "+p),this._urlOpener(p,n)},e.prototype._handleCodeFlow=function(e){return Lr(this,void 0,void 0,(function(){var t,n,o,a,i,s,c,l,u,d,f,p;return Pr(this,(function(h){switch(h.label){case 0:return(t=(Object(Or.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=Tr(t,2),o=r[0],a=r[1];return jr(jr({},e),((n={})[o]=a,n))}),{code:void 0}).code)&&Object(Or.parse)(e).pathname===Object(Or.parse)(this._config.redirectSignIn).pathname?(n="https://"+this._config.domain+"/oauth2/token",Ir("codeFlow",{},"Retrieving tokens from "+n),o=Object(r.d)(this._config)?this._cognitoClientId:this._config.clientID,a=Object(r.d)(this._config)?this._config.redirectSignIn:this._config.redirectUri,g=window.sessionStorage.getItem("ouath_pkce_key"),window.sessionStorage.removeItem("ouath_pkce_key"),s=jr({grant_type:"authorization_code",code:t,client_id:o,redirect_uri:a},(i=g)?{code_verifier:i}:{}),Rr.debug("Calling token endpoint: "+n+" with",s),c=Object.entries(s).map((function(e){var t=Tr(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&"),[4,fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:c})]):[2];case 1:return[4,h.sent().json()];case 2:if(l=h.sent(),u=l.access_token,d=l.refresh_token,f=l.id_token,p=l.error)throw new Error(p);return[2,{accessToken:u,refreshToken:d,idToken:f}]}var g}))}))},e.prototype._handleImplicitFlow=function(e){return Lr(this,void 0,void 0,(function(){var t,n,r;return Pr(this,(function(o){return t=(Object(Or.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=Tr(t,2),o=r[0],a=r[1];return jr(jr({},e),((n={})[o]=a,n))}),{id_token:void 0,access_token:void 0}),n=t.id_token,r=t.access_token,Ir("implicitFlow",{},"Got tokens from "+e),Rr.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:r,idToken:n,refreshToken:null}]}))}))},e.prototype.handleAuthResponse=function(e){return Lr(this,void 0,void 0,(function(){var t,n,r,o,a,i,s;return Pr(this,(function(c){switch(c.label){case 0:if(c.trys.push([0,5,,6]),t=e?jr(jr({},(Object(Or.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=Tr(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})),(Object(Or.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=Tr(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})):{},n=t.error,r=t.error_description,n)throw new Error(r);return o=this._validateState(t),Rr.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType?[3,2]:(a=[{}],[4,this._handleCodeFlow(e)]);case 1:return[2,jr.apply(void 0,[jr.apply(void 0,a.concat([c.sent()])),{state:o}])];case 2:return i=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,jr.apply(void 0,[jr.apply(void 0,i.concat([c.sent()])),{state:o}])];case 4:return[3,6];case 5:throw s=c.sent(),Rr.error("Error handling auth response.",s),s;case 6:return[2]}}))}))},e.prototype._validateState=function(e){if(e){var t,n=(t=window.sessionStorage.getItem("oauth_state"),window.sessionStorage.removeItem("oauth_state"),t),r=e.state;if(n&&n!==r)throw new Error("Invalid state in OAuth flow");return r}},e.prototype.signOut=function(){return Lr(this,void 0,void 0,(function(){var e,t,n;return Pr(this,(function(o){return e="https://"+this._config.domain+"/logout?",t=Object(r.d)(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=Object(r.d)(this._config)?this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(n)}).map((function(e){var t=Tr(e,2);return t[0]+"="+t[1]})).join("&"),Ir("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+e),Rr.debug("Signing out from "+e),[2,this._urlOpener(e)]}))}))},e.prototype._generateState=function(e){for(var t="",n=e,r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";n>0;--n)t+=r[Math.round(Math.random()*(r.length-1))];return t},e.prototype._generateChallenge=function(e){return this._base64URL(Sr()(e))},e.prototype._base64URL=function(e){return e.toString(Cr.a).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(e){var t=new Uint8Array(e);if("undefined"!=typeof window&&window.crypto)window.crypto.getRandomValues(t);else for(var n=0;n0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},$r=new o.a("AuthClass"),Kr="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Yr=function(e,t,n){a.a.dispatch("auth",{event:e,data:t,message:n},"Auth",Kr)},Xr=new(function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.Credentials=fr,this.wrapRefreshSessionCallback=function(e){return function(t,n){return n?Yr("tokenRefresh",void 0,"New token retrieved"):Yr("tokenRefresh_failure",t,"Failed to retrieve new token"),e(t,n)}},this.configure(e),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),a.a.listen("auth",(function(e){switch(e.payload.event){case"signIn":t._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":t._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":t._storage.setItem("amplify-signin-with-hostedUI","true")}}))}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(e){var t=this;if(!e)return this._config||{};$r.debug("configure Auth");var n=Object.assign({},this._config,gr.parseMobilehubConfig(e).Auth,e);this._config=n;var o=this._config,a=o.userPoolId,i=o.userPoolWebClientId,s=o.cookieStorage,u=o.oauth,d=o.region,f=o.identityPoolId,p=o.mandatorySignIn,h=o.refreshHandlers,g=o.identityPoolRegion,m=o.clientMetadata,b=o.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw $r.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=s?new xr.i(s):e.ssr?new _r:(new c).getStorage();if(this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),a){var v={UserPoolId:a,ClientId:i,endpoint:b};v.Storage=this._storage,this.userPool=new xr.g(v,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:p,region:g||d,userPoolId:a,identityPoolId:f,refreshHandlers:h,storage:this._storage});var y=u?Object(r.d)(this._config.oauth)?u:u.awsCognito:void 0;if(y){var w=Object.assign({cognitoClientId:i,UserPoolId:a,domain:y.domain,scopes:y.scope,redirectSignIn:y.redirectSignIn,redirectSignOut:y.redirectSignOut,responseType:y.responseType,Storage:this._storage,urlOpener:y.urlOpener,clientMetadata:m},y.options);this._oAuthHandler=new Nr({scopes:w.scopes,config:w,cognitoClientId:w.cognitoClientId});var _={};!function(e){if(l.a.browserOrNode().isBrowser&&window.location)e({url:window.location.href});else if(!l.a.browserOrNode().isNode)throw new Error("Not supported")}((function(e){var n=e.url;_[n]||(_[n]=!0,t._handleAuthResponse(n))}))}return Yr("configured",null,"The Auth category has been configured successfully"),this._config},e.prototype.signUp=function(e){for(var t=this,n=[],o=1;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r,o,a;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;!function(e){e.HouseholdId="householdId",e.PerformanceRange="performanceRange",e.ReviewId="reviewId"}(r||(r={})),function(e){e.OAuthAccessToken="accessToken",e.AWSCredentials="creds",e.DepartureTimestamp="departureTimestamp",e.FederatedIdentity="aws-amplify-federatedInfo",e.LastActiveTimestamp="lat"}(o||(o={})),function(e){e.RedirectTo="redirectTo"}(a||(a={}))},function(e,t,n){"use strict";function r(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.lengthe.length)&&(t=e.length);for(var n=0,r=new Array(t);nh;h++)if((m=u?y(r(v=e[h])[0],v[1]):y(e[h]))&&m instanceof l)return m;return new l(!1)}f=p.call(e)}for(b=f.next;!(v=b.call(f)).done;)if("object"==typeof(m=c(f,y,v.value,u))&&m&&m instanceof l)return m;return new l(!1)}).stop=function(e){return new l(!0,e)}},function(e,t,n){"use strict";var r=n(1527);n.d(t,"a",(function(){return r.a}));var o=n(1530);n.d(t,"c",(function(){return o.a}));var a=n(183);n.d(t,"b",(function(){return a.a})),n.d(t,"d",(function(){return a.f}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var r,o=n(148),a=n(0);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var i,s,c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},l={isBucketingEnabled:!0,hasGameplanEditor:!0,bucketingPage:!0,wealthSummaryPage:!0,performance3Yr5Yr10YrChart:!0},u=function(){var e=Object(o.useFlags)();return Object(a.useMemo)((function(){return 0===Object.keys(e).length?l:e}),[e])};c(u,"useFlags{}\nuseMemo{}",(function(){return[o.useFlags]})),(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(i.register(l,"DEFAULT_FEATURE_FLAGS","/__w/1271/s/packages/gameplan/src/common/utils/launch-darkly.ts"),i.register(u,"useFeatureFlags","/__w/1271/s/packages/gameplan/src/common/utils/launch-darkly.ts")),(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&s(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";function r(e,t){if(e.length!==t.length)return!1;for(var n=0;nr[e]?-1:1:n[e]>r[e]?1:-1}))},f=function(e,t){switch(t.type){case a.t.ClearFiltersAction:return s(s({},e),{},{custodians:[],registrations:[],strategies:[],bucketTypes:[]});case a.t.ClearLoadingCount:return s(s({},e),{},{loading:[]});case a.t.ClearPerformanceErrors:return s(s({},e),{},{errors:[]});case a.t.FlagLoading:return s(s({},e),{},{loading:e.loading.concat(t.payload)});case a.t.FlagPerformanceError:return s(s({},e),{},{errors:e.errors.concat(t.payload)});case a.t.RemoveLoadingFlag:return s(s({},e),{},{loading:e.loading.filter((function(e){return e!==t.payload}))});case a.t.SetCustodianFilters:return s(s({},e),{},{custodians:t.payload});case a.t.SetExpandedSleeve:var n=t.payload;return e.expandedSleeveId===n?s(s({},e),{},{expandedSleeveId:null}):s(s({},e),{},{expandedSleeveId:n});case a.t.SetRegistrationFilters:return s(s({},e),{},{registrations:t.payload});case a.t.SetStrategyFilters:return s(s({},e),{},{strategies:t.payload});case a.t.SetBucketTypeFilters:return s(s({},e),{},{bucketTypes:t.payload});case a.t.ToggleSortOnColumn:var r=t.payload;return e.sortColumn===r&&"asc"===e.sortOrder?s(s({},e),{},{sortColumn:r,sortOrder:"desc"}):s(s({},e),{},{sortColumn:r,sortOrder:"asc"});default:throw new Error}},p=function(e,t,n,r,o){var a=e.strategy,i=e.category,s=e.custodianName,c=e.bucketType,l=!0;return t.length&&(l=t.includes(a)),n.length&&(l=l&&n.includes(i)),r.length&&(l=l&&r.includes(s)),o.length&&(l=l&&o.includes(c)),l},h=Object(o.createContext)((function(){})),g=Object(o.createContext)(a.o);(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(l.register(d,"sortObjectArray","/__w/1271/s/packages/gameplan/src/common/utils/performance-state.ts"),l.register(f,"reducer","/__w/1271/s/packages/gameplan/src/common/utils/performance-state.ts"),l.register(p,"sleeveIsVisible","/__w/1271/s/packages/gameplan/src/common/utils/performance-state.ts"),l.register(h,"PerformanceDispatchContext","/__w/1271/s/packages/gameplan/src/common/utils/performance-state.ts"),l.register(g,"PerformanceStateContext","/__w/1271/s/packages/gameplan/src/common/utils/performance-state.ts")),(u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&u(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return w})),n.d(t,"b",(function(){return _})),n.d(t,"f",(function(){return x})),n.d(t,"a",(function(){return O})),n.d(t,"j",(function(){return k})),n.d(t,"i",(function(){return E})),n.d(t,"h",(function(){return S})),n.d(t,"g",(function(){return A})),n.d(t,"e",(function(){return C}));var r,o,a,i,s,c,l,u,d,f,p,h=n(1);function g(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(p="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&p(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var m,b,v="3rem",y=Object(h.css)(r||(r=g(["\n background-color: ",";\n"])),(function(e){return e.theme.colors.lightContrast})),w=Object(h.css)(o||(o=g(["\n color: ",";\n"])),(function(e){return e.theme.colors.forms.placeholder})),_=Object(h.css)(a||(a=g(["\n outline: none;\n border: ",";\n"])),(function(e){return e.theme.borders.forms.focus})),x=_,O=Object(h.css)(i||(i=g(["\n border: ",";\n color: ",";\n\n ","\n"])),(function(e){return e.theme.borders.forms.input}),(function(e){return e.theme.colors.forms.input}),y),k=Object(h.css)(s||(s=g(["\n font-family: ",";\n"])),(function(e){return e.theme.fonts.primary})),E=Object(h.css)(c||(c=g(["\n ","\n"])),(function(e){var t=e.theme;return e.error?Object(h.css)(l||(l=g(["\n border: ",";\n "])),t.borders.forms.error):null})),S=Object(h.css)(u||(u=g(["\n font-weight: ",";\n font-size: ",";\n"])),(function(e){return e.theme.fontWeights.light}),(function(e){return e.theme.fontSizes.baseline})),A=Object(h.css)(d||(d=g(["\n & + & {\n margin-top: ",";\n }\n"])),(function(e){return e.theme.space[4]})),C=Object(h.css)(f||(f=g(["\n background-color: ",";\n"])),(function(e){return e.theme.colors.lightRegular}));(m="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(m.register(v,"FORM_CONTROL_HEIGHT","/__w/1271/s/packages/ui/src/forms/constants.ts"),m.register(y,"FORM_CONTROL_BG_CSS","/__w/1271/s/packages/ui/src/forms/constants.ts"),m.register(w,"FORM_CONTROL_PLACEHOLDER_CSS","/__w/1271/s/packages/ui/src/forms/constants.ts"),m.register(_,"FORM_CONTROL_FOCUS_CSS","/__w/1271/s/packages/ui/src/forms/constants.ts"),m.register(x,"FORM_CONTROL_RADIO_HOVER_CSS","/__w/1271/s/packages/ui/src/forms/constants.ts"),m.register(O,"FORM_CONTROL_COLORATION_CSS","/__w/1271/s/packages/ui/src/forms/constants.ts"),m.register(k,"FORM_FONT_FAMILY","/__w/1271/s/packages/ui/src/forms/constants.ts"),m.register(E,"FORM_ERROR_COLORATION_CSS","/__w/1271/s/packages/ui/src/forms/constants.ts"),m.register(S,"FORM_CONTROL_TYPOGRAPHY_CSS","/__w/1271/s/packages/ui/src/forms/constants.ts"),m.register(A,"FORM_CONTROL_SPACING_CSS","/__w/1271/s/packages/ui/src/forms/constants.ts"),m.register(C,"FORM_CONTROL_RADIO_FOCUS_CSS","/__w/1271/s/packages/ui/src/forms/constants.ts")),(b="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&b(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";var r=n(176),o=n(0),a=n.n(o),i=n(7),s=n.n(i),c=n(310),l=n(270),u=n.n(l),d=n(1057),f=n.n(d);function p(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var h=a.a.createContext||function(e,t){var n,r,a="__create-react-context-"+f()()+"__",i=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=p(t.props.value),t}u()(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((a=r)===(i=o)?0!==a||1/a==1/i:a!=a&&i!=i)?n=0:(n="function"==typeof t?t(r,o):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var a,i},r.render=function(){return this.props.children},n}(o.Component);i.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var c=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}u()(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.Component);return c.contextTypes=((r={})[a]=s.a.object,r),{Provider:i,Consumer:c}},g=n(232),m=n(83),b=n(1073),v=n.n(b),y=(n(342),n(152));n(246);n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return L})),n.d(t,"c",(function(){return _})),n.d(t,"d",(function(){return N})),n.d(t,"e",(function(){return w})),n.d(t,"f",(function(){return j})),n.d(t,"g",(function(){return H})),n.d(t,"h",(function(){return G}));var w=function(e){var t=h();return t.displayName=e,t}("Router"),_=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return a.a.createElement(w.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(a.a.Component);a.a.Component;var x=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(a.a.Component);var O={},k=0;function E(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(O[e])return O[e];var t=v.a.compile(e);return k<1e4&&(O[e]=t,k++),t}(e)(t,{pretty:!0})}function S(e){var t=e.computedMatch,n=e.to,r=e.push,o=void 0!==r&&r;return a.a.createElement(w.Consumer,null,(function(e){e||Object(g.a)(!1);var r=e.history,i=e.staticContext,s=o?r.push:r.replace,l=Object(c.c)(t?"string"==typeof n?E(n,t.params):Object(m.a)({},n,{pathname:E(n.pathname,t.params)}):n);return i?(s(l),null):a.a.createElement(x,{onMount:function(){s(l)},onUpdate:function(e,t){var n=Object(c.c)(t.to);Object(c.f)(n,Object(m.a)({},l,{key:n.key}))||s(l)},to:n})}))}var A={},C=0;function j(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,o=n.exact,a=void 0!==o&&o,i=n.strict,s=void 0!==i&&i,c=n.sensitive,l=void 0!==c&&c;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=A[n]||(A[n]={});if(r[e])return r[e];var o=[],a={regexp:v()(e,o,t),keys:o};return C<1e4&&(r[e]=a,C++),a}(n,{end:a,strict:s,sensitive:l}),o=r.regexp,i=r.keys,c=o.exec(e);if(!c)return null;var u=c[0],d=c.slice(1),f=e===u;return a&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:i.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var L=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(w.Consumer,null,(function(t){t||Object(g.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?j(n.pathname,e.props):t.match,o=Object(m.a)({},t,{location:n,match:r}),i=e.props,s=i.children,c=i.component,l=i.render;return Array.isArray(s)&&0===s.length&&(s=null),a.a.createElement(w.Provider,{value:o},o.match?s?"function"==typeof s?s(o):s:c?a.a.createElement(c,o):l?l(o):null:"function"==typeof s?s(o):null)}))},t}(a.a.Component);function P(e){return"/"===e.charAt(0)?e:"/"+e}function T(e,t){if(!e)return t;var n=P(e);return 0!==t.pathname.indexOf(n)?t:Object(m.a)({},t,{pathname:t.pathname.substr(n.length)})}function M(e){return"string"==typeof e?e:Object(c.e)(e)}function I(e){return function(){Object(g.a)(!1)}}function R(){}a.a.Component;var N=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return a.a.createElement(w.Consumer,null,(function(t){t||Object(g.a)(!1);var n,r,o=e.props.location||t.location;return a.a.Children.forEach(e.props.children,(function(e){if(null==r&&a.a.isValidElement(e)){n=e;var i=e.props.path||e.props.from;r=i?j(o.pathname,Object(m.a)({},e.props,{path:i})):t.match}})),r?a.a.cloneElement(n,{location:o,computedMatch:r}):null}))},t}(a.a.Component);var D=a.a.useContext;function H(){return D(w).history}function G(){return D(w).location}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(67),o=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function i(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=i),i.prototype=Object.create(o.prototype),a(o,i),i.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},i.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";(function(e){var r;n.d(t,"a",(function(){return i})),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,a,i={tablet:{max:"1024px",min:"768px"},mobile:{max:"767px"},desktop:{max:"1280px",min:"1025px"}};(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&o.register(i,"breakpoints","/__w/1271/s/packages/cx-guide/src/media-queries.ts"),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n(17),o=n(648),a=n(252),i=n(865),s=n(26),c=n(16),l=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset"],u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"_display",{enumerable:!0,configurable:!0,writable:!0,value:t._root._renderer.makeGraphics()}),Object.defineProperty(t,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1}),t}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"_beforeChanged",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t,n,r=this;(e.prototype._beforeChanged.call(this),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this.isDirty("fillGradient"))&&((t=this.get("fillGradient"))&&(this._display.isMeasured=!0,(n=t.get("target"))&&(this._disposers.push(n.events.on("boundschanged",(function(){r._markDirtyKey("fill")}))),this._disposers.push(n.events.on("positionchanged",(function(){r._markDirtyKey("fill")}))))));this.isDirty("strokeGradient")&&((t=this.get("strokeGradient"))&&(this._display.isMeasured=!0,(n=t.get("target"))&&(this._disposers.push(n.events.on("boundschanged",(function(){r._markDirtyKey("stroke")}))),this._disposers.push(n.events.on("positionchanged",(function(){r._markDirtyKey("stroke")}))))))}}),Object.defineProperty(t.prototype,"_changed",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(e.prototype._changed.call(this),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();var t=this.get("strokeDasharray");s.e(t)&&(t=t<.5?[0]:[t]),this._display.setLineDash(t);var n=this.get("strokeDashoffset");n&&this._display.setLineDashOffset(n);var r=this.get("blendMode",i.a.NORMAL);this._display.blendMode=r;var o=this.get("draw");o&&o(this._display,this);var a=this.get("svgPath");null!=a&&this._display.svgPath(a)}}}),Object.defineProperty(t.prototype,"_afterChanged",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=this;if(e.prototype._afterChanged.call(this),this._clear){var n=this.get("fill"),r=this.get("fillGradient"),a=this.get("fillPattern"),i=this.get("fillOpacity"),s=this.get("stroke"),l=this.get("strokeGradient"),u=this.get("strokePattern"),d=this.get("shadowColor"),f=this.get("shadowBlur"),p=this.get("shadowOffsetX"),h=this.get("shadowOffsetY"),g=this.get("shadowOpacity");if(d&&(f||p||h)&&this._display.shadow(d,f,p,h,g),a){var m=!1;!n||a.get("fill")&&!a.get("fillInherited")||(a.set("fill",n),a.set("fillInherited",!0),m=!0),!s||a.get("color")&&!a.get("colorInherited")||(a.set("color",s),a.set("colorInherited",!0),m=!0),m&&a._changed(),(w=a.pattern)&&(this._display.beginFill(w,i),this._display.endFill(),a instanceof o.a&&a.events.once("loaded",(function(){t._clear=!0,t.markDirty()})))}else if(r){if(n)(_=r.get("stops",[])).length&&c.c(_,(function(e){e.color&&!e.colorInherited||!n||(e.color=n,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=i,e.opacityInherited=!0)}));(x=r.getFill(this))&&(this._display.beginFill(x,i),this._display.endFill())}else n&&(this._display.beginFill(n,i),this._display.endFill());if(s||l||u){var b=this.get("strokeOpacity"),v=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(v/=this.get("scale",1));var y=this.get("lineJoin");if(u){var w;m=!1;!s||u.get("color")&&!u.get("colorInherited")||(u.set("color",s),u.set("colorInherited",!0),m=!0),m&&u._changed(),(w=u.pattern)&&(this._display.lineStyle(v,w,b,y),this._display.endStroke(),u instanceof o.a&&u.events.once("loaded",(function(){t._clear=!0,t.markDirty()})))}else if(l){var _,x;(_=l.get("stops",[])).length&&c.c(_,(function(e){e.color&&!e.colorInherited||!s||(e.color=s,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=b,e.opacityInherited=!0)})),(x=l.getFill(this))&&(this._display.lineStyle(v,x,b,y),this._display.endStroke())}else s&&(this._display.lineStyle(v,s,b,y),this._display.endStroke())}}this._clear=!1}}),Object.defineProperty(t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Graphics"}),Object.defineProperty(t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a.a.classNames.concat([t.className])}),t}(a.a)},function(e,t,n){"use strict";var r=n(1109);t.a=r.a},function(e,t,n){"use strict";var r,o;function a(e){return e&&!!["provider"].find((function(t){return e.hasOwnProperty(t)}))}function i(e){return e&&!!["customProvider"].find((function(t){return e.hasOwnProperty(t)}))}function s(e){return e&&!!["customState"].find((function(t){return e.hasOwnProperty(t)}))}function c(e){return void 0!==e.redirectSignIn}function l(e){return!!e.username}n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return o})),n.d(t,"g",(function(){return l})),function(e){e.Cognito="COGNITO",e.Google="Google",e.Facebook="Facebook",e.Amazon="LoginWithAmazon",e.Apple="SignInWithApple"}(r||(r={})),function(e){e.NoConfig="noConfig",e.MissingAuthConfig="missingAuthConfig",e.EmptyUsername="emptyUsername",e.InvalidUsername="invalidUsername",e.EmptyPassword="emptyPassword",e.EmptyCode="emptyCode",e.SignUpError="signUpError",e.NoMFA="noMFA",e.InvalidMFA="invalidMFA",e.EmptyChallengeResponse="emptyChallengeResponse",e.NoUserSession="noUserSession",e.Default="default"}(o||(o={}))},function(e,t,n){"use strict";var r=n(17),o=n(74),a=n(272),i=n(256),s=n(65),c=n(219),l=function(){function e(e,t){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=e,this._settings=t}return Object.defineProperty(e.prototype,"get",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this._settings[e];return void 0!==n?n:t}}),Object.defineProperty(e.prototype,"setRaw",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._settings[e]=t}}),Object.defineProperty(e.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._userSettings[e]=!0,this.setRaw(e,t)}}),Object.defineProperty(e.prototype,"remove",{enumerable:!1,configurable:!0,writable:!0,value:function(e){delete this._userSettings[e],delete this._settings[e]}}),Object.defineProperty(e.prototype,"setAll",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;s.d(e).forEach((function(n){t.set(n,e[n])}))}}),Object.defineProperty(e.prototype,"_eachSetting",{enumerable:!1,configurable:!0,writable:!0,value:function(e){s.b(this._settings,e)}}),Object.defineProperty(e.prototype,"apply",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t={stateAnimationEasing:!0,stateAnimationDuration:!0},n=this._entity.states.lookup("default");this._eachSetting((function(r,o){t[r]||(t[r]=!0,e!==n&&(r in n._settings||(n._settings[r]=e._entity.get(r))),e._entity.set(r,o))}))}}),Object.defineProperty(e.prototype,"applyAnimate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;null==e&&(e=this._settings.stateAnimationDuration),null==e&&(e=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));var n=this._settings.stateAnimationEasing;null==n&&(n=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",c.cubic)));var r=this._entity.states.lookup("default"),o={stateAnimationEasing:!0,stateAnimationDuration:!0},a={};return this._eachSetting((function(i,s){if(!o[i]){o[i]=!0,t!=r&&(i in r._settings||(r._settings[i]=t._entity.get(i)));var c=t._entity.animate({key:i,to:s,duration:e,easing:n});c&&(a[i]=c)}})),a}}),e}(),u=function(){function e(e){Object.defineProperty(this,"_states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._entity=e}return Object.defineProperty(e.prototype,"lookup",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._states[e]}}),Object.defineProperty(e.prototype,"create",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this._states[e];if(n)return n.setAll(t),n;var r=new l(this._entity,t);return this._states[e]=r,r}}),Object.defineProperty(e.prototype,"remove",{enumerable:!1,configurable:!0,writable:!0,value:function(e){delete this._states[e]}}),Object.defineProperty(e.prototype,"apply",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this._states[e];t&&t.apply(),this._entity._applyState(e)}}),Object.defineProperty(e.prototype,"applyAnimate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n,r=this._states[e];return r&&(n=r.applyAnimate(t)),this._entity._applyStateAnimated(e,t),n}}),e}(),d=n(216),f=n(16),p=n(253);n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return v}));var h=function(){function e(e){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=e}return Object.defineProperty(e.prototype,"add",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this,r=this._callbacks[e];return void 0===r&&(r=this._callbacks[e]=[]),r.push(t),this._entity._markDirtyKey(e),new o.c((function(){f.q(r,t)&&n._entity._markDirtyKey(e)}))}}),Object.defineProperty(e.prototype,"remove",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this._callbacks[e];void 0!==t&&(delete this._callbacks[e],0!==t.length&&this._entity._markDirtyKey(e))}}),Object.defineProperty(e.prototype,"enable",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._disabled[e]&&(delete this._disabled[e],this._entity._markDirtyKey(e))}}),Object.defineProperty(e.prototype,"disable",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._disabled[e]||(this._disabled[e]=!0,this._entity._markDirtyKey(e))}}),Object.defineProperty(e.prototype,"fold",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(!this._disabled[e]){var n=this._callbacks[e];if(void 0!==n)for(var r=0,o=n.length;r1)||(--this._loops,!1)}}),Object.defineProperty(e.prototype,"_run",{enumerable:!1,configurable:!0,writable:!0,value:function(e){null!==this._oldTime&&(this._time+=e-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=e}}),Object.defineProperty(e.prototype,"_reset",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._oldTime=e,this._time=0}}),Object.defineProperty(e.prototype,"_value",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._interpolate(this._easing(e),this._from,this._to)}}),e}(),m=0,b=function(){function e(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:++m}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_privateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_settingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_privateSettingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_userProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._settings=e}return Object.defineProperty(e.prototype,"_checkDirty",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;s.d(this._settings).forEach((function(t){e._userProperties[t]=!0,e._markDirtyKey(t)}))}}),Object.defineProperty(e.prototype,"resetUserSettings",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._userProperties={}}}),Object.defineProperty(e.prototype,"_runAnimation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;if(this.isDisposed())return!1;var n=!1;return s.b(this._animatingSettings,(function(r,o){if(o._stopped)t._stopAnimation(r);else if(o._playing){o._run(e);var a=o.percentage;a>=1?o._checkEnded()?t.set(r,o._value(1)):(n=!0,o._reset(e),t._set(r,o._value(1))):(n=!0,t._set(r,o._value(a)))}})),s.b(this._animatingPrivateSettings,(function(r,o){if(o._stopped)t._stopAnimationPrivate(r);else if(o._playing){o._run(e);var a=o.percentage;a>=1?o._checkEnded()?t.setPrivate(r,o._value(1)):(n=!0,o._reset(e),t._setPrivate(r,o._value(1))):(n=!0,t._setPrivate(r,o._value(a)))}})),n}}),Object.defineProperty(e.prototype,"_markDirtyKey",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.markDirty()}}),Object.defineProperty(e.prototype,"_markDirtyPrivateKey",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.markDirty()}}),Object.defineProperty(e.prototype,"on",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this,r=this._settingEvents[e];return void 0===r&&(r=this._settingEvents[e]=[]),r.push(t),new o.c((function(){f.q(r,t),0===r.length&&delete n._settingEvents[e]}))}}),Object.defineProperty(e.prototype,"onPrivate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this,r=this._privateSettingEvents[e];return void 0===r&&(r=this._privateSettingEvents[e]=[]),r.push(t),new o.c((function(){f.q(r,t),0===r.length&&delete n._privateSettingEvents[e]}))}}),Object.defineProperty(e.prototype,"getRaw",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this._settings[e];return void 0!==n?n:t}}),Object.defineProperty(e.prototype,"get",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this.getRaw(e,t)}}),Object.defineProperty(e.prototype,"_sendKeyEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this,r=this._settingEvents[e];void 0!==r&&f.c(r,(function(r){r(t,n,e)}))}}),Object.defineProperty(e.prototype,"_sendPrivateKeyEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this,r=this._privateSettingEvents[e];void 0!==r&&f.c(r,(function(r){r(t,n,e)}))}}),Object.defineProperty(e.prototype,"_setRaw",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this._prevSettings[e]=t,this._sendKeyEvent(e,n)}}),Object.defineProperty(e.prototype,"setRaw",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this._settings[e];this._settings[e]=t,n!==t&&this._setRaw(e,n,t)}}),Object.defineProperty(e.prototype,"_set",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this._settings[e];this._settings[e]=t,n!==t&&(this._setRaw(e,n,t),this._markDirtyKey(e))}}),Object.defineProperty(e.prototype,"_stopAnimation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this._animatingSettings[e];t&&(delete this._animatingSettings[e],t.stop())}}),Object.defineProperty(e.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._set(e,t),this._stopAnimation(e),t}}),Object.defineProperty(e.prototype,"remove",{enumerable:!1,configurable:!0,writable:!0,value:function(e){e in this._settings&&(this._prevSettings[e]=this._settings[e],delete this._settings[e],this._sendKeyEvent(e,void 0),this._markDirtyKey(e)),this._stopAnimation(e)}}),Object.defineProperty(e.prototype,"removeAll",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;f.c(s.d(this._settings),(function(t){e.remove(t)}))}}),Object.defineProperty(e.prototype,"getPrivate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this._privateSettings[e];return void 0!==n?n:t}}),Object.defineProperty(e.prototype,"_setPrivateRaw",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this._prevPrivateSettings[e]=t,this._sendPrivateKeyEvent(e,n)}}),Object.defineProperty(e.prototype,"setPrivateRaw",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this._privateSettings[e];this._privateSettings[e]=t,n!==t&&this._setPrivateRaw(e,n,t)}}),Object.defineProperty(e.prototype,"_setPrivate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this._privateSettings[e];this._privateSettings[e]=t,n!==t&&(this._setPrivateRaw(e,n,t),this._markDirtyPrivateKey(e))}}),Object.defineProperty(e.prototype,"_stopAnimationPrivate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this._animatingPrivateSettings[e];t&&(t.stop(),delete this._animatingPrivateSettings[e])}}),Object.defineProperty(e.prototype,"setPrivate",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this._setPrivate(e,t),this._stopAnimationPrivate(e),t}}),Object.defineProperty(e.prototype,"removePrivate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){e in this._privateSettings&&(this._prevPrivateSettings[e]=this._privateSettings[e],delete this._privateSettings[e],this._markDirtyPrivateKey(e)),this._stopAnimationPrivate(e)}}),Object.defineProperty(e.prototype,"setAll",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;s.b(e,(function(e,n){t.set(e,n)}))}}),Object.defineProperty(e.prototype,"animate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.key,n=e.to,r=e.duration||0,o=e.loops||1,a=void 0===e.from?this.get(t):e.from,i=void 0===e.easing?c.linear:e.easing;if(0===r)this.set(t,n);else{if(void 0!==a&&a!==n){this.set(t,a);var s=this._animatingSettings[t]=new g(this,a,n,r,i,o,this._animationTime());return this._startAnimation(),s}this.set(t,n)}var l=new g(this,a,n,r,i,o,null);return l.stop(),l}}),Object.defineProperty(e.prototype,"animatePrivate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.key,n=e.to,r=e.duration||0,o=e.loops||1,a=void 0===e.from?this.getPrivate(t):e.from,i=void 0===e.easing?c.linear:e.easing;if(0===r)this.setPrivate(t,n);else{if(void 0!==a&&a!==n){this.setPrivate(t,a);var s=this._animatingPrivateSettings[t]=new g(this,a,n,r,i,o,this._animationTime());return this._startAnimation(),s}this.setPrivate(t,n)}var l=new g(this,a,n,r,i,o,null);return l.stop(),l}}),Object.defineProperty(e.prototype,"_dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(e.prototype,"isDisposed",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._disposed}}),Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._disposed||(this._disposed=!0,this._dispose())}}),e}(),v=function(e){function t(t,n,r,o){void 0===o&&(o=[]);var a=e.call(this,n)||this;if(Object.defineProperty(a,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"_user_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"states",{enumerable:!0,configurable:!0,writable:!0,value:new u(a)}),Object.defineProperty(a,"adapters",{enumerable:!0,configurable:!0,writable:!0,value:new h(a)}),Object.defineProperty(a,"events",{enumerable:!0,configurable:!0,writable:!0,value:a._createEvents()}),Object.defineProperty(a,"_userPrivateProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(a,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(a,"_dirtyPrivate",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(a,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"_templates",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(a,"_internalTemplates",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"_defaultThemes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(a,"_templateDisposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(a,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(a,"_runSetup",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(a,"_disposerProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),!r)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");return a._root=t,a._internalTemplates=o,n.id&&a._registerId(n.id),a}return Object(r.c)(t,e),Object.defineProperty(t,"new",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){var r=new this(e,t,!0);return r._template=n,r._afterNew(),r}}),Object.defineProperty(t,"_new",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){void 0===n&&(n=[]);var r=new this(e,t,!0,n);return r._afterNew(),r}}),Object.defineProperty(t.prototype,"_afterNew",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;this._checkDirty();var t=!1,n=this._template;n&&(t=!0,n._setObjectTemplate(this)),f.c(this._internalTemplates,(function(n){t=!0,n._setObjectTemplate(e)})),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}}),Object.defineProperty(t.prototype,"_afterNewApplyThemes",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;this._checkDirty();var t=this._template;t&&t._setObjectTemplate(this),f.c(this._internalTemplates,(function(t){t._setObjectTemplate(e)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}}),Object.defineProperty(t.prototype,"_createEvents",{enumerable:!1,configurable:!0,writable:!0,value:function(){return new a.a}}),Object.defineProperty(t.prototype,"classNames",{get:function(){return this.constructor.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this.constructor.className},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_setDefaults",{enumerable:!1,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(t.prototype,"_setDefault",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){t in this._settings||e.prototype.set.call(this,t,n)}}),Object.defineProperty(t.prototype,"_setRawDefault",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){t in this._settings||e.prototype.setRaw.call(this,t,n)}}),Object.defineProperty(t.prototype,"_clearDirty",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;s.d(this._dirty).forEach((function(t){e._dirty[t]=!1})),s.d(this._dirtyPrivate).forEach((function(t){e._dirtyPrivate[t]=!1}))}}),Object.defineProperty(t.prototype,"isDirty",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return!!this._dirty[e]}}),Object.defineProperty(t.prototype,"isPrivateDirty",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return!!this._dirtyPrivate[e]}}),Object.defineProperty(t.prototype,"_markDirtyKey",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this._dirty[t]=!0,e.prototype._markDirtyKey.call(this,t)}}),Object.defineProperty(t.prototype,"_markDirtyPrivateKey",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this._dirtyPrivate[t]=!0,e.prototype._markDirtyKey.call(this,t)}}),Object.defineProperty(t.prototype,"isType",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return-1!==this.classNames.indexOf(e)}}),Object.defineProperty(t.prototype,"_pushPropertyDisposer",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this._disposerProperties[e];return void 0===n&&(n=this._disposerProperties[e]=[]),n.push(t),t}}),Object.defineProperty(t.prototype,"_disposeProperty",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this._disposerProperties[e];void 0!==t&&(f.c(t,(function(e){e.dispose()})),delete this._disposerProperties[e])}}),Object.defineProperty(t.prototype,"template",{get:function(){return this._template},set:function(e){var t=this._template;t!==e&&(this._template=e,t&&t._removeObjectTemplate(this),e&&e._setObjectTemplate(this),this._applyTemplates())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"markDirty",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._root._addDirtyEntity(this)}}),Object.defineProperty(t.prototype,"_startAnimation",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._root._addAnimation(this)}}),Object.defineProperty(t.prototype,"_animationTime",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._root.animationTime}}),Object.defineProperty(t.prototype,"_applyState",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(t.prototype,"_applyStateAnimated",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){}}),Object.defineProperty(t.prototype,"get",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this.adapters.fold(e,this._settings[e]);return void 0!==n?n:t}}),Object.defineProperty(t.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){return this._userProperties[t]=!0,e.prototype.set.call(this,t,n)}}),Object.defineProperty(t.prototype,"setRaw",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){this._userProperties[t]=!0,e.prototype.setRaw.call(this,t,n)}}),Object.defineProperty(t.prototype,"_setSoft",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){return this._userProperties[t]?n:e.prototype.set.call(this,t,n)}}),Object.defineProperty(t.prototype,"remove",{enumerable:!1,configurable:!0,writable:!0,value:function(e){delete this._userProperties[e],this._removeTemplateProperty(e)}}),Object.defineProperty(t.prototype,"setPrivate",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){return this._userPrivateProperties[t]=!0,e.prototype.setPrivate.call(this,t,n)}}),Object.defineProperty(t.prototype,"setPrivateRaw",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){this._userPrivateProperties[t]=!0,e.prototype.setPrivateRaw.call(this,t,n)}}),Object.defineProperty(t.prototype,"removePrivate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){delete this._userPrivateProperties[e],this._removeTemplatePrivateProperty(e)}}),Object.defineProperty(t.prototype,"_setTemplateProperty",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r){this._userProperties[n]||t===this._findTemplateByKey(n)&&e.prototype.set.call(this,n,r)}}),Object.defineProperty(t.prototype,"_setTemplatePrivateProperty",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r){this._userPrivateProperties[n]||t===this._findTemplateByPrivateKey(n)&&e.prototype.setPrivate.call(this,n,r)}}),Object.defineProperty(t.prototype,"_removeTemplateProperty",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(!this._userProperties[t]){var n=this._findTemplateByKey(t);n?e.prototype.set.call(this,t,n._settings[t]):e.prototype.remove.call(this,t)}}}),Object.defineProperty(t.prototype,"_removeTemplatePrivateProperty",{enumerable:!1,configurable:!0,writable:!0,value:function(t){if(!this._userPrivateProperties[t]){var n=this._findTemplateByPrivateKey(t);n?e.prototype.setPrivate.call(this,t,n._privateSettings[t]):e.prototype.removePrivate.call(this,t)}}}),Object.defineProperty(t.prototype,"_walkParents",{enumerable:!1,configurable:!0,writable:!0,value:function(e){e(this._root._rootContainer),e(this)}}),Object.defineProperty(t.prototype,"_applyStateByKey",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.states.create(e,{}),n={};this._eachTemplate((function(r){var o=r.states.lookup(e);o&&o._apply(t,n)})),s.b(t._settings,(function(e){n[e]||t._userSettings[e]||t.remove(e)}))}}),Object.defineProperty(t.prototype,"_applyTemplate",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){var r=this;this._templateDisposers.push(t._apply(this,n)),s.b(t._settings,(function(t,o){n.settings[t]||r._userProperties[t]||(n.settings[t]=!0,e.prototype.set.call(r,t,o))})),s.b(t._privateSettings,(function(t,o){n.privateSettings[t]||r._userPrivateProperties[t]||(n.privateSettings[t]=!0,e.prototype.setPrivate.call(r,t,o))})),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}}),Object.defineProperty(t.prototype,"_findStaticTemplate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this._template&&e(this._template))return this._template}}),Object.defineProperty(t.prototype,"_eachTemplate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._findStaticTemplate((function(t){return e(t),!1})),f.e(this._internalTemplates,e),f.c(this._templates,e)}}),Object.defineProperty(t.prototype,"_applyTemplates",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var n=this;void 0===t&&(t=!0),t&&this._disposeTemplates();var r={settings:{},privateSettings:{},states:{}};this._eachTemplate((function(e){n._applyTemplate(e,r)})),t&&(s.b(this._settings,(function(t){n._userProperties[t]||r.settings[t]||e.prototype.remove.call(n,t)})),s.b(this._privateSettings,(function(t){n._userPrivateProperties[t]||r.privateSettings[t]||e.prototype.removePrivate.call(n,t)})))}}),Object.defineProperty(t.prototype,"_findTemplate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this._findStaticTemplate(e);if(void 0===t){var n=f.h(this._internalTemplates,e);return void 0===n?f.f(this._templates,e):n}return t}}),Object.defineProperty(t.prototype,"_findTemplateByKey",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._findTemplate((function(t){return e in t._settings}))}}),Object.defineProperty(t.prototype,"_findTemplateByPrivateKey",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._findTemplate((function(t){return e in t._privateSettings}))}}),Object.defineProperty(t.prototype,"_disposeTemplates",{enumerable:!1,configurable:!0,writable:!0,value:function(){f.c(this._templateDisposers,(function(e){e.dispose()})),this._templateDisposers.length=0}}),Object.defineProperty(t.prototype,"_removeTemplates",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;f.c(this._templates,(function(t){t._removeObjectTemplate(e)})),this._templates.length=0}}),Object.defineProperty(t.prototype,"_applyThemes",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this,t=!1,n=[],r=[],o=new Set,a=this.get("themeTagsSelf");return a&&f.c(a,(function(e){o.add(e)})),this._walkParents((function(a){a===e._root._rootContainer&&(t=!0),a._defaultThemes.length>0&&n.push(a._defaultThemes);var i=a.get("themes");i&&r.push(i);var s=a.get("themeTags");s&&f.c(s,(function(e){o.add(e)}))})),r=n.concat(r),this._removeTemplates(),t&&f.e(this.classNames,(function(t){var n=[];f.c(r,(function(e){f.c(e,(function(e){var r=e._lookupRules(t);r&&f.e(r,(function(e){if(e.tags.every((function(e){return o.has(e)}))){var t=f.i(n,(function(t){var n=p.a(e.tags.length,t.tags.length);return 0===n?p.b(e.tags,t.tags,p.a):n}));n.splice(t.index,0,e)}}))}))})),f.c(n,(function(t){e._templates.push(t.template),t.template._setObjectTemplate(e)}))})),this._applyTemplates(),t&&(this._runSetup=!1),t}}),Object.defineProperty(t.prototype,"_changed",{enumerable:!1,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(t.prototype,"_beforeChanged",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.isDirty("id")){var e=this.get("id");e&&this._registerId(e);var t=this._prevSettings.id;t&&delete d.a.entitiesById[t]}}}),Object.defineProperty(t.prototype,"_registerId",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(d.a.entitiesById[e]&&d.a.entitiesById[e]!==this)throw new Error('An entity with id "'+e+'" already exists.');d.a.entitiesById[e]=this}}),Object.defineProperty(t.prototype,"_afterChanged",{enumerable:!1,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(t.prototype,"addDisposer",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._disposers.push(e),e}}),Object.defineProperty(t.prototype,"_dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=this;e.prototype._dispose.call(this);var n=this._template;n&&n._removeObjectTemplate(this),f.c(this._internalTemplates,(function(e){e._removeObjectTemplate(t)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((function(e){e.dispose()})),s.b(this._disposerProperties,(function(e,t){f.c(t,(function(e){e.dispose()}))}));var r=this.get("id");r&&delete d.a.entitiesById[r]}}),Object.defineProperty(t.prototype,"setTimeout",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this,r=setTimeout((function(){n.removeDispose(a),e()}),t),a=new o.c((function(){clearTimeout(r)}));return this._disposers.push(a),a}}),Object.defineProperty(t.prototype,"removeDispose",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(!this.isDisposed()){var t=f.k(this._disposers,e);t>-1&&this._disposers.splice(t,1)}e.dispose()}}),Object.defineProperty(t.prototype,"hasTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return-1!==f.k(this.get("themeTags",[]),e)}}),Object.defineProperty(t.prototype,"addTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(!this.hasTag(e)){var t=this.get("themeTags",[]);t.push(e),this.set("themeTags",t)}}}),Object.defineProperty(t.prototype,"removeTag",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this.hasTag(e)){var t=this.get("themeTags",[]);f.p(t,e),this.set("themeTags",t)}}}),Object.defineProperty(t.prototype,"_t",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){for(var n,o=[],a=2;a>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?x(e)+t:t}function k(){return!0}function E(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function S(e,t){return C(e,t,0)}function A(e,t){return C(e,t,t)}function C(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var j,L,P,T="function"==typeof Symbol&&Symbol.iterator,M=T||"@@iterator";function I(e){this.next=e}function R(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function N(){return{value:void 0,done:!0}}function D(e){return!!F(e)}function H(e){return e&&"function"==typeof e.next}function G(e){var t=F(e);return t&&t.call(e)}function F(e){var t=e&&(T&&e[T]||e["@@iterator"]);if("function"==typeof t)return t}function B(e){return e&&"number"==typeof e.length}function z(e){return null==e?Q():i(e)?e.toSeq():function(e){var t=ee(e)||"object"==typeof e&&new $(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function U(e){return null==e?Q().toKeyedSeq():i(e)?s(e)?e.toSeq():e.fromEntrySeq():Z(e)}function q(e){return null==e?Q():i(e)?s(e)?e.entrySeq():e.toIndexedSeq():J(e)}function V(e){return(null==e?Q():i(e)?s(e)?e.entrySeq():e:J(e)).toSetSeq()}function W(e){this._array=e,this.size=e.length}function $(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function K(e){this._iterable=e,this.size=e.length||e.size}function Y(e){this._iterator=e,this._iteratorCache=[]}function X(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function Q(){return j||(j=new W([]))}function Z(e){var t=Array.isArray(e)?new W(e).fromEntrySeq():H(e)?new Y(e).fromEntrySeq():D(e)?new K(e).fromEntrySeq():"object"==typeof e?new $(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function J(e){var t=ee(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ee(e){return B(e)?new W(e):H(e)?new Y(e):D(e)?new K(e):void 0}function te(e,t,n,r){var o=e._cache;if(o){for(var a=o.length-1,i=0;i<=a;i++){var s=o[n?a-i:i];if(!1===t(s[1],r?s[0]:i,e))return i+1}return i}return e.__iterateUncached(t,n)}function ne(e,t,n,r){var o=e._cache;if(o){var a=o.length-1,i=0;return new I((function(){var e=o[n?a-i:i];return i++>a?{value:void 0,done:!0}:R(t,r?e[0]:i-1,e[1])}))}return e.__iteratorUncached(t,n)}function re(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,q(n).map((function(r,o){return e(t,r,o,n)}))):ae(n)?t.call(o,r,U(n).map((function(r,o){return e(t,r,o,n)}))):n}(t,e,"",{"":e}):oe(e)}function oe(e){return Array.isArray(e)?q(e).map(oe).toList():ae(e)?U(e).map(oe).toMap():e}function ae(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ie(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function se(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ie(o[1],e)&&(n||ie(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var a=e;e=t,t=a}var d=!0,f=t.__iterate((function(t,r){if(n?!e.has(t):o?!ie(t,e.get(r,g)):!ie(e.get(r,g),t))return d=!1,!1}));return d&&e.size===f}function ce(e,t){if(!(this instanceof ce))return new ce(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(L)return L;L=this}}function le(e,t){if(!e)throw new Error(t)}function ue(e,t,n){if(!(this instanceof ue))return new ue(e,t,n);if(le(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),tr?{value:void 0,done:!0}:R(e,o,n[t?r-o++:o++])}))},t($,U),$.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},$.prototype.has=function(e){return this._object.hasOwnProperty(e)},$.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,a=0;a<=o;a++){var i=r[t?o-a:a];if(!1===e(n[i],i,this))return a+1}return a},$.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,a=0;return new I((function(){var i=r[t?o-a:a];return a++>o?{value:void 0,done:!0}:R(e,i,n[i])}))},$.prototype[h]=!0,t(K,q),K.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=G(this._iterable),r=0;if(H(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},K.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=G(this._iterable);if(!H(n))return new I(N);var r=0;return new I((function(){var t=n.next();return t.done?t:R(e,r++,t.value)}))},t(Y,q),Y.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,a=0;a=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return R(e,o,r[o++])}))},t(ce,q),ce.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ce.prototype.get=function(e,t){return this.has(e)?this._value:t},ce.prototype.includes=function(e){return ie(this._value,e)},ce.prototype.slice=function(e,t){var n=this.size;return E(e,t,n)?this:new ce(this._value,A(t,n)-S(e,n))},ce.prototype.reverse=function(){return this},ce.prototype.indexOf=function(e){return ie(this._value,e)?0:-1},ce.prototype.lastIndexOf=function(e){return ie(this._value,e)?this.size:-1},ce.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},ue.prototype.get=function(e,t){return this.has(e)?this._start+O(this,e)*this._step:t},ue.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:R(e,a++,i)}))},ue.prototype.equals=function(e){return e instanceof ue?this._start===e._start&&this._end===e._end&&this._step===e._step:se(this,e)},t(de,n),t(fe,de),t(pe,de),t(he,de),de.Keyed=fe,de.Indexed=pe,de.Set=he;var ge="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function me(e){return e>>>1&1073741824|3221225471&e}function be(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return me(n)}if("string"===t)return e.length>Ee?function(e){var t=Ce[e];return void 0===t&&(t=ve(e),Ae===Se&&(Ae=0,Ce={}),Ae++,Ce[e]=t),t}(e):ve(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(xe&&void 0!==(t=ye.get(e)))return t;if(void 0!==(t=e[ke]))return t;if(!_e){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ke]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Oe,1073741824&Oe&&(Oe=0),xe)ye.set(e,t);else{if(void 0!==we&&!1===we(e))throw new Error("Non-extensible objects are not allowed as keys.");if(_e)Object.defineProperty(e,ke,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ke]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[ke]=t}}return t}(e);if("function"==typeof e.toString)return ve(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ve(e){for(var t=0,n=0;n>>n),s=31&(0===n?r:r>>>n);return new Ne(t,1<>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function et(e,t,n,r){var o=r?e:_(e);return o[t]=n,o}Ie[Me]=!0,Ie.delete=Ie.remove,Ie.removeIn=Ie.deleteIn,Re.prototype.get=function(e,t,n,r){for(var o=this.entries,a=0,i=o.length;a=tt)return function(e,t,n,r){e||(e=new w);for(var o=new Ge(e,be(n),[n,r]),a=0;a>>e)),a=this.bitmap;return 0==(a&o)?r:this.nodes[Je(a&o-1)].get(e+5,t,n,r)},Ne.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=be(r));var s=31&(0===t?n:n>>>t),c=1<=nt)return function(e,t,n,r,o){for(var a=0,i=new Array(32),s=0;0!==n;s++,n>>>=1)i[s]=1&n?t[a++]:void 0;return i[r]=o,new De(e,a+1,i)}(e,f,l,s,h);if(u&&!h&&2===f.length&&$e(f[1^d]))return f[1^d];if(u&&h&&1===f.length&&$e(h))return h;var m=e&&e===this.ownerID,b=u?h?l:l^c:l|c,v=u?h?et(f,d,h,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),a=0,i=0;i>>e),a=this.nodes[o];return a?a.get(e+5,t,n,r):r},De.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=be(r));var s=31&(0===t?n:n>>>t),c=o===g,l=this.nodes,u=l[s];if(c&&!u)return this;var d=We(u,e,t+5,n,r,o,a,i);if(d===u)return this;var f=this.count;if(u){if(!d&&--f0&&r<32?pt(0,r,5,null,new ct(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function at(e){return!(!e||!e[it])}t(ot,pe),ot.of=function(){return this(arguments)},ot.prototype.toString=function(){return this.__toString("List [","]")},ot.prototype.get=function(e,t){if((e=O(this,e))>=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?vt(e,t).set(0,n):vt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,a=v(b);return t>=wt(e._capacity)?r=gt(r,e.__ownerID,0,t,n,a):o=gt(o,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):pt(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},ot.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},ot.prototype.insert=function(e,t){return this.splice(e,0,t)},ot.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):ht()},ot.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){vt(n,0,t+e.length);for(var r=0;r>>t&31;if(r>=this.array.length)return new ct([],e);var o,a=0===r;if(t>0){var i=this.array[r];if((o=i&&i.removeBefore(e,t-5,n))===i&&a)return this}if(a&&!o)return this;var s=mt(this,e);if(!a)for(var c=0;c>>t&31;if(o>=this.array.length)return this;if(t>0){var a=this.array[o];if((r=a&&a.removeAfter(e,t-5,n))===a&&o===this.array.length-1)return this}var i=mt(this,e);return i.array.splice(o+1),r&&(i.array[o]=r),i};var lt,ut,dt={};function ft(e,t){var n=e._origin,r=e._capacity,o=wt(r),a=e._tail;return i(e._root,e._level,0);function i(e,s,c){return 0===s?function(e,i){var s=i===o?a&&a.array:e&&e.array,c=i>n?0:n-i,l=r-i;return l>32&&(l=32),function(){if(c===l)return dt;var e=t?--l:c++;return s&&s[e]}}(e,c):function(e,o,a){var s,c=e&&e.array,l=a>n?0:n-a>>o,u=1+(r-a>>o);return u>32&&(u=32),function(){for(;;){if(s){var e=s();if(e!==dt)return e;s=null}if(l===u)return dt;var n=t?--u:l++;s=i(c&&c[n],o-5,a+(n<>>n&31,c=e&&s0){var l=e&&e.array[s],u=gt(l,t,n-5,r,o,a);return u===l?e:((i=mt(e,t)).array[s]=u,i)}return c&&e.array[s]===o?e:(y(a),i=mt(e,t),void 0===o&&s===i.array.length-1?i.array.pop():i.array[s]=o,i)}function mt(e,t){return t&&e&&t===e.ownerID?e:new ct(e?e.array.slice():[],t)}function bt(e,t){if(t>=wt(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&31],r-=5;return n}}function vt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new w,o=e._origin,a=e._capacity,i=o+t,s=void 0===n?a:n<0?a+n:o+n;if(i===o&&s===a)return e;if(i>=s)return e.clear();for(var c=e._level,l=e._root,u=0;i+u<0;)l=new ct(l&&l.array.length?[void 0,l]:[],r),u+=1<<(c+=5);u&&(i+=u,o+=u,s+=u,a+=u);for(var d=wt(a),f=wt(s);f>=1<d?new ct([],r):p;if(p&&f>d&&i5;m-=5){var b=d>>>m&31;g=g.array[b]=mt(g.array[b],r)}g.array[d>>>5&31]=p}if(s=f)i-=f,s-=f,c=5,l=null,h=h&&h.removeBefore(r,0,i);else if(i>o||f>>c&31;if(v!==f>>>c&31)break;v&&(u+=(1<o&&(l=l.removeBefore(r,c,i-u)),l&&fa&&(a=l.size),i(c)||(l=l.map((function(e){return re(e)}))),r.push(l)}return a>e.size&&(e=e.setSize(a)),Ze(e,t,r)}function wt(e){return e<32?0:e-1>>>5<<5}function _t(e){return null==e?kt():xt(e)?e:kt().withMutations((function(t){var n=r(e);je(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function xt(e){return Pe(e)&&u(e)}function Ot(e,t,n,r){var o=Object.create(_t.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function kt(){return ut||(ut=Ot(qe(),ht()))}function Et(e,t,n){var r,o,a=e._map,i=e._list,s=a.get(t),c=void 0!==s;if(n===g){if(!c)return e;i.size>=32&&i.size>=2*a.size?(r=(o=i.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=a.remove(t),o=s===i.size-1?i.pop():i.set(s,void 0))}else if(c){if(n===i.get(s)[1])return e;r=a,o=i.set(s,[t,n])}else r=a.set(t,i.size),o=i.set(i.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Ot(r,o)}function St(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function At(e){this._iter=e,this.size=e.size}function Ct(e){this._iter=e,this.size=e.size}function jt(e){this._iter=e,this.size=e.size}function Lt(e){var t=Wt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=$t,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new I((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Pt(e,t,n){var r=Wt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var a=e.get(r,g);return a===g?o:t.call(n,a,r,e)},r.__iterateUncached=function(r,o){var a=this;return e.__iterate((function(e,o,i){return!1!==r(t.call(n,e,o,i),o,a)}),o)},r.__iteratorUncached=function(r,o){var a=e.__iterator(2,o);return new I((function(){var o=a.next();if(o.done)return o;var i=o.value,s=i[0];return R(r,s,t.call(n,i[1],s,e),o)}))},r}function Tt(e,t){var n=Wt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Lt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=$t,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Mt(e,t,n,r){var o=Wt(e);return r&&(o.has=function(r){var o=e.get(r,g);return o!==g&&!!t.call(n,o,r,e)},o.get=function(r,o){var a=e.get(r,g);return a!==g&&t.call(n,a,r,e)?a:o}),o.__iterateUncached=function(o,a){var i=this,s=0;return e.__iterate((function(e,a,c){if(t.call(n,e,a,c))return s++,o(e,r?a:s-1,i)}),a),s},o.__iteratorUncached=function(o,a){var i=e.__iterator(2,a),s=0;return new I((function(){for(;;){var a=i.next();if(a.done)return a;var c=a.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return R(o,r?l:s++,u,a)}}))},o}function It(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),E(t,n,o))return e;var a=S(t,o),i=A(n,o);if(a!=a||i!=i)return It(e.toSeq().cacheResult(),t,n,r);var s,c=i-a;c==c&&(s=c<0?0:c);var l=Wt(e);return l.size=0===s?s:e.size&&s||void 0,!r&&X(e)&&s>=0&&(l.get=function(t,n){return(t=O(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:R(t,c-1,0===t?void 0:e.value[1],e)}))},l}function Rt(e,t,n,r){var o=Wt(e);return o.__iterateUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterate(o,a);var s=!0,c=0;return e.__iterate((function(e,a,l){if(!s||!(s=t.call(n,e,a,l)))return c++,o(e,r?a:c-1,i)})),c},o.__iteratorUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterator(o,a);var s=e.__iterator(2,a),c=!0,l=0;return new I((function(){var e,a,u;do{if((e=s.next()).done)return r||1===o?e:R(o,l++,0===o?void 0:e.value[1],e);var d=e.value;a=d[0],u=d[1],c&&(c=t.call(n,u,a,i))}while(c);return 2===o?e:R(o,a,u,e)}))},o}function Nt(e,t){var n=s(e),o=[e].concat(t).map((function(e){return i(e)?n&&(e=r(e)):e=n?Z(e):J(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var a=o[0];if(a===e||n&&s(a)||c(e)&&c(a))return a}var l=new W(o);return n?l=l.toKeyedSeq():c(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}function Dt(e,t,n){var r=Wt(e);return r.__iterateUncached=function(r,o){var a=0,s=!1;return function e(c,l){var u=this;c.__iterate((function(o,c){return(!t||l0}function Bt(e,t,r){var o=Wt(e);return o.size=new W(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var a=r.map((function(e){return e=n(e),G(o?e.reverse():e)})),i=0,s=!1;return new I((function(){var n;return s||(n=a.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:R(e,i++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function zt(e,t){return X(e)?t:e.constructor(t)}function Ut(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function qt(e){return je(e.size),x(e)}function Vt(e){return s(e)?r:c(e)?o:a}function Wt(e){return Object.create((s(e)?U:c(e)?q:V).prototype)}function $t(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function Kt(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):_n(e,t)},mn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;je(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):_n(t,n)},mn.prototype.pop=function(){return this.slice(1)},mn.prototype.unshift=function(){return this.push.apply(this,arguments)},mn.prototype.unshiftAll=function(e){return this.pushAll(e)},mn.prototype.shift=function(){return this.pop.apply(this,arguments)},mn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):xn()},mn.prototype.slice=function(e,t){if(E(e,t,this.size))return this;var n=S(e,this.size);if(A(t,this.size)!==this.size)return pe.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):_n(r,o)},mn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?_n(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},mn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},mn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new I((function(){if(r){var t=r.value;return r=r.next,R(e,n++,t)}return{value:void 0,done:!0}}))},mn.isStack=bn;var vn,yn="@@__IMMUTABLE_STACK__@@",wn=mn.prototype;function _n(e,t,n,r){var o=Object.create(wn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function xn(){return vn||(vn=_n(0))}function On(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}wn[yn]=!0,wn.withMutations=Ie.withMutations,wn.asMutable=Ie.asMutable,wn.asImmutable=Ie.asImmutable,wn.wasAltered=Ie.wasAltered,n.Iterator=I,On(n,{toArray:function(){je(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new At(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new St(this,!0)},toMap:function(){return Le(this.toKeyedSeq())},toObject:function(){je(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return _t(this.toKeyedSeq())},toOrderedSet:function(){return un(s(this)?this.valueSeq():this)},toSet:function(){return tn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Ct(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return mn(s(this)?this.valueSeq():this)},toList:function(){return ot(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return zt(this,Nt(this,t))},includes:function(e){return this.some((function(t){return ie(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){je(this.size);var n=!0;return this.__iterate((function(r,o,a){if(!e.call(t,r,o,a))return n=!1,!1})),n},filter:function(e,t){return zt(this,Mt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,a){if(e.call(t,r,o,a))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return je(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){je(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return zt(this,Pt(this,e,t))},reduce:function(e,t,n){var r,o;return je(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,a,i){o?(o=!1,r=t):r=e.call(n,r,t,a,i)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return zt(this,Tt(this,!0))},slice:function(e,t){return zt(this,It(this,e,t,!0))},some:function(e,t){return!this.every(Cn(e),t)},sort:function(e){return zt(this,Ht(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return x(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Le().asMutable();return e.__iterate((function(o,a){r.update(t.call(n,o,a,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return se(this,e)},entrySeq:function(){var e=this;if(e._cache)return new W(e._cache);var t=e.toSeq().map(An).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Cn(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(k)},flatMap:function(e,t){return zt(this,function(e,t,n){var r=Vt(e);return e.toSeq().map((function(o,a){return r(t.call(n,o,a,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return zt(this,Dt(this,e,!0))},fromEntrySeq:function(){return new jt(this)},get:function(e,t){return this.find((function(t,n){return ie(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=Yt(e);!(n=o.next()).done;){var a=n.value;if((r=r&&r.get?r.get(a,g):g)===g)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=s(e),o=(u(e)?_t():Le()).asMutable();e.__iterate((function(a,i){o.update(t.call(n,a,i,e),(function(e){return(e=e||[]).push(r?[i,a]:a),e}))}));var a=Vt(e);return o.map((function(t){return zt(e,a(t))}))}(this,e,t)},has:function(e){return this.get(e,g)!==g},hasIn:function(e){return this.getIn(e,g)!==g},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Sn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Gt(this,e)},maxBy:function(e,t){return Gt(this,t,e)},min:function(e){return Gt(this,e?jn(e):Tn)},minBy:function(e,t){return Gt(this,t?jn(t):Tn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return zt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return zt(this,Rt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Cn(e),t)},sortBy:function(e,t){return zt(this,Ht(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return zt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return zt(this,function(e,t,n){var r=Wt(e);return r.__iterateUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterate(r,o);var i=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++i&&r(e,o,a)})),i},r.__iteratorUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(2,o),s=!0;return new I((function(){if(!s)return{value:void 0,done:!0};var e=i.next();if(e.done)return e;var o=e.value,c=o[0],l=o[1];return t.call(n,l,c,a)?2===r?e:R(r,c,l,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Cn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=u(e),n=s(e),r=t?1:0;return function(e,t){return t=ge(t,3432918353),t=ge(t<<15|t>>>-15,461845907),t=ge(t<<13|t>>>-13,5),t=ge((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=me((t=ge(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Mn(be(e),be(t))|0}:function(e,t){r=r+Mn(be(e),be(t))|0}:t?function(e){r=31*r+be(e)|0}:function(e){r=r+be(e)|0}),r)}(this))}});var kn=n.prototype;kn[d]=!0,kn[M]=kn.values,kn.__toJS=kn.toArray,kn.__toStringMapper=Ln,kn.inspect=kn.toSource=function(){return this.toString()},kn.chain=kn.flatMap,kn.contains=kn.includes,function(){try{Object.defineProperty(kn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),On(r,{flip:function(){return zt(this,Lt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ie(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ie(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return zt(this,this.toSeq().map((function(o,a){return e.call(t,[a,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return zt(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var En=r.prototype;function Sn(e,t){return t}function An(e,t){return[t,e]}function Cn(e){return function(){return!e.apply(this,arguments)}}function jn(e){return function(){return-e.apply(this,arguments)}}function Ln(e){return"string"==typeof e?JSON.stringify(e):e}function Pn(){return _(arguments)}function Tn(e,t){return et?-1:0}function Mn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return En[f]=!0,En[M]=kn.entries,En.__toJS=kn.toObject,En.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Ln(e)},On(o,{toKeyedSeq:function(){return new St(this,!1)},filter:function(e,t){return zt(this,Mt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return zt(this,Tt(this,!1))},slice:function(e,t){return zt(this,It(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=S(e,e<0?this.count():this.size);var r=this.slice(0,e);return zt(this,1===n?r:r.concat(_(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return zt(this,Dt(this,e,!1))},get:function(e,t){return(e=O(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=O(this,e))>=0&&(void 0!==this.size?this.size===1/0||e1&&void 0!==arguments[1]?arguments[1]:"left";return(i.a.createElement(h,{fontSize:"baseline",color:"darkSubtle",fontWeight:"normal",textAlign:t},e))},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"left";return(i.a.createElement(h,{fontSize:"baseline",fontWeight:"bold",textAlign:t},e))},b=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"left";return(i.a.createElement(h,{fontSize:"stepUp1",fontWeight:"bold",textAlign:t},e))},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"left",n=arguments.length>2?arguments[2]:void 0;return i.a.createElement(h,{fontSize:"stepDown1",textTransform:"uppercase",textAlign:t,color:"darkSubtle","data-test":n},e)};(f="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(f.register(h,"IECompatibleText","/__w/1271/s/packages/gameplan/src/components/gameplan/performance/utils.tsx"),f.register(g,"unweightedText","/__w/1271/s/packages/gameplan/src/components/gameplan/performance/utils.tsx"),f.register(m,"weightedText","/__w/1271/s/packages/gameplan/src/components/gameplan/performance/utils.tsx"),f.register(b,"largeWeightedText","/__w/1271/s/packages/gameplan/src/components/gameplan/performance/utils.tsx"),f.register(v,"label","/__w/1271/s/packages/gameplan/src/components/gameplan/performance/utils.tsx")),(p="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&p(e)}).call(this,n(3)(e))},function(e,t,n){var r=n(82);e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(262),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")};e.exports=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),a=2;a{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Object(c.a)(n.color)}`],t[`fontSize${Object(c.a)(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,s,c,l,u,d,f,p,h,g,m,b,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)?void 0:null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)?void 0:null==(a=o.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)?void 0:null==(s=i.pxToRem)?void 0:s.call(i,20))||"1.25rem",medium:(null==(c=e.typography)?void 0:null==(l=c.pxToRem)?void 0:l.call(c,24))||"1.5rem",large:(null==(u=e.typography)?void 0:null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875"}[t.fontSize],color:null!=(f=null==(p=e.palette)?void 0:null==(h=p[t.color])?void 0:h.main)?f:{action:null==(g=e.palette)?void 0:null==(m=g.action)?void 0:m.active,disabled:null==(b=e.palette)?void 0:null==(v=b.action)?void 0:v.disabled,inherit:void 0}[t.color]}}),b=o.forwardRef((function(e,t){const n=Object(l.a)({props:e,name:"MuiSvgIcon"}),{children:o,className:u,color:d="inherit",component:f="svg",fontSize:b="medium",htmlColor:v,inheritViewBox:y=!1,titleAccess:w,viewBox:_="0 0 24 24"}=n,x=Object(a.a)(n,g),O=Object(r.a)({},n,{color:d,component:f,fontSize:b,inheritViewBox:y,viewBox:_}),k={};y||(k.viewBox=_);const E=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&`color${Object(c.a)(t)}`,`fontSize${Object(c.a)(n)}`]};return Object(s.a)(o,p,r)})(O);return(Object(h.jsxs)(m,Object(r.a)({as:f,className:Object(i.a)(E.root,u),ownerState:O,focusable:"false",color:v,"aria-hidden":!w||void 0,role:w?"img":void 0,ref:t},k,x,{children:[o,w?Object(h.jsx)("title",{children:w}):null]})))}));b.muiName="SvgIcon";var v=b;function y(e,t){const n=(n,o)=>Object(h.jsx)(v,Object(r.a)({"data-testid":`${t}Icon`,ref:o},n,{children:e}));return n.muiName=v.muiName,o.memo(o.forwardRef(n))}n.d(t,"a",(function(){return y}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p}));var r,o=n(68),a=n(218),i=n(170),s=n.n(i);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var c,l,u=function(e){return Math.round(10*e)%10==0?s()(e).format("0"):s()(e).format("0.0")},d=function(e){var t=u(e);return e>0?"+".concat(t):t},f=function(e){var t=100*e;return s()(t).format("0.00")},p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en",r=arguments.length>3?arguments[3]:void 0;switch(t){case"currency":return Object(o.a)(e,n);case"boolean":return r("true"===e?"common:yes":"common:no");case"date":return new Intl.DateTimeFormat(n,{month:"long",day:"numeric",year:"numeric"}).format(Object(a.default)(e));case"dateTime":return new Intl.DateTimeFormat(n,{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"}).format(Object(a.default)(e));case"shortDate":return new Intl.DateTimeFormat(n,{month:"long",year:"numeric"}).format(Object(a.default)(e));case"phone":return"en-US"===n?Object(o.c)(e):e;case"percentage":return r("common:percentage",{value:u(s()(e).value())});case"performance":return r("common:percentage",{value:d(s()(e).value())});case"percentageX100":return r("common:percentage",{value:f(s()(e).value())});case"raw":default:return e}};(c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(c.register(u,"formatPercentage","/__w/1271/s/packages/gameplan/src/common/utils/format.ts"),c.register(d,"formatPerformance","/__w/1271/s/packages/gameplan/src/common/utils/format.ts"),c.register(f,"formatPercentageX100","/__w/1271/s/packages/gameplan/src/common/utils/format.ts"),c.register(p,"format","/__w/1271/s/packages/gameplan/src/common/utils/format.ts")),(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&l(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";var r,o=n(129),a=n(98),i=n(117),s=n(173),c=n(490),l=n(186),u=n(222),d=n(147).f,f=n(242),p=n(438),h=n(126),g=n(589),m=a.DataView,b=m&&m.prototype,v=a.Int8Array,y=v&&v.prototype,w=a.Uint8ClampedArray,_=w&&w.prototype,x=v&&f(v),O=y&&f(y),k=Object.prototype,E=k.isPrototypeOf,S=h("toStringTag"),A=g("TYPED_ARRAY_TAG"),C=!(!a.ArrayBuffer||!m),j=C&&!!p&&"Opera"!==c(a.opera),L=!1,P={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},T=function(e){return i(e)&&s(P,c(e))};for(r in P)a[r]||(j=!1);if((!j||"function"!=typeof x||x===Function.prototype)&&(x=function(){throw TypeError("Incorrect invocation")},j))for(r in P)a[r]&&p(a[r],x);if((!j||!O||O===k)&&(O=x.prototype,j))for(r in P)a[r]&&p(a[r].prototype,O);if(j&&f(_)!==O&&p(_,O),o&&!s(O,S))for(r in L=!0,d(O,S,{get:function(){return i(this)?this[A]:void 0}}),P)a[r]&&l(a[r],A,r);C&&p&&f(b)!==k&&p(b,k),e.exports={NATIVE_ARRAY_BUFFER:C,NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_TAG:L&&A,aTypedArray:function(e){if(T(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(p){if(E.call(x,e))return e}else for(var t in P)if(s(P,r)){var n=a[t];if(n&&(e===n||E.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportProto:function(e,t,n){if(o){if(n)for(var r in P){var i=a[r];i&&s(i.prototype,e)&&delete i.prototype[e]}O[e]&&!n||u(O,e,n?t:j&&y[e]||t)}},exportStatic:function(e,t,n){var r,i;if(o){if(p){if(n)for(r in P)(i=a[r])&&s(i,e)&&delete i[e];if(x[e]&&!n)return;try{return u(x,e,n?t:j&&v[e]||t)}catch(e){}}for(r in P)!(i=a[r])||i[e]&&!n||u(i,e,t)}},isView:function(e){var t=c(e);return"DataView"===t||s(P,t)},isTypedArray:T,TypedArray:x,TypedArrayPrototype:O}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(224)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=Object.prototype,o=r.toString,a=r.hasOwnProperty,i=Function.prototype.toString,s=new Map;function c(e,t){try{return function e(t,n){if(t===n)return!0;var r=o.call(t),s=o.call(n);if(r!==s)return!1;switch(r){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":if(u(t,n))return!0;var c=Object.keys(t),d=Object.keys(n),f=c.length;if(f!==d.length)return!1;for(var p=0;p=0&&x.indexOf(O,k)===k))}var x,O,k;return!1}(e,t)}finally{s.clear()}}var l="{ [native code] }";function u(e,t){var n=s.get(e);if(n){if(n.has(t))return!0}else s.set(e,n=new Set);return n.add(t),!1}},function(e,t,n){"use strict";var r=n(80);n.d(t,"b",(function(){return r.a}));var o=n(375);n.d(t,"a",(function(){return o.b}));n(630),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";var r;function o(e){return!!e&&e<7}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(r||(r={}))},function(e,t,n){var r=n(371),o=n(625),a=n(1735),i=n(1739),s=n(1741),c=function(e,t,n){var l,u,d,f,p=e&c.F,h=e&c.G,g=e&c.S,m=e&c.P,b=e&c.B,v=h?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,y=h?o:o[t]||(o[t]={}),w=y.prototype||(y.prototype={});for(l in h&&(n=t),n)d=((u=!p&&v&&void 0!==v[l])?v:n)[l],f=b&&u?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,v&&i(v,l,d,e&c.U),y[l]!=d&&a(y,l,f),m&&w[l]!=d&&(w[l]=d)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return x}));var r,o,a=n(11),i=n(0),s=n(294),c=n(44),l=n(45),u=n(13),d=n(109);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t1)for(var n=1;n0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return b(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r0)return o.getInlineStyleAt(r-1);return b(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return h(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),h(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new s({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var a=i.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:a,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var s=e.getSelection(),c=e.getCurrentContent(),l=e.getUndoStack(),u=n;s!==c.getSelectionAfter()||m(e,r)?(l=l.push(c),u=u.set("selectionBefore",s)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",c.getSelectionBefore()));var f=e.getInlineStyleOverride(),p=["adjust-depth","change-block-type","split-block"];-1===p.indexOf(r)&&(f=null);var h={currentContent:u,directionMap:a,undoStack:l,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return t.set(e,h)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),a=i.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:a,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),a=i.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:a,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function h(e,t,n){return p.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function g(e,t){return e.getBlockMap().map((function(n){return o.generate(e,n,t)})).toOrderedMap()}function m(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function b(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):l()}e.exports=p},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return S})),n.d(t,"b",(function(){return C})),n.d(t,"l",(function(){return j})),n.d(t,"a",(function(){return L})),n.d(t,"j",(function(){return P})),n.d(t,"n",(function(){return T})),n.d(t,"h",(function(){return M})),n.d(t,"g",(function(){return I})),n.d(t,"d",(function(){return R})),n.d(t,"e",(function(){return N})),n.d(t,"f",(function(){return D})),n.d(t,"i",(function(){return H})),n.d(t,"m",(function(){return G})),n.d(t,"k",(function(){return F}));var r,o,a,i,s,c,l,u,d,f,p,h,g,m,b,v,y=n(37),w=n(4),_=n(1),x=n.n(_);function O(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(v="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&v(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var k,E,S=x()(w.Box)(r||(r=O(["\n padding: 2.67rem;\n"]))),A=x()(w.Box)(o||(o=O(["\n width: 296px;\n"]))),C=x()(w.Box)(a||(a=O(["\n display: flex;\n width: 296px;\n flex-direction: column;\n background: #ffffff;\n border: 1px solid #d9d9d9;\n border-radius: 6px;\n padding: 12px;\n margin-bottom: 1.5rem;\n"]))),j=x.a.p(i||(i=O(["\n letter-spacing: 1.4px;\n text-transform: uppercase;\n color: ",";\n font-size: 12px;\n margin: 0 0 4px 0;\n"])),(function(e){return e.theme.colors.darkContrast})),L=x.a.p(s||(s=O(["\n font-weight: 700;\n font-size: 16px;\n margin: 0;\n"]))),P=x()(w.Box)(c||(c=O(["\n width: 296px;\n margin-bottom: 1.5rem;\n\n #bucket-name,\n #asset-value,\n #min-time-horizon,\n #max-time-horizon,\n #min-expected-return,\n #max-expected-return {\n height: 48px;\n font-size: 16px;\n }\n"]))),T=x()(w.Box)(l||(l=O(["\n width: 100%;\n margin-bottom: 1.5rem;\n"]))),M=x()(w.Box)(u||(u=O(["\n display: flex;\n gap: 32px;\n width: 100%;\n"]))),I=x()(w.Box)(d||(d=O(["\n display: flex;\n width: 296px;\n justify-content: center;\n"]))),R=x.a.p(f||(f=O(["\n font-weight: 700;\n font-size: 16px;\n margin: 0 0 4px 0;\n"]))),N=x.a.p(p||(p=O(["\n font-weight: 700;\n font-size: 16px;\n margin: 0 0 10px 0;\n"]))),D=x.a.p(h||(h=O(["\n font-size: 12px;\n letter-spacing: ",";\n margin: 0 0 4px 0;\n"])),(function(e){return e.theme.letterSpacings.baseline})),H=x()(w.Box)(g||(g=O(["\n display: flex;\n flex-direction: row;\n align-items: center;\n margin: 0;\n .spacer {\n margin: 0 10px;\n }\n"]))),G=x()(w.Box)(m||(m=O(["\n display: flex;\n gap: 32px;\n width: 100%;\n div,\n input,\n select,\n option {\n width: 100%;\n }\n"]))),F=x()(y.m)(b||(b=O(["\n color: ",";\n"])),(function(e){var t=e.theme,n=e.value;return null!=n&&n.length?t.colors.forms.input:t.colors.forms.placeholder}));(k="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(k.register(S,"EditBucketContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx"),k.register(A,"ColumnContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx"),k.register(C,"CurrentValueContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx"),k.register(j,"StyledSpacedHeadline","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx"),k.register(L,"BoldText","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx"),k.register(P,"StyledInternalContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx"),k.register(T,"StyledWideInternalContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx"),k.register(M,"StyledFullwidthFlexContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx"),k.register(I,"StyledCenteredChildrenContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx"),k.register(R,"HeadlineName","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx"),k.register(N,"HeadlineName2","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx"),k.register(D,"Paragraph","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx"),k.register(H,"StyledInputWrapper","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx"),k.register(G,"StyledSpacedInputLine","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx"),k.register(F,"StyledSelect","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/EditBucketModal/EditBucketModal.style.tsx")),(E="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&E(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"d",(function(){return R})),n.d(t,"n",(function(){return N})),n.d(t,"g",(function(){return D})),n.d(t,"q",(function(){return H})),n.d(t,"e",(function(){return G})),n.d(t,"c",(function(){return F})),n.d(t,"p",(function(){return B})),n.d(t,"r",(function(){return z})),n.d(t,"h",(function(){return U})),n.d(t,"o",(function(){return q})),n.d(t,"i",(function(){return V})),n.d(t,"t",(function(){return W})),n.d(t,"m",(function(){return K})),n.d(t,"l",(function(){return Y})),n.d(t,"s",(function(){return X})),n.d(t,"b",(function(){return Q})),n.d(t,"f",(function(){return Z})),n.d(t,"u",(function(){return J})),n.d(t,"a",(function(){return ee})),n.d(t,"v",(function(){return te})),n.d(t,"w",(function(){return ne})),n.d(t,"j",(function(){return re})),n.d(t,"k",(function(){return oe}));var r,o,a,i,s,c,l,u,d,f,p,h,g,m,b,v,y,w,_,x,O,k,E,S,A,C=n(18),j=n(4),L=n(1),P=n.n(L);function T(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(A="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&A(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var M,I,R=P()(j.Box)(r||(r=T(["\n display: flex;\n /* min-height: 193px; */\n padding: 20px;\n border: 1px solid ",";\n border-radius: 6px;\n flex-direction: column;\n margin-top: 20px;\n /* height: 290px; */\n width: 100%;\n height: 100%;\n\n @media only screen and (min-device-width: 768px) and (max-device-width: 1440px) {\n height: 255px;\n }\n\n @media print {\n border-radius: 0px;\n border: 1px solid ",";\n height: 300px;\n @media (orientation: portrait) {\n height: 650px;\n }\n }\n"])),(function(e){var t=e.theme;return Object(C.i)(.6,t.colors.brandPrimary)}),(function(e){return e.theme.colors.brandPrimary})),N=P()(j.Box)(o||(o=T(["\n width: 100%;\n height: 100%;\n justify-content: ",";\n align-items: ",";\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-auto-rows: 1fr;\n grid-template-rows: 1fr;\n row-gap: 12px;\n column-gap: 20px;\n"])),(function(e){return e.centered?"center":"flex-start"}),(function(e){return e.centered?"center":"flex-start"})),D=P()(j.Box)(a||(a=T(["\n display: flex;\n justify-content: flex-start;\n align-items: flex-start;\n border: 1px solid ",";\n border-radius: 6px;\n padding: 12px;\n width: 100%;\n height: 100%;\n flex-direction: row;\n overflow: hidden;\n max-height: 91px;\n\n @media print {\n border-radius: 0px;\n }\n"])),(function(e){return e.theme.colors.lightGrey})),H=P.a.h1(i||(i=T(["\n color: ",";\n text-transform: uppercase;\n font-style: normal;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 1.4px;\n margin: 0;\n padding: 0;\n margin-bottom: 12px;\n"])),(function(e){return e.theme.colors.darkSubtle})),G=P()(j.Box)(s||(s=T(["\n box-shadow: 0px 2px 8px rgba(27, 38, 50, 0.2);\n color: ",";\n font-weight: 700;\n font-size: 12px;\n line-height: 12px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 20px;\n width: 20px;\n height: 20px;\n min-width: 20px;\n\n @media print {\n box-shadow: none;\n }\n"])),(function(e){return e.theme.colors.brandPrimary})),F=P()(j.Box)(c||(c=T(["\n display: flex;\n flex-direction: column;\n margin-left: 8px;\n overflow: hidden;\n"]))),B=P.a.p(l||(l=T(["\n color: ",";\n font-style: normal;\n font-weight: 700;\n font-size: 12px;\n line-height: 16px;\n margin: 0;\n padding: 0;\n overflow: hidden;\n width: 100%;\n max-height: 68px;\n text-overflow: ellipsis;\n display: -webkit-box !important;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n"])),(function(e){return e.theme.colors.darkRegular})),z=P.a.p(u||(u=T(["\n color: ",";\n font-style: normal;\n font-weight: 500;\n font-size: 12px;\n line-height: 16px;\n margin: 0;\n padding: 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n width: 260px;\n\n & span {\n color: ",";\n text-decoration: Uppercase;\n font-weight: 600;\n }\n"])),(function(e){return e.theme.colors.darkSubtle}),(function(e){return e.theme.colors.darkRegular})),U=P()(j.Box)(d||(d=T(["\n display: flex;\n width: 100%;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n min-width: 710px;\n height: 100%;\n"]))),q=P()(j.Box)(f||(f=T(["\n display: flex;\n width: 100%;\n flex-direction: row;\n justify-content: space-between;\n align-items: space-between;\n margin-bottom: 40px;\n"]))),V=P()(j.Box)(p||(p=T(["\n display: flex;\n width: 100%;\n height: 100%;\n justify-content: ",";\n align-items: ",";\n flex-wrap: wrap;\n gap: 24px;\n row-gap: 24px;\n"])),(function(e){return e.centered?"center":"space-between"}),(function(e){return e.centered?"center":"space-between"})),W=P()(j.Box)(h||(h=T(["\n display: flex;\n width: 48%;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n"]))),$=P()(j.Box)(g||(g=T(["\n display: flex;\n width: 100%;\n justify-content: center;\n align-items: center;\n"]))),K=P.a.h1(m||(m=T(["\n color: ",";\n font-weight: 700;\n font-size: 19.2px;\n line-height: 25px;\n margin: 0;\n padding: 0;\n margin-bottom: 8px;\n"])),(function(e){return e.theme.colors.darkRegular})),Y=P.a.p(b||(b=T(["\n color: ",";\n font-style: normal;\n font-weight: 400;\n font-size: 13.33px;\n line-height: 15px;\n margin: 0;\n padding: 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n text-transform: uppercase;\n letter-spacing: 1.8px;\n display: flex;\n\n & span {\n margin-left: 8px;\n font-weight: 700;\n }\n"])),(function(e){return e.theme.colors.darkRegular})),X=P.a.div(v||(v=T(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n & span {\n font-style: normal;\n font-size: 13.33px;\n line-height: 15px;\n margin: 0;\n padding: 0;\n margin-left: 8px;\n font-weight: 700;\n }\n"]))),Q=P()(j.Box)(y||(y=T(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n width: calc(50% - 12px);\n"]))),Z=P.a.div(w||(w=T(["\n box-shadow: 0px 5px 20px rgba(27, 38, 50, 0.15);\n color: ",";\n font-weight: 700;\n font-size: 16px;\n line-height: 12px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 32px;\n width: 32px;\n height: 32px;\n"])),(function(e){return e.theme.colors.darkRegular})),J=P()(j.Box)(_||(_=T(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n box-shadow: 0px 5px 20px rgba(27, 38, 50, 0.15);\n border-radius: 6px;\n padding: 16px;\n width: calc(100% - 56px);\n height: 70px;\n flex-direction: row;\n overflow: hidden;\n background: #fff;\n"]))),ee=P()(j.Box)(x||(x=T(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n"]))),te=P()(j.Box)(O||(O=T(["\n display: flex;\n flex-direction: column;\n width: 96%;\n"]))),ne=P.a.button(k||(k=T(["\n all: unset;\n cursor: pointer;\n"]))),re=P.a.p(E||(E=T(["\n color: ",";\n font-style: normal;\n font-weight: 700;\n font-size: 16px;\n line-height: 20px;\n letter-spacing: 0.2px;\n\n margin: 0;\n padding: 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n width: calc(100% - 5px);\n"])),(function(e){return e.theme.colors.darkRegular})),oe=P.a.p(S||(S=T(["\n color: ",";\n font-style: normal;\n font-weight: 400;\n font-size: 12px;\n line-height: 16px;\n margin: 0;\n padding: 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n width: calc(100% - 5px);\n\n & span {\n color: ",";\n text-decoration: Uppercase;\n font-weight: 500;\n }\n"])),(function(e){return e.theme.colors.darkSubtle}),(function(e){return e.theme.colors.darkRegular}));(M="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(M.register(R,"RoundedBorderContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(N,"StyledGrid","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(D,"StyledCard","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(H,"StyledPresentationTitle","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(G,"RoundedIcon","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(F,"ParagraphWrapper","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(B,"StyledParagraph","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(z,"StyledSubParagraph","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(U,"StyledContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(q,"StyledHeader","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(V,"StyledEditorGrid","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(W,"StyledTitleSection","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register($,"StyledButtonSection","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(K,"StyledEditorTitle","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(Y,"StyledEditorSubTitle","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(X,"StyledSubtitleContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(Q,"CardContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(Z,"RoundedNumber","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(J,"StyledWhiteCard","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(ee,"ButtonContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(te,"TextContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(ne,"UnstyledButton","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(re,"StyledEditorParagraph","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx"),M.register(oe,"StyledEditorSubParagraph","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/CommentaryRec/CommentaryRec.style.tsx")),(I="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&I(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l}));var r=n(17),o=n(272),a=n(16);function i(e,t){if(!(e>=0&&e=0&&e{e()},o=e=>{e()};const a=o=>{t?e.push(o):Object(r.o)(()=>{n(o)})},i=()=>{const t=e;e=[],t.length&&Object(r.o)(()=>{o(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||i()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{o=e}}}()},function(e,t,n){var r=n(1143),o=n(98),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=i(e),l=1;l`@media (min-width:${r[e]}px)`};function a(e,t,n){const a=e.theme||{};if(Array.isArray(t)){const e=a.breakpoints||o;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){const e=a.breakpoints||o;return Object.keys(t).reduce((o,a)=>{if(-1!==Object.keys(e.values||r).indexOf(a)){o[e.up(a)]=n(t[a],a)}else{const e=a;o[e]=t[e]}return o},{})}return n(t)}function i(e={}){var t;return(null==e?void 0:null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}function s(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function c({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r{null!=e[t]&&(n[t]=!0)}),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let a;return o.reduce((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[a],a=r):(t[n]=null!=e[n]?e[n]:e[a]||e,a=n),t),{})}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return O}));var r,o=n(11),a=n(1081),i=n.n(a),s=n(0),c=n(45);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),i=new E(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return A()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=x(i,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function p(){}function h(){}function g(){}var m={};s(m,o,(function(){return this}));var b=Object.getPrototypeOf,v=b&&b(b(S([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=g.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var r;this._invoke=function(o,a){function i(){return new t((function(r,i){!function r(o,a,i,s){var c=d(e[o],e,a);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==l(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(c.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]&&arguments[2];return t in e||n},w=function(e){var t=e.useData,n=e.mutation,r=e.cachedQuery,a=e.getVariables,l=e.getOptimisticResponse,d=e.updateStore,p=t().data,h=Object(o.useApolloClient)(),b=m(Object(o.useMutation)(n,Object(c.a)(h,void 0)),2),v=b[0],w=b[1];return[Object(s.useCallback)(function(){var e=g(u().mark((function e(t){var n,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p){e.next=2;break}return e.abrupt("return");case 2:return y(p,"id")&&y(t,"id",!0)&&(t.id=p.id),n=a(t),o=l?l(f(f({},p),t)):void 0,e.next=7,v({variables:f(f({},Object(c.c)()),n),optimisticResponse:o,update:function(e,t){if(t.data){var n=e.readQuery({query:r,variables:Object(c.c)()});if(n){var o=i()(n);d(o,t.data),h.writeQuery({query:r,variables:Object(c.c)(),data:o})}}}});case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[p,h,a,l,v,d,r]),w]};v(w,"useData{{ data }}\nuseApolloClient{client}\nuseMutation{[doMutation, mutationResult]}\nuseCallback{mutate}",(function(){return[o.useApolloClient,o.useMutation]}));var _,x,O=function(e){var t=e.mutation,n=e.cachedQuery,r=e.getVariables,a=e.getOptimisticResponse,l=e.updateStore,d=Object(o.useApolloClient)(),p=m(Object(o.useMutation)(t,Object(c.a)(d,void 0)),2),h=p[0],b=p[1];return[Object(s.useCallback)(function(){var e=g(u().mark((function e(t){var o,s;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=r(t),s=a?a(t):void 0,e.next=4,h({variables:f(f({},Object(c.c)()),o),optimisticResponse:s,update:function(e,t){if(t.data){var r=e.readQuery({query:n,variables:Object(c.c)()});if(r){var o=i()(r);l(o,t.data),d.writeQuery({query:n,variables:Object(c.c)(),data:o})}}}});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[d,r,a,h,l,n]),b]};v(O,"useApolloClient{client}\nuseMutation{[doMutation, mutationResult]}\nuseCallback{mutate}",(function(){return[o.useApolloClient,o.useMutation]})),(_="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(_.register(y,"hasProp","/__w/1271/s/packages/gameplan/src/components/editor/graphql/mutation-utils.ts"),_.register(w,"useAtomicMutation","/__w/1271/s/packages/gameplan/src/components/editor/graphql/mutation-utils.ts"),_.register(O,"useMolecularMutation","/__w/1271/s/packages/gameplan/src/components/editor/graphql/mutation-utils.ts")),(x="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&x(e)}).call(this,n(3)(e))},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){var r=n(112);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){(function(t,r){var o,a={environment:"nodejs",engine:function(){if(a.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=t.platform+"/"+t.version;return t.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+t.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=a.environment,t="aws-sdk-"+e+"/"+n(105).VERSION;return"nodejs"===e&&(t+=" "+a.engine()),t},uriEscape:function(e){var t=encodeURIComponent(e);return t=(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))},uriEscapePath:function(e){var t=[];return a.arrayEach(e.split("/"),(function(e){t.push(a.uriEscape(e))})),t.join("/")},urlParse:function(e){return a.url.parse(e)},urlFormat:function(e){return a.url.format(e)},queryStringParse:function(e){return a.querystring.parse(e)},queryParamsToString:function(e){var t=[],n=a.uriEscape,r=Object.keys(e).sort();return a.arrayEach(r,(function(r){var o=e[r],i=n(r),s=i+"=";if(Array.isArray(o)){var c=[];a.arrayEach(o,(function(e){c.push(n(e))})),s=i+"="+c.sort().join("&"+i+"=")}else null!=o&&(s=i+"="+n(o));t.push(s)})),t.join("&")},readFileSync:function(e){return a.isBrowser()?null:n(990).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw a.error(new Error("Cannot base64 encode number "+e));return null==e?e:a.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"==typeof e)throw a.error(new Error("Cannot base64 decode number "+e));return null==e?e:a.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"==typeof a.Buffer.from&&a.Buffer.from!==Uint8Array.from?a.Buffer.from(e,t):new a.Buffer(e,t)},alloc:function(e,t,n){if("number"!=typeof e)throw new Error("size passed to alloc must be a number.");if("function"==typeof a.Buffer.alloc)return a.Buffer.alloc(e,t,n);var r=new a.Buffer(e);return void 0!==t&&"function"==typeof r.fill&&r.fill(t,void 0,void 0,n),r},toStream:function(e){a.Buffer.isBuffer(e)||(e=a.buffer.toBuffer(e));var t=new a.stream.Readable,n=0;return t._read=function(r){if(n>=e.length)return t.push(null);var o=n+r;o>e.length&&(o=e.length),t.push(e.slice(n,o)),n=o},t},concat:function(e){var t,n,r=0,o=0;for(n=0;n>>8^t[255&(n^e.readUInt8(r))]}return(-1^n)>>>0},hmac:function(e,t,n,r){return n||(n="binary"),"buffer"===n&&(n=void 0),r||(r="sha256"),"string"==typeof t&&(t=a.buffer.toBuffer(t)),a.crypto.lib.createHmac(r,e).update(t).digest(n)},md5:function(e,t,n){return a.crypto.hash("md5",e,t,n)},sha256:function(e,t,n){return a.crypto.hash("sha256",e,t,n)},hash:function(e,t,n,r){var o=a.crypto.createHash(e);n||(n="binary"),"buffer"===n&&(n=void 0),"string"==typeof t&&(t=a.buffer.toBuffer(t));var i=a.arraySliceFn(t),s=a.Buffer.isBuffer(t);if(a.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),r&&"object"==typeof t&&"function"==typeof t.on&&!s)t.on("data",(function(e){o.update(e)})),t.on("error",(function(e){r(e)})),t.on("end",(function(){r(null,o.digest(n))}));else{if(!r||!i||s||"undefined"==typeof FileReader){a.isBrowser()&&"object"==typeof t&&!s&&(t=new a.Buffer(new Uint8Array(t)));var c=o.update(t).digest(n);return r&&r(null,c),c}var l=0,u=new FileReader;u.onerror=function(){r(new Error("Failed to read data."))},u.onload=function(){var e=new a.Buffer(new Uint8Array(u.result));o.update(e),l+=e.length,u._continueReading()},u._continueReading=function(){if(l>=t.size)r(null,o.digest(n));else{var e=l+524288;e>t.size&&(e=t.size),u.readAsArrayBuffer(i.call(t,l,e))}},u._continueReading()}},toHex:function(e){for(var t=[],n=0;n=3e5,!1),o.config.isClockSkewed},applyClockOffset:function(e){e&&(o.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var n=!1;void 0===t&&o&&o.config&&(t=o.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(n=!0),Array.isArray(e)||(e=[e]);for(var r=0;r=500||429===r});o&&i.retryable&&(i.retryAfter=o),c(i)}}))}),c)};o.util.defer(l)},uuid:{v4:function(){return n(1497).v4()}},convertPayloadToString:function(e){var t=e.request,n=t.operation,r=t.service.api.operations[n].output||{};r.payload&&e.data[r.payload]&&(e.data[r.payload]=e.data[r.payload].toString())},defer:function(e){"object"==typeof t&&"function"==typeof t.nextTick?t.nextTick(e):"function"==typeof r?r(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var n=(t||{})[e.operation];if(n&&n.input&&n.input.payload)return n.input.members[n.input.payload]}},getProfilesFromSharedConfig:function(e,n){var r={},o={};if(t.env[a.configOptInEnv])o=e.loadFrom({isConfig:!0,filename:t.env[a.sharedConfigFileEnv]});for(var i=e.loadFrom({filename:n||t.env[a.configOptInEnv]&&t.env[a.sharedCredentialsFileEnv]}),s=0,c=Object.keys(o);s=e.length)return t.push(null);var o=n+r;o>e.length&&(o=e.length),t.push(e.slice(n,o)),n=o},t},concat:function(e){var t,n,r=0,o=0;for(n=0;n>>8^t[255&(n^e.readUInt8(r))]}return(-1^n)>>>0},hmac:function(e,t,n,r){return n||(n="binary"),"buffer"===n&&(n=void 0),r||(r="sha256"),"string"==typeof t&&(t=a.buffer.toBuffer(t)),a.crypto.lib.createHmac(r,e).update(t).digest(n)},md5:function(e,t,n){return a.crypto.hash("md5",e,t,n)},sha256:function(e,t,n){return a.crypto.hash("sha256",e,t,n)},hash:function(e,t,n,r){var o=a.crypto.createHash(e);n||(n="binary"),"buffer"===n&&(n=void 0),"string"==typeof t&&(t=a.buffer.toBuffer(t));var i=a.arraySliceFn(t),s=a.Buffer.isBuffer(t);if(a.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),r&&"object"==typeof t&&"function"==typeof t.on&&!s)t.on("data",(function(e){o.update(e)})),t.on("error",(function(e){r(e)})),t.on("end",(function(){r(null,o.digest(n))}));else{if(!r||!i||s||"undefined"==typeof FileReader){a.isBrowser()&&"object"==typeof t&&!s&&(t=new a.Buffer(new Uint8Array(t)));var c=o.update(t).digest(n);return r&&r(null,c),c}var l=0,u=new FileReader;u.onerror=function(){r(new Error("Failed to read data."))},u.onload=function(){var e=new a.Buffer(new Uint8Array(u.result));o.update(e),l+=e.length,u._continueReading()},u._continueReading=function(){if(l>=t.size)r(null,o.digest(n));else{var e=l+524288;e>t.size&&(e=t.size),u.readAsArrayBuffer(i.call(t,l,e))}},u._continueReading()}},toHex:function(e){for(var t=[],n=0;n=3e5,!1),o.config.isClockSkewed},applyClockOffset:function(e){e&&(o.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var n=!1;void 0===t&&o&&o.config&&(t=o.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(n=!0),Array.isArray(e)||(e=[e]);for(var r=0;r=0?(s++,setTimeout(l,o+(e.retryAfter||0))):n(e)},l=function(){var t="";r.handleRequest(e,i,(function(e){e.on("data",(function(e){t+=e.toString()})),e.on("end",(function(){var r=e.statusCode;if(r<300)n(null,t);else{var o=1e3*parseInt(e.headers["retry-after"],10)||0,i=a.error(new Error,{statusCode:r,retryable:r>=500||429===r});o&&i.retryable&&(i.retryAfter=o),c(i)}}))}),c)};o.util.defer(l)},uuid:{v4:function(){return n(1497).v4()}},convertPayloadToString:function(e){var t=e.request,n=t.operation,r=t.service.api.operations[n].output||{};r.payload&&e.data[r.payload]&&(e.data[r.payload]=e.data[r.payload].toString())},defer:function(e){"object"==typeof t&&"function"==typeof t.nextTick?t.nextTick(e):"function"==typeof r?r(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var n=(t||{})[e.operation];if(n&&n.input&&n.input.payload)return n.input.members[n.input.payload]}},getProfilesFromSharedConfig:function(e,n){var r={},o={};if(t.env[a.configOptInEnv])o=e.loadFrom({isConfig:!0,filename:t.env[a.sharedConfigFileEnv]});for(var i=e.loadFrom({filename:n||t.env[a.configOptInEnv]&&t.env[a.sharedCredentialsFileEnv]}),s=0,c=Object.keys(o);s=6},parse:function(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw a.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};e.exports=a}).call(this,n(143),n(967).setImmediate)},function(e,t,n){var r,o; /*! @preserve * numeral.js * version : 2.0.6 * author : Adam Draper * license : MIT * http://adamwdraper.github.com/Numeral-js/ */void 0===(o="function"==typeof(r=function(){var e,t,n,r,o,a={},i={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function l(e,t){this._input=e,this._value=t}return(e=function(n){var r,o,i,s;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(c.zeroFormat&&n===c.zeroFormat)r=0;else if(c.nullFormat&&n===c.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(o in a)if((s="function"==typeof a[o].regexps.unformat?a[o].regexps.unformat():a[o].regexps.unformat)&&n.match(s)){i=a[o].unformat;break}r=(i=i||e._.stringToNumber)(n)}else r=Number(n)||null;return new l(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof l},e._=t={numberToFormat:function(t,n,r){var o,a,s,c,l,u,d,f,p=i[e.options.currentLocale],h=!1,g=!1,m="",b="",v=!1;if(t=t||0,s=Math.abs(t),e._.includes(n,"(")?(h=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(u=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(a=!!(a=n.match(/a(k|m|b|t)?/))&&a[1],e._.includes(n," a")&&(m=" "),n=n.replace(new RegExp(m+"a[kmbt]?"),""),s>=1e12&&!a||"t"===a?(m+=p.abbreviations.trillion,t/=1e12):s<1e12&&s>=1e9&&!a||"b"===a?(m+=p.abbreviations.billion,t/=1e9):s<1e9&&s>=1e6&&!a||"m"===a?(m+=p.abbreviations.million,t/=1e6):(s<1e6&&s>=1e3&&!a||"k"===a)&&(m+=p.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(g=!0,n=n.replace("[.]",".")),c=t.toString().split(".")[0],l=n.split(".")[1],d=n.indexOf(","),o=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),b=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):b=e._.toFixed(t,l.length,r),c=b.split(".")[0],b=e._.includes(b,".")?p.delimiters.decimal+b.split(".")[1]:"",g&&0===Number(b.slice(1))&&(b="")):c=e._.toFixed(t,0,r),m&&!a&&Number(c)>=1e3&&m!==p.abbreviations.trillion)switch(c=String(Number(c)/1e3),m){case p.abbreviations.thousand:m=p.abbreviations.million;break;case p.abbreviations.million:m=p.abbreviations.billion;break;case p.abbreviations.billion:m=p.abbreviations.trillion}if(e._.includes(c,"-")&&(c=c.slice(1),v=!0),c.length0;y--)c="0"+c;return d>-1&&(c=c.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===n.indexOf(".")&&(c=""),f=c+b+(m||""),h?f=(h&&v?"(":"")+f+(h&&v?")":""):u>=0?f=0===u?(v?"-":"+")+f:f+(v?"-":"+"):v&&(f="-"+f),f},stringToNumber:function(e){var t,n,r,o=i[c.currentLocale],a=e,s={thousand:3,million:6,billion:9,trillion:12};if(c.zeroFormat&&e===c.zeroFormat)n=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),a.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),o=r.length>>>0,a=0;if(3===arguments.length)n=arguments[2];else{for(;a=o)throw new TypeError("Reduce of empty array with no initial value");n=r[a++]}for(;ar?e:r}),1)},toFixed:function(e,t,n,r){var o,a,i,s,c=e.toString().split("."),l=t-(r||0);return o=2===c.length?Math.min(Math.max(c[1].length,l),t):l,i=Math.pow(10,o),s=(n(e+"e+"+o)/i).toFixed(o),r>t-o&&(a=new RegExp("\\.?0{1,"+(r-(t-o))+"}$"),s=s.replace(a,"")),s}},e.options=c,e.formats=a,e.locales=i,e.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},e.localeData=function(e){if(!e)return i[c.currentLocale];if(e=e.toLowerCase(),!i[e])throw new Error("Unknown locale : "+e);return i[e]},e.reset=function(){for(var e in s)c[e]=s[e]},e.zeroFormat=function(e){c.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){c.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){c.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,o,a,i,s,c,l,u;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{l=e.localeData(n)}catch(t){l=e.localeData(e.locale())}return a=l.currency.symbol,s=l.abbreviations,r=l.delimiters.decimal,o="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,!(null!==(u=t.match(/^[^\d]+/))&&(t=t.substr(1),u[0]!==a)||null!==(u=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),u[0]!==s.thousand&&u[0]!==s.million&&u[0]!==s.billion&&u[0]!==s.trillion)||(c=new RegExp(o+"{2}"),t.match(/[^\d.,]/g)||(i=t.split(r)).length>2||(i.length<2?!i[0].match(/^\d+.*\d$/)||i[0].match(c):1===i[0].length?!i[0].match(/^\d+$/)||i[0].match(c)||!i[1].match(/^\d+$/):!i[0].match(/^\d+.*\d$/)||i[0].match(c)||!i[1].match(/^\d+$/))))},e.fn=l.prototype={clone:function(){return e(this)},format:function(t,n){var r,o,i,s=this._value,l=t||c.defaultFormat;if(n=n||Math.round,0===s&&null!==c.zeroFormat)o=c.zeroFormat;else if(null===s&&null!==c.nullFormat)o=c.nullFormat;else{for(r in a)if(l.match(a[r].regexps.format)){i=a[r].format;break}o=(i=i||e._.numberToFormat)(s,l,n)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],(function(e,t,r,o){return e+Math.round(n*t)}),0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],(function(e,t,r,o){return e-Math.round(n*t)}),Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,o){var a=t.correctionFactor(e,n);return Math.round(e*a)*Math.round(n*a)/Math.round(a*a)}),1),this},divide:function(e){return this._value=t.reduce([this._value,e],(function(e,n,r,o){var a=t.correctionFactor(e,n);return Math.round(e*a)/Math.round(n*a)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var o,a=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,a+"BPS"),o=o.join("")):o=o+a+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},o="("+(o=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter((function(e){return n.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(o)},format:function(t,o,a){var i,s,c,l=e._.includes(o,"ib")?r:n,u=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),i=0;i<=l.suffixes.length;i++)if(s=Math.pow(l.base,i),c=Math.pow(l.base,i+1),null===t||0===t||t>=s&&t0&&(t/=s);break}return e._.numberToFormat(t,o,a)+u},unformat:function(t){var o,a,i=e._.stringToNumber(t);if(i){for(o=n.suffixes.length-1;o>=0;o--){if(e._.includes(t,n.suffixes[o])){a=Math.pow(n.base,o);break}if(e._.includes(t,r.suffixes[o])){a=Math.pow(r.base,o);break}}i*=a||1}return i}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var o,a,i=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),a=0;a=0;a--)switch(s.after[a]){case"$":o=a===s.after.length-1?o+i.currency.symbol:e._.insert(o,i.currency.symbol,-(s.after.length-(1+a)));break;case" ":o=a===s.after.length-1?o+" ":e._.insert(o," ",-(s.after.length-(1+a)+i.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var o=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),n,r)+"e"+o[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),o=Number(n[1]);return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([r,Math.pow(10,o)],(function(t,n,r,o){var a=e._.correctionFactor(t,n);return t*a*(n*a)/(a*a)}),1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var o=e.locales[e.options.currentLocale],a=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),a+=o.ordinal(t),e._.numberToFormat(t,n,r)+a}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var o,a=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,a+"%"),o=o.join("")):o=o+a+"%",o},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),o=Math.floor((e-60*r*60)/60),a=Math.round(e-60*r*60-60*o);return r+":"+(o<10?"0"+o:o)+":"+(a<10?"0"+a:a)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})?r.call(t,n,t,e):r)||(e.exports=o)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return j})),n.d(t,"f",(function(){return L})),n.d(t,"b",(function(){return P})),n.d(t,"d",(function(){return T})),n.d(t,"c",(function(){return I})),n.d(t,"g",(function(){return R})),n.d(t,"e",(function(){return H}));var r,o=n(547),a=n(416),i=n(761),s=n(0),c=n(211),l=n(13),u=n(355),d=n(230),f=n(92),p=n(102),h=n(316),g=n(909),m=n(661),b=n(532),v=n(1872);n(711);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */w=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),i=new E(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return A()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=x(i,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function f(){}function p(){}var h={};s(h,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(S([])));m&&m!==t&&n.call(m,o)&&(h=m);var b=p.prototype=d.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var r;this._invoke=function(o,a){function i(){return new t((function(r,i){!function r(o,a,i,s){var c=l(e[o],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==y(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(c.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function _(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function x(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){_(a,r,o,i,s,"next",e)}function s(e){_(a,r,o,i,s,"throw",e)}i(void 0)}))}}function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=49&&i<=54?i-49+10:i>=17&&i<=22?i-17+10:15&i}return r}function c(e,t,n,r){for(var o=0,a=Math.min(e.length,n),i=t;i=49?s-49+10:s>=17?s-17+10:s}return o}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&o++,16===t?this._parseHex(e,o):this._parseBase(e,t,o),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var o=0;o=0;o-=3)i=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[a]|=i<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(o=0,a=0;o>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)o=s(e,n,n+6),this.words[r]|=o<>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);n+6!==t&&(o=s(e,t,n+6),this.words[r]|=o<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,o=1;o<=67108863;o*=t)r++;r--,o=o/t|0;for(var a=e.length-n,i=a%r,s=Math.min(a,a-i)+n,l=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var o=0|e.words[0],a=0|t.words[0],i=o*a,s=67108863&i,c=i/67108864|0;n.words[0]=s;for(var l=1;l>>26,d=67108863&c,f=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=f;p++){var h=l-p|0;u+=(i=(o=0|e.words[h])*(a=0|t.words[p])+d)/67108864|0,d=67108863&i}n.words[l]=0|d,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}a.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var o=0,a=0,i=0;i>>24-o&16777215)||i!==this.length-1?l[6-c.length]+c+n:c+n,(o+=2)>=26&&(o-=26,i--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var f=u[e],p=d[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var g=h.modn(p).toString(e);n=(h=h.idivn(p)).isZero()?g+n:l[f-g.length]+g+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r(void 0!==i),this.toArrayLike(i,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var o=this.byteLength(),a=n||Math.max(1,o);r(o<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var i,s,c="le"===t,l=new e(a),u=this.clone();if(c){for(s=0;!u.isZero();s++)i=u.andln(255),u.iushrn(8),l[s]=i;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var o=0;o0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>>26;for(;0!==o&&a>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>26,this.words[i]=67108863&t;for(;0!==a&&i>26,this.words[i]=67108863&t;if(0===a&&i>>13,p=0|i[1],h=8191&p,g=p>>>13,m=0|i[2],b=8191&m,v=m>>>13,y=0|i[3],w=8191&y,_=y>>>13,x=0|i[4],O=8191&x,k=x>>>13,E=0|i[5],S=8191&E,A=E>>>13,C=0|i[6],j=8191&C,L=C>>>13,P=0|i[7],T=8191&P,M=P>>>13,I=0|i[8],R=8191&I,N=I>>>13,D=0|i[9],H=8191&D,G=D>>>13,F=0|s[0],B=8191&F,z=F>>>13,U=0|s[1],q=8191&U,V=U>>>13,W=0|s[2],$=8191&W,K=W>>>13,Y=0|s[3],X=8191&Y,Q=Y>>>13,Z=0|s[4],J=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,oe=0|s[6],ae=8191&oe,ie=oe>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,pe=0|s[9],he=8191&pe,ge=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var me=(l+(r=Math.imul(d,B))|0)+((8191&(o=(o=Math.imul(d,z))+Math.imul(f,B)|0))<<13)|0;l=((a=Math.imul(f,z))+(o>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,B),o=(o=Math.imul(h,z))+Math.imul(g,B)|0,a=Math.imul(g,z);var be=(l+(r=r+Math.imul(d,q)|0)|0)+((8191&(o=(o=o+Math.imul(d,V)|0)+Math.imul(f,q)|0))<<13)|0;l=((a=a+Math.imul(f,V)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(b,B),o=(o=Math.imul(b,z))+Math.imul(v,B)|0,a=Math.imul(v,z),r=r+Math.imul(h,q)|0,o=(o=o+Math.imul(h,V)|0)+Math.imul(g,q)|0,a=a+Math.imul(g,V)|0;var ve=(l+(r=r+Math.imul(d,$)|0)|0)+((8191&(o=(o=o+Math.imul(d,K)|0)+Math.imul(f,$)|0))<<13)|0;l=((a=a+Math.imul(f,K)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(w,B),o=(o=Math.imul(w,z))+Math.imul(_,B)|0,a=Math.imul(_,z),r=r+Math.imul(b,q)|0,o=(o=o+Math.imul(b,V)|0)+Math.imul(v,q)|0,a=a+Math.imul(v,V)|0,r=r+Math.imul(h,$)|0,o=(o=o+Math.imul(h,K)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,K)|0;var ye=(l+(r=r+Math.imul(d,X)|0)|0)+((8191&(o=(o=o+Math.imul(d,Q)|0)+Math.imul(f,X)|0))<<13)|0;l=((a=a+Math.imul(f,Q)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(O,B),o=(o=Math.imul(O,z))+Math.imul(k,B)|0,a=Math.imul(k,z),r=r+Math.imul(w,q)|0,o=(o=o+Math.imul(w,V)|0)+Math.imul(_,q)|0,a=a+Math.imul(_,V)|0,r=r+Math.imul(b,$)|0,o=(o=o+Math.imul(b,K)|0)+Math.imul(v,$)|0,a=a+Math.imul(v,K)|0,r=r+Math.imul(h,X)|0,o=(o=o+Math.imul(h,Q)|0)+Math.imul(g,X)|0,a=a+Math.imul(g,Q)|0;var we=(l+(r=r+Math.imul(d,J)|0)|0)+((8191&(o=(o=o+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;l=((a=a+Math.imul(f,ee)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(S,B),o=(o=Math.imul(S,z))+Math.imul(A,B)|0,a=Math.imul(A,z),r=r+Math.imul(O,q)|0,o=(o=o+Math.imul(O,V)|0)+Math.imul(k,q)|0,a=a+Math.imul(k,V)|0,r=r+Math.imul(w,$)|0,o=(o=o+Math.imul(w,K)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,K)|0,r=r+Math.imul(b,X)|0,o=(o=o+Math.imul(b,Q)|0)+Math.imul(v,X)|0,a=a+Math.imul(v,Q)|0,r=r+Math.imul(h,J)|0,o=(o=o+Math.imul(h,ee)|0)+Math.imul(g,J)|0,a=a+Math.imul(g,ee)|0;var _e=(l+(r=r+Math.imul(d,ne)|0)|0)+((8191&(o=(o=o+Math.imul(d,re)|0)+Math.imul(f,ne)|0))<<13)|0;l=((a=a+Math.imul(f,re)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(j,B),o=(o=Math.imul(j,z))+Math.imul(L,B)|0,a=Math.imul(L,z),r=r+Math.imul(S,q)|0,o=(o=o+Math.imul(S,V)|0)+Math.imul(A,q)|0,a=a+Math.imul(A,V)|0,r=r+Math.imul(O,$)|0,o=(o=o+Math.imul(O,K)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,K)|0,r=r+Math.imul(w,X)|0,o=(o=o+Math.imul(w,Q)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,Q)|0,r=r+Math.imul(b,J)|0,o=(o=o+Math.imul(b,ee)|0)+Math.imul(v,J)|0,a=a+Math.imul(v,ee)|0,r=r+Math.imul(h,ne)|0,o=(o=o+Math.imul(h,re)|0)+Math.imul(g,ne)|0,a=a+Math.imul(g,re)|0;var xe=(l+(r=r+Math.imul(d,ae)|0)|0)+((8191&(o=(o=o+Math.imul(d,ie)|0)+Math.imul(f,ae)|0))<<13)|0;l=((a=a+Math.imul(f,ie)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(T,B),o=(o=Math.imul(T,z))+Math.imul(M,B)|0,a=Math.imul(M,z),r=r+Math.imul(j,q)|0,o=(o=o+Math.imul(j,V)|0)+Math.imul(L,q)|0,a=a+Math.imul(L,V)|0,r=r+Math.imul(S,$)|0,o=(o=o+Math.imul(S,K)|0)+Math.imul(A,$)|0,a=a+Math.imul(A,K)|0,r=r+Math.imul(O,X)|0,o=(o=o+Math.imul(O,Q)|0)+Math.imul(k,X)|0,a=a+Math.imul(k,Q)|0,r=r+Math.imul(w,J)|0,o=(o=o+Math.imul(w,ee)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,ee)|0,r=r+Math.imul(b,ne)|0,o=(o=o+Math.imul(b,re)|0)+Math.imul(v,ne)|0,a=a+Math.imul(v,re)|0,r=r+Math.imul(h,ae)|0,o=(o=o+Math.imul(h,ie)|0)+Math.imul(g,ae)|0,a=a+Math.imul(g,ie)|0;var Oe=(l+(r=r+Math.imul(d,ce)|0)|0)+((8191&(o=(o=o+Math.imul(d,le)|0)+Math.imul(f,ce)|0))<<13)|0;l=((a=a+Math.imul(f,le)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(R,B),o=(o=Math.imul(R,z))+Math.imul(N,B)|0,a=Math.imul(N,z),r=r+Math.imul(T,q)|0,o=(o=o+Math.imul(T,V)|0)+Math.imul(M,q)|0,a=a+Math.imul(M,V)|0,r=r+Math.imul(j,$)|0,o=(o=o+Math.imul(j,K)|0)+Math.imul(L,$)|0,a=a+Math.imul(L,K)|0,r=r+Math.imul(S,X)|0,o=(o=o+Math.imul(S,Q)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,Q)|0,r=r+Math.imul(O,J)|0,o=(o=o+Math.imul(O,ee)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(w,ne)|0,o=(o=o+Math.imul(w,re)|0)+Math.imul(_,ne)|0,a=a+Math.imul(_,re)|0,r=r+Math.imul(b,ae)|0,o=(o=o+Math.imul(b,ie)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,ie)|0,r=r+Math.imul(h,ce)|0,o=(o=o+Math.imul(h,le)|0)+Math.imul(g,ce)|0,a=a+Math.imul(g,le)|0;var ke=(l+(r=r+Math.imul(d,de)|0)|0)+((8191&(o=(o=o+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;l=((a=a+Math.imul(f,fe)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(H,B),o=(o=Math.imul(H,z))+Math.imul(G,B)|0,a=Math.imul(G,z),r=r+Math.imul(R,q)|0,o=(o=o+Math.imul(R,V)|0)+Math.imul(N,q)|0,a=a+Math.imul(N,V)|0,r=r+Math.imul(T,$)|0,o=(o=o+Math.imul(T,K)|0)+Math.imul(M,$)|0,a=a+Math.imul(M,K)|0,r=r+Math.imul(j,X)|0,o=(o=o+Math.imul(j,Q)|0)+Math.imul(L,X)|0,a=a+Math.imul(L,Q)|0,r=r+Math.imul(S,J)|0,o=(o=o+Math.imul(S,ee)|0)+Math.imul(A,J)|0,a=a+Math.imul(A,ee)|0,r=r+Math.imul(O,ne)|0,o=(o=o+Math.imul(O,re)|0)+Math.imul(k,ne)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(w,ae)|0,o=(o=o+Math.imul(w,ie)|0)+Math.imul(_,ae)|0,a=a+Math.imul(_,ie)|0,r=r+Math.imul(b,ce)|0,o=(o=o+Math.imul(b,le)|0)+Math.imul(v,ce)|0,a=a+Math.imul(v,le)|0,r=r+Math.imul(h,de)|0,o=(o=o+Math.imul(h,fe)|0)+Math.imul(g,de)|0,a=a+Math.imul(g,fe)|0;var Ee=(l+(r=r+Math.imul(d,he)|0)|0)+((8191&(o=(o=o+Math.imul(d,ge)|0)+Math.imul(f,he)|0))<<13)|0;l=((a=a+Math.imul(f,ge)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(H,q),o=(o=Math.imul(H,V))+Math.imul(G,q)|0,a=Math.imul(G,V),r=r+Math.imul(R,$)|0,o=(o=o+Math.imul(R,K)|0)+Math.imul(N,$)|0,a=a+Math.imul(N,K)|0,r=r+Math.imul(T,X)|0,o=(o=o+Math.imul(T,Q)|0)+Math.imul(M,X)|0,a=a+Math.imul(M,Q)|0,r=r+Math.imul(j,J)|0,o=(o=o+Math.imul(j,ee)|0)+Math.imul(L,J)|0,a=a+Math.imul(L,ee)|0,r=r+Math.imul(S,ne)|0,o=(o=o+Math.imul(S,re)|0)+Math.imul(A,ne)|0,a=a+Math.imul(A,re)|0,r=r+Math.imul(O,ae)|0,o=(o=o+Math.imul(O,ie)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,ie)|0,r=r+Math.imul(w,ce)|0,o=(o=o+Math.imul(w,le)|0)+Math.imul(_,ce)|0,a=a+Math.imul(_,le)|0,r=r+Math.imul(b,de)|0,o=(o=o+Math.imul(b,fe)|0)+Math.imul(v,de)|0,a=a+Math.imul(v,fe)|0;var Se=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(o=(o=o+Math.imul(h,ge)|0)+Math.imul(g,he)|0))<<13)|0;l=((a=a+Math.imul(g,ge)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(H,$),o=(o=Math.imul(H,K))+Math.imul(G,$)|0,a=Math.imul(G,K),r=r+Math.imul(R,X)|0,o=(o=o+Math.imul(R,Q)|0)+Math.imul(N,X)|0,a=a+Math.imul(N,Q)|0,r=r+Math.imul(T,J)|0,o=(o=o+Math.imul(T,ee)|0)+Math.imul(M,J)|0,a=a+Math.imul(M,ee)|0,r=r+Math.imul(j,ne)|0,o=(o=o+Math.imul(j,re)|0)+Math.imul(L,ne)|0,a=a+Math.imul(L,re)|0,r=r+Math.imul(S,ae)|0,o=(o=o+Math.imul(S,ie)|0)+Math.imul(A,ae)|0,a=a+Math.imul(A,ie)|0,r=r+Math.imul(O,ce)|0,o=(o=o+Math.imul(O,le)|0)+Math.imul(k,ce)|0,a=a+Math.imul(k,le)|0,r=r+Math.imul(w,de)|0,o=(o=o+Math.imul(w,fe)|0)+Math.imul(_,de)|0,a=a+Math.imul(_,fe)|0;var Ae=(l+(r=r+Math.imul(b,he)|0)|0)+((8191&(o=(o=o+Math.imul(b,ge)|0)+Math.imul(v,he)|0))<<13)|0;l=((a=a+Math.imul(v,ge)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(H,X),o=(o=Math.imul(H,Q))+Math.imul(G,X)|0,a=Math.imul(G,Q),r=r+Math.imul(R,J)|0,o=(o=o+Math.imul(R,ee)|0)+Math.imul(N,J)|0,a=a+Math.imul(N,ee)|0,r=r+Math.imul(T,ne)|0,o=(o=o+Math.imul(T,re)|0)+Math.imul(M,ne)|0,a=a+Math.imul(M,re)|0,r=r+Math.imul(j,ae)|0,o=(o=o+Math.imul(j,ie)|0)+Math.imul(L,ae)|0,a=a+Math.imul(L,ie)|0,r=r+Math.imul(S,ce)|0,o=(o=o+Math.imul(S,le)|0)+Math.imul(A,ce)|0,a=a+Math.imul(A,le)|0,r=r+Math.imul(O,de)|0,o=(o=o+Math.imul(O,fe)|0)+Math.imul(k,de)|0,a=a+Math.imul(k,fe)|0;var Ce=(l+(r=r+Math.imul(w,he)|0)|0)+((8191&(o=(o=o+Math.imul(w,ge)|0)+Math.imul(_,he)|0))<<13)|0;l=((a=a+Math.imul(_,ge)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(H,J),o=(o=Math.imul(H,ee))+Math.imul(G,J)|0,a=Math.imul(G,ee),r=r+Math.imul(R,ne)|0,o=(o=o+Math.imul(R,re)|0)+Math.imul(N,ne)|0,a=a+Math.imul(N,re)|0,r=r+Math.imul(T,ae)|0,o=(o=o+Math.imul(T,ie)|0)+Math.imul(M,ae)|0,a=a+Math.imul(M,ie)|0,r=r+Math.imul(j,ce)|0,o=(o=o+Math.imul(j,le)|0)+Math.imul(L,ce)|0,a=a+Math.imul(L,le)|0,r=r+Math.imul(S,de)|0,o=(o=o+Math.imul(S,fe)|0)+Math.imul(A,de)|0,a=a+Math.imul(A,fe)|0;var je=(l+(r=r+Math.imul(O,he)|0)|0)+((8191&(o=(o=o+Math.imul(O,ge)|0)+Math.imul(k,he)|0))<<13)|0;l=((a=a+Math.imul(k,ge)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(H,ne),o=(o=Math.imul(H,re))+Math.imul(G,ne)|0,a=Math.imul(G,re),r=r+Math.imul(R,ae)|0,o=(o=o+Math.imul(R,ie)|0)+Math.imul(N,ae)|0,a=a+Math.imul(N,ie)|0,r=r+Math.imul(T,ce)|0,o=(o=o+Math.imul(T,le)|0)+Math.imul(M,ce)|0,a=a+Math.imul(M,le)|0,r=r+Math.imul(j,de)|0,o=(o=o+Math.imul(j,fe)|0)+Math.imul(L,de)|0,a=a+Math.imul(L,fe)|0;var Le=(l+(r=r+Math.imul(S,he)|0)|0)+((8191&(o=(o=o+Math.imul(S,ge)|0)+Math.imul(A,he)|0))<<13)|0;l=((a=a+Math.imul(A,ge)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(H,ae),o=(o=Math.imul(H,ie))+Math.imul(G,ae)|0,a=Math.imul(G,ie),r=r+Math.imul(R,ce)|0,o=(o=o+Math.imul(R,le)|0)+Math.imul(N,ce)|0,a=a+Math.imul(N,le)|0,r=r+Math.imul(T,de)|0,o=(o=o+Math.imul(T,fe)|0)+Math.imul(M,de)|0,a=a+Math.imul(M,fe)|0;var Pe=(l+(r=r+Math.imul(j,he)|0)|0)+((8191&(o=(o=o+Math.imul(j,ge)|0)+Math.imul(L,he)|0))<<13)|0;l=((a=a+Math.imul(L,ge)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(H,ce),o=(o=Math.imul(H,le))+Math.imul(G,ce)|0,a=Math.imul(G,le),r=r+Math.imul(R,de)|0,o=(o=o+Math.imul(R,fe)|0)+Math.imul(N,de)|0,a=a+Math.imul(N,fe)|0;var Te=(l+(r=r+Math.imul(T,he)|0)|0)+((8191&(o=(o=o+Math.imul(T,ge)|0)+Math.imul(M,he)|0))<<13)|0;l=((a=a+Math.imul(M,ge)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(H,de),o=(o=Math.imul(H,fe))+Math.imul(G,de)|0,a=Math.imul(G,fe);var Me=(l+(r=r+Math.imul(R,he)|0)|0)+((8191&(o=(o=o+Math.imul(R,ge)|0)+Math.imul(N,he)|0))<<13)|0;l=((a=a+Math.imul(N,ge)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863;var Ie=(l+(r=Math.imul(H,he))|0)+((8191&(o=(o=Math.imul(H,ge))+Math.imul(G,he)|0))<<13)|0;return l=((a=Math.imul(G,ge))+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,c[0]=me,c[1]=be,c[2]=ve,c[3]=ye,c[4]=we,c[5]=_e,c[6]=xe,c[7]=Oe,c[8]=ke,c[9]=Ee,c[10]=Se,c[11]=Ae,c[12]=Ce,c[13]=je,c[14]=Le,c[15]=Pe,c[16]=Te,c[17]=Me,c[18]=Ie,0!==l&&(c[19]=l,n.length++),n};function h(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=f),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?f(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,o=0,a=0;a>>26)|0)>>>26,i&=67108863}n.words[a]=s,r=i,i=o}return 0!==r?n.words[a]=r:n.length--,n.strip()}(this,e,t):h(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,n,r,o,a){for(var i=0;i>>=1)o++;return 1<>>=13,n[2*i+1]=8191&a,a>>>=13;for(i=2*t;i>=26,t+=o/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>o}return t}(e);if(0===t.length)return new a(1);for(var n=this,r=0;r=0);var t,n=e%26,o=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var i=0;for(t=0;t>>26-n}i&&(this.words[t]=i,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t=0),o=t?(t-t%26)/26:0;var a=e%26,i=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<i)for(this.length-=i,l=0;l=0&&(0!==u||l>=o);l--){var d=0|this.words[l];this.words[l]=u<<26-a|d>>>a,u=d&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,o=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var o=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[o+n]=67108863&a}for(;o>26,this.words[o+n]=67108863&a;if(0===s)return this.strip();for(r(-1===s),s=0,o=0;o>26,this.words[o]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,i=0|o.words[o.length-1];0!==(n=26-this._countBits(i))&&(o=o.ushln(n),r.iushln(n),i=0|o.words[o.length-1]);var s,c=r.length-o.length;if("mod"!==t){(s=new a(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l=0;d--){var f=67108864*(0|r.words[o.length+d])+(0|r.words[o.length+d-1]);for(f=Math.min(f/i|0,67108863),r._ishlnsubmul(o,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(o,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(i=s.mod.neg(),n&&0!==i.negative&&i.iadd(e)),{div:o,mod:i}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(i=s.mod.neg(),n&&0!==i.negative&&i.isub(e)),{div:s.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var o,i,s},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),o=e.andln(1),a=n.cmp(r);return a<0||1===o&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,o=this.length-1;o>=0;o--)n=(t*n+(0|this.words[o]))%e;return n},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*t;this.words[n]=o/e|0,t=o%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new a(1),i=new a(0),s=new a(0),c=new a(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var f=0,p=1;0==(t.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||i.isOdd())&&(o.iadd(u),i.isub(d)),o.iushrn(1),i.iushrn(1);for(var h=0,g=1;0==(n.words[0]&g)&&h<26;++h,g<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s),i.isub(c)):(n.isub(t),s.isub(o),c.isub(i))}return{a:s,b:c,gcd:n.iushln(l)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,i=new a(1),s=new a(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)i.isOdd()&&i.iadd(c),i.iushrn(1);for(var d=0,f=1;0==(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s)):(n.isub(t),s.isub(i))}return(o=0===t.cmpn(1)?i:s).cmpn(0)<0&&o.iadd(e),o},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=t.cmp(n);if(o<0){var a=t;t=n,n=a}else if(0===o||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,o=1<>>26,s&=67108863,this.words[i]=s}return 0!==a&&(this.words[i]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:oe.length)return 1;if(this.length=0;n--){var r=0|this.words[n],o=0|e.words[n];if(r!==o){ro&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new x(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function O(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},o(v,b),v.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,o=a}o>>>=22,e.words[r-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=o,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return m[e]=t,t},x.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var o=this.m.subn(1),i=0;!o.isZero()&&0===o.andln(1);)i++,o.iushrn(1);r(!o.isZero());var s=new a(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var d=this.pow(u,o),f=this.pow(e,o.addn(1).iushrn(1)),p=this.pow(e,o),h=i;0!==p.cmp(s);){for(var g=p,m=0;0!==g.cmp(s);m++)g=g.redSqr();r(m=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var d=l>>u&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==i?(i<<=1,i|=d,(4===++s||0===r&&0===u)&&(o=this.mul(o,n[i]),s=0,i=0)):s=0}c=26}return o},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new O(e)},o(O,x),O.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},O.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},O.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},O.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},O.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(407)(e))},function(e,t,n){"use strict";var r=n(1525);n.d(t,"b",(function(){return r.a}));var o=n(1526);n.d(t,"a",(function(){return o.a}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return _}));var r,o=n(924),a=n(479),i=n(586),s=n(44),c=n(27),l=n(328);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */d=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),i=new E(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return A()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=x(i,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function p(){}function h(){}function g(){}var m={};s(m,o,(function(){return this}));var b=Object.getPrototypeOf,v=b&&b(b(S([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=g.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var r;this._invoke=function(o,a){function i(){return new t((function(r,i){!function r(o,a,i,s){var c=l(e[o],e,a);if("throw"!==c.type){var d=c.arg,f=d.value;return f&&"object"==u(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(f).then((function(e){d.value=e,i(d)}),(function(e){return r("throw",e,i,s)}))}s(c.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function f(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){f(a,r,o,i,s,"next",e)}function s(e){f(a,r,o,i,s,"throw",e)}i(void 0)}))}}(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},g=function(){var e,t=Object(s.b)().data,n=Object(o.a)({queryKey:["useQueryGetFinancialGoals"],queryFn:(e=p(d().mark((function e(){var n,r,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(Object(l.b)(),"/v1/households/").concat(null==t?void 0:t.id,"/client-goals"),e.next=3,Object(l.a)("GET",null);case 3:return r=e.sent,e.next=6,fetch(n,r);case 6:if((o=e.sent).ok){e.next=10;break}throw c.gb.error("Unable to retrieve your financial goals."),new Error("Unable to retrieve your financial goals.");case 10:return e.next=12,o.json();case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),cacheTime:1/0});return{isLoading:n.isLoading,error:n.error,data:n.data,refetch:n.refetch}};h(g,"useClient{{ data: clientData }}\nuseQuery{{ isLoading, error, data, refetch }}",(function(){return[s.b,o.a]}));var m=function(){var e,t,n=Object(a.b)(),r=Object(s.b)().data;return Object(i.a)({mutationFn:(t=p(d().mark((function e(t){var n,o,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(Object(l.b)(),"/v1/households/").concat(null==r?void 0:r.id,"/client-goals"),e.next=3,Object(l.a)("POST",t);case 3:return o=e.sent,e.next=6,fetch(n,null!=o?o:{});case 6:if((a=e.sent).ok){e.next=10;break}throw c.gb.error("Unable to create the goal."),new Error("Unable to create the goal.");case 10:return e.next=12,a.json();case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),onSuccess:(e=p(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.invalidateQueries({queryKey:["useQueryGetFinancialGoals"]});case 2:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})};h(m,"useQueryClient{queryClient}\nuseClient{{ data: clientData }}\nuseMutation{}",(function(){return[a.b,s.b,i.a]}));var b=function(){var e,t=Object(s.b)().data;return Object(i.a)({mutationFn:(e=p(d().mark((function e(n){var r,o,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(Object(l.b)(),"/v1/households/").concat(null==t?void 0:t.id,"/client-goals/").concat(n.id),e.next=3,Object(l.a)("PUT",n);case 3:return o=e.sent,e.next=6,fetch(r,null!=o?o:{});case 6:if((a=e.sent).ok){e.next=10;break}throw c.gb.error("Unable to update goal: ".concat(n.id,".")),new Error("Unable to update goal: ".concat(n.id,"."));case 10:return e.next=12,a.json();case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})})};h(b,"useClient{{ data: clientData }}\nuseMutation{}",(function(){return[s.b,i.a]}));var v=function(){var e,t=Object(s.b)().data;return Object(i.a)({mutationFn:(e=p(d().mark((function e(n){var r,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(Object(l.b)(),"/v1/households/").concat(null==t?void 0:t.id,"/client-goals/").concat(n.id),e.next=3,Object(l.a)("DELETE",null);case 3:return o=e.sent,e.next=6,fetch(r,null!=o?o:{});case 6:if(e.sent.ok){e.next=10;break}throw c.gb.error("Unable to delete goal: ".concat(n.id,".")),new Error("Unable to delete goal: ".concat(n.id,"."));case 10:return e.abrupt("return",!0);case 11:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})})};h(v,"useClient{{ data: clientData }}\nuseMutation{}",(function(){return[s.b,i.a]}));var y,w,_=function(){var e,t=Object(s.b)().data,n=Object(o.a)({queryKey:["useQueryGetFinancialGoals"],queryFn:(e=p(d().mark((function e(){var n,r,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(Object(l.b)(),"/v1/households/").concat(null==t?void 0:t.id,"/recommended-goals"),e.next=3,Object(l.a)("GET",null);case 3:return r=e.sent,e.next=6,fetch(n,r);case 6:if((o=e.sent).ok){e.next=10;break}throw c.gb.error("Unable to retrieve your financial goals."),new Error("Unable to retrieve your financial goals.");case 10:return e.next=12,o.json();case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),cacheTime:1/0});return{isLoading:n.isLoading,error:n.error,data:n.data,refetch:n.refetch}};h(_,"useClient{{ data: clientData }}\nuseQuery{{ isLoading, error, data, refetch }}",(function(){return[s.b,o.a]})),(y="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(y.register(g,"useQueryGetFinancialGoals","/__w/1271/s/packages/gameplan/src/common/graphql/REST/useQueryFinancialGoals.ts"),y.register(m,"useMutationCreateFinancialGoal","/__w/1271/s/packages/gameplan/src/common/graphql/REST/useQueryFinancialGoals.ts"),y.register(b,"useMutationUpdateFinancialGoal","/__w/1271/s/packages/gameplan/src/common/graphql/REST/useQueryFinancialGoals.ts"),y.register(v,"useMutationDeleteFinancialGoal","/__w/1271/s/packages/gameplan/src/common/graphql/REST/useQueryFinancialGoals.ts"),y.register(_,"useQueryGetRecommendedGoals","/__w/1271/s/packages/gameplan/src/common/graphql/REST/useQueryFinancialGoals.ts")),(w="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&w(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var r=n(17),o=n(124);function a(e,t){e.get("reverseChildren",!1)?e.children.eachReverse(t):e.children.each(t)}var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),Object.defineProperty(t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Layout"}),Object.defineProperty(t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:o.a.classNames.concat([t.className])}),t}(o.a)},function(e,t,n){"use strict";var r=n(22),o=n(6),a=n(0),i=(n(7),n(164)),s=n(203),c=n(3165),l=n(432),u=n(15),d=n(39),f=n(5);const p=["component","direction","spacing","divider","children"];function h(e,t){const n=a.Children.toArray(e).filter(Boolean);return n.reduce((e,r,o)=>(e.push(r),o[t.root]})(({ownerState:e,theme:t})=>{let n=Object(o.a)({display:"flex"},Object(i.b)({theme:t},Object(i.d)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){const r=Object(s.a)(t),o=Object.keys(t.breakpoints.values).reduce((t,n)=>(null==e.spacing[n]&&null==e.direction[n]||(t[n]=!0),t),{}),a=Object(i.d)({values:e.direction,base:o}),c=Object(i.d)({values:e.spacing,base:o}),u=(t,n)=>{return{"& > :not(style) + :not(style)":{margin:0,[`margin${o=n?a[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:Object(s.d)(r,t)}};var o};n=Object(l.a)(n,Object(i.b)({theme:t},c,u))}return n}),m=a.forwardRef((function(e,t){const n=Object(d.a)({props:e,name:"MuiStack"}),a=Object(c.a)(n),{component:i="div",direction:s="column",spacing:l=0,divider:u,children:m}=a,b=Object(r.a)(a,p),v={direction:s,spacing:l};return Object(f.jsx)(g,Object(o.a)({as:i,ownerState:v,ref:t},b,{children:u?h(m,u):m}))}));t.a=m},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return w}));var r=n(115),o=n(176),a=n(0),i=n.n(a),s=n(310),c=(n(7),n(83)),l=n(152),u=n(232),d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);var p,h,g="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},m=Object(l.c)({prop:"flow",variants:{wrap:{wordWrap:"break-word",wordBreak:"break-word"},nowrap:{whiteSpace:"nowrap"},truncate:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}}}),b=c()(i.Text)(r||(p=["\n text-transform: ",";\n word-break: ",";\n ","\n ",";\n"],h||(h=p.slice(0)),r=Object.freeze(Object.defineProperties(p,{raw:{value:Object.freeze(h)}}))),(function(e){return e.textTransform}),(function(e){return e.wordBreak}),m,(function(e){var t=e.theme;return Object(l.c)({prop:"textStyle",variants:t.textStyles})})),v=function(e){var t=e.children,n=e.className,r=e.color,o=void 0===r?"darkRegular":r,i=e.fontFamily,c=void 0===i?"primary":i,l=e.fontSize,p=void 0===l?"baseline":l,h=e.fontWeight,g=void 0===h?"normal":h,m=e.textAlign,v=void 0===m?"left":m,y=e.textTransform,w=void 0===y?"none":y,_=e.letterSpacing,x=void 0===_?"baseline":_,O=e.lineHeight,k=void 0===O?"baseline":O,E=e.wordBreak,S=void 0===E?"normal":E,A=e.flow,C=(e.ref,e.textStyle),j=f(e,u),L=Object(a.useContext)(s.ThemeContext);return a.createElement(b,d({flow:A,fontFamily:c,fontSize:p,fontWeight:L.fontWeights[g],color:o,className:n,letterSpacing:x,lineHeight:k,textAlign:v,textStyle:C,textTransform:w,wordBreak:S},j),t)};g(v,"useContext{theme: ITheme}");var y,w,_=v;t.a=_,(y="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(y.register(m,"flowStyleVariants","/__w/1271/s/packages/ui/src/typography/typography.tsx"),y.register(b,"FluidTypography","/__w/1271/s/packages/ui/src/typography/typography.tsx"),y.register(v,"Typography","/__w/1271/s/packages/ui/src/typography/typography.tsx"),y.register(_,"default","/__w/1271/s/packages/ui/src/typography/typography.tsx")),(w="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&w(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";var r=n(454),o=(n(73),n(68),n(249),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1188)),a=("undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(1189));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,n(761);n.d(t,"a",(function(){return r.c})),n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return a.a}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var r,o=n(474),a=n(546),i=n(8);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},c=function(){switch(Object(i.b)().i18n.language){case"en":case"en-US":default:return a.a}};s(c,"useTranslation{{\n i18n: { language },\n }}",(function(){return[i.b]}));var l,u,d=function(e,t){var n=c();return e?Object(o.default)(e,t,{locale:n}):null};s(d,"useDateFnsLocale{locale}",(function(){return[c]})),(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(l.register(c,"useDateFnsLocale","/__w/1271/s/packages/gameplan/src/common/hooks/date-format.ts"),l.register(d,"useLocaleFormattedDate","/__w/1271/s/packages/gameplan/src/common/hooks/date-format.ts")),(u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&u(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";var r=n(2748),o=n(618),a=n(287),i=n(2763),s=n(444),c=n(997),l=n(999),u=n(1584),d=n(2764),f=n(1600),p=n(726),h=n(243),g=n(1582),m=n(151),b=n(1005),v=n(2827),y=n(1611),w=n(727),_=n(2828),x=n(2831),O=n(335),k=n(1612),E=n(2837),S={Editor:d,EditorBlock:f,EditorState:m,CompositeDecorator:i,Entity:p,EntityInstance:g,BlockMapBuilder:o,CharacterMetadata:a,ContentBlock:s,ContentState:c,RawDraftContentState:v,SelectionState:w,AtomicBlockUtils:r,KeyBindingUtil:b,Modifier:h,RichUtils:y,DefaultDraftBlockRenderMap:l,DefaultDraftInlineStyle:u,convertFromHTML:n(1609),convertFromRaw:x,convertToRaw:_,genKey:O,getDefaultKeyBinding:k,getVisibleSelectionRect:E};e.exports=S},function(e,t,n){"use strict";var r=n(22),o=n(6),a=n(911),i=n(0),s=(n(7),n(28)),c=n(585),l=n(1109),u=n(3168),d=n(3171),f=n(675),p=n(5);const h=["onChange","maxRows","minRows","style","value"];function g(e,t){return parseInt(e[t],10)||0}const m={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};var b=i.forwardRef((function(e,t){const{onChange:n,maxRows:a,minRows:s=1,style:c,value:b}=e,v=Object(r.a)(e,h),{current:y}=i.useRef(null!=b),w=i.useRef(null),_=Object(l.a)(t,w),x=i.useRef(null),O=i.useRef(0),[k,E]=i.useState({}),S=i.useCallback(()=>{const t=w.current,n=Object(u.a)(t).getComputedStyle(t);if("0px"===n.width)return;const r=x.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const o=n["box-sizing"],i=g(n,"padding-bottom")+g(n,"padding-top"),c=g(n,"border-bottom-width")+g(n,"border-top-width"),l=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=l;s&&(f=Math.max(Number(s)*d,f)),a&&(f=Math.min(Number(a)*d,f)),f=Math.max(f,d);const p=f+("border-box"===o?i+c:0),h=Math.abs(f-l)<=1;E(e=>O.current<20&&(p>0&&Math.abs((e.outerHeightStyle||0)-p)>1||e.overflow!==h)?(O.current+=1,{overflow:h,outerHeightStyle:p}):e)},[a,s,e.placeholder]);i.useEffect(()=>{const e=Object(d.a)(()=>{O.current=0,S()}),t=Object(u.a)(w.current);let n;return t.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(e),n.observe(w.current)),()=>{e.clear(),t.removeEventListener("resize",e),n&&n.disconnect()}},[S]),Object(f.a)(()=>{S()}),i.useEffect(()=>{O.current=0},[b]);return Object(p.jsxs)(i.Fragment,{children:[Object(p.jsx)("textarea",Object(o.a)({value:b,onChange:e=>{O.current=0,y||S(),n&&n(e)},ref:_,rows:s,style:Object(o.a)({height:k.outerHeightStyle,overflow:k.overflow?"hidden":null},c)},v)),Object(p.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:x,tabIndex:-1,style:Object(o.a)({},m,c,{padding:0})})]})})),v=n(301),y=n(296),w=n(418),_=n(213),x=n(15),O=n(39),k=n(32),E=n(122),S=n(338),A=n(3175),C=n(466),j=n(357);n.d(t,"e",(function(){return P})),n.d(t,"d",(function(){return T})),n.d(t,"b",(function(){return M})),n.d(t,"a",(function(){return I}));const L=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],P=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Object(k.a)(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},T=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},M=Object(x.a)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:P})(({theme:e,ownerState:t})=>Object(o.a)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${j.a.disabled}`]:{color:e.palette.text.disabled,cursor:"default"}},t.multiline&&Object(o.a)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),I=Object(x.a)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:T})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r={color:"currentColor",opacity:n?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},a={opacity:"0 !important"},i={opacity:n?.42:.5};return Object(o.a)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${j.a.formControl} &`]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${j.a.disabled}`]:{opacity:1,WebkitTextFillColor:e.palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),R=Object(p.jsx)(A.a,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),N=i.forwardRef((function(e,t){const n=Object(O.a)({props:e,name:"MuiInputBase"}),{"aria-describedby":l,autoComplete:u,autoFocus:d,className:f,components:h={},componentsProps:g={},defaultValue:m,disabled:x,disableInjectingGlobalStyles:A,endAdornment:P,fullWidth:T=!1,id:N,inputComponent:D="input",inputProps:H={},inputRef:G,maxRows:F,minRows:B,multiline:z=!1,name:U,onBlur:q,onChange:V,onClick:W,onFocus:$,onKeyDown:K,onKeyUp:Y,placeholder:X,readOnly:Q,renderSuffix:Z,rows:J,startAdornment:ee,type:te="text",value:ne}=n,re=Object(r.a)(n,L),oe=null!=H.value?H.value:ne,{current:ae}=i.useRef(null!=oe),ie=i.useRef(),se=i.useCallback(e=>{0},[]),ce=Object(E.a)(H.ref,se),le=Object(E.a)(G,ce),ue=Object(E.a)(ie,le),[de,fe]=i.useState(!1),pe=Object(_.a)();const he=Object(y.a)({props:n,muiFormControl:pe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});he.focused=pe?pe.focused:de,i.useEffect(()=>{!pe&&x&&de&&(fe(!1),q&&q())},[pe,x,de,q]);const ge=pe&&pe.onFilled,me=pe&&pe.onEmpty,be=i.useCallback(e=>{Object(C.b)(e)?ge&&ge():me&&me()},[ge,me]);Object(S.a)(()=>{ae&&be({value:oe})},[oe,be,ae]);i.useEffect(()=>{be(ie.current)},[]);let ve=D,ye=H;z&&"input"===ve&&(ye=J?Object(o.a)({type:void 0,minRows:J,maxRows:J},ye):Object(o.a)({type:void 0,maxRows:F,minRows:B},ye),ve=b);i.useEffect(()=>{pe&&pe.setAdornedStart(Boolean(ee))},[pe,ee]);const we=Object(o.a)({},n,{color:he.color||"primary",disabled:he.disabled,endAdornment:P,error:he.error,focused:he.focused,formControl:pe,fullWidth:T,hiddenLabel:he.hiddenLabel,multiline:z,size:he.size,startAdornment:ee,type:te}),_e=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:s,fullWidth:l,hiddenLabel:u,multiline:d,size:f,startAdornment:p,type:h}=e,g={root:["root",`color${Object(k.a)(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",i&&"focused",s&&"formControl","small"===f&&"sizeSmall",d&&"multiline",p&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",d&&"inputMultiline","small"===f&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd"]};return Object(c.a)(g,j.b,t)})(we),xe=h.Root||M,Oe=g.root||{},ke=h.Input||I;return ye=Object(o.a)({},ye,g.input),Object(p.jsxs)(i.Fragment,{children:[!A&&R,Object(p.jsxs)(xe,Object(o.a)({},Oe,!Object(v.a)(xe)&&{ownerState:Object(o.a)({},we,Oe.ownerState)},{ref:t,onClick:e=>{ie.current&&e.currentTarget===e.target&&ie.current.focus(),W&&W(e)}},re,{className:Object(s.a)(_e.root,Oe.className,f),children:[ee,Object(p.jsx)(w.a.Provider,{value:null,children:Object(p.jsx)(ke,Object(o.a)({ownerState:we,"aria-invalid":he.error,"aria-describedby":l,autoComplete:u,autoFocus:d,defaultValue:m,disabled:he.disabled,id:N,onAnimationStart:e=>{be("mui-auto-fill-cancel"===e.animationName?ie.current:{value:"x"})},name:U,placeholder:X,readOnly:Q,required:he.required,rows:J,value:oe,onKeyDown:K,onKeyUp:Y,type:te},ye,!Object(v.a)(ke)&&{as:ve,ownerState:Object(o.a)({},we,ye.ownerState)},{ref:ue,className:Object(s.a)(_e.input,ye.className),onBlur:e=>{q&&q(e),H.onBlur&&H.onBlur(e),pe&&pe.onBlur?pe.onBlur(e):fe(!1)},onChange:(e,...t)=>{if(!ae){const t=e.target||ie.current;if(null==t)throw new Error(Object(a.a)(1));be({value:t.value})}H.onChange&&H.onChange(e,...t),V&&V(e,...t)},onFocus:e=>{he.disabled?e.stopPropagation():($&&$(e),H.onFocus&&H.onFocus(e),pe&&pe.onFocus?pe.onFocus(e):fe(!0))}}))}),P,Z?Z(Object(o.a)({},he,{startAdornment:ee})):null]}))]})}));t.c=N},function(e,t,n){"use strict";var r=n(6),o=n(22),a=n(0),i=(n(7),n(28)),s=n(900),c=n(3282),l=n(432),u=n(573);const d=["sx"];function f(e){const{sx:t}=e,n=Object(o.a)(e,d),{systemProps:a,otherProps:i}=(e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach(n=>{u.b[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t})(n);let s;return s=Array.isArray(t)?[a,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Object(l.b)(n)?Object(r.a)({},a,n):a}:Object(r.a)({},a,t),Object(r.a)({},i,{sx:s})}var p=n(901),h=n(5);const g=["className","component"];var m=n(1890),b=n(2030);const v=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:l}=e,u=Object(s.a)("div")(c.a);return a.forwardRef((function(e,a){const s=Object(p.a)(t),c=f(e),{className:d,component:m="div"}=c,b=Object(o.a)(c,g);return Object(h.jsx)(u,Object(r.a)({as:m,ref:a,className:Object(i.a)(d,l?l(n):n),theme:s},b))}))}({defaultTheme:Object(b.a)(),defaultClassName:"MuiBox-root",generateClassName:m.a.generate});t.a=v},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r,o,a,i=n(1141),s=n(98),c=n(117),l=n(186),u=n(173),d=n(690),f=n(590),p=s.WeakMap;if(i){var h=new p,g=h.get,m=h.has,b=h.set;r=function(e,t){return b.call(h,e,t),t},o=function(e){return g.call(h,e)||{}},a=function(e){return m.call(h,e)}}else{var v=d("state");f[v]=!0,r=function(e,t){return l(e,v,t),t},o=function(e){return u(e,v)?e[v]:{}},a=function(e){return u(e,v)}}e.exports={set:r,get:o,has:a,enforce:function(e){return a(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return f}));var r,o=n(1839),a=n(0),i=n(51);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},c=function(){var e=Object(i.a)().t;return{strong:e("labels:strong"),average:e("labels:average"),weak:e("labels:weak")}};s(c,"useTranslation{{ t }}",(function(){return[i.a]}));var l=function(){var e=Object(a.useMemo)((function(){return Object(o.a)()||{}}),[]),t=e.name,n=e.os;return"chrome"===t&&"Android OS"===n||"crios"===t};s(l,"useMemo{{ name: browser, os }}");var u,d,f=function(){var e=location.hostname;return Object(a.useMemo)((function(){var t=e.replace(/^(dashboard\.)/,"");return{lookupAdvisorLink:"".concat(location.protocol,"//").concat(t,"/cx-access"),requestAppointmentLink:"".concat(location.protocol,"//").concat(t,"#appointment")}}),[e])};s(f,"useMemo{}"),(u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(u.register(c,"useStrengthLabels","/__w/1271/s/packages/auth-ui/src/components/client-auth/hooks.ts"),u.register(l,"useIsMobileChrome","/__w/1271/s/packages/auth-ui/src/components/client-auth/hooks.ts"),u.register(f,"useAdvisorLinks","/__w/1271/s/packages/auth-ui/src/components/client-auth/hooks.ts")),(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&d(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(63),o=n(26),a=function(){function e(){}return Object.defineProperty(e,"escape",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}}),Object.defineProperty(e,"unescape",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}}),Object.defineProperty(e,"cleanUp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}}),Object.defineProperty(e,"chunk",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=[];e=this.escape(e);for(var a=t?e.split("'"):[e],i=0;i=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function c(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){c(a,r,o,i,s,"next",e)}function s(e){c(a,r,o,i,s,"throw",e)}i(void 0)}))}}(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var u,d="",f=0;!function(e){e.NOT_AUTHORIZED="NotAuthorizedException",e.INVALID_PARAMETER="InvalidParameterException",e.USER_NOT_FOUND="UserNotFoundException",e.LIMIT_EXCEEDED="LimitExceededException"}(u||(u={}));var p,h,g=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,m=function(e){return g.test(e.toLowerCase())},b=function(){var e=l(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.a.confirmSignUp(t,"000000",{forceAliasCreation:!1});case 3:return e.abrupt("return",!0);case 6:e.prev=6,e.t0=e.catch(0),e.t1=e.t0.code,e.next="NotAuthorizedException"===e.t1?11:"AliasExistsException"===e.t1?11:"CodeMismatchException"===e.t1?11:"ExpiredCodeException"===e.t1?11:(e.t1,12);break;case 11:return e.abrupt("return",!0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=l(s().mark((function e(t,n,r){var o,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",{status:a.a.Valid,advisor:null});case 2:return(o=new URL("".concat(r,"/client-domain/clients/invitation-status"))).searchParams.append("email",encodeURIComponent(t)),o.searchParams.append("nonce",n),e.next=7,fetch(o.toString(),{method:"GET"});case 7:return i=e.sent,e.next=10,i.json();case 10:return e.abrupt("return",e.sent);case 11:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();(p="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(p.register(d,"EMPTY_PASSWORD","/__w/1271/s/packages/auth-ui/src/components/client-auth/utils.ts"),p.register(f,"DEFAULT_PASSWORD_SCORE","/__w/1271/s/packages/auth-ui/src/components/client-auth/utils.ts"),p.register(g,"EMAIL_REGEX","/__w/1271/s/packages/auth-ui/src/components/client-auth/utils.ts"),p.register(m,"isValidEmail","/__w/1271/s/packages/auth-ui/src/components/client-auth/utils.ts"),p.register(b,"usernameExists","/__w/1271/s/packages/auth-ui/src/components/client-auth/utils.ts"),p.register(v,"fetchInvitationStatus","/__w/1271/s/packages/auth-ui/src/components/client-auth/utils.ts")),(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&h(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return s}));n(6),n(7),n(432),n(349);const r={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${r[e]}px)`};function a(e,t,n){const a=e.theme||{};if(Array.isArray(t)){const e=a.breakpoints||o;return t.reduce((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if("object"==typeof t){const e=a.breakpoints||o;return Object.keys(t).reduce((o,a)=>{if(-1!==Object.keys(e.values||r).indexOf(a)){o[e.up(a)]=n(t[a],a)}else{const e=a;o[e]=t[e]}return o},{})}return n(t)}function i(e={}){var t;return(null==e?void 0:null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}function s(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f}));var r,o=n(8),a=n(109);function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!c[e])return[e];e=c[e]}const[t,n]=e.split(""),r=i[t],o=s[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...u,...d];function p(e,t,n,r){const a=Object(o.b)(e,t)||n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function h(e){return p(e,"spacing",8)}function g(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function m(e,t,n,o){if(-1===t.indexOf(n))return null;const a=function(e,t){return n=>e.reduce((e,r)=>(e[r]=g(t,n),e),{})}(l(n),o),i=e[n];return Object(r.b)(e,i,a)}function b(e,t){const n=h(e.theme);return Object.keys(e).map(r=>m(e,t,r,n)).reduce(a.a,{})}function v(e){return b(e,u)}function y(e){return b(e,d)}function w(e){return b(e,f)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=d,w.propTypes={},w.filterProps=f;t.c=w},function(e,t,n){"use strict";(function(e){n.d(t,"f",(function(){return j})),n.d(t,"e",(function(){return L})),n.d(t,"j",(function(){return P})),n.d(t,"g",(function(){return T})),n.d(t,"c",(function(){return I})),n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return D})),n.d(t,"i",(function(){return G})),n.d(t,"h",(function(){return F})),n.d(t,"d",(function(){return q}));var r,o,a,i,s,c,l,u,d,f,p,h,g,m,b,v,y,w,_,x=n(18),O=n(4),k=n(1),E=n.n(k);function S(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(_="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&_(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var A,C,j=E()(O.Box)(r||(r=S(["\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-template-rows: auto;\n gap: 20px;\n ","\n font-size: 12px;\n line-height: 16px;\n color: ",";\n font-weight: 500;\n\n /* TODO: This is better implemented as gap on the component */\n margin-right: 25px;\n\n @media screen and (min-width: 1200px) {\n margin-right: 0;\n }\n\n .lead-in {\n grid-area: lead-in;\n display: flex;\n justify-content: end;\n }\n\n .commentary {\n grid-area: commentary;\n }\n\n .status-key {\n grid-area: status-key;\n }\n\n .financial-goals {\n grid-area: financial-goals;\n\n @media print {\n clear: both;\n page-break-after: always;\n }\n }\n\n .tax-planning {\n grid-area: tax-planning;\n }\n\n .estate-planning {\n grid-area: estate-planning;\n }\n\n .risk-management {\n grid-area: risk-management;\n }\n\n @media print {\n clear: both;\n page-break-after: always;\n }\n"])),(function(e){return e.moneyGuide?Object(k.css)(o||(o=S(["\n grid-template-areas:\n 'lead-in lead-in'\n 'commentary commentary'\n 'financial-goals financial-goals'\n 'status-key status-key'\n 'tax-planning risk-management'\n 'estate-planning risk-management';\n "]))):Object(k.css)(a||(a=S(["\n grid-template-areas:\n 'lead-in lead-in'\n 'commentary commentary'\n 'status-key status-key'\n 'financial-goals financial-goals'\n 'tax-planning risk-management'\n 'estate-planning risk-management';\n "])))}),(function(e){return e.theme.colors.darkRegular})),L=E.a.h2(i||(i=S(["\n font-size: 20px;\n color: ",";\n font-weight: 700;\n line-height: 24px;\n"])),(function(e){return e.theme.colors.darkRegular})),P=E()(O.Text)(s||(s=S(["\n font-size: 12px;\n line-height: 16px;\n color: ",";\n font-weight: 500;\n\n > span {\n color: ",";\n font-weight: 700;\n }\n"])),(function(e){return e.theme.colors.darkSubtle}),(function(e){return e.theme.colors.darkRegular})),T=E.a.h3(c||(c=S(["\n color: ",";\n text-transform: uppercase;\n letter-spacing: 1.4px;\n margin: 0 0 12px 0;\n font-size: 12px;\n line-height: 16px;\n"])),(function(e){return e.theme.colors.darkSubtle})),M=E.a.h4(l||(l=S(["\n color: ",";\n text-transform: uppercase;\n letter-spacing: 1.4px;\n margin: 0;\n margin-bottom: ",";\n font-size: 12px;\n line-height: 16px;\n font-weight: 500;\n"])),(function(e){return e.theme.colors.darkRegular}),(function(e){return!0===e.smallMargin?"8px":"12px"})),I=E()(O.Box)(u||(u=S(["\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: 20px;\n"]))),R=E()(O.Box)(d||(d=S(["\n display: flex;\n border: 1px solid ",";\n border-radius: 6px;\n padding: 12px;\n gap: 8px;\n min-height: calc(100% - 27px);\n position: relative;\n"])),(function(e){return e.theme.colors.lightGrey})),N=E()(O.Box)(f||(f=S(["\n box-shadow: 0px 2px 8px rgba(27, 38, 50, 0.2);\n color: ",";\n font-weight: 700;\n line-height: 12px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 20px;\n min-width: 20px;\n height: 20px;\n\n @media print {\n box-shadow: none;\n }\n"])),(function(e){return e.theme.colors.brandPrimary})),D=E()(O.Text)(p||(p=S(["\n font-weight: 700;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n margin-bottom: 4px;\n"]))),H=E()(O.Text)(h||(h=S(["\n margin: 0 0 8px 0;\n padding-left: 24px;\n list-style: disc;\n"]))),G=E()(O.Box)(g||(g=S(["\n margin-right: 25px;\n margin-top: 20px;\n"]))),F=E()(O.Box)(m||(m=S(["\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-template-rows: auto;\n gap: 20px;\n grid-template-areas:\n 'investments time-frame'\n 'chart chart'\n 'column-1 column-2';\n\n font-size: 12px;\n line-height: 16px;\n color: ",";\n font-weight: 500;\n\n .investments {\n grid-area: investments;\n align-self: flex-end;\n }\n\n .time-frame {\n grid-area: time-frame;\n align-self: flex-end;\n }\n\n .chart {\n grid-area: chart;\n\n @media print {\n clear: both;\n page-break-after: always;\n }\n }\n\n .column-1 {\n grid-area: column-1;\n }\n\n .column-2 {\n grid-area: column-2;\n }\n"])),(function(e){return e.theme.colors.darkRegular})),B=E()(O.Box)(b||(b=S(["\n padding: 12px 20px;\n gap: 8px;\n border-bottom: 2px solid ",";\n background-color: ",";\n border-radius: 6px;\n\n @media print {\n border-radius: 0px;\n border: 1px solid ",";\n box-shadow: none;\n }\n"])),(function(e){return e.theme.colors.brandPrimary}),(function(e){var t=e.theme;return Object(x.i)(.9,t.colors.brandPrimary)}),(function(e){return e.theme.colors.brandPrimary})),z=E()(O.Text)(v||(v=S(["\n font-weight: 700;\n letter-spacing: -0.4px;\n text-transform: uppercase;\n font-size: 30px;\n line-height: 34px;\n color: ",";\n"])),(function(e){return e.theme.colors.darkRegular})),U=E()(O.Box)(y||(y=S(["\n border-radius: 6px;\n overflow: hidden;\n border: 1px solid ",";\n\n table {\n width: calc(100% + 4px);\n margin: -2px;\n border-spacing: 0px;\n\n thead tr th {\n text-align: left;\n padding: 8px 12px;\n font-weight: 600;\n border-bottom: 1px solid ",";\n }\n\n tbody tr td {\n padding: 8px 12px;\n border-bottom: 1px solid ",";\n }\n\n tfoot tr td {\n padding: 12px;\n font-weight: 600;\n }\n\n thead tr th:nth-of-type(2),\n tfoot tr td:nth-of-type(2) {\n font-weight: 700;\n }\n\n thead {\n background-color: ",";\n }\n\n tbody tr:nth-child(even) {\n background-color: ",";\n }\n\n tfoot {\n background-color: ",";\n }\n\n thead tr th:nth-of-type(2),\n tbody tr td:nth-of-type(2),\n tfoot tr td:nth-of-type(2) {\n text-align: right;\n }\n\n tbody:last-of-type tr:last-of-type td {\n border-bottom: 2px solid ",";\n }\n }\n"])),(function(e){return e.theme.colors.lightGrey}),(function(e){return e.theme.colors.lightGrey}),(function(e){return e.theme.colors.lightGrey}),(function(e){var t=e.theme;return Object(x.i)(.9,t.colors.brandPrimary)}),(function(e){var t=e.theme;return Object(x.i)(.9,t.colors.lightGrey)}),(function(e){var t=e.theme;return Object(x.i)(.8,t.colors.brandPrimary)}),(function(e){return e.theme.colors.brandPrimary})),q=E()(O.Box)(w||(w=S(["\n height: 140px;\n"])));(A="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(A.register(j,"StyledLeftContainer","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(L,"StyledLeadInName","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(P,"StyledSubText","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(T,"StyledPresentationTitle","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(M,"StyledPresentationSubTitle","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(I,"StyledFinancialGoalsGrid","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(R,"StyledGreyCard","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(N,"StyledCardRoundedIcon","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(D,"StyledCardTitle","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(H,"StyledCardContentList","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(G,"StyledRightContainerMargin","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(F,"StyledRightContainer","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(B,"StyledMoneyBlock","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(z,"StyledMoneyBlockContent","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(U,"StyledTableContainer","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx"),A.register(q,"StyledGaugeChart","/__w/1271/s/packages/gameplan/src/components/gameplan/wealth-summary/wealth-summary.style.tsx")),(C="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&C(e)}).call(this,n(3)(e))},,,function(e,t,n){var r=n(1143),o=n(173),a=n(1149),i=n(147).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||i(t,e,{value:a.f(e)})}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return l}));var r=n(0),o=n(1068),a=(n(6),n(516),n(1060),n(321)),i=n(385),s={}.hasOwnProperty,c=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(o.a)({key:"css"}):null);c.Provider;var l=function(e){return Object(r.forwardRef)((function(t,n){var o=Object(r.useContext)(c);return e(t,o,n)}))},u=Object(r.createContext)({});var d="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f=function(e,t){var n={};for(var r in t)s.call(t,r)&&(n[r]=t[r]);return n[d]=e,n},p=function(){return null},h=l((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var c=e[d],l=[o],f="";"string"==typeof e.className?f=Object(a.a)(t.registered,l,e.className):null!=e.className&&(f=e.className+" ");var h=Object(i.a)(l,void 0,Object(r.useContext)(u));Object(a.b)(t,h,"string"==typeof c);f+=t.key+"-"+h.name;var g={};for(var m in e)s.call(e,m)&&"css"!==m&&m!==d&&(g[m]=e[m]);g.ref=n,g.className=f;var b=Object(r.createElement)(c,g),v=Object(r.createElement)(p,null);return Object(r.createElement)(r.Fragment,null,v,b)}))},function(e,t,n){"use strict";var r=n(0),o=n(1067);n(652),n(1065);var a=n(399),i=n(576),s=n(571);n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u}));var c={}.hasOwnProperty,l=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(o.a)({key:"css"}):null);l.Provider;var u=function(e){return Object(r.forwardRef)((function(t,n){var o=Object(r.useContext)(l);return e(t,o,n)}))},d=Object(r.createContext)({});var f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",p=function(e,t){var n={};for(var r in t)c.call(t,r)&&(n[r]=t[r]);return n[f]=e,n},h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Object(a.c)(t,n,r);Object(s.a)((function(){return Object(a.b)(t,n,r)}));return null},g=u((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var s=e[f],l=[o],u="";"string"==typeof e.className?u=Object(a.a)(t.registered,l,e.className):null!=e.className&&(u=e.className+" ");var p=Object(i.a)(l,void 0,Object(r.useContext)(d));u+=t.key+"-"+p.name;var g={};for(var m in e)c.call(e,m)&&"css"!==m&&m!==f&&(g[m]=e[m]);return g.ref=n,g.className=u,Object(r.createElement)(r.Fragment,null,Object(r.createElement)(h,{cache:t,serialized:p,isStringTag:"string"==typeof s}),Object(r.createElement)(s,g))}))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",(function(){return utils}));var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(85),_carson_auth_ui__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(547),src_auth_config__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(907),src_auth_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(477),src_common_constants__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(13),src_common_graphql_vars__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(92),src_common_keys__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(102),src_common_utils_user__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(908),whatwg_fetch__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(711),enterModule;function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),i=new O(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return E()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=w(i,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function f(){}function p(){}var h={};s(h,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(k([])));m&&m!==t&&n.call(m,o)&&(h=m);var b=p.prototype=d.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var r;this._invoke=function(o,a){function i(){return new t((function(r,i){!function r(o,a,i,s){var c=l(e[o],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==_typeof(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(d).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(c.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}function asyncGeneratorStep(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){asyncGeneratorStep(a,r,o,i,s,"next",e)}function s(e){asyncGeneratorStep(a,r,o,i,s,"throw",e)}i(void 0)}))}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(418);function a(){return r.useContext(o.a)}},function(e,t,n){"use strict";(function(e){var r,o=n(14),a=n(217),i=n(0),s=n.n(i),c=n(1),l=["className","icon","stroke","clickable","size","color","onClick"];function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var f="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},p=function(e){var t,n,r=e.className,i=e.icon,f=e.stroke,p=e.clickable,h=e.size,g=void 0===h?2:h,m=e.color,b=void 0===m?"darkRegular":m,v=e.onClick,y=d(e,l),w=s.a.useContext(c.ThemeContext),_=w.iconSizes[g]||g,x={className:r,color:b,icon:i,stroke:f,viewBox:y.viewBox,rotate:y.rotate,size:_};if(!p||!v)return s.a.createElement(o.b,u({},x,y));switch(b){case"lightContrast":case"lightRegular":case"lightSubtle":case"lightNonEssential":t=a.b.activeDarken(w.colors[b]),n=a.b.hoverDarken(w.colors[b]);break;default:t=a.b.active(w.colors[b]),n=a.b.hover(w.colors[b])}var O={activeColor:t,disabled:y.disabled,focusColor:n,hoverColor:n};return(s.a.createElement(o.d,u({onClick:v},O,x,y)))};f(p,"useContext{theme: TCXTheme}");var h,g,m=p;t.a=m,(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(h.register(p,"Icon","/__w/1271/s/packages/cx-guide/src/components/icon/icon.tsx"),h.register(m,"default","/__w/1271/s/packages/cx-guide/src/components/icon/icon.tsx")),(g="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&g(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return A}));var r=n(376);function o(){}var a=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=o),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getEntry(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),i=new r.a;function s(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var c=[];function l(e,t){if(!e)throw new Error(t||"assertion failure")}function u(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var d=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!p(this))return this.value[0]},e.prototype.recompute=function(){return l(!this.recomputing,"already recomputing"),function(e){var t=i.getValue();if(t)e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),p(e)?m(t,e):b(t,e)}(this),p(this)?function(e){y(e),i.withValue(e,f,[e]),function(e){if("function"==typeof e.subscribe)try{s(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){if(e.dirty=!1,p(e))return;g(e)}(e);return u(e.value)}(this):u(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,h(this),y(this),s(this))},e.prototype.dispose=function(){var e=this;y(this),s(this),this.parents.forEach((function(t){t.setDirty(),w(t,e)}))},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=c.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(this.deps.forEach((function(t){return t.delete(e)})),this.deps.clear(),c.push(this.deps),this.deps=null)},e.count=0,e}();function f(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function p(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function h(e){e.parents.forEach((function(t){return m(t,e)}))}function g(e){e.parents.forEach((function(t){return b(t,e)}))}function m(e,t){if(l(e.childValues.has(t)),l(p(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=c.pop()||new Set;e.dirtyChildren.add(t),h(e)}function b(e,t){l(e.childValues.has(t)),l(!p(t));var n,r,o,a=e.childValues.get(t);0===a.length?e.childValues.set(t,t.value.slice(0)):(n=a,r=t.value,(o=n.length)>0&&o===r.length&&n[o-1]===r[o-1]||e.setDirty()),v(e,t),p(e)||g(e)}function v(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(c.length<100&&c.push(n),e.dirtyChildren=null))}function y(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){w(e,n)})),e.forgetDeps(),l(null===e.dirtyChildren)}function w(e,t){t.parents.delete(e),e.childValues.delete(t),v(e,t)}var _=function(){return Object.create(null)},x=function(){function e(e,t){void 0===t&&(t=_),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t0?w.setDate(y.getDate()+1):w.setDate(y.getDate()-1);var _=Object(o.a)(w)-u;_>0&&(u+=_)}return new Date(h+m+u)}function d(e){var t,n={},r=e.split(i.dateTimeDelimiter);if(/:/.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1],i.timeZoneDelimiter.test(n.date)&&(n.date=e.split(i.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var o=i.timezone.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}function f(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:null};var o=r[1]&&parseInt(r[1]),a=r[2]&&parseInt(r[2]);return{year:null==a?o:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function p(e,t){if(null===t)return null;var n=e.match(s);if(!n)return null;var r=!!n[4],o=h(n[1]),a=h(n[2])-1,i=h(n[3]),c=h(n[4]),l=h(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,l)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7,a=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+a),r}(t,c,l):new Date(NaN);var u=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(v[t]||(y(e)?29:28))}(t,a,i)&&function(e,t){return t>=1&&t<=(y(e)?366:365)}(t,o)?(u.setUTCFullYear(t,a,Math.max(o,i)),u):new Date(NaN)}function h(e){return e?parseInt(e):1}function g(e){var t=e.match(c);if(!t)return null;var n=m(t[1]),r=m(t[2]),o=m(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,o)?36e5*n+6e4*r+1e3*o:NaN}function m(e){return e&&parseFloat(e.replace(",","."))||0}function b(e){if("Z"===e)return 0;var t=e.match(l);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,o)?n*(36e5*r+6e4*o):NaN}var v=[31,null,31,30,31,30,31,31,30,31,30,31];function y(e){return e%400==0||e%4==0&&e%100}},function(e,t,n){"use strict";n.r(t),n.d(t,"linear",(function(){return o})),n.d(t,"quad",(function(){return a})),n.d(t,"cubic",(function(){return i})),n.d(t,"pow",(function(){return s})),n.d(t,"exp",(function(){return c})),n.d(t,"sine",(function(){return l})),n.d(t,"circle",(function(){return u})),n.d(t,"yoyo",(function(){return d})),n.d(t,"out",(function(){return f})),n.d(t,"inOut",(function(){return p})),n.d(t,"bounce",(function(){return g})),n.d(t,"elastic",(function(){return y}));var r=n(34);function o(e){return e}function a(e){return e*e}function i(e){return e*e*e}function s(e,t){return Math.pow(e,t)}function c(e){return Math.pow(2,10*e-10)}function l(e){return 1-Math.cos(e*r.b)}function u(e){return 1-Math.sqrt(1-e*e)}function d(e){return function(t){return e(t<.5?2*t:2*(1-t))}}function f(e){return function(t){return 1-e(1-t)}}function p(e){return function(t){return t<=.5?e(2*t)/2:1-e(2*(1-t))/2}}var h=7.5625;function g(e){return 1-function(e){return(e=e)<4/11?h*e*e:e<8/11?h*(e-=6/11)*e+.75:e<10/11?h*(e-=9/11)*e+.9375:h*(e-=21/22)*e+63/64}(1-e)}var m=2*Math.PI,b=.3/m,v=Math.asin(1)*b;function y(e){var t=e;return 1*Math.pow(2,10*--t)*Math.sin((v-t)/b)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r,o,a=n(1);(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var i,s,c,l,u="300ms",d=Object(a.css)(r||(i=["\n ","\n"],s||(s=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(s)}}))),(function(e){var t=e.theme;return"calc(".concat(t.fontSizes.baseline," + 50px)")}));(c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(c.register(u,"ANIMATION_DURATION","/__w/1271/s/packages/gameplan/src/components/gameplan/deck/constants.ts"),c.register("baseline","MASTHEAD_FONT_SIZE","/__w/1271/s/packages/gameplan/src/components/gameplan/deck/constants.ts"),c.register(d,"MASTHEAD_HEIGHT_CSS","/__w/1271/s/packages/gameplan/src/components/gameplan/deck/constants.ts")),(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&l(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return k})),n.d(t,"d",(function(){return E})),n.d(t,"a",(function(){return S})),n.d(t,"k",(function(){return A})),n.d(t,"e",(function(){return C})),n.d(t,"l",(function(){return j})),n.d(t,"m",(function(){return L})),n.d(t,"n",(function(){return P})),n.d(t,"g",(function(){return T})),n.d(t,"h",(function(){return M})),n.d(t,"j",(function(){return I})),n.d(t,"i",(function(){return R})),n.d(t,"f",(function(){return N}));var r,o,a,i,s,c,l,u,d,f,p,h,g,m,b,v=n(1),y=n.n(v);function w(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(b="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&b(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var _,x,O=y.a.div(r||(r=w(["\n display: flex;\n flex-direction: column;\n height: fit-content;\n width: fit-content;\n align-items: center;\n\n @media print {\n div {\n -webkit-print-color-adjust: exact;\n print-color-adjust: exact;\n }\n }\n"]))),k=y.a.div(o||(o=w(["\n margin-top: 14px;\n align-items: center;\n\n ","\n"])),(function(e){return e.isPresentationView&&"\n display: flex;\n "})),E=y.a.p(a||(a=w(["\n font-size: 12px;\n font-weight: 500;\n line-height: 14.4px;\n margin: 2px;\n text-align: center;\n color: rgba(27, 38, 50, 0.6);\n"]))),S=y.a.div(i||(i=w(["\n display: flex;\n flex-direction: column;\n height: ",";\n width: ",";\n "," {\n @media (orientation: landscape) {\n width: 80px;\n height: 200px;\n }\n }\n"])),(function(e){e.isPresentationView;return"220px"}),(function(e){return e.isPresentationView?"109px":"80px"}),(function(e){return e.theme.mediaQueries.print})),A=y.a.div(s||(s=w(["\n position: relative;\n margin-top: 15px;\n height: ",";\n"])),(function(e){return e.percent})),C=y.a.div(c||(c=w(["\n margin-top: 15px;\n position: relative;\n margin-bottom: 0;\n height: ",";\n"])),(function(e){return e.percent})),j=y.a.div(l||(l=w(["\n width: 100%;\n height: 100%;\n margin-top: -8px;\n background: ",";\n position: absolute;\n z-index: 0;\n top: 15px;\n"])),(function(e){return"linear-gradient(to bottom, "+e.color1+", "+e.color2+")"})),L=y.a.div(u||(u=w(["\n width: 100%;\n height: 20px;\n background: ",";\n border-radius: ",";\n position: absolute;\n z-index: 1;\n top: -2px;\n\n @media print {\n @media (orientation: landscape) {\n border-radius: 60px / 15px;\n }\n }\n"])),(function(e){return e.color}),(function(e){return e.isPresentationView?"80px / 15px":"60px / 15px"})),P=y.a.div(d||(d=w(["\n width: 100%;\n height: 20px;\n background: white;\n border-radius: ",";\n position: absolute;\n z-index: 1;\n top: -2px;\n\n @media print {\n @media (orientation: landscape) {\n border-radius: 60px / 15px;\n }\n }\n"])),(function(e){return e.isPresentationView?"80px / 15px":"60px / 15px"})),T=y.a.div(f||(f=w(["\n width: 100%;\n height: 100%;\n background: ",";\n position: absolute;\n z-index: 1;\n margin-top: -8px;\n"])),(function(e){return"linear-gradient(to bottom, "+e.color1+", "+e.color2+")"})),M=y.a.div(p||(p=w(["\n width: 100%;\n height: calc(100% - 8px);\n background: white;\n position: absolute;\n z-index: 0;\n margin-top: -8px;\n"]))),I=y.a.div(h||(h=w(["\n width: 100%;\n height: 20px;\n background: white;\n border-radius: ",";\n position: absolute;\n top: -17px;\n z-index: 1;\n\n @media print {\n @media (orientation: landscape) {\n border-radius: 60px / 15px;\n }\n }\n"])),(function(e){return e.isPresentationView?"80px / 15px":"60px / 15px"})),R=y.a.div(g||(g=w(["\n width: 100%;\n height: 20px;\n background: ",";\n border-radius: ",";\n position: absolute;\n top: -17px;\n z-index: 1;\n\n @media print {\n @media (orientation: landscape) {\n border-radius: 60px / 15px;\n }\n }\n"])),(function(e){return e.color}),(function(e){return e.isPresentationView?"80px / 15px":"60px / 15px"})),N=y.a.div(m||(m=w(["\n width: 100%;\n height: 10px;\n border-radius: ",";\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n position: absolute;\n bottom: -2px;\n background: ",";\n\n @media print {\n @media (orientation: landscape) {\n border-radius: 60px / 15px;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n }\n"])),(function(e){return e.isPresentationView?"80px / 15px":"60px / 15px"}),(function(e){return e.color}));(_="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(_.register(O,"ChartContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/TwoSectionCylinder/TwoSectionCylinder.style.tsx"),_.register(k,"Footer","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/TwoSectionCylinder/TwoSectionCylinder.style.tsx"),_.register(E,"FooterText","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/TwoSectionCylinder/TwoSectionCylinder.style.tsx"),_.register(S,"Chart","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/TwoSectionCylinder/TwoSectionCylinder.style.tsx"),_.register(A,"UpperSection","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/TwoSectionCylinder/TwoSectionCylinder.style.tsx"),_.register(C,"LowerSection","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/TwoSectionCylinder/TwoSectionCylinder.style.tsx"),_.register(j,"UpperSectionMiddle","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/TwoSectionCylinder/TwoSectionCylinder.style.tsx"),_.register(L,"UpperSectionTop","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/TwoSectionCylinder/TwoSectionCylinder.style.tsx"),_.register(P,"UpperSectionTopBackground","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/TwoSectionCylinder/TwoSectionCylinder.style.tsx"),_.register(T,"LowerSectionMiddle","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/TwoSectionCylinder/TwoSectionCylinder.style.tsx"),_.register(M,"LowerSectionMiddleBackground","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/TwoSectionCylinder/TwoSectionCylinder.style.tsx"),_.register(I,"LowerSectionTopBackground","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/TwoSectionCylinder/TwoSectionCylinder.style.tsx"),_.register(R,"LowerSectionTop","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/TwoSectionCylinder/TwoSectionCylinder.style.tsx"),_.register(N,"LowerSectionBottom","/__w/1271/s/packages/gameplan/src/components/editor/pages/bucketing-page/components/TwoSectionCylinder/TwoSectionCylinder.style.tsx")),(x="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&x(e)}).call(this,n(3)(e))},function(e,t,n){var r=n(98),o=n(489),a=n(186),i=n(173),s=n(941),c=n(1140),l=n(195),u=l.get,d=l.enforce,f=String(c).split("toString");o("inspectSource",(function(e){return c.call(e)})),(e.exports=function(e,t,n,o){var c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||a(n,"name",t),d(n).source=f.join("string"==typeof t?t:"")),e!==r?(c?!u&&e[t]&&(l=!0):delete e[t],l?e[t]=n:a(e,t,n)):l?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||c.call(this)}))},function(e,t,n){var r=n(167),o=n(588),a=n(158),i=n(130),s=n(594),c=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,u=4==e,d=6==e,f=5==e||d;return function(p,h,g,m){for(var b,v,y=a(p),w=o(y),_=r(h,g,3),x=i(w.length),O=0,k=m||s,E=t?k(p,x):n?k(p,0):void 0;x>O;O++)if((f||O in w)&&(v=_(b=w[O],O,y),e))if(t)E[O]=v;else if(v)switch(e){case 3:return!0;case 5:return b;case 6:return O;case 2:c.call(E,b)}else if(u)return!1;return d?-1:l||u?u:E}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(e,t,n){"use strict";n.r(t);var r=n(32),o=n(788),a=n(132),i=n(380);var s=function(e,t){return()=>null},c=n(548),l=n(295),u=n(455),d=n(1049),f=n(672).a,p=n(338),h=n(789),g=n(760),m=n(314),b=n(322),v=n(122),y=n(518),w=n(1890);n.d(t,"capitalize",(function(){return r.a})),n.d(t,"createChainedFunction",(function(){return o.a})),n.d(t,"createSvgIcon",(function(){return a.a})),n.d(t,"debounce",(function(){return i.a})),n.d(t,"deprecatedPropType",(function(){return s})),n.d(t,"isMuiElement",(function(){return c.a})),n.d(t,"ownerDocument",(function(){return l.a})),n.d(t,"ownerWindow",(function(){return u.a})),n.d(t,"requirePropFactory",(function(){return d.a})),n.d(t,"setRef",(function(){return f})),n.d(t,"unstable_useEnhancedEffect",(function(){return p.a})),n.d(t,"unstable_useId",(function(){return h.a})),n.d(t,"unsupportedProp",(function(){return g.a})),n.d(t,"useControlled",(function(){return m.a})),n.d(t,"useEventCallback",(function(){return b.a})),n.d(t,"useForkRef",(function(){return v.a})),n.d(t,"useIsFocusVisible",(function(){return y.a})),n.d(t,"unstable_ClassNameGenerator",(function(){return w.a}))},function(e,t,n){"use strict";var r=n(31);function o(e){return new r.c((function(t){t.error(e)}))}var a=n(52);var i=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function s(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n>>2]>>>24-a%4*8&255;t[r+a>>>2]|=i<<24-(r+a)%4*8}else for(a=0;a>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=function(t){t=t;var n=987654321,r=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},a=0;a>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new i.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new i.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},d=o.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*c,o);if(c){for(var u=0;ua?1*r:0})),!0},t.objectLessAttributes=function(e,t){var n=Object.assign({},e);return t&&("string"==typeof t?delete n[t]:t.forEach((function(e){delete n[e]}))),n},t.filenameToContentType=function(e,t){void 0===t&&(t="application/octet-stream");var r=e.toLowerCase(),o=n.filter((function(e){return r.endsWith("."+e.ext)}));return o.length>0?o[0].type:t},t.isTextFile=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},t.generateRandomString=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},t.makeQuerablePromise=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,o=e.then((function(e){return r=!0,t=!1,e}),(function(e){throw n=!0,t=!1,e}));return o.isFullfilled=function(){return r},o.isPending=function(){return t},o.isRejected=function(){return n},o},t.browserOrNode=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==e&&null!=e.versions&&null!=e.versions.node}},t.transferKeyToLowerCase=function(e,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!t.isStrictObject(e))return e;var o={};for(var a in e){if(e.hasOwnProperty(a))o[n.includes(a)?a:a[0].toLowerCase()+a.slice(1)]=r.includes(a)?e[a]:t.transferKeyToLowerCase(e[a],n,r)}return o},t.transferKeyToUpperCase=function(e,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!t.isStrictObject(e))return e;var o={};for(var a in e){if(e.hasOwnProperty(a))o[n.includes(a)?a:a[0].toUpperCase()+a.slice(1)]=r.includes(a)?e[a]:t.transferKeyToUpperCase(e[a],n,r)}return o},t.isStrictObject=function(e){return!(!(e instanceof Object)||e instanceof Array||e instanceof Function||e instanceof Number||e instanceof String||e instanceof Boolean)},t}();t.a=r}).call(this,n(143))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var r=n(23),o=n(31);function a(e){return e.hasOwnProperty("graphQLErrors")}var i=function(e){function t(n){var r,a,i=n.graphQLErrors,s=n.networkError,c=n.errorMessage,l=n.extraInfo,u=e.call(this,c)||this;return u.graphQLErrors=i||[],u.networkError=s||null,u.message=c||(r=u,a="",Object(o.A)(r.graphQLErrors)&&r.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";a+=t+"\n"})),r.networkError&&(a+=r.networkError.message+"\n"),a=a.replace(/\n$/,"")),u.extraInfo=l,u.__proto__=t.prototype,u}return Object(r.c)(t,e),t}(Error)},function(e,t,n){"use strict";var r=n(1536);n.d(t,"c",(function(){return r.a}));var o=n(1537);n.d(t,"a",(function(){return o.a}));var a=n(1538);n.d(t,"d",(function(){return a.a}));var i=n(1539);n.d(t,"b",(function(){return i.a}));n(1540),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p}));var r,o,a=n(11),i=n(316);(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);var s,c,l,u,d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},f=Object(a.gql)(r||(s=["\n query GetBranding {\n branding @client\n }\n"],c||(c=s.slice(0)),r=Object.freeze(Object.defineProperties(s,{raw:{value:Object.freeze(c)}})))),p=function(){var e,t=Object(a.useQuery)(f,{client:i.a}).data;return null!==(e=null==t?void 0:t.branding)&&void 0!==e?e:null};d(p,"useQuery{{ data }}",(function(){return[a.useQuery]})),(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(l.register(f,"GET_BRANDING","/__w/1271/s/packages/gameplan/src/common/graphql/branding.ts"),l.register(p,"useBranding","/__w/1271/s/packages/gameplan/src/common/graphql/branding.ts")),(u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&u(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f}));var r,o=n(0),a=n(1);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.scrollTop;function o(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}},function(e,t,n){"use strict";(function(e){n.d(t,"i",(function(){return E})),n.d(t,"h",(function(){return S})),n.d(t,"e",(function(){return A})),n.d(t,"f",(function(){return C})),n.d(t,"d",(function(){return j})),n.d(t,"b",(function(){return L})),n.d(t,"a",(function(){return P})),n.d(t,"g",(function(){return M})),n.d(t,"c",(function(){return D}));var r,o,a,i,s,c,l,u,d,f,p,h,g,m,b,v=n(48),y=n(4),w=n(1),_=n.n(w);function x(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(b="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&b(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var O,k,E=_()(y.Box)(r||(r=x(["\n display: flex;\n flex-direction: column;\n width: 100%;\n"]))),S=_()(v.e)(o||(o=x(["\n font-style: normal;\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n width: fit-content;\n\n padding: 16px;\n"]))),A=_()(y.Box)(a||(a=x(["\n align-items: flex-start;\n padding: 16px 0px 8px;\n gap: 32px;\n background: #ffffff;\n box-shadow: 0px 5px 20px rgba(27, 38, 50, 0.15);\n border-radius: 6px;\n"]))),C=_()(y.Box)(i||(i=x(["\n align-items: center;\n gap: 8px;\n isolation: isolate;\n border-radius: 6px;\n margin-right: 33px;\n"]))),j=_()(y.Box)(s||(s=x(["\n gap: 8px;\n isolation: isolate;\n border-radius: 6px;\n margin-right: 33px;\n margin-top: 33px;\n"]))),L=_()(y.Box)(c||(c=x(["\n gap: 8px;\n isolation: isolate;\n border-radius: 6px;\n margin-right: 33px;\n margin-top: 33px;\n"]))),P=_()(y.Box)(l||(l=x(["\n gap: 8px;\n isolation: isolate;\n border-radius: 6px;\n margin-top: 33px;\n"]))),T=_()(y.Box)(u||(u=x(["\n gap: 8px;\n isolation: isolate;\n border-radius: 6px;\n margin-top: 33px;\n margin-right: 32px;\n box-shadow: 0 5px 20px rgb(27 38 50 / 15%);\n height: 179px;\n"]))),M=_()(y.Box)(d||(d=x(["\n gap: 8px;\n isolation: isolate;\n height: 179px;\n border-radius: 6px;\n margin-top: 33px;\n box-shadow: 0 5px 20px rgb(27 38 50 / 15%);\n"]))),I=_()(y.Box)(f||(f=x(["\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n width: 100%;\n"]))),R=_.a.div(p||(p=x(["\n display: flex;\n flex-direction: row;\n align-items: center;\n\n max-width: 33%;\n"]))),N=_.a.div(h||(h=x(["\n box-shadow: 0px 5px 20px rgba(27, 38, 50, 0.15);\n color: ",";\n font-weight: 700;\n font-size: 16px;\n line-height: 12px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 32px;\n width: 43px;\n height: 32px;\n margin-right: 20px;\n margin-left: ",";\n"])),(function(e){return e.theme.colors.darkRegular}),(function(e){return e.isFirst?"0px":"37px"})),D=_()(y.Box)(g||(g=x(["\n button {\n font-style: normal;\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n width: fit-content;\n background: transparent;\n border: 1px solid #08a0ff;\n color: #08a0ff;\n padding: 16px;\n --button-focus-color: #08a0ff;\n\n > div {\n height: 1rem;\n }\n\n &:hover {\n background-color: rgba(8, 160, 255, 0.1);\n }\n }\n"]))),H=_()(y.Flex)(m||(m=x(["\n justify-content: center;\n align-items: center;\n align-content: center;\n flex-wrap: wrap;\n height: 100%;\n font-size: 16px;\n"])));(O="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(O.register(E,"WealthSummaryPageContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/wealth-summary-page/wealth-summary-page-style.tsx"),O.register(S,"StyledSecondaryBtn","/__w/1271/s/packages/gameplan/src/components/editor/pages/wealth-summary-page/wealth-summary-page-style.tsx"),O.register(A,"InvestmentBalanceContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/wealth-summary-page/wealth-summary-page-style.tsx"),O.register(C,"InvestmentValueContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/wealth-summary-page/wealth-summary-page-style.tsx"),O.register(j,"InvestmentActivityContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/wealth-summary-page/wealth-summary-page-style.tsx"),O.register(L,"BalanceSheetContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/wealth-summary-page/wealth-summary-page-style.tsx"),O.register(P,"AnnualCashFlowContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/wealth-summary-page/wealth-summary-page-style.tsx"),O.register(T,"ProbabilityOfSuccessContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/wealth-summary-page/wealth-summary-page-style.tsx"),O.register(M,"RiskToleranceScoreContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/wealth-summary-page/wealth-summary-page-style.tsx"),O.register(I,"TopFinancialGoalsContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/wealth-summary-page/wealth-summary-page-style.tsx"),O.register(R,"FinancialGoalContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/wealth-summary-page/wealth-summary-page-style.tsx"),O.register(N,"RoundedNumber","/__w/1271/s/packages/gameplan/src/components/editor/pages/wealth-summary-page/wealth-summary-page-style.tsx"),O.register(D,"ExternalLinkContainer","/__w/1271/s/packages/gameplan/src/components/editor/pages/wealth-summary-page/wealth-summary-page-style.tsx"),O.register(H,"FailedRequest","/__w/1271/s/packages/gameplan/src/components/editor/pages/wealth-summary-page/wealth-summary-page-style.tsx")),(k="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&k(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";var r=n(199),o=n(55),a=n(349);n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"d",(function(){return g}));const i={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},l=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!c[e])return[e];e=c[e]}const[t,n]=e.split(""),r=i[t],o=s[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...u,...d];function p(e,t,n,r){const a=Object(o.b)(e,t)||n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function h(e){return p(e,"spacing",8)}function g(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function m(e,t,n,o){if(-1===t.indexOf(n))return null;const a=function(e,t){return n=>e.reduce((e,r)=>(e[r]=g(t,n),e),{})}(l(n),o),i=e[n];return Object(r.b)(e,i,a)}function b(e,t){const n=h(e.theme);return Object.keys(e).map(r=>m(e,t,r,n)).reduce(a.a,{})}function v(e){return b(e,u)}function y(e){return b(e,d)}function w(e){return b(e,f)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=d,w.propTypes={},w.filterProps=f;t.c=w},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.DEFAULT_MSG="Authentication Error",e.EMPTY_USERNAME="Username cannot be empty",e.INVALID_USERNAME="The username should either be a string or one of the sign in types",e.EMPTY_PASSWORD="Password cannot be empty",e.EMPTY_CODE="Confirmation code cannot be empty",e.SIGN_UP_ERROR="Error creating account",e.NO_MFA="No valid MFA method provided",e.INVALID_MFA="Invalid MFA type",e.EMPTY_CHALLENGE="Challenge response cannot be empty",e.NO_USER_SESSION="Failed to get the session because the user is empty"}(r||(r={}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return l}));var r,o=n(0);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},i=function(e,t){return Object(o.useCallback)((function(n){e&&(t?e(n):e(n.target.value,n))}),[e,t])};a(i,"useCallback{}");var s,c,l=function(e){return Object(o.useCallback)((function(t){e&&e(t)}),[e])};a(l,"useCallback{}"),(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(s.register(i,"useChangeEventCallback","/__w/1271/s/packages/ui/src/forms/hooks.ts"),s.register(l,"useFocusEventCallback","/__w/1271/s/packages/ui/src/forms/hooks.ts")),(c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&c(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert("."+r,o,e.sheet,!0);o=o.next}while(void 0!==o)}}},function(e,t,n){"use strict"; /** * @license nested-property https://github.com/cosmosio/nested-property * * The MIT License (MIT) * * Copyright (c) 2014-2015 Olivier Scherrer */e.exports={set:function(e,t,n){if(e&&"object"==typeof e){if("string"==typeof t&&""!==t){var r=t.split(".");return r.reduce((function(e,t,o){return e[t]=e[t]||{},r.length==o+1&&(e[t]=n),e[t]}),e)}return"number"==typeof t?(e[t]=n,e[t]):e}return e},get:function(e,t){return e&&"object"==typeof e?"string"==typeof t&&""!==t?t.split(".").reduce((function(e,t){return e&&e[t]}),e):"number"==typeof t?e[t]:e:e},has:function(e,t,n){return n=n||{},!(!e||"object"!=typeof e)&&("string"==typeof t&&""!==t?t.split(".").reduce((function(e,t,r,o){return r==o.length-1?n.own?!(!e||!e.hasOwnProperty(t)):!!(null!==e&&"object"==typeof e&&t in e):e&&e[t]}),e):"number"==typeof t&&t in e)},hasOwn:function(e,t,n){return this.has(e,t,n||{own:!0})},isIn:function(e,t,n,r){if(r=r||{},e&&"object"==typeof e){if("string"==typeof t&&""!==t){var o,a=t.split("."),i=!1;return o=!!a.reduce((function(e,t){return i=i||e===n||!!e&&e[t]===n,e&&e[t]}),e),r.validPath?i&&o:i}return!1}return!1}}},,function(e,t,n){var r=n(129),o=n(689),a=n(360),i=n(261),s=n(330),c=n(173),l=n(1139),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=i(e),t=s(t,!0),l)try{return u(e,t)}catch(e){}if(c(e,t))return a(!o.f.call(e,t),e[t])}},function(e,t,n){var r=n(173),o=n(158),a=n(690),i=n(949),s=a("IE_PROTO"),c=Object.prototype;e.exports=i?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){"use strict";var r=n(287),o=n(2749),a=n(2750),i=n(2752),s=n(725),c=n(127),l=n(2755),u=n(2756),d=n(131),f=n(1580),p=n(1578),h=n(2757),g=n(2758),m=c.OrderedSet,b={replaceText:function(e,t,n,o,a){var i=p(e,t),s=h(i,t),c=r.create({style:o||m(),entity:a||null});return u(s,s.getSelectionAfter(),n,c)},insertText:function(e,t,n,r,o){return t.isCollapsed()||d(!1),b.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=s(e,t),o=b.removeRange(e,t,"backward");return b.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=p(e,t),a=h(o,t);return l(a,a.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,a,s;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),a=e.getBlockForKey(r),s=e.getBlockForKey(o);var c=t.getStartOffset(),l=t.getEndOffset(),u=a.getEntityAt(c),d=s.getEntityAt(l-1);if(r===o&&u&&u===d){var f=i(e.getEntityMap(),a,s,t,n);return h(e,f)}var g=p(e,t);return h(g,t)},splitBlock:function(e,t){var n=p(e,t),r=h(n,t);return g(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return o.add(e,t,n)},removeInlineStyle:function(e,t,n){return o.remove(e,t,n)},setBlockType:function(e,t,n){return f(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return f(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return f(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=p(e,t);return a(r,t,n)}};e.exports=b},function(e,t,n){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(17),o=n(121),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"_beforeChanged",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._beforeChanged.call(this),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}),Object.defineProperty(t.prototype,"_changed",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._changed.call(this),this._clear&&!this.get("draw")&&this._draw()}}),Object.defineProperty(t.prototype,"_draw",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._display.drawRect(0,0,this.width(),this.height())}}),Object.defineProperty(t.prototype,"_updateSize",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.markDirty(),this._clear=!0}}),Object.defineProperty(t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Rectangle"}),Object.defineProperty(t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:o.a.classNames.concat([t.className])}),t}(o.a)},function(e,t,n){"use strict";var r=n(342),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=c(t),g=c(n),m=0;m",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),d=["%","/","?",";","#"].concat(u),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(717);function y(e,t,n){if(e&&o.isObject(e)&&e instanceof a)return e;var r=new a;return r.parse(e,t,n),r}a.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),s=-1!==a&&a127?M+="x":M+=T[I];if(!M.match(p)){var N=L.slice(0,A),D=L.slice(A+1),H=T.match(h);H&&(N.push(H[1]),D.unshift(H[2])),D.length&&(y="/"+D.join(".")+y),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=r.toASCII(this.hostname));var G=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+G,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!g[x])for(A=0,P=u.length;A0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!O.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=O.slice(-1)[0],S=(n.host||e.host||O.length>1)&&("."===E||".."===E)||""===E,A=0,C=O.length;C>=0;C--)"."===(E=O[C])?O.splice(C,1):".."===E?(O.splice(C,1),A++):A&&(O.splice(C,1),A--);if(!_&&!x)for(;A--;A)O.unshift("..");!_||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),S&&"/"!==O.join("/").substr(-1)&&O.push("");var j,L=""===O[0]||O[0]&&"/"===O[0].charAt(0);k&&(n.hostname=n.host=L?"":O.length?O.shift():"",(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift()));return(_=_||n.host&&O.length)&&!L&&O.unshift(""),O.length?n.pathname=O.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},a.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";(function(e){var r,o=n(18),a=n(0),i=n(1877),s=n.n(i),c=n(1);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},u=function(e){var t=e.size,n=void 0===t?"large":t,r=Object(a.useContext)(c.ThemeContext),i=r?r.colors.brandPrimary:Object(o.i)(.4,"#1B2632");return a.createElement(s.a,{"data-testid":"loader",color:i,size:"small"===n?6:12,margin:"small"===n?1:3})};l(u,"useContext{theme}");var d,f,p=u;t.a=p,(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(d.register(u,"StandardLoader","/__w/1271/s/packages/gameplan/src/components/loader/standard-loader.tsx"),d.register(p,"default","/__w/1271/s/packages/gameplan/src/components/loader/standard-loader.tsx")),(f="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&f(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(17),o=n(124),a=n(181),i=n(20),s=n(272),c=n(74),l=n(256),u=n(24),d=n(16),f=n(26),p=n(65),h=n(34),g=function(e){function t(t){var n=e.call(this)||this;return Object.defineProperty(n,"_sprite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(n,"_rendererDisposers",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(n,"_dispatchParents",{enumerable:!0,configurable:!0,writable:!0,value:!0}),n._sprite=t,n}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"_makePointerEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return{type:e,originalEvent:t.event,point:t.point,simulated:t.simulated,native:t.native,target:this._sprite}}}),Object.defineProperty(t.prototype,"_onRenderer",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this;this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;var r=this._rendererDisposers[e];if(void 0===r){var o=this._sprite._display.on(e,(function(e){t.call(n,e)}));r=this._rendererDisposers[e]=new c.b((function(){delete n._rendererDisposers[e],o.dispose()}))}return r.increment()}}),Object.defineProperty(t.prototype,"_on",{enumerable:!1,configurable:!0,writable:!0,value:function(n,r,o,a,i,s){var l=e.prototype._on.call(this,n,r,o,a,i,s),u=t.RENDERER_EVENTS[r];return void 0!==u&&(l.disposer=new c.e([l.disposer,this._onRenderer(r,u)])),l}}),Object.defineProperty(t.prototype,"stopParentDispatch",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._dispatchParents=!1}}),Object.defineProperty(t.prototype,"dispatchParents",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(e,t),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(e,t)}finally{this._dispatchParents=n}}}),Object.defineProperty(t,"RENDERER_EVENTS",{enumerable:!0,configurable:!0,writable:!0,value:{click:function(e){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",e))&&this.dispatch("click",this._makePointerEvent("click",e))},rightclick:function(e){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",e))},middleclick:function(e){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",e))},dblclick:function(e){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",e))},pointerover:function(e){this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",e))},pointerout:function(e){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",e))},pointerdown:function(e){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",e))},pointerup:function(e){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",e))},globalpointerup:function(e){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",e))},globalpointermove:function(e){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",e))},wheel:function(e){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:e.event,point:e.point})}}}),t}(s.a),m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"_adjustedLocalBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(t,"_localBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(t,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_dataItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_templateField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_sizeDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(t,"_isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(t,"_dragEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_dragPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_isHidden",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(t,"_isShowing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(t,"_isHiding",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(t,"_isDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(t,"_downPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_downPoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(t,"_toggleDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_dragDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_tooltipDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_hoverDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_focusDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_tooltipMoveDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_tooltipPointerDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_statesHandled",{enumerable:!0,configurable:!0,writable:!0,value:!1}),t}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"_afterNew",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.setPrivateRaw("visible",!0),e.prototype._afterNew.call(this)}}),Object.defineProperty(t.prototype,"_markDirtyKey",{enumerable:!1,configurable:!0,writable:!0,value:function(t){e.prototype._markDirtyKey.call(this,t),"x"!=t&&"y"!=t&&"dx"!=t&&"dy"!=t||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}}),Object.defineProperty(t.prototype,"_markDirtyPrivateKey",{enumerable:!1,configurable:!0,writable:!0,value:function(t){e.prototype._markDirtyPrivateKey.call(this,t),"x"!=t&&"y"!=t||this.markDirtyPosition()}}),Object.defineProperty(t.prototype,"_removeTemplateField",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._templateField&&this._templateField._removeObjectTemplate(this)}}),Object.defineProperty(t.prototype,"_createEvents",{enumerable:!1,configurable:!0,writable:!0,value:function(){return new g(this)}}),Object.defineProperty(t.prototype,"_processTemplateField",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t=this.get("templateField");if(t){var n=this.dataItem;if(n){var r=n.dataContext;r&&((e=r[t])instanceof a.a||!e||(e=a.a.new(e)))}}this._templateField!==e&&(this._removeTemplateField(),this._templateField=e,e&&e._setObjectTemplate(this),this._applyTemplates())}}),Object.defineProperty(t.prototype,"_setDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this._dataItem;this._dataItem=e,this._processTemplateField();this.events.isEnabled("dataitemchanged")&&this.events.dispatch("dataitemchanged",{type:"dataitemchanged",target:this,oldDataItem:t,newDataItem:e})}}),Object.defineProperty(t.prototype,"dataItem",{get:function(){if(this._dataItem)return this._dataItem;for(var e=this._parent;e;){if(e._dataItem)return e._dataItem;e=e._parent}},set:function(e){this._setDataItem(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_addPercentageSizeChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.parent;e&&(this.get("width")instanceof i.a||this.get("height")instanceof i.a?d.o(e._percentageSizeChildren,this):d.q(e._percentageSizeChildren,this))}}),Object.defineProperty(t.prototype,"_addPercentagePositionChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.parent;e&&(this.get("x")instanceof i.a||this.get("y")instanceof i.a?d.o(e._percentagePositionChildren,this):d.q(e._percentagePositionChildren,this))}}),Object.defineProperty(t.prototype,"markDirtyPosition",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._root._addDirtyPosition(this)}}),Object.defineProperty(t.prototype,"updatePivotPoint",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this._localBounds;if(e){var t=this.get("centerX");null!=t&&(this._display.pivot.x=e.left+u.C(t,e.right-e.left));var n=this.get("centerY");null!=n&&(this._display.pivot.y=e.top+u.C(n,e.bottom-e.top))}}}),Object.defineProperty(t.prototype,"_beforeChanged",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=this;if(e.prototype._beforeChanged.call(this),this._handleStates(),this.isDirty("tooltip")){var n=this._prevSettings.tooltip;n&&n.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){var r=this._tooltipMoveDp;r&&(r.dispose(),this._tooltipMoveDp=void 0);var o=this._tooltipPointerDp;o&&(o.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this._tooltipPointerDp=new c.e([this.events.on("pointerover",(function(){t._tooltipMoveDp=t.events.on("globalpointermove",(function(e){t.showTooltip(e.point)}))})),this.events.on("pointerout",(function(){var e=t._tooltipMoveDp;e&&(e.dispose(),t._tooltipMoveDp=void 0)}))]))}}}),Object.defineProperty(t.prototype,"_handleStates",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._statesHandled||(this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility()),this._statesHandled=!0)}}),Object.defineProperty(t.prototype,"_changed",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=this;e.prototype._changed.call(this);var n=this._display,r=this.events;if(this.isDirty("draggable")){var o=this.get("draggable");o?(this.set("interactive",!0),this._dragDp=new c.e([r.on("pointerdown",(function(e){t.dragStart(e)})),r.on("globalpointermove",(function(e){t.dragMove(e)})),r.on("globalpointerup",(function(e){t.dragStop(e)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),n.cancelTouch=!!o}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){var a=this.get("tooltipText"),s=this.get("tooltipHTML"),l=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(a||s)&&("click"==l?this._tooltipDp=new c.e([r.on("click",(function(){t.setTimeout((function(){return t.showTooltip()}),10)})),u.a(document,"click",(function(e){t.hideTooltip()}))]):"always"==l||(this._tooltipDp=new c.e([r.on("pointerover",(function(){t.showTooltip()})),r.on("pointerout",(function(){t.hideTooltip()}))])))}if(this.isDirty("toggleKey")){var d=this.get("toggleKey");d&&"none"!=d?this._toggleDp=r.on("click",(function(){t._isDragging||t.set(d,!t.get(d))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(n.alpha=Math.max(0,this.get("opacity",1))),this.isDirty("rotation")&&(this.markDirtyBounds(),n.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),n.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?n.visible=!0:(n.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();var f=this.parent;f&&(this.isDirty("width")&&this.get("width")instanceof i.a||this.isDirty("height")&&this.get("height")instanceof i.a)&&(f.markDirty(),f._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){var p=this.get("wheelable");p&&this.set("interactive",!0),n.wheelable=!!p}if((this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(n.filter=this.get("filter")),this.isDirty("cursorOverStyle")&&(n.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new c.e([r.on("focus",(function(){t.showTooltip()})),r.on("blur",(function(){t.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility()),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(n.exportable=this.get("exportable")),this.isDirty("interactive")){var h=this.events;this.get("interactive")?this._hoverDp=new c.e([h.on("click",(function(e){u.x(e.originalEvent)&&(t.getPrivate("touchHovering")||t.setTimeout((function(){t._handleOver(),(t.get("tooltipText")||t.get("tooltipHTML"))&&t.showTooltip(),t.setPrivateRaw("touchHovering",!0),t.events.dispatch("pointerover",{type:"pointerover",target:e.target,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}),10))})),h.on("globalpointerup",(function(e){u.x(e.originalEvent)&&(t.getPrivate("touchHovering")&&(t._handleOut(),(t.get("tooltipText")||t.get("tooltipHTML"))&&t.hideTooltip()),t.setPrivateRaw("touchHovering",!1),t.events.dispatch("pointerout",{type:"pointerout",target:e.target,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})),t._isDown&&t._handleUp(e)})),h.on("pointerover",(function(){t._handleOver()})),h.on("pointerout",(function(){t._handleOut()})),h.on("pointerdown",(function(e){t._handleDown(e)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",!1)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}}),Object.defineProperty(t.prototype,"dragStart",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._dragEvent=e,this.events.stopParentDispatch()}}),Object.defineProperty(t.prototype,"dragStop",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;var t="dragstop";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}}}),Object.defineProperty(t.prototype,"_handleOver",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"))}}),Object.defineProperty(t.prototype,"_handleOut",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"))}}),Object.defineProperty(t.prototype,"_handleUp",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;var t=u.n(e.originalEvent);delete this._downPoints[t],0==p.d(this._downPoints).length&&(this._isDown=!1)}}}),Object.defineProperty(t.prototype,"_hasMoved",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=u.n(e.originalEvent),n=this._downPoints[t];if(n){var r=Math.abs(n.x-e.point.x),o=Math.abs(n.y-e.point.y);return r>5||o>5}return!1}}),Object.defineProperty(t.prototype,"_hasDown",{enumerable:!1,configurable:!0,writable:!0,value:function(){return p.d(this._downPoints).length>0}}),Object.defineProperty(t.prototype,"_handleDown",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.parent;if(t&&!this.get("draggable")&&t._handleDown(e),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:e.point.x,y:e.point.y},this._isDown=!0;var n=u.n(e.originalEvent);this._downPoints[n]={x:e.point.x,y:e.point.y}}}}),Object.defineProperty(t.prototype,"dragMove",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this._dragEvent;if(t){if(t.simulated&&!e.simulated)return!0;for(var n=0,r=this.parent;null!=r;)n+=r.get("rotation",0),r=r.parent;var o=e.point.x-t.point.x,a=e.point.y-t.point.y,i=this.events;if(t.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=e,this._dragPoint={x:this.x(),y:this.y()};var s="dragstart";i.isEnabled(s)&&i.dispatch(s,{type:s,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}if(this._isDragging){var c=this._dragPoint;this.set("x",c.x+o*h.e(n)+a*h.m(n)),this.set("y",c.y+a*h.e(n)-o*h.m(n));s="dragged";i.isEnabled(s)&&i.dispatch(s,{type:s,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}else if(Math.hypot(o,a)>5){this._isDragging=!0,this._dragEvent=e,this._dragPoint={x:this.x(),y:this.y()};s="dragstart";i.isEnabled(s)&&i.dispatch(s,{type:s,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}}}}),Object.defineProperty(t.prototype,"_updateSize",{enumerable:!1,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(t.prototype,"_getBounds",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._localBounds=this._display.getLocalBounds()}}),Object.defineProperty(t.prototype,"depth",{enumerable:!1,configurable:!0,writable:!0,value:function(){for(var e=this.parent,t=0;;){if(!e)return t;++t,e=e.parent}}}),Object.defineProperty(t.prototype,"markDirtySize",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._sizeDirty=!0,this.markDirty()}}),Object.defineProperty(t.prototype,"markDirtyBounds",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),e.isMeasured=!0,e.invalidateBounds();var t=this.parent;t&&"absolute"!=this.get("position")&&(null==t.get("width")||null==t.get("height")||t.get("layout"))&&t.markDirtyBounds(),this.get("focusable")&&this.isFocus()&&this.markDirtyAccessibility()}}}),Object.defineProperty(t.prototype,"markDirtyAccessibility",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._root._invalidateAccessibility(this)}}),Object.defineProperty(t.prototype,"markDirtyLayer",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._display.markDirtyLayer(!0)}}),Object.defineProperty(t.prototype,"markDirty",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype.markDirty.call(this),this.markDirtyLayer()}}),Object.defineProperty(t.prototype,"_updateBounds",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e,t=this._adjustedLocalBounds;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds):(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom){this.events.isEnabled("boundschanged")&&this.events.dispatch("boundschanged",{type:"boundschanged",target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds())}}}),Object.defineProperty(t.prototype,"_fixMinBounds",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.get("minWidth",this.getPrivate("minWidth")),n=this.get("minHeight",this.getPrivate("minHeight"));f.e(t)&&e.right-e.leftthis._root.width()||e.y<0||e.y>this._root.height()))return void this.hideTooltip();t.label.text.markDirtyText();var s=t.show();return this.setPrivateRaw("showingTooltip",!0),s}}}),Object.defineProperty(t.prototype,"hideTooltip",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.getTooltip();if(e&&e.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)){var t=e.get("keepTargetHover")&&0==e.get("stateAnimationDuration",0)?400:void 0,n=e.hide(t);return this.setPrivateRaw("showingTooltip",!1),n}}}),Object.defineProperty(t.prototype,"_getTooltipPoint",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this._localBounds;if(e){var t=0,n=0;return this.get("isMeasured")?(t=e.left+u.C(this.get("tooltipX",0),e.right-e.left),n=e.top+u.C(this.get("tooltipY",0),e.bottom-e.top)):(t=u.C(this.get("tooltipX",0),this.width()),n=u.C(this.get("tooltipY",0),this.height())),{x:t,y:n}}return{x:0,y:0}}}),Object.defineProperty(t.prototype,"getTooltip",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.get("tooltip");if(e)return e;var t=this.parent;return t?t.getTooltip():void 0}}),Object.defineProperty(t.prototype,"_updatePosition",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.parent,t=this.get("dx",0),n=this.get("dy",0),r=this.get("x"),o=this.getPrivate("x"),a=0,s=0,c=this.get("position");r instanceof i.a&&(r=e?e.innerWidth()*r.value+e.get("paddingLeft",0):0),f.e(r)?a=r+t:null!=o?a=o:e&&"relative"==c&&(a=e.get("paddingLeft",0)+t);var l=this.get("y"),u=this.getPrivate("y");l instanceof i.a&&(l=e?e.innerHeight()*l.value+e.get("paddingTop",0):0),f.e(l)?s=l+n:null!=u?s=u:e&&"relative"==c&&(s=e.get("paddingTop",0)+n);var d=this._display;if(d.x!=a||d.y!=s){d.invalidateBounds(),d.x=a,d.y=s;this.events.isEnabled("positionchanged")&&this.events.dispatch("positionchanged",{type:"positionchanged",target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}}),Object.defineProperty(t.prototype,"x",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.get("x"),t=this.getPrivate("x"),n=this.parent;return n?e instanceof i.a?u.C(e,n.innerWidth())+n.get("paddingLeft",0):f.e(e)?e:null!=t?t:n.get("paddingLeft",this._display.x):this._display.x}}),Object.defineProperty(t.prototype,"y",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.getPrivate("y");if(null!=e)return e;var t=this.get("y"),n=this.parent;return n?t instanceof i.a?u.C(t,n.innerHeight())+n.get("paddingTop",0):f.e(t)?t:null!=e?e:n.get("paddingTop",this._display.y):this._display.y}}),Object.defineProperty(t.prototype,"_dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._dispose.call(this),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);var t=this.get("tooltip");t&&t.dispose(),this.markDirty()}}),Object.defineProperty(t.prototype,"adjustedLocalBounds",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}}),Object.defineProperty(t.prototype,"localBounds",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._localBounds}}),Object.defineProperty(t.prototype,"bounds",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this._adjustedLocalBounds,t=this.x(),n=this.y();return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}}),Object.defineProperty(t.prototype,"globalBounds",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.localBounds(),t=this.toGlobal({x:e.left,y:e.top}),n=this.toGlobal({x:e.right,y:e.top}),r=this.toGlobal({x:e.right,y:e.bottom}),o=this.toGlobal({x:e.left,y:e.bottom});return{left:Math.min(t.x,n.x,r.x,o.x),top:Math.min(t.y,n.y,r.y,o.y),right:Math.max(t.x,n.x,r.x,o.x),bottom:Math.max(t.y,n.y,r.y,o.y)}}}),Object.defineProperty(t.prototype,"_onShow",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(t.prototype,"_onHide",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(t.prototype,"appear",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n=this;return Object(r.d)(this,(function(r){switch(r.label){case 0:return[4,this.hide(0)];case 1:return r.sent(),t?[2,new Promise((function(r,o){n.setTimeout((function(){r(n.show(e))}),t)}))]:[2,this.show(e)]}}))}))}}),Object.defineProperty(t.prototype,"show",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return Object(r.b)(this,void 0,void 0,(function(){var t;return Object(r.d)(this,(function(n){switch(n.label){case 0:return this._isShowing?[3,2]:(this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(e),t=this.states.applyAnimate("default",e),[4,Object(l.d)(t)]);case 1:n.sent(),this._isShowing=!1,n.label=2;case 2:return[2]}}))}))}}),Object.defineProperty(t.prototype,"hide",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return Object(r.b)(this,void 0,void 0,(function(){var t;return Object(r.d)(this,(function(n){switch(n.label){case 0:return this._isHiding||this._isHidden?[3,2]:(this._isHiding=!0,this._isShowing=!1,this.states.lookup("hidden")||this.states.create("hidden",{opacity:0,visible:!1}),this._isHidden=!0,this._onHide(e),t=this.states.applyAnimate("hidden",e),[4,Object(l.d)(t)]);case 1:n.sent(),this._isHiding=!1,n.label=2;case 2:return[2]}}))}))}}),Object.defineProperty(t.prototype,"isHidden",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._isHidden}}),Object.defineProperty(t.prototype,"isShowing",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._isShowing}}),Object.defineProperty(t.prototype,"isHiding",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._isHiding}}),Object.defineProperty(t.prototype,"isHover",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._display.hovering()}}),Object.defineProperty(t.prototype,"isFocus",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._root.focused(this)}}),Object.defineProperty(t.prototype,"isDragging",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._isDragging}}),Object.defineProperty(t.prototype,"isVisible",{enumerable:!1,configurable:!0,writable:!0,value:function(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}}),Object.defineProperty(t.prototype,"isVisibleDeep",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}}),Object.defineProperty(t.prototype,"compositeOpacity",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*e:e}}),Object.defineProperty(t.prototype,"width",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.get("width"),t=this.get("maxWidth",this.getPrivate("maxWidth")),n=this.get("minWidth",this.getPrivate("minWidth")),r=this.getPrivate("width"),o=0;if(f.e(r))o=r;else if(null==e)this._adjustedLocalBounds&&(o=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(e instanceof i.a){var a=this.parent;o=a?a.innerWidth()*e.value:this._root.width()*e.value}else f.e(e)&&(o=e);return f.e(n)&&(o=Math.max(n,o)),f.e(t)&&(o=Math.min(t,o)),o}}),Object.defineProperty(t.prototype,"maxWidth",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.get("maxWidth",this.getPrivate("maxWidth"));if(f.e(e))return e;var t=this.get("width");if(f.e(t))return t;var n=this.parent;return n?n.innerWidth():this._root.width()}}),Object.defineProperty(t.prototype,"maxHeight",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.get("maxHeight",this.getPrivate("maxHeight"));if(f.e(e))return e;var t=this.get("height");if(f.e(t))return t;var n=this.parent;return n?n.innerHeight():this._root.height()}}),Object.defineProperty(t.prototype,"height",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.get("height"),t=this.get("maxHeight",this.getPrivate("maxHeight")),n=this.get("minHeight",this.getPrivate("minHeight")),r=this.getPrivate("height"),o=0;if(f.e(r))o=r;else if(null==e)this._adjustedLocalBounds&&(o=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(e instanceof i.a){var a=this.parent;o=a?a.innerHeight()*e.value:this._root.height()*e.value}else f.e(e)&&(o=e);return f.e(n)&&(o=Math.max(n,o)),f.e(t)&&(o=Math.min(t,o)),o}}),Object.defineProperty(t.prototype,"_findStaticTemplate",{enumerable:!1,configurable:!0,writable:!0,value:function(t){return this._templateField&&t(this._templateField)?this._templateField:e.prototype._findStaticTemplate.call(this,t)}}),Object.defineProperty(t.prototype,"_walkParents",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._parent&&this._walkParent(e)}}),Object.defineProperty(t.prototype,"_walkParent",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._parent&&this._parent._walkParent(e),e(this)}}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_setParent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t=!1);var n=this._parent;e!==n&&(this.markDirtyBounds(),e.markDirty(),this._parent=e,t&&(this._removeParent(n),e&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}}),Object.defineProperty(t.prototype,"getNumberFormatter",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.get("numberFormatter",this._root.numberFormatter)}}),Object.defineProperty(t.prototype,"getDateFormatter",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.get("dateFormatter",this._root.dateFormatter)}}),Object.defineProperty(t.prototype,"getDurationFormatter",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.get("durationFormatter",this._root.durationFormatter)}}),Object.defineProperty(t.prototype,"toGlobal",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._display.toGlobal(e)}}),Object.defineProperty(t.prototype,"toLocal",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._display.toLocal(e)}}),Object.defineProperty(t.prototype,"_getDownPoint",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this._getDownPointId();if(e)return this._downPoints[e]}}),Object.defineProperty(t.prototype,"_getDownPointId",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this._downPoints)return p.e(this._downPoints,(function(e,t){return e>t?1:e>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")}(this)},e}(),h=g;function g(e,t){null!=e&&this.fromString(e,t)}function m(){return new g(null)}var b="undefined"!=typeof navigator;b&&"Microsoft Internet Explorer"==navigator.appName?(g.prototype.am=function(e,t,n,r,o,a){for(var i=32767&t,s=t>>15;--a>=0;){var c=32767&this[e],l=this[e++]>>15,u=s*c+l*i;o=((c=i*c+((32767&u)<<15)+n[r]+(1073741823&o))>>>30)+(u>>>15)+s*l+(o>>>30),n[r++]=1073741823&c}return o},f=30):b&&"Netscape"!=navigator.appName?(g.prototype.am=function(e,t,n,r,o,a){for(;--a>=0;){var i=t*this[e++]+n[r]+o;o=Math.floor(i/67108864),n[r++]=67108863&i}return o},f=26):(g.prototype.am=function(e,t,n,r,o,a){for(var i=16383&t,s=t>>14;--a>=0;){var c=16383&this[e],l=this[e++]>>14,u=s*c+l*i;o=((c=i*c+((16383&u)<<14)+n[r]+o)>>28)+(u>>14)+s*l,n[r++]=268435455&c}return o},f=28),g.prototype.DB=f,g.prototype.DM=(1<>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function E(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},E.prototype.revert=function(e){var t=m();return e.copyTo(t),this.reduce(t),t},E.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},E.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},E.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},g.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},g.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},g.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");n=2}this.t=0,this.s=0;for(var r=e.length,o=!1,a=0;--r>=0;){var i=x(e,r);i<0?"-"==e.charAt(r)&&(o=!0):(o=!1,0==a?this[this.t++]=i:a+n>this.DB?(this[this.t-1]|=(i&(1<>this.DB-a):this[this.t-1]|=i<=this.DB&&(a-=this.DB))}this.clamp(),o&&g.ZERO.subTo(this,this)},g.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},g.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},g.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+i+1]=this[n]>>o|s,s=(this[n]&a)<=0;--n)t[n]=0;t[i]=s,t.t=this.t+i+1,t.s=this.s,t.clamp()},g.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,a=(1<>r;for(var i=n+1;i>r;r>0&&(t[this.t-n-1]|=(this.s&a)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},g.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),o=n.t;for(t.t=o+r.t;--o>=0;)t[o]=0;for(o=0;o=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},g.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var o=this.abs();if(o.t0?(r.lShiftTo(c,a),o.lShiftTo(c,n)):(r.copyTo(a),o.copyTo(n));var l=a.t,u=a[l-1];if(0!=u){var d=u*(1<1?a[l-2]>>this.F2:0),f=this.FV/d,p=(1<=0&&(n[n.t++]=1,n.subTo(y,n)),g.ONE.dlShiftTo(l,y),y.subTo(a,a);a.t=0;){var w=n[--b]==u?this.DM:Math.floor(n[b]*f+(n[b-1]+h)*p);if((n[b]+=a.am(0,w,n,v,0,l))0&&n.rShiftTo(c,n),i<0&&g.ZERO.subTo(n,n)}}},g.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},g.prototype.addTo=function(e,t){for(var n=0,r=0,o=Math.min(e.t,this.t);n>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},g.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}var n,r=(1<0)for(s>s)>0&&(o=!0,a=_(n));i>=0;)s>(s+=this.DB-t)):(n=this[i]>>(s-=t)&r,s<=0&&(s+=this.DB,--i)),n>0&&(o=!0),o&&(a+=_(n));return o?a:"0"},g.prototype.negate=function(){var e=m();return g.ZERO.subTo(this,e),e},g.prototype.abs=function(){return this.s<0?this.negate():this},g.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},g.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+k(this[this.t-1]^this.s&this.DM)},g.prototype.mod=function(e){var t=m();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(g.ZERO)>0&&e.subTo(t,t),t},g.prototype.equals=function(e){return 0==this.compareTo(e)},g.prototype.add=function(e){var t=m();return this.addTo(e,t),t},g.prototype.subtract=function(e){var t=m();return this.subTo(e,t),t},g.prototype.multiply=function(e){var t=m();return this.multiplyTo(e,t),t},g.prototype.divide=function(e){var t=m();return this.divRemTo(e,t,null),t},g.prototype.modPow=function(e,t,n){var r,o=e.bitLength(),a=O(1),i=new E(t);if(o<=0)return a;r=o<18?1:o<48?3:o<144?4:o<768?5:6;var s=new Array,c=3,l=r-1,u=(1<1){var d=m();for(i.sqrTo(s[1],d);c<=u;)s[c]=m(),i.mulTo(d,s[c-2],s[c]),c+=2}var f,p,h=e.t-1,g=!0,b=m();for(o=k(e[h])-1;h>=0;){for(o>=l?f=e[h]>>o-l&u:(f=(e[h]&(1<0&&(f|=e[h-1]>>this.DB+o-l)),c=r;0==(1&f);)f>>=1,--c;if((o-=c)<0&&(o+=this.DB,--h),g)s[f].copyTo(a),g=!1;else{for(;c>1;)i.sqrTo(a,b),i.sqrTo(b,a),c-=2;c>0?i.sqrTo(a,b):(p=a,a=b,b=p),i.mulTo(b,s[f],a)}for(;h>=0&&0==(e[h]&1<2&&void 0!==arguments[2]?arguments[2]:o,i=void 0,l=Array.isArray(e),u=[e],d=-1,f=[],p=void 0,h=void 0,g=void 0,m=[],b=[],v=e;do{var y=++d===u.length,w=y&&0!==f.length;if(y){if(h=0===b.length?void 0:m[m.length-1],p=g,g=b.pop(),w){if(l)p=p.slice();else{for(var _={},x=0,O=Object.keys(p);x=1?n:t}function d(e,t,n){return new o.a(l(e,t.percent,n.percent))}function f(e,t,n){return a.a.interpolate(e,t,n)}function p(e,t){return"number"==typeof e&&"number"==typeof t?l:e instanceof o.a&&t instanceof o.a?d:e instanceof a.a&&t instanceof a.a?f:u}!function(){function e(e,t){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_duration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_playingDuration",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_startingTime",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_current",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_from",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_to",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new i.a}),Object.defineProperty(this,"easing",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._entity=e,this._duration=t}Object.defineProperty(e.prototype,"_stopEvent",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.events.isEnabled("stopped")&&this.events.dispatch("stopped",{type:"stopped",target:this})}}),Object.defineProperty(e.prototype,"_runAnimation",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(null!==this._playingDuration){if(null===this._startingTime)return this._startingTime=e,!0;var t=(e-this._startingTime)/this._playingDuration;if(t>=1){this._playingDuration=null,this._startingTime=null,this._from=this._to,this._current=this._to,this._entity.markDirty(),this._stopEvent();var n="ended";return this.events.isEnabled(n)&&this.events.dispatch(n,{type:n,target:this}),!1}this._current=l(t,this._from,this._to),this._entity.markDirty();n="progress";return this.events.isEnabled(n)&&this.events.dispatch(n,{type:n,target:this,progress:t}),!0}return!1}}),Object.defineProperty(e.prototype,"_play",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this._from=this._current,null===this._playingDuration){this._entity._root._addAnimation(this);this.events.isEnabled("started")&&this.events.dispatch("started",{type:"started",target:this})}else this._startingTime=null;this._playingDuration=Math.abs(this._to-this._from)*this._duration}}),Object.defineProperty(e.prototype,"duration",{get:function(){return this._duration},set:function(e){this._duration!==e&&(this._duration=e,0===e?this.jumpTo(this._to):this._current!==this._to&&this._play())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this.easing?this.easing(this._current):this._current},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stop",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.jumpTo(this._current)}}),Object.defineProperty(e.prototype,"jumpTo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._current!==e&&this._entity.markDirty(),null!==this._playingDuration&&this._stopEvent(),this._playingDuration=null,this._startingTime=null,this._current=e,this._from=e,this._to=e}}),Object.defineProperty(e.prototype,"tweenTo",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._current===e||0===this._duration?this.jumpTo(e):this._to!==e&&(this._to=e,this._play())}})}()},function(e,t,n){"use strict";var r=function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)},o=n(631),a=n(526);n.d(t,"a",(function(){return g}));var i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},u=Object(a.a)((function(e){return c(e)?e:e.replace(i,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===o.default[e]||c(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)p={name:o.name,styles:o.styles,next:p},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Object(f.a)(n.color)}`],n.edge&&t[`edge${Object(f.a)(n.edge)}`],t[`size${Object(f.a)(n.size)}`]]}})(({theme:e,ownerState:t})=>Object(o.a)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:Object(c.a)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>Object(o.a)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Object(o.a)({color:e.palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:Object(c.a)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${m.disabled}`]:{backgroundColor:"transparent",color:e.palette.action.disabled}})),w=a.forwardRef((function(e,t){const n=Object(u.a)({props:e,name:"MuiIconButton"}),{edge:a=!1,children:c,className:l,color:d="default",disabled:p=!1,disableFocusRipple:h=!1,size:m="medium"}=n,w=Object(r.a)(n,v),_=Object(o.a)({},n,{edge:a,color:d,disabled:p,disableFocusRipple:h,size:m}),x=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled","default"!==r&&`color${Object(f.a)(r)}`,o&&`edge${Object(f.a)(o)}`,`size${Object(f.a)(a)}`]};return Object(s.a)(i,g,t)})(_);return Object(b.jsx)(y,Object(o.a)({className:Object(i.a)(x.root,l),centerRipple:!0,focusRipple:!h,disabled:p,ref:t,ownerState:_},w,{children:c}))}));t.a=w},,function(e,t,n){var r=n(588),o=n(194);e.exports=function(e){return r(o(e))}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(194),o=/"/g;e.exports=function(e,t,n,a){var i=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(a).replace(o,""")+'"'),s+">"+i+""}},function(e,t,n){var r=n(82);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";var r=n(2767),o=n(2769),a=n(2770),i=n(2771);function s(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var a=n.slice(e.length);return!!t&&(a=r?r(a):a,o.contains(a,t))}function c(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var l={isBrowser:function(e){return s(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return s(r.browserArchitecture,null,e)},isDevice:function(e){return s(r.deviceName,null,e)},isEngine:function(e){return s(r.engineName,r.engineVersion,e)},isPlatform:function(e){return s(r.platformName,r.platformFullVersion,e,c)},isPlatformArchitecture:function(e){return s(r.platformArchitecture,null,e)}};e.exports=a(l,i)},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n(17),o=n(124),a=n(69),i=n(628),s=n(16),c=n(65),l=function(e){function t(t,n,r){var o=e.call(this,r)||this;return Object.defineProperty(o,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(o,"dataContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(o,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(o,"open",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(o,"close",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),o.dataContext=n,o.component=t,o._settings.visible=!0,o._checkDirty(),o}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"markDirty",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.component.markDirtyValues(this)}}),Object.defineProperty(t.prototype,"_startAnimation",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.component._root._addAnimation(this)}}),Object.defineProperty(t.prototype,"_animationTime",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.component._root.animationTime}}),Object.defineProperty(t.prototype,"_dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.component&&this.component.disposeDataItem(this),e.prototype._dispose.call(this)}}),Object.defineProperty(t.prototype,"show",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,e)}}),Object.defineProperty(t.prototype,"hide",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,e)}}),Object.defineProperty(t.prototype,"isHidden",{enumerable:!1,configurable:!0,writable:!0,value:function(){return!this.get("visible")}}),t}(o.b),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"_data",{enumerable:!0,configurable:!0,writable:!0,value:new i.a}),Object.defineProperty(t,"_dataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(t,"_mainDataItems",{enumerable:!0,configurable:!0,writable:!0,value:t._dataItems}),Object.defineProperty(t,"valueFields",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(t,"fields",{enumerable:!0,configurable:!0,writable:!0,value:["id"]}),Object.defineProperty(t,"_valueFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_valueFieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_fieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(t,"_valuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(t,"_dataChanged",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(t,"_dataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(t,"inited",{enumerable:!0,configurable:!0,writable:!0,value:!1}),t}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this._data},set:function(e){e.incrementRef(),this._data.decrementRef(),this._data=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._dispose.call(this),this._data.decrementRef()}}),Object.defineProperty(t.prototype,"_onDataClear",{enumerable:!1,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(t.prototype,"_afterNew",{enumerable:!1,configurable:!0,writable:!0,value:function(){var t=this;e.prototype._afterNew.call(this),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((function(e){var n=t._mainDataItems;if(t.markDirtyValues(),t._markDirtyGroup(),t._dataChanged=!0,"clear"===e.type)s.c(n,(function(e){e.dispose()})),n.length=0,t._onDataClear();else if("push"===e.type){var r=new l(t,e.newValue,t._makeDataItem(e.newValue));n.push(r),t.processDataItem(r)}else if("setIndex"===e.type){var o=n[e.index],a=t._makeDataItem(e.newValue);c.d(a).forEach((function(e){o.animate({key:e,to:a[e],duration:t.get("interpolationDuration",0),easing:t.get("interpolationEasing")})})),o.dataContext=e.newValue}else if("insertIndex"===e.type){r=new l(t,e.newValue,t._makeDataItem(e.newValue));n.splice(e.index,0,r),t.processDataItem(r)}else if("removeIndex"===e.type){(r=n[e.index]).dispose(),n.splice(e.index,1)}else{if("moveIndex"!==e.type)throw new Error("Unknown IStreamEvent type");r=n[e.oldIndex];n.splice(e.oldIndex,1),n.splice(e.newIndex,0,r)}t._afterDataChange()})))}}),Object.defineProperty(t.prototype,"_updateFields",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;this.valueFields&&(this._valueFields=[],this._valueFieldsF={},s.c(this.valueFields,(function(t){e.get(t+"Field")&&(e._valueFields.push(t),e._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},s.c(this.fields,(function(t){e.get(t+"Field")&&(e._fields.push(t),e._fieldsF[t]=t+"Field")})))}}),Object.defineProperty(t.prototype,"dataItems",{get:function(){return this._dataItems},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(t.prototype,"_makeDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,n={};return this._valueFields&&s.c(this._valueFields,(function(r){var o=t.get(t._valueFieldsF[r].fieldKey);n[r]=e[o],n[t._valueFieldsF[r].workingKey]=n[r]})),this._fields&&s.c(this._fields,(function(r){var o=t.get(t._fieldsF[r]);n[r]=e[o]})),n}}),Object.defineProperty(t.prototype,"makeDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=new l(this,void 0,e);return this.processDataItem(t),t}}),Object.defineProperty(t.prototype,"pushDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.makeDataItem(e);return this._mainDataItems.push(t),t}}),Object.defineProperty(t.prototype,"disposeDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),Object.defineProperty(t.prototype,"showDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(t){return e.set("visible",!0),[2]}))}))}}),Object.defineProperty(t.prototype,"hideDataItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.d)(this,(function(t){return e.set("visible",!1),[2]}))}))}}),Object.defineProperty(t.prototype,"_clearDirty",{enumerable:!1,configurable:!0,writable:!0,value:function(){e.prototype._clearDirty.call(this),this._valuesDirty=!1}}),Object.defineProperty(t.prototype,"_afterDataChange",{enumerable:!1,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(t.prototype,"_afterChanged",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(e.prototype._afterChanged.call(this),this._dataChanged){var t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}this.inited=!0}}),Object.defineProperty(t.prototype,"markDirtyValues",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.markDirty(),this._valuesDirty=!0}}),Object.defineProperty(t.prototype,"_markDirtyGroup",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._dataGrouped=!1}}),Object.defineProperty(t.prototype,"markDirtySize",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._sizeDirty=!0,this.markDirty()}}),Object.defineProperty(t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Component"}),Object.defineProperty(t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a.a.classNames.concat([t.className])}),t}(a.a)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(52),i="function"==typeof Symbol&&Symbol.for?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function s(){return o.a[i]||Object.defineProperty(o.a,i,{value:o.a.createContext({}),enumerable:!1,configurable:!0,writable:!1}),o.a[i]}var c=function(e){var t=e.client,n=e.children,r=s();return o.a.createElement(r.Consumer,null,(function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),Object(a.b)(e.client,27),o.a.createElement(r.Provider,{value:e},n)}))};n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}))},function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"e",(function(){return w})),n.d(t,"a",(function(){return _}));var r,o=n(85),a=n(1070),i=n(53),s=n(156),c=n(59);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),i=new E(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return A()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=x(i,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function p(){}function h(){}function g(){}var m={};s(m,o,(function(){return this}));var b=Object.getPrototypeOf,v=b&&b(b(S([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=g.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var r;this._invoke=function(o,a){function i(){return new t((function(r,i){!function r(o,a,i,s){var c=d(e[o],e,a);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==l(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(c.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function d(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){d(a,r,o,i,s,"next",e)}function s(e){d(a,r,o,i,s,"throw",e)}i(void 0)}))}}(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var p,h,g=function(){var e=f(u().mark((function e(){var t,n;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Object(c.i)(),e.t0=t,e.next=e.t0===i.h.Advisor?4:e.t0===i.h.Developer?8:e.t0===i.h.Client?8:11;break;case 4:if(!(n=localStorage.getItem(s.a.FederatedIdentity))){e.next=7;break}return e.abrupt("return",JSON.parse(n).token);case 7:return e.abrupt("return","");case 8:return e.next=10,o.a.currentSession();case 10:return e.abrupt("return",e.sent.getIdToken().getJwtToken());case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=f(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:return t=e.sent,e.abrupt("return",Object(a.a)(t));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=f(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=a.a,e.next=3,g();case 3:if(e.t1=e.sent,t=(0,e.t0)(e.t1),"ProspectRole"!==t["cognito:preferred_role"]){e.next=8;break}return e.abrupt("return",!0);case 8:return e.abrupt("return",!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=f(u().mark((function e(t,n,r){var o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(r,"/user-domain/users/me"),{headers:{"sf-access-token":t,authorization:"Bearer ".concat(n)}});case 2:return o=e.sent,e.abrupt("return",o.json());case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),y=function(){return"true"===sessionStorage.getItem(s.a.IsOnboarding)},w=function(e,t){sessionStorage.getItem(s.a.IsOnboarding)&&t||sessionStorage.setItem(s.a.IsOnboarding,e.toString())},_=function(){sessionStorage.removeItem(s.a.IsOnboarding)};(p="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(p.register(g,"getUserToken","/__w/1271/s/packages/auth-ui/src/utils/user-utils.ts"),p.register(m,"getUserTokenDecoded","/__w/1271/s/packages/auth-ui/src/utils/user-utils.ts"),p.register(b,"isProspect","/__w/1271/s/packages/auth-ui/src/utils/user-utils.ts"),p.register(v,"getOAuthUserInfo","/__w/1271/s/packages/auth-ui/src/utils/user-utils.ts"),p.register(y,"isOnboarding","/__w/1271/s/packages/auth-ui/src/utils/user-utils.ts"),p.register(w,"setOnboarding","/__w/1271/s/packages/auth-ui/src/utils/user-utils.ts"),p.register(_,"clearOnboarding","/__w/1271/s/packages/auth-ui/src/utils/user-utils.ts")),(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&h(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}));var r,o=n(52);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(r||(r={}));var a=new Map;function i(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}function s(e){var t,n,i=a.get(e);if(i)return i;Object(o.b)(!!e&&!!e.kind,33);var s=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),c=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),l=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),u=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));Object(o.b)(!s.length||c.length||l.length||u.length,34),Object(o.b)(c.length+l.length+u.length<=1,35),n=c.length?r.Query:r.Mutation,c.length||l.length||(n=r.Subscription);var d=c.length?c:l.length?l:u;Object(o.b)(1===d.length,36);var f=d[0];t=f.variableDefinitions||[];var p={name:f.name&&"Name"===f.name.kind?f.name.value:"data",type:n,variables:t};return a.set(e,p),p}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";var r=n(644);n.d(t,"a",(function(){return r.a}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(17),o=n(74),a=n(16),i=n(26),s=function(){function e(){Object.defineProperty(this,"_listeners",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_killed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_iterating",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_enabled",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}return Object.defineProperty(e.prototype,"isDisposed",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this._disposed}}),Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(!this._disposed){this._disposed=!0;var e=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{a.c(e,(function(e){e.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}}),Object.defineProperty(e.prototype,"hasListeners",{enumerable:!1,configurable:!0,writable:!0,value:function(){return 0!==this._listeners.length}}),Object.defineProperty(e.prototype,"hasListenersByType",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return a.a(this._listeners,(function(t){return(null===t.type||t.type===e)&&!t.killed}))}}),Object.defineProperty(e.prototype,"enable",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._enabled=!0}}),Object.defineProperty(e.prototype,"disable",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._enabled=!1}}),Object.defineProperty(e.prototype,"enableType",{enumerable:!1,configurable:!0,writable:!0,value:function(e){delete this._disabled[e]}}),Object.defineProperty(e.prototype,"disableType",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t=1/0),this._disabled[e]=t}}),Object.defineProperty(e.prototype,"_removeListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(0===this._iterating){var t=this._listeners.indexOf(e);if(-1===t)throw new Error("Invalid state: could not remove listener");this._listeners.splice(t,1)}else this._killed.push(e)}}),Object.defineProperty(e.prototype,"_removeExistingListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((function(o){o.once!==e||o.type!==t||void 0!==n&&o.callback!==n||o.context!==r||o.disposer.dispose()}))}}),Object.defineProperty(e.prototype,"isEnabled",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(e)&&void 0===this._disabled[e]}}),Object.defineProperty(e.prototype,"removeType",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((function(t){t.type===e&&t.disposer.dispose()}))}}),Object.defineProperty(e.prototype,"has",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){return-1!==a.g(this._listeners,(function(r){return!0!==r.once&&r.type===e&&(void 0===t||r.callback===t)&&r.context===n}))}}),Object.defineProperty(e.prototype,"_shouldDispatch",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this._disposed)throw new Error("EventDispatcher is disposed");var t=this._disabled[e];return i.e(t)?(t<=1?delete this._disabled[e]:--this._disabled[e],!1):this._enabled}}),Object.defineProperty(e.prototype,"_eachListener",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;++this._iterating;try{a.c(this._listeners,e)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(a.c(this._killed,(function(e){t._removeListener(e)})),this._killed.length=0)}}}),Object.defineProperty(e.prototype,"dispatch",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._shouldDispatch(e)&&this._eachListener((function(n){n.killed||null!==n.type&&n.type!==e||n.dispatch(e,t)}))}}),Object.defineProperty(e.prototype,"_on",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r,a,i){var s=this;if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(e,t,n,r);var c={type:t,callback:n,context:r,shouldClone:a,dispatch:i,killed:!1,once:e,disposer:new o.c((function(){c.killed=!0,s._removeListener(c)}))};return this._listeners.push(c),c}}),Object.defineProperty(e.prototype,"onAll",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){return void 0===n&&(n=!0),this._on(!1,null,e,t,n,(function(n,r){return e.call(t,r)})).disposer}}),Object.defineProperty(e.prototype,"on",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){return void 0===r&&(r=!0),this._on(!1,e,t,n,r,(function(e,r){return t.call(n,r)})).disposer}}),Object.defineProperty(e.prototype,"once",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){void 0===r&&(r=!0);var o=this._on(!0,e,t,n,r,(function(e,r){o.disposer.dispose(),t.call(n,r)}));return o.disposer}}),Object.defineProperty(e.prototype,"off",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this._removeExistingListener(!1,e,t,n)}}),Object.defineProperty(e.prototype,"copyFrom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(e===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");var n=[];return a.c(e._listeners,(function(e){!e.killed&&e.shouldClone&&(null===e.type?n.push(t.onAll(e.callback,e.context)):e.once?n.push(t.once(e.type,e.callback,e.context)):n.push(t.on(e.type,e.callback,e.context)))})),new o.e(n)}}),e}();!function(e){function t(t){var n=e.call(this)||this;return Object.defineProperty(n,"target",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n.target=t,n}Object(r.c)(t,e),Object.defineProperty(t.prototype,"copyFrom",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(e===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");var n=[];return a.c(e._listeners,(function(r){r.context!==e.target&&!r.killed&&r.shouldClone&&(null===r.type?n.push(t.onAll(r.callback,r.context)):r.once?n.push(t.once(r.type,r.callback,r.context)):n.push(t.on(r.type,r.callback,r.context)))})),new o.e(n)}})}(s)},function(e,t,n){"use strict";var r=n(1689);n.d(t,"a",(function(){return r.a}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());return t.setSeconds(0,0),6e4*n+t.getTime()%6e4}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(22),o=n(6);const a=["duration","easing","delay"],i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function c(e){return`${Math.round(e)}ms`}function l(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function u(e){const t=Object(o.a)({},i,e.easing),n=Object(o.a)({},s,e.duration);return Object(o.a)({getAutoHeightDuration:l,create:(e=["all"],o={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:l=0}=o;Object(r.a)(o,a);return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:c(i)} ${s} ${"string"==typeof l?l:c(l)}`).join(",")}},e,{easing:t,duration:n})}},function(e,t,n){"use strict";var r=n(1690);n.d(t,"c",(function(){return r.a}));var o=n(1691);n.d(t,"b",(function(){return o.a}));var a=n(1692);n.d(t,"a",(function(){return a.a}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){var r,o=n(29),a=n(0),i=n.n(a),s=n(4),c=n(341);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var l,u,d=function(e){var t=e.label,n=e.value,r=e.description;return(i.a.createElement(c.a,{m:3},i.a.createElement(s.Flex,{justifyContent:"space-between",alignItems:"center"},i.a.createElement(s.Box,null,i.a.createElement(o.d,{fontSize:"baseline",fontWeight:"light",color:"darkRegular"},t),r&&i.a.createElement(o.d,{fontSize:"stepDown1",fontWeight:"medium",color:"darkRegular"},r)),i.a.createElement(s.Box,null,i.a.createElement(o.d,{fontSize:"baseline",fontWeight:"bold",color:"darkContrast"},n||"-")))))},f=d;t.a=f,(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(l.register(d,"PlanningCard","/__w/1271/s/packages/gameplan/src/components/editor/pages/legacy-planning/planning-card.tsx"),l.register(f,"default","/__w/1271/s/packages/gameplan/src/components/editor/pages/legacy-planning/planning-card.tsx")),(u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&u(e)}).call(this,n(3)(e))},function(e,t,n){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",o="day",a="week",i="month",s="quarter",c="year",l="date",u="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},h=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:h,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+h(r,2,"0")+":"+h(o,2,"0")},m:function e(t,n){if(t.date()1)return e(i[0])}else{var s=t.name;b[s]=t,o=s}return!r&&o&&(m=o),o||!r&&m},_=function(e,t){if(y(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new O(n)},x=g;x.l=w,x.i=y,x.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var O=function(){function p(e){this.$L=w(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[v]=!0}var h=p.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(d);if(r){var o=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return x},h.isValid=function(){return!(this.$d.toString()===u)},h.isSame=function(e,t){var n=_(e);return this.startOf(t)<=n&&n<=this.endOf(t)},h.isAfter=function(e,t){return _(e)0&&!Number.isNaN(Number(e))},object:function(e){return!this.nullOrUndefined(e)&&(this.function(e)||function(e){return"object"==typeof e}(e))},plainObject:function(e){var t;return r(e,"Object")&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))},promise:function(e){return r(e,"Promise")},regexp:function(e){return r(e,"RegExp")},set:function(e){return r(e,"Set")},string:function(e){return"string"==typeof e},symbol:function(e){return r(e,"Symbol")},undefined:function(e){return void 0===e},weakMap:function(e){return r(e,"WeakMap")},weakSet:function(e){return r(e,"WeakSet")}}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return _})),n.d(t,"f",(function(){return x})),n.d(t,"c",(function(){return O})),n.d(t,"e",(function(){return k})),n.d(t,"d",(function(){return E})),n.d(t,"g",(function(){return S})),n.d(t,"h",(function(){return C}));var r,o,a,i,s,c,l,u,d,f,p=n(29),h=n(4),g=n(1),m=n.n(g);function b(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(f="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&f(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var v,y,w=m()(h.Box)(r||(r=b(["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n padding-top: 35px;\n margin-right: 20px;\n height: 100%;\n"]))),_=m()(h.Box)(o||(o=b(["\n display: flex;\n flex-direction: column;\n padding-top: 35px;\n padding-right: 40px;\n width: 100%;\n height: 100%;\n"]))),x=m.a.h2(a||(a=b(["\n font-size: 1.1rem;\n color: rgba(27, 38, 50, 0.8);\n font-weight: 700;\n margin-bottom: 0.2222rem;\n"]))),O=m.a.p(i||(i=b(["\n font-size: 0.66667rem;\n color: rgba(27, 38, 50, 0.6);\n font-weight: 400;\n margin: 0;\n"]))),k=m()(h.Box)(s||(s=b(["\n max-width: 280px;\n\n label {\n div {\n font-size: 0.88889rem;\n color: rgba(27, 38, 50, 0.8);\n }\n }\n\n #performance-timeframe {\n font-size: 0.88889rem;\n font-weight: 300;\n }\n"]))),E=m()(h.Box)(c||(c=b(["\n height: 100%;\n\n .bucketing-heading {\n padding: 2.222rem 2.66667rem 2rem;\n height: 100%;\n @media only screen and (min-device-width: 1366px) and (max-device-width: 1024px) and (orientation: landscape) {\n padding: 3rem;\n }\n\n > div:first-child {\n margin-bottom: 0.6667rem;\n }\n }\n"]))),S=m()(h.Box)(l||(l=b(["\n flex-direction: column;\n margin-top: 10px;\n"]))),A=m()(p.d)(u||(u=b(["\n @media print {\n display: none;\n }\n"]))),C=m.a.div(d||(d=b(["\n border-right: 1px solid ",";\n"])),(function(e){return e.theme.colors.lightGrey}));(v="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(v.register(w,"StyledContainer","/__w/1271/s/packages/gameplan/src/components/gameplan/bucketing/bucketing.style.tsx"),v.register(_,"ErrorStyledContainer","/__w/1271/s/packages/gameplan/src/components/gameplan/bucketing/bucketing.style.tsx"),v.register(x,"StyledSubHeadline","/__w/1271/s/packages/gameplan/src/components/gameplan/bucketing/bucketing.style.tsx"),v.register(O,"StyledDateText","/__w/1271/s/packages/gameplan/src/components/gameplan/bucketing/bucketing.style.tsx"),v.register(k,"StyledPerformanceWrapper","/__w/1271/s/packages/gameplan/src/components/gameplan/bucketing/bucketing.style.tsx"),v.register(E,"StyledLeftContainer","/__w/1271/s/packages/gameplan/src/components/gameplan/bucketing/bucketing.style.tsx"),v.register(S,"SubHeadingWrapper","/__w/1271/s/packages/gameplan/src/components/gameplan/bucketing/bucketing.style.tsx"),v.register(A,"StyledNonPrintableTypography","/__w/1271/s/packages/gameplan/src/components/gameplan/bucketing/bucketing.style.tsx"),v.register(C,"VerticalLine","/__w/1271/s/packages/gameplan/src/components/gameplan/bucketing/bucketing.style.tsx")),(y="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&y(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";var r=n(22),o=n(6),a=n(0),i=(n(7),n(28)),s=n(164),c=n(3165),l=n(585),u=n(15),d=n(39);var f=a.createContext(),p=n(402),h=n(433);function g(e){return Object(p.a)("MuiGrid",e)}const m=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var b=Object(h.a)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>`spacing-xs-${e}`),...["column-reverse","column","row-reverse","row"].map(e=>`direction-xs-${e}`),...["nowrap","wrap-reverse","wrap"].map(e=>`wrap-xs-${e}`),...m.map(e=>`grid-xs-${e}`),...m.map(e=>`grid-sm-${e}`),...m.map(e=>`grid-md-${e}`),...m.map(e=>`grid-lg-${e}`),...m.map(e=>`grid-xl-${e}`)]),v=n(5);const y=["className","columns","columnSpacing","component","container","direction","item","lg","md","rowSpacing","sm","spacing","wrap","xl","xs","zeroMinWidth"];function w(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function _(e,t,n={}){if(!t||!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]||`spacing-xs-${String(e)}`];const{xs:r,sm:o,md:a,lg:i,xl:s}=e;return[Number(r)>0&&(n[`spacing-xs-${String(r)}`]||`spacing-xs-${String(r)}`),Number(o)>0&&(n[`spacing-sm-${String(o)}`]||`spacing-sm-${String(o)}`),Number(a)>0&&(n[`spacing-md-${String(a)}`]||`spacing-md-${String(a)}`),Number(i)>0&&(n[`spacing-lg-${String(i)}`]||`spacing-lg-${String(i)}`),Number(s)>0&&(n[`spacing-xl-${String(s)}`]||`spacing-xl-${String(s)}`)]}const x=Object(u.a)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{container:n,direction:r,item:o,lg:a,md:i,sm:s,spacing:c,wrap:l,xl:u,xs:d,zeroMinWidth:f}=e.ownerState;return[t.root,n&&t.container,o&&t.item,f&&t.zeroMinWidth,..._(c,n,t),"row"!==r&&t[`direction-xs-${String(r)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],!1!==d&&t[`grid-xs-${String(d)}`],!1!==s&&t[`grid-sm-${String(s)}`],!1!==i&&t[`grid-md-${String(i)}`],!1!==a&&t[`grid-lg-${String(a)}`],!1!==u&&t[`grid-xl-${String(u)}`]]}})(({ownerState:e})=>Object(o.a)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"nowrap"===e.wrap&&{flexWrap:"nowrap"},"reverse"===e.wrap&&{flexWrap:"wrap-reverse"}),(function({theme:e,ownerState:t}){const n=Object(s.d)({values:t.direction,breakpoints:e.breakpoints.values});return Object(s.b)({theme:e},n,e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${b.item}`]={maxWidth:"none"}),t})}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Object(s.d)({values:r,breakpoints:e.breakpoints.values});o=Object(s.b)({theme:e},t,t=>{const n=e.spacing(t);return"0px"!==n?{marginTop:`-${w(n)}`,[`& > .${b.item}`]:{paddingTop:w(n)}}:{}})}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Object(s.d)({values:r,breakpoints:e.breakpoints.values});o=Object(s.b)({theme:e},t,t=>{const n=e.spacing(t);return"0px"!==n?{width:`calc(100% + ${w(n)})`,marginLeft:`-${w(n)}`,[`& > .${b.item}`]:{paddingLeft:w(n)}}:{}})}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,a)=>{let i={};if(t[a]&&(n=t[a]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const c=Object(s.d)({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof c?c[a]:c;if(null==l)return r;const u=`${Math.round(n/l*1e8)/1e6}%`;let d={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${u} + ${w(n)})`;d={flexBasis:e,maxWidth:e}}}i=Object(o.a)({flexBasis:u,flexGrow:0,maxWidth:u},d)}return 0===e.breakpoints.values[a]?Object.assign(r,i):r[e.breakpoints.up(a)]=i,r},{})})),O=a.forwardRef((function(e,t){const n=Object(d.a)({props:e,name:"MuiGrid"}),s=Object(c.a)(n),{className:u,columns:p,columnSpacing:h,component:m="div",container:b=!1,direction:w="row",item:O=!1,lg:k=!1,md:E=!1,rowSpacing:S,sm:A=!1,spacing:C=0,wrap:j="wrap",xl:L=!1,xs:P=!1,zeroMinWidth:T=!1}=s,M=Object(r.a)(s,y),I=S||C,R=h||C,N=a.useContext(f),D=p||N||12,H=Object(o.a)({},s,{columns:D,container:b,direction:w,item:O,lg:k,md:E,sm:A,rowSpacing:I,columnSpacing:R,wrap:j,xl:L,xs:P,zeroMinWidth:T}),G=(e=>{const{classes:t,container:n,direction:r,item:o,lg:a,md:i,sm:s,spacing:c,wrap:u,xl:d,xs:f,zeroMinWidth:p}=e,h={root:["root",n&&"container",o&&"item",p&&"zeroMinWidth",..._(c,n),"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==u&&`wrap-xs-${String(u)}`,!1!==f&&`grid-xs-${String(f)}`,!1!==s&&`grid-sm-${String(s)}`,!1!==i&&`grid-md-${String(i)}`,!1!==a&&`grid-lg-${String(a)}`,!1!==d&&`grid-xl-${String(d)}`]};return Object(l.a)(h,g,t)})(H);return F=Object(v.jsx)(x,Object(o.a)({ownerState:H,className:Object(i.a)(G.root,u),as:m,ref:t},M)),12!==D?Object(v.jsx)(f.Provider,{value:D,children:F}):F;var F}));t.a=O},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,o=n(174),a=n(285),i=n(1221);r.assert=a,r.toArray=i.toArray,r.zero2=i.zero2,r.toHex=i.toHex,r.encode=i.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var o=1<(o>>1)-1?(o>>1)-c:c,a.isubn(s)):s=0,r[i]=s,a.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,o=0;e.cmpn(-r)>0||t.cmpn(-o)>0;){var a,i,s,c=e.andln(3)+r&3,l=t.andln(3)+o&3;if(3===c&&(c=-1),3===l&&(l=-1),0==(1&c))a=0;else a=3!==(s=e.andln(7)+r&7)&&5!==s||2!==l?c:-c;if(n[0].push(a),0==(1&l))i=0;else i=3!==(s=t.andln(7)+o&7)&&5!==s||2!==c?l:-l;n[1].push(i),2*r===a+1&&(r=1-r),2*o===i+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new o(e,"hex","le")}},function(e,t,n){"use strict";var r=n(127),o=r.Map,a=r.OrderedSet,i=r.Record,s=a(),c={style:s,entity:null},l=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getStyle=function(){return this.get("style")},a.getEntity=function(){return this.get("entity")},a.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return u;var t=o({style:s,entity:null}).merge(e),n=d.get(t);if(n)return n;var a=new r(t);return d=d.set(t,a),a},r}(i(c)),u=new l,d=o([[o(c),u]]);l.EMPTY=u,e.exports=l},function(e,t,n){"use strict";var r=n(287),o=n(619),a=n(127),i=a.List,s=a.Map,c=a.OrderedSet,l=a.Record,u=a.Repeat,d=c(),f={parent:null,characterList:i(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:i(),prevSibling:null,nextSibling:null},p=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},g=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=i(u(r.EMPTY,n.length))),e},m=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return e.call(this,g(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getKey=function(){return this.get("key")},a.getType=function(){return this.get("type")},a.getText=function(){return this.get("text")},a.getCharacterList=function(){return this.get("characterList")},a.getLength=function(){return this.getText().length},a.getDepth=function(){return this.get("depth")},a.getData=function(){return this.get("data")},a.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():d},a.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},a.getChildKeys=function(){return this.get("children")},a.getParentKey=function(){return this.get("parent")},a.getPrevSiblingKey=function(){return this.get("prevSibling")},a.getNextSiblingKey=function(){return this.get("nextSibling")},a.findStyleRanges=function(e,t){o(this.getCharacterList(),p,e,t)},a.findEntityRanges=function(e,t){o(this.getCharacterList(),h,e,t)},r}(l(f));e.exports=m},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(23),o=n(52),a=n(31),i=n(225);function s(e,t){return t?t(e):a.c.of()}function c(e){return"function"==typeof e?new u(e):e}function l(e){return e.request.length<=1}!function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}Object(r.c)(t,e)}(Error);var u=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return a.c.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(c).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var o=c(n),i=c(r||new e(s));return l(o)&&l(i)?new e((function(e){return t(e)?o.request(e)||a.c.of():i.request(e)||a.c.of()})):new e((function(e,n){return t(e)?o.request(e,n)||a.c.of():i.request(e,n)||a.c.of()}))},e.execute=function(e,t){return e.request(Object(i.a)(t.context,Object(i.d)(Object(i.e)(t))))||a.c.of()},e.concat=function(t,n){var r=c(t);if(l(r))return r;var o=c(n);return l(o)?new e((function(e){return r.request(e,(function(e){return o.request(e)||a.c.of()}))||a.c.of()})):new e((function(e,t){return r.request(e,(function(e){return o.request(e,t)||a.c.of()}))||a.c.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw new o.a(22)},e.prototype.onError=function(e){throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(181),o=n(253),a=n(16),i=function(){function e(e,t){if(Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rules",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._root=e,!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}return Object.defineProperty(e,"new",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=new this(e,!0);return t.setupDefaultRules(),t}}),Object.defineProperty(e.prototype,"setupDefaultRules",{enumerable:!1,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(e.prototype,"_lookupRules",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._rules[e]}}),Object.defineProperty(e.prototype,"ruleRaw",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t=[]);var n=this._rules[e];n||(n=this._rules[e]=[]),t.sort(o.a);var i=a.j(n,(function(e){var n=o.a(e.tags.length,t.length);return 0===n?o.b(e.tags,t,o.a):n})),s=i.index;if(i.found)return n[s].template;var c=r.a.new({});return n.splice(s,0,{tags:t,template:c}),c}}),Object.defineProperty(e.prototype,"rule",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return void 0===t&&(t=[]),this.ruleRaw(e,t)}}),e}()},function(e,t,n){"use strict";(function(e){var r,o,a,i,s=n(0),c=n(21),l=n(1),u=n.n(l),d=n(10),f=n(527),p=n(462),h=n(157),g=n(387),m=["mass","category","label","icon","iconOrientation","type","width","disabled","iconColor"];function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function y(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&i(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var w=u()(f.a)(r||(r=y(["\n ",";\n\n ",";\n"])),(function(e){var t=e.theme;return Object(d.c)({prop:"category",variants:Object(g.d)(t)})}),(function(e){var t=e.theme;return Object(d.c)({prop:"mass",variants:Object(g.e)(t)})})),_=u()(c.Flex)(o||(o=y(["\n flex: 0;\n height: ",";\n align-items: center;\n justify-content: center;\n"])),(function(e){return"small"===e.mass?"1rem":"1.5rem"})),x=u()(c.Box).attrs((function(){return{as:"span"}}))(a||(a=y([""]))),O=function(e){var t=e.mass,n=e.category,r=e.label,o=e.icon,a=e.iconOrientation,i=void 0===a?"left":a,c=e.type,l=void 0===c?"button":c,u=e.width,d=void 0===u?"auto":u,f=e.disabled,g=void 0!==f&&f,y=e.iconColor,O=v(e,m),k="large"===t?h.a:h.b;return o?s.createElement(w,b({},O,{category:n,mass:t,type:l,disabled:g,width:d,"aria-label":r}),s.createElement(_,{mass:t},"left"===i&&s.createElement(p.a,{icon:o,size:k,mr:r?h.c:0,color:y||"currentColor"}),s.createElement(x,null,r),"right"===i&&s.createElement(p.a,{icon:o,size:k,ml:r?h.c:0,color:y||"currentColor"}))):s.createElement(w,b({},O,{category:n,mass:t,type:l,disabled:g,width:d,"aria-label":r}),s.createElement(_,{mass:t},s.createElement(x,null,r)))};O.displayName="PillButton";var k,E,S=O;t.a=S,(k="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(k.register(w,"RoundedButton","/__w/1271/s/packages/ui/src/buttons/pill-button.tsx"),k.register(_,"FixedHeightContent","/__w/1271/s/packages/ui/src/buttons/pill-button.tsx"),k.register(x,"ButtonText","/__w/1271/s/packages/ui/src/buttons/pill-button.tsx"),k.register(O,"PillButton","/__w/1271/s/packages/ui/src/buttons/pill-button.tsx"),k.register(S,"default","/__w/1271/s/packages/ui/src/buttons/pill-button.tsx")),(E="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&E(e)}).call(this,n(3)(e))},function(e,t,n){var r=n(2586),o=n(2587),a=n(2588);e.exports=function(e,t){return r(e)||o(e,t)||a()}},function(e,t,n){"use strict";var r=n(1528);n.d(t,"a",(function(){return r.a}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";(function(e){var r;n.d(t,"a",(function(){return i})),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o,a,i=function(e,t){return{error:e,context:t}};(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&o.register(i,"QueryError","/__w/1271/s/packages/gameplan/src/common/errors.ts"),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";var r=n(674);t.a=r.a},function(e,t,n){"use strict";function r({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(1642);n.d(t,"a",(function(){return r.a}));"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b}));var r,o=n(88),a=n(53),i=n(198),s=n(62);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),i=new E(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return A()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=x(i,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function p(){}function h(){}function g(){}var m={};s(m,o,(function(){return this}));var b=Object.getPrototypeOf,v=b&&b(b(S([])));v&&v!==t&&n.call(v,o)&&(m=v);var y=g.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var r;this._invoke=function(o,a){function i(){return new t((function(r,i){!function r(o,a,i,s){var l=d(e[o],e,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==c(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,s)}),(function(e){r("throw",e,i,s)})):t.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,s)}))}s(l.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=d(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;ta?1*r:0})),!0},i=function(e,t){var n=Object.assign({},e);return t&&("string"==typeof t?delete n[t]:t.forEach((function(e){delete n[e]}))),n},s=function(e,t){void 0===t&&(t="application/octet-stream");var n=e.toLowerCase(),o=r.filter((function(e){return n.endsWith("."+e.ext)}));return o.length>0?o[0].type:t},c=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},l=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},u=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,o=e.then((function(e){return r=!0,t=!1,e}),(function(e){throw n=!0,t=!1,e}));return o.isFullfilled=function(){return r},o.isPending=function(){return t},o.isRejected=function(){return n},o},d=function(){if("undefined"==typeof self)return!1;var e=self;return void 0!==e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},f=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==e&&null!=e.versions&&null!=e.versions.node}},p=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),!g(e))return e;var r={};for(var o in e){if(e.hasOwnProperty(o))r[t.includes(o)?o:o[0].toLowerCase()+o.slice(1)]=n.includes(o)?e[o]:p(e[o],t,n)}return r},h=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),!g(e))return e;var r={};for(var o in e){if(e.hasOwnProperty(o))r[t.includes(o)?o:o[0].toUpperCase()+o.slice(1)]=n.includes(o)?e[o]:h(e[o],t,n)}return r},g=function(e){return!(!(e instanceof Object)||e instanceof Array||e instanceof Function||e instanceof Number||e instanceof String||e instanceof Boolean)},m=function(){function e(){}return e.isEmpty=o,e.sortByField=a,e.objectLessAttributes=i,e.filenameToContentType=s,e.isTextFile=c,e.generateRandomString=l,e.makeQuerablePromise=u,e.isWebWorker=d,e.browserOrNode=f,e.transferKeyToLowerCase=p,e.transferKeyToUpperCase=h,e.isStrictObject=g,e}()}).call(this,n(143))},function(e,t,n){"use strict";t.a=function(e){return"string"==typeof e}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r,o=n(0),a=n(44);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var i,s,c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},l=function(){var e=Object(a.b)(),t=e.loading,n=e.data;return Object(o.useMemo)((function(){return t||!n?{loading:t,currentSurvey:null,previousSurvey:null}:{loading:t,currentSurvey:n.riskTolerances[0],previousSurvey:n.riskTolerances[1]}}),[t,n])};c(l,"useClient{{ loading, data }}\nuseMemo{}",(function(){return[a.b]})),(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&i.register(l,"useRiskTolerances","/__w/1271/s/packages/gameplan/src/common/graphql/risk-tolerances.ts"),(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&s(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return y}));var r,o,a=n(11),i=n(44),s=n(45);function c(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{n=e,l=t}),h=()=>!r.a.isFocused()||"always"!==e.networkMode&&!o.a.isOnline(),g=r=>{f||(f=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},m=n=>{f||(f=!0,null==e.onError||e.onError(n),null==t||t(),l(n))},b=()=>new Promise(n=>{t=e=>{const t=f||!h();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,f||null==e.onContinue||e.onContinue()}),v=()=>{if(f)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch(t=>{var n,r;if(f)return;const o=null!=(n=e.retry)?n:3,s=null!=(r=e.retryDelay)?r:i,c="function"==typeof s?s(d,t):s,l=!0===o||"number"==typeof o&&d{if(h())return b()}).then(()=>{u?m(t):v()})):m(t)})};return s(e.networkMode)?v():b().then(v),{promise:p,cancel:t=>{f||(m(new c(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?p:Promise.resolve(),cancelRetry:()=>{u=!0},continueRetry:()=>{u=!1}}}},function(e,t,n){"use strict";(function(e){var r,o=n(14),a=n(29),i=n(0),s=n.n(i),c=n(8),l=n(4),u=n(1);(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},f=function(e){var t=e.error,n=e.value,r=e.fontSize,d=Object(i.useContext)(u.ThemeContext),f=Object(c.b)().t;if(t)return s.a.createElement(l.Flex,{alignItems:"center"},s.a.createElement(o.b,{size:"1rem",icon:o.c.Warning,color:"warning",mr:3}),s.a.createElement(a.d,{fontWeight:"bold"},f("errors:failed")));if(null===n)return s.a.createElement(a.d,{fontWeight:"bold",fontSize:r},"-");var p,h=Math.floor(100*n);h>0?p=d.colors.positive:h<0&&(p=d.colors.negative);var g=h>0?"+":null,m=n.toFixed(2);return s.a.createElement(a.d,{color:p,fontWeight:"bold",letterSpacing:"open1",fontSize:r},g,f("common:percentage",{value:m}))};d(f,"useContext{theme}\nuseTranslation{{ t }}",(function(){return[c.b]}));var p,h,g=f;t.a=g,(p="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(p.register(f,"PerformanceValue","/__w/1271/s/packages/gameplan/src/components/editor/managed-accounts/performance-value.tsx"),p.register(g,"default","/__w/1271/s/packages/gameplan/src/components/editor/managed-accounts/performance-value.tsx")),(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&h(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";t.a=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;f--){var p=i[f];"."===p?a(i,f):".."===p?(a(i,f),d++):d&&(a(i,f),d--)}if(!l)for(;d--;d)i.unshift("..");!l||""===i[0]||i[0]&&o(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var c=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=s(t),o=s(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},l=n(232);function u(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function f(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function g(e,t,n,o){var a;"string"==typeof e?(a=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(a=Object(r.a)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),o?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=i(a.pathname,o.pathname)):a.pathname=o.pathname:a.pathname||(a.pathname="/"),a}function m(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&c(e.state,t.state)}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,r):n.push(r),d({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=g(e,t,f(),w.location);u.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(w.entries[w.index]=r,d({action:"REPLACE",location:r}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=w.index+e;return t>=0&&t"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||c,u=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,d=/\/\*[^]*?\*\/| +/g,f=/\n+/g,p=(e,t)=>{let n="",r="",o="";for(let a in e){let i=e[a];"@"==a[0]?"i"==a[1]?n=a+" "+i+";":r+="f"==a[1]?p(i,a):a+"{"+p(i,"k"==a[1]?"":t)+"}":"object"==typeof i?r+=p(i,t?t.replace(/([^,])+/g,e=>a.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):a):null!=i&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=p.p?p.p(a,i):a+":"+i+";")}return n+(t&&o?t+"{"+o+"}":o)+r},h={},g=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+g(e[n]);return t}return e},m=(e,t,n,r,o)=>{let a=g(e),i=h[a]||(h[a]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(a));if(!h[i]){let t=a!==e?e:(e=>{let t,n,r=[{}];for(;t=u.exec(e.replace(d,""));)t[4]?r.shift():t[3]?(n=t[3].replace(f," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(f," ").trim();return r[0]})(e);h[i]=p(o?{["@keyframes "+i]:t}:t,n?"":"."+i)}let s=n&&h.g?h.g:null;return n&&(h.g=h[i]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(h[i],t,r,s),i},b=(e,t,n)=>e.reduce((e,r,o)=>{let a=t[o];if(a&&a.call){let e=a(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":p(e,""):!1===e?"":e}return e+r+(null==a?"":a)},"");function v(e){let t=this||{},n=e.call?e(t.p):e;return m(n.unshift?n.raw?b(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,l(t.target),t.g,t.o,t.k)}v.bind({g:1}),v.bind({k:1});function y(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return Ne})),n.d(t,"b",(function(){return Ee})),n.d(t,"c",(function(){return ke}));var E=function(){return""},S=o.a.createContext({enqueueSnackbar:E,closeSnackbar:E}),A="@media (max-width:599.95px)",C="@media (min-width:600px)",j=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},L=function(e){return""+j(e.vertical)+j(e.horizontal)},P=function(e){return!!e||0===e},T=function(e){function t(t){var n;n=e.call(this,t)||this;var r,o=t.appear;return n.appearStatus=null,t.in?o?(r="exited",n.appearStatus="entering"):r="entered":r=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",n.state={status:r},n.nextCallback=null,n}x(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=e,o=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,r),this.safeSetState({status:"entering"},(function(){t.props.onEntering&&t.props.onEntering(t.node,r),t.onTransitionEnd(o.enter,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered&&t.props.onEntered(t.node,r)}))}))}))):this.safeSetState({status:"entered"},(function(){t.props.onEntered&&t.props.onEntered(t.node,r)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:"exiting"},(function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited&&e.props.onExited(e.node)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited&&e.props.onExited(e.node)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props;return(0,t.children)(e,O(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},w(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(o.a.Component);function M(){}function I(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function R(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){I(e,n),I(t,n)}}),[e,t])}function N(e){var t=e.timeout,n=e.style,r=void 0===n?{}:n,o=e.mode;return{duration:"object"==typeof t?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}T.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:M,onEntering:M,onEntered:M,onExit:M,onExiting:M,onExited:M};var D="cubic-bezier(0.4, 0, 0.2, 1)",H="cubic-bezier(0.0, 0, 0.2, 1)",G="cubic-bezier(0.4, 0, 0.6, 1)",F=function(e){e.scrollTop=e.scrollTop},B=function(e){return Math.round(e)+"ms"};function z(e,t){void 0===e&&(e=["all"]);var n=t||{},r=n.duration,o=void 0===r?300:r,a=n.easing,i=void 0===a?D:a,s=n.delay,c=void 0===s?0:s;return(Array.isArray(e)?e:[e]).map((function(e){var t="string"==typeof o?o:B(o),n="string"==typeof c?c:B(c);return e+" "+t+" "+i+" "+n})).join(",")}function U(e){return function(e){return e&&e.ownerDocument||document}(e).defaultView||window}function q(e,t){if(t){var n=function(e,t){var n,r=t.getBoundingClientRect(),o=U(t);if(t.fakeTransform)n=t.fakeTransform;else{var a=o.getComputedStyle(t);n=a.getPropertyValue("-webkit-transform")||a.getPropertyValue("transform")}var i=0,s=0;if(n&&"none"!==n&&"string"==typeof n){var c=n.split("(")[1].split(")")[0].split(",");i=parseInt(c[4],10),s=parseInt(c[5],10)}switch(e){case"left":return"translateX("+(o.innerWidth+i-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-i)+"px)";case"up":return"translateY("+(o.innerHeight+s-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-s)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var V=Object(r.forwardRef)((function(e,t){var n=e.children,o=e.direction,a=void 0===o?"down":o,i=e.in,s=e.style,c=e.timeout,l=void 0===c?0:c,u=e.onEnter,d=e.onEntered,f=e.onExit,p=e.onExited,h=O(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),g=Object(r.useRef)(null),m=R(n.ref,g),b=R(m,t),v=Object(r.useCallback)((function(){g.current&&q(a,g.current)}),[a]);return Object(r.useEffect)((function(){if(!i&&"down"!==a&&"right"!==a){var e=function(e,t){var n;function r(){for(var r=this,o=arguments.length,a=new Array(o),i=0;i-1,a=e.snacks.findIndex(t)>-1;if(r||a)return e}return n.handleDisplaySnack(_({},e,{queue:[].concat(e.queue,[f])}))})),u},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?_({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,r=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&(r=!0);var o=e.snacks.map((function(e){return t||e.persist&&!r?_({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),_({},e,{open:!1})):_({},e,{requestClose:!0}))}));return _({},e,{snacks:o})},n.handleEnteredSnack=function(e,t,r){if(!P(r))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.id===r?_({},e,{entered:!0}):_({},e)}))}}))},n.handleCloseSnack=function(e,t,r){n.props.onClose&&n.props.onClose(e,t,r);var o=void 0===r;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return o||e.id===r?e.entered?_({},e,{open:!1}):_({},e,{requestClose:!0}):_({},e)})),queue:n.filter((function(e){return e.id!==r}))}}))},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.id===e}));P(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!P(t))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var r=n.processQueue(_({},e,{snacks:e.snacks.filter((function(e){return e.id!==t}))}));return 0===r.queue.length?r:n.handleDismissOldest(r)}))},ke=n.enqueueSnackbar,Ee=n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(k(n)),closeSnackbar:n.closeSnackbar.bind(k(n))}},n}return x(t,e),t.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,r=n.domRoot,i=n.children,s=n.dense,c=void 0!==s&&s,l=n.Components,u=void 0===l?{}:l,d=n.classes,f=this.state.snacks.reduce((function(e,t){var n,r=L(t.anchorOrigin),o=e[r]||[];return _({},e,((n={})[r]=[].concat(o,[t]),n))}),{}),p=Object.keys(f).map((function(t){var n=f[t],r=n[0];return o.a.createElement(Ie,{key:t,dense:c,anchorOrigin:r.anchorOrigin,classes:d},n.map((function(t){return o.a.createElement(Ce,{key:t.id,snack:t,classes:d,Component:u[t.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:ue([e.handleExitedSnack,e.props.onExited],t.id),onEntered:ue([e.handleEnteredSnack,e.props.onEntered],t.id)})})))}));return o.a.createElement(S.Provider,{value:t},i,r?Object(a.createPortal)(p,r):p)},w(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Q.maxSnack}}]),t}(r.Component)},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(57),o=n(1146),a=n(943),i=n(590),s=n(1147),c=n(940),l=n(690)("IE_PROTO"),u=function(){},d=function(){var e,t=c("iframe"),n=a.length;for(t.style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("