@statisticsfinland/pxvisualizer 1.4.0-d.0 → 1.4.0-d.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pxv.cjs +1 -1
- package/dist/pxv.cjs.map +1 -1
- package/dist/pxv.modern.js +2 -2
- package/dist/pxv.modern.js.map +1 -1
- package/dist/pxv.module.js +1 -1
- package/dist/pxv.module.js.map +1 -1
- package/dist/pxv.umd.js +1 -1
- package/dist/pxv.umd.js.map +1 -1
- package/dist/types/react/components/chart/chart.d.ts +1 -1
- package/package.json +1 -1
package/dist/pxv.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{useRef as t,useContext as n,useDebugValue as r,createElement as i,forwardRef as a,useId as s,useEffect as o,useMemo as l,Component as c}from"react";import*as u from"highcharts";import m from"highcharts";import d from"decimal.js";import{strToU8 as h,zip as p}from"fflate";import{HighchartsReact as f}from"highcharts-react-official";import"highcharts/modules/accessibility.js";import"highcharts/modules/exporting.js";import"highcharts/modules/offline-exporting.js";import"highcharts/modules/pattern-fill.js";function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(null,arguments)}var v=function(){return v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},v.apply(this,arguments)};function y(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function b(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}"function"==typeof SuppressedError&&SuppressedError;var w=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,x=/* #__PURE__ */b(function(e){return w.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),S="-ms-",k="-moz-",C="-webkit-",N="comm",E="rule",M="decl",A="@keyframes",T=Math.abs,P=String.fromCharCode,I=Object.assign;function j(e){return e.trim()}function V(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,n){return e.replace(t,n)}function D(e,t,n){return e.indexOf(t,n)}function L(e,t){return 0|e.charCodeAt(t)}function O(e,t,n){return e.slice(t,n)}function z(e){return e.length}function R(e){return e.length}function G(e,t){return t.push(e),e}function q(e,t){return e.filter(function(e){return!V(e,t)})}var B=1,F=1,_=0,H=0,U=0,W="";function Y(e,t,n,r,i,a,s,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:B,column:F,length:s,return:"",siblings:o}}function Z(e,t){return I(Y("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function X(e){for(;e.root;)e=Z(e.root,{children:[e]});G(e,e.siblings)}function K(){return U=H>0?L(W,--H):0,F--,10===U&&(F=1,B--),U}function J(){return U=H<_?L(W,H++):0,F++,10===U&&(F=1,B++),U}function Q(){return L(W,H)}function ee(){return H}function te(e,t){return O(W,e,t)}function ne(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function re(e){return j(te(H-1,se(91===e?e+2:40===e?e+1:e)))}function ie(e){for(;(U=Q())&&U<33;)J();return ne(e)>2||ne(U)>3?"":" "}function ae(e,t){for(;--t&&J()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return te(e,ee()+(t<6&&32==Q()&&32==J()))}function se(e){for(;J();)switch(U){case e:return H;case 34:case 39:34!==e&&39!==e&&se(U);break;case 40:41===e&&se(e);break;case 92:J()}return H}function oe(e,t){for(;J()&&e+U!==57&&(e+U!==84||47!==Q()););return"/*"+te(t,H-1)+"*"+P(47===e?e:J())}function le(e){for(;!ne(Q());)J();return te(e,H)}function ce(e){return function(e){return W="",e}(ue("",null,null,null,[""],e=function(e){return B=F=1,_=z(W=e),H=0,[]}(e),0,[0],e))}function ue(e,t,n,r,i,a,s,o,l){for(var c=0,u=0,m=s,d=0,h=0,p=0,f=1,g=1,v=1,y=0,b="",w=i,x=a,S=r,k=b;g;)switch(p=y,y=J()){case 40:if(108!=p&&58==L(k,m-1)){-1!=D(k+=$(re(y),"&","&\f"),"&\f",T(c?o[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=re(y);break;case 9:case 10:case 13:case 32:k+=ie(p);break;case 92:k+=ae(ee()-1,7);continue;case 47:switch(Q()){case 42:case 47:G(de(oe(J(),ee()),t,n,l),l);break;default:k+="/"}break;case 123*f:o[c++]=z(k)*v;case 125*f:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=$(k,/\f/g,"")),h>0&&z(k)-m&&G(h>32?he(k+";",r,n,m-1,l):he($(k," ","")+";",r,n,m-2,l),l);break;case 59:k+=";";default:if(G(S=me(k,t,n,c,u,i,o,b,w=[],x=[],m,a),a),123===y)if(0===u)ue(k,t,S,S,w,a,m,o,x);else switch(99===d&&110===L(k,3)?100:d){case 100:case 108:case 109:case 115:ue(e,S,S,r&&G(me(e,S,S,0,0,i,o,b,i,w=[],m,x),x),i,x,m,o,r?w:x);break;default:ue(k,S,S,S,[""],x,0,o,x)}}c=u=h=0,f=v=1,b=k="",m=s;break;case 58:m=1+z(k),h=p;default:if(f<1)if(123==y)--f;else if(125==y&&0==f++&&125==K())continue;switch(k+=P(y),y*f){case 38:v=u>0?1:(k+="\f",-1);break;case 44:o[c++]=(z(k)-1)*v,v=1;break;case 64:45===Q()&&(k+=re(J())),d=Q(),u=m=z(b=k+=le(ee())),y++;break;case 45:45===p&&2==z(k)&&(f=0)}}return a}function me(e,t,n,r,i,a,s,o,l,c,u,m){for(var d=i-1,h=0===i?a:[""],p=R(h),f=0,g=0,v=0;f<r;++f)for(var y=0,b=O(e,d+1,d=T(g=s[f])),w=e;y<p;++y)(w=j(g>0?h[y]+" "+b:$(b,/&\f/g,h[y])))&&(l[v++]=w);return Y(e,t,n,0===i?E:o,l,c,u,m)}function de(e,t,n,r){return Y(e,t,n,N,P(U),O(e,2,-2),0,r)}function he(e,t,n,r,i){return Y(e,t,n,M,O(e,0,r),O(e,r+1,-1),r,i)}function pe(e,t,n){switch(function(e,t){return 45^L(e,0)?(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}(e,t)){case 5103:return C+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return C+e+e;case 4789:return k+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C+e+k+e+S+e+e;case 5936:switch(L(e,t+11)){case 114:return C+e+S+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return C+e+S+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return C+e+S+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return C+e+S+e+e;case 6165:return C+e+S+"flex-"+e+e;case 5187:return C+e+$(e,/(\w+).+(:[^]+)/,C+"box-$1$2"+S+"flex-$1$2")+e;case 5443:return C+e+S+"flex-item-"+$(e,/flex-|-self/g,"")+(V(e,/flex-|baseline/)?"":S+"grid-row-"+$(e,/flex-|-self/g,""))+e;case 4675:return C+e+S+"flex-line-pack"+$(e,/align-content|flex-|-self/g,"")+e;case 5548:return C+e+S+$(e,"shrink","negative")+e;case 5292:return C+e+S+$(e,"basis","preferred-size")+e;case 6060:return C+"box-"+$(e,"-grow","")+C+e+S+$(e,"grow","positive")+e;case 4554:return C+$(e,/([^-])(transform)/g,"$1"+C+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+S+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+e+e;case 4200:if(!V(e,/flex-|baseline/))return S+"grid-column-align"+O(e,t)+e;break;case 2592:case 3360:return S+$(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,V(e.props,/grid-\w+-end/)})?~D(e+(n=n[t].value),"span",0)?e:S+$(e,"-start","")+e+S+"grid-row-span:"+(~D(n,"span",0)?V(n,/\d+/):+V(n,/\d+/)-+V(e,/\d+/))+";":S+$(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return V(e.props,/grid-\w+-start/)})?e:S+$($(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,C+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(z(e)-1-t>6)switch(L(e,t+1)){case 109:if(45!==L(e,t+4))break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+k+(108==L(e,t+3)?"$3":"$2-$3"))+e;case 115:return~D(e,"stretch",0)?pe($(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return $(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,s,o){return S+n+":"+r+o+(i?S+n+"-span:"+(a?s:+s-+r)+o:"")+e});case 4949:if(121===L(e,t+6))return $(e,":",":"+C)+e;break;case 6444:switch(L(e,45===L(e,14)?18:11)){case 120:return $(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+C+(45===L(e,14)?"inline-":"")+"box$3$1"+C+"$2$3$1"+S+"$2box$3")+e;case 100:return $(e,":",":"+S)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return $(e,"scroll-","scroll-snap-")+e}return e}function fe(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ge(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case M:return e.return=e.return||e.value;case N:return"";case A:return e.return=e.value+"{"+fe(e.children,r)+"}";case E:if(!z(e.value=e.props.join(",")))return""}return z(n=fe(e.children,r))?e.return=e.value+"{"+n+"}":""}function ve(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case M:return void(e.return=pe(e.value,e.length,n));case A:return fe([Z(e,{value:$(e.value,"@","@"+C)})],r);case E:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(V(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":X(Z(e,{props:[$(t,/:(read-\w+)/,":-moz-$1")]})),X(Z(e,{props:[t]})),I(e,{props:q(n,r)});break;case"::placeholder":X(Z(e,{props:[$(t,/:(plac\w+)/,":"+C+"input-$1")]})),X(Z(e,{props:[$(t,/:(plac\w+)/,":-moz-$1")]})),X(Z(e,{props:[$(t,/:(plac\w+)/,S+"input-$1")]})),X(Z(e,{props:[t]})),I(e,{props:q(n,r)})}return""})}}var ye={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},be="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",we="active",xe="data-styled-version",Se="6.1.19",ke="/*!sc*/\n",Ce="undefined"!=typeof window&&"undefined"!=typeof document,Ne=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),Ee={},Me=/invalid hook call/i,Ae=new Set,Te=function(e,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",i="The component ".concat(e).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",a=console.error;try{var s=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Me.test(e)?(s=!1,Ae.delete(i)):a.apply(void 0,y([e],t,!1))},t(),s&&!Ae.has(i)&&(console.warn(i),Ae.add(i))}catch(e){Me.test(e.message)&&Ae.delete(i)}finally{console.error=a}}},Pe=Object.freeze([]),Ie=Object.freeze({});function je(e,t,n){return void 0===n&&(n=Ie),e.theme!==n.theme&&e.theme||t||n.theme}var Ve=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),$e=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function Le(e){return e.replace($e,"-").replace(De,"")}var Oe=/(a)(d)/gi,ze=function(e){return String.fromCharCode(e+(e>25?39:97))};function Re(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ze(t%52)+n;return(ze(t%52)+n).replace(Oe,"$1-$2")}var Ge,qe=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Be=function(e){return qe(5381,e)};function Fe(e){return Re(Be(e)>>>0)}function _e(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function He(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Ue="function"==typeof Symbol&&Symbol.for,We=Ue?Symbol.for("react.memo"):60115,Ye=Ue?Symbol.for("react.forward_ref"):60112,Ze={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ke={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Je=((Ge={})[Ye]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ge[We]=Ke,Ge);function Qe(e){return("type"in(t=e)&&t.type.$$typeof)===We?Ke:"$$typeof"in e?Je[e.$$typeof]:Ze;var t}var et=Object.defineProperty,tt=Object.getOwnPropertyNames,nt=Object.getOwnPropertySymbols,rt=Object.getOwnPropertyDescriptor,it=Object.getPrototypeOf,at=Object.prototype;function st(e,t,n){if("string"!=typeof t){if(at){var r=it(t);r&&r!==at&&st(e,r,n)}var i=tt(t);nt&&(i=i.concat(nt(t)));for(var a=Qe(e),s=Qe(t),o=0;o<i.length;++o){var l=i[o];if(!(l in Xe||n&&n[l]||s&&l in s||a&&l in a)){var c=rt(t,l);try{et(e,l,c)}catch(e){}}}}return e}function ot(e){return"function"==typeof e}function lt(e){return"object"==typeof e&&"styledComponentId"in e}function ct(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ut(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function mt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function dt(e,t,n){if(void 0===n&&(n=!1),!n&&!mt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=dt(e[r],t[r]);else if(mt(t))for(var r in t)e[r]=dt(e[r],t[r]);return e}function ht(e,t){Object.defineProperty(e,"toString",{value:t})}var pt="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,a=e.length;i<a;i+=1)r.push(e[i]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function gt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(ft.apply(void 0,y([pt[e]],t,!1)).trim())}var vt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw gt(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(e+1),o=(a=0,t.length);a<o;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,a=r;a<i;a++)t+="".concat(this.tag.getRule(a)).concat(ke);return t},e}(),yt=1<<30,bt=new Map,wt=new Map,xt=1,St=function(e){if(bt.has(e))return bt.get(e);for(;wt.has(xt);)xt++;var t=xt++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>yt))throw gt(16,"".concat(t));return bt.set(e,t),wt.set(t,e),t},kt=function(e,t){xt=t+1,bt.set(e,t),wt.set(t,e)},Ct="style[".concat(be,"][").concat(xe,'="').concat(Se,'"]'),Nt=new RegExp("^".concat(be,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Et=function(e,t,n){for(var r,i=n.split(","),a=0,s=i.length;a<s;a++)(r=i[a])&&e.registerName(t,r)},Mt=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(ke),i=[],a=0,s=r.length;a<s;a++){var o=r[a].trim();if(o){var l=o.match(Nt);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(kt(u,c),Et(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(o)}}},At=function(e){for(var t=document.querySelectorAll(Ct),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(be)!==we&&(Mt(e,i),i.parentNode&&i.parentNode.removeChild(i))}},Tt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(be,"]")));return t[t.length-1]}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(be,we),r.setAttribute(xe,Se);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,a),r},Pt=function(){function e(e){this.element=Tt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw gt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),It=function(){function e(e){this.element=Tt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),jt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Vt=Ce,$t={isServer:!Ce,useCSSOMInjection:!Ne},Dt=function(){function e(e,t,n){void 0===e&&(e=Ie),void 0===t&&(t={});var r=this;this.options=v(v({},$t),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Ce&&Vt&&(Vt=!1,At(this)),ht(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=function(n){var i=function(e){return wt.get(e)}(n);if(void 0===i)return"continue";var a=e.names.get(i),s=t.getGroup(n);if(void 0===a||!a.size||0===s.length)return"continue";var o="".concat(be,".g").concat(n,'[id="').concat(i,'"]'),l="";void 0!==a&&a.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(s).concat(o,'{content:"').concat(l,'"}').concat(ke)},a=0;a<n;a++)i(a);return r}(r)})}return e.registerId=function(e){return St(e)},e.prototype.rehydrate=function(){!this.server&&Ce&&At(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(v(v({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new jt(n):t?new Pt(n):new It(n)}(this.options),new vt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(St(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(St(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(St(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Lt=/&/g,Ot=/^\s*\/\/.*$/gm;function zt(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=zt(e.children,t)),e})}var Rt=new Dt,Gt=function(){var e,t,n,r=Ie.options,i=void 0===r?Ie:r,a=Ie.plugins,s=void 0===a?Pe:a,o=function(n,r,i){return i.startsWith(t)&&i.endsWith(t)&&i.replaceAll(t,"").length>0?".".concat(e):n},l=s.slice();l.push(function(e){e.type===E&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Lt,t).replace(n,o))}),i.prefix&&l.push(ve),l.push(ge);var c=function(r,a,s,o){void 0===a&&(a=""),void 0===s&&(s=""),void 0===o&&(o="&"),e=o,t=a,n=new RegExp("\\".concat(t,"\\b"),"g");var c=r.replace(Ot,""),u=ce(s||a?"".concat(s," ").concat(a," { ").concat(c," }"):c);i.namespace&&(u=zt(u,i.namespace));var m,d=[];return fe(u,function(e){var t=R(e);return function(n,r,i,a){for(var s="",o=0;o<t;o++)s+=e[o](n,r,i,a)||"";return s}}(l.concat((m=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&m(e)})))),d};return c.hash=s.length?s.reduce(function(e,t){return t.name||gt(15),qe(e,t.name)},5381).toString():"",c}(),qt=e.createContext({shouldForwardProp:void 0,styleSheet:Rt,stylis:Gt});function Bt(){return n(qt)}e.createContext(void 0);var Ft=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Gt);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ht(this,function(){throw gt(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Gt),this.name+e.hash},e}(),_t=function(e){return e>="A"&&e<="Z"};function Ht(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;_t(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ut=function(e){return null==e||!1===e||""===e},Wt=function(e){var t,n,r=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!Ut(a)&&(Array.isArray(a)&&a.isCss||ot(a)?r.push("".concat(Ht(i),":"),a,";"):mt(a)?r.push.apply(r,y(y(["".concat(i," {")],Wt(a),!1),["}"],!1)):r.push("".concat(Ht(i),": ").concat((t=i,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in ye||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Yt(e,t,n,r){if(Ut(e))return[];if(lt(e))return[".".concat(e.styledComponentId)];if(ot(e)){if(!ot(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var i=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof i||Array.isArray(i)||i instanceof Ft||mt(i)||null===i||console.error("".concat(_e(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Yt(i,t,n,r)}var a;return e instanceof Ft?n?(e.inject(n,r),[e.getName(r)]):[e]:mt(e)?Wt(e):Array.isArray(e)?Array.prototype.concat.apply(Pe,e.map(function(e){return Yt(e,t,n,r)})):[e.toString()]}function Zt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ot(n)&&!lt(n))return!1}return!0}var Xt=Be(Se),Kt=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Zt(e),this.componentId=t,this.baseHash=qe(Xt,t),this.baseStyle=n,Dt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ct(r,this.staticRulesId);else{var i=ut(Yt(this.rules,e,t,n)),a=Re(qe(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,a)){var s=n(i,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,s)}r=ct(r,a),this.staticRulesId=a}else{for(var o=qe(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u,"production"!==process.env.NODE_ENV&&(o=qe(o,u));else if(u){var m=ut(Yt(u,e,t,n));o=qe(o,m+c),l+=m}}if(l){var d=Re(o>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(l,".".concat(d),void 0,this.componentId)),r=ct(r,d)}}return r},e}(),Jt=e.createContext(void 0),Qt={},en=new Set;function tn(t,n,a){var s=lt(t),o=t,l=!He(t),c=n.attrs,u=void 0===c?Pe:c,m=n.componentId,d=void 0===m?function(e,t){var n="string"!=typeof e?"sc":Le(e);Qt[n]=(Qt[n]||0)+1;var r="".concat(n,"-").concat(Fe(Se+n+Qt[n]));return t?"".concat(t,"-").concat(r):r}(n.displayName,n.parentComponentId):m,h=n.displayName,p=void 0===h?function(e){return He(e)?"styled.".concat(e):"Styled(".concat(_e(e),")")}(t):h,f=n.displayName&&n.componentId?"".concat(Le(n.displayName),"-").concat(n.componentId):n.componentId||d,g=s&&o.attrs?o.attrs.concat(u).filter(Boolean):u,y=n.shouldForwardProp;if(s&&o.shouldForwardProp){var b=o.shouldForwardProp;if(n.shouldForwardProp){var w=n.shouldForwardProp;y=function(e,t){return b(e,t)&&w(e,t)}}else y=b}var S=new Kt(a,f,s?o.componentStyle:void 0);function k(t,n){return function(t,n,a){var s=t.attrs,o=t.componentStyle,l=t.defaultProps,c=t.foldedComponentIds,u=t.styledComponentId,m=t.target,d=e.useContext(Jt),h=Bt(),p=t.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&r(u);var f=je(n,d,l)||Ie,g=function(e,t,n){for(var r,i=v(v({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=ot(r=e[a])?r(i):r;for(var o in s)i[o]="className"===o?ct(i[o],s[o]):"style"===o?v(v({},i[o]),s[o]):s[o]}return t.className&&(i.className=ct(i.className,t.className)),i}(s,n,f),y=g.as||m,b={};for(var w in g)void 0===g[w]||"$"===w[0]||"as"===w||"theme"===w&&g.theme===f||("forwardedAs"===w?b.as=g.forwardedAs:p&&!p(w,y)||(b[w]=g[w],p||"development"!==process.env.NODE_ENV||x(w)||en.has(w)||!Ve.has(y)||(en.add(w),console.warn('styled-components: it looks like an unknown prop "'.concat(w,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var S=function(e,t){var n=Bt(),i=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&r(i),i}(o,g);"production"!==process.env.NODE_ENV&&t.warnTooManyClasses&&t.warnTooManyClasses(S);var k=ct(c,u);return S&&(k+=" "+S),g.className&&(k+=" "+g.className),b[He(y)&&!Ve.has(y)?"class":"className"]=k,a&&(b.ref=a),i(y,b)}(C,t,n)}k.displayName=p;var C=e.forwardRef(k);return C.attrs=g,C.componentStyle=S,C.displayName=p,C.shouldForwardProp=y,C.foldedComponentIds=s?ct(o.foldedComponentIds,o.styledComponentId):"",C.styledComponentId=f,C.target=s?o.target:t,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)dt(e,i[r],!0);return e}({},o.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Te(p,f),C.warnTooManyClasses=function(e,t){var n={},r=!1;return function(i){if(!r&&(n[i]=!0,Object.keys(n).length>=200)){var a=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(a,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(p,f)),ht(C,function(){return".".concat(C.styledComponentId)}),l&&st(C,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function nn(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var rn=function(e){return Object.assign(e,{isCss:!0})};function an(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ot(e)||mt(e))return rn(Yt(nn(Pe,y([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Yt(r):rn(Yt(nn(r,t)))}function sn(e,t,n){if(void 0===n&&(n=Ie),!t)throw gt(1,t);var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,n,an.apply(void 0,y([r],i,!1)))};return r.attrs=function(r){return sn(e,t,v(v({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return sn(e,t,v(v({},n),r))},r}var on=function(e){return sn(tn,e)},ln=on;Ve.forEach(function(e){ln[e]=on(e)});var cn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Zt(e),Dt.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r(ut(Yt(this.rules,t,n,r)),""),a=this.componentId+e;n.insertRules(a,a,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Dt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var un,mn,dn,hn="__sc-".concat(be,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[hn]||(window[hn]=0),1===window[hn]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[hn]+=1),function(e){e.VerticalBarChart="VerticalBarChart",e.GroupVerticalBarChart="GroupVerticalBarChart",e.StackedVerticalBarChart="StackedVerticalBarChart",e.PercentVerticalBarChart="PercentVerticalBarChart",e.HorizontalBarChart="HorizontalBarChart",e.GroupHorizontalBarChart="GroupHorizontalBarChart",e.StackedHorizontalBarChart="StackedHorizontalBarChart",e.PercentHorizontalBarChart="PercentHorizontalBarChart",e.PyramidChart="PyramidChart",e.PieChart="PieChart",e.LineChart="LineChart",e.ScatterPlot="ScatterPlot",e.Table="Table"}(un||(un={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(mn||(mn={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(dn||(dn={}));const pn={empty:{fi:"",sv:"",en:""},preliminaryData:{fi:"Ennakko",sv:"Preliminär",en:"Preliminary data"},source:{fi:"Lähde",sv:"Källa",en:"Source"},unit:{fi:"Yksikkö",sv:"Enhet",en:"Unit"},graphCreationError:{fi:"Kuviota ei voitu muodostaa",sv:"Diagrammet kunde inte skapas",en:"The graph could not be created"},thousandsSep:{fi:" ",sv:" ",en:","},thousandsSepAccessibility:{fi:"",sv:"",en:","},decimalPoint:{fi:",",sv:",",en:"."},barMultiple:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Flerdimensionellt vertikalt stapeldiagram.",en:"Bar chart with {numSeries} data series."},barSingle:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Vertikalt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnSingle:{fi:"Vaakapylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Horisontellt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnMultiple:{fi:"Vaakapylväskuvio, jossa {numSeries} muuttujaa.",sv:"Flerdimensionellt horisontellt stapeldiagram.",en:"Bar chart with {numSeries} data series."},lineSingle:{fi:"Viivakuvio, jossa {numPoints} havainto{#eq numPoints 1}arvo{else}arvoa{/eq}.",sv:"Linjediagram.",en:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},lineMultiple:{fi:"Viivakuvio, jossa {numSeries} viivaa.",sv:"Flerdimensionellt linjediagram.",en:"Line chart with {numSeries} lines."},pieSingle:{fi:"Piirakkakuvio, jossa {numPoints} {#eq numPoints 1}lohko{else}lohkoa{/eq}.",sv:"Cirkeldiagram.",en:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}."},pieMultiple:{fi:"Piirakkakuvio, jossa {numSeries} piirakkaa.",sv:"Flerdimensionellt cirkeldiagram.",en:"Pie chart with {numSeries} pies."},scatterSingle:{fi:"Hajontakuvio, jossa {numPoints} {#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Spridningsdiagram.",en:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}."},scatterMultiple:{fi:"Hajontakuvio,jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt spridningsdiagram.",en:"Scatter chart with {numSeries} data series."},defaultSingle:{fi:"Kuvio, jossa {numPoints} data{#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Endimensionellt diagram.",en:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},defaultMultiple:{fi:"Kuvio, jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt diagram.",en:"Chart with {numSeries} data series."},defaultChartTitle:{fi:"Kuvio",sv:"Diagrammets rubrik",en:"Chart"},chartMenuLabel:{fi:"Kuvion valikko",sv:"Diagrammets meny",en:"Chart menu"},menuButtonLabel:{fi:"Katso valikko kuviosta {chartTitle}",sv:"Visa diagrammets meny",en:"View chart menu, {chartTitle}"},credits:{fi:"{creditsStr}",sv:"{creditsStr}",en:"{creditsStr}"},legendItem:{fi:"Näytä {itemName}",sv:"Variabelvärde",en:"Show {itemName}"},legendLabel:{fi:"Kuvion selite: {legendTitle}",sv:"Bläddra visuellt i variabelvärden",en:"Chart legend: {legendTitle}"},legendLabelNoTitle:{fi:"Vaihda sarjojen näkyvyyttä, {chartTitle}",sv:"Ingen etikett",en:"Toggle series visibility, {chartTitle}"},contextButtonTitle:{fi:"Kuvion valintamenu",sv:"Diagrammets valmeny",en:"Chart context menu"},downloadPNG:{fi:"Lataa kuvio (png)",sv:"Ladda ner figuren (png)",en:"Download figure (png)"},downloadSVG:{fi:"Lataa kuvio (svg)",sv:"Ladda ner figuren (svg)",en:"Download figure (svg)"},downloadXLSX:{fi:"Lataa taulukko (xlsx)",sv:"Ladda ner tabellen (xlsx)",en:"Download table (xlsx)"},downloadCSV:{fi:"Lataa taulukko (csv)",sv:"Ladda ner tabellen (csv)",en:"Download table (csv)"},rangeCategories:{fi:"Datan arvoalue: {numCategories} luokkaa.",sv:"Diagrammets värdeområde.",en:"Data range: {numCategories} categories."},rangeFromTo:{fi:"Arvot alkavat {rangeFrom} ja päättyvät {rangeTo}.",sv:"Värdena börjar från {rangeFrom} och slutar vid {rangeTo}.",en:"Data ranges from {rangeFrom} to {rangeTo}."},timeRangeDays:{fi:"Arvoja päiviltä {range}.",sv:"Värden för dagarna {range}.",en:"Data range: {range} days."},timeRangeHours:{fi:"Arvoja tunneilta {range}",sv:"Värden för timmarna {range}",en:"Data range: {range} hours."},timeRangeMinutes:{fi:"Arvoja minuuteilta {range}",sv:"Värden för minuterna {range}",en:"Data range: {range} minutes."},timeRangeSeconds:{fi:"Arvoja sekunneilta {range}",sv:"Värden för sekunderna {range}",en:"Data range: {range} seconds."},xAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} x-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} x-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},xAxisDescriptionSingular:{fi:"Kuviolla on 1 x-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en x-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}"},yAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} y-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} y-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},yAxisDescriptionSingular:{fi:"Kuviolla on 1 y-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en y-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}"},seriesSummaryBar:{fi:"{series.name}muuttujan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryBarCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumn:{fi:"{series.name}muuttuja, pylvässarja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumnCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryDefault:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryDefaultCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. diagram, ..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLine:{fi:"{series.name}, viiva {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Linje",en:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLineCombination:{fi:"{series.name}, aikasarja {seriesNumber}/{chart.series.length}. Viivassa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. linje, ..variabelns .. Linje",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryPie:{fi:"{series.name}, piirakan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1} lohko {else}lohkoa{/eq}.",sv:"..variabelns .. Sektor",en:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryPieCombination:{fi:"{series.name}, sarja {seriesNumber}/{chart.series.length}. Piirakasta, jossa {series.points.length} {#eq series.points.length 1} lohko{else}lohkoa{/eq}.",sv:"..variabelns .. sektor, ..variabelns .. Sektor",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryScatter:{fi:"{series.name}, hajontakuvio {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. Punkt",en:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryScatterCombination:{fi:"{series.name}, datasarja {seriesNumber}/{chart.series.length}, hajontakuviosta {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. punkt, ..variabelns .. Punkt",en:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},xAxisDescription:{fi:"Toisen X-akselin kuvaus, {name}",sv:"Beskrivning av andra X-axeln, {name}",en:"X axis, {name}"},yAxisDescription:{fi:"Toisen Y-akselin kuvaus, {name}",sv:"Beskrivning av andra Y-axeln, {name}",en:"Y axis, {name}"},endOfChartMarker:{fi:"Kuvion loppu.",sv:"Diagrammets slut.",en:"End of interactive chart."},loading:{fi:"Ladataan...",sv:"Laddar...",en:"Loading..."},chartContainerLabel:{fi:"{title}. Highcharts interactive chart.",sv:"{title}. Highcharts interactive chart.",en:"{title}. Highcharts interactive chart."},toggleTableModeOnText:{fi:"Näytä taulukko",sv:"Visa tabell",en:"View table"},toggleTableModeOffText:{fi:"Näytä kuvio",sv:"Visa figur",en:"View chart"},externalLink:{fi:"Ulkoinen linkki",sv:"Ulkoinen linkki",en:"External link"},quarter:{fi:"vuosineljännes",sv:"kvartal",en:"quarter"},dataMissing:{fi:"Tieto puuttuu",sv:"Data saknas",en:"Missing data"},toggleAccessibilityModeOn:{fi:"Näytä kuviossa symbolit",sv:"Visa symboler i diagrammet",en:"Show symbols in the figure"},toggleAccessibilityModeOff:{fi:"Poista kuviosta symbolit",sv:"Ta bort symbolerna från diagrammet",en:"Remove symbols from the figure"},lastUpdated:{fi:"Päivitetty",sv:"Uppdaterad",en:"Updated"}},fn={months:{fi:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]},shortMonths:{fi:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],sv:["jan.","febr.","mars","april","maj","juni","juli","aug.","sept.","okt.","nov.","dec."],en:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},numericSymbols:{fi:["k","M","G","T","P","E"],sv:["k","M","G","T","P","E"],en:["k","M","G","T","P","E"]},weekdays:{fi:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],sv:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ordinalSuffices:{en:["st.","nd.","rd.","th."]}},gn=new class{constructor(){this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=()=>Object.keys(this.Translations.empty),this.Translations=pn,this.ArrayTranslations=fn}AddTranslations(e){for(const t in e.Translations)t in this.Translations&&(this.Translations[t]=g({},this.Translations[t],e.Translations[t]));for(const t in e.ArrayTranslations)t in this.ArrayTranslations&&(this.ArrayTranslations[t]=g({},this.ArrayTranslations[t],e.ArrayTranslations[t]))}},vn=gn.Translations,yn=gn.ArrayTranslations,bn=gn.GetAllLanguages;function wn(e){gn.AddTranslations(e)}const xn=e=>e.reduce((e,t)=>e.map(e=>t.map(t=>e.concat([t]))).reduce((e,t)=>e.concat(t),[]),[[]]);function Sn(e,t,n){return n.findIndex(t=>JSON.stringify(t)===JSON.stringify(e))===t}const kn=["",".","..","...","....",".....","......","-"];function Cn(e,t,n,r=!1){if(null===e)throw new Error("Can not produce a localized numeric formatting for missing data");return new Intl.NumberFormat(n,{maximumFractionDigits:t,minimumFractionDigits:t,useGrouping:r}).format(e)}function Nn(e,t,n=!1){if(e)return n?vn.dataMissing[t]:kn[e];throw new Error("Invalid missing code. Can not generate table presentation")}function En(e,t){return function(){var n,r,i;const a=[];var s,o;e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&a.push(`${null==(s=e.rowVarNames)?void 0:s.map(e=>e[t]).join(", ")}: ${this.series.name}`),e.colVarNames&&e.colVarNames.length>0&&this.name&&a.push(`${null==(o=e.colVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${this.name}`);const l=null!=(n=null==(r=this.options.custom)?void 0:r.precision)?n:0;return a.push(On(e,this,t,l)),null!=(i=this.options.custom)&&i.preliminary&&a.push(vn.preliminaryData[t]),a.join("<br/>")}}function Mn(e,t){return function(n){var r,i,a;const s=[];var o,l;e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&s.push(`${null==(o=e.rowVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${zn(n.series.name,t)}`),e.colVarNames&&e.colVarNames.length>0&&n.name&&s.push(`${null==(l=e.colVarNames)?void 0:l.map(e=>e[t]).join(", ")}: ${zn(n.name,t)}`);const c=null!=(r=null==(i=n.options.custom)?void 0:i.precision)?r:0;return s.push(On(e,n,t,c)),null!=(a=n.options.custom)&&a.preliminary&&s.push(vn.preliminaryData[t]),s.join(", ")}}function An(e){return function(){return this.value.toLocaleString(e)}}const Tn=e=>bn().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():bn()[0];function Pn(e=null){const t=e&&e>=15?25:50;return function(){return Vn(this.value,t)}}function In(e){return function(){var t,n;if(!this.y)return"";const r=null!=(t=null==(n=this.options.custom)?void 0:n.precision)?t:0;return Cn(this.y,r,e,!0)}}function jn(){return function(){return Vn(this.name,200)}}const Vn=(e,t=50)=>{const n=e.toString().length;return`${e.toString().slice(0,t).trim()}${n>t?"...":""}`};function $n(e,t){return function(){var n,r;const i=e.series[1].rowNameGroup.map(e=>e[t]).join(", "),a=e.series[0].rowNameGroup.map(e=>e[t]).join(", "),s=null==(n=e.colVarNames)?void 0:n.map(e=>e[t]).join(", ");let o="";var l;return i&&i.length>0&&this.series.name&&(o+=`${i}: ${this.x.toLocaleString(t)}<br />`),a&&a.length>0&&this.key&&(o+=`${a}: ${null==(l=this.y)?void 0:l.toLocaleString(t)}<br />`),s&&s.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(o+=`${s}: ${e.columnNameGroups[this.index].map(e=>e[t]).join(", ")}`),null!=(r=this.options.custom)&&r.preliminary&&(o+=`<br />${vn.preliminaryData[t]}`),o}}function Dn(e,t){return function(){var n,r,i;const a=[];if(e.rowVarNames&&e.rowVarNames.length>0)for(let n=0;n<e.rowVarNames.length;n++)a.push(`${e.rowVarNames[n][t]}: ${e.series[this.series.index].rowNameGroup[n][t]}`);var s;e.colVarNames&&e.colVarNames.length>0&&this.name&&a.push(`${null==(s=e.colVarNames)?void 0:s.map(e=>e[t]).join(", ")}: ${this.name}`);const o=null!=(n=null==(r=this.options.custom)?void 0:r.precision)?n:0;return a.push(On(e,this,t,o)),null!=(i=this.options.custom)&&i.preliminary&&a.push(vn.preliminaryData[t]),a.join("<br/>")}}function Ln(e,t){const n=e.map(e=>e.unit).filter(Sn);if(1===n.length)return n[0][t];if(n.length>1)return e.map(e=>`${e.name[t]}: ${e.unit[t]}`).join(", ");throw new Error("Missing required unit data")}function On(e,t,n,r){if(null==t.y)return"";const i=Number(t.y.toFixed(r));return e.visualizationSettings.visualizationType===un.PyramidChart?Math.abs(i).toLocaleString(n):e.visualizationSettings.visualizationType==un.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==un.PercentVerticalBarChart?`${Cn(null!=(a=t.percentage)?a:0,1,n)}% (${i.toLocaleString(n)} ${Ln(e.units,n)})`:null!=(s=i.toLocaleString(n))?s:"";var a,s}function zn(e,t){if(/^\d{4}[M,Q]\d{1,2}\*?$/.test(e)){const n=e.split("*")[0],r=/^\d{4}Q\d{1,2}$/;if(/^\d{4}M\d{1,2}$/.test(n)){const e=n.split("M");return`${e[0]} ${yn.months[t][Number(e[1])-1]}`}if(r.test(n)){const e=n.split("Q");return`${e[0]} ${function(e,t){const n=yn.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?`${e}${n[r]}`:`${e}.`}(e[1],t)} ${vn.quarter[t]}`}console.log("Unsupported time pattern")}return e}function Rn(e,t){if(e)try{const n=new Date(e);if(Number.isNaN(n.getTime()))return;const r=Intl.DateTimeFormat("en"===t?"en-GB":t).format(n);return`${vn.lastUpdated[t]}: ${r}`}catch(e){return void console.error("Error formatting date:",e)}}var Gn;function qn(e,t,n){return function(){const r=function(e,t,n,r=new d(0)){var i;if(e.greaterThan(t))throw new Error("dataMinValue must me smaller or equal than dataMaxValue");if((e.lessThan(0)&&t.greaterThan(0)?t.minus(e):d.max(e.abs(),t.abs())).div(n).lessThanOrEqualTo(r))return r;const a=(e=>{const t=Array.from({length:n},(e,t)=>n-t).reduce((t,n)=>{const i=function(e){if(e.equals(0))return new d(0);const t=d.pow(10,d.log10(e).floor());return e.div(t).lessThan(1.5)?t.div(10).mul(e.div(t.div(10)).ceil()):e.div(t).lessThan(3)?e.mul(2).div(t).ceil().mul(t).div(2):e.div(t).lessThan(8)?e.div(t).ceil().mul(t):e.div(t.mul(10)).ceil().mul(10).mul(t)}(e.div(n));return i.greaterThanOrEqualTo(r)&&t.push([(a=i,a.equals(0)?0:a.isInteger()?function(e){let t=0,n=5;for(;t<50&&e.mod(n).equals(0)&&(t++,n*=2,e.mod(n).equals(0));)t++,n*=5;return t}(a):function(e){const t=e.toString();if(t.includes("e-")){const e=t.split("e-"),n=Number.parseInt(e[1]);return e[0].endsWith("5")?-2*n+1:-2*n}{const e=t.split(".")[1];return e.endsWith("5")?-2*e.length+1:-2*e.length}}(a)),i]),t;var a},[]).sort(([e,t],[n,r])=>n-e);return t.slice(0,Math.max(2,Math.ceil(.5*t.length))).sort(([e,t],[n,r])=>t.minus(r).toNumber())})(d.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(i=a.map(([e,t])=>t).find(r=>e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)))?i:new d(NaN):a[0][1]}(e,t,(n=>{const r=d.pow(10,d.log10(d.max(e.abs(),t.abs())).floor()),i=Math.ceil(n/(12*(r.toString().length+(e.isNeg()?1:0))+25)-1);return Math.max(i,e.isNegative()&&t.isPositive()?2:1)})(this.chart.plotWidth),n),i=e.greaterThanOrEqualTo(0)?new d(0):e.div(r).floor().mul(r),a=t.lessThanOrEqualTo(0)?new d(0):t.div(r).ceil().mul(r);return Array.from({length:a.minus(i).div(r).plus(1).toNumber()},(e,t)=>r.mul(t).plus(i).toNumber())}}function Bn(e){let t=null,n=null,r=0;return e.forEach(e=>{e.forEach(e=>{e.value&&(!t||e.value<t)&&(t=e.value),e.value&&(!n||e.value>n)&&(n=e.value),e.precision>r&&(r=e.precision)})}),t&&n?qn(new d(t),new d(n),new d(Math.pow(10,-r))):()=>[]}function Fn(e){let t=null,n=null,r=0;return e[0].forEach((i,a)=>{const s=e.reduce((e,t)=>{var n;return e+(null!=(n=t[a].value)?n:0)},0);s&&(!t||s<t)&&(t=s),s&&(!n||s>n)&&(n=s),i.precision>r&&(r=i.precision)}),t&&n?qn(new d(t),new d(n),new d(Math.pow(10,-r))):()=>[]}!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(Gn||(Gn={}));const _n=(e,t)=>{return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),ordinal:!0,tickPositioner:(n=Math.max(...e.series.map(e=>e.series.length)),r=Math.max(...e.columnNameGroups.map(e=>e.reduce((e,n)=>(e>0?1:0)+e+n[t].length,0))),function(){const e=Math.ceil(n*r*10/this.chart.plotWidth),t=Math.ceil(n/e);return Array.from({length:t},(t,n)=>n*e)})};var n,r};function Hn(e,t){if(t){const n=new Date(t);switch(e){case dn.Irregular:case dn.Week:return;case dn.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case dn.Quarter:case dn.HalfYear:return;case dn.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function Un(e,t){if(e.seriesType!==Gn.Time){const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),r=n.every(e=>!isNaN(parseFloat(e)));return e.seriesType===Gn.Ordinal&&r?_n(e,t):{ordinal:e.seriesType==Gn.Ordinal,type:"category",categories:n,labels:{autoRotation:[-45]}}}switch(e.visualizationSettings.timeVariableIntervals){case dn.Week:return Wn(e,t);case dn.Month:return Yn();case dn.Quarter:return Zn(e,t);case dn.HalfYear:return Xn(e,t);case dn.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", "))}}}const Wn=(e,t)=>({type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", ")}}}),Yn=(e,t)=>({type:"datetime",ordinal:!1,labels:{formatter:function(){return m.dateFormat("%YM%m",Number(this.value))}}}),Zn=(e,t)=>{var n,r,i;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", "):""}},tickPositioner:(r=Math.max(...e.series.map(e=>e.series.length)),i=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){const e=function(e){return e<=2?Math.ceil(e):e<=4?4:e<=20?4*Math.ceil(e/4):e<=40?20*Math.ceil(e/20):40*Math.ceil(e/40)}(60*r/this.chart.plotWidth),t=function(e,t){const n=(4*t.getFullYear()+Math.floor(t.getMonth()/3))%e;return n>0?e-n:0}(e,i),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},Xn=(e,t)=>{var n,r,i;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", "):""}},tickPositioner:(r=Math.max(...e.series.map(e=>e.series.length)),i=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){const e=function(e){return e<=2?Math.ceil(e):e<=10?2*Math.ceil(e/2):e<=20?10*Math.ceil(e/10):20*Math.ceil(e/20)}(60*r/this.chart.plotWidth),t=function(e,t){const n=(2*t.getFullYear()+Math.floor(t.getMonth()/6))%e;return n>0?e-n:0}(e,i),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},Kn=["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],Jn=["M 0 5 L 10 5 M 5 0 L 5 10","M 0 0 L 10 10 M 10 0 L 0 10","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z M 2,7 h1 v1 h-1 z M 7,2 h1 v1 h-1 z","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z","M -2 -2 L 12 12 M -12 -2 L 2 12 M -2 -12 L 12 2","M -2 12 L 12 -2 M -12 12 L 2 -2 M -2 22 L 12 8","M 5,5 m -3,0 a 3,3 0 1,0 6,0 a 3,3 0 1,0 -6,0","M 2 2 L 3 3 M 7 7 L 8 8 M 2 7 L 3 8 M 7 2 L 8 3","M 5 0 L 10 5 L 5 10 L 0 5 Z","M 2 5 L 8 5 M 5 2 L 5 8","M 5 0 L 5 10","M 0 5 L 10 5","M 0 5 Q 2.5 0, 5 5 T 10 5","M 0 2 L 10 2 M 0 8 L 10 8","M 0 10 L 5 0 L 10 10 Z"];function Qn(e){return{color:{pattern:{backgroundColor:Kn[e%Kn.length],path:{stroke:"white",d:Jn[e%Jn.length],strokeWidth:2},width:10,height:10}}}}const er=(e,t)=>e.series.map((n,r)=>g({},rr(n,e,t),{index:r,type:"line"})),tr=(e,t,n=!1,r=!1)=>e.series.map((i,a)=>g({},rr(i,e,t),r&&Qn(a),{index:n?e.series.length-1-a:a,type:"bar"})),nr=(e,t,n=!1,r=!1)=>e.series.map((i,a)=>g({},rr(i,e,t),r&&Qn(a),{index:n?e.series.length-1-a:a,type:"column"}));function rr(e,t,n){return{animation:!1,name:e.rowNameGroup.map(e=>e[n]).join(", "),data:e.series.map((e,r)=>({y:e.value,name:t.columnNameGroups[r].map(e=>e[n]).join(", "),custom:{preliminary:e.preliminary,precision:e.precision}}))}}const ir=(e,t,n)=>{var r;const i=null==(r=null==n?void 0:n.showTitle)||r,a=vn.source[t];let s=`${a}: ${e.sources.map(e=>e[t]).join(", ")}`,o={enabled:!0,text:s};const l=(null==n?void 0:n.showLastUpdated)&&e.lastUpdated;if(l){const n=Rn(e.lastUpdated,t);n&&(s=`${n}<br>${a}: ${e.sources.map(e=>e[t]).join(", ")}`,o={enabled:!0,text:s,useHTML:!0,position:{x:5,y:-30}})}else o={enabled:!0,text:s,position:{align:"left",verticalAlign:"bottom",x:5,y:-10}};return{chart:{spacingBottom:l?50:30},accessibility:{point:{descriptionFormatter:Mn(e,t)}},title:{text:i?e.header[t]:void 0},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},credits:o,tooltip:{formatter:En(e,t)},yAxis:[ar]}},ar={plotLines:[{value:0,color:"#000",width:1}]},sr=(e,t)=>({enabled:e.visualizationSettings.showDataPoints,style:{color:"#000",fontSize:"1rem",fontWeight:"400"},formatter:In(t)}),or=(e,t)=>g({},ar,{tickPositioner:Bn(e.series.map(e=>e.series)),title:{text:Ln(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}}),lr=(e,t,n)=>g({},ir(e,t,n),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:Pn(e.columnNameGroups.length),style:{width:200}}}}),cr=(e,t,n)=>g({},lr(e,t,n),{series:tr(e,t,!0,null==n?void 0:n.accessibilityMode),legend:g({},hr,{enabled:!0,layout:"horizontal",reversed:!0,margin:30})}),ur=(e,t,n)=>g({},ir(e,t,n),{chart:{type:"column"},xAxis:Un(e,t)}),mr=(e,t,n)=>g({},ur(e,t,n),{series:nr(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:{softMin:0,softMax:0,title:{text:Ln(e.units,t)}}}),dr=(e,t,n)=>g({},ur(e,t,n),{series:nr(e,t,!0,null==n?void 0:n.accessibilityMode),legend:g({},hr,{enabled:!0,layout:"vertical"})}),hr={itemHiddenStyle:{color:"black"}},pr=(e,t,n)=>{var r,i;return g({},ir(e,t,n),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(i=null!=(r=e.visualizationSettings.showDataPoints)&&r,function(){var e;const t=i?` (${Math.round(null!=(e=this.percentage)?e:0)}%)`:"";return Vn(this.name,20)+t})}}},series:e.series.map(r=>({animation:!1,type:"pie",name:r.rowNameGroup.map(e=>e[t]).join(", "),data:r.series.map((r,i)=>g({y:r.value,name:e.columnNameGroups[i].map(e=>e[t]).join(", "),unit:Ln(e.units,t)},(null==n?void 0:n.accessibilityMode)&&Qn(i),{custom:{preliminary:r.preliminary,precision:r.precision}}))}))})},fr=(e,t,n)=>{const r=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),i=Math.max(...e.series.map(e=>Math.max(...e.series.map(e=>{var t;return null!=(t=e.value)?t:0}))));return g({},ir(e,t,n),{chart:{type:"bar"},xAxis:{categories:r,reversed:!1,labels:{style:{width:200}}},yAxis:g({},ar,{min:-Math.abs(i),max:Math.abs(i),title:{text:Ln(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},labels:{formatter:function(){return Math.abs(this.value).toLocaleString(t)}}}),legend:g({},hr,{enabled:!0,margin:30}),series:e.series.map((r,i)=>g({animation:!1,type:"bar",name:r.rowNameGroup.map(e=>e[t]).join(", ")},(null==n?void 0:n.accessibilityMode)&&Qn(i),{data:r.series.map((n,r)=>({y:0===i&&n.value?-n.value:n.value,name:e.columnNameGroups[r].map(e=>e[t]).join(", "),custom:{preliminary:n.preliminary,precision:n.precision}}))})),plotOptions:{series:{stacking:"normal",dataLabels:g({},sr(e,t))}},exporting:{enabled:!1}})},gr=(e,t)=>`\n ${e[1].rowNameGroup.map(e=>e[t]).join(", ")}: {point.x}<br/>\n ${e[0].rowNameGroup.map(e=>e[t]).join(", ")}: {point.y}\n `,vr=(e,t,n)=>{switch(t.visualizationSettings.visualizationType){case un.LineChart:return((e,t,n)=>{var r;const i=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0,a=null!=n&&n.accessibilityMode?{enabledThreshold:3}:{enabled:!1};return g({},ir(e,t,n),{chart:{type:"line"},tooltip:{formatter:Dn(e,t)},xAxis:g({},Un(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:g({},ar,{softMin:i,softMax:i,title:{text:Ln(e.units,t)}}),plotOptions:{line:{dataLabels:g({},sr(e,t)),marker:a},series:Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:g({},hr,{enabled:e.series.length>1,labelFormatter:jn()}),series:er(e,t),exporting:{enabled:!1}})})(t,e,n);case un.VerticalBarChart:return((e,t,n)=>g({},mr(e,t,n),{yAxis:g({},ar,{softMin:0,softMax:0,title:{text:Ln(e.units,t)}}),plotOptions:{series:g({},Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:g({},sr(e,t))})},exporting:{enabled:!1}}))(t,e,n);case un.HorizontalBarChart:return((e,t,n)=>g({},lr(e,t,n),{series:tr(e,t,!1,null==n?void 0:n.accessibilityMode),chart:{type:"bar",spacingBottom:60},yAxis:g({},or(e,t),{softMin:0,max:100}),legend:{enabled:!1},plotOptions:{series:{dataLabels:g({},sr(e,t))}}}))(t,e,n);case un.GroupVerticalBarChart:return((e,t,n)=>g({},mr(e,t,n),{plotOptions:{series:g({},Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:g({},sr(e,t))})},legend:g({},hr,{enabled:!0,labelFormatter:jn()})}))(t,e,n);case un.GroupHorizontalBarChart:return((e,t,n)=>g({},lr(e,t,n),{series:tr(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:g({},or(e,t),{softMin:0,softMax:0}),legend:g({},hr,{enabled:!0,layout:"vertical",margin:30}),plotOptions:{series:{dataLabels:g({},sr(e,t))}}}))(t,e,n);case un.StackedVerticalBarChart:return((e,t,n)=>g({},dr(e,t,n),{yAxis:{softMin:0,softMax:0,title:{text:Ln(e.units,t)}},plotOptions:{column:{stacking:"normal"},series:g({},Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:g({},sr(e,t))})}}))(t,e,n);case un.StackedHorizontalBarChart:return((e,t,n)=>g({},cr(e,t,n),{yAxis:{softMin:0,softMax:0,tickPositioner:Fn(e.series.map(e=>e.series)),title:{text:Ln(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:g({},sr(e,t))}}}))(t,e,n);case un.PercentVerticalBarChart:return((e,t,n)=>g({},dr(e,t,n),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent"},series:g({},Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:g({},sr(e,t))})}}))(t,e,n);case un.PercentHorizontalBarChart:return((e,t,n)=>g({},cr(e,t,n),{yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"percent"},series:{dataLabels:g({},sr(e,t))}}}))(t,e,n);case un.PieChart:return pr(t,e,n);case un.PyramidChart:return fr(t,e,n);case un.ScatterPlot:return((e,t,n)=>{var r;const i=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0;return g({},ir(e,t,n),{chart:{type:"scatter"},xAxis:{softMin:0,softMax:0,title:{text:e.series[1].rowNameGroup.map(e=>e[t]).join(", ")},gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,plotLines:[{value:0,color:"#000",width:1}]},yAxis:g({},ar,{softMin:i,softMax:i,title:{text:e.series[0].rowNameGroup.map(e=>e[t]).join(", ")}}),series:[{animation:!1,type:"scatter",data:e.series[0].series.map((t,n)=>{var r,i;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(i=e.series[0].series[n].value)?i:void 0,marker:{symbol:"circle"},custom:{preliminary:e.series[1].series[n].preliminary||e.series[0].series[n].preliminary,precision:Math.max(e.series[1].series[n].precision,e.series[0].series[n].precision)}}})}],tooltip:{headerFormat:"",pointFormat:gr(e.series,t),formatter:$n(e,t)},plotOptions:{scatter:{marker:{radius:5*(e.visualizationSettings.markerSize?.01*e.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}})})(t,e,n);default:throw new Error("Unsupported chart type")}},yr=(e,t,n,r)=>{if(0===e.length)return{};let i=e,a={};if(r){const{parsedValues:e,updatedArray:t}=br(i,r);if(i=t,a=g({},a,e),0===i.length)return a}if(n){const{parsedValues:e,updatedArray:t}=wr(i,n);if(i=t,a=g({},a,e),0===i.length)return a}return i.forEach(e=>{const n=t.findIndex(t=>t.code===e);n>-1&&(a[e]=t[n].type===mn.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),a},br=(e,t)=>{const n=Object.keys(t),r={},i=e.map(e=>n.findIndex(t=>t===e)>-1&&t[e].length>0?(r[e]=t[e],""):e).filter(e=>e.length>0);return{parsedValues:r,updatedArray:i}},wr=(e,t)=>{const n=Object.keys(t),r={},i=e.map(e=>{const i=n.findIndex(t=>t===e);return i>-1?(r[e]=t[n[i]],""):e}).filter(e=>e.length>0);return{parsedValues:r,updatedArray:i}},xr=(e,t)=>{var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},Sr=(e,t)=>{var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function kr(e,t,n){return Nr(Cr(e,e.series[t].series,n),t)}function Cr(e,t,n){const r=function(e,t){const n=[...Array(e.length).keys()];return n.sort((n,r)=>t(e[n],e[r])),n}(t,n),i=r.map(t=>e.columnNameGroups[t]),a=e.series.map(e=>function(e,t){return g({},e,{series:t.map(t=>e.series[t])})}(e,r));return g({},e,{columnNameGroups:i,series:a})}function Nr(e,t){const n=[];return n.push(e.series[t]),e.series.forEach((e,r)=>{r!==t&&n.push(e)}),g({},e,{series:n})}function Er(e,t){if(Object.keys(t).includes(e.code)){const n=e.values.filter(n=>t[e.code].includes(n.code));if(0===n.length)throw new Error("Provided selected value code can not be found from the metadata");return n}return e.values}function Mr(e,t){let n=[];for(const r of t){const t=e.find(e=>e.code===r);t&&n.push(t)}return n}class Ar{constructor(e,t){this.dataIndex=void 0,this.dataLength=void 0,this.responseObj=void 0,this.coordinates=void 0,this.lastIndices=void 0,this.indices=void 0,this.variableOrder=void 0,this.lastCoordinateIndex=void 0,this.reverseCumulativeProducts=void 0,this.selectedViewContentVariableIndex=void 0,this.selectedViewTimeVariableIndex=void 0,this.selectedViewMeta=void 0,this.rowLength=0,this.rowAmount=0,this.responseObj=e;const n=e.metaData,r=n.map(e=>e.values.length);this.selectedViewMeta=this.getSelectedView(e,t),this.coordinates=Array.from({length:this.selectedViewMeta.length},()=>[]),this.variableOrder=this.getVariableOrder(),this.initializeCoordinates(n),this.selectedViewContentVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===mn.Content),this.selectedViewTimeVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===mn.Time),this.indices=Array.from({length:n.length},()=>0),this.lastIndices=this.selectedViewMeta.map(e=>e.values.length-1),this.lastCoordinateIndex=this.coordinates.length-1,this.reverseCumulativeProducts=this.generateRCP(r),this.dataLength=this.selectedViewMeta.map(e=>e.values.length).reduce((e,t)=>e*t,1),this.dataIndex=0,this.setCurrentIndex()}initializeCoordinates(e){for(let n=0;n<this.selectedViewMeta.length;n++){var t;const r=this.variableOrder[n],i=this.selectedViewMeta[n].code,a=null==(t=e.find(e=>e.code===i))?void 0:t.values,s=this.selectedViewMeta.find(e=>e.code===i);this.coordinates[r]=s.values.map(e=>a.findIndex(t=>t===e))}}getViewSeries(){let e=0,t=[];const n=[];do{const r=this.createDataCell();t.push(r),e++,e>=this.rowLength&&(n.push({rowNameGroup:this.generateRowNameGroup(),series:t}),t=[],e=0)}while(this.next());return n}generateRowNameGroup(){return this.selectedViewMeta.slice(0,this.rowAmount).map((e,t)=>e.values[this.indices[this.variableOrder[t]]].name)}next(){for(let e=this.lastCoordinateIndex;e>=0;e--){const t=this.variableOrder[e];if(this.indices[t]<this.lastIndices[e])return this.indices[t]++,this.setCurrentIndex(),!0;this.indices[t]=0}return!1}createDataCell(){var e,t;const n=this.getCurrentTimeValue(),r={value:this.responseObj.data[this.dataIndex],precision:null!=(e=null==(t=this.selectedViewMeta[this.selectedViewContentVariableIndex].values[this.indices[this.variableOrder[this.selectedViewContentVariableIndex]]].contentComponent)?void 0:t.numberOfDecimals)?e:0,preliminary:!!n&&Object.values(n.name)[0].trim().endsWith("*")};return r.value||(r.missingCode=this.responseObj.missingDataInfo[this.dataIndex]),r}getSelectedView(e,t){const n=e.metaData.map(e=>g({},e,{values:Er(e,t)})),r=Mr(n.filter(t=>e.rowVariableCodes.includes(t.code)&&t.values.length>1),e.rowVariableCodes),i=Mr(n.filter(t=>e.columnVariableCodes.includes(t.code)&&t.values.length>1),e.columnVariableCodes),a=Mr(n.filter(t=>e.selectableVariableCodes.includes(t.code)),e.selectableVariableCodes),s=a.filter(e=>e.values.length>1&&!r.some(t=>t.code==e.code)&&!i.some(t=>t.code==e.code)),o=a.filter(e=>1==e.values.length),l=n.filter(e=>!r.some(t=>t.code==e.code)&&!i.some(t=>t.code==e.code)&&!a.some(t=>t.code==e.code)),c=[...s,...r,...i,...o,...l];return this.rowLength=xn(n.filter(t=>e.columnVariableCodes.includes(t.code)).map(e=>e.values)).length,this.rowAmount=r.length+s.length,c}getVariableOrder(){const e=this.responseObj.metaData.map(e=>e.code),t=this.selectedViewMeta.map(t=>e.indexOf(t.code));return t}generateRCP(e){const t=Array.from({length:e.length});let n=1;for(let r=e.length-1;r>=0;r--)t[r]=n,n*=e[r];return t}setCurrentIndex(){this.dataIndex=0;for(let e=0;e<=this.lastCoordinateIndex;e++){const t=this.variableOrder[e];this.dataIndex+=this.reverseCumulativeProducts[t]*this.coordinates[t][this.indices[t]]}}getCurrentTimeValue(){if(-1!=this.selectedViewTimeVariableIndex)return this.selectedViewMeta[this.selectedViewTimeVariableIndex].values[this.indices[this.variableOrder[this.selectedViewTimeVariableIndex]]]}}function Tr(e,t){var n,r,i;const a=function(e,t,n){const{metaData:r,selectableVariableCodes:i}=e,a=function(e,t){return e.filter(e=>t.includes(e.code))}(r,i),s=function(e){const t=e.find(e=>e.type===mn.Content);if(t)return t;throw new Error("Content variable is not defined")}(r),o=function(e,t){const n=new Ar(e,t).getViewSeries(),r=Mr(e.metaData.filter(t=>e.columnVariableCodes.includes(t.code)).filter(e=>e.values.length>1),e.columnVariableCodes).map(e=>Er(e,t));return{columnNameGroups:xn(r).map(e=>e.map(e=>e.name)),series:n}}(e,t),l=Ir(e.selectableVariableCodes.filter(t=>n[t]>1&&!e.rowVariableCodes.includes(t)&&!e.columnVariableCodes.includes(t)),r).concat(Ir(e.rowVariableCodes,e.metaData)),c=function(e,t){let n;n=e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>{var t;return null==(t=e.contentComponent)?void 0:t.lastUpdated}).filter(Sn):e.values.map(e=>{var t;return null==(t=e.contentComponent)?void 0:t.lastUpdated}).filter(Sn);const r=n.filter(e=>void 0!==e);if(0===r.length)return;if(1===r.length)return r[0];const i=r.map(e=>new Date(e)).reduce((e,t,n,r)=>t>r[e]?n:e,0);return r[i]}(s,t);return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:Vr(a,t,n),units:$r(s,t),sources:Dr(s,t,e=>{var t;return null!=(t=null==e?void 0:e.source)?t:vn.empty}),lastUpdated:c,columnNameGroups:o.columnNameGroups,series:o.series,rowVarNames:l,colVarNames:Ir(e.columnVariableCodes,e.metaData),selectableVarNames:Ir(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:Lr(e.columnVariableCodes,e.metaData)}}(e,t,function(e){const t={};return Object.entries(e).forEach(([e,n])=>t[e]=n.length),t}(t)),s=(null==(n=a.visualizationSettings)?void 0:n.visualizationType)===un.PercentHorizontalBarChart||(null==(r=a.visualizationSettings)?void 0:r.visualizationType)===un.PercentVerticalBarChart;switch(null==(i=e.visualizationSettings)?void 0:i.sorting){case null:case void 0:case"no_sorting":return a;case"reversed":return function(e){const t=[...e.series].reverse().map(e=>g({},e,{series:[...e.series].reverse(),rowNameGroup:[...e.rowNameGroup].reverse()}));return g({},e,{series:t,columnNameGroups:[...e.columnNameGroups].reverse()})}(a);case"sum":return function(e,t){const n=e.columnNameGroups.map((t,n)=>({value:e.series.map(e=>e.series[n]).reduce((e,t)=>{var n;return e+(null!=(n=t.value)?n:0)},0),precision:0,preliminary:!1}));return Cr(e,n,t)}(a,Sr);case"ascending":return kr(a,0,xr);case"descending":return kr(a,0,Sr);default:return s?(o=a,l=Pr(a),c=jr(e),Nr(Cr(o,l.series[c].series,Sr),c)):kr(a,jr(e),Sr)}var o,l,c}function Pr(e){const t=e.series.map(t=>g({},t,{series:t.series.map((t,n)=>{var r;const i=e.series.reduce((e,t)=>{var r;return e+(null!=(r=t.series[n].value)?r:0)},0),a=i&&0!==i?Math.round(100*(null!=(r=t.value)?r:0)/i*10)/10:null,s={value:a,precision:1,preliminary:t.preliminary};return null===a&&(s.missingCode=t.missingCode),s})}));return g({},e,{units:e.units.map(e=>{return{name:e.name,unit:(t=e.unit,Object.keys(t).reduce((e,t)=>(e[t]="%",e),{}))};var t}),series:t})}function Ir(e,t){return e.reduce((e,n)=>{var r;const i=null==(r=t.find(e=>e.code===n))?void 0:r.name;return i&&e.push(i),e},[])}function jr(e){const t=e.metaData.find(t=>t.code==e.rowVariableCodes[0]),n=null==t?void 0:t.values.findIndex(t=>{var n;return t.code===(null==(n=e.visualizationSettings)?void 0:n.sorting)});return!n||n<0?0:n}function Vr(e,t,n){const r=[];return e.forEach(e=>{var i,a;1==n[e.code]&&r.push(null!=(i=null==(a=e.values.find(n=>n.code===t[e.code][0]))?void 0:a.name)?i:{})}),r}function $r(e,t){const n=e.code in t?e.values.filter(n=>t[e.code].includes(n.code)):e.values;return n.reduce((e,t)=>(t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e),[])}function Dr(e,t,n){return e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>n(e.contentComponent)).filter(Sn):e.values.map(e=>n(e.contentComponent)).filter(Sn)}function Lr(e,t){var n;if(e.length>1||0===e.length)return Gn.Nominal;const r=null==(n=t.find(t=>t.code===e[0]))?void 0:n.type;switch(r){case mn.Time:return Gn.Time;case mn.Ordinal:return Gn.Ordinal;default:return Gn.Nominal}}const Or=(e,t)=>({accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1,allowHTML:!1,chartOptions:{chart:{style:{fontFamily:t||'"Barlow Semi Condensed", Verdana, sans-serif'}}}},lang:{accessibility:{thousandsSep:vn.thousandsSepAccessibility[e],credits:vn.credits[e],chartTypes:{barMultiple:vn.barMultiple[e],barSingle:vn.barSingle[e],columnMultiple:vn.columnMultiple[e],columnSingle:vn.columnSingle[e],lineSingle:vn.lineSingle[e],lineMultiple:vn.lineMultiple[e],pieSingle:vn.pieSingle[e],scatterSingle:vn.scatterSingle[e],scatterMultiple:vn.scatterMultiple[e],defaultSingle:vn.defaultSingle[e],defaultMultiple:vn.defaultMultiple[e]},defaultChartTitle:vn.defaultChartTitle[e],exporting:{chartMenuLabel:vn.chartMenuLabel[e],menuButtonLabel:vn.menuButtonLabel[e]},legend:{legendItem:vn.legendItem[e],legendLabel:vn.legendLabel[e],legendLabelNoTitle:vn.legendLabelNoTitle[e]},axis:{rangeCategories:vn.rangeCategories[e],rangeFromTo:vn.rangeFromTo[e],timeRangeDays:vn.timeRangeDays[e],timeRangeHours:vn.timeRangeHours[e],timeRangeMinutes:vn.timeRangeMinutes[e],timeRangeSeconds:vn.timeRangeSeconds[e],xAxisDescriptionPlural:vn.xAxisDescriptionPlural[e],xAxisDescriptionSingular:vn.xAxisDescriptionSingular[e],yAxisDescriptionPlural:vn.yAxisDescriptionPlural[e],yAxisDescriptionSingular:vn.yAxisDescriptionSingular[e]},series:{summary:{bar:vn.seriesSummaryBar[e],barCombination:vn.seriesSummaryBarCombination[e],column:vn.seriesSummaryColumn[e],columnCombination:vn.seriesSummaryColumnCombination[e],default:vn.seriesSummaryDefault[e],defaultCombination:vn.seriesSummaryDefaultCombination[e],line:vn.seriesSummaryLine[e],lineCombination:vn.seriesSummaryLineCombination[e],pie:vn.seriesSummaryPie[e],pieCombination:vn.seriesSummaryPieCombination[e],scatter:vn.seriesSummaryScatter[e],scatterCombination:vn.seriesSummaryScatterCombination[e]},xAxisDescription:vn.xAxisDescription[e],yAxisDescription:vn.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:vn.endOfChartMarker[e]},chartContainerLabel:vn.chartContainerLabel[e]},thousandsSep:vn.thousandsSep[e],decimalPoint:vn.decimalPoint[e],contextButtonTitle:vn.contextButtonTitle[e],downloadCSV:vn.downloadCSV[e],downloadPNG:vn.downloadPNG[e],downloadSVG:vn.downloadSVG[e],months:yn.months[e],shortMonths:yn.shortMonths[e],weekdays:yn.weekdays[e],loading:vn.loading[e],numericSymbols:null},colors:Kn,chart:{style:{fontFamily:null!=t?t:'"Barlow Semi Condensed", Verdana, sans-serif'},spacingLeft:20,height:"56.25%"},tooltip:{enabled:!0,headerFormat:"{point.key}<br/>",pointFormat:"{point.y}",backgroundColor:"#ffffff",outside:!0,style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},title:{useHTML:!0,style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left",maxWidth:"calc(100% - 4rem)",whiteSpace:"normal"},align:"left",margin:45,minScale:1},subtitle:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"400"},align:"left"},credits:{position:{align:"left",x:5},style:{color:"#000",fontSize:"1rem",fontWeight:"400",textAlign:"left",cursor:"default"},href:""},yAxis:{title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400",left:0,textAlign:"left",textOverflow:"ellipsis"},align:"high",rotation:0,textAlign:"left",offset:0,y:-15,x:55,reserveSpace:!1},lineColor:"#000",lineWidth:1,gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},autoRotation:[0],allowOverlap:!1,formatter:An(e)}},xAxis:{labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},allowOverlap:!1,autoRotation:[0]},title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},lineColor:"#000",lineWidth:1,crosshair:!0},legend:{enabled:!1,itemStyle:{fontSize:"1rem",fontWeight:"400",color:"#000"},align:"center"},plotOptions:{pie:{dataLabels:{enabled:!0,useHTML:!0,connectorShape:"crookedLine",connectorColor:"#000000",style:{fontSize:"1rem",fontWeight:"400",color:"#000",textOverflow:"crop"}}},column:{groupPadding:.2,pointPadding:.01,borderRadius:0,borderWidth:0},bar:{groupPadding:.2,pointPadding:.01,borderRadius:0,borderWidth:0},series:{animation:!1}}}),zr=(e,t,n,r=null,i)=>{(()=>{if("undefined"!=typeof window)try{require("highcharts/modules/pattern-fill.js"),require("highcharts/modules/accessibility.js"),require("highcharts/modules/exporting.js"),require("highcharts/modules/offline-exporting.js")}catch(e){console.error("Error loading Highcharts modules:",e)}})();const a=Tn(n);u.setOptions(Or(a,null==i?void 0:i.fontFamily));const s=Tr(t,yr(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),o=vr(a,s,i);return u.chart(e,o)};function Rr(e,t,n,r,i){const a=document.getElementById(r);if(!a)throw new Error("No container with matching id found in the DOM tree");try{const r=function(e,t){var n,r;const i=null!=(n=e.columnNameGroups[0].length)?n:0,a=null!=(r=e.series[0].rowNameGroup.length)?r:0,s=Object.assign(document.createElement("table"),{tabIndex:0});if(i>0){const n=function(e,t){const n=Br(e),r=[];for(let i=0;i<e[0].length;i++){const a=document.createElement("tr");for(let r=0;r<e.length;r+=n[i]){const s=document.createElement("th");s.setAttribute("colSpan",n[i].toString()),s.setAttribute("scope","col"),s.textContent=e[r][i][t],a.append(s)}r.push(a)}return r}(e.columnNameGroups,t);if(a>0){const e=document.createElement("td");e.setAttribute("colSpan",a.toString()),e.setAttribute("rowSpan",i.toString()),n[0].prepend(e)}const r=document.createElement("thead");r.append(...n),s.append(r)}if(e.series.length>0){const n=document.createElement("tbody");n.append(...function(e,t){const n=[],r=qr(e);for(let i=0;i<e.length;i++){const a=document.createElement("tr");for(let n=0;n<e[i].rowNameGroup.length;n++)if(i%r[n]===0){const s=document.createElement("th");s.setAttribute("rowSpan",r[n].toString()),s.setAttribute("scope","row"),s.textContent=e[i].rowNameGroup[n][t],a.append(s)}for(const n of e[i].series){const e=document.createElement("td");e.textContent=null===n.value?Nn(n.missingCode,t,!0):Cn(n.value,n.precision,t,!0),a.append(e)}n.push(a)}return n}(e.series,t)),s.append(n)}return s}(e,t);if(n.showTitle){const n=document.createElement("caption");if(n.textContent=e.header[t],e.subheaderValues.length>0){const r=e.subheaderValues.map(e=>e[t]).join(" | ");n.append(document.createElement("br"),r)}n.className="tableChart-caption",r.prepend(n)}if(a.append(r),n.showUnits){const n=document.createElement("p"),r=Ln(e.units,t);n.append(`${vn.unit[t]}: ${r}`),a.append(n)}if(i){const e=document.createElement("p");e.append(i),a.append(e)}if(n.showLastUpdated&&e.lastUpdated){const n=document.createElement("p"),r=Rn(e.lastUpdated,t);r&&(n.append(r),a.append(n))}if(n.showSources){const n=document.createElement("p"),r=`${vn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`;n.append(r),a.append(n)}}catch(e){console.error(e),a.replaceChildren();const n=document.createElement("h1");n.append(vn.graphCreationError[t]),a.append(n)}}const Gr=(e,t)=>Object.keys(e).every(n=>e[n]==t[n]),qr=e=>{if(!e[0].rowNameGroup||0===e[0].rowNameGroup.length)return[];const t=Array(e[0].rowNameGroup.length).fill(1);for(let n=0;n<e[0].rowNameGroup.length;n++)for(let r=0;r<e.length-1&&Gr(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},Br=e=>{if(!e||0===e.length)return[];const t=Array(e[0].length).fill(1);for(let n=0;n<e[0].length;n++)for(let r=0;r<e.length-1&&Gr(e[r][n],e[r+1][n]);r++)t[n]++;return t},Fr=e=>{const t=e?e.split(".")[0]:"",n=new Date;return`${t}_${n.getFullYear()}${(n.getMonth()+1).toString().padStart(2,"0")}${n.getDate().toString().padStart(2,"0")}_${n.getHours().toString().padStart(2,"0")}${n.getMinutes().toString().padStart(2,"0")}${n.getSeconds().toString().padStart(2,"0")}`},_r=(e,t)=>{var n,r,i,a,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===un.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===un.PercentVerticalBarChart)&&(e=Pr(e));const u=null!=(i=null==(a=e.columnNameGroups[0])?void 0:a.length)?i:0,m=null!=(s=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?s:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m,h=","==vn.decimalPoint[t]?";":",",p="\n";let f=Ur([`"${e.header[t]}"`],0,d,h,p);e.subheaderValues.length>0&&(f+=Ur([`"${e.subheaderValues.map(e=>e[t]).join(" | ")}"`],0,d,h,p));for(let n=0;n<u;n++)f+=Ur(e.columnNameGroups.map(e=>`"${e[n][t]}"`),m,d,h,p);return e.series.forEach(e=>{let n=[];e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(e=>`"${e[t]}"`)),n=n.concat(e.series.map(e=>null===e.value?Nn(e.missingCode,t):Cn(e.value,e.precision,t))),f+=Ur(n,0,d,h,p)}),f+=Ur([`"${vn.unit[t]}: ${Ln(e.units,t)}"`],0,d,h,p),f+=Ur([`"${vn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}"`],0,d,h),f},Hr=(e,t)=>({onClick:()=>{const n=_r(e,t),r=new Blob(["\ufeff",n],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r),a=document.createElement("a");a.setAttribute("href",i),a.setAttribute("download",Fr(e.tableReferenceName)+".csv"),document.body.appendChild(a),a.click()},text:vn.downloadCSV[t]});function Ur(e,t,n,r,i=""){let a="";for(let i=0;i<n;i++)i>=t&&i<t+e.length&&(a+=e[i-t]),i<n-1&&(a+=r);return a+i}const Wr=['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'];function Yr(e){const t=Math.floor(e/26),n=String.fromCharCode(97+e%26).toUpperCase();return 0===t?n:Yr(t-1)+n}const Zr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<workbook ${['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'].join(" ")}>\n <workbookPr/>\n <sheets>\n <sheet state="visible" name="Sheet1" sheetId="1" r:id="rId3"/>\n </sheets>\n <definedNames/>\n <calcPr/>\n</workbook>`;function Xr(e,t,n){const r=Array(n);for(let i=0;i<n;i++)r[i]=i>=t&&i<t+e.length?e[i-t]:null;return r}const Kr=(e,t)=>({onClick:async()=>{const n=await Jr(e,t),r=URL.createObjectURL(n),i=document.createElement("a");i.setAttribute("href",r),i.setAttribute("download",Fr(e.tableReferenceName)+".xlsx"),document.body.appendChild(i),i.click()},text:vn.downloadXLSX[t]});async function Jr(e,t){const n=((e,t)=>{var n,r,i,a,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===un.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===un.PercentVerticalBarChart)&&(e=Pr(e));const u=null!=(i=null==(a=e.columnNameGroups[0])?void 0:a.length)?i:0,m=null!=(s=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?s:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m,h=[Xr([e.header[t]],0,d)];e.subheaderValues.length>0&&h.push(Xr([e.subheaderValues.map(e=>e[t]).join(" | ")],0,d));for(let n=0;n<u;n++)h.push(Xr(e.columnNameGroups.map(e=>e[n][t]),m,d));return e.series.forEach(e=>{let n=[];e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(e=>e[t])),n=n.concat(e.series.map(e=>null===e.value?Nn(e.missingCode,t):Number(e.value.toFixed(e.precision)))),h.push(Xr(n,0,d))}),h.push(Xr([`${vn.unit[t]}: ${Ln(e.units,t)}`],0,d)),h.push(Xr([`${vn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`],0,d)),h})(e,t),r=(e=>{const t=function(e){const t=[];for(let n=1;n<=e;n++)t.push(`<col min="${n}" max="${n}" width="20"/>`);return t?`<cols>${t}</cols>`:""}(Math.max(...e.map(e=>e.length))),n=function(e){return e.map((e,t)=>{const n=e.map((e,n)=>function(e,t,n){return null===e?null:"string"==typeof e?`<c r="${Yr(t)}${n}" t="inlineStr"><is><t>${function(e){const t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,e=>t[e])}(e)}</t></is></c>`:`<c r="$${Yr(t)}${n}"><v>${e}</v></c>`}(e,n,t+1)).filter(e=>null!==e).join("");return`<row r="${t+1}">${n}</row>`}).join("")}(e);return((e,t)=>`<?xml version="1.0" ?>\n<worksheet ${Wr.join(" ")}>\n ${e}\n <sheetData>\n ${t}\n </sheetData>\n</worksheet>`)(t,n)})(n),i={xl:{"worksheets/sheet1.xml":h(r),"workbook.xml":h(Zr),"_rels/workbook.xml.rels":h('<?xml version="1.0" ?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship\n Id="rId3"\n Target="worksheets/sheet1.xml" \n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"\n />\n</Relationships>')},"_rels/.rels":h('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships\nxmlns="http://schemas.openxmlformats.org/package/2006/relationships"\n>\n <Relationship\n Id="rId1"\n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"\n Target="xl/workbook.xml"\n />\n</Relationships>'),"[Content_Types].xml":h('<?xml version="1.0" ?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default ContentType="application/xml" Extension="xml"/>\n <Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/>\n</Types>')};return new Promise((e,t)=>{p(i,(n,r)=>{if(n)return t(n);const i=new Blob([r.buffer instanceof ArrayBuffer?r.buffer:new Uint8Array(r)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return e(i)})})}const Qr=["Bars","Times","Download","ExternalLink","Copy"],ei=({icon:t,inheritColor:n=!1})=>{switch(t){case"Bars":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"39.91mm",height:"29.92mm",viewBox:"0 0 113.12 84.82"},e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.51,14.13c-16.33,0-32.67.01-49,0-5.37,0-8.89-4.83-6.99-9.59C1.63,1.76,3.77.26,6.76.01c.22-.02.44,0,.66,0,32.74,0,65.49,0,98.23,0,4.3,0,7.45,2.99,7.47,7.01.02,4.11-3.15,7.1-7.6,7.11-16.33.01-32.67,0-49,0Z"})),e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.55,49.47c-16.41,0-32.82.01-49.22,0-3.78,0-6.77-2.56-7.26-6.09-.49-3.53,1.78-6.9,5.35-7.81.77-.2,1.6-.21,2.4-.21,32.52,0,65.04-.01,97.57,0,4.51,0,7.69,2.89,7.74,6.97.04,4.19-3.16,7.14-7.79,7.15-16.26,0-32.52,0-48.78,0Z"})),e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.43,84.82c-16.33,0-32.67,0-49,0-3.68,0-6.45-2.17-7.25-5.56-.73-3.09.92-6.54,3.92-7.84,1.04-.45,2.27-.69,3.41-.69,32.74-.04,65.49-.03,98.23-.02,4.27,0,7.41,3.06,7.39,7.09-.02,4.02-3.17,7.02-7.47,7.02-16.41.02-32.82,0-49.22,0Z"})));case"Times":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.44 76.44"},e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m0,38.09C.02,17.02,17.22-.04,38.39,0c21.08.04,38.09,17.21,38.05,38.42-.04,21-17.21,38.04-38.31,38.01C17.04,76.41-.02,59.26,0,38.09ZM38.25,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m38.4,34c2.9-2.94,5.58-5.67,8.27-8.39.93-.94,2.13-1.38,3.25-.73.8.47,1.7,1.46,1.78,2.29.09.92-.48,2.12-1.14,2.85-2.18,2.38-4.54,4.6-6.83,6.89-.35.35-.68.71-1.07,1.12,2.67,2.68,5.35,5.26,7.88,7.99.67.72,1.28,1.95,1.16,2.84-.12.88-1.05,1.9-1.89,2.37-1.03.57-2.22.16-3.12-.75-2.31-2.33-4.65-4.63-6.96-6.97-.38-.39-.66-.87-1.36-1.8-.71.95-1.11,1.64-1.65,2.19-2.12,2.17-4.27,4.32-6.44,6.44-1.41,1.38-3.16,1.46-4.38.28-1.26-1.22-1.2-3.02.24-4.48,2.27-2.31,4.56-4.58,6.87-6.85.38-.38.88-.64,1.42-1.03-2.89-2.89-5.5-5.47-8.07-8.1-.53-.55-1.05-1.24-1.24-1.96-.35-1.32.14-2.48,1.38-3.16,1.28-.71,2.53-.5,3.56.5,2.32,2.26,4.59,4.55,6.88,6.84.46.46.86.96,1.47,1.64Z"})));case"Download":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"33.64mm",height:"33.64mm",viewBox:"0 0 95.35 95.37"},e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m41.74,51.99c0-1.25,0-1.92,0-2.59,0-14.4,0-28.79,0-43.19,0-3.27,2.24-5.84,5.28-6.17,3.01-.33,5.8,1.65,6.48,4.66.16.71.14,1.48.14,2.22,0,14.15,0,28.29,0,42.44v2.34c.53-.42.91-.67,1.23-.98,3.12-3.11,6.23-6.23,9.35-9.34,2.74-2.72,6.26-2.87,8.75-.4,2.49,2.46,2.39,6.06-.3,8.75-6.79,6.81-13.59,13.61-20.4,20.4-2.92,2.91-6.25,2.92-9.15.03-6.81-6.79-13.61-13.59-20.4-20.4-2.71-2.72-2.84-6.26-.35-8.75,2.48-2.49,6.03-2.36,8.75.34,3.42,3.4,6.82,6.83,10.61,10.64Z"})),e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m47.67,95.37c-13.83,0-27.66,0-41.49,0-3.18,0-5.7-2.16-6.12-5.13-.42-2.98,1.5-5.82,4.51-6.59.65-.17,1.35-.18,2.02-.18,27.41,0,54.83,0,82.24,0,3.8,0,6.48,2.43,6.52,5.88.04,3.53-2.66,6.02-6.56,6.03-13.71,0-27.41,0-41.12,0Z"})));case"ExternalLink":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"88.84mm",height:"79.62mm",viewBox:"0 0 251.84 225.69"},e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m125.89,225.68c-22.84,0-45.67.03-68.51,0C23.18,225.63.03,202.4.01,168.14,0,131.14,0,94.13.01,57.13.04,23.53,23.35.14,56.85.1c23.67-.03,21.34.02,45.01-.03,4.75,0,8.96,1.04,11.87,5.09,2.64,3.67,3.08,7.7,1.25,11.83-2.01,4.53-5.59,7-10.57,7.06-9,.11-12,.07-21,.07-15.84,0-11.67-.05-27.5.02-18.82.08-31.81,12.98-31.84,31.74-.06,38-.06,76.01,0,114.01.03,18.74,13.04,31.7,31.86,31.72,46.67.05,93.34.06,140.01,0,18.79-.02,31.71-12.99,31.79-31.8.07-17,0-14,.03-31.01.02-8.3,4.75-13.75,11.83-13.81,7.07-.06,12.12,5.48,12.16,13.61.07,17.5.18,15.01-.02,32.51-.34,30.71-23.87,54.02-54.81,54.56h-71.01l-.02.02Z"})),e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m207.19,24.08c-6.95,0-23.9.04-30.85,0-8.12-.06-13.27-4.55-13.44-11.6-.17-7.19,5.18-12.33,13.32-12.38,17.33-.11,44.67-.12,62,0,8.48.06,13.45,4.99,13.5,13.37.12,16.83.12,43.67,0,60.5-.06,7.69-5.4,13.04-12.34,12.87-6.83-.17-11.53-5.35-11.61-12.97-.08-7.63-.02-25.26-.02-34.12-2.09,1.8-3.42,2.88-4.68,4.03-26.76,24.57-53.52,49.15-80.28,73.72-1.6,1.47-3.13,3-4.82,4.36-5.57,4.47-12.54,3.94-16.98-1.2-4.31-4.98-4.06-11.78,1.06-16.6,10.92-10.28,22.03-20.36,33.07-30.51,16.56-15.23,33.13-30.45,49.72-45.65.97-.89,2.15-1.56,3.23-2.33-.29-.5-.58-.99-.87-1.49h0Z"})));case"Copy":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"31.19mm",height:"31.21mm",viewBox:"0 0 88.41 88.48"},e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m20.67,54.61c0-7.55,0-15.1,0-22.65,0-6.79,4.38-11.2,11.13-11.21,15.16-.01,30.33-.01,45.49,0,6.75,0,11.12,4.42,11.12,11.22,0,15.1,0,30.2,0,45.3,0,6.79-4.39,11.21-11.13,11.21-15.16,0-30.33,0-45.49,0-6.66,0-11.1-4.41-11.12-11.03-.02-7.61,0-15.22,0-22.83Zm60.78.1c0-7.67,0-15.34,0-23.01,0-2.72-1.23-3.98-3.89-3.99-15.34,0-30.68,0-46.02,0-2.67,0-3.89,1.26-3.89,3.98,0,15.28,0,30.55,0,45.83,0,2.79,1.23,3.99,4.07,3.99,15.22,0,30.44,0,45.65,0,2.91,0,4.08-1.21,4.08-4.17,0-7.55,0-15.09,0-22.64Z"})),e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m13.66,60.85v6.64C6.35,69.22.02,64.29.01,56.9c-.02-15.34-.02-30.69,0-46.03C.02,4.48,4.36.11,10.73.1c15.1-.02,30.21.19,45.3-.1,6.89-.13,12.81,4.89,11.49,13.58h-6.74c0-.95.03-1.91,0-2.86-.08-2.34-1.35-3.69-3.66-3.69-15.53-.02-31.06-.02-46.59,0-2.36,0-3.58,1.27-3.58,3.7-.02,15.4-.02,30.81,0,46.21,0,2.65,1.32,3.87,4.01,3.91.85.01,1.7,0,2.71,0Z"})));default:return e.createElement("span",null,"No icon for ",t,e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.45 76.44"},e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m0,38.1C.02,17.02,17.22-.04,38.4,0c21.08.04,38.1,17.21,38.06,38.43-.04,21-17.21,38.05-38.32,38.02C17.04,76.42-.02,59.27,0,38.1ZM38.26,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m34.1,43.95c-.12-.12-.18-.26-.18-.43v-1.62c0-1.68.43-3.04,1.29-4.07.86-1.03,2.1-2.11,3.71-3.26,1.31-.91,2.29-1.72,2.93-2.42s.96-1.57.96-2.58c0-1.08-.4-1.95-1.21-2.6-.81-.66-1.87-.99-3.18-.99-1.42,0-2.55.35-3.41,1.06-.86.71-1.29,1.62-1.29,2.73v.81c0,.37-.2.56-.61.56l-5.91-.25c-.17,0-.31-.06-.43-.18-.12-.12-.18-.26-.18-.43v-.5c0-2.02.51-3.81,1.52-5.38,1.01-1.57,2.42-2.78,4.22-3.64,1.8-.86,3.88-1.29,6.24-1.29s4.3.41,6.04,1.24c1.73.83,3.07,1.98,4.02,3.46.94,1.48,1.41,3.2,1.41,5.15,0,1.48-.26,2.75-.78,3.81-.52,1.06-1.15,1.93-1.89,2.6-.74.67-1.68,1.42-2.83,2.22-1.21.84-2.11,1.57-2.68,2.17s-.86,1.35-.86,2.22v1.16c0,.17-.06.31-.18.43-.12.12-.26.18-.43.18h-5.86c-.17,0-.31-.06-.43-.18Zm.3,10.36c-.76-.76-1.14-1.71-1.14-2.85s.37-2.09,1.11-2.83,1.7-1.11,2.88-1.11,2.13.36,2.85,1.09c.72.72,1.09,1.68,1.09,2.85s-.37,2.1-1.11,2.85c-.74.76-1.68,1.14-2.83,1.14s-2.1-.38-2.85-1.14Z"}))))}};let ti,ni,ri,ii,ai,si,oi,li=e=>e;const ci=ln(a((t,n)=>e.createElement("button",g({ref:n},t))))(ti||(ti=li`
|
|
1
|
+
import e,{useRef as t,useContext as n,useDebugValue as r,createElement as i,forwardRef as a,useId as s,useEffect as o,useMemo as l,Component as c}from"react";import*as u from"highcharts";import m from"highcharts";import d from"decimal.js";import{strToU8 as h,zip as p}from"fflate";import{HighchartsReact as f}from"highcharts-react-official";import"highcharts/modules/accessibility.js";import"highcharts/modules/exporting.js";import"highcharts/modules/offline-exporting.js";import"highcharts/modules/pattern-fill.js";function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(null,arguments)}var v=function(){return v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},v.apply(this,arguments)};function y(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function b(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}"function"==typeof SuppressedError&&SuppressedError;var w=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,x=/* #__PURE__ */b(function(e){return w.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),S="-ms-",k="-moz-",C="-webkit-",N="comm",E="rule",M="decl",A="@keyframes",T=Math.abs,P=String.fromCharCode,I=Object.assign;function j(e){return e.trim()}function V(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,n){return e.replace(t,n)}function D(e,t,n){return e.indexOf(t,n)}function L(e,t){return 0|e.charCodeAt(t)}function O(e,t,n){return e.slice(t,n)}function z(e){return e.length}function R(e){return e.length}function G(e,t){return t.push(e),e}function q(e,t){return e.filter(function(e){return!V(e,t)})}var B=1,F=1,_=0,H=0,U=0,W="";function Y(e,t,n,r,i,a,s,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:B,column:F,length:s,return:"",siblings:o}}function Z(e,t){return I(Y("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function X(e){for(;e.root;)e=Z(e.root,{children:[e]});G(e,e.siblings)}function K(){return U=H>0?L(W,--H):0,F--,10===U&&(F=1,B--),U}function J(){return U=H<_?L(W,H++):0,F++,10===U&&(F=1,B++),U}function Q(){return L(W,H)}function ee(){return H}function te(e,t){return O(W,e,t)}function ne(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function re(e){return j(te(H-1,se(91===e?e+2:40===e?e+1:e)))}function ie(e){for(;(U=Q())&&U<33;)J();return ne(e)>2||ne(U)>3?"":" "}function ae(e,t){for(;--t&&J()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return te(e,ee()+(t<6&&32==Q()&&32==J()))}function se(e){for(;J();)switch(U){case e:return H;case 34:case 39:34!==e&&39!==e&&se(U);break;case 40:41===e&&se(e);break;case 92:J()}return H}function oe(e,t){for(;J()&&e+U!==57&&(e+U!==84||47!==Q()););return"/*"+te(t,H-1)+"*"+P(47===e?e:J())}function le(e){for(;!ne(Q());)J();return te(e,H)}function ce(e){return function(e){return W="",e}(ue("",null,null,null,[""],e=function(e){return B=F=1,_=z(W=e),H=0,[]}(e),0,[0],e))}function ue(e,t,n,r,i,a,s,o,l){for(var c=0,u=0,m=s,d=0,h=0,p=0,f=1,g=1,v=1,y=0,b="",w=i,x=a,S=r,k=b;g;)switch(p=y,y=J()){case 40:if(108!=p&&58==L(k,m-1)){-1!=D(k+=$(re(y),"&","&\f"),"&\f",T(c?o[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=re(y);break;case 9:case 10:case 13:case 32:k+=ie(p);break;case 92:k+=ae(ee()-1,7);continue;case 47:switch(Q()){case 42:case 47:G(de(oe(J(),ee()),t,n,l),l);break;default:k+="/"}break;case 123*f:o[c++]=z(k)*v;case 125*f:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=$(k,/\f/g,"")),h>0&&z(k)-m&&G(h>32?he(k+";",r,n,m-1,l):he($(k," ","")+";",r,n,m-2,l),l);break;case 59:k+=";";default:if(G(S=me(k,t,n,c,u,i,o,b,w=[],x=[],m,a),a),123===y)if(0===u)ue(k,t,S,S,w,a,m,o,x);else switch(99===d&&110===L(k,3)?100:d){case 100:case 108:case 109:case 115:ue(e,S,S,r&&G(me(e,S,S,0,0,i,o,b,i,w=[],m,x),x),i,x,m,o,r?w:x);break;default:ue(k,S,S,S,[""],x,0,o,x)}}c=u=h=0,f=v=1,b=k="",m=s;break;case 58:m=1+z(k),h=p;default:if(f<1)if(123==y)--f;else if(125==y&&0==f++&&125==K())continue;switch(k+=P(y),y*f){case 38:v=u>0?1:(k+="\f",-1);break;case 44:o[c++]=(z(k)-1)*v,v=1;break;case 64:45===Q()&&(k+=re(J())),d=Q(),u=m=z(b=k+=le(ee())),y++;break;case 45:45===p&&2==z(k)&&(f=0)}}return a}function me(e,t,n,r,i,a,s,o,l,c,u,m){for(var d=i-1,h=0===i?a:[""],p=R(h),f=0,g=0,v=0;f<r;++f)for(var y=0,b=O(e,d+1,d=T(g=s[f])),w=e;y<p;++y)(w=j(g>0?h[y]+" "+b:$(b,/&\f/g,h[y])))&&(l[v++]=w);return Y(e,t,n,0===i?E:o,l,c,u,m)}function de(e,t,n,r){return Y(e,t,n,N,P(U),O(e,2,-2),0,r)}function he(e,t,n,r,i){return Y(e,t,n,M,O(e,0,r),O(e,r+1,-1),r,i)}function pe(e,t,n){switch(function(e,t){return 45^L(e,0)?(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}(e,t)){case 5103:return C+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return C+e+e;case 4789:return k+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C+e+k+e+S+e+e;case 5936:switch(L(e,t+11)){case 114:return C+e+S+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return C+e+S+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return C+e+S+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return C+e+S+e+e;case 6165:return C+e+S+"flex-"+e+e;case 5187:return C+e+$(e,/(\w+).+(:[^]+)/,C+"box-$1$2"+S+"flex-$1$2")+e;case 5443:return C+e+S+"flex-item-"+$(e,/flex-|-self/g,"")+(V(e,/flex-|baseline/)?"":S+"grid-row-"+$(e,/flex-|-self/g,""))+e;case 4675:return C+e+S+"flex-line-pack"+$(e,/align-content|flex-|-self/g,"")+e;case 5548:return C+e+S+$(e,"shrink","negative")+e;case 5292:return C+e+S+$(e,"basis","preferred-size")+e;case 6060:return C+"box-"+$(e,"-grow","")+C+e+S+$(e,"grow","positive")+e;case 4554:return C+$(e,/([^-])(transform)/g,"$1"+C+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+S+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+e+e;case 4200:if(!V(e,/flex-|baseline/))return S+"grid-column-align"+O(e,t)+e;break;case 2592:case 3360:return S+$(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,V(e.props,/grid-\w+-end/)})?~D(e+(n=n[t].value),"span",0)?e:S+$(e,"-start","")+e+S+"grid-row-span:"+(~D(n,"span",0)?V(n,/\d+/):+V(n,/\d+/)-+V(e,/\d+/))+";":S+$(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return V(e.props,/grid-\w+-start/)})?e:S+$($(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,C+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(z(e)-1-t>6)switch(L(e,t+1)){case 109:if(45!==L(e,t+4))break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+k+(108==L(e,t+3)?"$3":"$2-$3"))+e;case 115:return~D(e,"stretch",0)?pe($(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return $(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,s,o){return S+n+":"+r+o+(i?S+n+"-span:"+(a?s:+s-+r)+o:"")+e});case 4949:if(121===L(e,t+6))return $(e,":",":"+C)+e;break;case 6444:switch(L(e,45===L(e,14)?18:11)){case 120:return $(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+C+(45===L(e,14)?"inline-":"")+"box$3$1"+C+"$2$3$1"+S+"$2box$3")+e;case 100:return $(e,":",":"+S)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return $(e,"scroll-","scroll-snap-")+e}return e}function fe(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ge(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case M:return e.return=e.return||e.value;case N:return"";case A:return e.return=e.value+"{"+fe(e.children,r)+"}";case E:if(!z(e.value=e.props.join(",")))return""}return z(n=fe(e.children,r))?e.return=e.value+"{"+n+"}":""}function ve(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case M:return void(e.return=pe(e.value,e.length,n));case A:return fe([Z(e,{value:$(e.value,"@","@"+C)})],r);case E:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(V(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":X(Z(e,{props:[$(t,/:(read-\w+)/,":-moz-$1")]})),X(Z(e,{props:[t]})),I(e,{props:q(n,r)});break;case"::placeholder":X(Z(e,{props:[$(t,/:(plac\w+)/,":"+C+"input-$1")]})),X(Z(e,{props:[$(t,/:(plac\w+)/,":-moz-$1")]})),X(Z(e,{props:[$(t,/:(plac\w+)/,S+"input-$1")]})),X(Z(e,{props:[t]})),I(e,{props:q(n,r)})}return""})}}var ye={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},be="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",we="active",xe="data-styled-version",Se="6.1.19",ke="/*!sc*/\n",Ce="undefined"!=typeof window&&"undefined"!=typeof document,Ne=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),Ee={},Me=/invalid hook call/i,Ae=new Set,Te=function(e,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",i="The component ".concat(e).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",a=console.error;try{var s=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Me.test(e)?(s=!1,Ae.delete(i)):a.apply(void 0,y([e],t,!1))},t(),s&&!Ae.has(i)&&(console.warn(i),Ae.add(i))}catch(e){Me.test(e.message)&&Ae.delete(i)}finally{console.error=a}}},Pe=Object.freeze([]),Ie=Object.freeze({});function je(e,t,n){return void 0===n&&(n=Ie),e.theme!==n.theme&&e.theme||t||n.theme}var Ve=new Set(["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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","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","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),$e=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function Le(e){return e.replace($e,"-").replace(De,"")}var Oe=/(a)(d)/gi,ze=function(e){return String.fromCharCode(e+(e>25?39:97))};function Re(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ze(t%52)+n;return(ze(t%52)+n).replace(Oe,"$1-$2")}var Ge,qe=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Be=function(e){return qe(5381,e)};function Fe(e){return Re(Be(e)>>>0)}function _e(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function He(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Ue="function"==typeof Symbol&&Symbol.for,We=Ue?Symbol.for("react.memo"):60115,Ye=Ue?Symbol.for("react.forward_ref"):60112,Ze={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ke={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Je=((Ge={})[Ye]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ge[We]=Ke,Ge);function Qe(e){return("type"in(t=e)&&t.type.$$typeof)===We?Ke:"$$typeof"in e?Je[e.$$typeof]:Ze;var t}var et=Object.defineProperty,tt=Object.getOwnPropertyNames,nt=Object.getOwnPropertySymbols,rt=Object.getOwnPropertyDescriptor,it=Object.getPrototypeOf,at=Object.prototype;function st(e,t,n){if("string"!=typeof t){if(at){var r=it(t);r&&r!==at&&st(e,r,n)}var i=tt(t);nt&&(i=i.concat(nt(t)));for(var a=Qe(e),s=Qe(t),o=0;o<i.length;++o){var l=i[o];if(!(l in Xe||n&&n[l]||s&&l in s||a&&l in a)){var c=rt(t,l);try{et(e,l,c)}catch(e){}}}}return e}function ot(e){return"function"==typeof e}function lt(e){return"object"==typeof e&&"styledComponentId"in e}function ct(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ut(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function mt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function dt(e,t,n){if(void 0===n&&(n=!1),!n&&!mt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=dt(e[r],t[r]);else if(mt(t))for(var r in t)e[r]=dt(e[r],t[r]);return e}function ht(e,t){Object.defineProperty(e,"toString",{value:t})}var pt="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,a=e.length;i<a;i+=1)r.push(e[i]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function gt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(ft.apply(void 0,y([pt[e]],t,!1)).trim())}var vt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw gt(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(e+1),o=(a=0,t.length);a<o;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,a=r;a<i;a++)t+="".concat(this.tag.getRule(a)).concat(ke);return t},e}(),yt=1<<30,bt=new Map,wt=new Map,xt=1,St=function(e){if(bt.has(e))return bt.get(e);for(;wt.has(xt);)xt++;var t=xt++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>yt))throw gt(16,"".concat(t));return bt.set(e,t),wt.set(t,e),t},kt=function(e,t){xt=t+1,bt.set(e,t),wt.set(t,e)},Ct="style[".concat(be,"][").concat(xe,'="').concat(Se,'"]'),Nt=new RegExp("^".concat(be,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Et=function(e,t,n){for(var r,i=n.split(","),a=0,s=i.length;a<s;a++)(r=i[a])&&e.registerName(t,r)},Mt=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(ke),i=[],a=0,s=r.length;a<s;a++){var o=r[a].trim();if(o){var l=o.match(Nt);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(kt(u,c),Et(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(o)}}},At=function(e){for(var t=document.querySelectorAll(Ct),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(be)!==we&&(Mt(e,i),i.parentNode&&i.parentNode.removeChild(i))}},Tt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(be,"]")));return t[t.length-1]}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(be,we),r.setAttribute(xe,Se);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,a),r},Pt=function(){function e(e){this.element=Tt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw gt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),It=function(){function e(e){this.element=Tt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),jt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Vt=Ce,$t={isServer:!Ce,useCSSOMInjection:!Ne},Dt=function(){function e(e,t,n){void 0===e&&(e=Ie),void 0===t&&(t={});var r=this;this.options=v(v({},$t),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Ce&&Vt&&(Vt=!1,At(this)),ht(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=function(n){var i=function(e){return wt.get(e)}(n);if(void 0===i)return"continue";var a=e.names.get(i),s=t.getGroup(n);if(void 0===a||!a.size||0===s.length)return"continue";var o="".concat(be,".g").concat(n,'[id="').concat(i,'"]'),l="";void 0!==a&&a.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(s).concat(o,'{content:"').concat(l,'"}').concat(ke)},a=0;a<n;a++)i(a);return r}(r)})}return e.registerId=function(e){return St(e)},e.prototype.rehydrate=function(){!this.server&&Ce&&At(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(v(v({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new jt(n):t?new Pt(n):new It(n)}(this.options),new vt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(St(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(St(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(St(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Lt=/&/g,Ot=/^\s*\/\/.*$/gm;function zt(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=zt(e.children,t)),e})}var Rt=new Dt,Gt=function(){var e,t,n,r=Ie.options,i=void 0===r?Ie:r,a=Ie.plugins,s=void 0===a?Pe:a,o=function(n,r,i){return i.startsWith(t)&&i.endsWith(t)&&i.replaceAll(t,"").length>0?".".concat(e):n},l=s.slice();l.push(function(e){e.type===E&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Lt,t).replace(n,o))}),i.prefix&&l.push(ve),l.push(ge);var c=function(r,a,s,o){void 0===a&&(a=""),void 0===s&&(s=""),void 0===o&&(o="&"),e=o,t=a,n=new RegExp("\\".concat(t,"\\b"),"g");var c=r.replace(Ot,""),u=ce(s||a?"".concat(s," ").concat(a," { ").concat(c," }"):c);i.namespace&&(u=zt(u,i.namespace));var m,d=[];return fe(u,function(e){var t=R(e);return function(n,r,i,a){for(var s="",o=0;o<t;o++)s+=e[o](n,r,i,a)||"";return s}}(l.concat((m=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&m(e)})))),d};return c.hash=s.length?s.reduce(function(e,t){return t.name||gt(15),qe(e,t.name)},5381).toString():"",c}(),qt=e.createContext({shouldForwardProp:void 0,styleSheet:Rt,stylis:Gt});function Bt(){return n(qt)}e.createContext(void 0);var Ft=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Gt);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ht(this,function(){throw gt(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Gt),this.name+e.hash},e}(),_t=function(e){return e>="A"&&e<="Z"};function Ht(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;_t(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ut=function(e){return null==e||!1===e||""===e},Wt=function(e){var t,n,r=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!Ut(a)&&(Array.isArray(a)&&a.isCss||ot(a)?r.push("".concat(Ht(i),":"),a,";"):mt(a)?r.push.apply(r,y(y(["".concat(i," {")],Wt(a),!1),["}"],!1)):r.push("".concat(Ht(i),": ").concat((t=i,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in ye||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Yt(e,t,n,r){if(Ut(e))return[];if(lt(e))return[".".concat(e.styledComponentId)];if(ot(e)){if(!ot(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var i=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof i||Array.isArray(i)||i instanceof Ft||mt(i)||null===i||console.error("".concat(_e(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Yt(i,t,n,r)}var a;return e instanceof Ft?n?(e.inject(n,r),[e.getName(r)]):[e]:mt(e)?Wt(e):Array.isArray(e)?Array.prototype.concat.apply(Pe,e.map(function(e){return Yt(e,t,n,r)})):[e.toString()]}function Zt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ot(n)&&!lt(n))return!1}return!0}var Xt=Be(Se),Kt=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Zt(e),this.componentId=t,this.baseHash=qe(Xt,t),this.baseStyle=n,Dt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ct(r,this.staticRulesId);else{var i=ut(Yt(this.rules,e,t,n)),a=Re(qe(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,a)){var s=n(i,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,s)}r=ct(r,a),this.staticRulesId=a}else{for(var o=qe(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u,"production"!==process.env.NODE_ENV&&(o=qe(o,u));else if(u){var m=ut(Yt(u,e,t,n));o=qe(o,m+c),l+=m}}if(l){var d=Re(o>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(l,".".concat(d),void 0,this.componentId)),r=ct(r,d)}}return r},e}(),Jt=e.createContext(void 0),Qt={},en=new Set;function tn(t,n,a){var s=lt(t),o=t,l=!He(t),c=n.attrs,u=void 0===c?Pe:c,m=n.componentId,d=void 0===m?function(e,t){var n="string"!=typeof e?"sc":Le(e);Qt[n]=(Qt[n]||0)+1;var r="".concat(n,"-").concat(Fe(Se+n+Qt[n]));return t?"".concat(t,"-").concat(r):r}(n.displayName,n.parentComponentId):m,h=n.displayName,p=void 0===h?function(e){return He(e)?"styled.".concat(e):"Styled(".concat(_e(e),")")}(t):h,f=n.displayName&&n.componentId?"".concat(Le(n.displayName),"-").concat(n.componentId):n.componentId||d,g=s&&o.attrs?o.attrs.concat(u).filter(Boolean):u,y=n.shouldForwardProp;if(s&&o.shouldForwardProp){var b=o.shouldForwardProp;if(n.shouldForwardProp){var w=n.shouldForwardProp;y=function(e,t){return b(e,t)&&w(e,t)}}else y=b}var S=new Kt(a,f,s?o.componentStyle:void 0);function k(t,n){return function(t,n,a){var s=t.attrs,o=t.componentStyle,l=t.defaultProps,c=t.foldedComponentIds,u=t.styledComponentId,m=t.target,d=e.useContext(Jt),h=Bt(),p=t.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&r(u);var f=je(n,d,l)||Ie,g=function(e,t,n){for(var r,i=v(v({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=ot(r=e[a])?r(i):r;for(var o in s)i[o]="className"===o?ct(i[o],s[o]):"style"===o?v(v({},i[o]),s[o]):s[o]}return t.className&&(i.className=ct(i.className,t.className)),i}(s,n,f),y=g.as||m,b={};for(var w in g)void 0===g[w]||"$"===w[0]||"as"===w||"theme"===w&&g.theme===f||("forwardedAs"===w?b.as=g.forwardedAs:p&&!p(w,y)||(b[w]=g[w],p||"development"!==process.env.NODE_ENV||x(w)||en.has(w)||!Ve.has(y)||(en.add(w),console.warn('styled-components: it looks like an unknown prop "'.concat(w,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var S=function(e,t){var n=Bt(),i=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&r(i),i}(o,g);"production"!==process.env.NODE_ENV&&t.warnTooManyClasses&&t.warnTooManyClasses(S);var k=ct(c,u);return S&&(k+=" "+S),g.className&&(k+=" "+g.className),b[He(y)&&!Ve.has(y)?"class":"className"]=k,a&&(b.ref=a),i(y,b)}(C,t,n)}k.displayName=p;var C=e.forwardRef(k);return C.attrs=g,C.componentStyle=S,C.displayName=p,C.shouldForwardProp=y,C.foldedComponentIds=s?ct(o.foldedComponentIds,o.styledComponentId):"",C.styledComponentId=f,C.target=s?o.target:t,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)dt(e,i[r],!0);return e}({},o.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Te(p,f),C.warnTooManyClasses=function(e,t){var n={},r=!1;return function(i){if(!r&&(n[i]=!0,Object.keys(n).length>=200)){var a=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(a,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(p,f)),ht(C,function(){return".".concat(C.styledComponentId)}),l&&st(C,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function nn(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var rn=function(e){return Object.assign(e,{isCss:!0})};function an(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ot(e)||mt(e))return rn(Yt(nn(Pe,y([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Yt(r):rn(Yt(nn(r,t)))}function sn(e,t,n){if(void 0===n&&(n=Ie),!t)throw gt(1,t);var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,n,an.apply(void 0,y([r],i,!1)))};return r.attrs=function(r){return sn(e,t,v(v({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return sn(e,t,v(v({},n),r))},r}var on=function(e){return sn(tn,e)},ln=on;Ve.forEach(function(e){ln[e]=on(e)});var cn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Zt(e),Dt.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r(ut(Yt(this.rules,t,n,r)),""),a=this.componentId+e;n.insertRules(a,a,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Dt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var un,mn,dn,hn="__sc-".concat(be,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[hn]||(window[hn]=0),1===window[hn]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[hn]+=1),function(e){e.VerticalBarChart="VerticalBarChart",e.GroupVerticalBarChart="GroupVerticalBarChart",e.StackedVerticalBarChart="StackedVerticalBarChart",e.PercentVerticalBarChart="PercentVerticalBarChart",e.HorizontalBarChart="HorizontalBarChart",e.GroupHorizontalBarChart="GroupHorizontalBarChart",e.StackedHorizontalBarChart="StackedHorizontalBarChart",e.PercentHorizontalBarChart="PercentHorizontalBarChart",e.PyramidChart="PyramidChart",e.PieChart="PieChart",e.LineChart="LineChart",e.ScatterPlot="ScatterPlot",e.Table="Table"}(un||(un={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(mn||(mn={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(dn||(dn={}));const pn={empty:{fi:"",sv:"",en:""},preliminaryData:{fi:"Ennakko",sv:"Preliminär",en:"Preliminary data"},source:{fi:"Lähde",sv:"Källa",en:"Source"},unit:{fi:"Yksikkö",sv:"Enhet",en:"Unit"},graphCreationError:{fi:"Kuviota ei voitu muodostaa",sv:"Diagrammet kunde inte skapas",en:"The graph could not be created"},thousandsSep:{fi:" ",sv:" ",en:","},thousandsSepAccessibility:{fi:"",sv:"",en:","},decimalPoint:{fi:",",sv:",",en:"."},barMultiple:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Flerdimensionellt vertikalt stapeldiagram.",en:"Bar chart with {numSeries} data series."},barSingle:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Vertikalt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnSingle:{fi:"Vaakapylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Horisontellt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnMultiple:{fi:"Vaakapylväskuvio, jossa {numSeries} muuttujaa.",sv:"Flerdimensionellt horisontellt stapeldiagram.",en:"Bar chart with {numSeries} data series."},lineSingle:{fi:"Viivakuvio, jossa {numPoints} havainto{#eq numPoints 1}arvo{else}arvoa{/eq}.",sv:"Linjediagram.",en:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},lineMultiple:{fi:"Viivakuvio, jossa {numSeries} viivaa.",sv:"Flerdimensionellt linjediagram.",en:"Line chart with {numSeries} lines."},pieSingle:{fi:"Piirakkakuvio, jossa {numPoints} {#eq numPoints 1}lohko{else}lohkoa{/eq}.",sv:"Cirkeldiagram.",en:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}."},pieMultiple:{fi:"Piirakkakuvio, jossa {numSeries} piirakkaa.",sv:"Flerdimensionellt cirkeldiagram.",en:"Pie chart with {numSeries} pies."},scatterSingle:{fi:"Hajontakuvio, jossa {numPoints} {#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Spridningsdiagram.",en:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}."},scatterMultiple:{fi:"Hajontakuvio,jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt spridningsdiagram.",en:"Scatter chart with {numSeries} data series."},defaultSingle:{fi:"Kuvio, jossa {numPoints} data{#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Endimensionellt diagram.",en:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},defaultMultiple:{fi:"Kuvio, jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt diagram.",en:"Chart with {numSeries} data series."},defaultChartTitle:{fi:"Kuvio",sv:"Diagrammets rubrik",en:"Chart"},chartMenuLabel:{fi:"Kuvion valikko",sv:"Diagrammets meny",en:"Chart menu"},menuButtonLabel:{fi:"Katso valikko kuviosta {chartTitle}",sv:"Visa diagrammets meny",en:"View chart menu, {chartTitle}"},credits:{fi:"{creditsStr}",sv:"{creditsStr}",en:"{creditsStr}"},legendItem:{fi:"Näytä {itemName}",sv:"Variabelvärde",en:"Show {itemName}"},legendLabel:{fi:"Kuvion selite: {legendTitle}",sv:"Bläddra visuellt i variabelvärden",en:"Chart legend: {legendTitle}"},legendLabelNoTitle:{fi:"Vaihda sarjojen näkyvyyttä, {chartTitle}",sv:"Ingen etikett",en:"Toggle series visibility, {chartTitle}"},contextButtonTitle:{fi:"Kuvion valintamenu",sv:"Diagrammets valmeny",en:"Chart context menu"},downloadPNG:{fi:"Lataa kuvio (png)",sv:"Ladda ner figuren (png)",en:"Download figure (png)"},downloadSVG:{fi:"Lataa kuvio (svg)",sv:"Ladda ner figuren (svg)",en:"Download figure (svg)"},downloadXLSX:{fi:"Lataa taulukko (xlsx)",sv:"Ladda ner tabellen (xlsx)",en:"Download table (xlsx)"},downloadCSV:{fi:"Lataa taulukko (csv)",sv:"Ladda ner tabellen (csv)",en:"Download table (csv)"},rangeCategories:{fi:"Datan arvoalue: {numCategories} luokkaa.",sv:"Diagrammets värdeområde.",en:"Data range: {numCategories} categories."},rangeFromTo:{fi:"Arvot alkavat {rangeFrom} ja päättyvät {rangeTo}.",sv:"Värdena börjar från {rangeFrom} och slutar vid {rangeTo}.",en:"Data ranges from {rangeFrom} to {rangeTo}."},timeRangeDays:{fi:"Arvoja päiviltä {range}.",sv:"Värden för dagarna {range}.",en:"Data range: {range} days."},timeRangeHours:{fi:"Arvoja tunneilta {range}",sv:"Värden för timmarna {range}",en:"Data range: {range} hours."},timeRangeMinutes:{fi:"Arvoja minuuteilta {range}",sv:"Värden för minuterna {range}",en:"Data range: {range} minutes."},timeRangeSeconds:{fi:"Arvoja sekunneilta {range}",sv:"Värden för sekunderna {range}",en:"Data range: {range} seconds."},xAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} x-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} x-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},xAxisDescriptionSingular:{fi:"Kuviolla on 1 x-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en x-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}"},yAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} y-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} y-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},yAxisDescriptionSingular:{fi:"Kuviolla on 1 y-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en y-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}"},seriesSummaryBar:{fi:"{series.name}muuttujan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryBarCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumn:{fi:"{series.name}muuttuja, pylvässarja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumnCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryDefault:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryDefaultCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. diagram, ..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLine:{fi:"{series.name}, viiva {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Linje",en:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLineCombination:{fi:"{series.name}, aikasarja {seriesNumber}/{chart.series.length}. Viivassa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. linje, ..variabelns .. Linje",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryPie:{fi:"{series.name}, piirakan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1} lohko {else}lohkoa{/eq}.",sv:"..variabelns .. Sektor",en:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryPieCombination:{fi:"{series.name}, sarja {seriesNumber}/{chart.series.length}. Piirakasta, jossa {series.points.length} {#eq series.points.length 1} lohko{else}lohkoa{/eq}.",sv:"..variabelns .. sektor, ..variabelns .. Sektor",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryScatter:{fi:"{series.name}, hajontakuvio {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. Punkt",en:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryScatterCombination:{fi:"{series.name}, datasarja {seriesNumber}/{chart.series.length}, hajontakuviosta {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. punkt, ..variabelns .. Punkt",en:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},xAxisDescription:{fi:"Toisen X-akselin kuvaus, {name}",sv:"Beskrivning av andra X-axeln, {name}",en:"X axis, {name}"},yAxisDescription:{fi:"Toisen Y-akselin kuvaus, {name}",sv:"Beskrivning av andra Y-axeln, {name}",en:"Y axis, {name}"},endOfChartMarker:{fi:"Kuvion loppu.",sv:"Diagrammets slut.",en:"End of interactive chart."},loading:{fi:"Ladataan...",sv:"Laddar...",en:"Loading..."},chartContainerLabel:{fi:"{title}. Highcharts interactive chart.",sv:"{title}. Highcharts interactive chart.",en:"{title}. Highcharts interactive chart."},toggleTableModeOnText:{fi:"Näytä taulukko",sv:"Visa tabell",en:"View table"},toggleTableModeOffText:{fi:"Näytä kuvio",sv:"Visa figur",en:"View chart"},externalLink:{fi:"Ulkoinen linkki",sv:"Ulkoinen linkki",en:"External link"},quarter:{fi:"vuosineljännes",sv:"kvartal",en:"quarter"},dataMissing:{fi:"Tieto puuttuu",sv:"Data saknas",en:"Missing data"},toggleAccessibilityModeOn:{fi:"Näytä kuviossa symbolit",sv:"Visa symboler i diagrammet",en:"Show symbols in the figure"},toggleAccessibilityModeOff:{fi:"Poista kuviosta symbolit",sv:"Ta bort symbolerna från diagrammet",en:"Remove symbols from the figure"},lastUpdated:{fi:"Päivitetty",sv:"Uppdaterad",en:"Updated"}},fn={months:{fi:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]},shortMonths:{fi:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],sv:["jan.","febr.","mars","april","maj","juni","juli","aug.","sept.","okt.","nov.","dec."],en:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},numericSymbols:{fi:["k","M","G","T","P","E"],sv:["k","M","G","T","P","E"],en:["k","M","G","T","P","E"]},weekdays:{fi:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],sv:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ordinalSuffices:{en:["st.","nd.","rd.","th."]}},gn=new class{constructor(){this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=()=>Object.keys(this.Translations.empty),this.Translations=pn,this.ArrayTranslations=fn}AddTranslations(e){for(const t in e.Translations)t in this.Translations&&(this.Translations[t]=g({},this.Translations[t],e.Translations[t]));for(const t in e.ArrayTranslations)t in this.ArrayTranslations&&(this.ArrayTranslations[t]=g({},this.ArrayTranslations[t],e.ArrayTranslations[t]))}},vn=gn.Translations,yn=gn.ArrayTranslations,bn=gn.GetAllLanguages;function wn(e){gn.AddTranslations(e)}const xn=e=>e.reduce((e,t)=>e.map(e=>t.map(t=>e.concat([t]))).reduce((e,t)=>e.concat(t),[]),[[]]);function Sn(e,t,n){return n.findIndex(t=>JSON.stringify(t)===JSON.stringify(e))===t}const kn=["",".","..","...","....",".....","......","-"];function Cn(e,t,n,r=!1){if(null===e)throw new Error("Can not produce a localized numeric formatting for missing data");return new Intl.NumberFormat(n,{maximumFractionDigits:t,minimumFractionDigits:t,useGrouping:r}).format(e)}function Nn(e,t,n=!1){if(e)return n?vn.dataMissing[t]:kn[e];throw new Error("Invalid missing code. Can not generate table presentation")}function En(e,t){return function(){var n,r,i;const a=[];var s,o;e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&a.push(`${null==(s=e.rowVarNames)?void 0:s.map(e=>e[t]).join(", ")}: ${this.series.name}`),e.colVarNames&&e.colVarNames.length>0&&this.name&&a.push(`${null==(o=e.colVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${this.name}`);const l=null!=(n=null==(r=this.options.custom)?void 0:r.precision)?n:0;return a.push(On(e,this,t,l)),null!=(i=this.options.custom)&&i.preliminary&&a.push(vn.preliminaryData[t]),a.join("<br/>")}}function Mn(e,t){return function(n){var r,i,a;const s=[];var o,l;e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&s.push(`${null==(o=e.rowVarNames)?void 0:o.map(e=>e[t]).join(", ")}: ${zn(n.series.name,t)}`),e.colVarNames&&e.colVarNames.length>0&&n.name&&s.push(`${null==(l=e.colVarNames)?void 0:l.map(e=>e[t]).join(", ")}: ${zn(n.name,t)}`);const c=null!=(r=null==(i=n.options.custom)?void 0:i.precision)?r:0;return s.push(On(e,n,t,c)),null!=(a=n.options.custom)&&a.preliminary&&s.push(vn.preliminaryData[t]),s.join(", ")}}function An(e){return function(){return this.value.toLocaleString(e)}}const Tn=e=>bn().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():bn()[0];function Pn(e=null){const t=e&&e>=15?25:50;return function(){return Vn(this.value,t)}}function In(e){return function(){var t,n;if(!this.y)return"";const r=null!=(t=null==(n=this.options.custom)?void 0:n.precision)?t:0;return Cn(this.y,r,e,!0)}}function jn(){return function(){return Vn(this.name,200)}}const Vn=(e,t=50)=>{const n=e.toString().length;return`${e.toString().slice(0,t).trim()}${n>t?"...":""}`};function $n(e,t){return function(){var n,r;const i=e.series[1].rowNameGroup.map(e=>e[t]).join(", "),a=e.series[0].rowNameGroup.map(e=>e[t]).join(", "),s=null==(n=e.colVarNames)?void 0:n.map(e=>e[t]).join(", ");let o="";var l;return i&&i.length>0&&this.series.name&&(o+=`${i}: ${this.x.toLocaleString(t)}<br />`),a&&a.length>0&&this.key&&(o+=`${a}: ${null==(l=this.y)?void 0:l.toLocaleString(t)}<br />`),s&&s.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(o+=`${s}: ${e.columnNameGroups[this.index].map(e=>e[t]).join(", ")}`),null!=(r=this.options.custom)&&r.preliminary&&(o+=`<br />${vn.preliminaryData[t]}`),o}}function Dn(e,t){return function(){var n,r,i;const a=[];if(e.rowVarNames&&e.rowVarNames.length>0)for(let n=0;n<e.rowVarNames.length;n++)a.push(`${e.rowVarNames[n][t]}: ${e.series[this.series.index].rowNameGroup[n][t]}`);var s;e.colVarNames&&e.colVarNames.length>0&&this.name&&a.push(`${null==(s=e.colVarNames)?void 0:s.map(e=>e[t]).join(", ")}: ${this.name}`);const o=null!=(n=null==(r=this.options.custom)?void 0:r.precision)?n:0;return a.push(On(e,this,t,o)),null!=(i=this.options.custom)&&i.preliminary&&a.push(vn.preliminaryData[t]),a.join("<br/>")}}function Ln(e,t){const n=e.map(e=>e.unit).filter(Sn);if(1===n.length)return n[0][t];if(n.length>1)return e.map(e=>`${e.name[t]}: ${e.unit[t]}`).join(", ");throw new Error("Missing required unit data")}function On(e,t,n,r){if(null==t.y)return"";const i=Number(t.y.toFixed(r));return e.visualizationSettings.visualizationType===un.PyramidChart?Math.abs(i).toLocaleString(n):e.visualizationSettings.visualizationType==un.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==un.PercentVerticalBarChart?`${Cn(null!=(a=t.percentage)?a:0,1,n)}% (${i.toLocaleString(n)} ${Ln(e.units,n)})`:null!=(s=i.toLocaleString(n))?s:"";var a,s}function zn(e,t){if(/^\d{4}[M,Q]\d{1,2}\*?$/.test(e)){const n=e.split("*")[0],r=/^\d{4}Q\d{1,2}$/;if(/^\d{4}M\d{1,2}$/.test(n)){const e=n.split("M");return`${e[0]} ${yn.months[t][Number(e[1])-1]}`}if(r.test(n)){const e=n.split("Q");return`${e[0]} ${function(e,t){const n=yn.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?`${e}${n[r]}`:`${e}.`}(e[1],t)} ${vn.quarter[t]}`}console.log("Unsupported time pattern")}return e}function Rn(e,t){if(e)try{const n=new Date(e);if(Number.isNaN(n.getTime()))return;const r=Intl.DateTimeFormat("en"===t?"en-GB":t).format(n);return`${vn.lastUpdated[t]}: ${r}`}catch(e){return void console.error("Error formatting date:",e)}}var Gn;function qn(e,t,n){return function(){const r=function(e,t,n,r=new d(0)){var i;if(e.greaterThan(t))throw new Error("dataMinValue must me smaller or equal than dataMaxValue");if((e.lessThan(0)&&t.greaterThan(0)?t.minus(e):d.max(e.abs(),t.abs())).div(n).lessThanOrEqualTo(r))return r;const a=(e=>{const t=Array.from({length:n},(e,t)=>n-t).reduce((t,n)=>{const i=function(e){if(e.equals(0))return new d(0);const t=d.pow(10,d.log10(e).floor());return e.div(t).lessThan(1.5)?t.div(10).mul(e.div(t.div(10)).ceil()):e.div(t).lessThan(3)?e.mul(2).div(t).ceil().mul(t).div(2):e.div(t).lessThan(8)?e.div(t).ceil().mul(t):e.div(t.mul(10)).ceil().mul(10).mul(t)}(e.div(n));return i.greaterThanOrEqualTo(r)&&t.push([(a=i,a.equals(0)?0:a.isInteger()?function(e){let t=0,n=5;for(;t<50&&e.mod(n).equals(0)&&(t++,n*=2,e.mod(n).equals(0));)t++,n*=5;return t}(a):function(e){const t=e.toString();if(t.includes("e-")){const e=t.split("e-"),n=Number.parseInt(e[1]);return e[0].endsWith("5")?-2*n+1:-2*n}{const e=t.split(".")[1];return e.endsWith("5")?-2*e.length+1:-2*e.length}}(a)),i]),t;var a},[]).sort(([e,t],[n,r])=>n-e);return t.slice(0,Math.max(2,Math.ceil(.5*t.length))).sort(([e,t],[n,r])=>t.minus(r).toNumber())})(d.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(i=a.map(([e,t])=>t).find(r=>e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)))?i:new d(NaN):a[0][1]}(e,t,(n=>{const r=d.pow(10,d.log10(d.max(e.abs(),t.abs())).floor()),i=Math.ceil(n/(12*(r.toString().length+(e.isNeg()?1:0))+25)-1);return Math.max(i,e.isNegative()&&t.isPositive()?2:1)})(this.chart.plotWidth),n),i=e.greaterThanOrEqualTo(0)?new d(0):e.div(r).floor().mul(r),a=t.lessThanOrEqualTo(0)?new d(0):t.div(r).ceil().mul(r);return Array.from({length:a.minus(i).div(r).plus(1).toNumber()},(e,t)=>r.mul(t).plus(i).toNumber())}}function Bn(e){let t=null,n=null,r=0;return e.forEach(e=>{e.forEach(e=>{e.value&&(!t||e.value<t)&&(t=e.value),e.value&&(!n||e.value>n)&&(n=e.value),e.precision>r&&(r=e.precision)})}),t&&n?qn(new d(t),new d(n),new d(Math.pow(10,-r))):()=>[]}function Fn(e){let t=null,n=null,r=0;return e[0].forEach((i,a)=>{const s=e.reduce((e,t)=>{var n;return e+(null!=(n=t[a].value)?n:0)},0);s&&(!t||s<t)&&(t=s),s&&(!n||s>n)&&(n=s),i.precision>r&&(r=i.precision)}),t&&n?qn(new d(t),new d(n),new d(Math.pow(10,-r))):()=>[]}!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(Gn||(Gn={}));const _n=(e,t)=>{return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),ordinal:!0,tickPositioner:(n=Math.max(...e.series.map(e=>e.series.length)),r=Math.max(...e.columnNameGroups.map(e=>e.reduce((e,n)=>(e>0?1:0)+e+n[t].length,0))),function(){const e=Math.ceil(n*r*10/this.chart.plotWidth),t=Math.ceil(n/e);return Array.from({length:t},(t,n)=>n*e)})};var n,r};function Hn(e,t){if(t){const n=new Date(t);switch(e){case dn.Irregular:case dn.Week:return;case dn.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case dn.Quarter:case dn.HalfYear:return;case dn.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function Un(e,t){if(e.seriesType!==Gn.Time){const n=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),r=n.every(e=>!isNaN(parseFloat(e)));return e.seriesType===Gn.Ordinal&&r?_n(e,t):{ordinal:e.seriesType==Gn.Ordinal,type:"category",categories:n,labels:{autoRotation:[-45]}}}switch(e.visualizationSettings.timeVariableIntervals){case dn.Week:return Wn(e,t);case dn.Month:return Yn();case dn.Quarter:return Zn(e,t);case dn.HalfYear:return Xn(e,t);case dn.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", "))}}}const Wn=(e,t)=>({type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", ")}}}),Yn=(e,t)=>({type:"datetime",ordinal:!1,labels:{formatter:function(){return m.dateFormat("%YM%m",Number(this.value))}}}),Zn=(e,t)=>{var n,r,i;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", "):""}},tickPositioner:(r=Math.max(...e.series.map(e=>e.series.length)),i=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){const e=function(e){return e<=2?Math.ceil(e):e<=4?4:e<=20?4*Math.ceil(e/4):e<=40?20*Math.ceil(e/20):40*Math.ceil(e/40)}(60*r/this.chart.plotWidth),t=function(e,t){const n=(4*t.getFullYear()+Math.floor(t.getMonth()/3))%e;return n>0?e-n:0}(e,i),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},Xn=(e,t)=>{var n,r,i;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(e=>e[t]).join(", "):""}},tickPositioner:(r=Math.max(...e.series.map(e=>e.series.length)),i=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){const e=function(e){return e<=2?Math.ceil(e):e<=10?2*Math.ceil(e/2):e<=20?10*Math.ceil(e/10):20*Math.ceil(e/20)}(60*r/this.chart.plotWidth),t=function(e,t){const n=(2*t.getFullYear()+Math.floor(t.getMonth()/6))%e;return n>0?e-n:0}(e,i),n=Math.ceil((r-t)/e);return Array.from({length:n},(n,r)=>t+r*e)})}},Kn=["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],Jn=["M 0 5 L 10 5 M 5 0 L 5 10","M 0 0 L 10 10 M 10 0 L 0 10","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z M 2,7 h1 v1 h-1 z M 7,2 h1 v1 h-1 z","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z","M -2 -2 L 12 12 M -12 -2 L 2 12 M -2 -12 L 12 2","M -2 12 L 12 -2 M -12 12 L 2 -2 M -2 22 L 12 8","M 5,5 m -3,0 a 3,3 0 1,0 6,0 a 3,3 0 1,0 -6,0","M 2 2 L 3 3 M 7 7 L 8 8 M 2 7 L 3 8 M 7 2 L 8 3","M 5 0 L 10 5 L 5 10 L 0 5 Z","M 2 5 L 8 5 M 5 2 L 5 8","M 5 0 L 5 10","M 0 5 L 10 5","M 0 5 Q 2.5 0, 5 5 T 10 5","M 0 2 L 10 2 M 0 8 L 10 8","M 0 10 L 5 0 L 10 10 Z"];function Qn(e){return{color:{pattern:{backgroundColor:Kn[e%Kn.length],path:{stroke:"white",d:Jn[e%Jn.length],strokeWidth:2},width:10,height:10}}}}const er=(e,t)=>e.series.map((n,r)=>g({},rr(n,e,t),{index:r,type:"line"})),tr=(e,t,n=!1,r=!1)=>e.series.map((i,a)=>g({},rr(i,e,t),r&&Qn(a),{index:n?e.series.length-1-a:a,type:"bar"})),nr=(e,t,n=!1,r=!1)=>e.series.map((i,a)=>g({},rr(i,e,t),r&&Qn(a),{index:n?e.series.length-1-a:a,type:"column"}));function rr(e,t,n){return{animation:!1,name:e.rowNameGroup.map(e=>e[n]).join(", "),data:e.series.map((e,r)=>({y:e.value,name:t.columnNameGroups[r].map(e=>e[n]).join(", "),custom:{preliminary:e.preliminary,precision:e.precision}}))}}const ir=(e,t,n)=>{var r;const i=null==(r=null==n?void 0:n.showTitles)||r,a=vn.source[t];let s=`${a}: ${e.sources.map(e=>e[t]).join(", ")}`;const o=(null==n?void 0:n.showLastUpdated)&&e.lastUpdated;if(o){const n=Rn(e.lastUpdated,t);n&&(s=`${n}<br>${a}: ${e.sources.map(e=>e[t]).join(", ")}`)}return{chart:{spacingBottom:o?50:30},accessibility:{point:{descriptionFormatter:Mn(e,t)}},title:{text:i?e.header[t]:void 0},subtitle:{text:e.subheaderValues.map(e=>e[t]).join(" | ")},credits:{enabled:!1},caption:{text:s},tooltip:{formatter:En(e,t)},yAxis:[ar]}},ar={plotLines:[{value:0,color:"#000",width:1}]},sr=(e,t)=>({enabled:e.visualizationSettings.showDataPoints,style:{color:"#000",fontSize:"1rem",fontWeight:"400"},formatter:In(t)}),or=(e,t)=>g({},ar,{tickPositioner:Bn(e.series.map(e=>e.series)),title:{text:Ln(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}}),lr=(e,t,n)=>g({},ir(e,t,n),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),labels:{formatter:Pn(e.columnNameGroups.length),style:{width:200}}}}),cr=(e,t,n)=>g({},lr(e,t,n),{series:tr(e,t,!0,null==n?void 0:n.accessibilityMode),legend:g({},hr,{enabled:!0,layout:"horizontal",reversed:!0,margin:30})}),ur=(e,t,n)=>g({},ir(e,t,n),{chart:{type:"column"},xAxis:Un(e,t)}),mr=(e,t,n)=>g({},ur(e,t,n),{series:nr(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:{softMin:0,softMax:0,title:{text:Ln(e.units,t)}}}),dr=(e,t,n)=>g({},ur(e,t,n),{series:nr(e,t,!0,null==n?void 0:n.accessibilityMode),legend:g({},hr,{enabled:!0,layout:"vertical"})}),hr={itemHiddenStyle:{color:"black"}},pr=(e,t,n)=>{var r,i;return g({},ir(e,t,n),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(i=null!=(r=e.visualizationSettings.showDataPoints)&&r,function(){var e;const t=i?` (${Math.round(null!=(e=this.percentage)?e:0)}%)`:"";return Vn(this.name,20)+t})}}},series:e.series.map(r=>({animation:!1,type:"pie",name:r.rowNameGroup.map(e=>e[t]).join(", "),data:r.series.map((r,i)=>g({y:r.value,name:e.columnNameGroups[i].map(e=>e[t]).join(", "),unit:Ln(e.units,t)},(null==n?void 0:n.accessibilityMode)&&Qn(i),{custom:{preliminary:r.preliminary,precision:r.precision}}))}))})},fr=(e,t,n)=>{const r=e.columnNameGroups.map(e=>e.map(e=>e[t]).join(", ")),i=Math.max(...e.series.map(e=>Math.max(...e.series.map(e=>{var t;return null!=(t=e.value)?t:0}))));return g({},ir(e,t,n),{chart:{type:"bar"},xAxis:{categories:r,reversed:!1,labels:{style:{width:200}}},yAxis:g({},ar,{min:-Math.abs(i),max:Math.abs(i),title:{text:Ln(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},labels:{formatter:function(){return Math.abs(this.value).toLocaleString(t)}}}),legend:g({},hr,{enabled:!0,margin:30}),series:e.series.map((r,i)=>g({animation:!1,type:"bar",name:r.rowNameGroup.map(e=>e[t]).join(", ")},(null==n?void 0:n.accessibilityMode)&&Qn(i),{data:r.series.map((n,r)=>({y:0===i&&n.value?-n.value:n.value,name:e.columnNameGroups[r].map(e=>e[t]).join(", "),custom:{preliminary:n.preliminary,precision:n.precision}}))})),plotOptions:{series:{stacking:"normal",dataLabels:g({},sr(e,t))}},exporting:{enabled:!1}})},gr=(e,t)=>`\n ${e[1].rowNameGroup.map(e=>e[t]).join(", ")}: {point.x}<br/>\n ${e[0].rowNameGroup.map(e=>e[t]).join(", ")}: {point.y}\n `,vr=(e,t,n)=>{switch(t.visualizationSettings.visualizationType){case un.LineChart:return((e,t,n)=>{var r;const i=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0,a=null!=n&&n.accessibilityMode?{enabledThreshold:3}:{enabled:!1};return g({},ir(e,t,n),{chart:{type:"line"},tooltip:{formatter:Dn(e,t)},xAxis:g({},Un(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:g({},ar,{softMin:i,softMax:i,title:{text:Ln(e.units,t)}}),plotOptions:{line:{dataLabels:g({},sr(e,t)),marker:a},series:Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:g({},hr,{enabled:e.series.length>1,labelFormatter:jn()}),series:er(e,t),exporting:{enabled:!1}})})(t,e,n);case un.VerticalBarChart:return((e,t,n)=>g({},mr(e,t,n),{yAxis:g({},ar,{softMin:0,softMax:0,title:{text:Ln(e.units,t)}}),plotOptions:{series:g({},Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:g({},sr(e,t))})},exporting:{enabled:!1}}))(t,e,n);case un.HorizontalBarChart:return((e,t,n)=>g({},lr(e,t,n),{series:tr(e,t,!1,null==n?void 0:n.accessibilityMode),chart:{type:"bar",spacingBottom:60},yAxis:g({},or(e,t),{softMin:0,max:100}),legend:{enabled:!1},plotOptions:{series:{dataLabels:g({},sr(e,t))}}}))(t,e,n);case un.GroupVerticalBarChart:return((e,t,n)=>g({},mr(e,t,n),{plotOptions:{series:g({},Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:g({},sr(e,t))})},legend:g({},hr,{enabled:!0,labelFormatter:jn()})}))(t,e,n);case un.GroupHorizontalBarChart:return((e,t,n)=>g({},lr(e,t,n),{series:tr(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:g({},or(e,t),{softMin:0,softMax:0}),legend:g({},hr,{enabled:!0,layout:"vertical",margin:30}),plotOptions:{series:{dataLabels:g({},sr(e,t))}}}))(t,e,n);case un.StackedVerticalBarChart:return((e,t,n)=>g({},dr(e,t,n),{yAxis:{softMin:0,softMax:0,title:{text:Ln(e.units,t)}},plotOptions:{column:{stacking:"normal"},series:g({},Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:g({},sr(e,t))})}}))(t,e,n);case un.StackedHorizontalBarChart:return((e,t,n)=>g({},cr(e,t,n),{yAxis:{softMin:0,softMax:0,tickPositioner:Fn(e.series.map(e=>e.series)),title:{text:Ln(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:g({},sr(e,t))}}}))(t,e,n);case un.PercentVerticalBarChart:return((e,t,n)=>g({},dr(e,t,n),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent"},series:g({},Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:g({},sr(e,t))})}}))(t,e,n);case un.PercentHorizontalBarChart:return((e,t,n)=>g({},cr(e,t,n),{yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"percent"},series:{dataLabels:g({},sr(e,t))}}}))(t,e,n);case un.PieChart:return pr(t,e,n);case un.PyramidChart:return fr(t,e,n);case un.ScatterPlot:return((e,t,n)=>{var r;const i=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0;return g({},ir(e,t,n),{chart:{type:"scatter"},xAxis:{softMin:0,softMax:0,title:{text:e.series[1].rowNameGroup.map(e=>e[t]).join(", ")},gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,plotLines:[{value:0,color:"#000",width:1}]},yAxis:g({},ar,{softMin:i,softMax:i,title:{text:e.series[0].rowNameGroup.map(e=>e[t]).join(", ")}}),series:[{animation:!1,type:"scatter",data:e.series[0].series.map((t,n)=>{var r,i;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(i=e.series[0].series[n].value)?i:void 0,marker:{symbol:"circle"},custom:{preliminary:e.series[1].series[n].preliminary||e.series[0].series[n].preliminary,precision:Math.max(e.series[1].series[n].precision,e.series[0].series[n].precision)}}})}],tooltip:{headerFormat:"",pointFormat:gr(e.series,t),formatter:$n(e,t)},plotOptions:{scatter:{marker:{radius:5*(e.visualizationSettings.markerSize?.01*e.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}})})(t,e,n);default:throw new Error("Unsupported chart type")}},yr=(e,t,n,r)=>{if(0===e.length)return{};let i=e,a={};if(r){const{parsedValues:e,updatedArray:t}=br(i,r);if(i=t,a=g({},a,e),0===i.length)return a}if(n){const{parsedValues:e,updatedArray:t}=wr(i,n);if(i=t,a=g({},a,e),0===i.length)return a}return i.forEach(e=>{const n=t.findIndex(t=>t.code===e);n>-1&&(a[e]=t[n].type===mn.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),a},br=(e,t)=>{const n=Object.keys(t),r={},i=e.map(e=>n.findIndex(t=>t===e)>-1&&t[e].length>0?(r[e]=t[e],""):e).filter(e=>e.length>0);return{parsedValues:r,updatedArray:i}},wr=(e,t)=>{const n=Object.keys(t),r={},i=e.map(e=>{const i=n.findIndex(t=>t===e);return i>-1?(r[e]=t[n[i]],""):e}).filter(e=>e.length>0);return{parsedValues:r,updatedArray:i}},xr=(e,t)=>{var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},Sr=(e,t)=>{var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function kr(e,t,n){return Nr(Cr(e,e.series[t].series,n),t)}function Cr(e,t,n){const r=function(e,t){const n=[...Array(e.length).keys()];return n.sort((n,r)=>t(e[n],e[r])),n}(t,n),i=r.map(t=>e.columnNameGroups[t]),a=e.series.map(e=>function(e,t){return g({},e,{series:t.map(t=>e.series[t])})}(e,r));return g({},e,{columnNameGroups:i,series:a})}function Nr(e,t){const n=[];return n.push(e.series[t]),e.series.forEach((e,r)=>{r!==t&&n.push(e)}),g({},e,{series:n})}function Er(e,t){if(Object.keys(t).includes(e.code)){const n=e.values.filter(n=>t[e.code].includes(n.code));if(0===n.length)throw new Error("Provided selected value code can not be found from the metadata");return n}return e.values}function Mr(e,t){let n=[];for(const r of t){const t=e.find(e=>e.code===r);t&&n.push(t)}return n}class Ar{constructor(e,t){this.dataIndex=void 0,this.dataLength=void 0,this.responseObj=void 0,this.coordinates=void 0,this.lastIndices=void 0,this.indices=void 0,this.variableOrder=void 0,this.lastCoordinateIndex=void 0,this.reverseCumulativeProducts=void 0,this.selectedViewContentVariableIndex=void 0,this.selectedViewTimeVariableIndex=void 0,this.selectedViewMeta=void 0,this.rowLength=0,this.rowAmount=0,this.responseObj=e;const n=e.metaData,r=n.map(e=>e.values.length);this.selectedViewMeta=this.getSelectedView(e,t),this.coordinates=Array.from({length:this.selectedViewMeta.length},()=>[]),this.variableOrder=this.getVariableOrder(),this.initializeCoordinates(n),this.selectedViewContentVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===mn.Content),this.selectedViewTimeVariableIndex=this.selectedViewMeta.findIndex(e=>e.type===mn.Time),this.indices=Array.from({length:n.length},()=>0),this.lastIndices=this.selectedViewMeta.map(e=>e.values.length-1),this.lastCoordinateIndex=this.coordinates.length-1,this.reverseCumulativeProducts=this.generateRCP(r),this.dataLength=this.selectedViewMeta.map(e=>e.values.length).reduce((e,t)=>e*t,1),this.dataIndex=0,this.setCurrentIndex()}initializeCoordinates(e){for(let n=0;n<this.selectedViewMeta.length;n++){var t;const r=this.variableOrder[n],i=this.selectedViewMeta[n].code,a=null==(t=e.find(e=>e.code===i))?void 0:t.values,s=this.selectedViewMeta.find(e=>e.code===i);this.coordinates[r]=s.values.map(e=>a.findIndex(t=>t===e))}}getViewSeries(){let e=0,t=[];const n=[];do{const r=this.createDataCell();t.push(r),e++,e>=this.rowLength&&(n.push({rowNameGroup:this.generateRowNameGroup(),series:t}),t=[],e=0)}while(this.next());return n}generateRowNameGroup(){return this.selectedViewMeta.slice(0,this.rowAmount).map((e,t)=>e.values[this.indices[this.variableOrder[t]]].name)}next(){for(let e=this.lastCoordinateIndex;e>=0;e--){const t=this.variableOrder[e];if(this.indices[t]<this.lastIndices[e])return this.indices[t]++,this.setCurrentIndex(),!0;this.indices[t]=0}return!1}createDataCell(){var e,t;const n=this.getCurrentTimeValue(),r={value:this.responseObj.data[this.dataIndex],precision:null!=(e=null==(t=this.selectedViewMeta[this.selectedViewContentVariableIndex].values[this.indices[this.variableOrder[this.selectedViewContentVariableIndex]]].contentComponent)?void 0:t.numberOfDecimals)?e:0,preliminary:!!n&&Object.values(n.name)[0].trim().endsWith("*")};return r.value||(r.missingCode=this.responseObj.missingDataInfo[this.dataIndex]),r}getSelectedView(e,t){const n=e.metaData.map(e=>g({},e,{values:Er(e,t)})),r=Mr(n.filter(t=>e.rowVariableCodes.includes(t.code)&&t.values.length>1),e.rowVariableCodes),i=Mr(n.filter(t=>e.columnVariableCodes.includes(t.code)&&t.values.length>1),e.columnVariableCodes),a=Mr(n.filter(t=>e.selectableVariableCodes.includes(t.code)),e.selectableVariableCodes),s=a.filter(e=>e.values.length>1&&!r.some(t=>t.code==e.code)&&!i.some(t=>t.code==e.code)),o=a.filter(e=>1==e.values.length),l=n.filter(e=>!r.some(t=>t.code==e.code)&&!i.some(t=>t.code==e.code)&&!a.some(t=>t.code==e.code)),c=[...s,...r,...i,...o,...l];return this.rowLength=xn(n.filter(t=>e.columnVariableCodes.includes(t.code)).map(e=>e.values)).length,this.rowAmount=r.length+s.length,c}getVariableOrder(){const e=this.responseObj.metaData.map(e=>e.code),t=this.selectedViewMeta.map(t=>e.indexOf(t.code));return t}generateRCP(e){const t=Array.from({length:e.length});let n=1;for(let r=e.length-1;r>=0;r--)t[r]=n,n*=e[r];return t}setCurrentIndex(){this.dataIndex=0;for(let e=0;e<=this.lastCoordinateIndex;e++){const t=this.variableOrder[e];this.dataIndex+=this.reverseCumulativeProducts[t]*this.coordinates[t][this.indices[t]]}}getCurrentTimeValue(){if(-1!=this.selectedViewTimeVariableIndex)return this.selectedViewMeta[this.selectedViewTimeVariableIndex].values[this.indices[this.variableOrder[this.selectedViewTimeVariableIndex]]]}}function Tr(e,t){var n,r,i;const a=function(e,t,n){const{metaData:r,selectableVariableCodes:i}=e,a=function(e,t){return e.filter(e=>t.includes(e.code))}(r,i),s=function(e){const t=e.find(e=>e.type===mn.Content);if(t)return t;throw new Error("Content variable is not defined")}(r),o=function(e,t){const n=new Ar(e,t).getViewSeries(),r=Mr(e.metaData.filter(t=>e.columnVariableCodes.includes(t.code)).filter(e=>e.values.length>1),e.columnVariableCodes).map(e=>Er(e,t));return{columnNameGroups:xn(r).map(e=>e.map(e=>e.name)),series:n}}(e,t),l=Ir(e.selectableVariableCodes.filter(t=>n[t]>1&&!e.rowVariableCodes.includes(t)&&!e.columnVariableCodes.includes(t)),r).concat(Ir(e.rowVariableCodes,e.metaData)),c=function(e,t){let n;n=e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>{var t;return null==(t=e.contentComponent)?void 0:t.lastUpdated}).filter(Sn):e.values.map(e=>{var t;return null==(t=e.contentComponent)?void 0:t.lastUpdated}).filter(Sn);const r=n.filter(e=>void 0!==e);if(0===r.length)return;if(1===r.length)return r[0];const i=r.map(e=>new Date(e)).reduce((e,t,n,r)=>t>r[e]?n:e,0);return r[i]}(s,t);return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:Vr(a,t,n),units:$r(s,t),sources:Dr(s,t,e=>{var t;return null!=(t=null==e?void 0:e.source)?t:vn.empty}),lastUpdated:c,columnNameGroups:o.columnNameGroups,series:o.series,rowVarNames:l,colVarNames:Ir(e.columnVariableCodes,e.metaData),selectableVarNames:Ir(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:Lr(e.columnVariableCodes,e.metaData)}}(e,t,function(e){const t={};return Object.entries(e).forEach(([e,n])=>t[e]=n.length),t}(t)),s=(null==(n=a.visualizationSettings)?void 0:n.visualizationType)===un.PercentHorizontalBarChart||(null==(r=a.visualizationSettings)?void 0:r.visualizationType)===un.PercentVerticalBarChart;switch(null==(i=e.visualizationSettings)?void 0:i.sorting){case null:case void 0:case"no_sorting":return a;case"reversed":return function(e){const t=[...e.series].reverse().map(e=>g({},e,{series:[...e.series].reverse(),rowNameGroup:[...e.rowNameGroup].reverse()}));return g({},e,{series:t,columnNameGroups:[...e.columnNameGroups].reverse()})}(a);case"sum":return function(e,t){const n=e.columnNameGroups.map((t,n)=>({value:e.series.map(e=>e.series[n]).reduce((e,t)=>{var n;return e+(null!=(n=t.value)?n:0)},0),precision:0,preliminary:!1}));return Cr(e,n,t)}(a,Sr);case"ascending":return kr(a,0,xr);case"descending":return kr(a,0,Sr);default:return s?(o=a,l=Pr(a),c=jr(e),Nr(Cr(o,l.series[c].series,Sr),c)):kr(a,jr(e),Sr)}var o,l,c}function Pr(e){const t=e.series.map(t=>g({},t,{series:t.series.map((t,n)=>{var r;const i=e.series.reduce((e,t)=>{var r;return e+(null!=(r=t.series[n].value)?r:0)},0),a=i&&0!==i?Math.round(100*(null!=(r=t.value)?r:0)/i*10)/10:null,s={value:a,precision:1,preliminary:t.preliminary};return null===a&&(s.missingCode=t.missingCode),s})}));return g({},e,{units:e.units.map(e=>{return{name:e.name,unit:(t=e.unit,Object.keys(t).reduce((e,t)=>(e[t]="%",e),{}))};var t}),series:t})}function Ir(e,t){return e.reduce((e,n)=>{var r;const i=null==(r=t.find(e=>e.code===n))?void 0:r.name;return i&&e.push(i),e},[])}function jr(e){const t=e.metaData.find(t=>t.code==e.rowVariableCodes[0]),n=null==t?void 0:t.values.findIndex(t=>{var n;return t.code===(null==(n=e.visualizationSettings)?void 0:n.sorting)});return!n||n<0?0:n}function Vr(e,t,n){const r=[];return e.forEach(e=>{var i,a;1==n[e.code]&&r.push(null!=(i=null==(a=e.values.find(n=>n.code===t[e.code][0]))?void 0:a.name)?i:{})}),r}function $r(e,t){const n=e.code in t?e.values.filter(n=>t[e.code].includes(n.code)):e.values;return n.reduce((e,t)=>(t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e),[])}function Dr(e,t,n){return e.code in t?e.values.filter(n=>t[e.code].includes(n.code)).map(e=>n(e.contentComponent)).filter(Sn):e.values.map(e=>n(e.contentComponent)).filter(Sn)}function Lr(e,t){var n;if(e.length>1||0===e.length)return Gn.Nominal;const r=null==(n=t.find(t=>t.code===e[0]))?void 0:n.type;switch(r){case mn.Time:return Gn.Time;case mn.Ordinal:return Gn.Ordinal;default:return Gn.Nominal}}const Or=(e,t)=>({accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1,allowHTML:!1,chartOptions:{chart:{style:{fontFamily:t||'"Barlow Semi Condensed", Verdana, sans-serif'}}}},lang:{accessibility:{thousandsSep:vn.thousandsSepAccessibility[e],credits:vn.credits[e],caption:vn.credits[e],chartTypes:{barMultiple:vn.barMultiple[e],barSingle:vn.barSingle[e],columnMultiple:vn.columnMultiple[e],columnSingle:vn.columnSingle[e],lineSingle:vn.lineSingle[e],lineMultiple:vn.lineMultiple[e],pieSingle:vn.pieSingle[e],scatterSingle:vn.scatterSingle[e],scatterMultiple:vn.scatterMultiple[e],defaultSingle:vn.defaultSingle[e],defaultMultiple:vn.defaultMultiple[e]},defaultChartTitle:vn.defaultChartTitle[e],exporting:{chartMenuLabel:vn.chartMenuLabel[e],menuButtonLabel:vn.menuButtonLabel[e]},legend:{legendItem:vn.legendItem[e],legendLabel:vn.legendLabel[e],legendLabelNoTitle:vn.legendLabelNoTitle[e]},axis:{rangeCategories:vn.rangeCategories[e],rangeFromTo:vn.rangeFromTo[e],timeRangeDays:vn.timeRangeDays[e],timeRangeHours:vn.timeRangeHours[e],timeRangeMinutes:vn.timeRangeMinutes[e],timeRangeSeconds:vn.timeRangeSeconds[e],xAxisDescriptionPlural:vn.xAxisDescriptionPlural[e],xAxisDescriptionSingular:vn.xAxisDescriptionSingular[e],yAxisDescriptionPlural:vn.yAxisDescriptionPlural[e],yAxisDescriptionSingular:vn.yAxisDescriptionSingular[e]},series:{summary:{bar:vn.seriesSummaryBar[e],barCombination:vn.seriesSummaryBarCombination[e],column:vn.seriesSummaryColumn[e],columnCombination:vn.seriesSummaryColumnCombination[e],default:vn.seriesSummaryDefault[e],defaultCombination:vn.seriesSummaryDefaultCombination[e],line:vn.seriesSummaryLine[e],lineCombination:vn.seriesSummaryLineCombination[e],pie:vn.seriesSummaryPie[e],pieCombination:vn.seriesSummaryPieCombination[e],scatter:vn.seriesSummaryScatter[e],scatterCombination:vn.seriesSummaryScatterCombination[e]},xAxisDescription:vn.xAxisDescription[e],yAxisDescription:vn.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:vn.endOfChartMarker[e]},chartContainerLabel:vn.chartContainerLabel[e]},thousandsSep:vn.thousandsSep[e],decimalPoint:vn.decimalPoint[e],contextButtonTitle:vn.contextButtonTitle[e],downloadCSV:vn.downloadCSV[e],downloadPNG:vn.downloadPNG[e],downloadSVG:vn.downloadSVG[e],months:yn.months[e],shortMonths:yn.shortMonths[e],weekdays:yn.weekdays[e],loading:vn.loading[e],numericSymbols:null},colors:Kn,chart:{style:{fontFamily:null!=t?t:'"Barlow Semi Condensed", Verdana, sans-serif'},spacingLeft:20,height:"56.25%"},tooltip:{enabled:!0,headerFormat:"{point.key}<br/>",pointFormat:"{point.y}",backgroundColor:"#ffffff",outside:!0,style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},title:{useHTML:!0,style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left",maxWidth:"calc(100% - 4rem)",whiteSpace:"normal"},align:"left",margin:45,minScale:1},subtitle:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"400"},align:"left"},caption:{position:{align:"left",x:5},style:{color:"#000",fontSize:"1rem",fontWeight:"400",textAlign:"left",cursor:"default"},href:""},yAxis:{title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400",left:0,textAlign:"left",textOverflow:"ellipsis"},align:"high",rotation:0,textAlign:"left",offset:0,y:-15,x:55,reserveSpace:!1},lineColor:"#000",lineWidth:1,gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},autoRotation:[0],allowOverlap:!1,formatter:An(e)}},xAxis:{labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},allowOverlap:!1,autoRotation:[0]},title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},lineColor:"#000",lineWidth:1,crosshair:!0},legend:{enabled:!1,itemStyle:{fontSize:"1rem",fontWeight:"400",color:"#000"},align:"center"},plotOptions:{pie:{dataLabels:{enabled:!0,useHTML:!0,connectorShape:"crookedLine",connectorColor:"#000000",style:{fontSize:"1rem",fontWeight:"400",color:"#000",textOverflow:"crop"}}},column:{groupPadding:.2,pointPadding:.01,borderRadius:0,borderWidth:0},bar:{groupPadding:.2,pointPadding:.01,borderRadius:0,borderWidth:0},series:{animation:!1}}}),zr=(e,t,n,r=null,i)=>{(()=>{if("undefined"!=typeof window)try{require("highcharts/modules/pattern-fill.js"),require("highcharts/modules/accessibility.js"),require("highcharts/modules/exporting.js"),require("highcharts/modules/offline-exporting.js")}catch(e){console.error("Error loading Highcharts modules:",e)}})();const a=Tn(n);u.setOptions(Or(a,null==i?void 0:i.fontFamily));const s=Tr(t,yr(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),o=vr(a,s,i);return u.chart(e,o)};function Rr(e,t,n,r,i){const a=document.getElementById(r);if(!a)throw new Error("No container with matching id found in the DOM tree");try{const r=function(e,t){var n,r;const i=null!=(n=e.columnNameGroups[0].length)?n:0,a=null!=(r=e.series[0].rowNameGroup.length)?r:0,s=Object.assign(document.createElement("table"),{tabIndex:0});if(i>0){const n=function(e,t){const n=Br(e),r=[];for(let i=0;i<e[0].length;i++){const a=document.createElement("tr");for(let r=0;r<e.length;r+=n[i]){const s=document.createElement("th");s.setAttribute("colSpan",n[i].toString()),s.setAttribute("scope","col"),s.textContent=e[r][i][t],a.append(s)}r.push(a)}return r}(e.columnNameGroups,t);if(a>0){const e=document.createElement("td");e.setAttribute("colSpan",a.toString()),e.setAttribute("rowSpan",i.toString()),n[0].prepend(e)}const r=document.createElement("thead");r.append(...n),s.append(r)}if(e.series.length>0){const n=document.createElement("tbody");n.append(...function(e,t){const n=[],r=qr(e);for(let i=0;i<e.length;i++){const a=document.createElement("tr");for(let n=0;n<e[i].rowNameGroup.length;n++)if(i%r[n]===0){const s=document.createElement("th");s.setAttribute("rowSpan",r[n].toString()),s.setAttribute("scope","row"),s.textContent=e[i].rowNameGroup[n][t],a.append(s)}for(const n of e[i].series){const e=document.createElement("td");e.textContent=null===n.value?Nn(n.missingCode,t,!0):Cn(n.value,n.precision,t,!0),a.append(e)}n.push(a)}return n}(e.series,t)),s.append(n)}return s}(e,t);if(n.showTitles){const n=document.createElement("caption");if(n.textContent=e.header[t],e.subheaderValues.length>0){const r=e.subheaderValues.map(e=>e[t]).join(" | ");n.append(document.createElement("br"),r)}n.className="tableChart-caption",r.prepend(n)}if(a.append(r),n.showUnits){const n=document.createElement("p"),r=Ln(e.units,t);n.append(`${vn.unit[t]}: ${r}`),a.append(n)}if(i){const e=document.createElement("p");e.append(i),a.append(e)}if(n.showLastUpdated&&e.lastUpdated){const n=document.createElement("p"),r=Rn(e.lastUpdated,t);r&&(n.append(r),a.append(n))}if(n.showSources){const n=document.createElement("p"),r=`${vn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`;n.append(r),a.append(n)}}catch(e){console.error(e),a.replaceChildren();const n=document.createElement("h1");n.append(vn.graphCreationError[t]),a.append(n)}}const Gr=(e,t)=>Object.keys(e).every(n=>e[n]==t[n]),qr=e=>{if(!e[0].rowNameGroup||0===e[0].rowNameGroup.length)return[];const t=Array(e[0].rowNameGroup.length).fill(1);for(let n=0;n<e[0].rowNameGroup.length;n++)for(let r=0;r<e.length-1&&Gr(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},Br=e=>{if(!e||0===e.length)return[];const t=Array(e[0].length).fill(1);for(let n=0;n<e[0].length;n++)for(let r=0;r<e.length-1&&Gr(e[r][n],e[r+1][n]);r++)t[n]++;return t},Fr=e=>{const t=e?e.split(".")[0]:"",n=new Date;return`${t}_${n.getFullYear()}${(n.getMonth()+1).toString().padStart(2,"0")}${n.getDate().toString().padStart(2,"0")}_${n.getHours().toString().padStart(2,"0")}${n.getMinutes().toString().padStart(2,"0")}${n.getSeconds().toString().padStart(2,"0")}`},_r=(e,t)=>{var n,r,i,a,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===un.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===un.PercentVerticalBarChart)&&(e=Pr(e));const u=null!=(i=null==(a=e.columnNameGroups[0])?void 0:a.length)?i:0,m=null!=(s=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?s:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m,h=","==vn.decimalPoint[t]?";":",",p="\n";let f=Ur([`"${e.header[t]}"`],0,d,h,p);e.subheaderValues.length>0&&(f+=Ur([`"${e.subheaderValues.map(e=>e[t]).join(" | ")}"`],0,d,h,p));for(let n=0;n<u;n++)f+=Ur(e.columnNameGroups.map(e=>`"${e[n][t]}"`),m,d,h,p);return e.series.forEach(e=>{let n=[];e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(e=>`"${e[t]}"`)),n=n.concat(e.series.map(e=>null===e.value?Nn(e.missingCode,t):Cn(e.value,e.precision,t))),f+=Ur(n,0,d,h,p)}),f+=Ur([`"${vn.unit[t]}: ${Ln(e.units,t)}"`],0,d,h,p),f+=Ur([`"${vn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}"`],0,d,h),f},Hr=(e,t)=>({onClick:()=>{const n=_r(e,t),r=new Blob(["\ufeff",n],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r),a=document.createElement("a");a.setAttribute("href",i),a.setAttribute("download",Fr(e.tableReferenceName)+".csv"),document.body.appendChild(a),a.click()},text:vn.downloadCSV[t]});function Ur(e,t,n,r,i=""){let a="";for(let i=0;i<n;i++)i>=t&&i<t+e.length&&(a+=e[i-t]),i<n-1&&(a+=r);return a+i}const Wr=['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'];function Yr(e){const t=Math.floor(e/26),n=String.fromCharCode(97+e%26).toUpperCase();return 0===t?n:Yr(t-1)+n}const Zr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<workbook ${['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'].join(" ")}>\n <workbookPr/>\n <sheets>\n <sheet state="visible" name="Sheet1" sheetId="1" r:id="rId3"/>\n </sheets>\n <definedNames/>\n <calcPr/>\n</workbook>`;function Xr(e,t,n){const r=Array(n);for(let i=0;i<n;i++)r[i]=i>=t&&i<t+e.length?e[i-t]:null;return r}const Kr=(e,t)=>({onClick:async()=>{const n=await Jr(e,t),r=URL.createObjectURL(n),i=document.createElement("a");i.setAttribute("href",r),i.setAttribute("download",Fr(e.tableReferenceName)+".xlsx"),document.body.appendChild(i),i.click()},text:vn.downloadXLSX[t]});async function Jr(e,t){const n=((e,t)=>{var n,r,i,a,s,o,l,c;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===un.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===un.PercentVerticalBarChart)&&(e=Pr(e));const u=null!=(i=null==(a=e.columnNameGroups[0])?void 0:a.length)?i:0,m=null!=(s=null==(o=e.series[0])?void 0:o.rowNameGroup.length)?s:0,d=(null!=(l=null==(c=e.series[0])?void 0:c.series.length)?l:0)+m,h=[Xr([e.header[t]],0,d)];e.subheaderValues.length>0&&h.push(Xr([e.subheaderValues.map(e=>e[t]).join(" | ")],0,d));for(let n=0;n<u;n++)h.push(Xr(e.columnNameGroups.map(e=>e[n][t]),m,d));return e.series.forEach(e=>{let n=[];e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(e=>e[t])),n=n.concat(e.series.map(e=>null===e.value?Nn(e.missingCode,t):Number(e.value.toFixed(e.precision)))),h.push(Xr(n,0,d))}),h.push(Xr([`${vn.unit[t]}: ${Ln(e.units,t)}`],0,d)),h.push(Xr([`${vn.source[t]}: ${e.sources.map(e=>e[t]).join(", ")}`],0,d)),h})(e,t),r=(e=>{const t=function(e){const t=[];for(let n=1;n<=e;n++)t.push(`<col min="${n}" max="${n}" width="20"/>`);return t?`<cols>${t}</cols>`:""}(Math.max(...e.map(e=>e.length))),n=function(e){return e.map((e,t)=>{const n=e.map((e,n)=>function(e,t,n){return null===e?null:"string"==typeof e?`<c r="${Yr(t)}${n}" t="inlineStr"><is><t>${function(e){const t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,e=>t[e])}(e)}</t></is></c>`:`<c r="$${Yr(t)}${n}"><v>${e}</v></c>`}(e,n,t+1)).filter(e=>null!==e).join("");return`<row r="${t+1}">${n}</row>`}).join("")}(e);return((e,t)=>`<?xml version="1.0" ?>\n<worksheet ${Wr.join(" ")}>\n ${e}\n <sheetData>\n ${t}\n </sheetData>\n</worksheet>`)(t,n)})(n),i={xl:{"worksheets/sheet1.xml":h(r),"workbook.xml":h(Zr),"_rels/workbook.xml.rels":h('<?xml version="1.0" ?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship\n Id="rId3"\n Target="worksheets/sheet1.xml" \n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"\n />\n</Relationships>')},"_rels/.rels":h('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships\nxmlns="http://schemas.openxmlformats.org/package/2006/relationships"\n>\n <Relationship\n Id="rId1"\n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"\n Target="xl/workbook.xml"\n />\n</Relationships>'),"[Content_Types].xml":h('<?xml version="1.0" ?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default ContentType="application/xml" Extension="xml"/>\n <Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/>\n</Types>')};return new Promise((e,t)=>{p(i,(n,r)=>{if(n)return t(n);const i=new Blob([r.buffer instanceof ArrayBuffer?r.buffer:new Uint8Array(r)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return e(i)})})}const Qr=["Bars","Times","Download","ExternalLink","Copy"],ei=({icon:t,inheritColor:n=!1})=>{switch(t){case"Bars":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"39.91mm",height:"29.92mm",viewBox:"0 0 113.12 84.82"},e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.51,14.13c-16.33,0-32.67.01-49,0-5.37,0-8.89-4.83-6.99-9.59C1.63,1.76,3.77.26,6.76.01c.22-.02.44,0,.66,0,32.74,0,65.49,0,98.23,0,4.3,0,7.45,2.99,7.47,7.01.02,4.11-3.15,7.1-7.6,7.11-16.33.01-32.67,0-49,0Z"})),e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.55,49.47c-16.41,0-32.82.01-49.22,0-3.78,0-6.77-2.56-7.26-6.09-.49-3.53,1.78-6.9,5.35-7.81.77-.2,1.6-.21,2.4-.21,32.52,0,65.04-.01,97.57,0,4.51,0,7.69,2.89,7.74,6.97.04,4.19-3.16,7.14-7.79,7.15-16.26,0-32.52,0-48.78,0Z"})),e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m56.43,84.82c-16.33,0-32.67,0-49,0-3.68,0-6.45-2.17-7.25-5.56-.73-3.09.92-6.54,3.92-7.84,1.04-.45,2.27-.69,3.41-.69,32.74-.04,65.49-.03,98.23-.02,4.27,0,7.41,3.06,7.39,7.09-.02,4.02-3.17,7.02-7.47,7.02-16.41.02-32.82,0-49.22,0Z"})));case"Times":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.44 76.44"},e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m0,38.09C.02,17.02,17.22-.04,38.39,0c21.08.04,38.09,17.21,38.05,38.42-.04,21-17.21,38.04-38.31,38.01C17.04,76.41-.02,59.26,0,38.09ZM38.25,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m38.4,34c2.9-2.94,5.58-5.67,8.27-8.39.93-.94,2.13-1.38,3.25-.73.8.47,1.7,1.46,1.78,2.29.09.92-.48,2.12-1.14,2.85-2.18,2.38-4.54,4.6-6.83,6.89-.35.35-.68.71-1.07,1.12,2.67,2.68,5.35,5.26,7.88,7.99.67.72,1.28,1.95,1.16,2.84-.12.88-1.05,1.9-1.89,2.37-1.03.57-2.22.16-3.12-.75-2.31-2.33-4.65-4.63-6.96-6.97-.38-.39-.66-.87-1.36-1.8-.71.95-1.11,1.64-1.65,2.19-2.12,2.17-4.27,4.32-6.44,6.44-1.41,1.38-3.16,1.46-4.38.28-1.26-1.22-1.2-3.02.24-4.48,2.27-2.31,4.56-4.58,6.87-6.85.38-.38.88-.64,1.42-1.03-2.89-2.89-5.5-5.47-8.07-8.1-.53-.55-1.05-1.24-1.24-1.96-.35-1.32.14-2.48,1.38-3.16,1.28-.71,2.53-.5,3.56.5,2.32,2.26,4.59,4.55,6.88,6.84.46.46.86.96,1.47,1.64Z"})));case"Download":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"33.64mm",height:"33.64mm",viewBox:"0 0 95.35 95.37"},e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m41.74,51.99c0-1.25,0-1.92,0-2.59,0-14.4,0-28.79,0-43.19,0-3.27,2.24-5.84,5.28-6.17,3.01-.33,5.8,1.65,6.48,4.66.16.71.14,1.48.14,2.22,0,14.15,0,28.29,0,42.44v2.34c.53-.42.91-.67,1.23-.98,3.12-3.11,6.23-6.23,9.35-9.34,2.74-2.72,6.26-2.87,8.75-.4,2.49,2.46,2.39,6.06-.3,8.75-6.79,6.81-13.59,13.61-20.4,20.4-2.92,2.91-6.25,2.92-9.15.03-6.81-6.79-13.61-13.59-20.4-20.4-2.71-2.72-2.84-6.26-.35-8.75,2.48-2.49,6.03-2.36,8.75.34,3.42,3.4,6.82,6.83,10.61,10.64Z"})),e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m47.67,95.37c-13.83,0-27.66,0-41.49,0-3.18,0-5.7-2.16-6.12-5.13-.42-2.98,1.5-5.82,4.51-6.59.65-.17,1.35-.18,2.02-.18,27.41,0,54.83,0,82.24,0,3.8,0,6.48,2.43,6.52,5.88.04,3.53-2.66,6.02-6.56,6.03-13.71,0-27.41,0-41.12,0Z"})));case"ExternalLink":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"88.84mm",height:"79.62mm",viewBox:"0 0 251.84 225.69"},e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m125.89,225.68c-22.84,0-45.67.03-68.51,0C23.18,225.63.03,202.4.01,168.14,0,131.14,0,94.13.01,57.13.04,23.53,23.35.14,56.85.1c23.67-.03,21.34.02,45.01-.03,4.75,0,8.96,1.04,11.87,5.09,2.64,3.67,3.08,7.7,1.25,11.83-2.01,4.53-5.59,7-10.57,7.06-9,.11-12,.07-21,.07-15.84,0-11.67-.05-27.5.02-18.82.08-31.81,12.98-31.84,31.74-.06,38-.06,76.01,0,114.01.03,18.74,13.04,31.7,31.86,31.72,46.67.05,93.34.06,140.01,0,18.79-.02,31.71-12.99,31.79-31.8.07-17,0-14,.03-31.01.02-8.3,4.75-13.75,11.83-13.81,7.07-.06,12.12,5.48,12.16,13.61.07,17.5.18,15.01-.02,32.51-.34,30.71-23.87,54.02-54.81,54.56h-71.01l-.02.02Z"})),e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m207.19,24.08c-6.95,0-23.9.04-30.85,0-8.12-.06-13.27-4.55-13.44-11.6-.17-7.19,5.18-12.33,13.32-12.38,17.33-.11,44.67-.12,62,0,8.48.06,13.45,4.99,13.5,13.37.12,16.83.12,43.67,0,60.5-.06,7.69-5.4,13.04-12.34,12.87-6.83-.17-11.53-5.35-11.61-12.97-.08-7.63-.02-25.26-.02-34.12-2.09,1.8-3.42,2.88-4.68,4.03-26.76,24.57-53.52,49.15-80.28,73.72-1.6,1.47-3.13,3-4.82,4.36-5.57,4.47-12.54,3.94-16.98-1.2-4.31-4.98-4.06-11.78,1.06-16.6,10.92-10.28,22.03-20.36,33.07-30.51,16.56-15.23,33.13-30.45,49.72-45.65.97-.89,2.15-1.56,3.23-2.33-.29-.5-.58-.99-.87-1.49h0Z"})));case"Copy":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"31.19mm",height:"31.21mm",viewBox:"0 0 88.41 88.48"},e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m20.67,54.61c0-7.55,0-15.1,0-22.65,0-6.79,4.38-11.2,11.13-11.21,15.16-.01,30.33-.01,45.49,0,6.75,0,11.12,4.42,11.12,11.22,0,15.1,0,30.2,0,45.3,0,6.79-4.39,11.21-11.13,11.21-15.16,0-30.33,0-45.49,0-6.66,0-11.1-4.41-11.12-11.03-.02-7.61,0-15.22,0-22.83Zm60.78.1c0-7.67,0-15.34,0-23.01,0-2.72-1.23-3.98-3.89-3.99-15.34,0-30.68,0-46.02,0-2.67,0-3.89,1.26-3.89,3.98,0,15.28,0,30.55,0,45.83,0,2.79,1.23,3.99,4.07,3.99,15.22,0,30.44,0,45.65,0,2.91,0,4.08-1.21,4.08-4.17,0-7.55,0-15.09,0-22.64Z"})),e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m13.66,60.85v6.64C6.35,69.22.02,64.29.01,56.9c-.02-15.34-.02-30.69,0-46.03C.02,4.48,4.36.11,10.73.1c15.1-.02,30.21.19,45.3-.1,6.89-.13,12.81,4.89,11.49,13.58h-6.74c0-.95.03-1.91,0-2.86-.08-2.34-1.35-3.69-3.66-3.69-15.53-.02-31.06-.02-46.59,0-2.36,0-3.58,1.27-3.58,3.7-.02,15.4-.02,30.81,0,46.21,0,2.65,1.32,3.87,4.01,3.91.85.01,1.7,0,2.71,0Z"})));default:return e.createElement("span",null,"No icon for ",t,e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.45 76.44"},e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m0,38.1C.02,17.02,17.22-.04,38.4,0c21.08.04,38.1,17.21,38.06,38.43-.04,21-17.21,38.05-38.32,38.02C17.04,76.42-.02,59.27,0,38.1ZM38.26,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),e.createElement("path",g({},n?{}:{style:{fill:"#1A3061"}},{d:"m34.1,43.95c-.12-.12-.18-.26-.18-.43v-1.62c0-1.68.43-3.04,1.29-4.07.86-1.03,2.1-2.11,3.71-3.26,1.31-.91,2.29-1.72,2.93-2.42s.96-1.57.96-2.58c0-1.08-.4-1.95-1.21-2.6-.81-.66-1.87-.99-3.18-.99-1.42,0-2.55.35-3.41,1.06-.86.71-1.29,1.62-1.29,2.73v.81c0,.37-.2.56-.61.56l-5.91-.25c-.17,0-.31-.06-.43-.18-.12-.12-.18-.26-.18-.43v-.5c0-2.02.51-3.81,1.52-5.38,1.01-1.57,2.42-2.78,4.22-3.64,1.8-.86,3.88-1.29,6.24-1.29s4.3.41,6.04,1.24c1.73.83,3.07,1.98,4.02,3.46.94,1.48,1.41,3.2,1.41,5.15,0,1.48-.26,2.75-.78,3.81-.52,1.06-1.15,1.93-1.89,2.6-.74.67-1.68,1.42-2.83,2.22-1.21.84-2.11,1.57-2.68,2.17s-.86,1.35-.86,2.22v1.16c0,.17-.06.31-.18.43-.12.12-.26.18-.43.18h-5.86c-.17,0-.31-.06-.43-.18Zm.3,10.36c-.76-.76-1.14-1.71-1.14-2.85s.37-2.09,1.11-2.83,1.7-1.11,2.88-1.11,2.13.36,2.85,1.09c.72.72,1.09,1.68,1.09,2.85s-.37,2.1-1.11,2.85c-.74.76-1.68,1.14-2.83,1.14s-2.1-.38-2.85-1.14Z"}))))}};let ti,ni,ri,ii,ai,si,oi,li=e=>e;const ci=ln(a((t,n)=>e.createElement("button",g({ref:n},t))))(ti||(ti=li`
|
|
2
2
|
background-color: transparent;
|
|
3
3
|
text-align: left;
|
|
4
4
|
border: none;
|
|
@@ -186,5 +186,5 @@ min-height: 635px;
|
|
|
186
186
|
height: 100%;
|
|
187
187
|
`),e=>e.$tableMode?"none":"block"),Ki=ln.div(Hi||(Hi=Ui`
|
|
188
188
|
display: ${0};
|
|
189
|
-
`),e=>e.$tableMode?"block":"none"),Ji=({pxGraphData:t,footnote:n,locale:r,menuItemDefinitions:i,selectedVariableCodes:a=null,showContextMenu:s=!0,menuIconInheritColor:o=!1,
|
|
189
|
+
`),e=>e.$tableMode?"block":"none"),Ji=({pxGraphData:t,footnote:n,locale:r,menuItemDefinitions:i,selectedVariableCodes:a=null,showContextMenu:s=!0,menuIconInheritColor:o=!1,showTitles:c,showTableUnits:u,showTableSources:d,fontFamily:h,showLastUpdated:p=!1})=>{const g=Tn(r);Wi(g,h);const v=e.useRef(null),[y,b]=e.useState(v.current),[w,x]=e.useState(!1),[S,k]=e.useState(!1),[C,N]=e.useState(0),E=l(()=>{try{return yr(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,a)}catch(e){return console.error(e),{}}},[a,t]),M=l(()=>{try{return Tr(t,E)}catch(e){return console.error(e),null}},[E,t]),A=l(()=>({showTitles:null==c||c,showUnits:!!u,showSources:null==d||d,showLastUpdated:p,accessibilityMode:S,fontFamily:h}),[c,u,d,p,S,h]);let T;function P(){C!==window.innerWidth&&N(window.innerWidth)}window&&window.addEventListener("resize",function(){clearTimeout(T),T=setTimeout(P,100)});const I=()=>{x(!w)},j=()=>{k(!S)};e.useEffect(()=>{v.current&&b(v.current)},[v.current]);try{if(M&&t.visualizationSettings.visualizationType!==un.Table){const t=vr(g,M,A);return e.createElement(Yi,null,s&&e.createElement(Zi,null,e.createElement(Pi,{menuItemDefinitions:i,viewData:M,currentChartRef:y,locale:g,tableToggle:{tableMode:w,toggleHandler:I},menuIconInheritColor:o,accessibilityMode:S,toggleAccessibilityMode:j})),e.createElement(Xi,{$tableMode:w},e.createElement(f,{ref:v,immutable:!0,highcharts:m,options:t})),e.createElement(Ki,{$tableMode:w},e.createElement(Di,{options:A,footnote:n,view:M,locale:g})))}if(M&&t.visualizationSettings.visualizationType===un.Table)return e.createElement(Yi,null,s&&e.createElement(Zi,null,e.createElement(Pi,{menuItemDefinitions:i,viewData:M,locale:g,menuIconInheritColor:o})),e.createElement(Di,{options:A,footnote:n,view:M,locale:g}))}catch(t){return console.error(t),e.createElement(Gi,{locale:g})}return e.createElement(Gi,{locale:g})},Qi=t=>{const n=Tn(t.locale);return e.createElement(qi,{fallback:e.createElement(Gi,{locale:n})},e.createElement(Oi,null),e.createElement(Ji,g({},t)))};export{wn as AddTranslations,Pi as BurgerMenu,Qi as Chart,dn as ETimeVariableInterval,mn as EVariableType,un as EVisualizationType,qi as ErrorBoundary,Oi as GlobalStyle,ei as Icon,gi as MenuItem,Jr as buildMinimalXlsxBlobAsync,Ai as calculateExportDimensions,Tr as convertPxGrafResponseToView,vr as convertPxGraphDataToChartOptions,Kn as defaultColors,Jn as defaultFillPatterns,Or as defaultTheme,zr as drawChart,yr as extractSelectableVariableValues,_r as generateCsv,Rr as renderHtmlTable,Hr as viewToDownloadCSVOption,Kr as viewToDownloadXLSOption};
|
|
190
190
|
//# sourceMappingURL=pxv.modern.js.map
|