@nebula.js/sn-pivot-table 7.2.1 → 7.2.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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pivot-table v7.2.
|
|
2
|
+
* @nebula.js/sn-pivot-table v7.2.2
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register(["react","react-dom","@nebula.js/stardust","picasso-plugin-q","picasso.js"],(function(e,t){"use strict";var r,n,o,i,a,s,l,u,c,d,p,f,h,m,g,v,y,b,x,S,w,C,E,I,D,P,M,R,L,A,k,O,q,T,_,j,N,F,z,W,$,H,V,B,G,U,Y;return{setters:[function(e){r=e.default,n=e.createElement,o=e,i=e.isValidElement,a=e.cloneElement,s=e.Children,l=e.useRef,u=e.createContext,c=e.useReducer,d=e.useEffect,p=e.useDebugValue,f=e.useCallback,h=e.useContext,m=e.useState,g=e.useLayoutEffect,v=e.useMemo,y=e.useInsertionEffect,b=e.memo,x=e.forwardRef,S=e.startTransition,w=e.useImperativeHandle,C=e.PureComponent},function(e){E=e.default,I=e,D=e.flushSync},function(e){P=e.HyperCubeHandler,M=e.useMemo,R=e.useOptions,L=e.usePromise,A=e.useState,k=e.useEffect,O=e.useTheme,q=e.useInteractionState,T=e.onContextMenu,_=e.onTakeSnapshot,j=e.useImperativeHandle,N=e.useTranslator,F=e.useElement,z=e.useStaleLayout,W=e.useModel,$=e.useApp,H=e.useEmbed,V=e.useKeyboard,B=e.useSelections,G=e.useRect},function(e){U=e.default},function(e){Y=e.default}],execute:function(){e("default",(function(e){return{qae:{properties:{initial:tY()},data:TN(e)},ext:KF(e),component(){QU(e)}}}));const K={black:"#000",white:"#fff"},X="#e57373",J="#ef5350",Z="#f44336",Q="#d32f2f",ee="#c62828",te="#f3e5f5",re="#ce93d8",ne="#ba68c8",oe="#ab47bc",ie="#9c27b0",ae="#7b1fa2",se="#e3f2fd",le="#90caf9",ue="#42a5f5",ce="#1976d2",de="#1565c0",pe="#4fc3f7",fe="#29b6f6",he="#03a9f4",me="#0288d1",ge="#01579b",ve="#81c784",ye="#66bb6a",be="#4caf50",xe="#388e3c",Se="#2e7d32",we="#1b5e20",Ce="#ffb74d",Ee="#ffa726",Ie="#ff9800",De="#f57c00",Pe="#e65100",Me={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Re(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Le=Object.freeze({__proto__:null,default:Re}),Ae="$$material";function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ke.apply(null,arguments)}function Oe(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var qe=function(){return qe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qe.apply(this,arguments)};function Te(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var _e="-ms-",je="-moz-",Ne="-webkit-",Fe="comm",ze="rule",We="decl",$e="@keyframes",He=Math.abs,Ve=String.fromCharCode,Be=Object.assign;function Ge(e){return e.trim()}function Ue(e,t){return(e=t.exec(e))?e[0]:e}function Ye(e,t,r){return e.replace(t,r)}function Ke(e,t,r){return e.indexOf(t,r)}function Xe(e,t){return 0|e.charCodeAt(t)}function Je(e,t,r){return e.slice(t,r)}function Ze(e){return e.length}function Qe(e){return e.length}function et(e,t){return t.push(e),e}function tt(e,t){return e.filter((function(e){return!Ue(e,t)}))}var rt=1,nt=1,ot=0,it=0,at=0,st="";function lt(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:rt,column:nt,length:a,return:"",siblings:s}}function ut(e,t){return Be(lt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ct(e){for(;e.root;)e=ut(e.root,{children:[e]});et(e,e.siblings)}function dt(){return at=it>0?Xe(st,--it):0,nt--,10===at&&(nt=1,rt--),at}function pt(){return at=it<ot?Xe(st,it++):0,nt++,10===at&&(nt=1,rt++),at}function ft(){return Xe(st,it)}function ht(){return it}function mt(e,t){return Je(st,e,t)}function gt(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 vt(e){return Ge(mt(it-1,xt(91===e?e+2:40===e?e+1:e)))}function yt(e){for(;(at=ft())&&at<33;)pt();return gt(e)>2||gt(at)>3?"":" "}function bt(e,t){for(;--t&&pt()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return mt(e,ht()+(t<6&&32==ft()&&32==pt()))}function xt(e){for(;pt();)switch(at){case e:return it;case 34:case 39:34!==e&&39!==e&&xt(at);break;case 40:41===e&&xt(e);break;case 92:pt()}return it}function St(e,t){for(;pt()&&e+at!==57&&(e+at!==84||47!==ft()););return"/*"+mt(t,it-1)+"*"+Ve(47===e?e:pt())}function wt(e){for(;!gt(ft());)pt();return mt(e,it)}function Ct(e){return function(e){return st="",e}(Et("",null,null,null,[""],e=function(e){return rt=nt=1,ot=Ze(st=e),it=0,[]}(e),0,[0],e))}function Et(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,S=i,w=n,C=b;g;)switch(h=y,y=pt()){case 40:if(108!=h&&58==Xe(C,d-1)){-1!=Ke(C+=Ye(vt(y),"&","&\f"),"&\f",He(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=vt(y);break;case 9:case 10:case 13:case 32:C+=yt(h);break;case 92:C+=bt(ht()-1,7);continue;case 47:switch(ft()){case 42:case 47:et(Dt(St(pt(),ht()),t,r,l),l),5!=gt(h||1)&&5!=gt(ft()||1)||!Ze(C)||" "===Je(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=Ze(C)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(C=Ye(C,/\f/g,"")),f>0&&(Ze(C)-d||0===m&&47===h)&&et(f>32?Pt(C+";",n,r,d-1,l):Pt(Ye(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(et(w=It(C,t,r,u,c,o,s,b,x=[],S=[],d,i),i),123===y)if(0===c)Et(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===Xe(C,3))break;case 108:if(97===Xe(C,2))break;default:c=0;case 100:case 109:case 115:}c?Et(e,w,w,n&&et(It(e,w,w,0,0,o,s,b,o,x=[],d,S),S),o,S,d,s,n?x:S):Et(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=v=1,b=C="",d=a;break;case 58:d=1+Ze(C),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==dt())continue;switch(C+=Ve(y),y*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Ze(C)-1)*v,v=1;break;case 64:45===ft()&&(C+=vt(pt())),p=ft(),c=d=Ze(b=C+=wt(ht())),y++;break;case 45:45===h&&2==Ze(C)&&(m=0)}}return i}function It(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Qe(f),m=0,g=0,v=0;m<n;++m)for(var y=0,b=Je(e,p+1,p=He(g=a[m])),x=e;y<h;++y)(x=Ge(g>0?f[y]+" "+b:Ye(b,/&\f/g,f[y])))&&(l[v++]=x);return lt(e,t,r,0===o?ze:s,l,u,c,d)}function Dt(e,t,r,n){return lt(e,t,r,Fe,Ve(at),Je(e,2,-2),0,n)}function Pt(e,t,r,n,o){return lt(e,t,r,We,Je(e,0,n),Je(e,n+1,-1),n,o)}function Mt(e,t,r){switch(function(e,t){return 45^Xe(e,0)?(((t<<2^Xe(e,0))<<2^Xe(e,1))<<2^Xe(e,2))<<2^Xe(e,3):0}(e,t)){case 5103:return Ne+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Ne+e+e;case 4855:return Ne+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return je+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ne+e+je+e+_e+e+e;case 5936:switch(Xe(e,t+11)){case 114:return Ne+e+_e+Ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+_e+Ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+_e+Ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ne+e+_e+e+e;case 6165:return Ne+e+_e+"flex-"+e+e;case 5187:return Ne+e+Ye(e,/(\w+).+(:[^]+)/,Ne+"box-$1$2"+_e+"flex-$1$2")+e;case 5443:return Ne+e+_e+"flex-item-"+Ye(e,/flex-|-self/g,"")+(Ue(e,/flex-|baseline/)?"":_e+"grid-row-"+Ye(e,/flex-|-self/g,""))+e;case 4675:return Ne+e+_e+"flex-line-pack"+Ye(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ne+e+_e+Ye(e,"shrink","negative")+e;case 5292:return Ne+e+_e+Ye(e,"basis","preferred-size")+e;case 6060:return Ne+"box-"+Ye(e,"-grow","")+Ne+e+_e+Ye(e,"grow","positive")+e;case 4554:return Ne+Ye(e,/([^-])(transform)/g,"$1"+Ne+"$2")+e;case 6187:return Ye(Ye(Ye(e,/(zoom-|grab)/,Ne+"$1"),/(image-set)/,Ne+"$1"),e,"")+e;case 5495:case 3959:return Ye(e,/(image-set\([^]*)/,Ne+"$1$`$1");case 4968:return Ye(Ye(e,/(.+:)(flex-)?(.*)/,Ne+"box-pack:$3"+_e+"flex-pack:$3"),/space-between/,"justify")+Ne+e+e;case 4200:if(!Ue(e,/flex-|baseline/))return _e+"grid-column-align"+Je(e,t)+e;break;case 2592:case 3360:return _e+Ye(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Ue(e.props,/grid-\w+-end/)}))?~Ke(e+(r=r[t].value),"span",0)?e:_e+Ye(e,"-start","")+e+_e+"grid-row-span:"+(~Ke(r,"span",0)?Ue(r,/\d+/):+Ue(r,/\d+/)-+Ue(e,/\d+/))+";":_e+Ye(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Ue(e.props,/grid-\w+-start/)}))?e:_e+Ye(Ye(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ye(e,/(.+)-inline(.+)/,Ne+"$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(Ze(e)-1-t>6)switch(Xe(e,t+1)){case 109:if(45!==Xe(e,t+4))break;case 102:return Ye(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+je+(108==Xe(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ke(e,"stretch",0)?Mt(Ye(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ye(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return _e+r+":"+n+s+(o?_e+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===Xe(e,t+6))return Ye(e,":",":"+Ne)+e;break;case 6444:switch(Xe(e,45===Xe(e,14)?18:11)){case 120:return Ye(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ne+(45===Xe(e,14)?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+_e+"$2box$3")+e;case 100:return Ye(e,":",":"+_e)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ye(e,"scroll-","scroll-snap-")+e}return e}function Rt(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Lt(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case We:return e.return=e.return||e.value;case Fe:return"";case $e:return e.return=e.value+"{"+Rt(e.children,n)+"}";case ze:if(!Ze(e.value=e.props.join(",")))return""}return Ze(r=Rt(e.children,n))?e.return=e.value+"{"+r+"}":""}function At(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case We:return void(e.return=Mt(e.value,e.length,r));case $e:return Rt([ut(e,{value:Ye(e.value,"@","@"+Ne)})],n);case ze:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Ue(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ct(ut(e,{props:[Ye(t,/:(read-\w+)/,":-moz-$1")]})),ct(ut(e,{props:[t]})),Be(e,{props:tt(r,n)});break;case"::placeholder":ct(ut(e,{props:[Ye(t,/:(plac\w+)/,":"+Ne+"input-$1")]})),ct(ut(e,{props:[Ye(t,/:(plac\w+)/,":-moz-$1")]})),ct(ut(e,{props:[Ye(t,/:(plac\w+)/,_e+"input-$1")]})),ct(ut(e,{props:[t]})),Be(e,{props:tt(r,n)})}return""}))}}var kt={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,scale: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},Ot="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",qt="active",Tt="data-styled-version",_t="6.3.9",jt="/*!sc*/\n",Nt="undefined"!=typeof window&&"undefined"!=typeof document,Ft=void 0===r.createContext,zt=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)),Wt={},$t=Object.freeze([]),Ht=Object.freeze({});function Vt(e,t,r){return void 0===r&&(r=Ht),e.theme!==r.theme&&e.theme||t||r.theme}var Bt=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),Gt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ut=/(^-|-$)/g;function Yt(e){return e.replace(Gt,"-").replace(Ut,"")}var Kt=/(a)(d)/gi,Xt=function(e){return String.fromCharCode(e+(e>25?39:97))};function Jt(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Xt(t%52)+r;return(Xt(t%52)+r).replace(Kt,"$1-$2")}var Zt,Qt=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},er=function(e){return Qt(5381,e)};function tr(e){return Jt(er(e)>>>0)}function rr(e){return"string"==typeof e&&!0}var nr="function"==typeof Symbol&&Symbol.for,or=nr?Symbol.for("react.memo"):60115,ir=nr?Symbol.for("react.forward_ref"):60112,ar={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},sr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},lr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ur=((Zt={})[ir]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zt[or]=lr,Zt);function cr(e){return("type"in(t=e)&&t.type.$$typeof)===or?lr:"$$typeof"in e?ur[e.$$typeof]:ar;var t}var dr=Object.defineProperty,pr=Object.getOwnPropertyNames,fr=Object.getOwnPropertySymbols,hr=Object.getOwnPropertyDescriptor,mr=Object.getPrototypeOf,gr=Object.prototype;function vr(e,t,r){if("string"!=typeof t){if(gr){var n=mr(t);n&&n!==gr&&vr(e,n,r)}var o=pr(t);fr&&(o=o.concat(fr(t)));for(var i=cr(e),a=cr(t),s=0;s<o.length;++s){var l=o[s];if(!(l in sr||r&&r[l]||a&&l in a||i&&l in i)){var u=hr(t,l);try{dr(e,l,u)}catch(e){}}}}return e}function yr(e){return"function"==typeof e}function br(e){return"object"==typeof e&&"styledComponentId"in e}function xr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Sr(e,t){return e.join("")}function wr(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Cr(e,t,r){if(void 0===r&&(r=!1),!r&&!wr(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Cr(e[n],t[n]);else if(wr(t))for(var n in t)e[n]=Cr(e[n],t[n]);return e}function Er(e,t){Object.defineProperty(e,"toString",{value:t})}function Ir(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return 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(", ")):""))}var Dr=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return e.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw Ir(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++,s++);s>0&&this._cGroup>e&&(this._cIndex+=s)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+jt;return t},e}(),Pr=new Map,Mr=new Map,Rr=1,Lr=function(e){if(Pr.has(e))return Pr.get(e);for(;Mr.has(Rr);)Rr++;var t=Rr++;return Pr.set(e,t),Mr.set(t,e),t},Ar=function(e,t){Rr=t+1,Pr.set(e,t),Mr.set(t,e)},kr="style[".concat(Ot,"][").concat(Tt,'="').concat(_t,'"]'),Or=new RegExp("^".concat(Ot,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),qr=function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType},Tr=function(e){if(!e)return document;if(qr(e))return e;if("getRootNode"in e){var t=e.getRootNode();if(qr(t))return t}return document},_r=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},jr=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(jt),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Or);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Ar(c,u),_r(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Nr=function(e){for(var t=Tr(e.options.target).querySelectorAll(kr),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Ot)!==qt&&(jr(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Fr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ot,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Ot,qt),n.setAttribute(Tt,_t);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},zr=function(){function e(e){this.element=Fr(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){var t;if(e.sheet)return e.sheet;for(var r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets,n=0,o=r.length;n<o;n++){var i=r[n];if(i.ownerNode===e)return i}throw Ir(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}(),Wr=function(){function e(e){this.element=Fr(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,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}(),$r=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):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}(),Hr=Nt,Vr={isServer:!Nt,useCSSOMInjection:!zt},Br=function(){function e(e,t,r){void 0===e&&(e=Ht),void 0===t&&(t={});var n=this;this.options=qe(qe({},Vr),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Nt&&Hr&&(Hr=!1,Nr(this)),Er(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Mr.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o);if(void 0===i||!i.size)return"continue";var a=t.getGroup(r);if(0===a.length)return"continue";var s=Ot+".g"+r+'[id="'+o+'"]',l="";i.forEach((function(e){e.length>0&&(l+=e+",")})),n+=a+s+'{content:"'+l+'"}'+jt},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Lr(e)},e.prototype.rehydrate=function(){!this.server&&Nt&&Nr(this)},e.prototype.reconstructWithOptions=function(t,r){void 0===r&&(r=!0);var n=new e(qe(qe({},this.options),t),this.gs,r&&this.names||void 0);return!this.server&&Nt&&t.target!==this.options.target&&Tr(this.options.target)!==Tr(t.target)&&Nr(n),n},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,r=e.target;return e.isServer?new $r(r):t?new zr(r):new Wr(r)}(this.options),new Dr(e)));var e},e.prototype.hasNameForId=function(e,t){var r,n;return null!==(n=null===(r=this.names.get(e))||void 0===r?void 0:r.has(t))&&void 0!==n&&n},e.prototype.registerName=function(e,t){Lr(e);var r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Lr(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Lr(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Gr=/&/g,Ur=47,Yr=42;function Kr(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,r=0,n=0,o=!1,i=0;i<t;i++){var a=e.charCodeAt(i);if(0!==n||o||a!==Ur||e.charCodeAt(i+1)!==Yr)if(o)a===Yr&&e.charCodeAt(i+1)===Ur&&(o=!1,i++);else if(34!==a&&39!==a||0!==i&&92===e.charCodeAt(i-1)){if(0===n)if(123===a)r++;else if(125===a&&--r<0)return!0}else 0===n?n=a:n===a&&(n=0);else o=!0,i++}return 0!==r||0!==n}function Xr(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=Xr(e.children,t)),e}))}var Jr=new Br,Zr=function(){var e,t,r,n=Ht,o=n.options,i=void 0===o?Ht:o,a=n.plugins,s=void 0===a?$t:a,l=function(r,n,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):r},u=s.slice();u.push((function(e){e.type===ze&&e.value.includes("&")&&(r||(r=new RegExp("\\".concat(t,"\\b"),"g")),e.props[0]=e.props[0].replace(Gr,t).replace(r,l))})),i.prefix&&u.push(At),u.push(Lt);var c,d=[],p=function(e){var t=Qe(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(u.concat((c=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&c(e)}))),f=function(n,o,a,s){void 0===o&&(o=""),void 0===a&&(a=""),void 0===s&&(s="&"),e=s,t=o,r=void 0;var l=function(e){if(!Kr(e))return e;for(var t=e.length,r="",n=0,o=0,i=0,a=!1,s=0;s<t;s++){var l=e.charCodeAt(s);if(0!==i||a||l!==Ur||e.charCodeAt(s+1)!==Yr)if(a)l===Yr&&e.charCodeAt(s+1)===Ur&&(a=!1,s++);else if(34!==l&&39!==l||0!==s&&92===e.charCodeAt(s-1)){if(0===i)if(123===l)o++;else if(125===l){if(--o<0){for(var u=s+1;u<t;){var c=e.charCodeAt(u);if(59===c||10===c)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,s=u-1,n=u;continue}0===o&&(r+=e.substring(n,s+1),n=s+1)}else 59===l&&0===o&&(r+=e.substring(n,s+1),n=s+1)}else 0===i?i=l:i===l&&(i=0);else a=!0,s++}if(n<t){var d=e.substring(n);Kr(d)||(r+=d)}return r}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,r=[],n=0,o=0,i=0,a=0;o<t;){var s=e.charCodeAt(o);if(34!==s&&39!==s||0!==o&&92===e.charCodeAt(o-1))if(0===i)if(s===Ur&&o+1<t&&e.charCodeAt(o+1)===Yr){for(o+=2;o+1<t&&(e.charCodeAt(o)!==Yr||e.charCodeAt(o+1)!==Ur);)o++;o+=2}else if(40===s&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))a=1,o++;else if(a>0)41===s?a--:40===s&&a++,o++;else if(s===Yr&&o+1<t&&e.charCodeAt(o+1)===Ur)o>n&&r.push(e.substring(n,o)),n=o+=2;else if(s===Ur&&o+1<t&&e.charCodeAt(o+1)===Ur){for(o>n&&r.push(e.substring(n,o));o<t&&10!==e.charCodeAt(o);)o++;n=o}else o++;else o++;else 0===i?i=s:i===s&&(i=0),o++}return 0===n?e:(n<t&&r.push(e.substring(n)),r.join(""))}(n)),u=Ct(a||o?"".concat(a," ").concat(o," { ").concat(l," }"):l);return i.namespace&&(u=Xr(u,i.namespace)),d=[],Rt(u,p),d};return f.hash=s.length?s.reduce((function(e,t){return t.name||Ir(15),Qt(e,t.name)}),5381).toString():"",f}(),Qr={shouldForwardProp:void 0,styleSheet:Jr,stylis:Zr},en=Ft?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Qr)}}:r.createContext(Qr);function tn(){return Ft?Qr:r.useContext(en)}en.Consumer;var rn=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Zr);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Er(this,(function(){throw Ir(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Zr),this.name+e.hash},e}();function nn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in kt||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var on=function(e){return e>="A"&&e<="Z"};function an(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;on(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var sn=function(e){return null==e||!1===e||""===e},ln=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!sn(n)&&(Array.isArray(n)&&n.isCss||yr(n)?t.push("".concat(an(r),":"),n,";"):wr(n)?t.push.apply(t,Te(Te(["".concat(r," {")],ln(n),!1),["}"],!1)):t.push("".concat(an(r),": ").concat(nn(r,n),";")))}return t};function un(e,t,r,n,o){if(void 0===o&&(o=[]),"string"==typeof e)return e&&o.push(e),o;if(sn(e))return o;if(br(e))return o.push(".".concat(e.styledComponentId)),o;var i;if(yr(e))return!yr(i=e)||i.prototype&&i.prototype.isReactComponent||!t?(o.push(e),o):un(e(t),t,r,n,o);if(e instanceof rn)return r?(e.inject(r,n),o.push(e.getName(n))):o.push(e),o;if(wr(e)){for(var a=ln(e),s=0;s<a.length;s++)o.push(a[s]);return o}if(!Array.isArray(e))return o.push(e.toString()),o;for(s=0;s<e.length;s++)un(e[s],t,r,n,o);return o}function cn(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(yr(r)&&!br(r))return!1}return!0}var dn=er(_t),pn=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&cn(e),this.componentId=t,this.baseHash=Qt(dn,t),this.baseStyle=r,Br.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=xr(n,this.staticRulesId);else{var o=Sr(un(this.rules,e,t,r)),i=Jt(Qt(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=xr(n,i),this.staticRulesId=i}else{for(var s=Qt(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=Sr(un(c,e,t,r));s=Qt(Qt(s,String(u)),d),l+=d}}if(l){var p=Jt(s>>>0);if(!t.hasNameForId(this.componentId,p)){var f=r(l,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}n=xr(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(Lr(this.componentId)):""}},e}(),fn=Ft?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:r.createContext(void 0);fn.Consumer;var hn={};function mn(e,t,o){var i=br(e),a=e,s=!rr(e),l=t.attrs,u=void 0===l?$t:l,c=t.componentId,d=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Yt(e);hn[r]=(hn[r]||0)+1;var n="".concat(r,"-").concat(tr(_t+r+hn[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,p=t.displayName,f=void 0===p?function(e){return rr(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,h=t.displayName&&t.componentId?"".concat(Yt(t.displayName),"-").concat(t.componentId):t.componentId||d,m=i&&a.attrs?a.attrs.concat(u).filter(Boolean):u,g=t.shouldForwardProp;if(i&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;g=function(e,t){return v(e,t)&&y(e,t)}}else g=v}var b=new pn(o,h,i?a.componentStyle:void 0);function x(e,t){return function(e,t,o){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,u=e.styledComponentId,c=e.target,d=Ft?void 0:r.useContext(fn),p=tn(),f=e.shouldForwardProp||p.shouldForwardProp,h=Vt(t,d,s)||(Ft?void 0:Ht),m=function(e,t,r){for(var n,o=qe(qe({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=yr(n=e[i])?n(o):n;for(var s in a)"className"===s?o.className=xr(o.className,a[s]):"style"===s?o.style=qe(qe({},o.style),a[s]):o[s]=a[s]}return"className"in t&&"string"==typeof t.className&&(o.className=xr(o.className,t.className)),o}(i,t,h),g=m.as||c,v={};for(var y in m)void 0===m[y]||"$"===y[0]||"as"===y||"theme"===y&&m.theme===h||("forwardedAs"===y?v.as=m.forwardedAs:f&&!f(y,g)||(v[y]=m[y]));var b=function(e,t){var r=tn();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,m),x=b.className,S=b.css,w=xr(l,u);x&&(w+=" "+x),m.className&&(w+=" "+m.className),v[rr(g)&&!Bt.has(g)?"class":"className"]=w,o&&(v.ref=o);var C=n(g,v);return Ft&&S?r.createElement(r.Fragment,null,r.createElement("style",{precedence:"styled-components",href:"sc-".concat(u,"-").concat(x),children:S}),C):C}(S,e,t)}x.displayName=f;var S=r.forwardRef(x);return S.attrs=m,S.componentStyle=b,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=i?xr(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=h,S.target=i?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Cr(e,o[n],!0);return e}({},a.defaultProps,e):e}}),Er(S,(function(){return".".concat(S.styledComponentId)})),s&&vr(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function gn(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var vn=function(e){return Object.assign(e,{isCss:!0})};function yn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(yr(e)||wr(e))return vn(un(gn($t,Te([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?un(n):vn(un(gn(n,t)))}function bn(e,t,r){if(void 0===r&&(r=Ht),!t)throw Ir(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,yn.apply(void 0,Te([n],o,!1)))};return n.attrs=function(n){return bn(e,t,qe(qe({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return bn(e,t,qe(qe({},r),n))},n}var xn=function(e){return bn(mn,e)},Sn=xn;Bt.forEach((function(e){Sn[e]=xn(e)}));var wn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=cn(e),Br.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Sr(un(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&Br.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?r.hasNameForId(o,o)||this.createStyles(e,t,r,n):(this.removeStyles(e,r),this.createStyles(e,t,r,n))},e}();function Cn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Sr(yn.apply(void 0,Te([e],t,!1))),o=tr(n);return new rn(o,n)}function En(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function In(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Dn={exports:{}};function Pn(){}function Mn(){}Mn.resetWarningCache=Pn;Dn.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Mn,resetWarningCache:Pn};return r.PropTypes=r,r}();var Rn=En(Dn.exports);function Ln(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}Ln.propTypes={children:Rn.node,injectFirst:Rn.bool};const An=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=yn.apply(void 0,Te([e],t,!1)),i="sc-global-".concat(tr(JSON.stringify(o))),a=new wn(o,i),s=new WeakMap,l=function(e){var t=tn(),n=Ft?void 0:r.useContext(fn),o=s.get(t.styleSheet);if(void 0===o&&(o=t.styleSheet.allocateGSInstance(i),s.set(t.styleSheet,o)),("undefined"==typeof window||!t.styleSheet.server)&&u(o,e,t.styleSheet,n,t.stylis),Ft||r.useLayoutEffect((function(){return t.styleSheet.server||u(o,e,t.styleSheet,n,t.stylis),function(){var e;a.removeStyles(o,t.styleSheet),e=t.styleSheet.options.target,"undefined"!=typeof document&&(null!=e?e:document).querySelectorAll('style[data-styled-global="'.concat(i,'"]')).forEach((function(e){return e.remove()}))}}),[o,e,t.styleSheet,n,t.stylis]),Ft){var l=i+o,c="undefined"==typeof window?t.styleSheet.getTag().getGroup(Lr(l)):"";if(c)return r.createElement("style",{key:"".concat(i,"-").concat(o),"data-styled-global":i,children:c})}return null};function u(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,Wt,r,o);else{var i=qe(qe({},t),{theme:Vt(t,n,l.defaultProps)});a.renderStyles(e,i,r,o)}}return r.memo(l)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
|
|
7
|
+
System.register(["react","react-dom","@nebula.js/stardust","picasso-plugin-q","picasso.js"],(function(e,t){"use strict";var r,n,o,i,a,s,l,u,c,d,p,f,h,m,g,v,y,b,x,S,w,C,E,I,D,P,M,R,L,A,k,O,q,T,_,j,N,F,z,W,$,V,H,B,G,U,Y;return{setters:[function(e){r=e.default,n=e.createElement,o=e,i=e.isValidElement,a=e.cloneElement,s=e.Children,l=e.useRef,u=e.createContext,c=e.useReducer,d=e.useEffect,p=e.useDebugValue,f=e.useCallback,h=e.useContext,m=e.useState,g=e.useLayoutEffect,v=e.useMemo,y=e.useInsertionEffect,b=e.memo,x=e.forwardRef,S=e.startTransition,w=e.useImperativeHandle,C=e.PureComponent},function(e){E=e.default,I=e,D=e.flushSync},function(e){P=e.HyperCubeHandler,M=e.useMemo,R=e.useOptions,L=e.usePromise,A=e.useState,k=e.useEffect,O=e.useTheme,q=e.useInteractionState,T=e.onContextMenu,_=e.onTakeSnapshot,j=e.useImperativeHandle,N=e.useTranslator,F=e.useElement,z=e.useStaleLayout,W=e.useModel,$=e.useApp,V=e.useEmbed,H=e.useKeyboard,B=e.useSelections,G=e.useRect},function(e){U=e.default},function(e){Y=e.default}],execute:function(){e("default",(function(e){return{qae:{properties:{initial:iY()},data:FN(e)},ext:QF(e),component(){nY(e)}}}));const K={black:"#000",white:"#fff"},X="#e57373",J="#ef5350",Z="#f44336",Q="#d32f2f",ee="#c62828",te="#f3e5f5",re="#ce93d8",ne="#ba68c8",oe="#ab47bc",ie="#9c27b0",ae="#7b1fa2",se="#e3f2fd",le="#90caf9",ue="#42a5f5",ce="#1976d2",de="#1565c0",pe="#4fc3f7",fe="#29b6f6",he="#03a9f4",me="#0288d1",ge="#01579b",ve="#81c784",ye="#66bb6a",be="#4caf50",xe="#388e3c",Se="#2e7d32",we="#1b5e20",Ce="#ffb74d",Ee="#ffa726",Ie="#ff9800",De="#f57c00",Pe="#e65100",Me={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Re(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Le=Object.freeze({__proto__:null,default:Re}),Ae="$$material";function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ke.apply(null,arguments)}function Oe(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var qe=function(){return qe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qe.apply(this,arguments)};function Te(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var _e="-ms-",je="-moz-",Ne="-webkit-",Fe="comm",ze="rule",We="decl",$e="@keyframes",Ve=Math.abs,He=String.fromCharCode,Be=Object.assign;function Ge(e){return e.trim()}function Ue(e,t){return(e=t.exec(e))?e[0]:e}function Ye(e,t,r){return e.replace(t,r)}function Ke(e,t,r){return e.indexOf(t,r)}function Xe(e,t){return 0|e.charCodeAt(t)}function Je(e,t,r){return e.slice(t,r)}function Ze(e){return e.length}function Qe(e){return e.length}function et(e,t){return t.push(e),e}function tt(e,t){return e.filter((function(e){return!Ue(e,t)}))}var rt=1,nt=1,ot=0,it=0,at=0,st="";function lt(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:rt,column:nt,length:a,return:"",siblings:s}}function ut(e,t){return Be(lt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ct(e){for(;e.root;)e=ut(e.root,{children:[e]});et(e,e.siblings)}function dt(){return at=it>0?Xe(st,--it):0,nt--,10===at&&(nt=1,rt--),at}function pt(){return at=it<ot?Xe(st,it++):0,nt++,10===at&&(nt=1,rt++),at}function ft(){return Xe(st,it)}function ht(){return it}function mt(e,t){return Je(st,e,t)}function gt(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 vt(e){return Ge(mt(it-1,xt(91===e?e+2:40===e?e+1:e)))}function yt(e){for(;(at=ft())&&at<33;)pt();return gt(e)>2||gt(at)>3?"":" "}function bt(e,t){for(;--t&&pt()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return mt(e,ht()+(t<6&&32==ft()&&32==pt()))}function xt(e){for(;pt();)switch(at){case e:return it;case 34:case 39:34!==e&&39!==e&&xt(at);break;case 40:41===e&&xt(e);break;case 92:pt()}return it}function St(e,t){for(;pt()&&e+at!==57&&(e+at!==84||47!==ft()););return"/*"+mt(t,it-1)+"*"+He(47===e?e:pt())}function wt(e){for(;!gt(ft());)pt();return mt(e,it)}function Ct(e){return function(e){return st="",e}(Et("",null,null,null,[""],e=function(e){return rt=nt=1,ot=Ze(st=e),it=0,[]}(e),0,[0],e))}function Et(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,S=i,w=n,C=b;g;)switch(h=y,y=pt()){case 40:if(108!=h&&58==Xe(C,d-1)){-1!=Ke(C+=Ye(vt(y),"&","&\f"),"&\f",Ve(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=vt(y);break;case 9:case 10:case 13:case 32:C+=yt(h);break;case 92:C+=bt(ht()-1,7);continue;case 47:switch(ft()){case 42:case 47:et(Dt(St(pt(),ht()),t,r,l),l),5!=gt(h||1)&&5!=gt(ft()||1)||!Ze(C)||" "===Je(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=Ze(C)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(C=Ye(C,/\f/g,"")),f>0&&(Ze(C)-d||0===m&&47===h)&&et(f>32?Pt(C+";",n,r,d-1,l):Pt(Ye(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(et(w=It(C,t,r,u,c,o,s,b,x=[],S=[],d,i),i),123===y)if(0===c)Et(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===Xe(C,3))break;case 108:if(97===Xe(C,2))break;default:c=0;case 100:case 109:case 115:}c?Et(e,w,w,n&&et(It(e,w,w,0,0,o,s,b,o,x=[],d,S),S),o,S,d,s,n?x:S):Et(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=v=1,b=C="",d=a;break;case 58:d=1+Ze(C),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==dt())continue;switch(C+=He(y),y*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Ze(C)-1)*v,v=1;break;case 64:45===ft()&&(C+=vt(pt())),p=ft(),c=d=Ze(b=C+=wt(ht())),y++;break;case 45:45===h&&2==Ze(C)&&(m=0)}}return i}function It(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Qe(f),m=0,g=0,v=0;m<n;++m)for(var y=0,b=Je(e,p+1,p=Ve(g=a[m])),x=e;y<h;++y)(x=Ge(g>0?f[y]+" "+b:Ye(b,/&\f/g,f[y])))&&(l[v++]=x);return lt(e,t,r,0===o?ze:s,l,u,c,d)}function Dt(e,t,r,n){return lt(e,t,r,Fe,He(at),Je(e,2,-2),0,n)}function Pt(e,t,r,n,o){return lt(e,t,r,We,Je(e,0,n),Je(e,n+1,-1),n,o)}function Mt(e,t,r){switch(function(e,t){return 45^Xe(e,0)?(((t<<2^Xe(e,0))<<2^Xe(e,1))<<2^Xe(e,2))<<2^Xe(e,3):0}(e,t)){case 5103:return Ne+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Ne+e+e;case 4855:return Ne+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return je+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ne+e+je+e+_e+e+e;case 5936:switch(Xe(e,t+11)){case 114:return Ne+e+_e+Ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+_e+Ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+_e+Ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ne+e+_e+e+e;case 6165:return Ne+e+_e+"flex-"+e+e;case 5187:return Ne+e+Ye(e,/(\w+).+(:[^]+)/,Ne+"box-$1$2"+_e+"flex-$1$2")+e;case 5443:return Ne+e+_e+"flex-item-"+Ye(e,/flex-|-self/g,"")+(Ue(e,/flex-|baseline/)?"":_e+"grid-row-"+Ye(e,/flex-|-self/g,""))+e;case 4675:return Ne+e+_e+"flex-line-pack"+Ye(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ne+e+_e+Ye(e,"shrink","negative")+e;case 5292:return Ne+e+_e+Ye(e,"basis","preferred-size")+e;case 6060:return Ne+"box-"+Ye(e,"-grow","")+Ne+e+_e+Ye(e,"grow","positive")+e;case 4554:return Ne+Ye(e,/([^-])(transform)/g,"$1"+Ne+"$2")+e;case 6187:return Ye(Ye(Ye(e,/(zoom-|grab)/,Ne+"$1"),/(image-set)/,Ne+"$1"),e,"")+e;case 5495:case 3959:return Ye(e,/(image-set\([^]*)/,Ne+"$1$`$1");case 4968:return Ye(Ye(e,/(.+:)(flex-)?(.*)/,Ne+"box-pack:$3"+_e+"flex-pack:$3"),/space-between/,"justify")+Ne+e+e;case 4200:if(!Ue(e,/flex-|baseline/))return _e+"grid-column-align"+Je(e,t)+e;break;case 2592:case 3360:return _e+Ye(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Ue(e.props,/grid-\w+-end/)}))?~Ke(e+(r=r[t].value),"span",0)?e:_e+Ye(e,"-start","")+e+_e+"grid-row-span:"+(~Ke(r,"span",0)?Ue(r,/\d+/):+Ue(r,/\d+/)-+Ue(e,/\d+/))+";":_e+Ye(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Ue(e.props,/grid-\w+-start/)}))?e:_e+Ye(Ye(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ye(e,/(.+)-inline(.+)/,Ne+"$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(Ze(e)-1-t>6)switch(Xe(e,t+1)){case 109:if(45!==Xe(e,t+4))break;case 102:return Ye(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+je+(108==Xe(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ke(e,"stretch",0)?Mt(Ye(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ye(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return _e+r+":"+n+s+(o?_e+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===Xe(e,t+6))return Ye(e,":",":"+Ne)+e;break;case 6444:switch(Xe(e,45===Xe(e,14)?18:11)){case 120:return Ye(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ne+(45===Xe(e,14)?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+_e+"$2box$3")+e;case 100:return Ye(e,":",":"+_e)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ye(e,"scroll-","scroll-snap-")+e}return e}function Rt(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Lt(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case We:return e.return=e.return||e.value;case Fe:return"";case $e:return e.return=e.value+"{"+Rt(e.children,n)+"}";case ze:if(!Ze(e.value=e.props.join(",")))return""}return Ze(r=Rt(e.children,n))?e.return=e.value+"{"+r+"}":""}function At(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case We:return void(e.return=Mt(e.value,e.length,r));case $e:return Rt([ut(e,{value:Ye(e.value,"@","@"+Ne)})],n);case ze:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Ue(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ct(ut(e,{props:[Ye(t,/:(read-\w+)/,":-moz-$1")]})),ct(ut(e,{props:[t]})),Be(e,{props:tt(r,n)});break;case"::placeholder":ct(ut(e,{props:[Ye(t,/:(plac\w+)/,":"+Ne+"input-$1")]})),ct(ut(e,{props:[Ye(t,/:(plac\w+)/,":-moz-$1")]})),ct(ut(e,{props:[Ye(t,/:(plac\w+)/,_e+"input-$1")]})),ct(ut(e,{props:[t]})),Be(e,{props:tt(r,n)})}return""}))}}var kt={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,scale: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},Ot="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",qt="active",Tt="data-styled-version",_t="6.3.9",jt="/*!sc*/\n",Nt="undefined"!=typeof window&&"undefined"!=typeof document,Ft=void 0===r.createContext,zt=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)),Wt={},$t=Object.freeze([]),Vt=Object.freeze({});function Ht(e,t,r){return void 0===r&&(r=Vt),e.theme!==r.theme&&e.theme||t||r.theme}var Bt=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),Gt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ut=/(^-|-$)/g;function Yt(e){return e.replace(Gt,"-").replace(Ut,"")}var Kt=/(a)(d)/gi,Xt=function(e){return String.fromCharCode(e+(e>25?39:97))};function Jt(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Xt(t%52)+r;return(Xt(t%52)+r).replace(Kt,"$1-$2")}var Zt,Qt=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},er=function(e){return Qt(5381,e)};function tr(e){return Jt(er(e)>>>0)}function rr(e){return"string"==typeof e&&!0}var nr="function"==typeof Symbol&&Symbol.for,or=nr?Symbol.for("react.memo"):60115,ir=nr?Symbol.for("react.forward_ref"):60112,ar={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},sr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},lr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ur=((Zt={})[ir]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zt[or]=lr,Zt);function cr(e){return("type"in(t=e)&&t.type.$$typeof)===or?lr:"$$typeof"in e?ur[e.$$typeof]:ar;var t}var dr=Object.defineProperty,pr=Object.getOwnPropertyNames,fr=Object.getOwnPropertySymbols,hr=Object.getOwnPropertyDescriptor,mr=Object.getPrototypeOf,gr=Object.prototype;function vr(e,t,r){if("string"!=typeof t){if(gr){var n=mr(t);n&&n!==gr&&vr(e,n,r)}var o=pr(t);fr&&(o=o.concat(fr(t)));for(var i=cr(e),a=cr(t),s=0;s<o.length;++s){var l=o[s];if(!(l in sr||r&&r[l]||a&&l in a||i&&l in i)){var u=hr(t,l);try{dr(e,l,u)}catch(e){}}}}return e}function yr(e){return"function"==typeof e}function br(e){return"object"==typeof e&&"styledComponentId"in e}function xr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Sr(e,t){return e.join("")}function wr(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Cr(e,t,r){if(void 0===r&&(r=!1),!r&&!wr(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Cr(e[n],t[n]);else if(wr(t))for(var n in t)e[n]=Cr(e[n],t[n]);return e}function Er(e,t){Object.defineProperty(e,"toString",{value:t})}function Ir(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return 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(", ")):""))}var Dr=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return e.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw Ir(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++,s++);s>0&&this._cGroup>e&&(this._cIndex+=s)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+jt;return t},e}(),Pr=new Map,Mr=new Map,Rr=1,Lr=function(e){if(Pr.has(e))return Pr.get(e);for(;Mr.has(Rr);)Rr++;var t=Rr++;return Pr.set(e,t),Mr.set(t,e),t},Ar=function(e,t){Rr=t+1,Pr.set(e,t),Mr.set(t,e)},kr="style[".concat(Ot,"][").concat(Tt,'="').concat(_t,'"]'),Or=new RegExp("^".concat(Ot,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),qr=function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType},Tr=function(e){if(!e)return document;if(qr(e))return e;if("getRootNode"in e){var t=e.getRootNode();if(qr(t))return t}return document},_r=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},jr=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(jt),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Or);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Ar(c,u),_r(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Nr=function(e){for(var t=Tr(e.options.target).querySelectorAll(kr),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Ot)!==qt&&(jr(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Fr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ot,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Ot,qt),n.setAttribute(Tt,_t);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},zr=function(){function e(e){this.element=Fr(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){var t;if(e.sheet)return e.sheet;for(var r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets,n=0,o=r.length;n<o;n++){var i=r[n];if(i.ownerNode===e)return i}throw Ir(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}(),Wr=function(){function e(e){this.element=Fr(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,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}(),$r=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):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}(),Vr=Nt,Hr={isServer:!Nt,useCSSOMInjection:!zt},Br=function(){function e(e,t,r){void 0===e&&(e=Vt),void 0===t&&(t={});var n=this;this.options=qe(qe({},Hr),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Nt&&Vr&&(Vr=!1,Nr(this)),Er(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Mr.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o);if(void 0===i||!i.size)return"continue";var a=t.getGroup(r);if(0===a.length)return"continue";var s=Ot+".g"+r+'[id="'+o+'"]',l="";i.forEach((function(e){e.length>0&&(l+=e+",")})),n+=a+s+'{content:"'+l+'"}'+jt},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Lr(e)},e.prototype.rehydrate=function(){!this.server&&Nt&&Nr(this)},e.prototype.reconstructWithOptions=function(t,r){void 0===r&&(r=!0);var n=new e(qe(qe({},this.options),t),this.gs,r&&this.names||void 0);return!this.server&&Nt&&t.target!==this.options.target&&Tr(this.options.target)!==Tr(t.target)&&Nr(n),n},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,r=e.target;return e.isServer?new $r(r):t?new zr(r):new Wr(r)}(this.options),new Dr(e)));var e},e.prototype.hasNameForId=function(e,t){var r,n;return null!==(n=null===(r=this.names.get(e))||void 0===r?void 0:r.has(t))&&void 0!==n&&n},e.prototype.registerName=function(e,t){Lr(e);var r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Lr(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Lr(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Gr=/&/g,Ur=47,Yr=42;function Kr(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,r=0,n=0,o=!1,i=0;i<t;i++){var a=e.charCodeAt(i);if(0!==n||o||a!==Ur||e.charCodeAt(i+1)!==Yr)if(o)a===Yr&&e.charCodeAt(i+1)===Ur&&(o=!1,i++);else if(34!==a&&39!==a||0!==i&&92===e.charCodeAt(i-1)){if(0===n)if(123===a)r++;else if(125===a&&--r<0)return!0}else 0===n?n=a:n===a&&(n=0);else o=!0,i++}return 0!==r||0!==n}function Xr(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=Xr(e.children,t)),e}))}var Jr=new Br,Zr=function(){var e,t,r,n=Vt,o=n.options,i=void 0===o?Vt:o,a=n.plugins,s=void 0===a?$t:a,l=function(r,n,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):r},u=s.slice();u.push((function(e){e.type===ze&&e.value.includes("&")&&(r||(r=new RegExp("\\".concat(t,"\\b"),"g")),e.props[0]=e.props[0].replace(Gr,t).replace(r,l))})),i.prefix&&u.push(At),u.push(Lt);var c,d=[],p=function(e){var t=Qe(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(u.concat((c=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&c(e)}))),f=function(n,o,a,s){void 0===o&&(o=""),void 0===a&&(a=""),void 0===s&&(s="&"),e=s,t=o,r=void 0;var l=function(e){if(!Kr(e))return e;for(var t=e.length,r="",n=0,o=0,i=0,a=!1,s=0;s<t;s++){var l=e.charCodeAt(s);if(0!==i||a||l!==Ur||e.charCodeAt(s+1)!==Yr)if(a)l===Yr&&e.charCodeAt(s+1)===Ur&&(a=!1,s++);else if(34!==l&&39!==l||0!==s&&92===e.charCodeAt(s-1)){if(0===i)if(123===l)o++;else if(125===l){if(--o<0){for(var u=s+1;u<t;){var c=e.charCodeAt(u);if(59===c||10===c)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,s=u-1,n=u;continue}0===o&&(r+=e.substring(n,s+1),n=s+1)}else 59===l&&0===o&&(r+=e.substring(n,s+1),n=s+1)}else 0===i?i=l:i===l&&(i=0);else a=!0,s++}if(n<t){var d=e.substring(n);Kr(d)||(r+=d)}return r}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,r=[],n=0,o=0,i=0,a=0;o<t;){var s=e.charCodeAt(o);if(34!==s&&39!==s||0!==o&&92===e.charCodeAt(o-1))if(0===i)if(s===Ur&&o+1<t&&e.charCodeAt(o+1)===Yr){for(o+=2;o+1<t&&(e.charCodeAt(o)!==Yr||e.charCodeAt(o+1)!==Ur);)o++;o+=2}else if(40===s&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))a=1,o++;else if(a>0)41===s?a--:40===s&&a++,o++;else if(s===Yr&&o+1<t&&e.charCodeAt(o+1)===Ur)o>n&&r.push(e.substring(n,o)),n=o+=2;else if(s===Ur&&o+1<t&&e.charCodeAt(o+1)===Ur){for(o>n&&r.push(e.substring(n,o));o<t&&10!==e.charCodeAt(o);)o++;n=o}else o++;else o++;else 0===i?i=s:i===s&&(i=0),o++}return 0===n?e:(n<t&&r.push(e.substring(n)),r.join(""))}(n)),u=Ct(a||o?"".concat(a," ").concat(o," { ").concat(l," }"):l);return i.namespace&&(u=Xr(u,i.namespace)),d=[],Rt(u,p),d};return f.hash=s.length?s.reduce((function(e,t){return t.name||Ir(15),Qt(e,t.name)}),5381).toString():"",f}(),Qr={shouldForwardProp:void 0,styleSheet:Jr,stylis:Zr},en=Ft?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Qr)}}:r.createContext(Qr);function tn(){return Ft?Qr:r.useContext(en)}en.Consumer;var rn=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Zr);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Er(this,(function(){throw Ir(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Zr),this.name+e.hash},e}();function nn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in kt||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var on=function(e){return e>="A"&&e<="Z"};function an(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;on(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var sn=function(e){return null==e||!1===e||""===e},ln=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!sn(n)&&(Array.isArray(n)&&n.isCss||yr(n)?t.push("".concat(an(r),":"),n,";"):wr(n)?t.push.apply(t,Te(Te(["".concat(r," {")],ln(n),!1),["}"],!1)):t.push("".concat(an(r),": ").concat(nn(r,n),";")))}return t};function un(e,t,r,n,o){if(void 0===o&&(o=[]),"string"==typeof e)return e&&o.push(e),o;if(sn(e))return o;if(br(e))return o.push(".".concat(e.styledComponentId)),o;var i;if(yr(e))return!yr(i=e)||i.prototype&&i.prototype.isReactComponent||!t?(o.push(e),o):un(e(t),t,r,n,o);if(e instanceof rn)return r?(e.inject(r,n),o.push(e.getName(n))):o.push(e),o;if(wr(e)){for(var a=ln(e),s=0;s<a.length;s++)o.push(a[s]);return o}if(!Array.isArray(e))return o.push(e.toString()),o;for(s=0;s<e.length;s++)un(e[s],t,r,n,o);return o}function cn(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(yr(r)&&!br(r))return!1}return!0}var dn=er(_t),pn=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&cn(e),this.componentId=t,this.baseHash=Qt(dn,t),this.baseStyle=r,Br.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=xr(n,this.staticRulesId);else{var o=Sr(un(this.rules,e,t,r)),i=Jt(Qt(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=xr(n,i),this.staticRulesId=i}else{for(var s=Qt(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=Sr(un(c,e,t,r));s=Qt(Qt(s,String(u)),d),l+=d}}if(l){var p=Jt(s>>>0);if(!t.hasNameForId(this.componentId,p)){var f=r(l,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}n=xr(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(Lr(this.componentId)):""}},e}(),fn=Ft?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:r.createContext(void 0);fn.Consumer;var hn={};function mn(e,t,o){var i=br(e),a=e,s=!rr(e),l=t.attrs,u=void 0===l?$t:l,c=t.componentId,d=void 0===c?function(e,t){var r="string"!=typeof e?"sc":Yt(e);hn[r]=(hn[r]||0)+1;var n="".concat(r,"-").concat(tr(_t+r+hn[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):c,p=t.displayName,f=void 0===p?function(e){return rr(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,h=t.displayName&&t.componentId?"".concat(Yt(t.displayName),"-").concat(t.componentId):t.componentId||d,m=i&&a.attrs?a.attrs.concat(u).filter(Boolean):u,g=t.shouldForwardProp;if(i&&a.shouldForwardProp){var v=a.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;g=function(e,t){return v(e,t)&&y(e,t)}}else g=v}var b=new pn(o,h,i?a.componentStyle:void 0);function x(e,t){return function(e,t,o){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,u=e.styledComponentId,c=e.target,d=Ft?void 0:r.useContext(fn),p=tn(),f=e.shouldForwardProp||p.shouldForwardProp,h=Ht(t,d,s)||(Ft?void 0:Vt),m=function(e,t,r){for(var n,o=qe(qe({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=yr(n=e[i])?n(o):n;for(var s in a)"className"===s?o.className=xr(o.className,a[s]):"style"===s?o.style=qe(qe({},o.style),a[s]):o[s]=a[s]}return"className"in t&&"string"==typeof t.className&&(o.className=xr(o.className,t.className)),o}(i,t,h),g=m.as||c,v={};for(var y in m)void 0===m[y]||"$"===y[0]||"as"===y||"theme"===y&&m.theme===h||("forwardedAs"===y?v.as=m.forwardedAs:f&&!f(y,g)||(v[y]=m[y]));var b=function(e,t){var r=tn();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(a,m),x=b.className,S=b.css,w=xr(l,u);x&&(w+=" "+x),m.className&&(w+=" "+m.className),v[rr(g)&&!Bt.has(g)?"class":"className"]=w,o&&(v.ref=o);var C=n(g,v);return Ft&&S?r.createElement(r.Fragment,null,r.createElement("style",{precedence:"styled-components",href:"sc-".concat(u,"-").concat(x),children:S}),C):C}(S,e,t)}x.displayName=f;var S=r.forwardRef(x);return S.attrs=m,S.componentStyle=b,S.displayName=f,S.shouldForwardProp=g,S.foldedComponentIds=i?xr(a.foldedComponentIds,a.styledComponentId):"",S.styledComponentId=h,S.target=i?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Cr(e,o[n],!0);return e}({},a.defaultProps,e):e}}),Er(S,(function(){return".".concat(S.styledComponentId)})),s&&vr(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function gn(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var vn=function(e){return Object.assign(e,{isCss:!0})};function yn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(yr(e)||wr(e))return vn(un(gn($t,Te([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?un(n):vn(un(gn(n,t)))}function bn(e,t,r){if(void 0===r&&(r=Vt),!t)throw Ir(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,yn.apply(void 0,Te([n],o,!1)))};return n.attrs=function(n){return bn(e,t,qe(qe({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return bn(e,t,qe(qe({},r),n))},n}var xn=function(e){return bn(mn,e)},Sn=xn;Bt.forEach((function(e){Sn[e]=xn(e)}));var wn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=cn(e),Br.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Sr(un(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&Br.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?r.hasNameForId(o,o)||this.createStyles(e,t,r,n):(this.removeStyles(e,r),this.createStyles(e,t,r,n))},e}();function Cn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Sr(yn.apply(void 0,Te([e],t,!1))),o=tr(n);return new rn(o,n)}function En(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function In(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Dn={exports:{}};function Pn(){}function Mn(){}Mn.resetWarningCache=Pn;Dn.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Mn,resetWarningCache:Pn};return r.PropTypes=r,r}();var Rn=En(Dn.exports);function Ln(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}Ln.propTypes={children:Rn.node,injectFirst:Rn.bool};const An=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=yn.apply(void 0,Te([e],t,!1)),i="sc-global-".concat(tr(JSON.stringify(o))),a=new wn(o,i),s=new WeakMap,l=function(e){var t=tn(),n=Ft?void 0:r.useContext(fn),o=s.get(t.styleSheet);if(void 0===o&&(o=t.styleSheet.allocateGSInstance(i),s.set(t.styleSheet,o)),("undefined"==typeof window||!t.styleSheet.server)&&u(o,e,t.styleSheet,n,t.stylis),Ft||r.useLayoutEffect((function(){return t.styleSheet.server||u(o,e,t.styleSheet,n,t.stylis),function(){var e;a.removeStyles(o,t.styleSheet),e=t.styleSheet.options.target,"undefined"!=typeof document&&(null!=e?e:document).querySelectorAll('style[data-styled-global="'.concat(i,'"]')).forEach((function(e){return e.remove()}))}}),[o,e,t.styleSheet,n,t.stylis]),Ft){var l=i+o,c="undefined"==typeof window?t.styleSheet.getTag().getGroup(Lr(l)):"";if(c)return r.createElement("style",{key:"".concat(i,"-").concat(o),"data-styled-global":i,children:c})}return null};function u(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,Wt,r,o);else{var i=qe(qe({},t),{theme:Ht(t,n,l.defaultProps)});a.renderStyles(e,i,r,o)}}return r.memo(l)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
|
|
8
8
|
/**
|
|
9
9
|
* @mui/styled-engine-sc v6.4.3
|
|
10
10
|
*
|
|
@@ -12,7 +12,7 @@ System.register(["react","react-dom","@nebula.js/stardust","picasso-plugin-q","p
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
function kn(e,t){let r;return r=t?Sn(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Sn(e),r}function On(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function qn(e){return e}An.propTypes={defaultTheme:Rn.object,styles:Rn.oneOfType([Rn.array,Rn.string,Rn.object,Rn.func])};var Tn=Object.freeze({__proto__:null,GlobalStyles:An,StyledEngineProvider:Ln,ThemeContext:fn,css:yn,default:kn,internal_mutateStyles:On,internal_processStyles:function(e,t){return On(e,t)},internal_serializeStyles:qn,keyframes:Cn});function _n(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function jn(e){if(o.isValidElement(e)||!_n(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=jn(e[r])})),t}function Nn(e,t,r={clone:!0}){const n=r.clone?ke({},e):e;return _n(e)&&_n(t)&&Object.keys(t).forEach((i=>{o.isValidElement(t[i])?n[i]=t[i]:_n(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&_n(e[i])?n[i]=Nn(e[i],t[i],r):r.clone?n[i]=_n(t[i])?jn(t[i]):t[i]:n[i]=t[i]})),n}var Fn=Object.freeze({__proto__:null,default:Nn,isPlainObject:_n});const zn=["values","unit","step"];function Wn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Oe(e,zn),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>ke({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return ke({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const $n={borderRadius:4};function Hn(e,t){return t?Nn(e,t,{clone:!1}):e}const Vn={xs:0,sm:600,md:900,lg:1200,xl:1536},Bn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vn[e]}px)`};function Gn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Bn;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Bn;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Vn).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Un(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function Yn(e){if("string"!=typeof e)throw new Error(Re(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Kn=Object.freeze({__proto__:null,default:Yn});function Xn(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Jn(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Xn(e,r)||n,t&&(o=t(o,n,e)),o}function Zn(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Xn(e.theme,n)||{};return Gn(e,i,(e=>{let n=Jn(a,o,e);return e===n&&"string"==typeof e&&(n=Jn(a,o,`${t}${"default"===e?"":Yn(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Qn={m:"margin",p:"padding"},eo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},to={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ro=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!to[e])return[e];e=to[e]}const[t,r]=e.split(""),n=Qn[t],o=eo[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),no=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],oo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function io(e,t,r,n){var o;const i=null!=(o=Xn(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function ao(e){return io(e,"spacing",8)}function so(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function lo(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=so(t,r),e)),{})}(ro(r),n);return Gn(e,e[r],o)}function uo(e,t){const r=ao(e.theme);return Object.keys(e).map((n=>lo(e,t,n,r))).reduce(Hn,{})}function co(e){return uo(e,no)}function po(e){return uo(e,oo)}function fo(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Hn(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ho(e){return"number"!=typeof e?e:`${e}px solid`}function mo(e,t){return Zn({prop:e,themeKey:"borders",transform:t})}co.propTypes={},co.filterProps=no,po.propTypes={},po.filterProps=oo;const go=mo("border",ho),vo=mo("borderTop",ho),yo=mo("borderRight",ho),bo=mo("borderBottom",ho),xo=mo("borderLeft",ho),So=mo("borderColor"),wo=mo("borderTopColor"),Co=mo("borderRightColor"),Eo=mo("borderBottomColor"),Io=mo("borderLeftColor"),Do=mo("outline",ho),Po=mo("outlineColor"),Mo=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=io(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:so(t,e)});return Gn(e,e.borderRadius,r)}return null};Mo.propTypes={},Mo.filterProps=["borderRadius"],fo(go,vo,yo,bo,xo,So,wo,Co,Eo,Io,Mo,Do,Po);const Ro=e=>{if(void 0!==e.gap&&null!==e.gap){const t=io(e.theme,"spacing",8),r=e=>({gap:so(t,e)});return Gn(e,e.gap,r)}return null};Ro.propTypes={},Ro.filterProps=["gap"];const Lo=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=io(e.theme,"spacing",8),r=e=>({columnGap:so(t,e)});return Gn(e,e.columnGap,r)}return null};Lo.propTypes={},Lo.filterProps=["columnGap"];const Ao=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=io(e.theme,"spacing",8),r=e=>({rowGap:so(t,e)});return Gn(e,e.rowGap,r)}return null};Ao.propTypes={},Ao.filterProps=["rowGap"];function ko(e,t){return"grey"===t?t:e}fo(Ro,Lo,Ao,Zn({prop:"gridColumn"}),Zn({prop:"gridRow"}),Zn({prop:"gridAutoFlow"}),Zn({prop:"gridAutoColumns"}),Zn({prop:"gridAutoRows"}),Zn({prop:"gridTemplateColumns"}),Zn({prop:"gridTemplateRows"}),Zn({prop:"gridTemplateAreas"}),Zn({prop:"gridArea"}));function Oo(e){return e<=1&&0!==e?100*e+"%":e}fo(Zn({prop:"color",themeKey:"palette",transform:ko}),Zn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ko}),Zn({prop:"backgroundColor",themeKey:"palette",transform:ko}));const qo=Zn({prop:"width",transform:Oo}),To=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Vn[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Oo(t)}};return Gn(e,e.maxWidth,t)}return null};To.filterProps=["maxWidth"];const _o=Zn({prop:"minWidth",transform:Oo}),jo=Zn({prop:"height",transform:Oo}),No=Zn({prop:"maxHeight",transform:Oo}),Fo=Zn({prop:"minHeight",transform:Oo});Zn({prop:"size",cssProperty:"width",transform:Oo}),Zn({prop:"size",cssProperty:"height",transform:Oo});fo(qo,To,_o,jo,No,Fo,Zn({prop:"boxSizing"}));const zo={border:{themeKey:"borders",transform:ho},borderTop:{themeKey:"borders",transform:ho},borderRight:{themeKey:"borders",transform:ho},borderBottom:{themeKey:"borders",transform:ho},borderLeft:{themeKey:"borders",transform:ho},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ho},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Mo},color:{themeKey:"palette",transform:ko},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ko},backgroundColor:{themeKey:"palette",transform:ko},p:{style:po},pt:{style:po},pr:{style:po},pb:{style:po},pl:{style:po},px:{style:po},py:{style:po},padding:{style:po},paddingTop:{style:po},paddingRight:{style:po},paddingBottom:{style:po},paddingLeft:{style:po},paddingX:{style:po},paddingY:{style:po},paddingInline:{style:po},paddingInlineStart:{style:po},paddingInlineEnd:{style:po},paddingBlock:{style:po},paddingBlockStart:{style:po},paddingBlockEnd:{style:po},m:{style:co},mt:{style:co},mr:{style:co},mb:{style:co},ml:{style:co},mx:{style:co},my:{style:co},margin:{style:co},marginTop:{style:co},marginRight:{style:co},marginBottom:{style:co},marginLeft:{style:co},marginX:{style:co},marginY:{style:co},marginInline:{style:co},marginInlineStart:{style:co},marginInlineEnd:{style:co},marginBlock:{style:co},marginBlockStart:{style:co},marginBlockEnd:{style:co},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ro},rowGap:{style:Ao},columnGap:{style:Lo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Oo},maxWidth:{style:To},minWidth:{transform:Oo},height:{transform:Oo},maxHeight:{transform:Oo},minHeight:{transform:Oo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Wo(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Xn(r,s)||{};if(u)return u(o);return Gn(o,t,(t=>{let r=Jn(c,l,t);return t===r&&"string"==typeof t&&(r=Jn(c,l,`${e}${"default"===t?"":Yn(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:zo;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{});return r||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(n).forEach((r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])u=Hn(u,e(r,o,i,s));else{const e=Gn({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?u=Hn(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=Hn(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":Un(l,u)}:Un(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const $o=Wo();function Ho(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}$o.filterProps=["sx"];const Vo=["breakpoints","palette","spacing","shape"];function Bo(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Oe(e,Vo),s=Wn(r),l=function(e=8){if(e.mui)return e;const t=ao({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Nn({breakpoints:s,direction:"ltr",components:{},palette:ke({mode:"light"},n),spacing:l,shape:ke({},$n,i)},a);return u.applyStyles=Ho,u=t.reduce(((e,t)=>Nn(e,t)),u),u.unstable_sxConfig=ke({},zo,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return $o({sx:e,theme:this})},u}var Go=Object.freeze({__proto__:null,default:Bo,private_createBreakpoints:Wn,unstable_applyStyles:Ho});function Uo(e=null){const t=o.useContext(fn);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Yo=Bo();function Ko(e=Yo){return Uo(e)}var Xo={exports:{}},Jo={},Zo=r,Qo=Symbol.for("react.element"),ei=Symbol.for("react.fragment"),ti=Object.prototype.hasOwnProperty,ri=Zo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ni={key:!0,ref:!0,__self:!0,__source:!0};function oi(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)ti.call(t,n)&&!ni.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Qo,type:e,key:i,ref:a,props:o,_owner:ri.current}}Jo.Fragment=ei,Jo.jsx=oi,Jo.jsxs=oi,Xo.exports=Jo;var ii=Xo.exports;function ai(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function si({styles:e,themeId:t,defaultTheme:r={}}){const n=Ko(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>ai("function"==typeof e?e(o):e))):ai(i)),ii.jsx(An,{styles:i})}const li=["sx"];function ui(e){const{sx:t}=e,r=Oe(e,li),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:zo;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return _n(r)?ke({},n,r):n}:ke({},n,t),ke({},o,{sx:i})}var ci=Object.freeze({__proto__:null,default:$o,extendSxProp:ui,unstable_createStyleFunctionSx:Wo,unstable_defaultSxConfig:zo});const di=e=>e,pi=(()=>{let e=di;return{configure(t){e=t},generate:t=>e(t),reset(){e=di}}})();function fi(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=fi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function hi(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=fi(e))&&(n&&(n+=" "),n+=t);return n}const mi=["className","component"];const gi={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function vi(e,t,r="Mui"){const n=gi[t];return n?`${r}-${n}`:`${pi.generate(e)}-${t}`}function yi(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=vi(e,t,r)})),n}var bi={exports:{}},xi={},Si=Symbol.for("react.transitional.element"),wi=Symbol.for("react.portal"),Ci=Symbol.for("react.fragment"),Ei=Symbol.for("react.strict_mode"),Ii=Symbol.for("react.profiler"),Di=Symbol.for("react.consumer"),Pi=Symbol.for("react.context"),Mi=Symbol.for("react.forward_ref"),Ri=Symbol.for("react.suspense"),Li=Symbol.for("react.suspense_list"),Ai=Symbol.for("react.memo"),ki=Symbol.for("react.lazy"),Oi=Symbol.for("react.offscreen"),qi=Symbol.for("react.client.reference");function Ti(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Si:switch(e=e.type){case Ci:case Ii:case Ei:case Ri:case Li:return e;default:switch(e=e&&e.$$typeof){case Pi:case Mi:case ki:case Ai:case Di:return e;default:return t}}case wi:return t}}}xi.ContextConsumer=Di,xi.ContextProvider=Pi,xi.Element=Si,xi.ForwardRef=Mi,xi.Fragment=Ci,xi.Lazy=ki,xi.Memo=Ai,xi.Portal=wi,xi.Profiler=Ii,xi.StrictMode=Ei,xi.Suspense=Ri,xi.SuspenseList=Li,xi.isContextConsumer=function(e){return Ti(e)===Di},xi.isContextProvider=function(e){return Ti(e)===Pi},xi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Si},xi.isForwardRef=function(e){return Ti(e)===Mi},xi.isFragment=function(e){return Ti(e)===Ci},xi.isLazy=function(e){return Ti(e)===ki},xi.isMemo=function(e){return Ti(e)===Ai},xi.isPortal=function(e){return Ti(e)===wi},xi.isProfiler=function(e){return Ti(e)===Ii},xi.isStrictMode=function(e){return Ti(e)===Ei},xi.isSuspense=function(e){return Ti(e)===Ri},xi.isSuspenseList=function(e){return Ti(e)===Li},xi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ci||e===Ii||e===Ei||e===Ri||e===Li||e===Oi||"object"==typeof e&&null!==e&&(e.$$typeof===ki||e.$$typeof===Ai||e.$$typeof===Pi||e.$$typeof===Di||e.$$typeof===Mi||e.$$typeof===qi||void 0!==e.getModuleId)},xi.typeOf=Ti,bi.exports=xi;var _i=bi.exports;const ji=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ni(e){const t=`${e}`.match(ji);return t&&t[1]||""}function Fi(e,t=""){return e.displayName||e.name||Ni(e)||t}function zi(e,t,r){const n=Fi(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Wi=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Fi(e,"Component");if("object"==typeof e)switch(e.$$typeof){case _i.ForwardRef:return zi(e,e.render,"ForwardRef");case _i.Memo:return zi(e,e.type,"memo");default:return}}},getFunctionName:Ni});function $i(e,t){const r=ke({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=ke({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=ke({},i),Object.keys(o).forEach((e=>{r[n][e]=$i(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Hi="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function Vi(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Bi=Object.freeze({__proto__:null,default:Vi});function Gi(e){if(e.type)return e;if("#"===e.charAt(0))return Gi(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Re(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Re(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Ui(e,t){return e=Gi(e),t=function(e,t=0,r=1){return Vi(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Yi(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Ki(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Xi(e){return e&&e.ownerDocument||document}function Ji(e){return Xi(e).defaultView||window}function Zi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Qi=0;const ea=o["useId".toString()];function ta(e){if(void 0!==ea){return ea()}return function(e){const[t,r]=o.useState(e),n=t;return o.useEffect((()=>{null==t&&(Qi+=1,r(`mui-${Qi}`))}),[t]),n}(e)}function ra({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=o.useRef(void 0!==e),[a,s]=o.useState(t);return[i?e:a,o.useCallback((e=>{i||s(e)}),[])]}function na(e){const t=o.useRef(e);return Hi((()=>{t.current=e})),o.useRef(((...e)=>(0,t.current)(...e))).current}function oa(...e){return o.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Zi(e,t)}))}),e)}const ia={};const aa=[];class sa{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new sa}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function la(){const e=function(e,t){const r=o.useRef(ia);return r.current===ia&&(r.current=e(t)),r}(sa.create).current;return function(e){o.useEffect(e,aa)}(e.disposeEffect),e}let ua=!0,ca=!1;const da=new sa,pa={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function fa(e){e.metaKey||e.altKey||e.ctrlKey||(ua=!0)}function ha(){ua=!1}function ma(){"hidden"===this.visibilityState&&ca&&(ua=!0)}function ga(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ua||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!pa[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function va(){const e=o.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",fa,!0),t.addEventListener("mousedown",ha,!0),t.addEventListener("pointerdown",ha,!0),t.addEventListener("touchstart",ha,!0),t.addEventListener("visibilitychange",ma,!0))}),[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ga(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ca=!0,da.start(100,(()=>{ca=!1})),t.current=!1,!0)},ref:e}}function ya(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ba(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function xa(e){return"string"==typeof e}function Sa(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function wa(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Ca=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ea(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Oe(e,Ca),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=hi(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=ke({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=ke({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Sa(ke({},o,n)),s=wa(n),l=wa(o),u=t(a),c=hi(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=ke({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=ke({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(ke({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||xa(e)?t:ke({},t,{ownerState:ke({},t.ownerState,r)})}(r,ke({},l,{ref:oa(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Ia(e){var t;return parseInt(o.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Da=o.createContext(null);function Pa(){return o.useContext(Da)}var Ma="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ra(e){const{children:t,theme:r}=e,n=Pa(),i=o.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return ke({},e,t)}(n,r);return null!=e&&(e[Ma]=null!==n),e}),[r,n]);return ii.jsx(Da.Provider,{value:i,children:t})}const La=["value"],Aa=o.createContext();function ka(e){let{value:t}=e,r=Oe(e,La);return ii.jsx(Aa.Provider,ke({value:null==t||t},r))}const Oa=o.createContext(void 0);function qa({value:e,children:t}){return ii.jsx(Oa.Provider,{value:e,children:t})}function Ta({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?$i(o.defaultProps,n):o.styleOverrides||o.variants?n:$i(o,n)}({props:e,name:t,theme:{components:o.useContext(Oa)}})}const _a={};function ja(e,t,r,n=!1){return o.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?ke({},t,{[e]:i}):i;return n?()=>a:a}return ke({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Na(e){const{children:t,theme:r,themeId:n}=e,o=Uo(_a),i=Pa()||_a,a=ja(n,o,r),s=ja(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=Uo(),r=ta()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Hi((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}}),[o,r]),o?ii.jsx(si,{styles:o}):null}(a);return ii.jsx(Ra,{theme:s,children:ii.jsx(fn.Provider,{value:a,children:ii.jsx(ka,{value:l,children:ii.jsxs(qa,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Fa(e){return Fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fa(e)}function za(e){var t=function(e,t){if("object"!=Fa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Fa(t)?t:t+""}function Wa(e,t){return ke({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var $a={},Ha={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Ha);var Va=Ha.exports,Ba=In(Le),Ga=In(Bi),Ua=Va;Object.defineProperty($a,"__esModule",{value:!0});var Ya=$a.alpha=ss;$a.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=rs(e),a=rs(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return os({type:"rgb",values:s})},$a.colorChannel=void 0;var Ka=$a.darken=ls;$a.decomposeColor=rs,$a.emphasize=cs;var Xa=$a.getContrastRatio=function(e,t){const r=as(e),n=as(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};$a.getLuminance=as,$a.hexToRgb=ts,$a.hslToRgb=is;var Ja=$a.lighten=us;$a.private_safeAlpha=function(e,t,r){try{return ss(e,t)}catch(t){return e}},$a.private_safeColorChannel=void 0,$a.private_safeDarken=function(e,t,r){try{return ls(e,t)}catch(t){return e}},$a.private_safeEmphasize=function(e,t,r){try{return cs(e,t)}catch(t){return e}},$a.private_safeLighten=function(e,t,r){try{return us(e,t)}catch(t){return e}},$a.recomposeColor=os,$a.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=rs(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Za=Ua(Ba),Qa=Ua(Ga);function es(e,t=0,r=1){return(0,Qa.default)(e,t,r)}function ts(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function rs(e){if(e.type)return e;if("#"===e.charAt(0))return rs(ts(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Za.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Za.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const ns=e=>{const t=rs(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};$a.colorChannel=ns;function os(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function is(e){e=rs(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),os({type:s,values:l})}function as(e){let t="hsl"===(e=rs(e)).type||"hsla"===e.type?rs(is(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ss(e,t){return e=rs(e),t=es(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,os(e)}function ls(e,t){if(e=rs(e),t=es(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return os(e)}function us(e,t){if(e=rs(e),t=es(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return os(e)}function cs(e,t=.15){return as(e)>.5?ls(e,t):us(e,t)}$a.private_safeColorChannel=(e,t)=>{try{return ns(e)}catch(t){return e}};const ds=["mode","contrastThreshold","tonalOffset"],ps={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:K.white,default:K.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},fs={text:{primary:K.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:K.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function hs(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Ja(e.main,o):"dark"===t&&(e.dark=Ka(e.main,i)))}function ms(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Oe(e,ds),i=e.primary||function(e="light"){return"dark"===e?{main:le,light:se,dark:ue}:{main:ce,light:ue,dark:de}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:re,light:te,dark:oe}:{main:ie,light:ne,dark:ae}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Z,light:X,dark:Q}:{main:Q,light:J,dark:ee}}(t),l=e.info||function(e="light"){return"dark"===e?{main:fe,light:pe,dark:me}:{main:me,light:he,dark:ge}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ye,light:ve,dark:xe}:{main:Se,light:be,dark:we}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ee,light:Ce,dark:De}:{main:"#ed6c02",light:Ie,dark:Pe}}(t);function d(e){return Xa(e,fs.text.primary)>=r?fs.text.primary:ps.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=ke({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Re(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Re(12,t?` (${t})`:"",JSON.stringify(e.main)));return hs(e,"light",o,n),hs(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:fs,light:ps};return Nn(ke({common:ke({},K),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Me,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const gs=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const vs={textTransform:"uppercase"},ys='"Roboto", "Helvetica", "Arial", sans-serif';function bs(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=ys,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Oe(r,gs),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return ke({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===ys?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,vs),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,vs),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nn(ke({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function xs(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Ss=["none",xs(0,2,1,-1,0,1,1,0,0,1,3,0),xs(0,3,1,-2,0,2,2,0,0,1,5,0),xs(0,3,3,-2,0,3,4,0,0,1,8,0),xs(0,2,4,-1,0,4,5,0,0,1,10,0),xs(0,3,5,-1,0,5,8,0,0,1,14,0),xs(0,3,5,-1,0,6,10,0,0,1,18,0),xs(0,4,5,-2,0,7,10,1,0,2,16,1),xs(0,5,5,-3,0,8,10,1,0,3,14,2),xs(0,5,6,-3,0,9,12,1,0,3,16,2),xs(0,6,6,-3,0,10,14,1,0,4,18,3),xs(0,6,7,-4,0,11,15,1,0,4,20,3),xs(0,7,8,-4,0,12,17,2,0,5,22,4),xs(0,7,8,-4,0,13,19,2,0,5,24,4),xs(0,7,9,-4,0,14,21,2,0,5,26,4),xs(0,8,9,-5,0,15,22,2,0,6,28,5),xs(0,8,10,-5,0,16,24,2,0,6,30,5),xs(0,8,11,-5,0,17,26,2,0,6,32,5),xs(0,9,11,-5,0,18,28,2,0,7,34,6),xs(0,9,12,-6,0,19,29,2,0,7,36,6),xs(0,10,13,-6,0,20,31,3,0,8,38,7),xs(0,10,13,-6,0,21,33,3,0,8,40,7),xs(0,10,14,-6,0,22,35,3,0,8,42,7),xs(0,11,14,-7,0,23,36,3,0,9,44,8),xs(0,11,15,-7,0,24,38,3,0,9,46,8)],ws=["duration","easing","delay"],Cs={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Es={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Is(e){return`${Math.round(e)}ms`}function Ds(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ps(e){const t=ke({},Cs,e.easing),r=ke({},Es,e.duration);return ke({getAutoHeightDuration:Ds,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Oe(n,ws),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Is(o)} ${i} ${"string"==typeof a?a:Is(a)}`)).join(",")}},e,{easing:t,duration:r})}const Ms={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Rs=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ls(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Oe(e,Rs);if(e.vars&&void 0===e.generateCssVars)throw new Error(Re(18));const s=ms(n),l=Bo(e);let u=Nn(l,{mixins:Wa(l.breakpoints,r),palette:s,shadows:Ss.slice(),typography:bs(s,i),transitions:Ps(o),zIndex:ke({},Ms)});return u=Nn(u,a),u=t.reduce(((e,t)=>Nn(e,t)),u),u.unstable_sxConfig=ke({},zo,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return $o({sx:e,theme:this})},u}const As=Ls();function ks(){const e=Ko(As);return e[Ae]||e}var Os,qs={},Ts={exports:{}};function _s(){return Os||(Os=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ts)),Ts.exports}var js,Ns={exports:{}};function Fs(){return js||(js=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Ns)),Ns.exports}var zs=In(Tn),Ws=In(Fn),$s=In(Kn),Hs=In(Wi),Vs=In(Go),Bs=In(ci),Gs=Va;Object.defineProperty(qs,"__esModule",{value:!0});var Us=qs.default=function(e={}){const{themeId:t,defaultTheme:r=al,rootShouldForwardProp:n=ol,slotShouldForwardProp:o=ol}=e,i=e=>(0,Qs.default)((0,Ys.default)({},e,{theme:ll((0,Ys.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Xs.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=ul(sl(l))}=a,p=(0,Ks.default)(a,rl),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=ol;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,Xs.default)(e,(0,Ys.default)({shouldForwardProp:g,label:undefined},p)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Js.isPlainObject)(e)?n=>{const o=ll({theme:n.theme,defaultTheme:r,themeId:t});return cl(e,(0,Ys.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,b=(n,...o)=>{let a=y(n);const l=o?o.map(y):[];s&&d&&l.push((e=>{const n=ll((0,Ys.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=cl(r,(0,Ys.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var n;const o=ll((0,Ys.default)({},e,{defaultTheme:r,themeId:t}));return cl({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Ys.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=v(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(b.withConfig=v.withConfig),b}};qs.shouldForwardProp=ol,qs.systemDefaultTheme=void 0;var Ys=Gs(_s()),Ks=Gs(Fs()),Xs=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=nl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(zs),Js=Ws;Gs($s),Gs(Hs);var Zs=Gs(Vs),Qs=Gs(Bs);const el=["ownerState"],tl=["variants"],rl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nl(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(nl=function(e){return e?r:t})(e)}function ol(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function il(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const al=qs.systemDefaultTheme=(0,Zs.default)(),sl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ll({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function ul(e){return e?(t,r)=>r[e]:null}function cl(e,t,r){let{ownerState:n}=t,o=(0,Ks.default)(t,el);const i="function"==typeof e?e((0,Ys.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>cl(e,(0,Ys.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Ks.default)(i,tl);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Ys.default)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,Ys.default)({ownerState:n},o,n)):e.style;t.push(r?il((0,Xs.internal_serializeStyles)(i),r):i)}})),t}return r?il((0,Xs.internal_serializeStyles)(i),r):i}function dl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const pl=e=>dl(e)&&"classes"!==e,fl=Us({themeId:Ae,defaultTheme:As,rootShouldForwardProp:pl}),hl=["theme"];function ml(e){let{theme:t}=e,r=Oe(e,hl);const n=t[Ae];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=ke({},n,{vars:null}):t&&!t.vars&&(o=ke({},t,{vars:null}))),ii.jsx(Na,ke({},r,{themeId:n?Ae:void 0,theme:o}))}const gl=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function vl(e){return Ta(e)}function yl(e){return vi("MuiSvgIcon",e)}yi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const bl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],xl=fl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Yn(r.color)}`],t[`fontSize${Yn(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),Sl=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiSvgIcon"}),{children:n,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,f=Oe(r,bl),h=o.isValidElement(n)&&"svg"===n.type,m=ke({},r,{color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:h}),g={};c||(g.viewBox=p);const v=(e=>{const{color:t,fontSize:r,classes:n}=e;return ba({root:["root","inherit"!==t&&`color${Yn(t)}`,`fontSize${Yn(r)}`]},yl,n)})(m);return ii.jsxs(xl,ke({as:s,className:hi(v.root,i),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},g,f,h&&n.props,{ownerState:m,children:[h?n.props.children:n,d?ii.jsx("title",{children:d}):null]}))}));function wl(e,t){function r(r,n){return ii.jsx(Sl,ke({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Sl.muiName,o.memo(o.forwardRef(r))}function Cl(e,t){return Cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cl(e,t)}function El(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cl(e,t)}Sl.muiName="SvgIcon";var Il=!1,Dl=r.createContext(null),Pl="unmounted",Ml="exited",Rl="entering",Ll="entered",Al="exiting",kl=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Ml,n.appearStatus=Rl):o=Ll:o=t.unmountOnExit||t.mountOnEnter?Pl:Ml,n.state={status:o},n.nextCallback=null,n}El(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Pl?{status:Ml}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Rl&&r!==Ll&&(t=Rl):r!==Rl&&r!==Ll||(t=Al)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Rl){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ml&&this.setState({status:Pl})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[E.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Il?this.safeSetState({status:Ll},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Rl},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ll},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:E.findDOMNode(this);t&&!Il?(this.props.onExit(n),this.safeSetState({status:Al},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Ml},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Ml},(function(){e.props.onExited(n)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Pl)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var o=Oe(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(Dl.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function Ol(){}function ql(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tl(e,t){var r=Object.create(null);return e&&s.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&i(e)?t(e):e}(e)})),r}function _l(e,t,r){return null!=r[t]?r[t]:e.props[t]}function jl(e,t,r){var n=Tl(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(s){var l=o[s];if(i(l)){var u=s in t,c=s in n,d=t[s],p=i(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&i(d)&&(o[s]=a(l,{onExited:r.bind(null,l),in:d.props.in,exit:_l(l,"exit",e),enter:_l(l,"enter",e)})):o[s]=a(l,{in:!1}):o[s]=a(l,{onExited:r.bind(null,l),in:!0,exit:_l(l,"exit",e),enter:_l(l,"enter",e)})}})),o}kl.contextType=Dl,kl.propTypes={},kl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ol,onEntering:Ol,onEntered:Ol,onExit:Ol,onExiting:Ol,onExited:Ol},kl.UNMOUNTED=Pl,kl.EXITED=Ml,kl.ENTERING=Rl,kl.ENTERED=Ll,kl.EXITING=Al;var Nl=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Fl=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(ql(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}El(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Tl(r.children,(function(e){return a(e,{onExited:n.bind(null,e),in:!0,appear:_l(e,"appear",r),enter:_l(e,"enter",r),exit:_l(e,"exit",r)})}))):jl(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var r=Tl(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=ke({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=Oe(e,["component","childFactory"]),i=this.state.contextValue,a=Nl(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(Dl.Provider,{value:i},a):r.createElement(Dl.Provider,{value:i},r.createElement(t,o,a))},t}(r.Component);Fl.propTypes={},Fl.defaultProps={component:"div",childFactory:function(e){return e}};const zl=e=>e.scrollTop;function Wl(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function $l(e){return vi("MuiPaper",e)}yi("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Hl=["className","component","elevation","square","variant"],Vl=fl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return ke({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&ke({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ya("#fff",gl(t.elevation))}, ${Ya("#fff",gl(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Bl=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Oe(r,Hl),u=ke({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return ba({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},$l,o)})(u);return ii.jsx(Vl,ke({as:o,ownerState:u,className:hi(c.root,n),ref:t},l))}));const Gl=yi("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ul=["center","classes","className"];let Yl,Kl,Xl,Jl,Zl=e=>e;const Ql=Cn(Yl||(Yl=Zl`
|
|
15
|
+
function kn(e,t){let r;return r=t?Sn(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Sn(e),r}function On(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function qn(e){return e}An.propTypes={defaultTheme:Rn.object,styles:Rn.oneOfType([Rn.array,Rn.string,Rn.object,Rn.func])};var Tn=Object.freeze({__proto__:null,GlobalStyles:An,StyledEngineProvider:Ln,ThemeContext:fn,css:yn,default:kn,internal_mutateStyles:On,internal_processStyles:function(e,t){return On(e,t)},internal_serializeStyles:qn,keyframes:Cn});function _n(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function jn(e){if(o.isValidElement(e)||!_n(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=jn(e[r])})),t}function Nn(e,t,r={clone:!0}){const n=r.clone?ke({},e):e;return _n(e)&&_n(t)&&Object.keys(t).forEach((i=>{o.isValidElement(t[i])?n[i]=t[i]:_n(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&_n(e[i])?n[i]=Nn(e[i],t[i],r):r.clone?n[i]=_n(t[i])?jn(t[i]):t[i]:n[i]=t[i]})),n}var Fn=Object.freeze({__proto__:null,default:Nn,isPlainObject:_n});const zn=["values","unit","step"];function Wn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Oe(e,zn),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>ke({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return ke({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const $n={borderRadius:4};function Vn(e,t){return t?Nn(e,t,{clone:!1}):e}const Hn={xs:0,sm:600,md:900,lg:1200,xl:1536},Bn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Hn[e]}px)`};function Gn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Bn;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Bn;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Hn).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Un(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function Yn(e){if("string"!=typeof e)throw new Error(Re(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Kn=Object.freeze({__proto__:null,default:Yn});function Xn(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Jn(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Xn(e,r)||n,t&&(o=t(o,n,e)),o}function Zn(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Xn(e.theme,n)||{};return Gn(e,i,(e=>{let n=Jn(a,o,e);return e===n&&"string"==typeof e&&(n=Jn(a,o,`${t}${"default"===e?"":Yn(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Qn={m:"margin",p:"padding"},eo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},to={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ro=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!to[e])return[e];e=to[e]}const[t,r]=e.split(""),n=Qn[t],o=eo[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),no=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],oo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function io(e,t,r,n){var o;const i=null!=(o=Xn(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function ao(e){return io(e,"spacing",8)}function so(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function lo(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=so(t,r),e)),{})}(ro(r),n);return Gn(e,e[r],o)}function uo(e,t){const r=ao(e.theme);return Object.keys(e).map((n=>lo(e,t,n,r))).reduce(Vn,{})}function co(e){return uo(e,no)}function po(e){return uo(e,oo)}function fo(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Vn(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ho(e){return"number"!=typeof e?e:`${e}px solid`}function mo(e,t){return Zn({prop:e,themeKey:"borders",transform:t})}co.propTypes={},co.filterProps=no,po.propTypes={},po.filterProps=oo;const go=mo("border",ho),vo=mo("borderTop",ho),yo=mo("borderRight",ho),bo=mo("borderBottom",ho),xo=mo("borderLeft",ho),So=mo("borderColor"),wo=mo("borderTopColor"),Co=mo("borderRightColor"),Eo=mo("borderBottomColor"),Io=mo("borderLeftColor"),Do=mo("outline",ho),Po=mo("outlineColor"),Mo=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=io(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:so(t,e)});return Gn(e,e.borderRadius,r)}return null};Mo.propTypes={},Mo.filterProps=["borderRadius"],fo(go,vo,yo,bo,xo,So,wo,Co,Eo,Io,Mo,Do,Po);const Ro=e=>{if(void 0!==e.gap&&null!==e.gap){const t=io(e.theme,"spacing",8),r=e=>({gap:so(t,e)});return Gn(e,e.gap,r)}return null};Ro.propTypes={},Ro.filterProps=["gap"];const Lo=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=io(e.theme,"spacing",8),r=e=>({columnGap:so(t,e)});return Gn(e,e.columnGap,r)}return null};Lo.propTypes={},Lo.filterProps=["columnGap"];const Ao=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=io(e.theme,"spacing",8),r=e=>({rowGap:so(t,e)});return Gn(e,e.rowGap,r)}return null};Ao.propTypes={},Ao.filterProps=["rowGap"];function ko(e,t){return"grey"===t?t:e}fo(Ro,Lo,Ao,Zn({prop:"gridColumn"}),Zn({prop:"gridRow"}),Zn({prop:"gridAutoFlow"}),Zn({prop:"gridAutoColumns"}),Zn({prop:"gridAutoRows"}),Zn({prop:"gridTemplateColumns"}),Zn({prop:"gridTemplateRows"}),Zn({prop:"gridTemplateAreas"}),Zn({prop:"gridArea"}));function Oo(e){return e<=1&&0!==e?100*e+"%":e}fo(Zn({prop:"color",themeKey:"palette",transform:ko}),Zn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ko}),Zn({prop:"backgroundColor",themeKey:"palette",transform:ko}));const qo=Zn({prop:"width",transform:Oo}),To=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Hn[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Oo(t)}};return Gn(e,e.maxWidth,t)}return null};To.filterProps=["maxWidth"];const _o=Zn({prop:"minWidth",transform:Oo}),jo=Zn({prop:"height",transform:Oo}),No=Zn({prop:"maxHeight",transform:Oo}),Fo=Zn({prop:"minHeight",transform:Oo});Zn({prop:"size",cssProperty:"width",transform:Oo}),Zn({prop:"size",cssProperty:"height",transform:Oo});fo(qo,To,_o,jo,No,Fo,Zn({prop:"boxSizing"}));const zo={border:{themeKey:"borders",transform:ho},borderTop:{themeKey:"borders",transform:ho},borderRight:{themeKey:"borders",transform:ho},borderBottom:{themeKey:"borders",transform:ho},borderLeft:{themeKey:"borders",transform:ho},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ho},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Mo},color:{themeKey:"palette",transform:ko},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ko},backgroundColor:{themeKey:"palette",transform:ko},p:{style:po},pt:{style:po},pr:{style:po},pb:{style:po},pl:{style:po},px:{style:po},py:{style:po},padding:{style:po},paddingTop:{style:po},paddingRight:{style:po},paddingBottom:{style:po},paddingLeft:{style:po},paddingX:{style:po},paddingY:{style:po},paddingInline:{style:po},paddingInlineStart:{style:po},paddingInlineEnd:{style:po},paddingBlock:{style:po},paddingBlockStart:{style:po},paddingBlockEnd:{style:po},m:{style:co},mt:{style:co},mr:{style:co},mb:{style:co},ml:{style:co},mx:{style:co},my:{style:co},margin:{style:co},marginTop:{style:co},marginRight:{style:co},marginBottom:{style:co},marginLeft:{style:co},marginX:{style:co},marginY:{style:co},marginInline:{style:co},marginInlineStart:{style:co},marginInlineEnd:{style:co},marginBlock:{style:co},marginBlockStart:{style:co},marginBlockEnd:{style:co},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ro},rowGap:{style:Ao},columnGap:{style:Lo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Oo},maxWidth:{style:To},minWidth:{transform:Oo},height:{transform:Oo},maxHeight:{transform:Oo},minHeight:{transform:Oo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Wo(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Xn(r,s)||{};if(u)return u(o);return Gn(o,t,(t=>{let r=Jn(c,l,t);return t===r&&"string"==typeof t&&(r=Jn(c,l,`${e}${"default"===t?"":Yn(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:zo;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{});return r||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(n).forEach((r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])u=Vn(u,e(r,o,i,s));else{const e=Gn({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?u=Vn(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=Vn(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":Un(l,u)}:Un(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const $o=Wo();function Vo(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}$o.filterProps=["sx"];const Ho=["breakpoints","palette","spacing","shape"];function Bo(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Oe(e,Ho),s=Wn(r),l=function(e=8){if(e.mui)return e;const t=ao({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Nn({breakpoints:s,direction:"ltr",components:{},palette:ke({mode:"light"},n),spacing:l,shape:ke({},$n,i)},a);return u.applyStyles=Vo,u=t.reduce(((e,t)=>Nn(e,t)),u),u.unstable_sxConfig=ke({},zo,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return $o({sx:e,theme:this})},u}var Go=Object.freeze({__proto__:null,default:Bo,private_createBreakpoints:Wn,unstable_applyStyles:Vo});function Uo(e=null){const t=o.useContext(fn);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Yo=Bo();function Ko(e=Yo){return Uo(e)}var Xo={exports:{}},Jo={},Zo=r,Qo=Symbol.for("react.element"),ei=Symbol.for("react.fragment"),ti=Object.prototype.hasOwnProperty,ri=Zo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ni={key:!0,ref:!0,__self:!0,__source:!0};function oi(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)ti.call(t,n)&&!ni.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Qo,type:e,key:i,ref:a,props:o,_owner:ri.current}}Jo.Fragment=ei,Jo.jsx=oi,Jo.jsxs=oi,Xo.exports=Jo;var ii=Xo.exports;function ai(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function si({styles:e,themeId:t,defaultTheme:r={}}){const n=Ko(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>ai("function"==typeof e?e(o):e))):ai(i)),ii.jsx(An,{styles:i})}const li=["sx"];function ui(e){const{sx:t}=e,r=Oe(e,li),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:zo;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return _n(r)?ke({},n,r):n}:ke({},n,t),ke({},o,{sx:i})}var ci=Object.freeze({__proto__:null,default:$o,extendSxProp:ui,unstable_createStyleFunctionSx:Wo,unstable_defaultSxConfig:zo});const di=e=>e,pi=(()=>{let e=di;return{configure(t){e=t},generate:t=>e(t),reset(){e=di}}})();function fi(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=fi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function hi(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=fi(e))&&(n&&(n+=" "),n+=t);return n}const mi=["className","component"];const gi={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function vi(e,t,r="Mui"){const n=gi[t];return n?`${r}-${n}`:`${pi.generate(e)}-${t}`}function yi(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=vi(e,t,r)})),n}var bi={exports:{}},xi={},Si=Symbol.for("react.transitional.element"),wi=Symbol.for("react.portal"),Ci=Symbol.for("react.fragment"),Ei=Symbol.for("react.strict_mode"),Ii=Symbol.for("react.profiler"),Di=Symbol.for("react.consumer"),Pi=Symbol.for("react.context"),Mi=Symbol.for("react.forward_ref"),Ri=Symbol.for("react.suspense"),Li=Symbol.for("react.suspense_list"),Ai=Symbol.for("react.memo"),ki=Symbol.for("react.lazy"),Oi=Symbol.for("react.offscreen"),qi=Symbol.for("react.client.reference");function Ti(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Si:switch(e=e.type){case Ci:case Ii:case Ei:case Ri:case Li:return e;default:switch(e=e&&e.$$typeof){case Pi:case Mi:case ki:case Ai:case Di:return e;default:return t}}case wi:return t}}}xi.ContextConsumer=Di,xi.ContextProvider=Pi,xi.Element=Si,xi.ForwardRef=Mi,xi.Fragment=Ci,xi.Lazy=ki,xi.Memo=Ai,xi.Portal=wi,xi.Profiler=Ii,xi.StrictMode=Ei,xi.Suspense=Ri,xi.SuspenseList=Li,xi.isContextConsumer=function(e){return Ti(e)===Di},xi.isContextProvider=function(e){return Ti(e)===Pi},xi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Si},xi.isForwardRef=function(e){return Ti(e)===Mi},xi.isFragment=function(e){return Ti(e)===Ci},xi.isLazy=function(e){return Ti(e)===ki},xi.isMemo=function(e){return Ti(e)===Ai},xi.isPortal=function(e){return Ti(e)===wi},xi.isProfiler=function(e){return Ti(e)===Ii},xi.isStrictMode=function(e){return Ti(e)===Ei},xi.isSuspense=function(e){return Ti(e)===Ri},xi.isSuspenseList=function(e){return Ti(e)===Li},xi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ci||e===Ii||e===Ei||e===Ri||e===Li||e===Oi||"object"==typeof e&&null!==e&&(e.$$typeof===ki||e.$$typeof===Ai||e.$$typeof===Pi||e.$$typeof===Di||e.$$typeof===Mi||e.$$typeof===qi||void 0!==e.getModuleId)},xi.typeOf=Ti,bi.exports=xi;var _i=bi.exports;const ji=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ni(e){const t=`${e}`.match(ji);return t&&t[1]||""}function Fi(e,t=""){return e.displayName||e.name||Ni(e)||t}function zi(e,t,r){const n=Fi(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Wi=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Fi(e,"Component");if("object"==typeof e)switch(e.$$typeof){case _i.ForwardRef:return zi(e,e.render,"ForwardRef");case _i.Memo:return zi(e,e.type,"memo");default:return}}},getFunctionName:Ni});function $i(e,t){const r=ke({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=ke({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=ke({},i),Object.keys(o).forEach((e=>{r[n][e]=$i(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Vi="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function Hi(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Bi=Object.freeze({__proto__:null,default:Hi});function Gi(e){if(e.type)return e;if("#"===e.charAt(0))return Gi(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Re(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Re(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Ui(e,t){return e=Gi(e),t=function(e,t=0,r=1){return Hi(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function Yi(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Ki(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Xi(e){return e&&e.ownerDocument||document}function Ji(e){return Xi(e).defaultView||window}function Zi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Qi=0;const ea=o["useId".toString()];function ta(e){if(void 0!==ea){return ea()}return function(e){const[t,r]=o.useState(e),n=t;return o.useEffect((()=>{null==t&&(Qi+=1,r(`mui-${Qi}`))}),[t]),n}(e)}function ra({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=o.useRef(void 0!==e),[a,s]=o.useState(t);return[i?e:a,o.useCallback((e=>{i||s(e)}),[])]}function na(e){const t=o.useRef(e);return Vi((()=>{t.current=e})),o.useRef(((...e)=>(0,t.current)(...e))).current}function oa(...e){return o.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Zi(e,t)}))}),e)}const ia={};const aa=[];class sa{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new sa}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function la(){const e=function(e,t){const r=o.useRef(ia);return r.current===ia&&(r.current=e(t)),r}(sa.create).current;return function(e){o.useEffect(e,aa)}(e.disposeEffect),e}let ua=!0,ca=!1;const da=new sa,pa={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function fa(e){e.metaKey||e.altKey||e.ctrlKey||(ua=!0)}function ha(){ua=!1}function ma(){"hidden"===this.visibilityState&&ca&&(ua=!0)}function ga(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ua||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!pa[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function va(){const e=o.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",fa,!0),t.addEventListener("mousedown",ha,!0),t.addEventListener("pointerdown",ha,!0),t.addEventListener("touchstart",ha,!0),t.addEventListener("visibilitychange",ma,!0))}),[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ga(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ca=!0,da.start(100,(()=>{ca=!1})),t.current=!1,!0)},ref:e}}function ya(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ba(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function xa(e){return"string"==typeof e}function Sa(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function wa(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Ca=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ea(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Oe(e,Ca),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=hi(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=ke({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=ke({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Sa(ke({},o,n)),s=wa(n),l=wa(o),u=t(a),c=hi(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=ke({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=ke({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(ke({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||xa(e)?t:ke({},t,{ownerState:ke({},t.ownerState,r)})}(r,ke({},l,{ref:oa(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Ia(e){var t;return parseInt(o.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Da=o.createContext(null);function Pa(){return o.useContext(Da)}var Ma="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ra(e){const{children:t,theme:r}=e,n=Pa(),i=o.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return ke({},e,t)}(n,r);return null!=e&&(e[Ma]=null!==n),e}),[r,n]);return ii.jsx(Da.Provider,{value:i,children:t})}const La=["value"],Aa=o.createContext();function ka(e){let{value:t}=e,r=Oe(e,La);return ii.jsx(Aa.Provider,ke({value:null==t||t},r))}const Oa=o.createContext(void 0);function qa({value:e,children:t}){return ii.jsx(Oa.Provider,{value:e,children:t})}function Ta({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?$i(o.defaultProps,n):o.styleOverrides||o.variants?n:$i(o,n)}({props:e,name:t,theme:{components:o.useContext(Oa)}})}const _a={};function ja(e,t,r,n=!1){return o.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?ke({},t,{[e]:i}):i;return n?()=>a:a}return ke({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Na(e){const{children:t,theme:r,themeId:n}=e,o=Uo(_a),i=Pa()||_a,a=ja(n,o,r),s=ja(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=Uo(),r=ta()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Vi((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}}),[o,r]),o?ii.jsx(si,{styles:o}):null}(a);return ii.jsx(Ra,{theme:s,children:ii.jsx(fn.Provider,{value:a,children:ii.jsx(ka,{value:l,children:ii.jsxs(qa,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Fa(e){return Fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fa(e)}function za(e){var t=function(e,t){if("object"!=Fa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Fa(t)?t:t+""}function Wa(e,t){return ke({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var $a={},Va={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Va);var Ha=Va.exports,Ba=In(Le),Ga=In(Bi),Ua=Ha;Object.defineProperty($a,"__esModule",{value:!0});var Ya=$a.alpha=ss;$a.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=rs(e),a=rs(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return os({type:"rgb",values:s})},$a.colorChannel=void 0;var Ka=$a.darken=ls;$a.decomposeColor=rs,$a.emphasize=cs;var Xa=$a.getContrastRatio=function(e,t){const r=as(e),n=as(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};$a.getLuminance=as,$a.hexToRgb=ts,$a.hslToRgb=is;var Ja=$a.lighten=us;$a.private_safeAlpha=function(e,t,r){try{return ss(e,t)}catch(t){return e}},$a.private_safeColorChannel=void 0,$a.private_safeDarken=function(e,t,r){try{return ls(e,t)}catch(t){return e}},$a.private_safeEmphasize=function(e,t,r){try{return cs(e,t)}catch(t){return e}},$a.private_safeLighten=function(e,t,r){try{return us(e,t)}catch(t){return e}},$a.recomposeColor=os,$a.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=rs(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Za=Ua(Ba),Qa=Ua(Ga);function es(e,t=0,r=1){return(0,Qa.default)(e,t,r)}function ts(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function rs(e){if(e.type)return e;if("#"===e.charAt(0))return rs(ts(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Za.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,Za.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const ns=e=>{const t=rs(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};$a.colorChannel=ns;function os(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function is(e){e=rs(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),os({type:s,values:l})}function as(e){let t="hsl"===(e=rs(e)).type||"hsla"===e.type?rs(is(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ss(e,t){return e=rs(e),t=es(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,os(e)}function ls(e,t){if(e=rs(e),t=es(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return os(e)}function us(e,t){if(e=rs(e),t=es(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return os(e)}function cs(e,t=.15){return as(e)>.5?ls(e,t):us(e,t)}$a.private_safeColorChannel=(e,t)=>{try{return ns(e)}catch(t){return e}};const ds=["mode","contrastThreshold","tonalOffset"],ps={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:K.white,default:K.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},fs={text:{primary:K.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:K.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function hs(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Ja(e.main,o):"dark"===t&&(e.dark=Ka(e.main,i)))}function ms(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Oe(e,ds),i=e.primary||function(e="light"){return"dark"===e?{main:le,light:se,dark:ue}:{main:ce,light:ue,dark:de}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:re,light:te,dark:oe}:{main:ie,light:ne,dark:ae}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Z,light:X,dark:Q}:{main:Q,light:J,dark:ee}}(t),l=e.info||function(e="light"){return"dark"===e?{main:fe,light:pe,dark:me}:{main:me,light:he,dark:ge}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ye,light:ve,dark:xe}:{main:Se,light:be,dark:we}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ee,light:Ce,dark:De}:{main:"#ed6c02",light:Ie,dark:Pe}}(t);function d(e){return Xa(e,fs.text.primary)>=r?fs.text.primary:ps.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=ke({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Re(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Re(12,t?` (${t})`:"",JSON.stringify(e.main)));return hs(e,"light",o,n),hs(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:fs,light:ps};return Nn(ke({common:ke({},K),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Me,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const gs=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const vs={textTransform:"uppercase"},ys='"Roboto", "Helvetica", "Arial", sans-serif';function bs(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=ys,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Oe(r,gs),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return ke({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===ys?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,vs),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,vs),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nn(ke({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function xs(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Ss=["none",xs(0,2,1,-1,0,1,1,0,0,1,3,0),xs(0,3,1,-2,0,2,2,0,0,1,5,0),xs(0,3,3,-2,0,3,4,0,0,1,8,0),xs(0,2,4,-1,0,4,5,0,0,1,10,0),xs(0,3,5,-1,0,5,8,0,0,1,14,0),xs(0,3,5,-1,0,6,10,0,0,1,18,0),xs(0,4,5,-2,0,7,10,1,0,2,16,1),xs(0,5,5,-3,0,8,10,1,0,3,14,2),xs(0,5,6,-3,0,9,12,1,0,3,16,2),xs(0,6,6,-3,0,10,14,1,0,4,18,3),xs(0,6,7,-4,0,11,15,1,0,4,20,3),xs(0,7,8,-4,0,12,17,2,0,5,22,4),xs(0,7,8,-4,0,13,19,2,0,5,24,4),xs(0,7,9,-4,0,14,21,2,0,5,26,4),xs(0,8,9,-5,0,15,22,2,0,6,28,5),xs(0,8,10,-5,0,16,24,2,0,6,30,5),xs(0,8,11,-5,0,17,26,2,0,6,32,5),xs(0,9,11,-5,0,18,28,2,0,7,34,6),xs(0,9,12,-6,0,19,29,2,0,7,36,6),xs(0,10,13,-6,0,20,31,3,0,8,38,7),xs(0,10,13,-6,0,21,33,3,0,8,40,7),xs(0,10,14,-6,0,22,35,3,0,8,42,7),xs(0,11,14,-7,0,23,36,3,0,9,44,8),xs(0,11,15,-7,0,24,38,3,0,9,46,8)],ws=["duration","easing","delay"],Cs={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Es={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Is(e){return`${Math.round(e)}ms`}function Ds(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ps(e){const t=ke({},Cs,e.easing),r=ke({},Es,e.duration);return ke({getAutoHeightDuration:Ds,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Oe(n,ws),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Is(o)} ${i} ${"string"==typeof a?a:Is(a)}`)).join(",")}},e,{easing:t,duration:r})}const Ms={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Rs=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ls(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Oe(e,Rs);if(e.vars&&void 0===e.generateCssVars)throw new Error(Re(18));const s=ms(n),l=Bo(e);let u=Nn(l,{mixins:Wa(l.breakpoints,r),palette:s,shadows:Ss.slice(),typography:bs(s,i),transitions:Ps(o),zIndex:ke({},Ms)});return u=Nn(u,a),u=t.reduce(((e,t)=>Nn(e,t)),u),u.unstable_sxConfig=ke({},zo,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return $o({sx:e,theme:this})},u}const As=Ls();function ks(){const e=Ko(As);return e[Ae]||e}var Os,qs={},Ts={exports:{}};function _s(){return Os||(Os=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Ts)),Ts.exports}var js,Ns={exports:{}};function Fs(){return js||(js=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Ns)),Ns.exports}var zs=In(Tn),Ws=In(Fn),$s=In(Kn),Vs=In(Wi),Hs=In(Go),Bs=In(ci),Gs=Ha;Object.defineProperty(qs,"__esModule",{value:!0});var Us=qs.default=function(e={}){const{themeId:t,defaultTheme:r=al,rootShouldForwardProp:n=ol,slotShouldForwardProp:o=ol}=e,i=e=>(0,Qs.default)((0,Ys.default)({},e,{theme:ll((0,Ys.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Xs.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=ul(sl(l))}=a,p=(0,Ks.default)(a,rl),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=ol;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,Xs.default)(e,(0,Ys.default)({shouldForwardProp:g,label:undefined},p)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Js.isPlainObject)(e)?n=>{const o=ll({theme:n.theme,defaultTheme:r,themeId:t});return cl(e,(0,Ys.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,b=(n,...o)=>{let a=y(n);const l=o?o.map(y):[];s&&d&&l.push((e=>{const n=ll((0,Ys.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=cl(r,(0,Ys.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var n;const o=ll((0,Ys.default)({},e,{defaultTheme:r,themeId:t}));return cl({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Ys.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=v(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(b.withConfig=v.withConfig),b}};qs.shouldForwardProp=ol,qs.systemDefaultTheme=void 0;var Ys=Gs(_s()),Ks=Gs(Fs()),Xs=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=nl(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(zs),Js=Ws;Gs($s),Gs(Vs);var Zs=Gs(Hs),Qs=Gs(Bs);const el=["ownerState"],tl=["variants"],rl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function nl(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(nl=function(e){return e?r:t})(e)}function ol(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function il(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const al=qs.systemDefaultTheme=(0,Zs.default)(),sl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ll({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function ul(e){return e?(t,r)=>r[e]:null}function cl(e,t,r){let{ownerState:n}=t,o=(0,Ks.default)(t,el);const i="function"==typeof e?e((0,Ys.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>cl(e,(0,Ys.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Ks.default)(i,tl);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Ys.default)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,Ys.default)({ownerState:n},o,n)):e.style;t.push(r?il((0,Xs.internal_serializeStyles)(i),r):i)}})),t}return r?il((0,Xs.internal_serializeStyles)(i),r):i}function dl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const pl=e=>dl(e)&&"classes"!==e,fl=Us({themeId:Ae,defaultTheme:As,rootShouldForwardProp:pl}),hl=["theme"];function ml(e){let{theme:t}=e,r=Oe(e,hl);const n=t[Ae];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=ke({},n,{vars:null}):t&&!t.vars&&(o=ke({},t,{vars:null}))),ii.jsx(Na,ke({},r,{themeId:n?Ae:void 0,theme:o}))}const gl=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function vl(e){return Ta(e)}function yl(e){return vi("MuiSvgIcon",e)}yi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const bl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],xl=fl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Yn(r.color)}`],t[`fontSize${Yn(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),Sl=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiSvgIcon"}),{children:n,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,f=Oe(r,bl),h=o.isValidElement(n)&&"svg"===n.type,m=ke({},r,{color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:h}),g={};c||(g.viewBox=p);const v=(e=>{const{color:t,fontSize:r,classes:n}=e;return ba({root:["root","inherit"!==t&&`color${Yn(t)}`,`fontSize${Yn(r)}`]},yl,n)})(m);return ii.jsxs(xl,ke({as:s,className:hi(v.root,i),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},g,f,h&&n.props,{ownerState:m,children:[h?n.props.children:n,d?ii.jsx("title",{children:d}):null]}))}));function wl(e,t){function r(r,n){return ii.jsx(Sl,ke({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Sl.muiName,o.memo(o.forwardRef(r))}function Cl(e,t){return Cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cl(e,t)}function El(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cl(e,t)}Sl.muiName="SvgIcon";var Il=!1,Dl=r.createContext(null),Pl="unmounted",Ml="exited",Rl="entering",Ll="entered",Al="exiting",kl=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Ml,n.appearStatus=Rl):o=Ll:o=t.unmountOnExit||t.mountOnEnter?Pl:Ml,n.state={status:o},n.nextCallback=null,n}El(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Pl?{status:Ml}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Rl&&r!==Ll&&(t=Rl):r!==Rl&&r!==Ll||(t=Al)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Rl){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ml&&this.setState({status:Pl})},n.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[E.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Il?this.safeSetState({status:Ll},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Rl},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ll},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:E.findDOMNode(this);t&&!Il?(this.props.onExit(n),this.safeSetState({status:Al},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Ml},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Ml},(function(){e.props.onExited(n)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Pl)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var o=Oe(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(Dl.Provider,{value:null},"function"==typeof n?n(e,o):r.cloneElement(r.Children.only(n),o))},t}(r.Component);function Ol(){}function ql(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tl(e,t){var r=Object.create(null);return e&&s.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&i(e)?t(e):e}(e)})),r}function _l(e,t,r){return null!=r[t]?r[t]:e.props[t]}function jl(e,t,r){var n=Tl(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(s){var l=o[s];if(i(l)){var u=s in t,c=s in n,d=t[s],p=i(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&i(d)&&(o[s]=a(l,{onExited:r.bind(null,l),in:d.props.in,exit:_l(l,"exit",e),enter:_l(l,"enter",e)})):o[s]=a(l,{in:!1}):o[s]=a(l,{onExited:r.bind(null,l),in:!0,exit:_l(l,"exit",e),enter:_l(l,"enter",e)})}})),o}kl.contextType=Dl,kl.propTypes={},kl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ol,onEntering:Ol,onEntered:Ol,onExit:Ol,onExiting:Ol,onExited:Ol},kl.UNMOUNTED=Pl,kl.EXITED=Ml,kl.ENTERING=Rl,kl.ENTERED=Ll,kl.EXITING=Al;var Nl=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Fl=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(ql(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}El(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Tl(r.children,(function(e){return a(e,{onExited:n.bind(null,e),in:!0,appear:_l(e,"appear",r),enter:_l(e,"enter",r),exit:_l(e,"exit",r)})}))):jl(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var r=Tl(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=ke({},t.children);return delete r[e.key],{children:r}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=Oe(e,["component","childFactory"]),i=this.state.contextValue,a=Nl(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r.createElement(Dl.Provider,{value:i},a):r.createElement(Dl.Provider,{value:i},r.createElement(t,o,a))},t}(r.Component);Fl.propTypes={},Fl.defaultProps={component:"div",childFactory:function(e){return e}};const zl=e=>e.scrollTop;function Wl(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function $l(e){return vi("MuiPaper",e)}yi("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Vl=["className","component","elevation","square","variant"],Hl=fl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return ke({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&ke({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ya("#fff",gl(t.elevation))}, ${Ya("#fff",gl(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Bl=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Oe(r,Vl),u=ke({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return ba({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},$l,o)})(u);return ii.jsx(Hl,ke({as:o,ownerState:u,className:hi(c.root,n),ref:t},l))}));const Gl=yi("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ul=["center","classes","className"];let Yl,Kl,Xl,Jl,Zl=e=>e;const Ql=Cn(Yl||(Yl=Zl`
|
|
16
16
|
0% {
|
|
17
17
|
transform: scale(0);
|
|
18
18
|
opacity: 0.1;
|
|
@@ -85,18 +85,18 @@ function kn(e,t){let r;return r=t?Sn(e).withConfig({displayName:t.label,shouldFo
|
|
|
85
85
|
animation-iteration-count: infinite;
|
|
86
86
|
animation-delay: 200ms;
|
|
87
87
|
}
|
|
88
|
-
`),Gl.rippleVisible,Ql,550,(({theme:e})=>e.transitions.easing.easeInOut),Gl.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Gl.child,Gl.childLeaving,eu,550,(({theme:e})=>e.transitions.easing.easeInOut),Gl.childPulsate,tu,(({theme:e})=>e.transitions.easing.easeInOut)),ou=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:i={},className:a}=r,s=Oe(r,Ul),[l,u]=o.useState([]),c=o.useRef(0),d=o.useRef(null);o.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=o.useRef(!1),f=la(),h=o.useRef(null),m=o.useRef(null),g=o.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,ii.jsx(nu,{classes:{ripple:hi(i.ripple,Gl.ripple),rippleVisible:hi(i.rippleVisible,Gl.rippleVisible),ripplePulsate:hi(i.ripplePulsate,Gl.ripplePulsate),child:hi(i.child,Gl.child),childLeaving:hi(i.childLeaving,Gl.childLeaving),childPulsate:hi(i.childPulsate,Gl.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),v=o.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[n,g,f]),y=o.useCallback((()=>{v({},{pulsate:!0})}),[v]),b=o.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{b(e,t)}));h.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return o.useImperativeHandle(t,(()=>({pulsate:y,start:v,stop:b})),[y,v,b]),ii.jsx(ru,ke({className:hi(Gl.root,i.root,a),ref:m},s,{children:ii.jsx(Fl,{component:null,exit:!0,children:l})}))}));function iu(e){return vi("MuiButtonBase",e)}const au=yi("MuiButtonBase",["root","disabled","focusVisible"]),su=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],lu=fl("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${au.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),uu=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:I,onTouchMove:D,onTouchStart:P,tabIndex:M=0,TouchRippleProps:R,touchRippleRef:L,type:A}=r,k=Oe(r,su),O=o.useRef(null),q=o.useRef(null),T=oa(q,L),{isFocusVisibleRef:_,onFocus:j,onBlur:N,ref:F}=va(),[z,W]=o.useState(!1);u&&z&&W(!1),o.useImperativeHandle(n,(()=>({focusVisible:()=>{W(!0),O.current.focus()}})),[]);const[$,H]=o.useState(!1);o.useEffect((()=>{H(!0)}),[]);const V=$&&!c&&!u;function B(e,t,r=d){return na((n=>{t&&t(n);return!r&&q.current&&q.current[e](n),!0}))}o.useEffect((()=>{z&&p&&!c&&$&&q.current.pulsate()}),[c,p,z,$]);const G=B("start",w),U=B("stop",g),Y=B("stop",v),K=B("stop",E),X=B("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=B("start",P),Z=B("stop",I),Q=B("stop",D),ee=B("stop",(e=>{N(e),!1===_.current&&W(!1),h&&h(e)}),!1),te=na((e=>{O.current||(O.current=e.currentTarget),j(e),!0===_.current&&(W(!0),b&&b(e)),y&&y(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=o.useRef(!1),oe=na((e=>{p&&!ne.current&&z&&q.current&&" "===e.key&&(ne.current=!0,q.current.stop(e,(()=>{q.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))})),ie=na((e=>{p&&" "===e.key&&q.current&&z&&!e.defaultPrevented&&(ne.current=!1,q.current.stop(e,(()=>{q.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(k.href||k.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===A?"button":A,se.disabled=u):(k.href||k.to||(se.role="button"),u&&(se["aria-disabled"]=u));const le=oa(t,F,O),ue=ke({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=ba({root:["root",t&&"disabled",r&&"focusVisible"]},iu,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ii.jsxs(lu,ke({as:ae,className:hi(ce.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:u?-1:M,type:A},se,k,{children:[a,V?ii.jsx(ou,ke({ref:T,center:i},R)):null]}))}));function cu(e){return vi("MuiTypography",e)}yi("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const du=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],pu=fl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Yn(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>ke({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),fu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hu={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},mu=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiTypography"}),n=(e=>hu[e]||e)(r.color),o=ui(ke({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=fu}=o,f=Oe(o,du),h=ke({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||fu[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return ba({root:["root",i,"inherit"!==e.align&&`align${Yn(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},cu,a)})(h);return ii.jsx(pu,ke({as:m,ref:t,ownerState:h,className:hi(g.root,a)},f))}));const gu=o.forwardRef((function(e,t){const{children:r,container:n,disablePortal:i=!1}=e,[a,s]=o.useState(null),l=oa(o.isValidElement(r)?Ia(r):null,t);if(Hi((()=>{i||s(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,i]),Hi((()=>{if(a&&!i)return Zi(t,a),()=>{Zi(t,null)}}),[t,a,i]),i){if(o.isValidElement(r)){const e={ref:l};return o.cloneElement(r,e)}return ii.jsx(o.Fragment,{children:r})}return ii.jsx(o.Fragment,{children:a?I.createPortal(r,a):a})})),vu=["onChange","maxRows","minRows","style","value"];function yu(e){return parseInt(e,10)||0}const bu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function xu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Su=o.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:i=1,style:a,value:s}=e,l=Oe(e,vu),{current:u}=o.useRef(null!=s),c=o.useRef(null),d=oa(t,c),p=o.useRef(null),f=o.useRef(null),h=o.useCallback((()=>{const t=c.current,r=f.current;if(!t||!r)return;const o=Ji(t).getComputedStyle(t);if("0px"===o.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=o.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=o.boxSizing,s=yu(o.paddingBottom)+yu(o.paddingTop),l=yu(o.borderBottomWidth)+yu(o.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let p=u;i&&(p=Math.max(Number(i)*d,p)),n&&(p=Math.min(Number(n)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-u)<=1}}),[n,i,e.placeholder]),m=na((()=>{const e=c.current,t=h();if(!e||!t||xu(t))return!1;const r=t.outerHeightStyle;return null!=p.current&&p.current!==r})),g=o.useCallback((()=>{const e=c.current,t=h();if(!e||!t||xu(t))return;const r=t.outerHeightStyle;p.current!==r&&(p.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[h]),v=o.useRef(-1);Hi((()=>{const e=Ki(g),t=null==c?void 0:c.current;if(!t)return;const r=Ji(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{m()&&(n.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[h,g,m]),Hi((()=>{g()}));return ii.jsxs(o.Fragment,{children:[ii.jsx("textarea",ke({value:s,onChange:e=>{u||g(),r&&r(e)},ref:d,rows:i,style:a},l)),ii.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:ke({},bu,a,{paddingTop:0,paddingBottom:0})})]})}));function wu({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const Cu=o.createContext(void 0);function Eu(){return o.useContext(Cu)}function Iu(e){return ii.jsx(si,ke({},e,{defaultTheme:As,themeId:Ae}))}function Du(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Pu(e,t=!1){return e&&(Du(e.value)&&""!==e.value||t&&Du(e.defaultValue)&&""!==e.defaultValue)}function Mu(e){return vi("MuiInputBase",e)}const Ru=yi("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Lu=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Au=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Yn(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ku=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Ou=fl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Au})((({theme:e,ownerState:t})=>ke({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ru.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&ke({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),qu=fl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ku})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=ke({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return ke({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ru.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ru.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Tu=ii.jsx(Iu,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),_u=o.forwardRef((function(e,t){var r;const n=vl({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:v="input",inputProps:y={},inputRef:b,maxRows:x,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:I,onClick:D,onFocus:P,onKeyDown:M,onKeyUp:R,placeholder:L,readOnly:A,renderSuffix:k,rows:O,slotProps:q={},slots:T={},startAdornment:_,type:j="text",value:N}=n,F=Oe(n,Lu),z=null!=y.value?y.value:N,{current:W}=o.useRef(null!=z),$=o.useRef(),H=o.useCallback((e=>{}),[]),V=oa($,b,y.ref,H),[B,G]=o.useState(!1),U=Eu(),Y=wu({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:B,o.useEffect((()=>{!U&&p&&B&&(G(!1),E&&E())}),[U,p,B,E]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=o.useCallback((e=>{Pu(e)?K&&K():X&&X()}),[K,X]);Hi((()=>{W&&J({value:z})}),[z,J,W]);o.useEffect((()=>{J($.current)}),[]);let Z=v,Q=y;w&&"input"===Z&&(Q=ke(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=Su);o.useEffect((()=>{U&&U.setAdornedStart(Boolean(_))}),[U,_]);const ee=ke({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:h,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:_,type:j}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return ba({root:["root",`color${Yn(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Yn(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Mu,t)})(ee),re=T.root||u.Root||Ou,ne=q.root||c.root||{},oe=T.input||u.Input||qu;return Q=ke({},Q,null!=(r=q.input)?r:c.input),ii.jsxs(o.Fragment,{children:[!f&&Tu,ii.jsxs(re,ke({},ne,!xa(re)&&{ownerState:ke({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),D&&D(e)}},F,{className:hi(te.root,ne.className,l,A&&"MuiInputBase-readOnly"),children:[_,ii.jsx(Cu.Provider,{value:null,children:ii.jsx(oe,ke({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Y.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:C,placeholder:L,readOnly:A,required:Y.required,rows:O,value:z,onKeyDown:M,onKeyUp:R,type:j},Q,!xa(oe)&&{as:Z,ownerState:ke({},ee,Q.ownerState)},{ref:V,className:hi(te.input,Q.className,A&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),y.onBlur&&y.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!W){const t=e.target||$.current;if(null==t)throw new Error(Re(1));J({value:t.value})}y.onChange&&y.onChange(e,...t),I&&I(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),y.onFocus&&y.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),h,k?k(ke({},Y,{startAdornment:_})):null]}))]})}));function ju(e){return vi("MuiInput",e)}const Nu=ke({},Ru,yi("MuiInput",["root","underline","input"]));function Fu(e){return vi("MuiOutlinedInput",e)}const zu=ke({},Ru,yi("MuiOutlinedInput",["root","notchedOutline","input"]));function Wu(e){return vi("MuiFilledInput",e)}const $u=ke({},Ru,yi("MuiFilledInput",["root","underline","input"]));var Hu=wl(ii.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Vu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Bu={entering:{opacity:1},entered:{opacity:1}},Gu=o.forwardRef((function(e,t){const r=ks(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:v=n,TransitionComponent:y=kl}=e,b=Oe(e,Vu),x=o.useRef(null),S=oa(x,Ia(s),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(p),E=w(((e,t)=>{zl(e);const n=Wl({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),I=w(d),D=w(m),P=w((e=>{const t=Wl({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),M=w(h);return ii.jsx(y,ke({appear:a,in:u,nodeRef:x,onEnter:E,onEntered:I,onEntering:C,onExit:P,onExited:M,onExiting:D,addEndListener:e=>{i&&i(x.current,e)},timeout:v},b,{children:(e,t)=>o.cloneElement(s,ke({style:ke({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Bu[e],g,s.props.style),ref:S},t))}))}));function Uu(e){return vi("MuiBackdrop",e)}yi("MuiBackdrop",["root","invisible"]);const Yu=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ku=fl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>ke({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Xu=o.forwardRef((function(e,t){var r,n,o;const i=vl({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Gu,transitionDuration:g}=i,v=Oe(i,Yu),y=ke({},i,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e;return ba({root:["root",r&&"invisible"]},Uu,t)})(y),x=null!=(r=f.root)?r:c.root;return ii.jsx(m,ke({in:p,timeout:g},v,{children:ii.jsx(Ku,ke({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:hi(b.root,s,null==x?void 0:x.className),ownerState:ke({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))})),Ju=yi("MuiBox",["root"]),Zu=Ls(),Qu=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:i}=e,a=kn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})($o);return o.forwardRef((function(e,o){const s=Ko(r),l=ui(e),{className:u,component:c="div"}=l,d=Oe(l,mi);return ii.jsx(a,ke({as:c,ref:o,className:hi(u,i?i(n):n),theme:t&&s[t]||s},d))}))}({themeId:Ae,defaultTheme:Zu,defaultClassName:Ju.root,generateClassName:pi.generate});function ec(e){return vi("MuiButton",e)}const tc=yi("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),rc=o.createContext({}),nc=o.createContext(void 0),oc=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ic=e=>ke({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ac=fl(uu,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Yn(r.color)}`],t[`size${Yn(r.size)}`],t[`${r.variant}Size${Yn(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return ke({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":ke({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ya(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ya(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ya(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":ke({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${tc.focusVisible}`]:ke({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${tc.disabled}`]:ke({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ya(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${tc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${tc.disabled}`]:{boxShadow:"none"}})),sc=fl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Yn(r.size)}`]]}})((({ownerState:e})=>ke({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},ic(e)))),lc=fl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Yn(r.size)}`]]}})((({ownerState:e})=>ke({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},ic(e)))),uc=o.forwardRef((function(e,t){const r=o.useContext(rc),n=o.useContext(nc),i=vl({props:$i(r,e),name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:h,fullWidth:m=!1,size:g="medium",startIcon:v,type:y,variant:b="text"}=i,x=Oe(i,oc),S=ke({},i,{color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:m,size:g,type:y,variant:b}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return ke({},a,ba({root:["root",i,`${i}${Yn(t)}`,`size${Yn(o)}`,`${i}Size${Yn(o)}`,`color${Yn(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Yn(o)}`],endIcon:["icon","endIcon",`iconSize${Yn(o)}`]},ec,a))})(S),C=v&&ii.jsx(sc,{className:w.startIcon,ownerState:S,children:v}),E=f&&ii.jsx(lc,{className:w.endIcon,ownerState:S,children:f}),I=n||"";return ii.jsxs(ac,ke({ownerState:S,className:hi(r.className,w.root,u,I),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:hi(w.focusVisible,h),ref:t,type:y},x,{classes:w,children:[C,a,E]}))}));function cc(e){return vi("PrivateSwitchBase",e)}yi("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const dc=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],pc=fl(uu,{name:"MuiSwitchBase"})((({ownerState:e})=>ke({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),fc=fl("input",{name:"MuiSwitchBase",shouldForwardProp:pl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),hc=o.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:y,required:b=!1,tabIndex:x,type:S,value:w}=e,C=Oe(e,dc),[E,I]=ra({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),D=Eu();let P=s;D&&void 0===P&&(P=D.disabled);const M="checkbox"===S||"radio"===S,R=ke({},e,{checked:E,disabled:P,disableFocusRipple:l,edge:u}),L=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return ba({root:["root",r&&"checked",n&&"disabled",o&&`edge${Yn(o)}`],input:["input"]},cc,t)})(R);return ii.jsxs(pc,ke({component:"span",className:hi(L.root,i),centerRipple:!0,focusRipple:!l,disabled:P,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),D&&D.onFocus&&D.onFocus(e)},onBlur:e=>{m&&m(e),D&&D.onBlur&&D.onBlur(e)},ownerState:R,ref:t},C,{children:[ii.jsx(fc,ke({autoFocus:r,checked:n,defaultChecked:a,className:L.input,disabled:P,id:M?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;I(t),g&&g(e,t)},readOnly:y,ref:f,required:b,ownerState:R,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?o:c]}))}));var mc=wl(ii.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),gc=wl(ii.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),vc=wl(ii.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function yc(e){return vi("MuiCheckbox",e)}const bc=yi("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),xc=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Sc=fl(hc,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Yn(r.size)}`],"default"!==r.color&&t[`color${Yn(r.color)}`]]}})((({theme:e,ownerState:t})=>ke({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ya("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${bc.checked}, &.${bc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${bc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),wc=ii.jsx(gc,{}),Cc=ii.jsx(mc,{}),Ec=ii.jsx(vc,{}),Ic=o.forwardRef((function(e,t){var r,n;const i=vl({props:e,name:"MuiCheckbox"}),{checkedIcon:a=wc,color:s="primary",icon:l=Cc,indeterminate:u=!1,indeterminateIcon:c=Ec,inputProps:d,size:p="medium",className:f}=i,h=Oe(i,xc),m=u?c:l,g=u?c:a,v=ke({},i,{color:s,indeterminate:u,size:p}),y=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return ke({},t,ba({root:["root",r&&"indeterminate",`color${Yn(n)}`,`size${Yn(o)}`]},yc,t))})(v);return ii.jsx(Sc,ke({type:"checkbox",inputProps:ke({"data-indeterminate":u},d),icon:o.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:p}),checkedIcon:o.cloneElement(g,{fontSize:null!=(n=g.props.fontSize)?n:p}),ownerState:v,ref:t,className:hi(y.root,f)},h,{classes:y}))}));function Dc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Pc(e){return parseInt(Ji(e).getComputedStyle(e).paddingRight,10)||0}function Mc(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Dc(e,o)}))}function Rc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Lc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Xi(e);return t.body===e?Ji(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=ya(Xi(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Pc(n)+e}px`;const t=Xi(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Pc(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Xi(n).body;else{const t=n.parentElement,r=Ji(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const Ac=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kc(e){const t=[],r=[];return Array.from(e.querySelectorAll(Ac)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Oc(){return!0}function qc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=kc,isEnabled:s=Oc,open:l}=e,u=o.useRef(!1),c=o.useRef(null),d=o.useRef(null),p=o.useRef(null),f=o.useRef(null),h=o.useRef(!1),m=o.useRef(null),g=oa(Ia(t),m),v=o.useRef(null);o.useEffect((()=>{l&&m.current&&(h.current=!r)}),[r,l]),o.useEffect((()=>{if(!l||!m.current)return;const e=Xi(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[l]),o.useEffect((()=>{if(!l||!m.current)return;const e=Xi(m.current),t=t=>{v.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(m.current)),r.length>0){var o,i;const e=Boolean((null==(o=v.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=v.current)?void 0:i.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,i,s,l,a]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return ii.jsxs(o.Fragment,{children:[ii.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),ii.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const Tc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Dc(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Mc(t,e.mount,e.modalRef,n,!0);const o=Rc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Rc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Lc(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Rc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Dc(e.modalRef,t),Mc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Dc(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function _c(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=Tc,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:p}=e,f=o.useRef({}),h=o.useRef(null),m=o.useRef(null),g=oa(m,p),[v,y]=o.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),w=()=>{i.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=na((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Xi(h.current).body;i.add(S(),e),m.current&&w()})),E=o.useCallback((()=>i.isTopModal(S())),[i]),I=na((e=>{h.current=e,e&&(d&&E()?w():m.current&&Dc(m.current,x))})),D=o.useCallback((()=>{i.remove(S(),x)}),[x,i]);o.useEffect((()=>()=>{D()}),[D]),o.useEffect((()=>{d?C():b&&a||D()}),[d,D,b,a,C]);const P=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Sa(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=ke({},r,t);return ke({role:"presentation"},n,{onKeyDown:P(n),ref:g})},getBackdropProps:(e={})=>ke({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:Yi((()=>{y(!1),s&&s()}),null==u?void 0:u.props.onEnter),onExited:Yi((()=>{y(!0),l&&l(),a&&D()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:I,isTopModal:E,exited:v,hasTransition:b}}function jc(e){return vi("MuiModal",e)}yi("MuiModal",["root","hidden","backdrop"]);const Nc=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Fc=fl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>ke({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),zc=fl(Xu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Wc=o.forwardRef((function(e,t){var r,n,i,a,s,l;const u=vl({name:"MuiModal",props:e}),{BackdropComponent:c=zc,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:I=!1,keepMounted:D=!1,onBackdropClick:P,open:M,slotProps:R,slots:L}=u,A=Oe(u,Nc),k=ke({},u,{closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:I,keepMounted:D}),{getRootProps:O,getBackdropProps:q,getTransitionProps:T,portalRef:_,isTopModal:j,exited:N,hasTransition:F}=_c(ke({},k,{rootRef:t})),z=ke({},k,{exited:N}),W=(e=>{const{open:t,exited:r,classes:n}=e;return ba({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},jc,n)})(z),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const H=null!=(r=null!=(n=null==L?void 0:L.root)?n:v.Root)?r:Fc,V=null!=(i=null!=(a=null==L?void 0:L.backdrop)?a:v.Backdrop)?i:c,B=null!=(s=null==R?void 0:R.root)?s:y.root,G=null!=(l=null==R?void 0:R.backdrop)?l:y.backdrop,U=Ea({elementType:H,externalSlotProps:B,externalForwardedProps:A,getSlotProps:O,additionalProps:{ref:t,as:g},ownerState:z,className:hi(p,null==B?void 0:B.className,null==W?void 0:W.root,!z.open&&z.exited&&(null==W?void 0:W.hidden))}),Y=Ea({elementType:V,externalSlotProps:G,additionalProps:d,getSlotProps:e=>q(ke({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:hi(null==G?void 0:G.className,null==d?void 0:d.className,null==W?void 0:W.backdrop),ownerState:z});return D||M||F&&!N?ii.jsx(gu,{ref:_,container:m,disablePortal:w,children:ii.jsxs(H,ke({},U,{children:[!I&&c?ii.jsx(V,ke({},Y)):null,ii.jsx(qc,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:j,open:M,children:o.cloneElement(h,$)})]}))}):null}));function $c(e){return vi("MuiDivider",e)}const Hc=yi("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Vc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Bc=fl("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>ke({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ya(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>ke({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>ke({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>ke({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>ke({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Gc=fl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>ke({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Uc=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Oe(r,Vc),h=ke({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return ba({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},$c,n)})(h);return ii.jsx(Bc,ke({as:a,className:hi(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?ii.jsx(Gc,{className:m.wrapper,ownerState:h,children:o}):null}))}));Uc.muiSkipListHighlight=!0;const Yc=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Kc=fl(Ou,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Au(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return ke({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${$u.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${$u.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$u.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$u.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$u.disabled}, .${$u.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${$u.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&ke({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),Xc=fl(qu,{name:"MuiFilledInput",slot:"Input",overridesResolver:ku})((({theme:e,ownerState:t})=>ke({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Jc=o.forwardRef((function(e,t){var r,n,o,i;const a=vl({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Oe(a,Yc),g=ke({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:r}=e;return ke({},t,ba({root:["root",!r&&"underline"],input:["input"]},Wu,t))})(a),y={root:{ownerState:g},input:{ownerState:g}},b=(null!=p?p:l)?Nn(y,null!=p?p:l):y,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Kc,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Xc;return ii.jsx(_u,ke({slots:{root:x,input:S},componentsProps:b,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))}));Jc.muiName="Input";const Zc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Qc(e){return`scale(${e}, ${e**2})`}const ed={entering:{opacity:1,transform:Qc(1)},entered:{opacity:1,transform:"none"}},td="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rd=o.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:i,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=kl}=e,v=Oe(e,Zc),y=la(),b=o.useRef(),x=ks(),S=o.useRef(null),w=oa(S,Ia(i),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(c),I=C(((e,t)=>{zl(e);const{duration:r,delay:n,easing:o}=Wl({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:td?i:.666*i,delay:n,easing:o})].join(","),l&&l(e,t)})),D=C(u),P=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=Wl({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:td?o:.666*o,delay:td?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Qc(.75),d&&d(e)})),R=C(p);return ii.jsx(g,ke({appear:n,in:s,nodeRef:S,onEnter:I,onEntered:D,onEntering:E,onExit:M,onExited:R,onExiting:P,addEndListener:e=>{"auto"===m&&y.start(b.current||0,e),r&&r(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>o.cloneElement(i,ke({style:ke({opacity:0,transform:Qc(.75),visibility:"exited"!==e||s?void 0:"hidden"},ed[e],h,i.props.style),ref:w},t))}))}));rd.muiSupportAuto=!0;const nd=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],od=fl(Ou,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Au(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),ke({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Nu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Nu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Nu.disabled}, .${Nu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Nu.disabled}:before`]:{borderBottomStyle:"dotted"}})})),id=fl(qu,{name:"MuiInput",slot:"Input",overridesResolver:ku})({}),ad=o.forwardRef((function(e,t){var r,n,o,i;const a=vl({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Oe(a,nd),v=(e=>{const{classes:t,disableUnderline:r}=e;return ke({},t,ba({root:["root",!r&&"underline"],input:["input"]},ju,t))})(a),y={root:{ownerState:{disableUnderline:s}}},b=(null!=f?f:u)?Nn(null!=f?f:u,y):y,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:od,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:id;return ii.jsx(_u,ke({slots:{root:x,input:S},slotProps:b,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))}));function sd(e){return vi("MuiInputAdornment",e)}ad.muiName="Input";const ld=yi("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ud;const cd=["children","className","component","disablePointerEvents","disableTypography","position","variant"],dd=fl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Yn(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((({theme:e,ownerState:t})=>ke({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${ld.positionStart}&:not(.${ld.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),pd=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiInputAdornment"}),{children:n,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=Oe(r,cd),p=Eu()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=ke({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e;return ba({root:["root",r&&"disablePointerEvents",o&&`position${Yn(o)}`,a,n&&"hiddenLabel",i&&`size${Yn(i)}`]},sd,t)})(h);return ii.jsx(Cu.Provider,{value:null,children:ii.jsx(dd,ke({as:a,ownerState:h,className:hi(m.root,i),ref:t},d,{children:"string"!=typeof n||l?ii.jsxs(o.Fragment,{children:["start"===u?ud||(ud=ii.jsx("span",{className:"notranslate",children:""})):null,n]}):ii.jsx(mu,{color:"text.secondary",children:n})}))})}));function fd(e){return vi("MuiLink",e)}const hd=yi("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),md={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},gd=({theme:e,ownerState:t})=>{const r=(e=>md[e]||e)(t.color),n=Xn(e,`palette.${r}`,!1)||t.color,o=Xn(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ya(n,.4)},vd=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],yd=fl(mu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Yn(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>ke({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&ke({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:gd({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${hd.focusVisible}`]:{outline:"auto"}}))),bd=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiLink"}),{className:n,color:i="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=r,f=Oe(r,vd),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:v}=va(),[y,b]=o.useState(!1),x=oa(t,v),S=ke({},r,{color:i,component:a,focusVisible:y,underline:c,variant:d}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return ba({root:["root",`underline${Yn(o)}`,"button"===r&&"button",n&&"focusVisible"]},fd,t)})(S);return ii.jsx(yd,ke({color:i,className:hi(w.root,n),classes:u,component:a,onBlur:e=>{m(e),!1===h.current&&b(!1),s&&s(e)},onFocus:e=>{g(e),!0===h.current&&b(!0),l&&l(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(md).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),xd=o.createContext({});function Sd(e){return vi("MuiList",e)}yi("MuiList",["root","padding","dense","subheader"]);const wd=["children","className","component","dense","disablePadding","subheader"],Cd=fl("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>ke({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Ed=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiList"}),{children:n,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=Oe(r,wd),d=o.useMemo((()=>({dense:s})),[s]),p=ke({},r,{component:a,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ba({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Sd,t)})(p);return ii.jsx(xd.Provider,{value:d,children:ii.jsxs(Cd,ke({as:a,className:hi(f.root,i),ref:t,ownerState:p},c,{children:[u,n]}))})}));function Id(e){return vi("MuiListItem",e)}const Dd=yi("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Pd=yi("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Md(e){return vi("MuiListItemSecondaryAction",e)}yi("MuiListItemSecondaryAction",["root","disableGutters"]);const Rd=["className"],Ld=fl("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>ke({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Ad=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,i=Oe(r,Rd),a=ke({},r,{disableGutters:o.useContext(xd).disableGutters}),s=(e=>{const{disableGutters:t,classes:r}=e;return ba({root:["root",t&&"disableGutters"]},Md,r)})(a);return ii.jsx(Ld,ke({className:hi(s.root,n),ownerState:a,ref:t},i))}));Ad.muiName="ListItemSecondaryAction";const kd=["className"],Od=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],qd=fl("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>ke({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&ke({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Pd.root}`]:{paddingRight:48}},{[`&.${Dd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Dd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Dd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Dd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Dd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Td=fl("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),_d=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:f}={},dense:h=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:x,selected:S=!1,slotProps:w={},slots:C={}}=r,E=Oe(r.ContainerProps,kd),I=Oe(r,Od),D=o.useContext(xd),P=o.useMemo((()=>({dense:h||D.dense||!1,alignItems:n,disableGutters:g})),[n,D.dense,h,g]),M=o.useRef(null);Hi((()=>{i&&M.current&&M.current.focus()}),[i]);const R=o.Children.toArray(s),L=R.length&&(A=R[R.length-1],k=["ListItemSecondaryAction"],o.isValidElement(A)&&-1!==k.indexOf(null!=(O=A.type.muiName)?O:null==(q=A.type)||null==(q=q._payload)||null==(q=q.value)?void 0:q.muiName));var A,k,O,q;const T=ke({},r,{alignItems:n,autoFocus:i,button:a,dense:P.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:L,selected:S}),_=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return ba({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Id,n)})(T),j=oa(M,t),N=C.root||c.Root||qd,F=w.root||d.root||{},z=ke({className:hi(_.root,F.className,l),disabled:m},I);let W=u||"li";return a&&(z.component=u||"div",z.focusVisibleClassName=hi(Dd.focusVisible,b),W=uu),L?(W=z.component||u?W:"div","li"===p&&("li"===W?W="div":"li"===z.component&&(z.component="div")),ii.jsx(xd.Provider,{value:P,children:ii.jsxs(Td,ke({as:p,className:hi(_.container,f),ref:j,ownerState:T},E,{children:[ii.jsx(N,ke({},F,!xa(N)&&{as:W,ownerState:ke({},T,F.ownerState)},z,{children:R})),R.pop()]}))})):ii.jsx(xd.Provider,{value:P,children:ii.jsxs(N,ke({},F,{as:W,ref:j},!xa(N)&&{ownerState:ke({},T,F.ownerState)},z,{children:[R,x&&ii.jsx(Ad,{children:x})]}))})}));function jd(e){return vi("MuiListItemIcon",e)}const Nd=yi("MuiListItemIcon",["root","alignItemsFlexStart"]),Fd=["className"],zd=fl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>ke({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Wd=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiListItemIcon"}),{className:n}=r,i=Oe(r,Fd),a=ke({},r,{alignItems:o.useContext(xd).alignItems}),s=(e=>{const{alignItems:t,classes:r}=e;return ba({root:["root","flex-start"===t&&"alignItemsFlexStart"]},jd,r)})(a);return ii.jsx(zd,ke({className:hi(s.root,n),ownerState:a,ref:t},i))})),$d=yi("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Hd=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Vd(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Bd(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Gd(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Ud(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Gd(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Yd=o.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Oe(e,Hd),f=o.useRef(null),h=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Hi((()=>{n&&f.current.focus()}),[n]),o.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${ya(Xi(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const m=oa(f,t);let g=-1;o.Children.forEach(a,((e,t)=>{o.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const v=o.Children.map(a,((e,t)=>{if(t===g){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),o.cloneElement(e,t)}return e}));return ii.jsx(Ed,ke({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,r=e.key,n=Xi(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Ud(t,n,u,l,Vd);else if("ArrowUp"===r)e.preventDefault(),Ud(t,n,u,l,Bd);else if("Home"===r)e.preventDefault(),Ud(t,null,u,l,Vd);else if("End"===r)e.preventDefault(),Ud(t,null,u,l,Bd);else if(1===r.length){const o=h.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&Gd(n,o);o.previousKeyMatched&&(s||Ud(t,n,!1,l,Vd,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},p,{children:v}))}));function Kd(e){return vi("MuiPopover",e)}yi("MuiPopover",["root","paper"]);const Xd=["onEntering"],Jd=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Zd=["slotProps"];function Qd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function ep(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function tp(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function rp(e){return"function"==typeof e?e():e}const np=fl(Wc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),op=fl(Bl,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ip=o.forwardRef((function(e,t){var r,n,i;const a=vl({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:g=16,open:v,PaperProps:y={},slots:b,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=rd,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:I=!1}=a,D=Oe(a.TransitionProps,Xd),P=Oe(a,Jd),M=null!=(r=null==x?void 0:x.paper)?r:y,R=o.useRef(),L=oa(R,M.ref),A=ke({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:D}),k=(e=>{const{classes:t}=e;return ba({root:["root"],paper:["paper"]},Kd,t)})(A),O=o.useCallback((()=>{if("anchorPosition"===d)return c;const e=rp(l),t=(e&&1===e.nodeType?e:Xi(R.current).body).getBoundingClientRect();return{top:t.top+Qd(t,u.vertical),left:t.left+ep(t,u.horizontal)}}),[l,u.horizontal,u.vertical,c,d]),q=o.useCallback((e=>({vertical:Qd(e,S.vertical),horizontal:ep(e,S.horizontal)})),[S.horizontal,S.vertical]),T=o.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=q(t);if("none"===d)return{top:null,left:null,transformOrigin:tp(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Ji(rp(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:tp(r)}}),[l,d,O,q,g]),[_,j]=o.useState(v),N=o.useCallback((()=>{const e=R.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)}),[T]);o.useEffect((()=>(I&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N))),[l,I,N]);o.useEffect((()=>{v&&N()})),o.useImperativeHandle(s,(()=>v?{updatePosition:()=>{N()}}:null),[v,N]),o.useEffect((()=>{if(!v)return;const e=Ki((()=>{N()})),t=Ji(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,v,N]);let F=C;"auto"!==C||w.muiSupportAuto||(F=void 0);const z=h||(l?Xi(rp(l)).body:void 0),W=null!=(n=null==b?void 0:b.root)?n:np,$=null!=(i=null==b?void 0:b.paper)?i:op,H=Ea({elementType:$,externalSlotProps:ke({},M,{style:_?M.style:ke({},M.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:A,className:hi(k.paper,null==M?void 0:M.className)}),V=Ea({elementType:W,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:A,className:hi(k.root,f)}),{slotProps:B}=V,G=Oe(V,Zd);return ii.jsx(W,ke({},G,!xa(W)&&{slotProps:B,disableScrollLock:I},{children:ii.jsx(w,ke({appear:!0,in:v,onEntering:(e,t)=>{E&&E(e,t),N()},onExited:()=>{j(!1)},timeout:F},D,{children:ii.jsx($,ke({},H,{children:p}))}))}))}));function ap(e){return vi("MuiMenu",e)}yi("MuiMenu",["root","paper","list"]);const sp=["onEntering"],lp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],up={vertical:"top",horizontal:"right"},cp={vertical:"top",horizontal:"left"},dp=fl(ip,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pp=fl(op,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),fp=fl(Yd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),hp=o.forwardRef((function(e,t){var r,n;const i=vl({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:v="selectedMenu",slots:y={},slotProps:b={}}=i,x=Oe(i.TransitionProps,sp),S=Oe(i,lp),w=(()=>{const e=o.useContext(Aa);return null!=e&&e})(),C=ke({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:x,variant:v}),E=(e=>{const{classes:t}=e;return ba({root:["root"],paper:["paper"],list:["list"]},ap,t)})(C),I=a&&!u&&p,D=o.useRef(null);let P=-1;o.Children.map(s,((e,t)=>{o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===P)&&(P=t))}));const M=null!=(r=y.paper)?r:pp,R=null!=(n=b.paper)?n:f,L=Ea({elementType:y.root,externalSlotProps:b.root,ownerState:C,className:[E.root,l]}),A=Ea({elementType:M,externalSlotProps:R,ownerState:C,className:E.paper});return ii.jsx(dp,ke({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?up:cp,slots:{paper:M,root:y.root},slotProps:{root:L,paper:A},open:p,ref:t,transitionDuration:m,TransitionProps:ke({onEntering:(e,t)=>{D.current&&D.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:h,children:ii.jsx(fp,ke({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:D,autoFocus:a&&(-1===P||u),autoFocusItem:I,variant:v},c,{className:hi(E.list,c.className),children:s}))}))}));function mp(e){return vi("MuiMenuItem",e)}const gp=yi("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),vp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],yp=fl(uu,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>ke({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${gp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${gp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Hc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Hc.inset}`]:{marginLeft:52},[`& .${$d.root}`]:{marginTop:0,marginBottom:0},[`& .${$d.inset}`]:{paddingLeft:36},[`& .${Nd.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ke({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Nd.root} svg`]:{fontSize:"1.25rem"}})))),bp=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,f=Oe(r,vp),h=o.useContext(xd),m=o.useMemo((()=>({dense:a||h.dense||!1,disableGutters:l})),[h.dense,a,l]),g=o.useRef(null);Hi((()=>{n&&g.current&&g.current.focus()}),[n]);const v=ke({},r,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return ke({},a,ba({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},mp,a))})(r),b=oa(g,t);let x;return r.disabled||(x=void 0!==d?d:-1),ii.jsx(xd.Provider,{value:m,children:ii.jsx(yp,ke({ref:b,role:c,tabIndex:x,component:i,focusVisibleClassName:hi(y.focusVisible,u),className:hi(y.root,p)},f,{ownerState:v,classes:y}))})}));function xp(e){return vi("MuiNativeSelect",e)}const Sp=yi("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),wp=["className","disabled","error","IconComponent","inputRef","variant"],Cp=({ownerState:e,theme:t})=>ke({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":ke({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Sp.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Ep=fl("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pl,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Sp.multiple}`]:t.multiple}]}})(Cp),Ip=({ownerState:e,theme:t})=>ke({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Sp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Dp=fl("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Yn(r.variant)}`],r.open&&t.iconOpen]}})(Ip),Pp=o.forwardRef((function(e,t){const{className:r,disabled:n,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=e,u=Oe(e,wp),c=ke({},e,{disabled:n,variant:l,error:i}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ba({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Yn(r)}`,i&&"iconOpen",n&&"disabled"]},xp,t)})(c);return ii.jsxs(o.Fragment,{children:[ii.jsx(Ep,ke({ownerState:c,className:hi(d.select,r),disabled:n,ref:s||t},u)),e.multiple?null:ii.jsx(Dp,{as:a,ownerState:c,className:d.icon})]})}));var Mp;const Rp=["children","classes","className","label","notched"],Lp=fl("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:pl})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ap=fl("legend",{name:"MuiNotchedOutlined",shouldForwardProp:pl})((({ownerState:e,theme:t})=>ke({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&ke({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const kp=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Op=fl(Ou,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Au})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return ke({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${zu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${zu.focused} .${zu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${zu.error} .${zu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${zu.disabled} .${zu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&ke({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),qp=fl((function(e){const{className:t,label:r,notched:n}=e,o=Oe(e,Rp),i=null!=r&&""!==r,a=ke({},e,{notched:n,withLabel:i});return ii.jsx(Lp,ke({"aria-hidden":!0,className:t,ownerState:a},o,{children:ii.jsx(Ap,{ownerState:a,children:i?ii.jsx("span",{children:r}):Mp||(Mp=ii.jsx("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Tp=fl(qu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ku})((({theme:e,ownerState:t})=>ke({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),_p=o.forwardRef((function(e,t){var r,n,i,a,s;const l=vl({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:h,slots:m={},type:g="text"}=l,v=Oe(l,kp),y=(e=>{const{classes:t}=e;return ke({},t,ba({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Fu,t))})(l),b=Eu(),x=wu({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=ke({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),w=null!=(r=null!=(n=m.root)?n:u.Root)?r:Op,C=null!=(i=null!=(a=m.input)?a:u.Input)?i:Tp;return ii.jsx(_u,ke({slots:{root:w,input:C},renderSuffix:e=>ii.jsx(qp,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=ii.jsxs(o.Fragment,{children:[p," ","*"]})):p,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:t,type:g},v,{classes:ke({},y,{notchedOutline:null})}))}));function jp(e){return vi("MuiSelect",e)}_p.muiName="Input";const Np=yi("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Fp;const zp=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Wp=fl("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Np.select}`]:t.select},{[`&.${Np.select}`]:t[r.variant]},{[`&.${Np.error}`]:t.error},{[`&.${Np.multiple}`]:t.multiple}]}})(Cp,{[`&.${Np.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),$p=fl("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Yn(r.variant)}`],r.open&&t.iconOpen]}})(Ip),Hp=fl("input",{shouldForwardProp:e=>dl(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Vp(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Bp(e){return null==e||"string"==typeof e&&!e.trim()}const Gp=o.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:g,labelId:v,MenuProps:y={},multiple:b,name:x,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:I,open:D,readOnly:P,renderValue:M,SelectDisplayProps:R={},tabIndex:L,value:A,variant:k="standard"}=e,O=Oe(e,zp),[q,T]=ra({controlled:A,default:d,name:"Select"}),[_,j]=ra({controlled:D,default:c,name:"Select"}),N=o.useRef(null),F=o.useRef(null),[z,W]=o.useState(null),{current:$}=o.useRef(null!=D),[H,V]=o.useState(),B=oa(t,g),G=o.useCallback((e=>{F.current=e,e&&W(e)}),[]),U=null==z?void 0:z.parentNode;o.useImperativeHandle(B,(()=>({focus:()=>{F.current.focus()},node:N.current,value:q})),[q]),o.useEffect((()=>{c&&_&&z&&!$&&(V(s?null:U.clientWidth),F.current.focus())}),[z,s]),o.useEffect((()=>{a&&F.current.focus()}),[a]),o.useEffect((()=>{if(!v)return;const e=Xi(F.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const Y=(e,t)=>{e?I&&I(t):C&&C(t),$||(V(s?null:U.clientWidth),j(e))},K=o.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(q)?q.slice():[];const t=q.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),q!==r&&(T(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),w(o,e)}b||Y(!1,t)}},J=null!==z&&_;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Pu({value:q})||f)&&(M?Z=M(q):te=!0);const re=K.map((e=>{if(!o.isValidElement(e))return null;let t;if(b){if(!Array.isArray(q))throw new Error(Re(2));t=q.some((t=>Vp(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Vp(q,e.props.value),t&&te&&(Q=e.props.children);return o.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=b?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=H;!s&&$&&z&&(oe=U.clientWidth),ne=void 0!==L?L:p?null:0;const ie=R.id||(x?`mui-component-select-${x}`:void 0),ae=ke({},e,{variant:k,value:q,open:J,error:h}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ba({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Yn(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},jp,t)})(ae),le=ke({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ue=ta();return ii.jsxs(o.Fragment,{children:[ii.jsx(Wp,ke({ref:G,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||P?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:q,name:x}}),S(e))},onFocus:E},R,{ownerState:ae,className:hi(R.className,se.select,u),id:ie,children:Bp(Z)?Fp||(Fp=ii.jsx("span",{className:"notranslate",children:""})):Z})),ii.jsx(Hp,ke({"aria-invalid":h,value:Array.isArray(q)?q.join(","):q,name:x,ref:N,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:p,className:se.nativeInput,autoFocus:a,ownerState:ae},O)),ii.jsx($p,{as:m,className:se.icon,ownerState:ae}),ii.jsx(hp,ke({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:ke({"aria-labelledby":v,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},y.MenuListProps),slotProps:ke({},y.slotProps,{paper:ke({},le,{style:ke({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),Up=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Yp=["root"],Kp={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>pl(e)&&"variant"!==e,slot:"Root"},Xp=fl(ad,Kp)(""),Jp=fl(_p,Kp)(""),Zp=fl(Jc,Kp)(""),Qp=o.forwardRef((function(e,t){const r=vl({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Hu,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:g,multiple:v=!1,native:y=!1,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,I=Oe(r,Up),D=y?Pp:Gp,P=wu({props:r,muiFormControl:Eu(),states:["variant","error"]}),M=P.variant||E,R=ke({},r,{variant:M,classes:a}),L=(e=>{const{classes:t}=e;return t})(R),A=Oe(L,Yp),k=p||{standard:ii.jsx(Xp,{ownerState:R}),outlined:ii.jsx(Jp,{label:h,ownerState:R}),filled:ii.jsx(Zp,{ownerState:R})}[M],O=oa(t,Ia(k));return ii.jsx(o.Fragment,{children:o.cloneElement(k,ke({inputComponent:D,inputProps:ke({children:i,error:P.error,IconComponent:c,variant:M,type:void 0,multiple:v},y?{id:d}:{autoWidth:n,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:g,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:ke({id:d},C)},f,{classes:f?Nn(A,f.classes):A},p?p.props.inputProps:{})},(v&&y||u)&&"outlined"===M?{notched:!0}:{},{ref:O,className:hi(k.props.className,s,L.root)},!p&&{variant:M},I))})}));Qp.muiName="Select";const ef={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},tf={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...ef,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},rf=12,nf=14,of=16,af=24,sf=3,lf=300,uf=400,cf=600,df=700,pf={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function ff(e){return ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ii.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function hf({fontSize:e="medium",children:t=null,className:r=""}={}){return ii.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function mf(e={}){return ii.jsx(hf,{...e,children:ii.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[ii.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),ii.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function gf(e={}){return ii.jsx(hf,{fontSize:"medium",...e,children:ii.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ii.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),ii.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function vf(e){return ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ii.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function yf(e={}){return ii.jsx(hf,{...e,children:ii.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ii.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[ii.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),ii.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function bf(e={}){return ii.jsx(hf,{fontSize:"medium",...e,children:ii.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ii.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:ii.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function xf({className:e}){return ii.jsx(hf,{fontSize:"small",className:e,children:ii.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:ii.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ii.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:ii.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[ii.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),ii.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Sf(e={}){return ii.jsx(hf,{...e,children:ii.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ii.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ii.jsx("rect",{stroke:tf.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const wf={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:sf,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var Cf=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:tf.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:tf.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:ii.jsx(ff,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${tf.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`,borderRadius:sf,backgroundColor:tf.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${tf.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:tf.WHITE,color:tf.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:sf},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${tf.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:tf.GREYSCALE_0_15,backgroundColor:tf.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tf.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:tf.GREEN_PALE},"&:active":{backgroundColor:tf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:tf.GREEN_PALE,boxShadow:`0 0 0 3px ${Ui(tf.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:tf.BLUE_PALE},"&:active":{backgroundColor:tf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:tf.BLUE_PALE,boxShadow:`0 0 0 3px ${Ui(tf.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:sf,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:tf.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${tf.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:tf.GREYSCALE_0_42,backgroundColor:tf.GREYSCALE_100_60,"&:active":{backgroundColor:tf.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tf.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:tf.PURPLE,"&.Mui-focusVisible":{borderColor:tf.PURPLE,boxShadow:`0 0 0 3px ${Ui(tf.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:tf.GREEN,"&.Mui-focusVisible":{borderColor:tf.GREEN,boxShadow:`0 0 0 3px ${Ui(tf.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:tf.BLUE,"&.Mui-focusVisible":{borderColor:tf.BLUE,boxShadow:`0 0 0 3px ${Ui(tf.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:tf.ORANGE,"&.Mui-focusVisible":{borderColor:tf.ORANGE,boxShadow:`0 0 0 3px ${Ui(tf.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:tf.RED,"&.Mui-focusVisible":{borderColor:tf.RED,boxShadow:`0 0 0 3px ${Ui(tf.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:tf.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:tf.PURPLE_PALE},"&:active":{backgroundColor:tf.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:tf.PURPLE_PALE,boxShadow:`0 0 0 3px ${Ui(tf.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:tf.GREEN_PALE},"&:active":{backgroundColor:tf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:tf.GREEN_PALE,boxShadow:`0 0 0 3px ${Ui(tf.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:tf.BLUE_PALE},"&:active":{backgroundColor:tf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:tf.BLUE_PALE,boxShadow:`0 0 0 3px ${Ui(tf.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:tf.ORANGE_PALE},"&:active":{backgroundColor:tf.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:tf.ORANGE_PALE,boxShadow:`0 0 0 3px ${Ui(tf.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:tf.RED_PALE},"&:active":{backgroundColor:tf.RED_DARK},"&.Mui-focusVisible":{borderColor:tf.RED_PALE,boxShadow:`0 0 0 3px ${Ui(tf.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:tf.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:tf.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:sf,boxShadow:`inset 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:ii.jsx(vf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:rf,borderRadius:sf,color:tf.TEXT_PRIMARY,backgroundColor:tf.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:tf.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:tf.GREYSCALE_0_05,color:tf.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:tf.GREEN,borderColor:tf.GREEN},"&.MuiChip-outlinedInfo":{color:tf.BLUE,borderColor:tf.BLUE},"&.MuiChip-outlinedWarning":{color:tf.ORANGE,borderColor:tf.ORANGE},"&.MuiChip-outlinedError":{color:tf.RED,borderColor:tf.RED}},outlined:{border:`solid 1px ${tf.GREYSCALE_0_15}`,backgroundColor:tf.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:sf,boxShadow:"none",backgroundColor:tf.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:tf.GREEN,borderColor:tf.GREEN},outlinedSecondary:{color:tf.BLUE,borderColor:tf.BLUE},label:{fontFamily:pf.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:ii.jsx(vf,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:ii.jsx(ff,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:sf},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:sf,fontSize:nf,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:tf.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${tf.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:tf.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:tf.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:tf.GREYSCALE_0_05}}},popupIndicator:{borderRadius:sf,border:`solid 1px ${tf.GREYSCALE_0_15}`,color:tf.GREYSCALE_0_60,marginRight:0,width:af,height:af},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${tf.GREYSCALE_0_15}`},clearIndicator:{borderRadius:sf,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:tf.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:nf}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:rf,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:tf.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:tf.GREYSCALE_25,fontSize:rf,fontFamily:pf.FONT_FAMILY,fontWeight:cf,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:tf.TEXT_PRIMARY},"&.Mui-error":{color:tf.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:tf.TEXT_SECONDARY,content:"'(optional)'",fontWeight:uf,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:tf.TEXT_SECONDARY,content:"'(required)'",fontWeight:uf,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:nf,lineHeight:"16px",backgroundColor:tf.WHITE,borderRadius:sf,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tf.GREYSCALE_0_05}`,borderColor:tf.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tf.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${tf.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${tf.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tf.RED}`,boxShadow:`0px 0px 0px 1px ${tf.RED}, inset 0 2px 0 0 ${tf.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tf.GREYSCALE_0_10}`,borderColor:tf.GREYSCALE_0_10,backgroundColor:tf.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:tf.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:tf.GREYSCALE_0_15,borderRadius:sf,boxShadow:`inset 0 2px 0 0 ${tf.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>ii.jsx(ff,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:tf.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:tf.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:tf.GREYSCALE_0_03},"&:active":{backgroundColor:tf.GREYSCALE_0_10},"&:focus":{backgroundColor:tf.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${tf.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:tf.GREYSCALE_0_30,"&:hover":{backgroundColor:tf.GREYSCALE_0_0,borderColor:tf.GREYSCALE_0_15},"& ~svg":{color:tf.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${tf.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:sf}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${tf.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:tf.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:nf,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:rf,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:rf,fontWeight:cf,color:tf.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:cf}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${tf.GREYSCALE_0_15}, 0px 0px 0px 1px ${tf.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:ii.jsx(bf,{}),checkedIcon:ii.jsx(gf,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:tf.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:tf.GREEN_PALE,boxShadow:`0 0 0 3px ${Ui(tf.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:tf.BLUE_PALE,boxShadow:`0 0 0 3px ${Ui(tf.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:tf.GREYSCALE_0_20}},"&.Mui-disabled":{fill:tf.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:ii.jsx(Sf,{}),checkedIcon:ii.jsx(mf,{}),indeterminateIcon:ii.jsx(yf,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:sf,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:tf.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:tf.GREYSCALE_0_55,color:tf.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:tf.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:tf.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:tf.GREYSCALE_0_55,"&:hover":{color:tf.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:tf.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:tf.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:nf,color:tf.TEXT_PRIMARY,lineHeight:"16px",fontWeight:cf},secondary:{fontSize:rf,color:tf.GREYSCALE_45,fontWeight:uf,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:nf,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:nf,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:tf.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:rf,borderBottom:`solid 1px ${tf.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:nf,color:tf.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:tf.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:tf.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:tf.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:tf.RED}}},"&.Mui-focusVisible":{backgroundColor:tf.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:tf.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:tf.GREEN,height:"24px","&.Mui-disabled":{color:tf.GREYSCALE_0_15}},rail:{backgroundColor:tf.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${tf.GREYSCALE_0_05}`,borderRadius:sf,boxShadow:`inset 0px 0px 0px 1px ${tf.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${tf.GREYSCALE_0_05}`,borderRadius:sf},thumb:{height:"16px",width:"16px",borderRadius:sf,backgroundColor:tf.WHITE,boxShadow:`0px 1px 2px 0px ${tf.GREYSCALE_0_15}, 0px 0px 0px 1px ${tf.GREYSCALE_0_05}`,"&:hover":{borderRadius:sf,boxShadow:`0 2px 4px 0 ${tf.GREYSCALE_0_30}, 0 0 0 1px ${tf.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${tf.GREYSCALE_0_15}, 0 0 0 1px ${tf.GREYSCALE_0_06}, 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${tf.GREYSCALE_0_15}, 0 0 0 1px ${tf.GREYSCALE_0_06}, 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:tf.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:tf.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:tf.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:tf.GREYSCALE_0_15},markLabel:{color:tf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:tf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:tf.WHITE,color:tf.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:tf.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:tf.GREEN_PALE,boxShadow:`0 0 0 3px ${Ui(tf.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:tf.BLUE_PALE,boxShadow:`0 0 0 3px ${Ui(tf.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:tf.GREYSCALE_0_15,borderRadius:sf},thumb:{height:"16px",width:"16px",borderRadius:sf,backgroundColor:tf.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:nf,fontWeight:cf,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${tf.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`,backgroundColor:tf.GREYSCALE_0_03,borderRadius:sf},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:tf.GREYSCALE_25,"&.Mui-selected":{color:tf.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:nf,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:sf,"&:hover":{backgroundColor:tf.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${tf.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${tf.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:sf,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:tf.GREYSCALE_0_05},"&:hover":{backgroundColor:tf.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${tf.GREYSCALE_85}`,borderRight:`1px solid ${tf.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:cf,backgroundColor:tf.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:tf.GREYSCALE_98,borderBottom:`1px solid ${tf.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${tf.GREYSCALE_85}`,borderTop:`1px solid ${tf.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:tf.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:tf.GREYSCALE_0_05,"&:hover":{backgroundColor:tf.GREYSCALE_0_03}},"&&:hover":{backgroundColor:tf.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>ii.jsx(xf,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${tf.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:nf,borderRadius:sf,padding:"7px 16px",border:`1px solid ${tf.GREYSCALE_0_15}`,backgroundColor:tf.GREYSCALE_100_60,color:tf.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:tf.GREYSCALE_0_10,border:`1px solid ${tf.GREYSCALE_0_30}`},"&:hover":{backgroundColor:tf.GREYSCALE_0_03,border:`1px solid ${tf.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:tf.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${tf.MISC_FOCUS_BORDER}`,border:`1px solid ${tf.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:tf.GREYSCALE_25,backgroundColor:tf.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:tf.GREYSCALE_0_10,border:`1px solid ${tf.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:rf,height:24,width:24,padding:7},sizeLarge:{fontSize:of,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:nf,borderRadius:sf}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:tf.GREYSCALE_20},tooltip:{backgroundColor:tf.GREYSCALE_20,fontSize:rf,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...wf}:{}}))(t);const Ef=e=>({mode:"light",primary:{ultraLight:tf.GREEN_ULTRA_LIGHT,light:tf.GREEN_PALE,main:tf.GREEN,dark:tf.GREEN_DARK,extraDark:tf.GREEN_EXTRA_DARK,contrastText:tf.WHITE},secondary:{ultraLight:tf.BLUE_ULTRA_LIGHT,light:tf.BLUE_PALE,main:tf.BLUE,dark:tf.BLUE_DARK,extraDark:tf.BLUE_EXTRA_DARK,contrastText:tf.WHITE},error:{ultraLight:tf.RED_ULTRA_LIGHT,light:tf.RED_PALE,main:tf.RED,dark:tf.RED_DARK,extraDark:tf.RED_EXTRA_DARK,contrastText:tf.WHITE},warning:{ultraLight:tf.ORANGE_ULTRA_LIGHT,light:tf.ORANGE_PALE,main:tf.ORANGE,dark:tf.ORANGE_DARK,extraDark:tf.ORANGE_EXTRA_DARK,contrastText:tf.WHITE},success:{ultraLight:tf.GREEN_ULTRA_LIGHT,light:tf.GREEN_PALE,main:tf.GREEN,dark:tf.GREEN_DARK,extraDark:tf.GREEN_EXTRA_DARK,contrastText:tf.WHITE},info:{ultraLight:tf.BLUE_ULTRA_LIGHT,light:tf.BLUE_PALE,main:tf.BLUE,dark:tf.BLUE_DARK,extraDark:tf.BLUE_EXTRA_DARK,contrastText:tf.WHITE},text:{primary:tf.TEXT_PRIMARY,secondary:tf.TEXT_SECONDARY,disabled:tf.GREYSCALE_0_30},action:{hover:tf.GREYSCALE_0_03,hoverOpacity:.03,selected:tf.GREYSCALE_0_05,selectedOpacity:.05,focus:tf.MISC_FOCUS_BORDER},amethyst:{ultraLight:tf.WHITE,main:tf.PURPLE,light:tf.PURPLE_PALE,dark:tf.PURPLE_DARK,extraDark:tf.GREYSCALE_0_0,contrastText:tf.WHITE},background:{paper:tf.WHITE,default:tf.GREYSCALE_95},divider:tf.GREYSCALE_0_15}),If=(e,t=!1)=>({components:Cf(0,t),palette:Ef(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:nf,fontWeightLight:lf,fontWeightRegular:uf,fontWeightMedium:cf,fontWeightBold:df,htmlFontSize:nf,fontFamily:pf.FONT_FAMILY,button:{fontWeight:cf,fontSize:nf,textTransform:"none"},body1:{fontSize:of,lineHeight:"24px"},body2:{fontSize:nf,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:af,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:of,fontWeight:cf,lineHeight:"16px"},h6:{fontSize:nf,fontWeight:cf,lineHeight:"16px"},caption:{color:tf.TEXT_SECONDARY},subtitle1:{fontSize:nf,color:tf.TEXT_SECONDARY},subtitle2:{fontSize:rf,color:tf.TEXT_SECONDARY}},shape:{borderRadius:sf}}),Df={...ef};var Pf={},Mf={exports:{}},Rf={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Rf);var Lf=Rf.exports;!function(e){var t=Lf.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Mf);var Af=Mf.exports,kf={};function Of(e,t){return function(){return null}}function qf(e){return e&&"object"===Fa(e)&&e.constructor===Object}function Tf(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?ke({},e):e;return qf(e)&&qf(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(qf(t[o])&&o in e?n[o]=Tf(e[o],t[o],r):n[o]=t[o])})),n}var _f=(Rn.element,function(){return null});_f.isRequired=(Rn.element.isRequired,function(){return null});var jf=function(){return null};var Nf={exports:{}},Ff={},zf=60103,Wf=60106,$f=60107,Hf=60108,Vf=60114,Bf=60109,Gf=60110,Uf=60112,Yf=60113,Kf=60120,Xf=60115,Jf=60116,Zf=60121,Qf=60122,eh=60117,th=60129,rh=60131;if("function"==typeof Symbol&&Symbol.for){var nh=Symbol.for;zf=nh("react.element"),Wf=nh("react.portal"),$f=nh("react.fragment"),Hf=nh("react.strict_mode"),Vf=nh("react.profiler"),Bf=nh("react.provider"),Gf=nh("react.context"),Uf=nh("react.forward_ref"),Yf=nh("react.suspense"),Kf=nh("react.suspense_list"),Xf=nh("react.memo"),Jf=nh("react.lazy"),Zf=nh("react.block"),Qf=nh("react.server.block"),eh=nh("react.fundamental"),th=nh("react.debug_trace_mode"),rh=nh("react.legacy_hidden")}function oh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case zf:switch(e=e.type){case $f:case Vf:case Hf:case Yf:case Kf:return e;default:switch(e=e&&e.$$typeof){case Gf:case Uf:case Jf:case Xf:case Bf:return e;default:return t}}case Wf:return t}}}var ih=Bf,ah=zf,sh=Uf,lh=$f,uh=Jf,ch=Xf,dh=Wf,ph=Vf,fh=Hf,hh=Yf;Ff.ContextConsumer=Gf,Ff.ContextProvider=ih,Ff.Element=ah,Ff.ForwardRef=sh,Ff.Fragment=lh,Ff.Lazy=uh,Ff.Memo=ch,Ff.Portal=dh,Ff.Profiler=ph,Ff.StrictMode=fh,Ff.Suspense=hh,Ff.isAsyncMode=function(){return!1},Ff.isConcurrentMode=function(){return!1},Ff.isContextConsumer=function(e){return oh(e)===Gf},Ff.isContextProvider=function(e){return oh(e)===Bf},Ff.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===zf},Ff.isForwardRef=function(e){return oh(e)===Uf},Ff.isFragment=function(e){return oh(e)===$f},Ff.isLazy=function(e){return oh(e)===Jf},Ff.isMemo=function(e){return oh(e)===Xf},Ff.isPortal=function(e){return oh(e)===Wf},Ff.isProfiler=function(e){return oh(e)===Vf},Ff.isStrictMode=function(e){return oh(e)===Hf},Ff.isSuspense=function(e){return oh(e)===Yf},Ff.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===$f||e===Vf||e===th||e===Hf||e===Yf||e===Kf||e===rh||"object"==typeof e&&null!==e&&(e.$$typeof===Jf||e.$$typeof===Xf||e.$$typeof===Bf||e.$$typeof===Gf||e.$$typeof===Uf||e.$$typeof===eh||e.$$typeof===Zf||e[0]===Qf)},Ff.typeOf=oh,Nf.exports=Ff;var mh=Nf.exports,gh=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function vh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(gh);return t&&t[1]||""}(e)||t}function yh(e,t,r){var n=vh(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var bh="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),xh=Rn.oneOfType([Rn.func,Rn.object]),Sh=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Of,deepmerge:Tf,elementAcceptingRef:_f,elementTypeAcceptingRef:jf,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return vh(e,"Component");if("object"===Fa(e))switch(e.$$typeof){case mh.ForwardRef:return yh(e,e.render,"ForwardRef");case mh.Memo:return yh(e,e.type,"memo");default:return}}},ponyfillGlobal:bh,refType:xh}),wh=In(Sh);Object.defineProperty(kf,"__esModule",{value:!0}),kf.hexToRgb=Ih,kf.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=Ph(e),r=t.values;return"#".concat(r.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},kf.hslToRgb=Dh,kf.decomposeColor=Ph,kf.recomposeColor=Mh,kf.getContrastRatio=function(e,t){var r=Rh(e),n=Rh(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},kf.getLuminance=Rh,kf.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Rh(e)>.5?Ah(e,t):kh(e,t)},kf.fade=function(e,t){return Lh(e,t)},kf.alpha=Lh,kf.darken=Ah,kf.lighten=kh;var Ch=wh;function Eh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function Ih(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function Dh(e){var t=(e=Ph(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Mh({type:s,values:l})}function Ph(e){if(e.type)return e;if("#"===e.charAt(0))return Ph(Ih(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,Ch.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function Mh(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function Rh(e){var t="hsl"===(e=Ph(e)).type?Ph(Dh(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Lh(e,t){return e=Ph(e),t=Eh(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Mh(e)}function Ah(e,t){if(e=Ph(e),t=Eh(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return Mh(e)}function kh(e,t){if(e=Ph(e),t=Eh(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return Mh(e)}var Oh,qh,Th,_h={},jh={exports:{}},Nh={exports:{}},Fh={exports:{}};function zh(){return Oh||(Oh=1,function(e){var t=Lf.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Fh)),Fh.exports}function Wh(){return qh||(qh=1,function(e){var t=Lf.default,r=zh();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Nh)),Nh.exports}function $h(){return Th||(Th=1,function(e){var t=Wh();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(jh)),jh.exports}var Hh,Vh={exports:{}};function Bh(){return Hh||(Hh=1,function(e){var t=Fs();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Vh)),Vh.exports}var Gh,Uh={};var Yh,Kh={};var Xh,Jh={},Zh={};var Qh,em={};var tm,rm={};var nm,om={};var im,am={};var sm,lm={};var um,cm={};var dm,pm,fm={};function hm(){if(pm)return Jh;pm=1;var e=Va;Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.default=function(e){var g=e.primary,v=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,y=e.secondary,b=void 0===y?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:y,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,I=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,D=e.success,P=void 0===D?{light:d.default[300],main:d.default[500],dark:d.default[700]}:D,M=e.type,R=void 0===M?"light":M,L=e.contrastThreshold,A=void 0===L?3:L,k=e.tonalOffset,O=void 0===k?.2:k,q=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function T(e){return(0,p.getContrastRatio)(e,h.text.primary)>=A?h.text.primary:f.text.primary}var _=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=T(e.main)),e},j={dark:h,light:f},N=(0,n.deepmerge)((0,t.default)({common:o.default,type:R,primary:_(v),secondary:_(b,"A400","A200","A700"),error:_(S),warning:_(C),info:_(I),success:_(P),grey:i.default,contrastThreshold:A,getContrastText:T,augmentColor:_,tonalOffset:O},j[R]),q);return N},Jh.dark=Jh.light=void 0;var t=e(_s()),r=e(Bh()),n=wh,o=e(function(){if(Xh)return Zh;Xh=1,Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.default=void 0;var e={black:"#000",white:"#fff"};return Zh.default=e,Zh}()),i=e(function(){if(Qh)return em;Qh=1,Object.defineProperty(em,"__esModule",{value:!0}),em.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return em.default=e,em}()),a=e(function(){if(tm)return rm;tm=1,Object.defineProperty(rm,"__esModule",{value:!0}),rm.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return rm.default=e,rm}()),s=e(function(){if(nm)return om;nm=1,Object.defineProperty(om,"__esModule",{value:!0}),om.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return om.default=e,om}()),l=e(function(){if(im)return am;im=1,Object.defineProperty(am,"__esModule",{value:!0}),am.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return am.default=e,am}()),u=e(function(){if(sm)return lm;sm=1,Object.defineProperty(lm,"__esModule",{value:!0}),lm.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return lm.default=e,lm}()),c=e(function(){if(um)return cm;um=1,Object.defineProperty(cm,"__esModule",{value:!0}),cm.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return cm.default=e,cm}()),d=e(function(){if(dm)return fm;dm=1,Object.defineProperty(fm,"__esModule",{value:!0}),fm.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return fm.default=e,fm}()),p=kf,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};Jh.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return Jh.dark=h,Jh}var mm,gm={};var vm,ym={};var bm,xm={};var Sm={};function wm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Cm(e,t){if(e){if("string"==typeof e)return wm(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wm(e,t):void 0}}function Em(e){return function(e){if(Array.isArray(e))return wm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cm(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Im(e,t){return t?Tf(e,t,{clone:!1}):e}var Dm={xs:0,sm:600,md:960,lg:1280,xl:1920},Pm={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Dm[e],"px)")}};function Mm(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Pm;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===Fa(t)){var o=e.theme.breakpoints||Pm;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function Rm(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Lm(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=Rm(e.theme,o)||{};return Mm(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Rm(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=za(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)}))};return a.propTypes={},a.filterProps=[t],a}function Am(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce((function(t,r){var n=r(e);return n?Im(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function km(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Om=Lm({prop:"border",themeKey:"borders",transform:km}),qm=Lm({prop:"borderTop",themeKey:"borders",transform:km}),Tm=Lm({prop:"borderRight",themeKey:"borders",transform:km}),_m=Lm({prop:"borderBottom",themeKey:"borders",transform:km}),jm=Lm({prop:"borderLeft",themeKey:"borders",transform:km}),Nm=Lm({prop:"borderColor",themeKey:"palette"}),Fm=Lm({prop:"borderRadius",themeKey:"shape"}),zm=Am(Om,qm,Tm,_m,jm,Nm,Fm);function Wm(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function $m(e){var t=function(t){var r=e(t);return t.css?ke({},Im(r,e(ke({theme:t.theme},t.css))),Wm(t.css,[e.filterProps])):t.sx?ke({},Im(r,e(ke({theme:t.theme},t.sx))),Wm(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(Em(e.filterProps)),t}var Hm=Am(Lm({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Lm({prop:"display"}),Lm({prop:"overflow"}),Lm({prop:"textOverflow"}),Lm({prop:"visibility"}),Lm({prop:"whiteSpace"})),Vm=Lm({prop:"flexBasis"}),Bm=Lm({prop:"flexDirection"}),Gm=Lm({prop:"flexWrap"}),Um=Lm({prop:"justifyContent"}),Ym=Lm({prop:"alignItems"}),Km=Lm({prop:"alignContent"}),Xm=Lm({prop:"order"}),Jm=Lm({prop:"flex"}),Zm=Lm({prop:"flexGrow"}),Qm=Lm({prop:"flexShrink"}),eg=Lm({prop:"alignSelf"}),tg=Lm({prop:"justifyItems"}),rg=Lm({prop:"justifySelf"}),ng=Am(Vm,Bm,Gm,Um,Ym,Km,Xm,Jm,Zm,Qm,eg,tg,rg),og=Lm({prop:"gridGap"}),ig=Lm({prop:"gridColumnGap"}),ag=Lm({prop:"gridRowGap"}),sg=Lm({prop:"gridColumn"}),lg=Lm({prop:"gridRow"}),ug=Lm({prop:"gridAutoFlow"}),cg=Lm({prop:"gridAutoColumns"}),dg=Lm({prop:"gridAutoRows"}),pg=Lm({prop:"gridTemplateColumns"}),fg=Lm({prop:"gridTemplateRows"}),hg=Lm({prop:"gridTemplateAreas"}),mg=Lm({prop:"gridArea"}),gg=Am(og,ig,ag,sg,lg,ug,cg,dg,pg,fg,hg,mg),vg=Lm({prop:"color",themeKey:"palette"}),yg=Lm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),bg=Am(vg,yg),xg=Lm({prop:"position"}),Sg=Lm({prop:"zIndex",themeKey:"zIndex"}),wg=Lm({prop:"top"}),Cg=Lm({prop:"right"}),Eg=Lm({prop:"bottom"}),Ig=Lm({prop:"left"}),Dg=Am(xg,Sg,wg,Cg,Eg,Ig),Pg=Lm({prop:"boxShadow",themeKey:"shadows"});function Mg(e){return e<=1?"".concat(100*e,"%"):e}var Rg=Lm({prop:"width",transform:Mg}),Lg=Lm({prop:"maxWidth",transform:Mg}),Ag=Lm({prop:"minWidth",transform:Mg}),kg=Lm({prop:"height",transform:Mg}),Og=Lm({prop:"maxHeight",transform:Mg}),qg=Lm({prop:"minHeight",transform:Mg}),Tg=Lm({prop:"size",cssProperty:"width",transform:Mg}),_g=Lm({prop:"size",cssProperty:"height",transform:Mg}),jg=Lm({prop:"boxSizing"}),Ng=Am(Rg,Lg,Ag,kg,Og,qg,jg);function Fg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Cm(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var zg={m:"margin",p:"padding"},Wg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$g={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Hg=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){if(e.length>2){if(!$g[e])return[e];e=$g[e]}var t=Fg(e.split(""),2),r=t[0],n=t[1],o=zg[r],i=Wg[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Vg=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Bg(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Gg(e,t){return function(r){return e.reduce((function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e}),{})}}function Ug(e){var t=Bg(e.theme);return Object.keys(e).map((function(r){if(-1===Vg.indexOf(r))return null;var n=Gg(Hg(r),t),o=e[r];return Mm(e,o,n)})).reduce(Im,{})}Ug.propTypes={},Ug.filterProps=Vg;var Yg,Kg=Lm({prop:"fontFamily",themeKey:"typography"}),Xg=Lm({prop:"fontSize",themeKey:"typography"}),Jg=Lm({prop:"fontStyle",themeKey:"typography"}),Zg=Lm({prop:"fontWeight",themeKey:"typography"}),Qg=Lm({prop:"letterSpacing"}),ev=Lm({prop:"lineHeight"}),tv=Lm({prop:"textAlign"}),rv=Am(Kg,Xg,Jg,Zg,Qg,ev,tv),nv=Object.freeze({__proto__:null,alignContent:Km,alignItems:Ym,alignSelf:eg,bgcolor:yg,border:Om,borderBottom:_m,borderColor:Nm,borderLeft:jm,borderRadius:Fm,borderRight:Tm,borderTop:qm,borders:zm,bottom:Eg,boxSizing:jg,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Pm,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(ke({theme:t.theme},t[o]))),r}),null);return Im(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Em(e.filterProps)),t},color:vg,compose:Am,createUnarySpacing:Bg,css:function(e){return $m(e)},display:Hm,flex:Jm,flexBasis:Vm,flexDirection:Bm,flexGrow:Zm,flexShrink:Qm,flexWrap:Gm,flexbox:ng,fontFamily:Kg,fontSize:Xg,fontStyle:Jg,fontWeight:Zg,grid:gg,gridArea:mg,gridAutoColumns:cg,gridAutoFlow:ug,gridAutoRows:dg,gridColumn:sg,gridColumnGap:ig,gridGap:og,gridRow:lg,gridRowGap:ag,gridTemplateAreas:hg,gridTemplateColumns:pg,gridTemplateRows:fg,height:kg,justifyContent:Um,justifyItems:tg,justifySelf:rg,left:Ig,letterSpacing:Qg,lineHeight:ev,maxHeight:Og,maxWidth:Lg,minHeight:qg,minWidth:Ag,order:Xm,palette:bg,position:xg,positions:Dg,right:Cg,shadows:Pg,sizeHeight:_g,sizeWidth:Tg,sizing:Ng,spacing:Ug,style:Lm,styleFunctionSx:$m,textAlign:tv,top:wg,typography:rv,width:Rg,zIndex:Sg}),ov=In(nv);var iv,av={};function sv(){if(iv)return av;iv=1;var e=Va;Object.defineProperty(av,"__esModule",{value:!0}),av.default=av.duration=av.easing=void 0;var t=e(Bh()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};av.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}av.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return av.default=i,av}var lv,uv,cv={};function dv(){if(uv)return _h;uv=1;var e=Va;Object.defineProperty(_h,"__esModule",{value:!0}),_h.createMuiTheme=function(){return p.apply(void 0,arguments)},_h.default=void 0,e($h());var t=e(Bh()),r=wh,n=e(function(){if(Gh)return Uh;Gh=1;var e=Va;Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},Uh.keys=void 0;var t=e(_s()),r=e(Bh()),n=["xs","sm","md","lg","xl"];return Uh.keys=n,Uh}()),o=e(function(){if(Yh)return Kh;Yh=1;var e=Va;Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e($h()),r=e(_s());return Kh}()),i=e(hm()),a=e(function(){if(mm)return gm;mm=1;var e=Va;Object.defineProperty(gm,"__esModule",{value:!0}),gm.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,v=void 0===g?400:g,y=u.fontWeightMedium,b=void 0===y?500:y,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,I=u.pxToRem,D=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),P=f/14,M=I||function(e){return"".concat(e/C*P,"rem")},R=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},L={h1:R(m,96,1.167,-1.5),h2:R(m,60,1.2,-.5),h3:R(v,48,1.167,0),h4:R(v,34,1.235,.25),h5:R(v,24,1.334,0),h6:R(b,20,1.6,.15),subtitle1:R(v,16,1.75,.15),subtitle2:R(b,14,1.57,.1),body1:R(v,16,1.5,.15),body2:R(v,14,1.43,.15),button:R(b,14,1.75,.4,a),caption:R(v,12,1.66,.4),overline:R(v,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:M,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:S},L),D,{clone:!1})};var t=e(_s()),r=e(Bh()),n=wh;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return gm}()),s=e(function(){if(vm)return ym;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}vm=1,Object.defineProperty(ym,"__esModule",{value:!0}),ym.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return ym.default=t,ym}()),l=e(function(){if(bm)return xm;bm=1,Object.defineProperty(xm,"__esModule",{value:!0}),xm.default=void 0;var e={borderRadius:4};return xm.default=e,xm}()),u=e(function(){if(Yg)return Sm;Yg=1,Object.defineProperty(Sm,"__esModule",{value:!0}),Sm.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=ov;return Sm}()),c=e(sv()),d=e(function(){if(lv)return cv;lv=1,Object.defineProperty(cv,"__esModule",{value:!0}),cv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return cv.default=e,cv}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,v=void 0===g?{}:g,y=e.spacing,b=e.typography,x=void 0===b?{}:b,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),C=(0,n.default)(f),E=(0,u.default)(y),I=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),D=arguments.length,P=new Array(D>1?D-1:0),M=1;M<D;M++)P[M-1]=arguments[M];return I=P.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),I)}var f=p;return _h.default=f,_h}var pv,fv={};var hv={},mv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",gv=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function vv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==gv.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[mv]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function yv(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xv="object"===("undefined"==typeof window?"undefined":bv(window))&&"object"===("undefined"==typeof document?"undefined":bv(document))&&9===document.nodeType;function Sv(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,za(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var wv={}.constructor;function Cv(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Cv);if(e.constructor!==wv)return e;var t={};for(var r in e)t[r]=Cv(e[r]);return t}function Ev(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=Cv(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var Iv=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},Dv=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=Iv(e[r]," ");else t=Iv(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Pv(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Mv(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Rv(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=Pv(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=Mv(p+":"+u+Dv(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=Mv(h+":"+u+Dv(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(n&&(n+=l),n+=Mv(g+":"+u+Dv(v)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Mv(""+e+u+"{"+n,--i)+Mv("}",i)):n}var Lv=/([[\].#*$><+~=|^:(),"'`\s])/g,Av="undefined"!=typeof CSS&&CSS.escape,kv=function(e){return Av?Av(e):e.replace(Lv,"\\$1")},Ov=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),qv=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(ql(ql(o)),s),o.selectorText="."+kv(o.id)),o}El(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=Dv(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?ke({},e,{allowEmpty:!0}):e;return Rv(this.selectorText,this.style,r)},Sv(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(Ov),Tv={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new qv(e,t,r)}},_v={indent:1,children:!0},jv=/@([\w-]+)/,Nv=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(jv);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new ly(ke({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=_v);var t=Pv(e).linebreak;if(null==e.indent&&(e.indent=_v.indent),null==e.children&&(e.children=_v.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Fv=/@container|@media|@supports\s+/,zv={onCreateRule:function(e,t,r){return Fv.test(e)?new Nv(e,t,r):null}},Wv={indent:1,children:!0},$v=/@keyframes\s+([\w-]+)/,Hv=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match($v);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:kv(a(this,i)),this.rules=new ly(ke({},r,{parent:this})),t)this.rules.add(s,t[s],ke({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Wv);var t=Pv(e).linebreak;if(null==e.indent&&(e.indent=Wv.indent),null==e.children&&(e.children=Wv.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Vv=/@keyframes\s+/,Bv=/\$([\w-]+)/g,Gv=function(e,t){return"string"==typeof e?e.replace(Bv,(function(e,r){return r in t?t[r]:e})):e},Uv=function(e,t,r){var n=e[t],o=Gv(n,r);o!==n&&(e[t]=o)},Yv={onCreateRule:function(e,t,r){return"string"==typeof e&&Vv.test(e)?new Hv(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Uv(e,"animation-name",r.keyframes),"animation"in e&&Uv(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Gv(e,n.keyframes);default:return e}}},Kv=function(e){function t(){return e.apply(this,arguments)||this}return El(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?ke({},e,{allowEmpty:!0}):e;return Rv(this.key,this.style,r)},t}(Ov),Xv={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Kv(e,t,r):null}},Jv=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=Pv(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Rv(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Rv(this.at,this.style,e)},e}(),Zv=/@font-face/,Qv={onCreateRule:function(e,t,r){return Zv.test(e)?new Jv(e,t,r):null}},ey=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return Rv(this.key,this.style,e)},e}(),ty={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new ey(e,t,r):null}},ry=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),ny={"@charset":!0,"@import":!0,"@namespace":!0},oy={onCreateRule:function(e,t,r){return e in ny?new ry(e,t,r):null}},iy=[Tv,zv,Yv,Xv,Qv,ty,oy],ay={process:!0},sy={force:!0,process:!0},ly=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=ke({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+kv(this.classes[d]));var p=Ev(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=ke({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof qv?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Hv&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof qv?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Hv&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=ay);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,sy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,sy)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=Pv(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),uy=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=ke({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ly(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),cy=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),dy=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Oe(t,["attached"]),o=Pv(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},Sv(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),py=new dy,fy="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),hy="2f1acc6c3a606b082e5eef5e54414ffb";null==fy[hy]&&(fy[hy]=0);var my=fy[hy]++,gy=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+my+o+t:i+r.key+"-"+my+(o?"-"+o:"")+"-"+t}},vy=function(e){var t;return function(){return t||(t=e()),t}},yy=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},by=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=Dv(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},xy=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Sy=function(e,t){return e.selectorText=t,e.selectorText===t},wy=vy((function(){return document.querySelector("head")}));function Cy(e){var t=py.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=wy(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var Ey=vy((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Iy=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Dy=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Py=function(){function e(e){this.getPropertyValue=yy,this.setProperty=by,this.removeProperty=xy,this.setSelector=Sy,this.hasInsertedRules=!1,this.cssRules=[],e&&py.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=Ey();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=Cy(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else wy().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=Dy(r,t);if(!1===(o=Iy(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=Dy(r,t),l=Iy(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof uy&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),My=0,Ry=function(){function e(e){this.id=My++,this.version="10.10.0",this.plugins=new cy,this.options={id:{minify:!1},createGenerateId:gy,Renderer:xv?Py:null,plugins:[]},this.generateId=gy({minify:!1});for(var t=0;t<iy.length;t++)this.plugins.use(iy[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=ke({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===py.index?0:py.index+1);var n=new uy(e,ke({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),py.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=ke({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=Ev(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),Ly=function(e){return new Ry(e)},Ay="object"==typeof CSS&&null!=CSS&&"number"in CSS;function ky(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=ky(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
88
|
+
`),Gl.rippleVisible,Ql,550,(({theme:e})=>e.transitions.easing.easeInOut),Gl.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Gl.child,Gl.childLeaving,eu,550,(({theme:e})=>e.transitions.easing.easeInOut),Gl.childPulsate,tu,(({theme:e})=>e.transitions.easing.easeInOut)),ou=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:i={},className:a}=r,s=Oe(r,Ul),[l,u]=o.useState([]),c=o.useRef(0),d=o.useRef(null);o.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const p=o.useRef(!1),f=la(),h=o.useRef(null),m=o.useRef(null),g=o.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,ii.jsx(nu,{classes:{ripple:hi(i.ripple,Gl.ripple),rippleVisible:hi(i.rippleVisible,Gl.rippleVisible),ripplePulsate:hi(i.ripplePulsate,Gl.ripplePulsate),child:hi(i.child,Gl.child),childLeaving:hi(i.childLeaving,Gl.childLeaving),childPulsate:hi(i.childPulsate,Gl.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),v=o.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):g({pulsate:o,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[n,g,f]),y=o.useCallback((()=>{v({},{pulsate:!0})}),[v]),b=o.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{b(e,t)}));h.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return o.useImperativeHandle(t,(()=>({pulsate:y,start:v,stop:b})),[y,v,b]),ii.jsx(ru,ke({className:hi(Gl.root,i.root,a),ref:m},s,{children:ii.jsx(Fl,{component:null,exit:!0,children:l})}))}));function iu(e){return vi("MuiButtonBase",e)}const au=yi("MuiButtonBase",["root","disabled","focusVisible"]),su=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],lu=fl("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${au.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),uu=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:I,onTouchMove:D,onTouchStart:P,tabIndex:M=0,TouchRippleProps:R,touchRippleRef:L,type:A}=r,k=Oe(r,su),O=o.useRef(null),q=o.useRef(null),T=oa(q,L),{isFocusVisibleRef:_,onFocus:j,onBlur:N,ref:F}=va(),[z,W]=o.useState(!1);u&&z&&W(!1),o.useImperativeHandle(n,(()=>({focusVisible:()=>{W(!0),O.current.focus()}})),[]);const[$,V]=o.useState(!1);o.useEffect((()=>{V(!0)}),[]);const H=$&&!c&&!u;function B(e,t,r=d){return na((n=>{t&&t(n);return!r&&q.current&&q.current[e](n),!0}))}o.useEffect((()=>{z&&p&&!c&&$&&q.current.pulsate()}),[c,p,z,$]);const G=B("start",w),U=B("stop",g),Y=B("stop",v),K=B("stop",E),X=B("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=B("start",P),Z=B("stop",I),Q=B("stop",D),ee=B("stop",(e=>{N(e),!1===_.current&&W(!1),h&&h(e)}),!1),te=na((e=>{O.current||(O.current=e.currentTarget),j(e),!0===_.current&&(W(!0),b&&b(e)),y&&y(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=o.useRef(!1),oe=na((e=>{p&&!ne.current&&z&&q.current&&" "===e.key&&(ne.current=!0,q.current.stop(e,(()=>{q.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))})),ie=na((e=>{p&&" "===e.key&&q.current&&z&&!e.defaultPrevented&&(ne.current=!1,q.current.stop(e,(()=>{q.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(k.href||k.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===A?"button":A,se.disabled=u):(k.href||k.to||(se.role="button"),u&&(se["aria-disabled"]=u));const le=oa(t,F,O),ue=ke({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=ba({root:["root",t&&"disabled",r&&"focusVisible"]},iu,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ii.jsxs(lu,ke({as:ae,className:hi(ce.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:u?-1:M,type:A},se,k,{children:[a,H?ii.jsx(ou,ke({ref:T,center:i},R)):null]}))}));function cu(e){return vi("MuiTypography",e)}yi("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const du=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],pu=fl("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Yn(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>ke({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),fu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hu={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},mu=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiTypography"}),n=(e=>hu[e]||e)(r.color),o=ui(ke({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=fu}=o,f=Oe(o,du),h=ke({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||fu[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return ba({root:["root",i,"inherit"!==e.align&&`align${Yn(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},cu,a)})(h);return ii.jsx(pu,ke({as:m,ref:t,ownerState:h,className:hi(g.root,a)},f))}));const gu=o.forwardRef((function(e,t){const{children:r,container:n,disablePortal:i=!1}=e,[a,s]=o.useState(null),l=oa(o.isValidElement(r)?Ia(r):null,t);if(Vi((()=>{i||s(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,i]),Vi((()=>{if(a&&!i)return Zi(t,a),()=>{Zi(t,null)}}),[t,a,i]),i){if(o.isValidElement(r)){const e={ref:l};return o.cloneElement(r,e)}return ii.jsx(o.Fragment,{children:r})}return ii.jsx(o.Fragment,{children:a?I.createPortal(r,a):a})})),vu=["onChange","maxRows","minRows","style","value"];function yu(e){return parseInt(e,10)||0}const bu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function xu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Su=o.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:i=1,style:a,value:s}=e,l=Oe(e,vu),{current:u}=o.useRef(null!=s),c=o.useRef(null),d=oa(t,c),p=o.useRef(null),f=o.useRef(null),h=o.useCallback((()=>{const t=c.current,r=f.current;if(!t||!r)return;const o=Ji(t).getComputedStyle(t);if("0px"===o.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=o.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=o.boxSizing,s=yu(o.paddingBottom)+yu(o.paddingTop),l=yu(o.borderBottomWidth)+yu(o.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let p=u;i&&(p=Math.max(Number(i)*d,p)),n&&(p=Math.min(Number(n)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-u)<=1}}),[n,i,e.placeholder]),m=na((()=>{const e=c.current,t=h();if(!e||!t||xu(t))return!1;const r=t.outerHeightStyle;return null!=p.current&&p.current!==r})),g=o.useCallback((()=>{const e=c.current,t=h();if(!e||!t||xu(t))return;const r=t.outerHeightStyle;p.current!==r&&(p.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[h]),v=o.useRef(-1);Vi((()=>{const e=Ki(g),t=null==c?void 0:c.current;if(!t)return;const r=Ji(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{m()&&(n.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[h,g,m]),Vi((()=>{g()}));return ii.jsxs(o.Fragment,{children:[ii.jsx("textarea",ke({value:s,onChange:e=>{u||g(),r&&r(e)},ref:d,rows:i,style:a},l)),ii.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:ke({},bu,a,{paddingTop:0,paddingBottom:0})})]})}));function wu({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const Cu=o.createContext(void 0);function Eu(){return o.useContext(Cu)}function Iu(e){return ii.jsx(si,ke({},e,{defaultTheme:As,themeId:Ae}))}function Du(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Pu(e,t=!1){return e&&(Du(e.value)&&""!==e.value||t&&Du(e.defaultValue)&&""!==e.defaultValue)}function Mu(e){return vi("MuiInputBase",e)}const Ru=yi("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Lu=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Au=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Yn(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ku=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Ou=fl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Au})((({theme:e,ownerState:t})=>ke({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ru.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&ke({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),qu=fl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ku})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=ke({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return ke({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ru.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ru.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Tu=ii.jsx(Iu,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),_u=o.forwardRef((function(e,t){var r;const n=vl({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:v="input",inputProps:y={},inputRef:b,maxRows:x,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:I,onClick:D,onFocus:P,onKeyDown:M,onKeyUp:R,placeholder:L,readOnly:A,renderSuffix:k,rows:O,slotProps:q={},slots:T={},startAdornment:_,type:j="text",value:N}=n,F=Oe(n,Lu),z=null!=y.value?y.value:N,{current:W}=o.useRef(null!=z),$=o.useRef(),V=o.useCallback((e=>{}),[]),H=oa($,b,y.ref,V),[B,G]=o.useState(!1),U=Eu(),Y=wu({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:B,o.useEffect((()=>{!U&&p&&B&&(G(!1),E&&E())}),[U,p,B,E]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=o.useCallback((e=>{Pu(e)?K&&K():X&&X()}),[K,X]);Vi((()=>{W&&J({value:z})}),[z,J,W]);o.useEffect((()=>{J($.current)}),[]);let Z=v,Q=y;w&&"input"===Z&&(Q=ke(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=Su);o.useEffect((()=>{U&&U.setAdornedStart(Boolean(_))}),[U,_]);const ee=ke({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:h,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:_,type:j}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return ba({root:["root",`color${Yn(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Yn(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Mu,t)})(ee),re=T.root||u.Root||Ou,ne=q.root||c.root||{},oe=T.input||u.Input||qu;return Q=ke({},Q,null!=(r=q.input)?r:c.input),ii.jsxs(o.Fragment,{children:[!f&&Tu,ii.jsxs(re,ke({},ne,!xa(re)&&{ownerState:ke({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),D&&D(e)}},F,{className:hi(te.root,ne.className,l,A&&"MuiInputBase-readOnly"),children:[_,ii.jsx(Cu.Provider,{value:null,children:ii.jsx(oe,ke({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Y.disabled,id:g,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:C,placeholder:L,readOnly:A,required:Y.required,rows:O,value:z,onKeyDown:M,onKeyUp:R,type:j},Q,!xa(oe)&&{as:Z,ownerState:ke({},ee,Q.ownerState)},{ref:H,className:hi(te.input,Q.className,A&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),y.onBlur&&y.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!W){const t=e.target||$.current;if(null==t)throw new Error(Re(1));J({value:t.value})}y.onChange&&y.onChange(e,...t),I&&I(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),y.onFocus&&y.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),h,k?k(ke({},Y,{startAdornment:_})):null]}))]})}));function ju(e){return vi("MuiInput",e)}const Nu=ke({},Ru,yi("MuiInput",["root","underline","input"]));function Fu(e){return vi("MuiOutlinedInput",e)}const zu=ke({},Ru,yi("MuiOutlinedInput",["root","notchedOutline","input"]));function Wu(e){return vi("MuiFilledInput",e)}const $u=ke({},Ru,yi("MuiFilledInput",["root","underline","input"]));var Vu=wl(ii.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Hu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Bu={entering:{opacity:1},entered:{opacity:1}},Gu=o.forwardRef((function(e,t){const r=ks(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:v=n,TransitionComponent:y=kl}=e,b=Oe(e,Hu),x=o.useRef(null),S=oa(x,Ia(s),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(p),E=w(((e,t)=>{zl(e);const n=Wl({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),I=w(d),D=w(m),P=w((e=>{const t=Wl({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),M=w(h);return ii.jsx(y,ke({appear:a,in:u,nodeRef:x,onEnter:E,onEntered:I,onEntering:C,onExit:P,onExited:M,onExiting:D,addEndListener:e=>{i&&i(x.current,e)},timeout:v},b,{children:(e,t)=>o.cloneElement(s,ke({style:ke({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Bu[e],g,s.props.style),ref:S},t))}))}));function Uu(e){return vi("MuiBackdrop",e)}yi("MuiBackdrop",["root","invisible"]);const Yu=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ku=fl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>ke({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Xu=o.forwardRef((function(e,t){var r,n,o;const i=vl({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Gu,transitionDuration:g}=i,v=Oe(i,Yu),y=ke({},i,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:r}=e;return ba({root:["root",r&&"invisible"]},Uu,t)})(y),x=null!=(r=f.root)?r:c.root;return ii.jsx(m,ke({in:p,timeout:g},v,{children:ii.jsx(Ku,ke({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:hi(b.root,s,null==x?void 0:x.className),ownerState:ke({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))})),Ju=yi("MuiBox",["root"]),Zu=Ls(),Qu=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:i}=e,a=kn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})($o);return o.forwardRef((function(e,o){const s=Ko(r),l=ui(e),{className:u,component:c="div"}=l,d=Oe(l,mi);return ii.jsx(a,ke({as:c,ref:o,className:hi(u,i?i(n):n),theme:t&&s[t]||s},d))}))}({themeId:Ae,defaultTheme:Zu,defaultClassName:Ju.root,generateClassName:pi.generate});function ec(e){return vi("MuiButton",e)}const tc=yi("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),rc=o.createContext({}),nc=o.createContext(void 0),oc=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ic=e=>ke({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ac=fl(uu,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Yn(r.color)}`],t[`size${Yn(r.size)}`],t[`${r.variant}Size${Yn(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return ke({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":ke({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ya(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ya(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ya(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":ke({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${tc.focusVisible}`]:ke({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${tc.disabled}`]:ke({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ya(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${tc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${tc.disabled}`]:{boxShadow:"none"}})),sc=fl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Yn(r.size)}`]]}})((({ownerState:e})=>ke({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},ic(e)))),lc=fl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Yn(r.size)}`]]}})((({ownerState:e})=>ke({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},ic(e)))),uc=o.forwardRef((function(e,t){const r=o.useContext(rc),n=o.useContext(nc),i=vl({props:$i(r,e),name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:h,fullWidth:m=!1,size:g="medium",startIcon:v,type:y,variant:b="text"}=i,x=Oe(i,oc),S=ke({},i,{color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:m,size:g,type:y,variant:b}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return ke({},a,ba({root:["root",i,`${i}${Yn(t)}`,`size${Yn(o)}`,`${i}Size${Yn(o)}`,`color${Yn(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Yn(o)}`],endIcon:["icon","endIcon",`iconSize${Yn(o)}`]},ec,a))})(S),C=v&&ii.jsx(sc,{className:w.startIcon,ownerState:S,children:v}),E=f&&ii.jsx(lc,{className:w.endIcon,ownerState:S,children:f}),I=n||"";return ii.jsxs(ac,ke({ownerState:S,className:hi(r.className,w.root,u,I),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:hi(w.focusVisible,h),ref:t,type:y},x,{classes:w,children:[C,a,E]}))}));function cc(e){return vi("PrivateSwitchBase",e)}yi("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const dc=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],pc=fl(uu,{name:"MuiSwitchBase"})((({ownerState:e})=>ke({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),fc=fl("input",{name:"MuiSwitchBase",shouldForwardProp:pl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),hc=o.forwardRef((function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:y,required:b=!1,tabIndex:x,type:S,value:w}=e,C=Oe(e,dc),[E,I]=ra({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),D=Eu();let P=s;D&&void 0===P&&(P=D.disabled);const M="checkbox"===S||"radio"===S,R=ke({},e,{checked:E,disabled:P,disableFocusRipple:l,edge:u}),L=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return ba({root:["root",r&&"checked",n&&"disabled",o&&`edge${Yn(o)}`],input:["input"]},cc,t)})(R);return ii.jsxs(pc,ke({component:"span",className:hi(L.root,i),centerRipple:!0,focusRipple:!l,disabled:P,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),D&&D.onFocus&&D.onFocus(e)},onBlur:e=>{m&&m(e),D&&D.onBlur&&D.onBlur(e)},ownerState:R,ref:t},C,{children:[ii.jsx(fc,ke({autoFocus:r,checked:n,defaultChecked:a,className:L.input,disabled:P,id:M?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;I(t),g&&g(e,t)},readOnly:y,ref:f,required:b,ownerState:R,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?o:c]}))}));var mc=wl(ii.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),gc=wl(ii.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),vc=wl(ii.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function yc(e){return vi("MuiCheckbox",e)}const bc=yi("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),xc=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Sc=fl(hc,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Yn(r.size)}`],"default"!==r.color&&t[`color${Yn(r.color)}`]]}})((({theme:e,ownerState:t})=>ke({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ya("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${bc.checked}, &.${bc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${bc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),wc=ii.jsx(gc,{}),Cc=ii.jsx(mc,{}),Ec=ii.jsx(vc,{}),Ic=o.forwardRef((function(e,t){var r,n;const i=vl({props:e,name:"MuiCheckbox"}),{checkedIcon:a=wc,color:s="primary",icon:l=Cc,indeterminate:u=!1,indeterminateIcon:c=Ec,inputProps:d,size:p="medium",className:f}=i,h=Oe(i,xc),m=u?c:l,g=u?c:a,v=ke({},i,{color:s,indeterminate:u,size:p}),y=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return ke({},t,ba({root:["root",r&&"indeterminate",`color${Yn(n)}`,`size${Yn(o)}`]},yc,t))})(v);return ii.jsx(Sc,ke({type:"checkbox",inputProps:ke({"data-indeterminate":u},d),icon:o.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:p}),checkedIcon:o.cloneElement(g,{fontSize:null!=(n=g.props.fontSize)?n:p}),ownerState:v,ref:t,className:hi(y.root,f)},h,{classes:y}))}));function Dc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Pc(e){return parseInt(Ji(e).getComputedStyle(e).paddingRight,10)||0}function Mc(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Dc(e,o)}))}function Rc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Lc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Xi(e);return t.body===e?Ji(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=ya(Xi(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Pc(n)+e}px`;const t=Xi(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Pc(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Xi(n).body;else{const t=n.parentElement,r=Ji(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const Ac=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kc(e){const t=[],r=[];return Array.from(e.querySelectorAll(Ac)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Oc(){return!0}function qc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=kc,isEnabled:s=Oc,open:l}=e,u=o.useRef(!1),c=o.useRef(null),d=o.useRef(null),p=o.useRef(null),f=o.useRef(null),h=o.useRef(!1),m=o.useRef(null),g=oa(Ia(t),m),v=o.useRef(null);o.useEffect((()=>{l&&m.current&&(h.current=!r)}),[r,l]),o.useEffect((()=>{if(!l||!m.current)return;const e=Xi(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[l]),o.useEffect((()=>{if(!l||!m.current)return;const e=Xi(m.current),t=t=>{v.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(m.current)),r.length>0){var o,i;const e=Boolean((null==(o=v.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=v.current)?void 0:i.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,i,s,l,a]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return ii.jsxs(o.Fragment,{children:[ii.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),ii.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const Tc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Dc(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Mc(t,e.mount,e.modalRef,n,!0);const o=Rc(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Rc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Lc(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Rc(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Dc(e.modalRef,t),Mc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Dc(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function _c(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=Tc,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:p}=e,f=o.useRef({}),h=o.useRef(null),m=o.useRef(null),g=oa(m,p),[v,y]=o.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=m.current,f.current.mount=h.current,f.current),w=()=>{i.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=na((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Xi(h.current).body;i.add(S(),e),m.current&&w()})),E=o.useCallback((()=>i.isTopModal(S())),[i]),I=na((e=>{h.current=e,e&&(d&&E()?w():m.current&&Dc(m.current,x))})),D=o.useCallback((()=>{i.remove(S(),x)}),[x,i]);o.useEffect((()=>()=>{D()}),[D]),o.useEffect((()=>{d?C():b&&a||D()}),[d,D,b,a,C]);const P=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Sa(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=ke({},r,t);return ke({role:"presentation"},n,{onKeyDown:P(n),ref:g})},getBackdropProps:(e={})=>ke({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:Yi((()=>{y(!1),s&&s()}),null==u?void 0:u.props.onEnter),onExited:Yi((()=>{y(!0),l&&l(),a&&D()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:I,isTopModal:E,exited:v,hasTransition:b}}function jc(e){return vi("MuiModal",e)}yi("MuiModal",["root","hidden","backdrop"]);const Nc=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Fc=fl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>ke({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),zc=fl(Xu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Wc=o.forwardRef((function(e,t){var r,n,i,a,s,l;const u=vl({name:"MuiModal",props:e}),{BackdropComponent:c=zc,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:I=!1,keepMounted:D=!1,onBackdropClick:P,open:M,slotProps:R,slots:L}=u,A=Oe(u,Nc),k=ke({},u,{closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:I,keepMounted:D}),{getRootProps:O,getBackdropProps:q,getTransitionProps:T,portalRef:_,isTopModal:j,exited:N,hasTransition:F}=_c(ke({},k,{rootRef:t})),z=ke({},k,{exited:N}),W=(e=>{const{open:t,exited:r,classes:n}=e;return ba({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},jc,n)})(z),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const V=null!=(r=null!=(n=null==L?void 0:L.root)?n:v.Root)?r:Fc,H=null!=(i=null!=(a=null==L?void 0:L.backdrop)?a:v.Backdrop)?i:c,B=null!=(s=null==R?void 0:R.root)?s:y.root,G=null!=(l=null==R?void 0:R.backdrop)?l:y.backdrop,U=Ea({elementType:V,externalSlotProps:B,externalForwardedProps:A,getSlotProps:O,additionalProps:{ref:t,as:g},ownerState:z,className:hi(p,null==B?void 0:B.className,null==W?void 0:W.root,!z.open&&z.exited&&(null==W?void 0:W.hidden))}),Y=Ea({elementType:H,externalSlotProps:G,additionalProps:d,getSlotProps:e=>q(ke({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:hi(null==G?void 0:G.className,null==d?void 0:d.className,null==W?void 0:W.backdrop),ownerState:z});return D||M||F&&!N?ii.jsx(gu,{ref:_,container:m,disablePortal:w,children:ii.jsxs(V,ke({},U,{children:[!I&&c?ii.jsx(H,ke({},Y)):null,ii.jsx(qc,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:j,open:M,children:o.cloneElement(h,$)})]}))}):null}));function $c(e){return vi("MuiDivider",e)}const Vc=yi("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Hc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Bc=fl("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>ke({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ya(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>ke({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>ke({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>ke({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>ke({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Gc=fl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>ke({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Uc=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Oe(r,Hc),h=ke({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return ba({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},$c,n)})(h);return ii.jsx(Bc,ke({as:a,className:hi(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?ii.jsx(Gc,{className:m.wrapper,ownerState:h,children:o}):null}))}));Uc.muiSkipListHighlight=!0;const Yc=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Kc=fl(Ou,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Au(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return ke({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${$u.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${$u.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${$u.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$u.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${$u.disabled}, .${$u.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${$u.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&ke({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),Xc=fl(qu,{name:"MuiFilledInput",slot:"Input",overridesResolver:ku})((({theme:e,ownerState:t})=>ke({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Jc=o.forwardRef((function(e,t){var r,n,o,i;const a=vl({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Oe(a,Yc),g=ke({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:r}=e;return ke({},t,ba({root:["root",!r&&"underline"],input:["input"]},Wu,t))})(a),y={root:{ownerState:g},input:{ownerState:g}},b=(null!=p?p:l)?Nn(y,null!=p?p:l):y,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Kc,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Xc;return ii.jsx(_u,ke({slots:{root:x,input:S},componentsProps:b,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))}));Jc.muiName="Input";const Zc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Qc(e){return`scale(${e}, ${e**2})`}const ed={entering:{opacity:1,transform:Qc(1)},entered:{opacity:1,transform:"none"}},td="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rd=o.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:i,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=kl}=e,v=Oe(e,Zc),y=la(),b=o.useRef(),x=ks(),S=o.useRef(null),w=oa(S,Ia(i),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(c),I=C(((e,t)=>{zl(e);const{duration:r,delay:n,easing:o}=Wl({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:td?i:.666*i,delay:n,easing:o})].join(","),l&&l(e,t)})),D=C(u),P=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=Wl({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:td?o:.666*o,delay:td?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Qc(.75),d&&d(e)})),R=C(p);return ii.jsx(g,ke({appear:n,in:s,nodeRef:S,onEnter:I,onEntered:D,onEntering:E,onExit:M,onExited:R,onExiting:P,addEndListener:e=>{"auto"===m&&y.start(b.current||0,e),r&&r(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>o.cloneElement(i,ke({style:ke({opacity:0,transform:Qc(.75),visibility:"exited"!==e||s?void 0:"hidden"},ed[e],h,i.props.style),ref:w},t))}))}));rd.muiSupportAuto=!0;const nd=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],od=fl(Ou,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Au(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),ke({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Nu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Nu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Nu.disabled}, .${Nu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Nu.disabled}:before`]:{borderBottomStyle:"dotted"}})})),id=fl(qu,{name:"MuiInput",slot:"Input",overridesResolver:ku})({}),ad=o.forwardRef((function(e,t){var r,n,o,i;const a=vl({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Oe(a,nd),v=(e=>{const{classes:t,disableUnderline:r}=e;return ke({},t,ba({root:["root",!r&&"underline"],input:["input"]},ju,t))})(a),y={root:{ownerState:{disableUnderline:s}}},b=(null!=f?f:u)?Nn(null!=f?f:u,y):y,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:od,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:id;return ii.jsx(_u,ke({slots:{root:x,input:S},slotProps:b,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))}));function sd(e){return vi("MuiInputAdornment",e)}ad.muiName="Input";const ld=yi("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ud;const cd=["children","className","component","disablePointerEvents","disableTypography","position","variant"],dd=fl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Yn(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})((({theme:e,ownerState:t})=>ke({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${ld.positionStart}&:not(.${ld.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),pd=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiInputAdornment"}),{children:n,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=Oe(r,cd),p=Eu()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=ke({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e;return ba({root:["root",r&&"disablePointerEvents",o&&`position${Yn(o)}`,a,n&&"hiddenLabel",i&&`size${Yn(i)}`]},sd,t)})(h);return ii.jsx(Cu.Provider,{value:null,children:ii.jsx(dd,ke({as:a,ownerState:h,className:hi(m.root,i),ref:t},d,{children:"string"!=typeof n||l?ii.jsxs(o.Fragment,{children:["start"===u?ud||(ud=ii.jsx("span",{className:"notranslate",children:""})):null,n]}):ii.jsx(mu,{color:"text.secondary",children:n})}))})}));function fd(e){return vi("MuiLink",e)}const hd=yi("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),md={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},gd=({theme:e,ownerState:t})=>{const r=(e=>md[e]||e)(t.color),n=Xn(e,`palette.${r}`,!1)||t.color,o=Xn(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ya(n,.4)},vd=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],yd=fl(mu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Yn(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>ke({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&ke({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:gd({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${hd.focusVisible}`]:{outline:"auto"}}))),bd=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiLink"}),{className:n,color:i="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=r,f=Oe(r,vd),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:v}=va(),[y,b]=o.useState(!1),x=oa(t,v),S=ke({},r,{color:i,component:a,focusVisible:y,underline:c,variant:d}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return ba({root:["root",`underline${Yn(o)}`,"button"===r&&"button",n&&"focusVisible"]},fd,t)})(S);return ii.jsx(yd,ke({color:i,className:hi(w.root,n),classes:u,component:a,onBlur:e=>{m(e),!1===h.current&&b(!1),s&&s(e)},onFocus:e=>{g(e),!0===h.current&&b(!0),l&&l(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(md).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),xd=o.createContext({});function Sd(e){return vi("MuiList",e)}yi("MuiList",["root","padding","dense","subheader"]);const wd=["children","className","component","dense","disablePadding","subheader"],Cd=fl("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>ke({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Ed=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiList"}),{children:n,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=Oe(r,wd),d=o.useMemo((()=>({dense:s})),[s]),p=ke({},r,{component:a,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ba({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Sd,t)})(p);return ii.jsx(xd.Provider,{value:d,children:ii.jsxs(Cd,ke({as:a,className:hi(f.root,i),ref:t,ownerState:p},c,{children:[u,n]}))})}));function Id(e){return vi("MuiListItem",e)}const Dd=yi("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Pd=yi("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Md(e){return vi("MuiListItemSecondaryAction",e)}yi("MuiListItemSecondaryAction",["root","disableGutters"]);const Rd=["className"],Ld=fl("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})((({ownerState:e})=>ke({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Ad=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,i=Oe(r,Rd),a=ke({},r,{disableGutters:o.useContext(xd).disableGutters}),s=(e=>{const{disableGutters:t,classes:r}=e;return ba({root:["root",t&&"disableGutters"]},Md,r)})(a);return ii.jsx(Ld,ke({className:hi(s.root,n),ownerState:a,ref:t},i))}));Ad.muiName="ListItemSecondaryAction";const kd=["className"],Od=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],qd=fl("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>ke({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&ke({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Pd.root}`]:{paddingRight:48}},{[`&.${Dd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Dd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Dd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Dd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Dd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Td=fl("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),_d=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:f}={},dense:h=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:x,selected:S=!1,slotProps:w={},slots:C={}}=r,E=Oe(r.ContainerProps,kd),I=Oe(r,Od),D=o.useContext(xd),P=o.useMemo((()=>({dense:h||D.dense||!1,alignItems:n,disableGutters:g})),[n,D.dense,h,g]),M=o.useRef(null);Vi((()=>{i&&M.current&&M.current.focus()}),[i]);const R=o.Children.toArray(s),L=R.length&&(A=R[R.length-1],k=["ListItemSecondaryAction"],o.isValidElement(A)&&-1!==k.indexOf(null!=(O=A.type.muiName)?O:null==(q=A.type)||null==(q=q._payload)||null==(q=q.value)?void 0:q.muiName));var A,k,O,q;const T=ke({},r,{alignItems:n,autoFocus:i,button:a,dense:P.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:L,selected:S}),_=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return ba({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Id,n)})(T),j=oa(M,t),N=C.root||c.Root||qd,F=w.root||d.root||{},z=ke({className:hi(_.root,F.className,l),disabled:m},I);let W=u||"li";return a&&(z.component=u||"div",z.focusVisibleClassName=hi(Dd.focusVisible,b),W=uu),L?(W=z.component||u?W:"div","li"===p&&("li"===W?W="div":"li"===z.component&&(z.component="div")),ii.jsx(xd.Provider,{value:P,children:ii.jsxs(Td,ke({as:p,className:hi(_.container,f),ref:j,ownerState:T},E,{children:[ii.jsx(N,ke({},F,!xa(N)&&{as:W,ownerState:ke({},T,F.ownerState)},z,{children:R})),R.pop()]}))})):ii.jsx(xd.Provider,{value:P,children:ii.jsxs(N,ke({},F,{as:W,ref:j},!xa(N)&&{ownerState:ke({},T,F.ownerState)},z,{children:[R,x&&ii.jsx(Ad,{children:x})]}))})}));function jd(e){return vi("MuiListItemIcon",e)}const Nd=yi("MuiListItemIcon",["root","alignItemsFlexStart"]),Fd=["className"],zd=fl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>ke({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Wd=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiListItemIcon"}),{className:n}=r,i=Oe(r,Fd),a=ke({},r,{alignItems:o.useContext(xd).alignItems}),s=(e=>{const{alignItems:t,classes:r}=e;return ba({root:["root","flex-start"===t&&"alignItemsFlexStart"]},jd,r)})(a);return ii.jsx(zd,ke({className:hi(s.root,n),ownerState:a,ref:t},i))})),$d=yi("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Vd=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Hd(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Bd(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Gd(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Ud(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Gd(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Yd=o.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Oe(e,Vd),f=o.useRef(null),h=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Vi((()=>{n&&f.current.focus()}),[n]),o.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${ya(Xi(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const m=oa(f,t);let g=-1;o.Children.forEach(a,((e,t)=>{o.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const v=o.Children.map(a,((e,t)=>{if(t===g){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),o.cloneElement(e,t)}return e}));return ii.jsx(Ed,ke({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,r=e.key,n=Xi(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Ud(t,n,u,l,Hd);else if("ArrowUp"===r)e.preventDefault(),Ud(t,n,u,l,Bd);else if("Home"===r)e.preventDefault(),Ud(t,null,u,l,Hd);else if("End"===r)e.preventDefault(),Ud(t,null,u,l,Bd);else if(1===r.length){const o=h.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=n&&!o.repeating&&Gd(n,o);o.previousKeyMatched&&(s||Ud(t,n,!1,l,Hd,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},p,{children:v}))}));function Kd(e){return vi("MuiPopover",e)}yi("MuiPopover",["root","paper"]);const Xd=["onEntering"],Jd=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Zd=["slotProps"];function Qd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function ep(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function tp(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function rp(e){return"function"==typeof e?e():e}const np=fl(Wc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),op=fl(Bl,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),ip=o.forwardRef((function(e,t){var r,n,i;const a=vl({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:g=16,open:v,PaperProps:y={},slots:b,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=rd,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:I=!1}=a,D=Oe(a.TransitionProps,Xd),P=Oe(a,Jd),M=null!=(r=null==x?void 0:x.paper)?r:y,R=o.useRef(),L=oa(R,M.ref),A=ke({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:D}),k=(e=>{const{classes:t}=e;return ba({root:["root"],paper:["paper"]},Kd,t)})(A),O=o.useCallback((()=>{if("anchorPosition"===d)return c;const e=rp(l),t=(e&&1===e.nodeType?e:Xi(R.current).body).getBoundingClientRect();return{top:t.top+Qd(t,u.vertical),left:t.left+ep(t,u.horizontal)}}),[l,u.horizontal,u.vertical,c,d]),q=o.useCallback((e=>({vertical:Qd(e,S.vertical),horizontal:ep(e,S.horizontal)})),[S.horizontal,S.vertical]),T=o.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=q(t);if("none"===d)return{top:null,left:null,transformOrigin:tp(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Ji(rp(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:tp(r)}}),[l,d,O,q,g]),[_,j]=o.useState(v),N=o.useCallback((()=>{const e=R.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)}),[T]);o.useEffect((()=>(I&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N))),[l,I,N]);o.useEffect((()=>{v&&N()})),o.useImperativeHandle(s,(()=>v?{updatePosition:()=>{N()}}:null),[v,N]),o.useEffect((()=>{if(!v)return;const e=Ki((()=>{N()})),t=Ji(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,v,N]);let F=C;"auto"!==C||w.muiSupportAuto||(F=void 0);const z=h||(l?Xi(rp(l)).body:void 0),W=null!=(n=null==b?void 0:b.root)?n:np,$=null!=(i=null==b?void 0:b.paper)?i:op,V=Ea({elementType:$,externalSlotProps:ke({},M,{style:_?M.style:ke({},M.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:A,className:hi(k.paper,null==M?void 0:M.className)}),H=Ea({elementType:W,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:A,className:hi(k.root,f)}),{slotProps:B}=H,G=Oe(H,Zd);return ii.jsx(W,ke({},G,!xa(W)&&{slotProps:B,disableScrollLock:I},{children:ii.jsx(w,ke({appear:!0,in:v,onEntering:(e,t)=>{E&&E(e,t),N()},onExited:()=>{j(!1)},timeout:F},D,{children:ii.jsx($,ke({},V,{children:p}))}))}))}));function ap(e){return vi("MuiMenu",e)}yi("MuiMenu",["root","paper","list"]);const sp=["onEntering"],lp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],up={vertical:"top",horizontal:"right"},cp={vertical:"top",horizontal:"left"},dp=fl(ip,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pp=fl(op,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),fp=fl(Yd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),hp=o.forwardRef((function(e,t){var r,n;const i=vl({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:v="selectedMenu",slots:y={},slotProps:b={}}=i,x=Oe(i.TransitionProps,sp),S=Oe(i,lp),w=(()=>{const e=o.useContext(Aa);return null!=e&&e})(),C=ke({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:x,variant:v}),E=(e=>{const{classes:t}=e;return ba({root:["root"],paper:["paper"],list:["list"]},ap,t)})(C),I=a&&!u&&p,D=o.useRef(null);let P=-1;o.Children.map(s,((e,t)=>{o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===P)&&(P=t))}));const M=null!=(r=y.paper)?r:pp,R=null!=(n=b.paper)?n:f,L=Ea({elementType:y.root,externalSlotProps:b.root,ownerState:C,className:[E.root,l]}),A=Ea({elementType:M,externalSlotProps:R,ownerState:C,className:E.paper});return ii.jsx(dp,ke({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?up:cp,slots:{paper:M,root:y.root},slotProps:{root:L,paper:A},open:p,ref:t,transitionDuration:m,TransitionProps:ke({onEntering:(e,t)=>{D.current&&D.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:h,children:ii.jsx(fp,ke({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:D,autoFocus:a&&(-1===P||u),autoFocusItem:I,variant:v},c,{className:hi(E.list,c.className),children:s}))}))}));function mp(e){return vi("MuiMenuItem",e)}const gp=yi("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),vp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],yp=fl(uu,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>ke({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${gp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ya(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${gp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Vc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Vc.inset}`]:{marginLeft:52},[`& .${$d.root}`]:{marginTop:0,marginBottom:0},[`& .${$d.inset}`]:{paddingLeft:36},[`& .${Nd.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ke({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Nd.root} svg`]:{fontSize:"1.25rem"}})))),bp=o.forwardRef((function(e,t){const r=vl({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,f=Oe(r,vp),h=o.useContext(xd),m=o.useMemo((()=>({dense:a||h.dense||!1,disableGutters:l})),[h.dense,a,l]),g=o.useRef(null);Vi((()=>{n&&g.current&&g.current.focus()}),[n]);const v=ke({},r,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return ke({},a,ba({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},mp,a))})(r),b=oa(g,t);let x;return r.disabled||(x=void 0!==d?d:-1),ii.jsx(xd.Provider,{value:m,children:ii.jsx(yp,ke({ref:b,role:c,tabIndex:x,component:i,focusVisibleClassName:hi(y.focusVisible,u),className:hi(y.root,p)},f,{ownerState:v,classes:y}))})}));function xp(e){return vi("MuiNativeSelect",e)}const Sp=yi("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),wp=["className","disabled","error","IconComponent","inputRef","variant"],Cp=({ownerState:e,theme:t})=>ke({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":ke({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Sp.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Ep=fl("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pl,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Sp.multiple}`]:t.multiple}]}})(Cp),Ip=({ownerState:e,theme:t})=>ke({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Sp.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Dp=fl("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Yn(r.variant)}`],r.open&&t.iconOpen]}})(Ip),Pp=o.forwardRef((function(e,t){const{className:r,disabled:n,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=e,u=Oe(e,wp),c=ke({},e,{disabled:n,variant:l,error:i}),d=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ba({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Yn(r)}`,i&&"iconOpen",n&&"disabled"]},xp,t)})(c);return ii.jsxs(o.Fragment,{children:[ii.jsx(Ep,ke({ownerState:c,className:hi(d.select,r),disabled:n,ref:s||t},u)),e.multiple?null:ii.jsx(Dp,{as:a,ownerState:c,className:d.icon})]})}));var Mp;const Rp=["children","classes","className","label","notched"],Lp=fl("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:pl})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ap=fl("legend",{name:"MuiNotchedOutlined",shouldForwardProp:pl})((({ownerState:e,theme:t})=>ke({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&ke({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const kp=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Op=fl(Ou,{shouldForwardProp:e=>pl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Au})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return ke({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${zu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${zu.focused} .${zu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${zu.error} .${zu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${zu.disabled} .${zu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&ke({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),qp=fl((function(e){const{className:t,label:r,notched:n}=e,o=Oe(e,Rp),i=null!=r&&""!==r,a=ke({},e,{notched:n,withLabel:i});return ii.jsx(Lp,ke({"aria-hidden":!0,className:t,ownerState:a},o,{children:ii.jsx(Ap,{ownerState:a,children:i?ii.jsx("span",{children:r}):Mp||(Mp=ii.jsx("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Tp=fl(qu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ku})((({theme:e,ownerState:t})=>ke({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),_p=o.forwardRef((function(e,t){var r,n,i,a,s;const l=vl({props:e,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:h,slots:m={},type:g="text"}=l,v=Oe(l,kp),y=(e=>{const{classes:t}=e;return ke({},t,ba({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Fu,t))})(l),b=Eu(),x=wu({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=ke({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),w=null!=(r=null!=(n=m.root)?n:u.Root)?r:Op,C=null!=(i=null!=(a=m.input)?a:u.Input)?i:Tp;return ii.jsx(_u,ke({slots:{root:w,input:C},renderSuffix:e=>ii.jsx(qp,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=ii.jsxs(o.Fragment,{children:[p," ","*"]})):p,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:d,multiline:f,ref:t,type:g},v,{classes:ke({},y,{notchedOutline:null})}))}));function jp(e){return vi("MuiSelect",e)}_p.muiName="Input";const Np=yi("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Fp;const zp=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Wp=fl("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Np.select}`]:t.select},{[`&.${Np.select}`]:t[r.variant]},{[`&.${Np.error}`]:t.error},{[`&.${Np.multiple}`]:t.multiple}]}})(Cp,{[`&.${Np.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),$p=fl("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Yn(r.variant)}`],r.open&&t.iconOpen]}})(Ip),Vp=fl("input",{shouldForwardProp:e=>dl(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Hp(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Bp(e){return null==e||"string"==typeof e&&!e.trim()}const Gp=o.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:g,labelId:v,MenuProps:y={},multiple:b,name:x,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:I,open:D,readOnly:P,renderValue:M,SelectDisplayProps:R={},tabIndex:L,value:A,variant:k="standard"}=e,O=Oe(e,zp),[q,T]=ra({controlled:A,default:d,name:"Select"}),[_,j]=ra({controlled:D,default:c,name:"Select"}),N=o.useRef(null),F=o.useRef(null),[z,W]=o.useState(null),{current:$}=o.useRef(null!=D),[V,H]=o.useState(),B=oa(t,g),G=o.useCallback((e=>{F.current=e,e&&W(e)}),[]),U=null==z?void 0:z.parentNode;o.useImperativeHandle(B,(()=>({focus:()=>{F.current.focus()},node:N.current,value:q})),[q]),o.useEffect((()=>{c&&_&&z&&!$&&(H(s?null:U.clientWidth),F.current.focus())}),[z,s]),o.useEffect((()=>{a&&F.current.focus()}),[a]),o.useEffect((()=>{if(!v)return;const e=Xi(F.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const Y=(e,t)=>{e?I&&I(t):C&&C(t),$||(H(s?null:U.clientWidth),j(e))},K=o.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(q)?q.slice():[];const t=q.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),q!==r&&(T(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),w(o,e)}b||Y(!1,t)}},J=null!==z&&_;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Pu({value:q})||f)&&(M?Z=M(q):te=!0);const re=K.map((e=>{if(!o.isValidElement(e))return null;let t;if(b){if(!Array.isArray(q))throw new Error(Re(2));t=q.some((t=>Hp(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Hp(q,e.props.value),t&&te&&(Q=e.props.children);return o.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=b?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=V;!s&&$&&z&&(oe=U.clientWidth),ne=void 0!==L?L:p?null:0;const ie=R.id||(x?`mui-component-select-${x}`:void 0),ae=ke({},e,{variant:k,value:q,open:J,error:h}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ba({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Yn(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},jp,t)})(ae),le=ke({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ue=ta();return ii.jsxs(o.Fragment,{children:[ii.jsx(Wp,ke({ref:G,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[v,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||P?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:q,name:x}}),S(e))},onFocus:E},R,{ownerState:ae,className:hi(R.className,se.select,u),id:ie,children:Bp(Z)?Fp||(Fp=ii.jsx("span",{className:"notranslate",children:""})):Z})),ii.jsx(Vp,ke({"aria-invalid":h,value:Array.isArray(q)?q.join(","):q,name:x,ref:N,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:p,className:se.nativeInput,autoFocus:a,ownerState:ae},O)),ii.jsx($p,{as:m,className:se.icon,ownerState:ae}),ii.jsx(hp,ke({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:ke({"aria-labelledby":v,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},y.MenuListProps),slotProps:ke({},y.slotProps,{paper:ke({},le,{style:ke({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),Up=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Yp=["root"],Kp={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>pl(e)&&"variant"!==e,slot:"Root"},Xp=fl(ad,Kp)(""),Jp=fl(_p,Kp)(""),Zp=fl(Jc,Kp)(""),Qp=o.forwardRef((function(e,t){const r=vl({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Vu,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:g,multiple:v=!1,native:y=!1,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,I=Oe(r,Up),D=y?Pp:Gp,P=wu({props:r,muiFormControl:Eu(),states:["variant","error"]}),M=P.variant||E,R=ke({},r,{variant:M,classes:a}),L=(e=>{const{classes:t}=e;return t})(R),A=Oe(L,Yp),k=p||{standard:ii.jsx(Xp,{ownerState:R}),outlined:ii.jsx(Jp,{label:h,ownerState:R}),filled:ii.jsx(Zp,{ownerState:R})}[M],O=oa(t,Ia(k));return ii.jsx(o.Fragment,{children:o.cloneElement(k,ke({inputComponent:D,inputProps:ke({children:i,error:P.error,IconComponent:c,variant:M,type:void 0,multiple:v},y?{id:d}:{autoWidth:n,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:g,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:ke({id:d},C)},f,{classes:f?Nn(A,f.classes):A},p?p.props.inputProps:{})},(v&&y||u)&&"outlined"===M?{notched:!0}:{},{ref:O,className:hi(k.props.className,s,L.root)},!p&&{variant:M},I))})}));Qp.muiName="Select";const ef={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},tf={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...ef,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},rf=12,nf=14,of=16,af=24,sf=3,lf=300,uf=400,cf=600,df=700,pf={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function ff(e){return ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ii.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function hf({fontSize:e="medium",children:t=null,className:r=""}={}){return ii.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function mf(e={}){return ii.jsx(hf,{...e,children:ii.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[ii.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),ii.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function gf(e={}){return ii.jsx(hf,{fontSize:"medium",...e,children:ii.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ii.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),ii.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function vf(e){return ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ii.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function yf(e={}){return ii.jsx(hf,{...e,children:ii.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ii.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[ii.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),ii.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function bf(e={}){return ii.jsx(hf,{fontSize:"medium",...e,children:ii.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ii.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:ii.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function xf({className:e}){return ii.jsx(hf,{fontSize:"small",className:e,children:ii.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:ii.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ii.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:ii.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[ii.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),ii.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Sf(e={}){return ii.jsx(hf,{...e,children:ii.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ii.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ii.jsx("rect",{stroke:tf.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const wf={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:sf,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var Cf=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:tf.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:tf.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:ii.jsx(ff,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${tf.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`,borderRadius:sf,backgroundColor:tf.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${tf.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:tf.WHITE,color:tf.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:sf},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${tf.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:tf.GREYSCALE_0_15,backgroundColor:tf.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tf.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:tf.GREEN_PALE},"&:active":{backgroundColor:tf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:tf.GREEN_PALE,boxShadow:`0 0 0 3px ${Ui(tf.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:tf.BLUE_PALE},"&:active":{backgroundColor:tf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:tf.BLUE_PALE,boxShadow:`0 0 0 3px ${Ui(tf.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:sf,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:tf.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${tf.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:tf.GREYSCALE_0_42,backgroundColor:tf.GREYSCALE_100_60,"&:active":{backgroundColor:tf.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${tf.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:tf.PURPLE,"&.Mui-focusVisible":{borderColor:tf.PURPLE,boxShadow:`0 0 0 3px ${Ui(tf.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:tf.GREEN,"&.Mui-focusVisible":{borderColor:tf.GREEN,boxShadow:`0 0 0 3px ${Ui(tf.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:tf.BLUE,"&.Mui-focusVisible":{borderColor:tf.BLUE,boxShadow:`0 0 0 3px ${Ui(tf.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:tf.ORANGE,"&.Mui-focusVisible":{borderColor:tf.ORANGE,boxShadow:`0 0 0 3px ${Ui(tf.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:tf.RED,"&.Mui-focusVisible":{borderColor:tf.RED,boxShadow:`0 0 0 3px ${Ui(tf.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:tf.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:tf.PURPLE_PALE},"&:active":{backgroundColor:tf.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:tf.PURPLE_PALE,boxShadow:`0 0 0 3px ${Ui(tf.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:tf.GREEN_PALE},"&:active":{backgroundColor:tf.GREEN_DARK},"&.Mui-focusVisible":{borderColor:tf.GREEN_PALE,boxShadow:`0 0 0 3px ${Ui(tf.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:tf.BLUE_PALE},"&:active":{backgroundColor:tf.BLUE_DARK},"&.Mui-focusVisible":{borderColor:tf.BLUE_PALE,boxShadow:`0 0 0 3px ${Ui(tf.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:tf.ORANGE_PALE},"&:active":{backgroundColor:tf.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:tf.ORANGE_PALE,boxShadow:`0 0 0 3px ${Ui(tf.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:tf.RED_PALE},"&:active":{backgroundColor:tf.RED_DARK},"&.Mui-focusVisible":{borderColor:tf.RED_PALE,boxShadow:`0 0 0 3px ${Ui(tf.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:tf.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:tf.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:sf,boxShadow:`inset 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:ii.jsx(vf,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:rf,borderRadius:sf,color:tf.TEXT_PRIMARY,backgroundColor:tf.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:tf.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:tf.GREYSCALE_0_05,color:tf.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:tf.GREEN,borderColor:tf.GREEN},"&.MuiChip-outlinedInfo":{color:tf.BLUE,borderColor:tf.BLUE},"&.MuiChip-outlinedWarning":{color:tf.ORANGE,borderColor:tf.ORANGE},"&.MuiChip-outlinedError":{color:tf.RED,borderColor:tf.RED}},outlined:{border:`solid 1px ${tf.GREYSCALE_0_15}`,backgroundColor:tf.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:sf,boxShadow:"none",backgroundColor:tf.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:tf.GREEN,borderColor:tf.GREEN},outlinedSecondary:{color:tf.BLUE,borderColor:tf.BLUE},label:{fontFamily:pf.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:ii.jsx(vf,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:ii.jsx(ff,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:sf},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:sf,fontSize:nf,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:tf.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${tf.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:tf.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:tf.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:tf.GREYSCALE_0_05}}},popupIndicator:{borderRadius:sf,border:`solid 1px ${tf.GREYSCALE_0_15}`,color:tf.GREYSCALE_0_60,marginRight:0,width:af,height:af},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${tf.GREYSCALE_0_15}`},clearIndicator:{borderRadius:sf,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:tf.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:nf}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:rf,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:tf.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:tf.GREYSCALE_25,fontSize:rf,fontFamily:pf.FONT_FAMILY,fontWeight:cf,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:tf.TEXT_PRIMARY},"&.Mui-error":{color:tf.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:tf.TEXT_SECONDARY,content:"'(optional)'",fontWeight:uf,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:tf.TEXT_SECONDARY,content:"'(required)'",fontWeight:uf,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:nf,lineHeight:"16px",backgroundColor:tf.WHITE,borderRadius:sf,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tf.GREYSCALE_0_05}`,borderColor:tf.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tf.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${tf.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${tf.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tf.RED}`,boxShadow:`0px 0px 0px 1px ${tf.RED}, inset 0 2px 0 0 ${tf.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${tf.GREYSCALE_0_10}`,borderColor:tf.GREYSCALE_0_10,backgroundColor:tf.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:tf.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:tf.GREYSCALE_0_15,borderRadius:sf,boxShadow:`inset 0 2px 0 0 ${tf.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>ii.jsx(ff,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:tf.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:tf.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:tf.GREYSCALE_0_03},"&:active":{backgroundColor:tf.GREYSCALE_0_10},"&:focus":{backgroundColor:tf.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${tf.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:tf.GREYSCALE_0_30,"&:hover":{backgroundColor:tf.GREYSCALE_0_0,borderColor:tf.GREYSCALE_0_15},"& ~svg":{color:tf.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${tf.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:sf}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:tf.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${tf.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:tf.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:nf,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:rf,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:rf,fontWeight:cf,color:tf.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:cf}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${tf.GREYSCALE_0_15}, 0px 0px 0px 1px ${tf.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:ii.jsx(bf,{}),checkedIcon:ii.jsx(gf,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:tf.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:tf.GREEN_PALE,boxShadow:`0 0 0 3px ${Ui(tf.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:tf.BLUE_PALE,boxShadow:`0 0 0 3px ${Ui(tf.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:tf.GREYSCALE_0_20}},"&.Mui-disabled":{fill:tf.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:ii.jsx(Sf,{}),checkedIcon:ii.jsx(mf,{}),indeterminateIcon:ii.jsx(yf,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:sf,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:tf.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:tf.GREYSCALE_0_55,color:tf.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:tf.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:tf.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:tf.GREYSCALE_0_55,"&:hover":{color:tf.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:tf.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:tf.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:nf,color:tf.TEXT_PRIMARY,lineHeight:"16px",fontWeight:cf},secondary:{fontSize:rf,color:tf.GREYSCALE_45,fontWeight:uf,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:nf,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:nf,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:tf.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:rf,borderBottom:`solid 1px ${tf.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:nf,color:tf.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:tf.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:tf.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:tf.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:tf.RED}}},"&.Mui-focusVisible":{backgroundColor:tf.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:tf.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:tf.GREEN,height:"24px","&.Mui-disabled":{color:tf.GREYSCALE_0_15}},rail:{backgroundColor:tf.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${tf.GREYSCALE_0_05}`,borderRadius:sf,boxShadow:`inset 0px 0px 0px 1px ${tf.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${tf.GREYSCALE_0_05}`,borderRadius:sf},thumb:{height:"16px",width:"16px",borderRadius:sf,backgroundColor:tf.WHITE,boxShadow:`0px 1px 2px 0px ${tf.GREYSCALE_0_15}, 0px 0px 0px 1px ${tf.GREYSCALE_0_05}`,"&:hover":{borderRadius:sf,boxShadow:`0 2px 4px 0 ${tf.GREYSCALE_0_30}, 0 0 0 1px ${tf.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${tf.GREYSCALE_0_15}, 0 0 0 1px ${tf.GREYSCALE_0_06}, 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${tf.GREYSCALE_0_15}, 0 0 0 1px ${tf.GREYSCALE_0_06}, 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:tf.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:tf.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:tf.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:tf.GREYSCALE_0_15},markLabel:{color:tf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:tf.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:tf.WHITE,color:tf.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:tf.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:tf.GREEN_PALE,boxShadow:`0 0 0 3px ${Ui(tf.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:tf.BLUE_PALE,boxShadow:`0 0 0 3px ${Ui(tf.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:tf.GREYSCALE_0_15,borderRadius:sf},thumb:{height:"16px",width:"16px",borderRadius:sf,backgroundColor:tf.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:nf,fontWeight:cf,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${tf.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${tf.MISC_FOCUS_BORDER}`,backgroundColor:tf.GREYSCALE_0_03,borderRadius:sf},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:tf.GREYSCALE_25,"&.Mui-selected":{color:tf.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:nf,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:sf,"&:hover":{backgroundColor:tf.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${tf.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${tf.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:sf,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:tf.GREYSCALE_0_05},"&:hover":{backgroundColor:tf.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${tf.GREYSCALE_85}`,borderRight:`1px solid ${tf.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:cf,backgroundColor:tf.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:tf.GREYSCALE_98,borderBottom:`1px solid ${tf.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${tf.GREYSCALE_85}`,borderTop:`1px solid ${tf.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:tf.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:tf.GREYSCALE_0_05,"&:hover":{backgroundColor:tf.GREYSCALE_0_03}},"&&:hover":{backgroundColor:tf.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>ii.jsx(xf,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${tf.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:nf,borderRadius:sf,padding:"7px 16px",border:`1px solid ${tf.GREYSCALE_0_15}`,backgroundColor:tf.GREYSCALE_100_60,color:tf.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:tf.GREYSCALE_0_10,border:`1px solid ${tf.GREYSCALE_0_30}`},"&:hover":{backgroundColor:tf.GREYSCALE_0_03,border:`1px solid ${tf.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:tf.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${tf.MISC_FOCUS_BORDER}`,border:`1px solid ${tf.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:tf.GREYSCALE_25,backgroundColor:tf.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:tf.GREYSCALE_0_10,border:`1px solid ${tf.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:rf,height:24,width:24,padding:7},sizeLarge:{fontSize:of,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:nf,borderRadius:sf}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:tf.GREYSCALE_20},tooltip:{backgroundColor:tf.GREYSCALE_20,fontSize:rf,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...wf}:{}}))(t);const Ef=e=>({mode:"light",primary:{ultraLight:tf.GREEN_ULTRA_LIGHT,light:tf.GREEN_PALE,main:tf.GREEN,dark:tf.GREEN_DARK,extraDark:tf.GREEN_EXTRA_DARK,contrastText:tf.WHITE},secondary:{ultraLight:tf.BLUE_ULTRA_LIGHT,light:tf.BLUE_PALE,main:tf.BLUE,dark:tf.BLUE_DARK,extraDark:tf.BLUE_EXTRA_DARK,contrastText:tf.WHITE},error:{ultraLight:tf.RED_ULTRA_LIGHT,light:tf.RED_PALE,main:tf.RED,dark:tf.RED_DARK,extraDark:tf.RED_EXTRA_DARK,contrastText:tf.WHITE},warning:{ultraLight:tf.ORANGE_ULTRA_LIGHT,light:tf.ORANGE_PALE,main:tf.ORANGE,dark:tf.ORANGE_DARK,extraDark:tf.ORANGE_EXTRA_DARK,contrastText:tf.WHITE},success:{ultraLight:tf.GREEN_ULTRA_LIGHT,light:tf.GREEN_PALE,main:tf.GREEN,dark:tf.GREEN_DARK,extraDark:tf.GREEN_EXTRA_DARK,contrastText:tf.WHITE},info:{ultraLight:tf.BLUE_ULTRA_LIGHT,light:tf.BLUE_PALE,main:tf.BLUE,dark:tf.BLUE_DARK,extraDark:tf.BLUE_EXTRA_DARK,contrastText:tf.WHITE},text:{primary:tf.TEXT_PRIMARY,secondary:tf.TEXT_SECONDARY,disabled:tf.GREYSCALE_0_30},action:{hover:tf.GREYSCALE_0_03,hoverOpacity:.03,selected:tf.GREYSCALE_0_05,selectedOpacity:.05,focus:tf.MISC_FOCUS_BORDER},amethyst:{ultraLight:tf.WHITE,main:tf.PURPLE,light:tf.PURPLE_PALE,dark:tf.PURPLE_DARK,extraDark:tf.GREYSCALE_0_0,contrastText:tf.WHITE},background:{paper:tf.WHITE,default:tf.GREYSCALE_95},divider:tf.GREYSCALE_0_15}),If=(e,t=!1)=>({components:Cf(0,t),palette:Ef(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:nf,fontWeightLight:lf,fontWeightRegular:uf,fontWeightMedium:cf,fontWeightBold:df,htmlFontSize:nf,fontFamily:pf.FONT_FAMILY,button:{fontWeight:cf,fontSize:nf,textTransform:"none"},body1:{fontSize:of,lineHeight:"24px"},body2:{fontSize:nf,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:af,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:of,fontWeight:cf,lineHeight:"16px"},h6:{fontSize:nf,fontWeight:cf,lineHeight:"16px"},caption:{color:tf.TEXT_SECONDARY},subtitle1:{fontSize:nf,color:tf.TEXT_SECONDARY},subtitle2:{fontSize:rf,color:tf.TEXT_SECONDARY}},shape:{borderRadius:sf}}),Df={...ef};var Pf={},Mf={exports:{}},Rf={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Rf);var Lf=Rf.exports;!function(e){var t=Lf.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Mf);var Af=Mf.exports,kf={};function Of(e,t){return function(){return null}}function qf(e){return e&&"object"===Fa(e)&&e.constructor===Object}function Tf(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?ke({},e):e;return qf(e)&&qf(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(qf(t[o])&&o in e?n[o]=Tf(e[o],t[o],r):n[o]=t[o])})),n}var _f=(Rn.element,function(){return null});_f.isRequired=(Rn.element.isRequired,function(){return null});var jf=function(){return null};var Nf={exports:{}},Ff={},zf=60103,Wf=60106,$f=60107,Vf=60108,Hf=60114,Bf=60109,Gf=60110,Uf=60112,Yf=60113,Kf=60120,Xf=60115,Jf=60116,Zf=60121,Qf=60122,eh=60117,th=60129,rh=60131;if("function"==typeof Symbol&&Symbol.for){var nh=Symbol.for;zf=nh("react.element"),Wf=nh("react.portal"),$f=nh("react.fragment"),Vf=nh("react.strict_mode"),Hf=nh("react.profiler"),Bf=nh("react.provider"),Gf=nh("react.context"),Uf=nh("react.forward_ref"),Yf=nh("react.suspense"),Kf=nh("react.suspense_list"),Xf=nh("react.memo"),Jf=nh("react.lazy"),Zf=nh("react.block"),Qf=nh("react.server.block"),eh=nh("react.fundamental"),th=nh("react.debug_trace_mode"),rh=nh("react.legacy_hidden")}function oh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case zf:switch(e=e.type){case $f:case Hf:case Vf:case Yf:case Kf:return e;default:switch(e=e&&e.$$typeof){case Gf:case Uf:case Jf:case Xf:case Bf:return e;default:return t}}case Wf:return t}}}var ih=Bf,ah=zf,sh=Uf,lh=$f,uh=Jf,ch=Xf,dh=Wf,ph=Hf,fh=Vf,hh=Yf;Ff.ContextConsumer=Gf,Ff.ContextProvider=ih,Ff.Element=ah,Ff.ForwardRef=sh,Ff.Fragment=lh,Ff.Lazy=uh,Ff.Memo=ch,Ff.Portal=dh,Ff.Profiler=ph,Ff.StrictMode=fh,Ff.Suspense=hh,Ff.isAsyncMode=function(){return!1},Ff.isConcurrentMode=function(){return!1},Ff.isContextConsumer=function(e){return oh(e)===Gf},Ff.isContextProvider=function(e){return oh(e)===Bf},Ff.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===zf},Ff.isForwardRef=function(e){return oh(e)===Uf},Ff.isFragment=function(e){return oh(e)===$f},Ff.isLazy=function(e){return oh(e)===Jf},Ff.isMemo=function(e){return oh(e)===Xf},Ff.isPortal=function(e){return oh(e)===Wf},Ff.isProfiler=function(e){return oh(e)===Hf},Ff.isStrictMode=function(e){return oh(e)===Vf},Ff.isSuspense=function(e){return oh(e)===Yf},Ff.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===$f||e===Hf||e===th||e===Vf||e===Yf||e===Kf||e===rh||"object"==typeof e&&null!==e&&(e.$$typeof===Jf||e.$$typeof===Xf||e.$$typeof===Bf||e.$$typeof===Gf||e.$$typeof===Uf||e.$$typeof===eh||e.$$typeof===Zf||e[0]===Qf)},Ff.typeOf=oh,Nf.exports=Ff;var mh=Nf.exports,gh=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function vh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(gh);return t&&t[1]||""}(e)||t}function yh(e,t,r){var n=vh(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var bh="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),xh=Rn.oneOfType([Rn.func,Rn.object]),Sh=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Of,deepmerge:Tf,elementAcceptingRef:_f,elementTypeAcceptingRef:jf,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return vh(e,"Component");if("object"===Fa(e))switch(e.$$typeof){case mh.ForwardRef:return yh(e,e.render,"ForwardRef");case mh.Memo:return yh(e,e.type,"memo");default:return}}},ponyfillGlobal:bh,refType:xh}),wh=In(Sh);Object.defineProperty(kf,"__esModule",{value:!0}),kf.hexToRgb=Ih,kf.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=Ph(e),r=t.values;return"#".concat(r.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},kf.hslToRgb=Dh,kf.decomposeColor=Ph,kf.recomposeColor=Mh,kf.getContrastRatio=function(e,t){var r=Rh(e),n=Rh(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},kf.getLuminance=Rh,kf.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Rh(e)>.5?Ah(e,t):kh(e,t)},kf.fade=function(e,t){return Lh(e,t)},kf.alpha=Lh,kf.darken=Ah,kf.lighten=kh;var Ch=wh;function Eh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function Ih(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function Dh(e){var t=(e=Ph(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Mh({type:s,values:l})}function Ph(e){if(e.type)return e;if("#"===e.charAt(0))return Ph(Ih(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,Ch.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function Mh(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function Rh(e){var t="hsl"===(e=Ph(e)).type?Ph(Dh(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Lh(e,t){return e=Ph(e),t=Eh(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Mh(e)}function Ah(e,t){if(e=Ph(e),t=Eh(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return Mh(e)}function kh(e,t){if(e=Ph(e),t=Eh(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return Mh(e)}var Oh,qh,Th,_h={},jh={exports:{}},Nh={exports:{}},Fh={exports:{}};function zh(){return Oh||(Oh=1,function(e){var t=Lf.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Fh)),Fh.exports}function Wh(){return qh||(qh=1,function(e){var t=Lf.default,r=zh();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Nh)),Nh.exports}function $h(){return Th||(Th=1,function(e){var t=Wh();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(jh)),jh.exports}var Vh,Hh={exports:{}};function Bh(){return Vh||(Vh=1,function(e){var t=Fs();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Hh)),Hh.exports}var Gh,Uh={};var Yh,Kh={};var Xh,Jh={},Zh={};var Qh,em={};var tm,rm={};var nm,om={};var im,am={};var sm,lm={};var um,cm={};var dm,pm,fm={};function hm(){if(pm)return Jh;pm=1;var e=Ha;Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.default=function(e){var g=e.primary,v=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,y=e.secondary,b=void 0===y?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:y,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,I=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,D=e.success,P=void 0===D?{light:d.default[300],main:d.default[500],dark:d.default[700]}:D,M=e.type,R=void 0===M?"light":M,L=e.contrastThreshold,A=void 0===L?3:L,k=e.tonalOffset,O=void 0===k?.2:k,q=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function T(e){return(0,p.getContrastRatio)(e,h.text.primary)>=A?h.text.primary:f.text.primary}var _=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=T(e.main)),e},j={dark:h,light:f},N=(0,n.deepmerge)((0,t.default)({common:o.default,type:R,primary:_(v),secondary:_(b,"A400","A200","A700"),error:_(S),warning:_(C),info:_(I),success:_(P),grey:i.default,contrastThreshold:A,getContrastText:T,augmentColor:_,tonalOffset:O},j[R]),q);return N},Jh.dark=Jh.light=void 0;var t=e(_s()),r=e(Bh()),n=wh,o=e(function(){if(Xh)return Zh;Xh=1,Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.default=void 0;var e={black:"#000",white:"#fff"};return Zh.default=e,Zh}()),i=e(function(){if(Qh)return em;Qh=1,Object.defineProperty(em,"__esModule",{value:!0}),em.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return em.default=e,em}()),a=e(function(){if(tm)return rm;tm=1,Object.defineProperty(rm,"__esModule",{value:!0}),rm.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return rm.default=e,rm}()),s=e(function(){if(nm)return om;nm=1,Object.defineProperty(om,"__esModule",{value:!0}),om.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return om.default=e,om}()),l=e(function(){if(im)return am;im=1,Object.defineProperty(am,"__esModule",{value:!0}),am.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return am.default=e,am}()),u=e(function(){if(sm)return lm;sm=1,Object.defineProperty(lm,"__esModule",{value:!0}),lm.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return lm.default=e,lm}()),c=e(function(){if(um)return cm;um=1,Object.defineProperty(cm,"__esModule",{value:!0}),cm.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return cm.default=e,cm}()),d=e(function(){if(dm)return fm;dm=1,Object.defineProperty(fm,"__esModule",{value:!0}),fm.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return fm.default=e,fm}()),p=kf,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};Jh.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return Jh.dark=h,Jh}var mm,gm={};var vm,ym={};var bm,xm={};var Sm={};function wm(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Cm(e,t){if(e){if("string"==typeof e)return wm(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wm(e,t):void 0}}function Em(e){return function(e){if(Array.isArray(e))return wm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Cm(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Im(e,t){return t?Tf(e,t,{clone:!1}):e}var Dm={xs:0,sm:600,md:960,lg:1280,xl:1920},Pm={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Dm[e],"px)")}};function Mm(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Pm;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===Fa(t)){var o=e.theme.breakpoints||Pm;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function Rm(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Lm(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=Rm(e.theme,o)||{};return Mm(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Rm(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=za(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)}))};return a.propTypes={},a.filterProps=[t],a}function Am(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce((function(t,r){var n=r(e);return n?Im(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function km(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Om=Lm({prop:"border",themeKey:"borders",transform:km}),qm=Lm({prop:"borderTop",themeKey:"borders",transform:km}),Tm=Lm({prop:"borderRight",themeKey:"borders",transform:km}),_m=Lm({prop:"borderBottom",themeKey:"borders",transform:km}),jm=Lm({prop:"borderLeft",themeKey:"borders",transform:km}),Nm=Lm({prop:"borderColor",themeKey:"palette"}),Fm=Lm({prop:"borderRadius",themeKey:"shape"}),zm=Am(Om,qm,Tm,_m,jm,Nm,Fm);function Wm(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function $m(e){var t=function(t){var r=e(t);return t.css?ke({},Im(r,e(ke({theme:t.theme},t.css))),Wm(t.css,[e.filterProps])):t.sx?ke({},Im(r,e(ke({theme:t.theme},t.sx))),Wm(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(Em(e.filterProps)),t}var Vm=Am(Lm({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Lm({prop:"display"}),Lm({prop:"overflow"}),Lm({prop:"textOverflow"}),Lm({prop:"visibility"}),Lm({prop:"whiteSpace"})),Hm=Lm({prop:"flexBasis"}),Bm=Lm({prop:"flexDirection"}),Gm=Lm({prop:"flexWrap"}),Um=Lm({prop:"justifyContent"}),Ym=Lm({prop:"alignItems"}),Km=Lm({prop:"alignContent"}),Xm=Lm({prop:"order"}),Jm=Lm({prop:"flex"}),Zm=Lm({prop:"flexGrow"}),Qm=Lm({prop:"flexShrink"}),eg=Lm({prop:"alignSelf"}),tg=Lm({prop:"justifyItems"}),rg=Lm({prop:"justifySelf"}),ng=Am(Hm,Bm,Gm,Um,Ym,Km,Xm,Jm,Zm,Qm,eg,tg,rg),og=Lm({prop:"gridGap"}),ig=Lm({prop:"gridColumnGap"}),ag=Lm({prop:"gridRowGap"}),sg=Lm({prop:"gridColumn"}),lg=Lm({prop:"gridRow"}),ug=Lm({prop:"gridAutoFlow"}),cg=Lm({prop:"gridAutoColumns"}),dg=Lm({prop:"gridAutoRows"}),pg=Lm({prop:"gridTemplateColumns"}),fg=Lm({prop:"gridTemplateRows"}),hg=Lm({prop:"gridTemplateAreas"}),mg=Lm({prop:"gridArea"}),gg=Am(og,ig,ag,sg,lg,ug,cg,dg,pg,fg,hg,mg),vg=Lm({prop:"color",themeKey:"palette"}),yg=Lm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),bg=Am(vg,yg),xg=Lm({prop:"position"}),Sg=Lm({prop:"zIndex",themeKey:"zIndex"}),wg=Lm({prop:"top"}),Cg=Lm({prop:"right"}),Eg=Lm({prop:"bottom"}),Ig=Lm({prop:"left"}),Dg=Am(xg,Sg,wg,Cg,Eg,Ig),Pg=Lm({prop:"boxShadow",themeKey:"shadows"});function Mg(e){return e<=1?"".concat(100*e,"%"):e}var Rg=Lm({prop:"width",transform:Mg}),Lg=Lm({prop:"maxWidth",transform:Mg}),Ag=Lm({prop:"minWidth",transform:Mg}),kg=Lm({prop:"height",transform:Mg}),Og=Lm({prop:"maxHeight",transform:Mg}),qg=Lm({prop:"minHeight",transform:Mg}),Tg=Lm({prop:"size",cssProperty:"width",transform:Mg}),_g=Lm({prop:"size",cssProperty:"height",transform:Mg}),jg=Lm({prop:"boxSizing"}),Ng=Am(Rg,Lg,Ag,kg,Og,qg,jg);function Fg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Cm(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var zg={m:"margin",p:"padding"},Wg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$g={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Vg=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){if(e.length>2){if(!$g[e])return[e];e=$g[e]}var t=Fg(e.split(""),2),r=t[0],n=t[1],o=zg[r],i=Wg[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Hg=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Bg(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Gg(e,t){return function(r){return e.reduce((function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e}),{})}}function Ug(e){var t=Bg(e.theme);return Object.keys(e).map((function(r){if(-1===Hg.indexOf(r))return null;var n=Gg(Vg(r),t),o=e[r];return Mm(e,o,n)})).reduce(Im,{})}Ug.propTypes={},Ug.filterProps=Hg;var Yg,Kg=Lm({prop:"fontFamily",themeKey:"typography"}),Xg=Lm({prop:"fontSize",themeKey:"typography"}),Jg=Lm({prop:"fontStyle",themeKey:"typography"}),Zg=Lm({prop:"fontWeight",themeKey:"typography"}),Qg=Lm({prop:"letterSpacing"}),ev=Lm({prop:"lineHeight"}),tv=Lm({prop:"textAlign"}),rv=Am(Kg,Xg,Jg,Zg,Qg,ev,tv),nv=Object.freeze({__proto__:null,alignContent:Km,alignItems:Ym,alignSelf:eg,bgcolor:yg,border:Om,borderBottom:_m,borderColor:Nm,borderLeft:jm,borderRadius:Fm,borderRight:Tm,borderTop:qm,borders:zm,bottom:Eg,boxSizing:jg,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Pm,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(ke({theme:t.theme},t[o]))),r}),null);return Im(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Em(e.filterProps)),t},color:vg,compose:Am,createUnarySpacing:Bg,css:function(e){return $m(e)},display:Vm,flex:Jm,flexBasis:Hm,flexDirection:Bm,flexGrow:Zm,flexShrink:Qm,flexWrap:Gm,flexbox:ng,fontFamily:Kg,fontSize:Xg,fontStyle:Jg,fontWeight:Zg,grid:gg,gridArea:mg,gridAutoColumns:cg,gridAutoFlow:ug,gridAutoRows:dg,gridColumn:sg,gridColumnGap:ig,gridGap:og,gridRow:lg,gridRowGap:ag,gridTemplateAreas:hg,gridTemplateColumns:pg,gridTemplateRows:fg,height:kg,justifyContent:Um,justifyItems:tg,justifySelf:rg,left:Ig,letterSpacing:Qg,lineHeight:ev,maxHeight:Og,maxWidth:Lg,minHeight:qg,minWidth:Ag,order:Xm,palette:bg,position:xg,positions:Dg,right:Cg,shadows:Pg,sizeHeight:_g,sizeWidth:Tg,sizing:Ng,spacing:Ug,style:Lm,styleFunctionSx:$m,textAlign:tv,top:wg,typography:rv,width:Rg,zIndex:Sg}),ov=In(nv);var iv,av={};function sv(){if(iv)return av;iv=1;var e=Ha;Object.defineProperty(av,"__esModule",{value:!0}),av.default=av.duration=av.easing=void 0;var t=e(Bh()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};av.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}av.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return av.default=i,av}var lv,uv,cv={};function dv(){if(uv)return _h;uv=1;var e=Ha;Object.defineProperty(_h,"__esModule",{value:!0}),_h.createMuiTheme=function(){return p.apply(void 0,arguments)},_h.default=void 0,e($h());var t=e(Bh()),r=wh,n=e(function(){if(Gh)return Uh;Gh=1;var e=Ha;Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},Uh.keys=void 0;var t=e(_s()),r=e(Bh()),n=["xs","sm","md","lg","xl"];return Uh.keys=n,Uh}()),o=e(function(){if(Yh)return Kh;Yh=1;var e=Ha;Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e($h()),r=e(_s());return Kh}()),i=e(hm()),a=e(function(){if(mm)return gm;mm=1;var e=Ha;Object.defineProperty(gm,"__esModule",{value:!0}),gm.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,v=void 0===g?400:g,y=u.fontWeightMedium,b=void 0===y?500:y,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,I=u.pxToRem,D=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),P=f/14,M=I||function(e){return"".concat(e/C*P,"rem")},R=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},L={h1:R(m,96,1.167,-1.5),h2:R(m,60,1.2,-.5),h3:R(v,48,1.167,0),h4:R(v,34,1.235,.25),h5:R(v,24,1.334,0),h6:R(b,20,1.6,.15),subtitle1:R(v,16,1.75,.15),subtitle2:R(b,14,1.57,.1),body1:R(v,16,1.5,.15),body2:R(v,14,1.43,.15),button:R(b,14,1.75,.4,a),caption:R(v,12,1.66,.4),overline:R(v,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:M,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:S},L),D,{clone:!1})};var t=e(_s()),r=e(Bh()),n=wh;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return gm}()),s=e(function(){if(vm)return ym;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}vm=1,Object.defineProperty(ym,"__esModule",{value:!0}),ym.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return ym.default=t,ym}()),l=e(function(){if(bm)return xm;bm=1,Object.defineProperty(xm,"__esModule",{value:!0}),xm.default=void 0;var e={borderRadius:4};return xm.default=e,xm}()),u=e(function(){if(Yg)return Sm;Yg=1,Object.defineProperty(Sm,"__esModule",{value:!0}),Sm.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=ov;return Sm}()),c=e(sv()),d=e(function(){if(lv)return cv;lv=1,Object.defineProperty(cv,"__esModule",{value:!0}),cv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return cv.default=e,cv}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,v=void 0===g?{}:g,y=e.spacing,b=e.typography,x=void 0===b?{}:b,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),C=(0,n.default)(f),E=(0,u.default)(y),I=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),D=arguments.length,P=new Array(D>1?D-1:0),M=1;M<D;M++)P[M-1]=arguments[M];return I=P.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),I)}var f=p;return _h.default=f,_h}var pv,fv={};var hv={},mv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",gv=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function vv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==gv.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[mv]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function yv(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xv="object"===("undefined"==typeof window?"undefined":bv(window))&&"object"===("undefined"==typeof document?"undefined":bv(document))&&9===document.nodeType;function Sv(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,za(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var wv={}.constructor;function Cv(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Cv);if(e.constructor!==wv)return e;var t={};for(var r in e)t[r]=Cv(e[r]);return t}function Ev(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=Cv(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var Iv=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},Dv=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=Iv(e[r]," ");else t=Iv(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Pv(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Mv(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Rv(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=Pv(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=Mv(p+":"+u+Dv(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=Mv(h+":"+u+Dv(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(n&&(n+=l),n+=Mv(g+":"+u+Dv(v)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Mv(""+e+u+"{"+n,--i)+Mv("}",i)):n}var Lv=/([[\].#*$><+~=|^:(),"'`\s])/g,Av="undefined"!=typeof CSS&&CSS.escape,kv=function(e){return Av?Av(e):e.replace(Lv,"\\$1")},Ov=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),qv=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(ql(ql(o)),s),o.selectorText="."+kv(o.id)),o}El(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=Dv(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?ke({},e,{allowEmpty:!0}):e;return Rv(this.selectorText,this.style,r)},Sv(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(Ov),Tv={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new qv(e,t,r)}},_v={indent:1,children:!0},jv=/@([\w-]+)/,Nv=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(jv);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new ly(ke({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=_v);var t=Pv(e).linebreak;if(null==e.indent&&(e.indent=_v.indent),null==e.children&&(e.children=_v.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Fv=/@container|@media|@supports\s+/,zv={onCreateRule:function(e,t,r){return Fv.test(e)?new Nv(e,t,r):null}},Wv={indent:1,children:!0},$v=/@keyframes\s+([\w-]+)/,Vv=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match($v);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:kv(a(this,i)),this.rules=new ly(ke({},r,{parent:this})),t)this.rules.add(s,t[s],ke({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Wv);var t=Pv(e).linebreak;if(null==e.indent&&(e.indent=Wv.indent),null==e.children&&(e.children=Wv.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Hv=/@keyframes\s+/,Bv=/\$([\w-]+)/g,Gv=function(e,t){return"string"==typeof e?e.replace(Bv,(function(e,r){return r in t?t[r]:e})):e},Uv=function(e,t,r){var n=e[t],o=Gv(n,r);o!==n&&(e[t]=o)},Yv={onCreateRule:function(e,t,r){return"string"==typeof e&&Hv.test(e)?new Vv(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Uv(e,"animation-name",r.keyframes),"animation"in e&&Uv(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Gv(e,n.keyframes);default:return e}}},Kv=function(e){function t(){return e.apply(this,arguments)||this}return El(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?ke({},e,{allowEmpty:!0}):e;return Rv(this.key,this.style,r)},t}(Ov),Xv={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Kv(e,t,r):null}},Jv=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=Pv(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Rv(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Rv(this.at,this.style,e)},e}(),Zv=/@font-face/,Qv={onCreateRule:function(e,t,r){return Zv.test(e)?new Jv(e,t,r):null}},ey=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return Rv(this.key,this.style,e)},e}(),ty={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new ey(e,t,r):null}},ry=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),ny={"@charset":!0,"@import":!0,"@namespace":!0},oy={onCreateRule:function(e,t,r){return e in ny?new ry(e,t,r):null}},iy=[Tv,zv,Yv,Xv,Qv,ty,oy],ay={process:!0},sy={force:!0,process:!0},ly=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=ke({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+kv(this.classes[d]));var p=Ev(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=ke({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof qv?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Vv&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof qv?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Vv&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=ay);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,sy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,sy)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=Pv(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),uy=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=ke({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ly(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),cy=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),dy=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Oe(t,["attached"]),o=Pv(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},Sv(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),py=new dy,fy="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),hy="2f1acc6c3a606b082e5eef5e54414ffb";null==fy[hy]&&(fy[hy]=0);var my=fy[hy]++,gy=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+my+o+t:i+r.key+"-"+my+(o?"-"+o:"")+"-"+t}},vy=function(e){var t;return function(){return t||(t=e()),t}},yy=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},by=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=Dv(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},xy=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Sy=function(e,t){return e.selectorText=t,e.selectorText===t},wy=vy((function(){return document.querySelector("head")}));function Cy(e){var t=py.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=wy(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var Ey=vy((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Iy=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Dy=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Py=function(){function e(e){this.getPropertyValue=yy,this.setProperty=by,this.removeProperty=xy,this.setSelector=Sy,this.hasInsertedRules=!1,this.cssRules=[],e&&py.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=Ey();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=Cy(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else wy().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=Dy(r,t);if(!1===(o=Iy(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=Dy(r,t),l=Iy(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof uy&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),My=0,Ry=function(){function e(e){this.id=My++,this.version="10.10.0",this.plugins=new cy,this.options={id:{minify:!1},createGenerateId:gy,Renderer:xv?Py:null,plugins:[]},this.generateId=gy({minify:!1});for(var t=0;t<iy.length;t++)this.plugins.use(iy[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=ke({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===py.index?0:py.index+1);var n=new uy(e,ke({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),py.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=ke({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=Ev(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),Ly=function(e){return new Ry(e)},Ay="object"==typeof CSS&&null!=CSS&&"number"in CSS;function ky(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=ky(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
89
89
|
/**
|
|
90
90
|
* A better abstraction over CSS.
|
|
91
91
|
*
|
|
92
92
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
93
93
|
* @website https://github.com/cssinjs/jss
|
|
94
94
|
* @license MIT
|
|
95
|
-
*/Ly();var Oy=Date.now(),qy="fnValues"+Oy,Ty="fnStyle"+ ++Oy,_y="@global",jy="@global ",Ny=function(){function e(e,t,r){for(var n in this.type="global",this.at=_y,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new ly(ke({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Fy=function(){function e(e,t,r){this.type="global",this.at=_y,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,ke({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),zy=/\s*,\s*/g;function Wy(e,t){for(var r=e.split(zy),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function $y(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===_y)return new Ny(e,t,r);if("@"===e[0]&&e.substr(0,8)===jy)return new Fy(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[_y]:null;if(o){for(var i in o)t.addRule(i,o[i],ke({},r,{selector:Wy(i,e.selector)}));delete n[_y]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===_y){var i=Wy(o.substr(7),e.selector);t.addRule(i,n[o],ke({},r,{selector:i})),delete n[o]}}(e,t))}}}var Hy=/\s*,\s*/g,Vy=/&/g,By=/\$([\w-]+)/g;function Gy(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(Hy),n=e.split(Hy),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Vy,a):a+" "+l}return o}function r(e,t,r){if(r)return ke({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=ke({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,u=l.options.parent;for(var c in n){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=r(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,i)),f=f.replace(By,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],ke({},a,{selector:f})):u.addRule(h,n[c],ke({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Uy=/[A-Z]/g,Yy=/^ms-/,Ky={};function Xy(e){return"-"+e.toLowerCase()}function Jy(e){if(Ky.hasOwnProperty(e))return Ky[e];var t=e.replace(Uy,Xy);return Ky[e]=Yy.test(t)?"-"+t:t}function Zy(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Jy(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Zy):t.fallbacks=Zy(e.fallbacks)),t}var Qy=Ay&&CSS?CSS.px:"px",eb=Ay&&CSS?CSS.ms:"ms",tb=Ay&&CSS?CSS.percent:"%";function rb(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var nb=rb({"animation-delay":eb,"animation-duration":eb,"background-position":Qy,"background-position-x":Qy,"background-position-y":Qy,"background-size":Qy,border:Qy,"border-bottom":Qy,"border-bottom-left-radius":Qy,"border-bottom-right-radius":Qy,"border-bottom-width":Qy,"border-left":Qy,"border-left-width":Qy,"border-radius":Qy,"border-right":Qy,"border-right-width":Qy,"border-top":Qy,"border-top-left-radius":Qy,"border-top-right-radius":Qy,"border-top-width":Qy,"border-width":Qy,"border-block":Qy,"border-block-end":Qy,"border-block-end-width":Qy,"border-block-start":Qy,"border-block-start-width":Qy,"border-block-width":Qy,"border-inline":Qy,"border-inline-end":Qy,"border-inline-end-width":Qy,"border-inline-start":Qy,"border-inline-start-width":Qy,"border-inline-width":Qy,"border-start-start-radius":Qy,"border-start-end-radius":Qy,"border-end-start-radius":Qy,"border-end-end-radius":Qy,margin:Qy,"margin-bottom":Qy,"margin-left":Qy,"margin-right":Qy,"margin-top":Qy,"margin-block":Qy,"margin-block-end":Qy,"margin-block-start":Qy,"margin-inline":Qy,"margin-inline-end":Qy,"margin-inline-start":Qy,padding:Qy,"padding-bottom":Qy,"padding-left":Qy,"padding-right":Qy,"padding-top":Qy,"padding-block":Qy,"padding-block-end":Qy,"padding-block-start":Qy,"padding-inline":Qy,"padding-inline-end":Qy,"padding-inline-start":Qy,"mask-position-x":Qy,"mask-position-y":Qy,"mask-size":Qy,height:Qy,width:Qy,"min-height":Qy,"max-height":Qy,"min-width":Qy,"max-width":Qy,bottom:Qy,left:Qy,top:Qy,right:Qy,inset:Qy,"inset-block":Qy,"inset-block-end":Qy,"inset-block-start":Qy,"inset-inline":Qy,"inset-inline-end":Qy,"inset-inline-start":Qy,"box-shadow":Qy,"text-shadow":Qy,"column-gap":Qy,"column-rule":Qy,"column-rule-width":Qy,"column-width":Qy,"font-size":Qy,"font-size-delta":Qy,"letter-spacing":Qy,"text-decoration-thickness":Qy,"text-indent":Qy,"text-stroke":Qy,"text-stroke-width":Qy,"word-spacing":Qy,motion:Qy,"motion-offset":Qy,outline:Qy,"outline-offset":Qy,"outline-width":Qy,perspective:Qy,"perspective-origin-x":tb,"perspective-origin-y":tb,"transform-origin":tb,"transform-origin-x":tb,"transform-origin-y":tb,"transform-origin-z":tb,"transition-delay":eb,"transition-duration":eb,"vertical-align":Qy,"flex-basis":Qy,"shape-margin":Qy,size:Qy,gap:Qy,grid:Qy,"grid-gap":Qy,"row-gap":Qy,"grid-row-gap":Qy,"grid-column-gap":Qy,"grid-template-rows":Qy,"grid-template-columns":Qy,"grid-auto-rows":Qy,"grid-auto-columns":Qy,"box-shadow-x":Qy,"box-shadow-y":Qy,"box-shadow-blur":Qy,"box-shadow-spread":Qy,"font-line-height":Qy,"text-shadow-x":Qy,"text-shadow-y":Qy,"text-shadow-blur":Qy});function ob(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=ob(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=ob(o,t[o],r);else for(var i in t)t[i]=ob(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||nb[e];return!a||0===t&&a===Qy?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function ib(e){void 0===e&&(e={});var t=rb(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=ob(n,e[n],t);return e},onChangeValue:function(e,r){return ob(r,e,t)}}}var ab="",sb="",lb="",ub="",cb=xv&&"ontouchstart"in document.documentElement;if(xv){var db={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},pb=document.createElement("p").style;for(var fb in db)if(fb+"Transform"in pb){ab=fb,sb=db[fb];break}"Webkit"===ab&&"msHyphens"in pb&&(ab="ms",sb=db.ms,ub="edge"),"Webkit"===ab&&"-apple-trailing-word"in pb&&(lb="apple")}var hb=ab,mb=sb,gb=lb,vb=ub,yb=cb;var bb={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===hb?"-webkit-"+e:mb+e)}},xb={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===hb?mb+"print-"+e:e)}},Sb=/[-\s]+(.)?/g;function wb(e,t){return t?t.toUpperCase():""}function Cb(e){return e.replace(Sb,wb)}function Eb(e){return Cb("-"+e)}var Ib,Db={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===hb){var r="mask-image";if(Cb(r)in t)return e;if(hb+Eb(r)in t)return mb+e}return e}},Pb={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==gb||yb?e:mb+e)}},Mb={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:mb+e)}},Rb={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:mb+e)}},Lb={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===hb||"ms"===hb&&"edge"!==vb?mb+e:e)}},Ab={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===hb||"ms"===hb||"apple"===gb?mb+e:e)}},kb={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===hb?"WebkitColumn"+Eb(e)in t&&mb+"column-"+e:"Moz"===hb&&("page"+Eb(e)in t&&"page-"+e))}},Ob={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===hb)return e;var r=e.replace("-inline","");return hb+Eb(r)in t&&mb+r}},qb={supportedProperty:function(e,t){return Cb(e)in t&&e}},Tb={supportedProperty:function(e,t){var r=Eb(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:hb+r in t?mb+e:"Webkit"!==hb&&"Webkit"+r in t&&"-webkit-"+e}},_b={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===hb?""+mb+e:e)}},jb={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===hb?mb+"scroll-chaining":e)}},Nb={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Fb={supportedProperty:function(e,t){var r=Nb[e];return!!r&&(hb+Eb(r)in t&&mb+r)}},zb={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Wb=Object.keys(zb),$b=function(e){return mb+e},Hb={supportedProperty:function(e,t,r){var n=r.multiple;if(Wb.indexOf(e)>-1){var o=zb[e];if(!Array.isArray(o))return hb+Eb(o)in t&&mb+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(hb+Eb(o[0])in t))return!1;return o.map($b)}return!1}},Vb=[bb,xb,Db,Pb,Mb,Rb,Lb,Ab,kb,Ob,qb,Tb,_b,jb,Fb,Hb],Bb=Vb.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Gb=Vb.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Em(t.noPrefill)),e}),[]),Ub={};if(xv){Ib=document.createElement("p");var Yb=window.getComputedStyle(document.documentElement,"");for(var Kb in Yb)isNaN(Kb)||(Ub[Yb[Kb]]=Yb[Kb]);Gb.forEach((function(e){return delete Ub[e]}))}function Xb(e,t){if(void 0===t&&(t={}),!Ib)return e;if(null!=Ub[e])return Ub[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ib.style);for(var r=0;r<Bb.length&&(Ub[e]=Bb[r](e,Ib.style,t),!Ub[e]);r++);try{Ib.style[e]=""}catch(e){return!1}return Ub[e]}var Jb,Zb={},Qb={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},ex=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function tx(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Xb(t):", "+Xb(r);return n||(t||r)}function rx(e,t){var r=t;if(!Jb||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Zb[n])return Zb[n];try{Jb.style[e]=r}catch(e){return Zb[n]=!1,!1}if(Qb[e])r=r.replace(ex,tx);else if(""===Jb.style[e]&&("-ms-flex"===(r=mb+r)&&(Jb.style[e]="-ms-flexbox"),Jb.style[e]=r,""===Jb.style[e]))return Zb[n]=!1,!1;return Jb.style[e]="",Zb[n]=r,Zb[n]}function nx(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=Xb(r);i&&i!==r&&(o=!0);var a=!1,s=rx(i,Dv(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===hb?e:"@"+mb+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return rx(t,Dv(e))||e}}}function ox(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}}function ix(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=Ev(e,{},r);return n[Ty]=t,n},onProcessStyle:function(e,t){if(qy in t||Ty in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[qy]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Ty];i&&(o.style=i(e)||{});var a=o[qy];if(a)for(var s in a)o.prop(s,a[s](e),n)}},$y(),Gy(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Zy(e[t]);return e}return Zy(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Jy(t);return t===n?e:(r.prop(n,e),null)}},ib(),"undefined"==typeof window?null:nx(),ox()]}}function ax(e,t){if(null==e)return{};var r,n,o=Oe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function sx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=ke({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}xv&&(Jb=document.createElement("p"));var lx=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},ux=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},cx=function(e,t,r){e.get(t).delete(r)},dx=r.createContext(null);function px(){return r.useContext(dx)}var fx,hx=Ly(ix()),mx=vv(),gx=new Map,vx={disableGeneration:!1,generateClassName:mx,jss:hx,sheetsCache:null,sheetsManager:gx,sheetsRegistry:null},yx=r.createContext(vx);function bx(e){var t=e.children,n=e.injectFirst,o=void 0!==n&&n,i=e.disableGeneration,a=void 0!==i&&i,s=ax(e,["children","injectFirst","disableGeneration"]),l=ke({},r.useContext(yx),{disableGeneration:a},s);if(!l.jss.options.insertionPoint&&o&&"undefined"!=typeof window){if(!fx){var u=document.head;fx=document.createComment("mui-inject-first"),u.insertBefore(fx,u.firstChild)}l.jss=Ly({plugins:ix().plugins,insertionPoint:fx})}return r.createElement(yx.Provider,{value:l},t)}var xx=-1e9;var Sx={};function wx(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=ux(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},lx(o.sheetsManager,i,n,s));var l=ke({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=ux(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,ke({link:!1},l))).attach(),o.sheetsCache&&lx(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=ky(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,ke({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=sx({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function Cx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,o=t.classNamePrefix,i=t.Component,a=t.defaultTheme,s=void 0===a?Sx:a,l=ax(t,["name","classNamePrefix","Component","defaultTheme"]),u=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=ke({},o);return Object.keys(i).forEach((function(e){a[e]=Tf(a[e],i[e])})),a},options:{}}}(e),c=n||o||"makeStyles";u.options={index:xx+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=px()||s,o=ke({},r.useContext(yx),l),a=r.useRef(),c=r.useRef();!function(e,t){var n,o=r.useRef([]),i=r.useMemo((function(){return{}}),t);o.current!==i&&(o.current=i,n=e()),r.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var r={name:n,state:{},stylesCreator:u,stylesOptions:o,theme:t};return wx(r,e),c.current=!1,a.current=r,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=ux(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(cx(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(r)}}),[t,u]),r.useEffect((function(){c.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(a.current,e),c.current=!0}));var d=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=sx({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(a.current,e.classes,i);return d}}var Ex=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return Sv(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new dy;var n=vv();return r.createElement(bx,ke({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return r.createElement("style",ke({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function Ix(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Ix(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Dx(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Ix(e))&&(n&&(n+=" "),n+=t);return n}var Px={exports:{}},Mx={},Rx="function"==typeof Symbol&&Symbol.for,Lx=Rx?Symbol.for("react.element"):60103,Ax=Rx?Symbol.for("react.portal"):60106,kx=Rx?Symbol.for("react.fragment"):60107,Ox=Rx?Symbol.for("react.strict_mode"):60108,qx=Rx?Symbol.for("react.profiler"):60114,Tx=Rx?Symbol.for("react.provider"):60109,_x=Rx?Symbol.for("react.context"):60110,jx=Rx?Symbol.for("react.async_mode"):60111,Nx=Rx?Symbol.for("react.concurrent_mode"):60111,Fx=Rx?Symbol.for("react.forward_ref"):60112,zx=Rx?Symbol.for("react.suspense"):60113,Wx=Rx?Symbol.for("react.suspense_list"):60120,$x=Rx?Symbol.for("react.memo"):60115,Hx=Rx?Symbol.for("react.lazy"):60116,Vx=Rx?Symbol.for("react.block"):60121,Bx=Rx?Symbol.for("react.fundamental"):60117,Gx=Rx?Symbol.for("react.responder"):60118,Ux=Rx?Symbol.for("react.scope"):60119;function Yx(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Lx:switch(e=e.type){case jx:case Nx:case kx:case qx:case Ox:case zx:return e;default:switch(e=e&&e.$$typeof){case _x:case Fx:case Hx:case $x:case Tx:return e;default:return t}}case Ax:return t}}}function Kx(e){return Yx(e)===Nx}Mx.AsyncMode=jx,Mx.ConcurrentMode=Nx,Mx.ContextConsumer=_x,Mx.ContextProvider=Tx,Mx.Element=Lx,Mx.ForwardRef=Fx,Mx.Fragment=kx,Mx.Lazy=Hx,Mx.Memo=$x,Mx.Portal=Ax,Mx.Profiler=qx,Mx.StrictMode=Ox,Mx.Suspense=zx,Mx.isAsyncMode=function(e){return Kx(e)||Yx(e)===jx},Mx.isConcurrentMode=Kx,Mx.isContextConsumer=function(e){return Yx(e)===_x},Mx.isContextProvider=function(e){return Yx(e)===Tx},Mx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Lx},Mx.isForwardRef=function(e){return Yx(e)===Fx},Mx.isFragment=function(e){return Yx(e)===kx},Mx.isLazy=function(e){return Yx(e)===Hx},Mx.isMemo=function(e){return Yx(e)===$x},Mx.isPortal=function(e){return Yx(e)===Ax},Mx.isProfiler=function(e){return Yx(e)===qx},Mx.isStrictMode=function(e){return Yx(e)===Ox},Mx.isSuspense=function(e){return Yx(e)===zx},Mx.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===kx||e===Nx||e===qx||e===Ox||e===zx||e===Wx||"object"==typeof e&&null!==e&&(e.$$typeof===Hx||e.$$typeof===$x||e.$$typeof===Tx||e.$$typeof===_x||e.$$typeof===Fx||e.$$typeof===Bx||e.$$typeof===Gx||e.$$typeof===Ux||e.$$typeof===Vx)},Mx.typeOf=Yx,Px.exports=Mx;var Xx=Px.exports,Jx={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Zx={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Qx={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eS={};function tS(e){return Xx.isMemo(e)?Qx:eS[e.$$typeof]||Jx}eS[Xx.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},eS[Xx.Memo]=Qx;var rS=Object.defineProperty,nS=Object.getOwnPropertyNames,oS=Object.getOwnPropertySymbols,iS=Object.getOwnPropertyDescriptor,aS=Object.getPrototypeOf,sS=Object.prototype;var lS=function e(t,r,n){if("string"!=typeof r){if(sS){var o=aS(r);o&&o!==sS&&e(t,o,n)}var i=nS(r);oS&&(i=i.concat(oS(r)));for(var a=tS(t),s=tS(r),l=0;l<i.length;++l){var u=i[l];if(!(Zx[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=iS(r,u);try{rS(t,u,c)}catch(e){}}}}return t},uS=En(lS);function cS(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=r.forwardRef((function(n,o){var i=n.innerRef,a=ax(n,["innerRef"]),s=px()||e;return r.createElement(t,ke({theme:s,ref:i||o},a))}));return uS(n,t),n}}var dS,pS=cS(),fS=Object.freeze({__proto__:null,ServerStyleSheets:Ex,StylesContext:yx,StylesProvider:bx,ThemeProvider:function(e){var t=e.children,n=e.theme,o=px(),i=r.useMemo((function(){var e=null===o?n:function(e,t){return"function"==typeof t?t(e):ke({},e,t)}(o,n);return null!=e&&(e[mv]=null!==o),e}),[n,o]);return r.createElement(dx.Provider,{value:i},t)},createGenerateClassName:vv,createStyles:function(e){return e},getThemeProps:yv,jssPreset:ix,makeStyles:Cx,mergeClasses:sx,sheetsManager:gx,styled:function(e){return function(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.name,a=ax(o,["name"]),s=i,l=Cx("function"==typeof t?function(e){return{root:function(r){return t(ke({theme:e},r))}}}:{root:t},ke({Component:e,name:i||e.displayName,classNamePrefix:s},a));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=r.forwardRef((function(t,o){var i,a,s,u=t.children,c=t.className,d=t.clone,p=t.component,f=ax(t,["children","className","clone","component"]),h=Dx(l(t).root,c),m=f;if(n&&(i=m,a=n,s={},Object.keys(i).forEach((function(e){-1===a.indexOf(e)&&(s[e]=i[e])})),m=s),d)return r.cloneElement(u,ke({className:Dx(u.props.className,h)},m));if("function"==typeof u)return u(ke({className:h},m));var g=p||e;return r.createElement(g,ke({ref:o,className:h},m),u)}));return uS(u,e),u}},useTheme:px,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=t.defaultTheme,i=t.withTheme,a=void 0!==i&&i,s=t.name,l=ax(t,["defaultTheme","withTheme","name"]),u=s,c=Cx(e,ke({defaultTheme:o,Component:n,name:s||n.displayName,classNamePrefix:u},l)),d=r.forwardRef((function(e,t){e.classes;var i,l=e.innerRef,u=ax(e,["classes","innerRef"]),d=c(ke({},n.defaultProps,e)),p=u;return("string"==typeof s||a)&&(i=px()||o,s&&(p=yv({theme:i,name:s,props:u})),a&&!p.theme&&(p.theme=i)),r.createElement(n,ke({ref:l||t,classes:d},p))}));return uS(d,n),d}},withTheme:pS,withThemeCreator:cS}),hS=In(fS);
|
|
95
|
+
*/Ly();var Oy=Date.now(),qy="fnValues"+Oy,Ty="fnStyle"+ ++Oy,_y="@global",jy="@global ",Ny=function(){function e(e,t,r){for(var n in this.type="global",this.at=_y,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new ly(ke({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Fy=function(){function e(e,t,r){this.type="global",this.at=_y,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,ke({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),zy=/\s*,\s*/g;function Wy(e,t){for(var r=e.split(zy),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function $y(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===_y)return new Ny(e,t,r);if("@"===e[0]&&e.substr(0,8)===jy)return new Fy(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[_y]:null;if(o){for(var i in o)t.addRule(i,o[i],ke({},r,{selector:Wy(i,e.selector)}));delete n[_y]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===_y){var i=Wy(o.substr(7),e.selector);t.addRule(i,n[o],ke({},r,{selector:i})),delete n[o]}}(e,t))}}}var Vy=/\s*,\s*/g,Hy=/&/g,By=/\$([\w-]+)/g;function Gy(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(Vy),n=e.split(Vy),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Hy,a):a+" "+l}return o}function r(e,t,r){if(r)return ke({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=ke({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,u=l.options.parent;for(var c in n){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=r(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,i)),f=f.replace(By,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],ke({},a,{selector:f})):u.addRule(h,n[c],ke({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Uy=/[A-Z]/g,Yy=/^ms-/,Ky={};function Xy(e){return"-"+e.toLowerCase()}function Jy(e){if(Ky.hasOwnProperty(e))return Ky[e];var t=e.replace(Uy,Xy);return Ky[e]=Yy.test(t)?"-"+t:t}function Zy(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Jy(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Zy):t.fallbacks=Zy(e.fallbacks)),t}var Qy=Ay&&CSS?CSS.px:"px",eb=Ay&&CSS?CSS.ms:"ms",tb=Ay&&CSS?CSS.percent:"%";function rb(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var nb=rb({"animation-delay":eb,"animation-duration":eb,"background-position":Qy,"background-position-x":Qy,"background-position-y":Qy,"background-size":Qy,border:Qy,"border-bottom":Qy,"border-bottom-left-radius":Qy,"border-bottom-right-radius":Qy,"border-bottom-width":Qy,"border-left":Qy,"border-left-width":Qy,"border-radius":Qy,"border-right":Qy,"border-right-width":Qy,"border-top":Qy,"border-top-left-radius":Qy,"border-top-right-radius":Qy,"border-top-width":Qy,"border-width":Qy,"border-block":Qy,"border-block-end":Qy,"border-block-end-width":Qy,"border-block-start":Qy,"border-block-start-width":Qy,"border-block-width":Qy,"border-inline":Qy,"border-inline-end":Qy,"border-inline-end-width":Qy,"border-inline-start":Qy,"border-inline-start-width":Qy,"border-inline-width":Qy,"border-start-start-radius":Qy,"border-start-end-radius":Qy,"border-end-start-radius":Qy,"border-end-end-radius":Qy,margin:Qy,"margin-bottom":Qy,"margin-left":Qy,"margin-right":Qy,"margin-top":Qy,"margin-block":Qy,"margin-block-end":Qy,"margin-block-start":Qy,"margin-inline":Qy,"margin-inline-end":Qy,"margin-inline-start":Qy,padding:Qy,"padding-bottom":Qy,"padding-left":Qy,"padding-right":Qy,"padding-top":Qy,"padding-block":Qy,"padding-block-end":Qy,"padding-block-start":Qy,"padding-inline":Qy,"padding-inline-end":Qy,"padding-inline-start":Qy,"mask-position-x":Qy,"mask-position-y":Qy,"mask-size":Qy,height:Qy,width:Qy,"min-height":Qy,"max-height":Qy,"min-width":Qy,"max-width":Qy,bottom:Qy,left:Qy,top:Qy,right:Qy,inset:Qy,"inset-block":Qy,"inset-block-end":Qy,"inset-block-start":Qy,"inset-inline":Qy,"inset-inline-end":Qy,"inset-inline-start":Qy,"box-shadow":Qy,"text-shadow":Qy,"column-gap":Qy,"column-rule":Qy,"column-rule-width":Qy,"column-width":Qy,"font-size":Qy,"font-size-delta":Qy,"letter-spacing":Qy,"text-decoration-thickness":Qy,"text-indent":Qy,"text-stroke":Qy,"text-stroke-width":Qy,"word-spacing":Qy,motion:Qy,"motion-offset":Qy,outline:Qy,"outline-offset":Qy,"outline-width":Qy,perspective:Qy,"perspective-origin-x":tb,"perspective-origin-y":tb,"transform-origin":tb,"transform-origin-x":tb,"transform-origin-y":tb,"transform-origin-z":tb,"transition-delay":eb,"transition-duration":eb,"vertical-align":Qy,"flex-basis":Qy,"shape-margin":Qy,size:Qy,gap:Qy,grid:Qy,"grid-gap":Qy,"row-gap":Qy,"grid-row-gap":Qy,"grid-column-gap":Qy,"grid-template-rows":Qy,"grid-template-columns":Qy,"grid-auto-rows":Qy,"grid-auto-columns":Qy,"box-shadow-x":Qy,"box-shadow-y":Qy,"box-shadow-blur":Qy,"box-shadow-spread":Qy,"font-line-height":Qy,"text-shadow-x":Qy,"text-shadow-y":Qy,"text-shadow-blur":Qy});function ob(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=ob(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=ob(o,t[o],r);else for(var i in t)t[i]=ob(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||nb[e];return!a||0===t&&a===Qy?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function ib(e){void 0===e&&(e={});var t=rb(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=ob(n,e[n],t);return e},onChangeValue:function(e,r){return ob(r,e,t)}}}var ab="",sb="",lb="",ub="",cb=xv&&"ontouchstart"in document.documentElement;if(xv){var db={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},pb=document.createElement("p").style;for(var fb in db)if(fb+"Transform"in pb){ab=fb,sb=db[fb];break}"Webkit"===ab&&"msHyphens"in pb&&(ab="ms",sb=db.ms,ub="edge"),"Webkit"===ab&&"-apple-trailing-word"in pb&&(lb="apple")}var hb=ab,mb=sb,gb=lb,vb=ub,yb=cb;var bb={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===hb?"-webkit-"+e:mb+e)}},xb={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===hb?mb+"print-"+e:e)}},Sb=/[-\s]+(.)?/g;function wb(e,t){return t?t.toUpperCase():""}function Cb(e){return e.replace(Sb,wb)}function Eb(e){return Cb("-"+e)}var Ib,Db={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===hb){var r="mask-image";if(Cb(r)in t)return e;if(hb+Eb(r)in t)return mb+e}return e}},Pb={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==gb||yb?e:mb+e)}},Mb={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:mb+e)}},Rb={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:mb+e)}},Lb={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===hb||"ms"===hb&&"edge"!==vb?mb+e:e)}},Ab={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===hb||"ms"===hb||"apple"===gb?mb+e:e)}},kb={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===hb?"WebkitColumn"+Eb(e)in t&&mb+"column-"+e:"Moz"===hb&&("page"+Eb(e)in t&&"page-"+e))}},Ob={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===hb)return e;var r=e.replace("-inline","");return hb+Eb(r)in t&&mb+r}},qb={supportedProperty:function(e,t){return Cb(e)in t&&e}},Tb={supportedProperty:function(e,t){var r=Eb(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:hb+r in t?mb+e:"Webkit"!==hb&&"Webkit"+r in t&&"-webkit-"+e}},_b={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===hb?""+mb+e:e)}},jb={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===hb?mb+"scroll-chaining":e)}},Nb={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Fb={supportedProperty:function(e,t){var r=Nb[e];return!!r&&(hb+Eb(r)in t&&mb+r)}},zb={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Wb=Object.keys(zb),$b=function(e){return mb+e},Vb={supportedProperty:function(e,t,r){var n=r.multiple;if(Wb.indexOf(e)>-1){var o=zb[e];if(!Array.isArray(o))return hb+Eb(o)in t&&mb+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(hb+Eb(o[0])in t))return!1;return o.map($b)}return!1}},Hb=[bb,xb,Db,Pb,Mb,Rb,Lb,Ab,kb,Ob,qb,Tb,_b,jb,Fb,Vb],Bb=Hb.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Gb=Hb.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Em(t.noPrefill)),e}),[]),Ub={};if(xv){Ib=document.createElement("p");var Yb=window.getComputedStyle(document.documentElement,"");for(var Kb in Yb)isNaN(Kb)||(Ub[Yb[Kb]]=Yb[Kb]);Gb.forEach((function(e){return delete Ub[e]}))}function Xb(e,t){if(void 0===t&&(t={}),!Ib)return e;if(null!=Ub[e])return Ub[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ib.style);for(var r=0;r<Bb.length&&(Ub[e]=Bb[r](e,Ib.style,t),!Ub[e]);r++);try{Ib.style[e]=""}catch(e){return!1}return Ub[e]}var Jb,Zb={},Qb={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},ex=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function tx(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Xb(t):", "+Xb(r);return n||(t||r)}function rx(e,t){var r=t;if(!Jb||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Zb[n])return Zb[n];try{Jb.style[e]=r}catch(e){return Zb[n]=!1,!1}if(Qb[e])r=r.replace(ex,tx);else if(""===Jb.style[e]&&("-ms-flex"===(r=mb+r)&&(Jb.style[e]="-ms-flexbox"),Jb.style[e]=r,""===Jb.style[e]))return Zb[n]=!1,!1;return Jb.style[e]="",Zb[n]=r,Zb[n]}function nx(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=Xb(r);i&&i!==r&&(o=!0);var a=!1,s=rx(i,Dv(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===hb?e:"@"+mb+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return rx(t,Dv(e))||e}}}function ox(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}}function ix(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=Ev(e,{},r);return n[Ty]=t,n},onProcessStyle:function(e,t){if(qy in t||Ty in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[qy]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Ty];i&&(o.style=i(e)||{});var a=o[qy];if(a)for(var s in a)o.prop(s,a[s](e),n)}},$y(),Gy(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Zy(e[t]);return e}return Zy(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Jy(t);return t===n?e:(r.prop(n,e),null)}},ib(),"undefined"==typeof window?null:nx(),ox()]}}function ax(e,t){if(null==e)return{};var r,n,o=Oe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function sx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=ke({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}xv&&(Jb=document.createElement("p"));var lx=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},ux=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},cx=function(e,t,r){e.get(t).delete(r)},dx=r.createContext(null);function px(){return r.useContext(dx)}var fx,hx=Ly(ix()),mx=vv(),gx=new Map,vx={disableGeneration:!1,generateClassName:mx,jss:hx,sheetsCache:null,sheetsManager:gx,sheetsRegistry:null},yx=r.createContext(vx);function bx(e){var t=e.children,n=e.injectFirst,o=void 0!==n&&n,i=e.disableGeneration,a=void 0!==i&&i,s=ax(e,["children","injectFirst","disableGeneration"]),l=ke({},r.useContext(yx),{disableGeneration:a},s);if(!l.jss.options.insertionPoint&&o&&"undefined"!=typeof window){if(!fx){var u=document.head;fx=document.createComment("mui-inject-first"),u.insertBefore(fx,u.firstChild)}l.jss=Ly({plugins:ix().plugins,insertionPoint:fx})}return r.createElement(yx.Provider,{value:l},t)}var xx=-1e9;var Sx={};function wx(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=ux(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},lx(o.sheetsManager,i,n,s));var l=ke({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=ux(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,ke({link:!1},l))).attach(),o.sheetsCache&&lx(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=ky(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,ke({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=sx({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function Cx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,o=t.classNamePrefix,i=t.Component,a=t.defaultTheme,s=void 0===a?Sx:a,l=ax(t,["name","classNamePrefix","Component","defaultTheme"]),u=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=ke({},o);return Object.keys(i).forEach((function(e){a[e]=Tf(a[e],i[e])})),a},options:{}}}(e),c=n||o||"makeStyles";u.options={index:xx+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=px()||s,o=ke({},r.useContext(yx),l),a=r.useRef(),c=r.useRef();!function(e,t){var n,o=r.useRef([]),i=r.useMemo((function(){return{}}),t);o.current!==i&&(o.current=i,n=e()),r.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var r={name:n,state:{},stylesCreator:u,stylesOptions:o,theme:t};return wx(r,e),c.current=!1,a.current=r,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=ux(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(cx(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(r)}}),[t,u]),r.useEffect((function(){c.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(a.current,e),c.current=!0}));var d=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=sx({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(a.current,e.classes,i);return d}}var Ex=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return Sv(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new dy;var n=vv();return r.createElement(bx,ke({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return r.createElement("style",ke({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function Ix(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Ix(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Dx(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Ix(e))&&(n&&(n+=" "),n+=t);return n}var Px={exports:{}},Mx={},Rx="function"==typeof Symbol&&Symbol.for,Lx=Rx?Symbol.for("react.element"):60103,Ax=Rx?Symbol.for("react.portal"):60106,kx=Rx?Symbol.for("react.fragment"):60107,Ox=Rx?Symbol.for("react.strict_mode"):60108,qx=Rx?Symbol.for("react.profiler"):60114,Tx=Rx?Symbol.for("react.provider"):60109,_x=Rx?Symbol.for("react.context"):60110,jx=Rx?Symbol.for("react.async_mode"):60111,Nx=Rx?Symbol.for("react.concurrent_mode"):60111,Fx=Rx?Symbol.for("react.forward_ref"):60112,zx=Rx?Symbol.for("react.suspense"):60113,Wx=Rx?Symbol.for("react.suspense_list"):60120,$x=Rx?Symbol.for("react.memo"):60115,Vx=Rx?Symbol.for("react.lazy"):60116,Hx=Rx?Symbol.for("react.block"):60121,Bx=Rx?Symbol.for("react.fundamental"):60117,Gx=Rx?Symbol.for("react.responder"):60118,Ux=Rx?Symbol.for("react.scope"):60119;function Yx(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Lx:switch(e=e.type){case jx:case Nx:case kx:case qx:case Ox:case zx:return e;default:switch(e=e&&e.$$typeof){case _x:case Fx:case Vx:case $x:case Tx:return e;default:return t}}case Ax:return t}}}function Kx(e){return Yx(e)===Nx}Mx.AsyncMode=jx,Mx.ConcurrentMode=Nx,Mx.ContextConsumer=_x,Mx.ContextProvider=Tx,Mx.Element=Lx,Mx.ForwardRef=Fx,Mx.Fragment=kx,Mx.Lazy=Vx,Mx.Memo=$x,Mx.Portal=Ax,Mx.Profiler=qx,Mx.StrictMode=Ox,Mx.Suspense=zx,Mx.isAsyncMode=function(e){return Kx(e)||Yx(e)===jx},Mx.isConcurrentMode=Kx,Mx.isContextConsumer=function(e){return Yx(e)===_x},Mx.isContextProvider=function(e){return Yx(e)===Tx},Mx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Lx},Mx.isForwardRef=function(e){return Yx(e)===Fx},Mx.isFragment=function(e){return Yx(e)===kx},Mx.isLazy=function(e){return Yx(e)===Vx},Mx.isMemo=function(e){return Yx(e)===$x},Mx.isPortal=function(e){return Yx(e)===Ax},Mx.isProfiler=function(e){return Yx(e)===qx},Mx.isStrictMode=function(e){return Yx(e)===Ox},Mx.isSuspense=function(e){return Yx(e)===zx},Mx.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===kx||e===Nx||e===qx||e===Ox||e===zx||e===Wx||"object"==typeof e&&null!==e&&(e.$$typeof===Vx||e.$$typeof===$x||e.$$typeof===Tx||e.$$typeof===_x||e.$$typeof===Fx||e.$$typeof===Bx||e.$$typeof===Gx||e.$$typeof===Ux||e.$$typeof===Hx)},Mx.typeOf=Yx,Px.exports=Mx;var Xx=Px.exports,Jx={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Zx={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Qx={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eS={};function tS(e){return Xx.isMemo(e)?Qx:eS[e.$$typeof]||Jx}eS[Xx.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},eS[Xx.Memo]=Qx;var rS=Object.defineProperty,nS=Object.getOwnPropertyNames,oS=Object.getOwnPropertySymbols,iS=Object.getOwnPropertyDescriptor,aS=Object.getPrototypeOf,sS=Object.prototype;var lS=function e(t,r,n){if("string"!=typeof r){if(sS){var o=aS(r);o&&o!==sS&&e(t,o,n)}var i=nS(r);oS&&(i=i.concat(oS(r)));for(var a=tS(t),s=tS(r),l=0;l<i.length;++l){var u=i[l];if(!(Zx[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=iS(r,u);try{rS(t,u,c)}catch(e){}}}}return t},uS=En(lS);function cS(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=r.forwardRef((function(n,o){var i=n.innerRef,a=ax(n,["innerRef"]),s=px()||e;return r.createElement(t,ke({theme:s,ref:i||o},a))}));return uS(n,t),n}}var dS,pS=cS(),fS=Object.freeze({__proto__:null,ServerStyleSheets:Ex,StylesContext:yx,StylesProvider:bx,ThemeProvider:function(e){var t=e.children,n=e.theme,o=px(),i=r.useMemo((function(){var e=null===o?n:function(e,t){return"function"==typeof t?t(e):ke({},e,t)}(o,n);return null!=e&&(e[mv]=null!==o),e}),[n,o]);return r.createElement(dx.Provider,{value:i},t)},createGenerateClassName:vv,createStyles:function(e){return e},getThemeProps:yv,jssPreset:ix,makeStyles:Cx,mergeClasses:sx,sheetsManager:gx,styled:function(e){return function(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.name,a=ax(o,["name"]),s=i,l=Cx("function"==typeof t?function(e){return{root:function(r){return t(ke({theme:e},r))}}}:{root:t},ke({Component:e,name:i||e.displayName,classNamePrefix:s},a));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=r.forwardRef((function(t,o){var i,a,s,u=t.children,c=t.className,d=t.clone,p=t.component,f=ax(t,["children","className","clone","component"]),h=Dx(l(t).root,c),m=f;if(n&&(i=m,a=n,s={},Object.keys(i).forEach((function(e){-1===a.indexOf(e)&&(s[e]=i[e])})),m=s),d)return r.cloneElement(u,ke({className:Dx(u.props.className,h)},m));if("function"==typeof u)return u(ke({className:h},m));var g=p||e;return r.createElement(g,ke({ref:o,className:h},m),u)}));return uS(u,e),u}},useTheme:px,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=t.defaultTheme,i=t.withTheme,a=void 0!==i&&i,s=t.name,l=ax(t,["defaultTheme","withTheme","name"]),u=s,c=Cx(e,ke({defaultTheme:o,Component:n,name:s||n.displayName,classNamePrefix:u},l)),d=r.forwardRef((function(e,t){e.classes;var i,l=e.innerRef,u=ax(e,["classes","innerRef"]),d=c(ke({},n.defaultProps,e)),p=u;return("string"==typeof s||a)&&(i=px()||o,s&&(p=yv({theme:i,name:s,props:u})),a&&!p.theme&&(p.theme=i)),r.createElement(n,ke({ref:l||t,classes:d},p))}));return uS(d,n),d}},withTheme:pS,withThemeCreator:cS}),hS=In(fS);
|
|
96
96
|
/** @license Material-UI v4.11.5
|
|
97
97
|
*
|
|
98
98
|
* This source code is licensed under the MIT license found in the
|
|
99
99
|
* LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/var mS,gS,vS={},yS={};function bS(){if(mS)return yS;mS=1;var e=Va;Object.defineProperty(yS,"__esModule",{value:!0}),yS.default=void 0;var t=(0,e(dv()).default)();return yS.default=t,yS}var xS,SS,wS={},CS={};function ES(){if(SS)return wS;SS=1;var e=Va;Object.defineProperty(wS,"__esModule",{value:!0}),wS.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(_s()),r=wh,n=function(){if(xS)return CS;xS=1;var e=Va;Object.defineProperty(CS,"__esModule",{value:!0}),CS.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},CS.getUnit=r,CS.toUnitless=n,CS.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},CS.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},CS.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},CS.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach((function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e($h());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return CS}();return wS}var IS,DS={};var PS,MS={};var RS,LS={};var AS,kS={};!function(e){var t=Va,n=Af;Object.defineProperty(e,"__esModule",{value:!0});var o={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return a.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var i=kf;Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))}));var a=n(dv()),s=t(function(){if(pv)return fv;pv=1;var e=Va;Object.defineProperty(fv,"__esModule",{value:!0}),fv.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=wh,r=e(dv());return fv}()),l=t(function(){if(dS)return hv;dS=1,Object.defineProperty(hv,"__esModule",{value:!0}),hv.default=function(t){return(0,e.createStyles)(t)};var e=hS;return hv}()),u=t(function(){if(gS)return vS;gS=1;var e=Va;Object.defineProperty(vS,"__esModule",{value:!0}),vS.default=void 0;var t=e(_s()),r=hS,n=e(bS()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return vS.default=o,vS}()),c=t(ES()),d=t(function(){if(IS)return DS;IS=1;var e=Va;Object.defineProperty(DS,"__esModule",{value:!0}),DS.default=void 0;var t=e(_s()),r=hS,n=e(bS()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return DS.default=o,DS}()),p=sv();Object.keys(p).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))}));var f=t(function(){if(PS)return MS;PS=1;var e=Va;Object.defineProperty(MS,"__esModule",{value:!0}),MS.default=function(){return(0,t.useTheme)()||n.default};var t=hS;e(r);var n=e(bS());return MS}()),h=t(function(){if(RS)return LS;RS=1;var e=Va;Object.defineProperty(LS,"__esModule",{value:!0}),LS.default=void 0;var t=e(_s()),r=hS,n=e(bS()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return LS.default=o,LS}()),m=t(function(){if(AS)return kS;AS=1;var e=Va;Object.defineProperty(kS,"__esModule",{value:!0}),kS.default=void 0;var t=hS,r=e(bS()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return kS.default=n,kS}()),g=hS}(Pf),Pf.alpha(tf.GREYSCALE_0,.05),Pf.alpha(tf.GREEN_PALE,.5),Pf.alpha(tf.BLUE_PALE,.5),Pf.alpha(tf.GREEN_PALE,.5),Pf.alpha(tf.BLUE_PALE,.5),Pf.alpha(tf.GREEN_PALE,.5),Pf.alpha(tf.BLUE_PALE,.5),Pf.alpha(tf.GREEN_PALE,.5),Pf.alpha(tf.BLUE_PALE,.5),Pf.alpha(tf.GREEN_PALE,.5),Pf.alpha(tf.BLUE_PALE,.5);const OS=(e="light",t=!1)=>If(0,t);function qS(e){return"init"in e}function TS(e){return!!e.write}function _S(e){return"v"in e||"e"in e}function jS(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const NS=new WeakMap;function FS(e){var t;return WS(e)&&!!(null==(t=NS.get(e))?void 0:t[0])}function zS(e,t){let r=NS.get(e);if(!r){r=[!0,new Set],NS.set(e,r);const t=()=>{r[0]=!1};e.then(t,t)}r[1].add(t)}function WS(e){return"function"==typeof(null==e?void 0:e.then)}function $S(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function HS(e,t,r){var n;const o=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])o.add(t);for(const e of t.p)o.add(e);return o}const VS=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach((e=>e(r))),null==(o=t.get(r))||o.forEach((e=>e()))};return r.add=(r,n)=>{const o=r||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(n),()=>{i.delete(n),i.size||t.delete(o)}},r};function BS(e){return e.i||(e.i=VS()),e.r||(e.r=VS()),e.c||(e.c=VS()),e.m||(e.m=VS()),e.u||(e.u=VS()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach((e=>e()));return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const GS=(e,t,...r)=>t.read(...r),US=(e,t,...r)=>t.write(...r),YS=(e,t)=>{var r;return null==(r=t.INTERNAL_onInit)?void 0:r.call(t,e)},KS=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},XS=(e,r)=>{var n;const o=dw(e),i=o[0],a=o[6],s=o[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Atom is undefined or null");let l=i.get(r);return l||(l={d:new Map,p:new Set,n:0},i.set(r,l),null==(n=a.i)||n.call(a,r),null==s||s(e,r)),l},JS=e=>{const t=dw(e),r=t[1],n=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach((e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)})),n.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(u),n.size&&s(e)}while(n.size||i.size||o.size);if(l.length)throw new AggregateError(l)},ZS=e=>{const r=dw(e),n=r[1],o=r[2],i=r[3],a=r[11],s=r[14],l=r[17],u=[],c=new WeakSet,d=new WeakSet,p=Array.from(i);for(;p.length;){const r=p[p.length-1],i=a(e,r);if(d.has(r))p.pop();else if(c.has(r)){if(o.get(r)===i.n)u.push([r,i]);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(r))throw new Error("[Bug] invalidated atom exists");d.add(r),p.pop()}else{c.add(r);for(const e of HS(r,i,n))c.has(e)||p.push(e)}}for(let t=u.length-1;t>=0;--t){const[r,n]=u[t];let a=!1;for(const e of n.d.keys())if(e!==r&&i.has(e)){a=!0;break}a&&(s(e,r),l(e,r)),o.delete(r)}},QS=new WeakSet,ew=(e,r)=>{var n,o;const i=dw(e),a=i[1],s=i[2],l=i[3],u=i[6],c=i[7],d=i[11],p=i[12],f=i[13],h=i[14],m=i[16],g=i[17],v=i[20],y=d(e,r);if(_S(y)){if(a.has(r)&&s.get(r)!==y.n)return y;let t=!1;for(const[r,n]of y.d)if(h(e,r).n!==n){t=!0;break}if(!t)return y}y.d.clear();let b,x,S=!0;function w(){a.has(r)&&(g(e,r),f(e),p(e))}const C={get signal(){return b||(b=new AbortController),b.signal},get setSelf(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(t.meta.env?t.meta.env.MODE:void 0)||TS(r)||console.warn("setSelf function cannot be used with read-only atom"),!x&&TS(r)&&(x=(...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&S&&console.warn("setSelf function cannot be called in sync"),!S)try{return m(e,r,...n)}finally{f(e),p(e)}}),x}},E=y.n;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&QS.delete(e);const o=c(e,r,(function(t){var n;if(t===r){const r=d(e,t);if(!_S(r)){if(!qS(t))throw new Error("no atom init");v(e,t,t.init)}return jS(r)}const o=h(e,t);try{return jS(o)}finally{y.d.set(t,o.n),FS(y.v)&&$S(r,y.v,o),a.has(r)&&(null==(n=a.get(t))||n.t.add(r)),S||w()}}),C);return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&QS.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),v(e,r,o),WS(o)&&(zS(o,(()=>null==b?void 0:b.abort())),o.then(w,w)),null==(n=u.r)||n.call(u,r),y}catch(e){return delete y.v,y.e=e,++y.n,y}finally{S=!1,E!==y.n&&s.get(r)===E&&(s.set(r,y.n),l.add(r),null==(o=u.c)||o.call(u,r))}},tw=(e,t)=>{const r=dw(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of HS(t,r,n)){const t=i(e,s);o.set(s,t.n),a.push(s)}}},rw=(e,r,...n)=>{const o=dw(e),i=o[3],a=o[6],s=o[8],l=o[11],u=o[12],c=o[13],d=o[14],p=o[15],f=o[16],h=o[17],m=o[20];let g=!0;const v=t=>jS(d(e,t)),y=(n,...o)=>{var s;const d=l(e,n);try{if(n===r){if(!qS(n))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&QS.add(e);const r=d.n,l=o[0];return m(e,n,l),h(e,n),void(r!==d.n&&(i.add(n),p(e,n),null==(s=a.c)||s.call(a,n)))}return f(e,n,...o)}finally{g||(c(e),u(e))}};try{return s(e,r,v,y,...n)}finally{g=!1}},nw=(e,t)=>{var r;const n=dw(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p&&!FS(d.v)){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),l(e,n),null==(r=a.c)||r.call(a,n))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},ow=(e,t)=>{var r;const n=dw(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=n[18],h=l(e,t);let m=o.get(t);if(!m){d(e,t);for(const r of h.d.keys()){f(e,r).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(t,m),TS(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(m.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,t)}return m},iw=(e,t)=>{var r,n;const o=dw(e),i=o[1],a=o[5],s=o[6],l=o[11],u=o[19],c=l(e,t);let d=i.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(t);for(const r of c.d.keys()){const n=u(e,r);null==n||n.t.delete(t)}null==(n=s.u)||n.call(s,t)},aw=(e,t,r)=>{const n=dw(e)[11],o=n(e,t),i="v"in o,a=o.v;if(WS(r))for(const i of o.d.keys())$S(t,r,n(e,i));o.v=r,delete o.e,i&&Object.is(a,o.v)||(++o.n,WS(a)&&function(e){const t=NS.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach((e=>e())))}(a))},sw=(e,t)=>jS((0,dw(e)[14])(e,t)),lw=(e,t,...r)=>{const n=dw(e),o=n[12],i=n[13],a=n[16];try{return a(e,t,...r)}finally{i(e),o(e)}},uw=(e,t,r)=>{const n=dw(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},cw=new WeakMap,dw=e=>{const r=cw.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Store must be created by buildStore to read its building blocks");return r};function pw(e){const t=dw(e),r=t[24];return r?r(t):t}function fw(...e){const t={get:e=>(0,dw(t)[21])(t,e),set:(e,...r)=>(0,dw(t)[22])(t,e,...r),sub:(e,r)=>(0,dw(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},GS,US,YS,KS,XS,JS,ZS,ew,tw,rw,nw,ow,iw,aw,sw,lw,uw,void 0].map(((t,r)=>e[r]||t));return cw.set(t,Object.freeze(r)),t}let hw,mw=0;function gw(e,r){const n="atom"+ ++mw,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?o.read=e:(o.init=e,o.read=vw,o.write=yw),r&&(o.write=r),o}function vw(e){return e(this)}function yw(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function bw(){return fw()}const xw=u(void 0);function Sw(e){const r=h(xw);return(null==e?void 0:e.store)||r||(hw||(hw=bw(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=hw),globalThis.__JOTAI_DEFAULT_STORE__!==hw&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),hw)}function ww({children:e,store:t}){const r=l(null);return t?n(xw.Provider,{value:t},e):(null===r.current&&(r.current=bw()),n(xw.Provider,{value:r.current},e))}const Cw=e=>"function"==typeof(null==e?void 0:e.then),Ew=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},Iw=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Ew(e),e)}),Dw=new WeakMap,Pw=(e,t)=>{let r=Dw.get(e);return r||(r=new Promise(((n,o)=>{let i=e;const a=e=>t=>{i===e&&n(t)},s=e=>t=>{i===e&&o(t)},l=()=>{try{const e=t();Cw(e)?(Dw.set(e,r),i=e,e.then(a(e),s(e)),zS(e,l)):n(e)}catch(e){o(e)}};e.then(a(e),s(e)),zS(e,l)})),Dw.set(e,r)),r};function Mw(e,t){const{delay:n,unstable_promiseStatus:o=!r.use}={},i=Sw(t),[[a,s,l],u]=c((t=>{const r=i.get(e);return Object.is(t[0],r)&&t[1]===i&&t[2]===e?t:[r,i,e]}),void 0,(()=>[i.get(e),i,e]));let f=a;if(s===i&&l===e||(u(),f=i.get(e)),d((()=>{const t=i.sub(e,(()=>{if(o)try{const t=i.get(e);Cw(t)&&Ew(Pw(t,(()=>i.get(e))))}catch(e){}"number"!=typeof n?u():setTimeout(u,n)}));return u(),t}),[i,e,n,o]),p(f),Cw(f)){const t=Pw(f,(()=>i.get(e)));return o&&Ew(t),Iw(t)}return f}function Rw(e,r){const n=Sw(r);return f(((...r)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)}),[n,e])}function Lw(e,t){return[Mw(e,t),Rw(e,t)]}t.meta.env&&t.meta.env.MODE;let Aw=!1;function kw(e,r){"production"===(t.meta.env?t.meta.env.MODE:void 0)||Aw||(console.warn("[DEPRECATED] atomFamily is deprecated and will be removed in v3. Please use the `jotai-family` package instead: https://github.com/jotaijs/jotai-family"),Aw=!0);let n=null;const o=new Map,i=new Set,a=t=>{let i;if(void 0===r)i=o.get(t);else for(const[e,n]of o)if(r(e,t)){i=n;break}if(void 0!==i){if(!(null==n?void 0:n(i[1],t)))return i[0];a.remove(t)}const l=e(t);return o.set(t,[l,Date.now()]),s("CREATE",t,l),l},s=(e,t,r)=>{for(const n of i)n({type:e,param:t,atom:r})};return a.unstable_listen=e=>(i.add(e),()=>{i.delete(e)}),a.getParams=()=>o.keys(),a.remove=e=>{if(void 0===r){if(!o.has(e))return;const[t]=o.get(e);o.delete(e),s("REMOVE",e,t)}else for(const[t,[n]]of o)if(r(t,e)){o.delete(t),s("REMOVE",t,n);break}},a.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,r]]of o)n(r,e)&&(o.delete(e),s("REMOVE",e,t))},a}!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},r){var n;let o,i;const a={getItem:(t,n)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==r?void 0:r.reviver)}catch(e){return n}o=e}return i},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let s;try{s=null==(n=e())?void 0:n.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,(e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)}))))}();const Ow=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),qw=new WeakMap,Tw=()=>{};const _w=new WeakMap;function jw(e,t){const r=Sw(t),n=Nw(r);for(const[o,...i]of e)n.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(n.add(o),r.set(o,...i))}const Nw=e=>{let t=_w.get(e);return t||(t=new WeakSet,_w.set(e,t)),t};function Fw(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function zw(e){const t=gw((()=>[])),r=gw((function(e){const[n,o,i]=e(t);i.has(r)&&(n.forEach(e),++o.n)}));return r.effect=e,r.INTERNAL_onInit=e=>{const n=new Set;let o,i=0,a=!1,s=!1,l=!1;function u(){if(i)return;n.clear();let t=!0;const c=o=>{if(l)return e.get(o);if(o===r){const t=h(e,o);if(!_S(t)){if(!qS(o))throw new Error("no atom init");S(e,o,o.init)}return jS(t)}const i=v(e,o);try{return jS(i)}finally{C.d.set(o,i.n),d.get(o)?.t.add(r),t?n.add(o):d.has(o)&&(x(e,r),g(e),m(e))}};c.peek=e.get;const w=(n,...o)=>{const a=h(e,n);try{if(++i,n===r){if(!qS(n))throw new Error("atom not writable");const t=a.n,r=o[0];return S(e,n,r),x(e,n),void(t!==a.n&&(p.add(n),f.c?.(n),y(e,n)))}return b(e,n,...o)}finally{t||(g(e),m(e)),--i}};w.recurse=(t,...n)=>{if(l){if(Fw())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,r),w(t,...n)}finally{g(e),a=!1,s&&(s=!1,u())}};try{o?.();const e=r.effect(c,w);if("function"!=typeof e)return;o=()=>{if(!i)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,o=void 0}}}finally{t=!1,n.forEach((t=>{C.d.set(t,h(e,t).n)})),x(e,r),g(e)}}const c=pw(e),d=c[1],p=c[3],f=BS(c[6]),h=c[11],m=c[12],g=c[13],v=c[14],y=c[15],b=c[16],x=c[17],S=c[20],w=function(e,t){let r=Ww.get(e);r||(r=new Set,Ww.set(e,r),t.f.add((function(){for(const e of r)r.delete(e),e()})));return r}(e,f),C=h(e,r);C.v=void 0,Object.assign(e.get(t),[n,C,d]),f.c.add(r,(function(){p.delete(r)})),f.m.add(r,(function(){w.add(u),o&&w.delete(o)})),f.u.add(r,(function(){w.delete(u),o&&w.add(o)})),f.c.add(r,(function(){a?s=!0:w.add(u)}))},Fw()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const Ww=new WeakMap;const $w=async(e,t,r)=>{const n=e.get(r);void 0!==n&&("dimension"===n.type?await t.moveDimensionToAlternative(n.def.qDef.cId):await t.moveMeasureToAlternative(n.def.qDef.cId))},Hw=async(e,t,r)=>{const n=e.get(r);void 0!==n&&("dimension"===n.type?await t.moveDimensionFromAlternative(n.def.qDef.cId):await t.moveMeasureFromAlternative(n.def.qDef.cId))},Vw=async e=>{const{type:t,handler:r,model:n,fieldInfo:o}=e;if(void 0!==r&&void 0!==n){switch(t){case"apply":for(const t of e.localChecked)await Hw(o,r,t);for(const t of e.localUnchecked)await $w(o,r,t);break;case"checked":await Hw(o,r,e.cId);break;case"unchecked":await $w(o,r,e.cId)}await n.applyPatches([{qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef),qPath:"/qHyperCubeDef"}],!0)}},Bw=gw(),Gw=gw(),Uw=gw(),Yw=gw((e=>e(Uw)?.translate??(e=>e))),Kw=gw(""),Xw=gw((e=>{const t=e(Kw).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)})),Jw=e=>7005!==e.qError?.qErrorCode,Zw=new WeakMap,Qw={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},eC=function(e,r=Tw){return((e,t,r)=>{const n=Ow((()=>new WeakMap),qw,t);return Ow(e,n,r)})((()=>{const n=new WeakMap,o=new WeakMap,i=gw(0),a=gw([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(i,(e=>e+1))])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(i.debugPrivate=!0,a.debugPrivate=!0);const s=gw((t=>{let l;t(i);try{l=t(s)}catch(e){}const u=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(u))return{v:u};if(u!==(null==l?void 0:l.p)&&u.then((e=>{o.set(u,e);const[r]=t(a);r()}),(e=>{n.set(u,e);const[r]=t(a);r()})),n.has(u))throw n.get(u);return o.has(u)?{p:u,v:o.get(u)}:l&&"v"in l?{p:u,f:r(l.v),v:l.v}:{p:u,f:r()}}));return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),gw((e=>{const t=e(s);return"f"in t?t.f:t.v}),((t,r,...n)=>r(e,...n)))}),e,r)}(gw((async e=>{const t=e(Bw);if(t){if(Zw.has(t))return Zw.get(t);try{const e=await t.app.createSessionObject(Qw);return Zw.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}}))),tC=gw(null),rC=gw(),nC=zw(((e,t)=>{const r=e(Bw),n=e(eC);if(!r||!n)return;const o=async()=>{const e=await r.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=await r.getEffectiveProperties();await n.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions)},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures)}]);const i=await n.getLayout();t(rC,{layout:structuredClone(e),properties:structuredClone(o),altLayout:structuredClone(i)}),t(tC,null)};return o(),r.Invalidated?.bind(o),()=>{r.Invalidated?.unbind(o)}})),oC=gw((e=>e(rC)?.layout)),iC=gw((e=>e(rC)?.altLayout)),aC=gw((e=>e(rC)?.properties)),sC=gw((e=>{const t=e(rC)?.layout;return t?.qHyperCube.qDimensionInfo.filter(Jw)??[]})),lC=gw((e=>{const t=e(rC)?.layout;return t?.qHyperCube.qMeasureInfo.filter(Jw)??[]})),uC=gw((e=>{const t=e(oC),r=e(sC),n=e(lC),o=e(aC),i=new Map;return t&&o?(r.forEach(((e,t)=>{i.set(e.cId,{id:e.cId,type:"dimension",def:o.qHyperCubeDef.qDimensions[t]})})),n.forEach(((e,t)=>{i.set(e.cId,{id:e.cId,type:"measure",def:o.qHyperCubeDef.qMeasures[t]})})),o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach((e=>{i.set(e.qDef.cId,{id:e.qDef.cId,type:"dimension",def:e})})),o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.forEach((e=>{i.set(e.qDef.cId,{id:e.qDef.cId,type:"measure",def:e})})),i):i})),cC=gw((e=>{const t=[...e(sC),...e(lC)].map((e=>e.cId));return new Set(t)})),dC=gw(new Set),pC=gw(new Set),fC=gw((e=>{const t=e(dC),r=e(pC);return e(cC).difference(r).union(t)})),hC=zw(((e,t)=>{e(cC),t(dC,new Set),t(pC,new Set)})),mC=gw((e=>e(fC)),((e,t,r)=>{const n=e(fC).has(r);if(n){const n=new Set(e(pC));n.add(r),t(pC,n)}else{const n=new Set(e(dC));n.add(r),t(dC,n)}Vw({type:n?"unchecked":"checked",cId:r,handler:e(Gw),model:e(Bw),fieldInfo:e(uC)})})),gC=({props:e,children:t})=>(jw([[Bw,e.args.model],[Uw,e.args.apis],[Gw,e.args.handler]]),Mw(hC),Mw(nC),t);function vC(e,t){const r=new Set(e),n=new Set(t);return e===t||r.size===n.size&&Array.from(r).every(n.has.bind(n))}function yC(e){return"write"in e}const bC=new WeakMap,xC={},{read:SC,write:wC}=gw(null);function CC(e,t,r){const[n,o,i,,a]=e,s=n.get(t);if(s)return s;if(r===e){let n=o.get(t);return n||(n=[PC(e,t,r),r],o.set(t,n)),n}const l=r??xC;let u=i.get(l);u||(u=new WeakMap,i.set(l,u));let c=u.get(t);if(!c){const[n,o]=a?CC(a,t,r):[t];c=[t.read===SC?n:PC(e,t,o),o],u.set(t,c)}return c}function EC(e){for(const t of e[5])t()}function IC(e,t,r,n,o){if(r.read===SC&&yC(r)&&yC(t)&&r.write!==wC&&e!==n){const{write:i}=r;return t.write=DC(e,r.write.bind(r),n,o),()=>{t.write=i}}}function DC(e,t,r,n=r){return function(o,i,...a){return t((function(t){const[n]=CC(e,t,r);return o(n)}),(function(t,...o){const[a]=CC(e,t,r),s=IC(e,a,t,r,n);try{return i(a,...o)}finally{null==s||s()}}),...a)}}function PC(e,t,r){const n=Object.getOwnPropertyDescriptors(t);Object.keys(n).filter((e=>["read","write","debugLabel"].includes(e))).forEach((e=>n[e].configurable=!0));const o=Object.getPrototypeOf(t),i=Object.create(o,n);return i.read!==SC&&(i.read=function(e,t,r){return function(n,o){return t((function(t){const[o]=CC(e,t,r);return n(o)}),o)}}(e,t.read.bind(t),r)),yC(i)&&yC(t)&&i.write!==wC&&(i.write=DC(e,t.write.bind(t),r)),i}function MC({atoms:e=[],atomFamilies:t=[],parentStore:r,name:n}){const o=new WeakSet(e),i=bC.get(r),a=(null==i?void 0:i[3])??r,s=[new WeakMap,new WeakMap,new WeakMap,a,i,new Set,void 0],l=s[0],u=s[5],c=function(e){const t=e[3],r=[...pw(t)],n=r[21],o=r[22],i=r[23],a=r[9],s={};r[9]=(e,t)=>a(l,t),r[21]=h(n),r[22]=p,r[23]=h(i),r[24]=([...e])=>{const t=[m(e[0],u),m(e[1],c),m(e[2]),g(e[3]),e[4],e[5],y(e[6]),h(e[7]),h(e[8]),e[9],h(e[10]),h(e[11],(e=>d(t[0],e))),e[12],e[13],h(e[14]),h(e[15]),h(e[16]),h(e[17]),h(e[18]),h(e[19]),h(e[20]),h(e[21]),h(e[22]),h(e[23]),()=>e];return t};const l=fw(...r);return l;function u(t){const r=new WeakMap;return function(n){let o=r.get(n);if(o)return o;const i=t(n);return i?(o={...i,d:m(i.d,(function(t){return r=>t(CC(e,r)[0])})),p:g(i.p),get n(){return i.n},set n(e){i.n=e},get v(){return i.v},set v(e){i.v=e},get e(){return i.e},set e(e){i.e=e}},r.set(n,o),o):void 0}}function c(e){const t=new WeakMap;return function(r){let n=t.get(r);if(n)return n;const o=e(r);return o?(n={...o,d:g(o.d),t:g(o.t),get u(){return o.u},set u(e){o.u=e}},t.set(r,n),n):void 0}}function d(e,t){return function(r,n){return e.get(n)||(e.set(n,t(r,n)),e.get(n))}}function p(t,r,...n){const[i,a]=CC(e,r),s=IC(e,i,r,a,e);try{return o(t,i,...n)}finally{null==s||s()}}function f(t,r){return function(n,...o){const[i]=CC(e,n);return(r?r(t):t)(i,...o)}}function h(t,r){return function(n,o,...i){const[a]=CC(e,o);return(r?r(t):t)(n,a,...i)}}function m(e,t){return{get:f(e.get.bind(e),t),set:f(e.set.bind(e)),has:f(e.has.bind(e)),delete:f(e.delete.bind(e))}}function g(t){return{get size(){return t.size},add:f(t.add.bind(t)),has:f(t.has.bind(t)),delete:f(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(f(e)),*[Symbol.iterator](){for(const r of t)yield CC(e,r)[0]}}}function v(t){if(!t)return;const r=f(t);return r.add=function(r,n){if(void 0===r)return t.add(void 0,n);const[o]=CC(e,r);return t.add(o,n)},r}function y(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map((t=>[t,{get:()=>s[t]??(s[t]=v(e[t])),set(r){delete s[t],e[t]=r},configurable:!0,enumerable:!0}])))),Object.assign(t,e)}}(s);s[6]=c,Object.assign(c,{name:n}),bC.set(c,s);for(const t of new Set(e))l.set(t,[PC(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const r=e(t);l.has(r)||l.set(r,[PC(s,r,s),s])}const t=e.unstable_listen((({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!o.has(t)&&l.delete(t):l.set(t,[PC(s,t,s),s])}));u.add(t)}return c}const RC=function(e,t){return function(r){const{atoms:o=[],atomFamilies:i=[],children:a,scope:s,name:l}=r,u=t(),c=Array.from(o,(e=>Array.isArray(e)?e[0]:e));function p(){return[s??MC({atoms:c,atomFamilies:i,parentStore:u,name:l}),function(e){return u!==e.parentStore||!vC(c,e.atoms)||!vC(i,e.atomFamilies)||s!==e.providedScope}]}const[[f,h],g]=m(p);if(h({atoms:c,atomFamilies:i,parentStore:u,providedScope:s})){const e=bC.get(f);e&&EC(e),g(p)}return jw(Array.from(o).filter(Array.isArray),{store:f}),d((()=>{const e=bC.get(f);return()=>{e&&EC(e)}}),[f]),n(e,{store:f,children:a})}}(ww,Sw),LC=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,AC=gw(),kC=gw((e=>e(AC)?.numberOfSections??0)),OC=gw((e=>e(AC)?.numberOfItemsInSection??[])),qC=gw((e=>e(AC)?.keyExtractor??LC)),TC=gw((e=>e(AC)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."})))),_C=gw((e=>e(AC)?.onDragEnd)),jC=gw((e=>e(AC)?.onDragOver)),NC=gw((e=>{const t=e(AC)?.children;return Array.isArray(t)?t[1]:t})),FC=gw((e=>{const t=e(AC)?.children;if(Array.isArray(t))return t[0]})),zC=gw((e=>e(AC)?.onClick)),WC=gw(null),$C=gw((e=>e(WC)),((e,t,r)=>{if(null===r)return void t(WC,null);const n=e(WC);t(WC,{...n,...r})})),HC=kw((e=>gw(null,((t,r,n)=>{let o;"over"===e?o=t(jC):"end"===e&&(o=t(_C),r($C,null));const{source:i,target:a}=n.operation;if(null===a)return;const s="section"===a.type,l=a.sortable?.index??0;"start"===e?r($C,{id:i.id,startSection:i.data.sectionKey}):"over"===e&&r($C,{itemIndex:l,sectionIndex:s?i.data.sectionIndex:a.data.sectionIndex}),o?.({id:i.id,toIndex:l,toSection:a.data.sectionKey,fromSection:i.data.sectionKey,startSection:t($C)?.startSection??i.data.sectionKey,event:n})})))),VC=[AC,kC,OC,qC,TC,_C,NC,FC,zC,$C],BC=[HC],GC=({props:e,children:t})=>{const r=Rw(AC);return g((()=>{r(e)}),[e,r]),t};var UC=Symbol.for("preact-signals");function YC(){if(QC>1)QC--;else{for(var e,t=!1;void 0!==ZC;){var r=ZC;for(ZC=void 0,eE++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&iE(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(eE=0,QC--,t)throw e}}function KC(e){if(QC>0)return e();QC++;try{return e()}finally{YC()}}var XC=void 0;function JC(e){var t=XC;XC=void 0;try{return e()}finally{XC=t}}var ZC=void 0,QC=0,eE=0,tE=0;function rE(e){if(void 0!==XC){var t=e.n;if(void 0===t||t.t!==XC)return t={i:0,S:e,p:XC.s,n:void 0,t:XC,e:void 0,x:void 0,r:t},void 0!==XC.s&&(XC.s.n=t),XC.s=t,e.n=t,32&XC.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=XC.s,t.n=void 0,XC.s.n=t,XC.s=t),t}}function nE(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function oE(e,t){return new nE(e,t)}function iE(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function aE(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function sE(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function lE(e,t){nE.call(this,void 0),this.x=e,this.s=void 0,this.g=tE-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function uE(e,t){return new lE(e,t)}function cE(e){var t=e.u;if(e.u=void 0,"function"==typeof t){QC++;var r=XC;XC=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,dE(e),t}finally{XC=r,YC()}}}function dE(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,cE(e)}function pE(e){if(XC!==this)throw new Error("Out-of-order effect");sE(this),XC=e,this.f&=-2,8&this.f&&dE(this),YC()}function fE(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function hE(e,t){var r=new fE(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}nE.prototype.brand=UC,nE.prototype.h=function(){return!0},nE.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:JC((function(){var e;null==(e=t.W)||e.call(t)})))},nE.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&JC((function(){var e;null==(e=t.Z)||e.call(t)})))}},nE.prototype.subscribe=function(e){var t=this;return hE((function(){var r=t.value,n=XC;XC=void 0;try{e(r)}finally{XC=n}}),{name:"sub"})},nE.prototype.valueOf=function(){return this.value},nE.prototype.toString=function(){return this.value+""},nE.prototype.toJSON=function(){return this.value},nE.prototype.peek=function(){var e=XC;XC=void 0;try{return this.value}finally{XC=e}},Object.defineProperty(nE.prototype,"value",{get:function(){var e=rE(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(eE>100)throw new Error("Cycle detected");this.v=e,this.i++,tE++,QC++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{YC()}}}}),lE.prototype=new nE,lE.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===tE)return!0;if(this.g=tE,this.f|=1,this.i>0&&!iE(this))return this.f&=-2,!0;var e=XC;try{aE(this),XC=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return XC=e,sE(this),this.f&=-2,!0},lE.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}nE.prototype.S.call(this,e)},lE.prototype.U=function(e){if(void 0!==this.t&&(nE.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},lE.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(lE.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=rE(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),fE.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},fE.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,cE(this),aE(this),QC++;var e=XC;return XC=this,pE.bind(this,e)},fE.prototype.N=function(){2&this.f||(this.f|=2,this.o=ZC,ZC=this)},fE.prototype.d=function(){this.f|=8,1&this.f||dE(this)},fE.prototype.dispose=function(){this.d()};var mE,gE,vE,yE,bE,xE,SE,wE,CE,EE,IE,DE,PE,ME,RE,LE,AE,kE,OE,qE,TE=Object.create,_E=Object.defineProperty,jE=Object.defineProperties,NE=Object.getOwnPropertyDescriptor,FE=Object.getOwnPropertyDescriptors,zE=Object.getOwnPropertySymbols,WE=Object.prototype.hasOwnProperty,$E=Object.prototype.propertyIsEnumerable,HE=e=>{throw TypeError(e)},VE=(e,t,r)=>t in e?_E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,BE=(e,t)=>_E(e,"name",{value:t,configurable:!0}),GE=["class","method","getter","setter","accessor","field","value","get","set"],UE=e=>void 0!==e&&"function"!=typeof e?HE("Function expected"):e,YE=(e,t,r,n,o)=>({kind:GE[e],name:t,metadata:n,addInitializer:e=>r._?HE("Already initialized"):o.push(UE(e||null))}),KE=(e,t)=>{return VE(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},XE=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},JE=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=GE[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&NE(d<4?o:{get[r](){return eI(this,i)},set[r](e){return rI(this,i,e)}},r));d?f&&d<4&&BE(i,(d>2?"set ":d>1?"get ":"")+r):BE(o,r);for(var b=n.length-1;b>=0;b--)u=YE(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>QE(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?eI:nI)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>rI(e,o,t,4^d?i:y.set):(e,t)=>e[r]=t)),s=(0,n[b])(d?d<4?f?i:y[m]:d>4?void 0:{get:y.get,set:y.set}:o,u),l._=1,4^d||void 0===s?UE(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?HE("Object expected"):(UE(a=s.get)&&(y.get=a),UE(a=s.set)&&(y.set=a),UE(a=s.init)&&g.unshift(a));return d||KE(e,o),y&&_E(o,r,y),f?4^d?i:y:o},ZE=(e,t,r)=>t.has(e)||HE("Cannot "+r),QE=(e,t)=>Object(t)!==t?HE('Cannot use the "in" operator on this value'):e.has(t),eI=(e,t,r)=>(ZE(e,t,"read from private field"),r?r.call(e):t.get(e)),tI=(e,t,r)=>t.has(e)?HE("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),rI=(e,t,r,n)=>(ZE(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),nI=(e,t,r)=>(ZE(e,t,"access private method"),r);function oI(e,t){if(t){let r;return uE((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return uE(e)}function iI(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some(((e,r)=>!iI(e,t[r])))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some((r=>!iI(e[r],t[r])));return!o}return!1}function aI({get:e},t){return{init:e=>oE(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function sI(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=oI(e.bind(this)),r.set(this,t)),t.value}}function lI(e=!0){return function(t,r){r.addInitializer((function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>jE(e,FE(t)))(((e,t)=>{for(var r in t||(t={}))WE.call(t,r)&&VE(e,r,t[r]);if(zE)for(var r of zE(t))$E.call(t,r)&&VE(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function uI(...e){const t=e.map((e=>hE(e)));return()=>t.forEach((e=>e()))}xE=[aI],bE=[aI],yE=[aI],vE=[lI()],gE=[lI()],mE=[lI()];var cI,dI=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,XE(SE,5,this),tI(this,DE),tI(this,wE,XE(SE,8,this)),XE(SE,11,this),tI(this,PE,XE(SE,12,this)),XE(SE,15,this),tI(this,AE,XE(SE,16,this)),XE(SE,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return eI(this,DE,OE)}get initial(){return eI(this,DE,EE)}get previous(){return eI(this,DE,RE)}set current(e){const t=JC((()=>eI(this,DE,OE)));e&&t&&this.equals(t,e)||KC((()=>{eI(this,DE,EE)||rI(this,DE,e,IE),rI(this,DE,t,LE),rI(this,DE,e,qE)}))}reset(e=this.defaultValue){KC((()=>{rI(this,DE,void 0,LE),rI(this,DE,e,IE),rI(this,DE,e,qE)}))}};function pI(e){return JC((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}SE=[,,,TE(null)],wE=new WeakMap,DE=new WeakSet,PE=new WeakMap,AE=new WeakMap,CE=JE(SE,20,"#initial",xE,DE,wE),EE=CE.get,IE=CE.set,ME=JE(SE,20,"#previous",bE,DE,PE),RE=ME.get,LE=ME.set,kE=JE(SE,20,"#current",yE,DE,AE),OE=kE.get,qE=kE.set,JE(SE,2,"current",vE,dI),JE(SE,2,"initial",gE,dI),JE(SE,2,"previous",mE,dI),KE(SE,dI);cI=new WeakMap;var fI,hI,mI,gI,vI,yI=Object.create,bI=Object.defineProperty,xI=Object.getOwnPropertyDescriptor,SI=Object.getOwnPropertySymbols,wI=Object.prototype.hasOwnProperty,CI=Object.prototype.propertyIsEnumerable,EI=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),II=e=>{throw TypeError(e)},DI=Math.pow,PI=(e,t,r)=>t in e?bI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,MI=["class","method","getter","setter","accessor","field","value","get","set"],RI=e=>void 0!==e&&"function"!=typeof e?II("Function expected"):e,LI=(e,t,r,n,o)=>({kind:MI[e],name:t,metadata:n,addInitializer:e=>r._?II("Already initialized"):o.push(RI(e||null))}),AI=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=MI[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,xI(o,r)),h=n.length-1;h>=0;h--)(l=LI(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,RI(a)&&(f[d]=a);return f&&bI(o,r,f),o},kI=(e,t,r)=>t.has(e)||II("Cannot "+r),OI=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},qI=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))wI.call(t,r)&&PI(e,r,t[r]);if(SI)for(var r of SI(t))CI.call(t,r)&&PI(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new OI((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return OI.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var TI,_I=class extends(mI=dI,hI=[sI],fI=[sI],mI){constructor(e){var t,r,n;super(OI.from(e),((e,t)=>OI.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(vI,5,this),t=this,n=0,(r=gI).has(t)?II("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return OI.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=OI.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(kI(a=this,s=gI,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);KC((()=>{((e,t,r)=>{kI(e,t,"write to private field"),t.set(e,r)})(this,gI,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(OI.from(e)),this.velocity={x:0,y:0}}};function jI({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(DI(n,2)+DI(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}vI=(e=>{var t;return[,,,yI(null!=(t=null==e?void 0:e[EI("metadata")])?t:null)]})(mI),gI=new WeakMap,AI(vI,2,"delta",hI,_I),AI(vI,2,"direction",fI,_I),TI=vI,PI(_I,EI("metadata"),TI[3]);var NI,FI,zI,WI,$I=(e=>(e.Horizontal="x",e.Vertical="y",e))($I||{}),HI=Object.values($I),VI=Object.create,BI=Object.defineProperty,GI=Object.defineProperties,UI=Object.getOwnPropertyDescriptor,YI=Object.getOwnPropertyDescriptors,KI=Object.getOwnPropertySymbols,XI=Object.prototype.hasOwnProperty,JI=Object.prototype.propertyIsEnumerable,ZI=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),QI=e=>{throw TypeError(e)},eD=(e,t,r)=>t in e?BI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tD=(e,t)=>{for(var r in t||(t={}))XI.call(t,r)&&eD(e,r,t[r]);if(KI)for(var r of KI(t))JI.call(t,r)&&eD(e,r,t[r]);return e},rD=(e,t)=>GI(e,YI(t)),nD=(e,t)=>BI(e,"name",{value:t,configurable:!0}),oD=(e,t)=>{var r={};for(var n in e)XI.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&KI)for(var n of KI(e))t.indexOf(n)<0&&JI.call(e,n)&&(r[n]=e[n]);return r},iD=e=>{var t;return[,,,VI(null!=(t=null==e?void 0:e[ZI("metadata")])?t:null)]},aD=["class","method","getter","setter","accessor","field","value","get","set"],sD=e=>void 0!==e&&"function"!=typeof e?QI("Function expected"):e,lD=(e,t,r,n,o)=>({kind:aD[e],name:t,metadata:n,addInitializer:e=>r._?QI("Already initialized"):o.push(sD(e||null))}),uD=(e,t)=>eD(t,ZI("metadata"),e[3]),cD=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},dD=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=aD[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&UI(d<4?o:{get[r](){return hD(this,i)},set[r](e){return gD(this,i,e)}},r));d?f&&d<4&&nD(i,(d>2?"set ":d>1?"get ":"")+r):nD(o,r);for(var b=n.length-1;b>=0;b--)u=lD(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>fD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?hD:vD)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>gD(e,o,t,4^d?i:y.set):(e,t)=>e[r]=t)),s=(0,n[b])(d?d<4?f?i:y[m]:d>4?void 0:{get:y.get,set:y.set}:o,u),l._=1,4^d||void 0===s?sD(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?QI("Object expected"):(sD(a=s.get)&&(y.get=a),sD(a=s.set)&&(y.set=a),sD(a=s.init)&&g.unshift(a));return d||uD(e,o),y&&BI(o,r,y),f?4^d?i:y:o},pD=(e,t,r)=>t.has(e)||QI("Cannot "+r),fD=(e,t)=>Object(t)!==t?QI('Cannot use the "in" operator on this value'):e.has(t),hD=(e,t,r)=>(pD(e,t,"read from private field"),r?r.call(e):t.get(e)),mD=(e,t,r)=>t.has(e)?QI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),gD=(e,t,r,n)=>(pD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),vD=(e,t,r)=>(pD(e,t,"access private method"),r);function yD(e,t){return{plugin:e,options:t}}function bD(e){return t=>yD(e,t)}function xD(e){return"function"==typeof e?{plugin:e,options:void 0}:e}NI=[aI];var SD=class{constructor(e,t){this.manager=e,this.options=t,mD(this,zI,cD(FI,8,this,!1)),cD(FI,11,this),mD(this,WI,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return JC((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=hE(e.bind(this));return hD(this,WI).add(t),t}destroy(){hD(this,WI).forEach((e=>e()))}static configure(e){return yD(this,e)}};FI=iD(null),zI=new WeakMap,WI=new WeakMap,dD(FI,4,"disabled",NI,SD,zI),uD(FI,SD);var wD,CD=class extends SD{},ED=class{constructor(e){this.manager=e,this.instances=new Map,mD(this,wD,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(xD).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of hD(this,wD))if(!r.includes(e)){if(e.prototype instanceof CD)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);gD(this,wD,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function ID(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}wD=new WeakMap;var DD,PD,MD=[],RD=class extends SD{constructor(e){super(e),mD(this,DD),mD(this,PD),this.computeCollisions=this.computeCollisions.bind(this),gD(this,PD,oE(MD)),this.destroy=uI((()=>{const e=this.computeCollisions(),t=JC((()=>this.manager.dragOperation.position.current));if(e!==MD){const e=hD(this,DD);if(gD(this,DD,t),e&&t.x==e.x&&t.y==e.y)return}else gD(this,DD,void 0);hD(this,PD).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){JC((()=>{e?hD(this,PD).value=this.computeCollisions():gD(this,DD,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return MD;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=JC((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?MD:(s.sort(ID),s)}get collisions(){return hD(this,PD).value}};DD=new WeakMap,PD=new WeakMap;var LD=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},AD=class extends LD{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function kD(e,t=!0){let r=!1;return rD(tD({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var OD,qD,TD,_D,jD,ND,FD,zD,WD,$D=class extends CD{constructor(e){super(e);let t=[];this.destroy=uI((()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())}),(()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=kD({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map((({id:e})=>e)).join("")===t.map((({id:e})=>e)).join(""))(o,t))return;t=o;const[a]=o;JC((()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then((()=>{r.enable()})))}))}))}},HD=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(HD||{}),VD=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(VD||{});FD=[aI],ND=[sI],jD=[sI],_D=[sI],TD=[sI],qD=[sI],OD=[sI];var BD=class{constructor(){cD(zD,5,this),mD(this,WD,cD(zD,8,this,"idle")),cD(zD,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};zD=iD(null),WD=new WeakMap,dD(zD,4,"value",FD,BD,WD),dD(zD,2,"current",ND,BD),dD(zD,2,"idle",jD,BD),dD(zD,2,"initializing",_D,BD),dD(zD,2,"initialized",TD,BD),dD(zD,2,"dragging",qD,BD),dD(zD,2,"dropped",OD,BD),uD(zD,BD);var GD,UD,YD,KD,XD,JD,ZD,QD,eP,tP=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return JC((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=kD({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return JC((()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;KC((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=kD({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then((()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))})),r)}))}move(e){return JC((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=kD({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask((()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l}))}))}stop(e={}){return JC((()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then((()=>{n.status.set("dropped");const e=JC((()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)})),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=hE((()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())}))}else this.manager.renderer.rendering.then(t)}))};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise(((t,r)=>{e.resume=t,e.abort=r})),e}}),i?i.then(a).catch((()=>n.reset())):a()}))}};KD=[aI],YD=[aI],UD=[aI],GD=[aI];var rP=class{constructor(e,t){mD(this,JD,cD(XD,8,this)),cD(XD,11,this),mD(this,ZD,cD(XD,12,this)),cD(XD,15,this),mD(this,QD,cD(XD,16,this)),cD(XD,19,this),mD(this,eP,cD(XD,20,this)),cD(XD,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};XD=iD(null),JD=new WeakMap,ZD=new WeakMap,QD=new WeakMap,eP=new WeakMap,dD(XD,4,"manager",KD,rP,JD),dD(XD,4,"id",YD,rP,ZD),dD(XD,4,"data",UD,rP,QD),dD(XD,4,"disabled",GD,rP,eP),uD(XD,rP);var nP,oP,iP,aP,sP,lP,uP,cP,dP,pP,fP,hP,mP,gP,vP,yP,bP,xP,SP,wP,CP,EP,IP,DP,PP=class{constructor(){this.map=oE(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=uI(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},MP=class extends(uP=rP,lP=[aI],sP=[aI],aP=[aI],iP=[sI],oP=[sI],nP=[sI],uP){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=oD(r,["modifiers","type","sensors"]);super(a,t),cD(cP,5,this),mD(this,dP,cD(cP,8,this)),cD(cP,11,this),mD(this,pP,cD(cP,12,this)),cD(cP,15,this),mD(this,fP,cD(cP,16,this,this.isDragSource?"dragging":"idle")),cD(cP,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};cP=iD(uP),dP=new WeakMap,pP=new WeakMap,fP=new WeakMap,dD(cP,4,"type",lP,MP,dP),dD(cP,4,"modifiers",sP,MP,pP),dD(cP,4,"status",aP,MP,fP),dD(cP,2,"isDropping",iP,MP),dD(cP,2,"isDragging",oP,MP),dD(cP,2,"isDragSource",nP,MP),uD(cP,MP);var RP=class extends(xP=rP,bP=[aI],yP=[aI],vP=[aI],gP=[aI],mP=[aI],hP=[sI],xP){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(oD(r,["accept","collisionDetector","collisionPriority","type"]),t),cD(SP,5,this),mD(this,wP,cD(SP,8,this)),cD(SP,11,this),mD(this,CP,cD(SP,12,this)),cD(SP,15,this),mD(this,EP,cD(SP,16,this)),cD(SP,19,this),mD(this,IP,cD(SP,20,this)),cD(SP,23,this),mD(this,DP,cD(SP,24,this)),cD(SP,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};SP=iD(xP),wP=new WeakMap,CP=new WeakMap,EP=new WeakMap,IP=new WeakMap,DP=new WeakMap,dD(SP,4,"accept",bP,RP,wP),dD(SP,4,"type",yP,RP,CP),dD(SP,4,"collisionDetector",vP,RP,EP),dD(SP,4,"collisionPriority",gP,RP,IP),dD(SP,4,"shape",mP,RP,DP),dD(SP,2,"isDropTarget",hP,RP),uD(SP,RP);var LP,AP=class extends SD{constructor(e,t){super(e,t),this.manager=e,this.options=t}},kP=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},OP=class{constructor(e){this.options=e,mD(this,LP)}set controller(e){gD(this,LP,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=hD(this,LP))||t.activate(e)}};LP=new WeakMap;var qP,TP,_P,jP,NP,FP,zP,WP,$P,HP,VP,BP,GP,UP,YP,KP,XP,JP,ZP,QP=class extends SD{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},eM=class{constructor(e){this.draggables=new PP,this.droppables=new PP,this.plugins=new ED(e),this.sensors=new ED(e),this.modifiers=new ED(e)}register(e,t){if(e instanceof MP)return this.draggables.register(e.id,e);if(e instanceof RP)return this.droppables.register(e.id,e);if(e.prototype instanceof QP)return this.modifiers.register(e,t);if(e.prototype instanceof AP)return this.sensors.register(e,t);if(e.prototype instanceof SD)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof rP)return e instanceof MP?this.draggables.unregister(e.id,e):e instanceof RP?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof QP)return this.modifiers.unregister(e);if(e.prototype instanceof AP)return this.sensors.unregister(e);if(e.prototype instanceof SD)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};$P=[sI],WP=[aI],zP=[aI],FP=[aI],NP=[aI],jP=[aI],_P=[sI],TP=[sI],qP=[sI];var tM=class{constructor(e){cD(GP,5,this),mD(this,HP),mD(this,VP),mD(this,BP,new dI(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new BD,mD(this,UP,cD(GP,8,this,!1)),cD(GP,11,this),mD(this,YP,cD(GP,12,this,null)),cD(GP,15,this),mD(this,KP,cD(GP,16,this,null)),cD(GP,19,this),mD(this,XP,cD(GP,20,this,null)),cD(GP,23,this),mD(this,JP,cD(GP,24,this,[])),cD(GP,27,this),this.position=new _I({x:0,y:0}),mD(this,ZP,{x:0,y:0}),gD(this,HP,e)}get shape(){const{current:e,initial:t,previous:r}=hD(this,BP);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?hD(this,BP).current=e:hD(this,BP).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=hD(this,HP).registry.draggables.get(t);return r&&gD(this,VP,r),null!=(e=null!=r?r:hD(this,VP))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=hD(this,HP).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(rD(tD({},this.snapshot()),{transform:r}));return gD(this,ZP,r),r}snapshot(){return JC((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:hD(this,ZP),shape:this.shape?pI(this.shape):null,position:pI(this.position),status:pI(this.status),canceled:this.canceled})))}reset(){KC((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,hD(this,BP).reset(),this.position.reset({x:0,y:0}),gD(this,ZP,{x:0,y:0}),this.modifiers=[]}))}};GP=iD(null),HP=new WeakMap,VP=new WeakMap,BP=new WeakMap,UP=new WeakMap,YP=new WeakMap,KP=new WeakMap,XP=new WeakMap,JP=new WeakMap,ZP=new WeakMap,dD(GP,2,"shape",$P,tM),dD(GP,4,"canceled",WP,tM,UP),dD(GP,4,"activatorEvent",zP,tM,YP),dD(GP,4,"sourceIdentifier",FP,tM,KP),dD(GP,4,"targetIdentifier",NP,tM,XP),dD(GP,4,"modifiers",jP,tM,JP),dD(GP,2,"source",_P,tM),dD(GP,2,"target",TP,tM),dD(GP,2,"transform",qP,tM),uD(GP,tM);var rM={get rendering(){return Promise.resolve()}},nM=class{constructor(e){this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach((e=>e.destroy())),this.registry.destroy(),this.collisionObserver.destroy()};const{plugins:t=[],sensors:r=[],modifiers:n=[],renderer:o=rM}=null!=e?e:{},i=new AD(this),a=new eM(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new tP(this),this.dragOperation=new tM(this),this.collisionObserver=new RD(this),this.plugins=[$D,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=uI((()=>{var e,t,r;const n=JC((()=>this.dragOperation.modifiers)),o=this.modifiers;n!==o&&n.forEach((e=>e.destroy())),this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map((e=>{const{plugin:t,options:r}=xD(e);return new t(this,r)})))?r:o}));this.destroy=()=>{l(),s()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},oM=e=>{throw TypeError(e)},iM=(e,t,r)=>t.has(e)||oM("Cannot "+r),aM=(e,t,r)=>(iM(e,t,"read from private field"),t.get(e)),sM=(e,t,r)=>t.has(e)?oM("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),lM=(e,t,r,n)=>(iM(e,t,"write to private field"),t.set(e,r),r),uM=(e,t,r)=>(iM(e,t,"access private method"),r);function cM(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function dM(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(cM(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function pM(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function fM(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function hM(e){return"nodeType"in e}function mM(e){var t,r,n;return e?fM(e)?e:hM(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function gM(e){const{Document:t}=mM(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function vM(e){return!(!e||fM(e))&&(e instanceof mM(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function yM(e){return e instanceof mM(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function bM(e){return e?fM(e)?e.document:hM(e)?gM(e)?e:vM(e)||yM(e)?e.ownerDocument:document:document:document}function xM(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function SM(e,t=e.getBoundingClientRect(),r=0){var n;let o=t;const{ownerDocument:i}=e,a=null!=(n=i.defaultView)?n:window;let s=e.parentElement;for(;s&&s!==i.documentElement;){if(!xM(s)){const e=s.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),i=r*(e.bottom-e.top),a=r*(e.right-e.left);o={top:Math.max(o.top,e.top-t),right:Math.min(o.right,e.right+n),bottom:Math.min(o.bottom,e.bottom+i),left:Math.max(o.left,e.left-a),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top}s=s.parentElement}const l=a.innerWidth,u=a.innerHeight,c=r*u,d=r*l;return o={top:Math.max(o.top,0-c),right:Math.min(o.right,l+d),bottom:Math.min(o.bottom,u+c),left:Math.max(o.left,0-d),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top,o.width<0&&(o.width=0),o.height<0&&(o.height=0),o}function wM(e){return{x:e.clientX,y:e.clientY}}var CM="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function EM(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...EM(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...EM(o.document,t))}}catch(e){}return r}function IM(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function DM(e){return!(!e||!hM(e))&&e instanceof mM(e).ShadowRoot}function PM(e){if(e&&hM(e)){let t=e.getRootNode();if(DM(t))return t;if(t instanceof Document)return t}return bM(e)}function MM(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function RM(e){return"value"in e}function LM(e){return"CANVAS"===e.tagName}function AM(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return AM(e,{x:t-o,y:r-i})}}return n}var kM=new WeakMap;var OM=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function qM(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function TM(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}((()=>{e.apply(a,i),o=r()}),t-(r()-o))):(e.apply(a,i),o=r())}}var _M,jM=CM?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},NM=class extends jM{constructor(e){super((t=>{aM(this,_M)?e(t,this):lM(this,_M,!0)})),sM(this,_M,!1)}};_M=new WeakMap;var FM,zM,WM,$M,HM,VM,BM,GM,UM,YM,KM,XM=Array.from({length:100},((e,t)=>t/100)),JM=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,sM(this,UM),this.disconnect=()=>{var e,t,r;lM(this,BM,!0),null==(e=aM(this,WM))||e.disconnect(),null==(t=aM(this,$M))||t.disconnect(),aM(this,HM).disconnect(),null==(r=aM(this,VM))||r.remove()},sM(this,FM,!0),sM(this,zM),sM(this,WM),sM(this,$M),sM(this,HM),sM(this,VM),sM(this,BM,!1),sM(this,GM,TM((()=>{var e,t,r;const{element:n}=this;if(null==(e=aM(this,$M))||e.disconnect(),aM(this,BM)||!aM(this,FM)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=SM(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,lM(this,$M,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:qI.intersectionRatio(r,SM(n)))&&aM(this,GM).call(this)}),{threshold:XM,rootMargin:m,root:o})),aM(this,$M).observe(n),uM(this,UM,YM).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),lM(this,FM,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=SM(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(lM(this,VM,document.createElement("div")),aM(this,VM).style.background="rgba(0,0,0,0.15)",aM(this,VM).style.position="fixed",aM(this,VM).style.pointerEvents="none",o.body.appendChild(aM(this,VM))),lM(this,HM,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=aM(this,FM);lM(this,FM,a),(s||l)&&(u&&!a?(null==(r=aM(this,$M))||r.disconnect(),this.callback(null),null==(n=aM(this,WM))||n.disconnect(),lM(this,WM,void 0),aM(this,VM)&&(aM(this,VM).style.visibility="hidden")):aM(this,GM).call(this),a&&!aM(this,WM)&&(lM(this,WM,new NM(aM(this,GM))),aM(this,WM).observe(e)))}),{threshold:XM,root:o})),aM(this,FM)&&!r.skipInitial&&this.callback(this.boundingClientRect),aM(this,HM).observe(e)}};FM=new WeakMap,zM=new WeakMap,WM=new WeakMap,$M=new WeakMap,HM=new WeakMap,VM=new WeakMap,BM=new WeakMap,GM=new WeakMap,UM=new WeakSet,YM=function(){aM(this,BM)||(uM(this,UM,KM).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,aM(this,zM))||(this.callback(this.boundingClientRect),lM(this,zM,this.boundingClientRect)))},KM=function(){if(aM(this,VM)){const{top:e,left:t,width:r,height:n}=SM(this.element);aM(this,VM).style.overflow="hidden",aM(this,VM).style.visibility="visible",aM(this,VM).style.top=`${Math.floor(e)}px`,aM(this,VM).style.left=`${Math.floor(t)}px`,aM(this,VM).style.width=`${Math.floor(r)}px`,aM(this,VM).style.height=`${Math.floor(n)}px`}};var ZM,QM,eR,tR,rR=new WeakMap,nR=new WeakMap;function oR(e,t){let r=rR.get(e);if(!r){const t=new JM(e,(t=>{const r=rR.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),rR.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(rR.delete(e),r.disconnect())}}var iR=class{constructor(e,t,r){this.callback=t,sM(this,ZM),sM(this,QM,!1),sM(this,eR),sM(this,tR,TM((e=>{if(!aM(this,QM)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of aM(this,eR))if(e.target.contains(t)){this.callback(aM(this,ZM).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=qM(e);for(;r;)t.add(r),r=qM(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=oR(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!nR.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",(e=>t.forEach((t=>t(e)))),{capture:!0,passive:!0,signal:e.signal}),nR.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=nR.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),nR.delete(n))}):()=>{}}(e,aM(this,tR));lM(this,eR,n),lM(this,ZM,new JM(e,t,r)),this.disconnect=()=>{aM(this,QM)||(lM(this,QM,!0),o(),i(),aM(this,ZM).disconnect())}}};function aR(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function sR(e){try{aR(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function lR(e){return!(!CM||!e)&&e===bM(e).scrollingElement}function uR(e){const t=mM(e),r=lR(e)?function(e){const{documentElement:t}=bM(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):pM(e),n=lR(e)?{height:t.innerHeight,width:t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-n.width,y:e.scrollHeight-n.height}};return{rect:r,position:o,isTop:o.current.y<=0,isLeft:o.current.x<=0,isBottom:o.current.y>=o.max.y,isRight:o.current.x>=o.max.x}}function cR(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=uR(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}ZM=new WeakMap,QM=new WeakMap,eR=new WeakMap,tR=new WeakMap;var dR=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}},pR=new dR((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),fR=new dR((e=>setTimeout(e,50))),hR=new Map,mR=hR.clear.bind(hR);function gR(e,t=!1){if(!t)return vR(e);let r=hR.get(e);return r||(r=vR(e),hR.set(e,r),fR.schedule(mR),r)}function vR(e){return mM(e).getComputedStyle(e)}var yR={excludeElement:!0,escapeShadowDOM:!0};function bR(e,t=yR){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(gM(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&DM(a))return t(a.host);if(!vM(a))return yM(a)?t(a.parentElement):i;if(i.has(a))return i;const s=gR(a,!0);if(n&&a===e||function(e,t=gR(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(a,s)&&i.add(a),function(e,t=gR(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function xR(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=qM(e);for(;n;){if(n===t)return r;const e=pM(n),{x:o,y:i}=SR(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=qM(n)}return r}function SR(e,t=pM(e)){const r=Math.round(t.width),n=Math.round(t.height);if(vM(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=gR(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function wR(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function CR(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=wR(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,v=null!=(r=null==f?void 0:f.y)?r:1,y=null!=(n=null==h?void 0:h.x)?n:0,b=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:y+x,y:b+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:v*C}}var ER=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(ER||{}),IR={x:.2,y:.2},DR={x:10,y:10};function PR(e,t,r,n=25,o=IR,i=DR){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=uR(e),f=xR(e),h=CR(gR(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new qI(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),y={x:0,y:0},b={x:0,y:0},x=v.height*o.y,S=v.width*o.x;return(!u||g&&!c)&&s<=v.top+x&&1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x?(y.y=g?1:-1,b.y=n*Math.abs((v.top+x-s)/x)):(!c||g&&!u)&&s>=v.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x&&(y.y=g?-1:1,b.y=n*Math.abs((v.bottom-x-s)/x)),(!p||m&&!d)&&a>=v.right-S&&-1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y?(y.x=m?-1:1,b.x=n*Math.abs((v.right-S-a)/S)):(!d||m&&!p)&&a<=v.left+S&&1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y&&(y.x=m?1:-1,b.x=n*Math.abs((v.left+S-a)/S)),{direction:y,speed:b}}function MR(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!vM(e))return e.scrollIntoView();var n=function(e){const[t]=bR(e,{limit:1});return null!=t?t:null}(e);if(!vM(n))return;const o=gR(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function RR({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function LR(e,t=gR(e).translate,r=!0){if(r){const t=dM(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=wR(e);if(t)return t}}}if(t){const e=wR(t);if(e)return e}return{x:0,y:0,z:0}}var AR=new dR((e=>setTimeout(e,0))),kR=new Map,OR=kR.clear.bind(kR);function qR(e,t){const r=function(e){const t=e.ownerDocument;let r=kR.get(t);if(r)return r;r=t.getAnimations(),kR.set(t,r),AR.schedule(OR);const n=r.filter((t=>cM(t.effect)&&t.effect.target===e));return kR.set(e,n),r}(e).filter((e=>{var r,n;if(cM(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some((e=>{for(const r of t.properties)if(e[r])return!0}))}})).map((e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0}));if(r.length>0)return()=>r.forEach((e=>null==e?void 0:e()))}var TR=class extends qI{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=xR(e),ignoreTransforms:s,getBoundingClientRect:l=pM}=t,u=qR(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||IM())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=gR(e),v=CR(g),y={x:null!=(r=null==v?void 0:v.scaleX)?r:1,y:null!=(n=null==v?void 0:v.scaleY)?n:1},b=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=cM(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=CR({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),v&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,v,g.transformOrigin),(s||b)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(b&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,b,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,y.x=b.scaleX,y.y=b.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=y,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function _R(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var jR=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(_R(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(_R(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(_R(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function NR(e){return!!e&&(e instanceof mM(e).Element||hM(e)&&e.nodeType===Node.ELEMENT_NODE)}function FR(e){if(!e)return!1;const{KeyboardEvent:t}=mM(e.target);return e instanceof t}var zR={};function WR(e){const t=null==zR[e]?0:zR[e]+1;return zR[e]=t,`${e}-${t}`}var $R=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/OI.distance(t.shape.center,r),type:VD.PointerIntersection,priority:HD.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=OI.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:VD.ShapeIntersection,priority:HD.Normal}}return null})(e)},HR=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?qI.from(n.current.boundingRectangle).corners:void 0,a=qI.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+OI.distance(OI.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)}),0),s=a/4;return{id:r.id,value:1/s,type:VD.Collision,priority:HD.Normal}},VR=Object.create,BR=Object.defineProperty,GR=Object.defineProperties,UR=Object.getOwnPropertyDescriptor,YR=Object.getOwnPropertyDescriptors,KR=Object.getOwnPropertySymbols,XR=Object.prototype.hasOwnProperty,JR=Object.prototype.propertyIsEnumerable,ZR=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),QR=e=>{throw TypeError(e)},eL=(e,t,r)=>t in e?BR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tL=(e,t)=>{for(var r in t||(t={}))XR.call(t,r)&&eL(e,r,t[r]);if(KR)for(var r of KR(t))JR.call(t,r)&&eL(e,r,t[r]);return e},rL=(e,t)=>GR(e,YR(t)),nL=(e,t)=>BR(e,"name",{value:t,configurable:!0}),oL=(e,t)=>{var r={};for(var n in e)XR.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&KR)for(var n of KR(e))t.indexOf(n)<0&&JR.call(e,n)&&(r[n]=e[n]);return r},iL=e=>{var t;return[,,,VR(null!=(t=null==e?void 0:e[ZR("metadata")])?t:null)]},aL=["class","method","getter","setter","accessor","field","value","get","set"],sL=e=>void 0!==e&&"function"!=typeof e?QR("Function expected"):e,lL=(e,t,r,n,o)=>({kind:aL[e],name:t,metadata:n,addInitializer:e=>r._?QR("Already initialized"):o.push(sL(e||null))}),uL=(e,t)=>eL(t,ZR("metadata"),e[3]),cL=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},dL=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=aL[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&UR(d<4?o:{get[r](){return hL(this,i)},set[r](e){return gL(this,i,e)}},r));d?f&&d<4&&nL(i,(d>2?"set ":d>1?"get ":"")+r):nL(o,r);for(var b=n.length-1;b>=0;b--)u=lL(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>fL(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?hL:vL)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>gL(e,o,t,4^d?i:y.set):(e,t)=>e[r]=t)),s=(0,n[b])(d?d<4?f?i:y[m]:d>4?void 0:{get:y.get,set:y.set}:o,u),l._=1,4^d||void 0===s?sL(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?QR("Object expected"):(sL(a=s.get)&&(y.get=a),sL(a=s.set)&&(y.set=a),sL(a=s.init)&&g.unshift(a));return d||uL(e,o),y&&BR(o,r,y),f?4^d?i:y:o},pL=(e,t,r)=>t.has(e)||QR("Cannot "+r),fL=(e,t)=>Object(t)!==t?QR('Cannot use the "in" operator on this value'):e.has(t),hL=(e,t,r)=>(pL(e,t,"read from private field"),r?r.call(e):t.get(e)),mL=(e,t,r)=>t.has(e)?QR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),gL=(e,t,r,n)=>(pL(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),vL=(e,t,r)=>(pL(e,t,"access private method"),r),yL="button",bL="draggable",xL="dnd-kit-description",SL="dnd-kit-announcement",wL={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},CL={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function EL(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var IL=["dragover","dragmove"];var DL,PL,ML,RL,LL,AL,kL,OL,qL,TL,_L,jL=new Map,NL=class extends(LL=CD,RL=[aI],ML=[sI],PL=[sI],DL=[sI],LL){constructor(e){super(e),cL(kL,5,this),mL(this,qL),mL(this,AL,new Set),mL(this,OL,cL(kL,8,this,new Set)),cL(kL,11,this),this.registerEffect(vL(this,qL,TL))}register(e){return hL(this,AL).add(e),()=>{hL(this,AL).delete(e)}}addRoot(e){return JC((()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t})),()=>{JC((()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t}))}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return PM(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return PM(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter((e=>null!=e));return new Set([...e,...this.additionalRoots])}return new Set}};kL=iL(LL),AL=new WeakMap,OL=new WeakMap,qL=new WeakSet,TL=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of hL(this,AL))t.push(vL(this,qL,_L).call(this,r,e));return()=>{for(const e of t)e()}},_L=function(e,t){let r=jL.get(e);r||(r=new Map,jL.set(e,r));let n=r.get(t);if(!n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets),0;const o=gM(e)?e.defaultView:e.ownerDocument.defaultView,{CSSStyleSheet:i}=null!=o?o:{};if(!i)return()=>{};const a=new i;a.replaceSync(t),e.adoptedStyleSheets.push(a),n={sheet:a,refCount:0,cleanup:()=>{var n;if(gM(e)||DM(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(a);-1!==t&&e.adoptedStyleSheets.splice(t,1)}r.delete(t),0===r.size&&jL.delete(e)}},r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},dL(kL,4,"additionalRoots",RL,NL,OL),dL(kL,2,"sourceRoot",ML,NL),dL(kL,2,"targetRoot",PL,NL),dL(kL,2,"roots",DL,NL),uL(kL,NL);var FL="data-dnd-",zL=`${FL}dropping`,WL="--dnd-",$L=`${FL}dragging`,HL=`${FL}placeholder`,VL=[$L,HL,"popover","aria-pressed","aria-grabbing"],BL=["view-transition-name"],GL=`\n :is(:root,:host) [${$L}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${WL}top, 0px) !important;\n left: var(${WL}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${WL}width, auto);\n max-width: var(${WL}width, auto);\n height: var(${WL}height, auto);\n max-height: var(${WL}height, auto);\n transition: var(${WL}transition) !important;\n }\n\n :is(:root,:host) [${HL}] {\n transition: none;\n }\n\n :is(:root,:host) [${HL}='hidden'] {\n visibility: hidden;\n }\n\n [${$L}] * {\n pointer-events: none !important;\n }\n\n [${$L}]:not([${zL}]) {\n translate: var(${WL}translate) !important;\n }\n\n [${$L}][style*='${WL}scale'] {\n scale: var(${WL}scale) !important;\n transform-origin: var(${WL}transform-origin) !important;\n }\n\n @layer {\n :where([${$L}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${$L}]::backdrop, [${FL}overlay]:not([${$L}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function UL(e,t="hidden"){return JC((()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${FL}${WR("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach(((e,t)=>{const r=n[t];if(RM(e)&&RM(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),LM(e)&&LM(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}})),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),kM.set(a,i),r.push((()=>{kM.delete(a),n.proxy=void 0}))}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(HL,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function YL(e,t){return e===t||qM(e)===qM(t)}function KL(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&NR(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>sR(t)))}function XL(e){return"TR"===e.tagName}var JL,ZL,QL,eA,tA,rA,nA,oA=250,iA="ease";var aA=class extends(ZL=SD,JL=[aI],ZL){constructor(e,t){super(e,t),mL(this,tA),mL(this,eA,cL(QL,8,this)),cL(QL,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(NL),n=null==r?void 0:r.register(GL);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(vL(this,tA,rA).bind(this,r)),this.registerEffect(vL(this,tA,nA))}};QL=iL(ZL),eA=new WeakMap,tA=new WeakSet,rA=function(e){const{overlay:t}=this;if(!t||!e)return;const r=PM(t);return r?e.addRoot(r):void 0},nA=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=xR(f),m=xR(c),g=!YL(c,f),v=new TR(c,{frameTransform:g?m:null,ignoreTransforms:!g}),y=m.scaleX/h.scaleX,b=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=v;g&&(x/=y,S/=b);const E=new jR(f),{transition:I,translate:D,boxSizing:P,paddingBlockStart:M,paddingBlockEnd:R,paddingInlineStart:L,paddingInlineEnd:A,borderInlineStartWidth:k,borderInlineEndWidth:O,borderBlockStartWidth:q,borderBlockEndWidth:T}=gR(c),_="clone"===d,j="content-box"===P,N=j?parseInt(L)+parseInt(A)+parseInt(k)+parseInt(O):0,F=j?parseInt(M)+parseInt(R)+parseInt(q)+parseInt(T):0,z="move"===d||this.overlay?null:UL(l,_?"clone":"hidden"),W=JC((()=>FR(o.dragOperation.activatorEvent)));if("none"!==D){const e=wR(D);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=JC((()=>s.current));p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:$}=p,H=w*h.scaleY+h.y,V=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:V,y:H},1!==y||1!==b)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=$;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const B=p.coordinates.x-V,G=p.coordinates.y-H,U=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*$.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*$.y,K={x:B/h.scaleX+U,y:G/h.scaleY+Y},X={left:C+K.x,top:w+K.y};f.setAttribute($L,"true");const J=JC((()=>a.transform)),Z=null!=(t=p.translate)?t:{x:0,y:0},Q=J.x*h.scaleX+Z.x,ee=J.y*h.scaleY+Z.y;if(E.set({width:x-N,height:S-F,top:X.top,left:X.left,translate:`${Q}px ${ee}px 0`,transition:I?`${I}, translate 0ms linear`:"",scale:g?`${y} ${b}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},WL),z&&(c.insertAdjacentElement("afterend",z),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let te,re,ne;aR(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),sR(f),f.addEventListener("beforetoggle",KL));const oe=(ie={placeholder:z,element:c,feedbackElement:f,frameTransform:h,transformOrigin:$,width:x,height:S,top:w,left:C,widthOffset:N,heightOffset:F,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>te,getSavedCellWidths:()=>ne,setSavedCellWidths:e=>{ne=e}},new ResizeObserver((()=>{var e,t;const r=new TR(ie.placeholder,{frameTransform:ie.frameTransform,ignoreTransforms:!0}),n=null!=(e=ie.transformOrigin)?e:{x:1,y:1},o=(ie.width-r.width)*n.x+ie.delta.x,i=(ie.height-r.height)*n.y+ie.delta.y;if(ie.styles.set({width:r.width-ie.widthOffset,height:r.height-ie.heightOffset,top:ie.top+i,left:ie.left+o},WL),null==(t=ie.getElementMutationObserver())||t.takeRecords(),XL(ie.element)&&XL(ie.placeholder)){const e=Array.from(ie.element.cells),t=Array.from(ie.placeholder.cells);ie.getSavedCellWidths()||ie.setSavedCellWidths(e.map((e=>e.style.width)));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}ie.dragOperation.shape=new TR(ie.feedbackElement)})));var ie;const ae=new TR(f);JC((()=>a.shape=ae));const se=mM(f),le=e=>{this.manager.actions.stop({event:e})},ue=MM(se);W&&se.addEventListener("resize",le),"idle"===JC((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),z&&(oe.observe(z),te=function(e,t,r){const n=new MutationObserver((n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||VL.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(_R(e)&&_R(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(BL.includes(e)||e.startsWith(WL))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)}));return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,z,_),re=function(e,t,r){const n=new MutationObserver((n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void sR(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void sR(r)}}));return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,z,f));const ce=null==(r=o.dragOperation.source)?void 0:r.id,de=()=>{var e;if(!W||null==ce)return;const t=o.registry.draggables.get(ce),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;vM(r)&&r.focus()},pe=()=>{var e;if(null==te||te.disconnect(),null==re||re.disconnect(),oe.disconnect(),se.removeEventListener("resize",le),aR(f)&&(f.removeEventListener("beforetoggle",KL),f.removeAttribute("popover")),f.removeAttribute($L),E.reset(),ne&&XL(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ne[r])?e:""}l.status="idle";const t=null!=n.current.translate;z&&(t||z.parentElement!==f.parentElement)&&f.isConnected&&z.replaceWith(f),null==z||z.remove()},fe=null==i?void 0:i.dropAnimation,he=uI((()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=JC((()=>a.modifiers)),l=JC((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=W&&!ue?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${I}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},WL),null==te||te.takeRecords(),l&&l!==ae&&i&&!s.length){const e=OI.delta(o,i);a.shape=qI.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new TR(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";let e=n.current.translate;const t=null!=e;if(e||c===f||(e={x:0,y:0}),!e||null===fe)return void pe();o.renderer.rendering.then((()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then((()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}const{duration:a=oA,easing:s=iA}=null!=i?i:{};sR(e.feedbackElement);const[,l]=null!=(t=dM(e.feedbackElement,(e=>"translate"in e)))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:YL(e.feedbackElement,u)?null:void 0},d=new TR(e.feedbackElement,c),p=null!=(n=wR(gR(e.feedbackElement).translate))?n:e.translate,f=new TR(u,c),h=qI.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,v=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},y=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},WL),e.feedbackElement.setAttribute(zL,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),RR({element:e.feedbackElement,keyframes:rL(tL(tL({},v),y),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:MM(mM(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then((()=>{e.feedbackElement.removeAttribute(zL),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}({element:c,feedbackElement:f,placeholder:z,translate:e,moved:t,transition:I,alignment:l.alignment,styles:E,animation:null!=fe?fe:void 0,getElementMutationObserver:()=>te,cleanup:pe,restoreFocus:de})}))}}));return()=>{pe(),he()}},dL(QL,4,"overlay",JL,aA,eA),uL(QL,aA),aA.configure=bD(aA);var sA,lA,uA,cA,dA,pA,fA,hA=aA,mA=!0;uA=[aI],cA=ER.Forward,sA=[aI],lA=ER.Reverse;var gA=class{constructor(){mL(this,pA,cL(dA,8,this,mA)),cL(dA,11,this),mL(this,fA,cL(dA,12,this,mA)),cL(dA,15,this)}isLocked(e){return e!==ER.Idle&&(null==e?this[ER.Forward]===mA&&this[ER.Reverse]===mA:this[e]===mA)}unlock(e){e!==ER.Idle&&(this[e]=false)}};dA=iL(null),pA=new WeakMap,fA=new WeakMap,dL(dA,4,cA,uA,gA,pA),dL(dA,4,lA,sA,gA,fA),uL(dA,gA);var vA,yA,bA,xA,SA,wA,CA=[ER.Forward,ER.Reverse],EA=class{constructor(){this.x=new gA,this.y=new gA}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},IA=class extends SD{constructor(e){super(e);const t=oE(new EA);let r=null;this.signal=t,hE((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new EA);const{delta:o}=e.dragOperation.position;if(r){const e={x:DA(o.x,r.x),y:DA(o.y,r.y)},n=t.peek();KC((()=>{for(const t of HI)for(const r of CA)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function DA(e,t){return Math.sign(e-t)}var PA=class extends(yA=CD,vA=[aI],yA){constructor(e){super(e),mL(this,xA,cL(bA,8,this,!1)),cL(bA,11,this),mL(this,SA),mL(this,wA,(()=>{if(!hL(this,SA))return;const{element:e,by:t}=hL(this,SA);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)})),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return gL(this,SA,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:MA(n.x),y:MA(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=cR(e,n);if(r.x||r.y){const{speed:r,direction:s}=PR(e,o,i);if(a)for(const e of HI)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=hL(this,SA))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return gL(this,SA,{element:e,by:{x:a,y:l}}),pR.schedule(hL(this,wA)),!0}}}}}return gL(this,SA,void 0),!1};let t=null,r=null;const n=oI((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=AM(PM(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=oI((()=>{const t=n.value,{documentElement:o}=bM(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=bR(n,{excludeElement:!1});return r=e,e}}if(t){const e=bR(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),iI);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new IA(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&FR(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function MA(e){return e>0?ER.Forward:e<0?ER.Reverse:ER.Idle}bA=iL(yA),xA=new WeakMap,SA=new WeakMap,wA=new WeakMap,dL(bA,4,"autoScrolling",vA,PA,xA),uL(bA,PA);var RA,LA=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}}((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),AA=class extends SD{constructor(e,t){super(e);const r=e.registry.plugins.get(PA);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=hE((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>LA.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},kA={capture:!0,passive:!0},OA=class extends CD{constructor(e){super(e),mL(this,RA),this.handleScroll=()=>{null==hL(this,RA)&&gL(this,RA,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),gL(this,RA,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=hE((()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,kA),()=>{o.removeEventListener("scroll",this.handleScroll,kA)}}}))}};RA=new WeakMap;function qA(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var TA,_A=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),jA=class extends AP{constructor(e,t){super(e),this.manager=e,this.options=t,mL(this,TA,[]),this.listeners=new OM,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!NR(e.target))return;if(t.disabled)return;const{keyboardCodes:n=_A.keyboardCodes,preventActivation:o=_A.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=hE((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{FR(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}));return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),MR(n);const{center:o}=new TR(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=bM(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];hL(this,TA).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=_A.keyboardCodes}=null!=r?r:{};if(zA(e,[...n.end,...n.cancel])){e.preventDefault();const t=zA(e,n.cancel);this.handleEnd(e,t)}else zA(e,n.up)?this.handleMove("up",e):zA(e,n.down)&&this.handleMove("down",e),zA(e,n.left)?this.handleMove("left",e):zA(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:_A.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(AA);!1===(null==e?void 0:e.disabled)&&(e.disable(),hL(this,TA).push((()=>{e.enable()})))}cleanup(){hL(this,TA).forEach((e=>e())),gL(this,TA,[])}destroy(){this.cleanup(),this.listeners.clear()}};TA=new WeakMap,jA.configure=bD(jA),jA.defaults=_A;var NA,FA=jA;function zA(e,t){return t.includes(e.code)}var WA,$A;NA=new WeakMap;WA=new WeakMap,$A=new WeakMap;var HA=class{};HA.Delay=class extends OP{constructor(){super(...arguments),mL(this,WA),mL(this,$A)}onEvent(e){switch(e.type){case"pointerdown":gL(this,$A,wM(e)),gL(this,WA,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!hL(this,$A))return;const{x:t,y:r}=wM(e);jI({x:t-hL(this,$A).x,y:r-hL(this,$A).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){hL(this,WA)&&(clearTimeout(hL(this,WA)),gL(this,$A,void 0),gL(this,WA,void 0))}},HA.Distance=class extends OP{constructor(){super(...arguments),mL(this,NA)}onEvent(e){switch(e.type){case"pointerdown":gL(this,NA,wM(e));break;case"pointermove":if(!hL(this,NA))return;const{x:t,y:r}=wM(e),n={x:t-hL(this,NA).x,y:r-hL(this,NA).y},{tolerance:o}=this.options;if(o&&jI(n,o))return void this.abort();jI(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){gL(this,NA,void 0)}};var VA,BA=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!NR(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new HA.Delay({value:250,tolerance:5})]:function(e){if(!NR(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new HA.Delay({value:200,tolerance:0})]:[new HA.Delay({value:200,tolerance:10}),new HA.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!NR(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),GA=class extends AP{constructor(e,t){super(e),this.manager=e,this.options=t,mL(this,VA,new Set),this.listeners=new OM,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=BA.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=hE((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=mM(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(JA(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()}));return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!NR(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=BA.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=vM(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=xR(t.element),{x:s,y:l}=wM(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new kP(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=EM(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:i?this.handleCancel:YA,options:{capture:!0}}]);hL(this,VA).add((()=>{p(),this.initialCoordinates=void 0}))}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=wM(e),n=xR(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,pR.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=bM(t.target).body;o.setPointerCapture(t.pointerId);const i=NR(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:YA,options:{passive:!1}},{type:"click",listener:YA},{type:"contextmenu",listener:YA},{type:"keydown",listener:this.handleKeyDown}]);hL(this,VA).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},hL(this,VA).forEach((e=>e())),hL(this,VA).clear()}destroy(){this.cleanup(),this.listeners.clear()}};VA=new WeakMap,GA.configure=bD(GA),GA.defaults=BA;var UA=GA;function YA(e){e.preventDefault()}function KA(){}var XA=new WeakSet;function JA(e){e&&!XA.has(e)&&(e.addEventListener("touchmove",KA,{capture:!1,passive:!1}),XA.add(e))}var ZA,QA,ek,tk,rk,nk,ok,ik,ak,sk,lk,uk,ck,dk,pk,fk,hk,mk,gk={modifiers:[],plugins:[class extends SD{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=xL,announcement:o=SL}={},announcements:i=CL,screenReaderInstructions:a=wL,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:WR(n),u=r?`${o}-${r}`:WR(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>pR.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),v=Object.entries(i).map((([e,t])=>this.manager.monitor.addEventListener(e,((r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,IL.includes(e)?g():(m(),g.cancel()))})))),y=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},b=new Set;function x(){for(const e of b)e()}this.registerEffect((()=>{var e;b.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||b.add(y),EL(r)&&!IM()||r.hasAttribute("tabindex")||b.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||b.add((()=>r.setAttribute("role",yL))),r.hasAttribute("aria-roledescription")||b.add((()=>r.setAttribute("aria-roledescription",bL))),r.hasAttribute("aria-describedby")||b.add((()=>r.setAttribute("aria-describedby",l)));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&b.add((()=>r.setAttribute(e,n)))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&b.add((()=>r.setAttribute("aria-disabled",e)))}}b.size>0&&pR.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach((e=>e()))}}},AA,class extends SD{constructor(e,t){super(e,t),this.manager=e;const r=oI((()=>{var e;return bM(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=hE((()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}}))}},hA,class extends SD{constructor(e,t){super(e,t),this.manager=e,this.destroy=hE((()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),qA(),document.addEventListener("selectionchange",qA,{capture:!0}),()=>{document.removeEventListener("selectionchange",qA,{capture:!0}),e.remove()}}}))}}],sensors:[UA,FA]},vk=class extends nM{constructor(e={}){const{plugins:t=gk.plugins,sensors:r=gk.sensors,modifiers:n=[]}=e;super(rL(tL({},e),{plugins:[OA,PA,NL,...t],sensors:r,modifiers:n}))}},yk=class extends(tk=MP,ek=[aI],QA=[aI],ZA=[aI],tk){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=oL(r,["element","effects","handle","feedback"]);super(tL({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(xD))?t:[...r.sensors]).map((e=>{const t=e instanceof AP?e:r.registry.register(e.plugin),n=e instanceof AP?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),mL(this,nk,cL(rk,8,this)),cL(rk,11,this),mL(this,ok,cL(rk,12,this)),cL(rk,15,this),mL(this,ik,cL(rk,16,this)),cL(rk,19,this),this.element=n,this.handle=i,this.feedback=a}};rk=iL(tk),nk=new WeakMap,ok=new WeakMap,ik=new WeakMap,dL(rk,4,"handle",ek,yk,nk),dL(rk,4,"element",QA,yk,ok),dL(rk,4,"feedback",ZA,yk,ik),uL(rk,yk);var bk=class extends(lk=RP,sk=[aI],ak=[aI],lk){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=oL(r,["element","effects"]);const{collisionDetector:a=$R}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new TR(r),o=JC((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=oE(!1);super(rL(tL({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new iR(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),mL(this,hk),mL(this,ck,cL(uk,8,this)),cL(uk,11,this),mL(this,mk,cL(uk,12,this)),cL(uk,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){gL(this,hk,e,fk)}get element(){var e;return null!=(e=this.proxy)?e:hL(this,hk,pk)}};function xk(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}uk=iL(lk),ck=new WeakMap,hk=new WeakSet,mk=new WeakMap,dk=dL(uk,20,"#element",sk,hk,ck),pk=dk.get,fk=dk.set,dL(uk,4,"proxy",ak,bk,mk),uL(uk,bk);var Sk="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?g:d;function wk(){const e=m(0)[1];return f((()=>{e((e=>e+1))}),[e])}function Ck(e,t=[],r=!1){const n=l(e);return n.current=e,function(e,t=!1){const r=l(e.peek()),n=l(!1),o=wk();return Sk((()=>hE((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?D(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(v((()=>oI((()=>n.current()))),t),r)}function Ek(e,t){const r=l(new Map),n=wk();return Sk((()=>{if(e)return hE((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=JC((()=>n[1])),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?D(n):n())}));r.current.clear()}),[e]),v((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function Ik(e,t){e()}function Dk(e){const t=l(e);return Sk((()=>{t.current=e}),[e]),t}function Pk(e,t,r=d,n=Object.is){const o=l(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function Mk(e,t){const r=l(xk(e));Sk((()=>{const n=xk(e);n!==r.current&&(r.current=n,t(n))}))}var Rk=Object.defineProperty,Lk=Object.defineProperties,Ak=Object.getOwnPropertyDescriptors,kk=Object.getOwnPropertySymbols,Ok=Object.prototype.hasOwnProperty,qk=Object.prototype.propertyIsEnumerable,Tk=(e,t,r)=>t in e?Rk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_k=new vk,jk=u(_k),Nk=b(x((({children:e},t)=>{const[r,n]=m(0),o=l(null),i=l(null),a=v((()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise((e=>{i.current=e}))),S((()=>{e(),n((e=>e+1))}))}})),[]);return Sk((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),w(t,(()=>a)),null}))),Fk=[void 0,iI];function zk(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:u}=t,c=((e,t)=>{var r={};for(var n in e)Ok.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&kk)for(var n of kk(e))t.indexOf(n)<0&&qk.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const p=l(null),{plugins:f,modifiers:h,sensors:m}=c,g=Dk(o),v=Dk(i),b=Dk(s),x=Dk(a),S=Dk(u),w=Dk(n),C=function(e){const t=l(null);t.current||(t.current=e());return y((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=c.manager)?e:new vk(c)}));return d((()=>{if(!p.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=p.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=g.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)})),r.addEventListener("dragover",(e=>{const r=b.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragmove",(e=>{const r=x.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragend",(e=>{const r=S.current;r&&t((()=>r(e,C)))})),r.addEventListener("collision",(e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)}))];return()=>n.forEach((e=>e()))}),[C]),Pk(f,(()=>C&&(C.plugins=null!=f?f:gk.plugins)),...Fk),Pk(m,(()=>C&&(C.sensors=null!=m?m:gk.sensors)),...Fk),Pk(h,(()=>C&&(C.modifiers=null!=h?h:gk.modifiers)),...Fk),ii.jsxs(jk.Provider,{value:C,children:[ii.jsx(Nk,{ref:p,children:r}),r]})}function Wk(){return h(jk)}function $k(e){var t;const r=null!=(t=Wk())?t:void 0,[n]=m((()=>e(r)));return n.manager!==r&&(n.manager=r),Sk(n.register,[r,n]),n}function Hk({children:e,className:t,style:r,tag:o,disabled:i}){var a;const s=l(null),u=Wk(),c=null!=(a=Ck((()=>null==u?void 0:u.dragOperation.source),[u]).value)?a:null,p="function"==typeof i?i(c):i;d((()=>{if(!s.current||!u||p)return;const e=u.plugins.find((e=>e instanceof hA));return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0}),[u,p]);const f=v((()=>{if(!u)return null;const e=new Proxy(u.registry,{get:(e,t)=>"register"===t||"unregister"===t?Vk:e[t]});return new Proxy(u,{get:(t,r)=>"registry"===r?e:t[r]})}),[u]);return ii.jsx(jk.Provider,{value:f,children:n(o||"div",{ref:s,className:t,style:r,"data-dnd-overlay":!0},function(){if(!c||p)return null;if("function"==typeof e)return ii.jsx(Bk,{source:c,children:e});return e}())})}function Vk(){return()=>{}}function Bk({children:e,source:t}){return e(Ek(t))}var Gk,Uk,Yk,Kk,Xk,Jk=Object.create,Zk=Object.defineProperty,Qk=Object.getOwnPropertyDescriptor,eO=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),tO=e=>{throw TypeError(e)},rO=["class","method","getter","setter","accessor","field","value","get","set"],nO=e=>void 0!==e&&"function"!=typeof e?tO("Function expected"):e,oO=(e,t,r,n,o)=>({kind:rO[e],name:t,metadata:n,addInitializer:e=>r._?tO("Already initialized"):o.push(nO(e||null))}),iO=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=rO[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,Qk(o,r)),h=n.length-1;h>=0;h--)(l=oO(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,nO(a)&&(f[d]=a);return f&&Zk(o,r,f),o},aO=(e,t,r)=>t.has(e)||tO("Cannot "+r),sO=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},lO=class extends(Yk=dI,Uk=[sI],Gk=[sI],Yk){constructor(e){var t,r,n;super(sO.from(e),((e,t)=>sO.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(Xk,5,this),t=this,n=0,(r=Kk).has(t)?tO("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return sO.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=sO.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(aO(a=this,s=Kk,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);KC((()=>{((e,t,r)=>{aO(e,t,"write to private field"),t.set(e,r)})(this,Kk,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(sO.from(e)),this.velocity={x:0,y:0}}};Xk=(e=>{var t;return[,,,Jk(null!=(t=null==e?void 0:e[eO("metadata")])?t:null)]})(Yk),Kk=new WeakMap,iO(Xk,2,"delta",Uk,lO),iO(Xk,2,"direction",Gk,lO),((e,t)=>{((e,t,r)=>{t in e?Zk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,eO("metadata"),e[3])})(Xk,lO);var uO=(e=>(e.Horizontal="x",e.Vertical="y",e))(uO||{});Object.values(uO);var cO=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/sO.distance(t.shape.center,r),type:VD.PointerIntersection,priority:HD.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=sO.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:VD.ShapeIntersection,priority:HD.Normal}}return null})(e)};function dO(e){const{collisionDetector:t,data:r,disabled:n,element:o,id:i,accept:a,type:s}=e,l=$k((t=>new bk(((e,t)=>Lk(e,Ak(t)))(((e,t)=>{for(var r in t||(t={}))Ok.call(t,r)&&Tk(e,r,t[r]);if(kk)for(var r of kk(t))qk.call(t,r)&&Tk(e,r,t[r]);return e})({},e),{register:!1,element:xk(o)}),t))),u=Ek(l);return Pk(i,(()=>l.id=i)),Mk(o,(e=>l.element=e)),Pk(a,(()=>l.accept=a),void 0,iI),Pk(t,(()=>l.collisionDetector=null!=t?t:cO)),Pk(r,(()=>r&&(l.data=r))),Pk(n,(()=>l.disabled=!0===n)),Pk(s,(()=>l.type=s)),{droppable:u,get isDropTarget(){return u.isDropTarget},ref:f((e=>{var t,r;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(r=l.manager)?void 0:r.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)}),[l])}}const pO=e=>Array.from({length:e},((e,t)=>t)),fO=r.memo((()=>{const e=Mw(NC),{sectionIndex:t,itemIndex:r,id:n}=Mw($C)??{};return e&&"number"==typeof t&&"number"==typeof r&&void 0!==n?ii.jsx(Hk,{children:ii.jsx(_d,{"data-testid":"section-item",sx:{padding:0,background:"rgb(243, 243, 243)",boxShadow:"2px 4px 8px rgba(0, 0, 0, 0.2)",borderRadius:2,marginLeft:"2px",width:"calc(100% - 4px)"},children:ii.jsx(e,{id:n,itemIndex:r,sectionIndex:t})})}):null})),hO=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,mO=r.memo((({sectionIndex:e})=>{const t=Mw(OC)[e],r=Mw(qC),n=Mw(TC),o=null!==Mw($C),i=n(e),a=r({sectionIndex:e}),{ref:s,isDropTarget:l}=dO({id:a,type:"section",accept:"item",collisionPriority:HD.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return!l&&t>0?null:ii.jsxs(Qu,{ref:s,sx:{padding:2,display:"flex",flexDirection:"column",alignItems:"center",border:hO(l,o),borderRadius:"4px",boxSizing:"border-box"},children:[ii.jsx(mu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"bold",fontSize:14},children:i.title}),ii.jsx(mu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:12},children:i.message})]})})),gO=r.memo((({id:e,sectionIndex:t})=>{const r=Mw(FC);return void 0===r?null:ii.jsx(r,{id:e,sectionIndex:t})}));var vO=Object.defineProperty,yO=Object.defineProperties,bO=Object.getOwnPropertyDescriptors,xO=Object.getOwnPropertySymbols,SO=Object.prototype.hasOwnProperty,wO=Object.prototype.propertyIsEnumerable,CO=(e,t,r)=>t in e?vO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,EO=(e,t)=>{for(var r in t||(t={}))SO.call(t,r)&&CO(e,r,t[r]);if(xO)for(var r of xO(t))wO.call(t,r)&&CO(e,r,t[r]);return e},IO=(e,t)=>yO(e,bO(t)),DO=class extends QP{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return IO(EO({},e),{[t]:r})}};DO.configure=bD(DO);var PO=DO,MO=PO.configure({axis:"x",value:0});PO.configure({axis:"y",value:0});var RO=class extends QP{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return IO(EO({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};RO.configure=bD(RO);var LO=Object.create,AO=Object.defineProperty,kO=Object.defineProperties,OO=Object.getOwnPropertyDescriptor,qO=Object.getOwnPropertyDescriptors,TO=Object.getOwnPropertySymbols,_O=Object.prototype.hasOwnProperty,jO=Object.prototype.propertyIsEnumerable,NO=e=>{throw TypeError(e)},FO=(e,t,r)=>t in e?AO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zO=(e,t)=>{for(var r in t||(t={}))_O.call(t,r)&&FO(e,r,t[r]);if(TO)for(var r of TO(t))jO.call(t,r)&&FO(e,r,t[r]);return e},WO=(e,t)=>kO(e,qO(t)),$O=["class","method","getter","setter","accessor","field","value","get","set"],HO=e=>void 0!==e&&"function"!=typeof e?NO("Function expected"):e,VO=(e,t,r,n,o)=>({kind:$O[e],name:t,metadata:n,addInitializer:e=>r._?NO("Already initialized"):o.push(HO(e||null))}),BO=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},GO=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=$O[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,OO({get[r](){return YO(this,i)},set[r](e){return XO(this,i,e)}},r)),v=n.length-1;v>=0;v--)(u=VO(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[v])({get:g.get,set:g.set},u),l._=1,void 0===s?HO(s)&&(g[f]=s):"object"!=typeof s||null===s?NO("Object expected"):(HO(a=s.get)&&(g.get=a),HO(a=s.set)&&(g.set=a),HO(a=s.init)&&h.unshift(a));return g&&AO(o,r,g),o},UO=(e,t,r)=>t.has(e)||NO("Cannot "+r),YO=(e,t,r)=>(UO(e,t,"read from private field"),t.get(e)),KO=(e,t,r)=>t.has(e)?NO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),XO=(e,t,r,n)=>(UO(e,t,"write to private field"),t.set(e,r),r);function JO(e){return e instanceof Dq||e instanceof Iq}var ZO=Object.defineProperty,QO=Object.defineProperties,eq=Object.getOwnPropertyDescriptors,tq=Object.getOwnPropertySymbols,rq=Object.prototype.hasOwnProperty,nq=Object.prototype.propertyIsEnumerable,oq=(e,t,r)=>t in e?ZO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iq=(e,t)=>{for(var r in t||(t={}))rq.call(t,r)&&oq(e,r,t[r]);if(tq)for(var r of tq(t))nq.call(t,r)&&oq(e,r,t[r]);return e},aq=(e,t)=>QO(e,eq(t));function sq(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function lq(e,t){return function(e,t,r){var n,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const t=e.findIndex((e=>l(e,i.id))),n=e.findIndex((e=>l(e,a.id)));if(-1===t||-1===n)return e;if(!s&&"index"in i&&"number"==typeof i.index){const n=i.index;if(n!==t)return r(e,t,n)}return r(e,t,n)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex((e=>l(e,i.id))),-1!==p&&(c=e)),-1===f&&(f=t.findIndex((e=>l(e,a.id))),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(n=h.shape)?void 0:n.current.center)?o:h.position.current;if(null==d&&a.id in e){const t=a.shape&&m.y>a.shape.center.y?e[a.id].length:0;d=a.id,f=t}if(null==c||null==d||c===d&&p===f)return"preventDefault"in t&&t.preventDefault(),e;if(c===d)return aq(iq({},e),{[c]:r(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,v=e[c][p];return aq(iq({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),v,...e[d].slice(f+g)]})}(e,t,sq)}var uq="__default__";function cq(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function dq(e,t){return e.index-t.index}function pq(e){return Array.from(e).sort(dq)}var fq,hq,mq,gq,vq,yq,bq,xq,Sq=[class extends SD{constructor(e){super(e);const t=hE((()=>{const{dragOperation:t}=e;if(FR(t.activatorEvent)&&JO(t.source)&&t.status.initialized){const t=e.registry.plugins.get(PA);if(t)return t.disable(),()=>t.enable()}})),r=e.monitor.addEventListener("dragmove",((e,t)=>{queueMicrotask((()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!FR(e.nativeEvent))return;if(!JO(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];KC((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&JO(e)||!e.element)continue;let r=e.shape;const n=new TR(e.element,{getBoundingClientRect:e=>SM(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push((()=>e.shape=r))))}})),e.preventDefault(),o.disable();const f=o.computeCollisions(d,HR);KC((()=>p.forEach((e=>e()))));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:v}=l.sortable;n.setDropTarget(m).then((()=>{const{source:e,target:t,shape:i}=r;if(!e||!JO(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||v!==s,c=u?l:null==t?void 0:t.element;if(!c)return;MR(c);const d=new TR(c);if(!d)return;const p=qI.delta(d,qI.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then((()=>o.enable())):o.enable()}))}))}));this.destroy=()=>{r(),t()}}},class extends SD{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof Dq){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(pq(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!JO(o)||!JO(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask((()=>{e.defaultPrevented||r.renderer.rendering.then((()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=pq(l),g=s?m:pq(u),v=null!=(c=o.sortable.group)?c:uq,y=null!=(d=i.sortable.group)?d:uq,b={[v]:m,[y]:g},x=lq(b,e);if(b===x)return;const S=x[y].indexOf(o.sortable),w=x[y].indexOf(i.sortable);r.collisionObserver.disable(),cq(f,S,h,w),KC((()=>{for(const[e,t]of x[v].entries())t.index=e;if(!s)for(const[e,t]of x[y].entries())t.group=i.sortable.group,t.index=e})),r.actions.setDropTarget(o.id).then((()=>r.collisionObserver.enable()))}))}))})),e.monitor.addEventListener("dragend",((e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;JO(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask((()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=pq(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(cq(r,i.index,a,o.index),KC((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}})))}))})))}))];this.destroy=()=>{for(const e of r)e()}}}],wq={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},Cq=new class{constructor(){tI(this,cI,new WeakMap)}get(e,t){var r;return e?null==(r=eI(this,cI).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return eI(this,cI).has(e)||eI(this,cI).set(e,new Map),null==(n=eI(this,cI).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=eI(this,cI).get(e))?void 0:t.clear():void 0}};hq=[aI],fq=[aI];var Eq=class{constructor(e,t){KO(this,gq,BO(mq,8,this)),BO(mq,11,this),KO(this,vq),KO(this,yq),KO(this,bq,BO(mq,12,this)),BO(mq,15,this),KO(this,xq),this.register=()=>(KC((()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)})),()=>this.unregister()),this.unregister=()=>{KC((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{KC((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=wq,plugins:u=Sq}=r,c=((e,t)=>{var r={};for(var n in e)_O.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&TO)for(var n of TO(e))t.indexOf(n)<0&&jO.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new Dq(c,t,this),this.draggable=new Iq(WO(zO({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&Cq.clear(this.manager),(null==n?void 0:n.dragging)&&Cq.set(this.manager,this.id,JC((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=YO(this,yq),o=YO(this,vq);e===n&&t===o||(XO(this,yq,e),XO(this,vq,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),XO(this,xq,c.element),this.manager=t,this.index=i,XO(this,yq,i),this.group=o,XO(this,vq,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=Cq.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=Cq.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){JC((()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then((()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=gR(n),l=LR(n,s,!1),u=LR(n,s);if(i||a){const r=MM(mM(n))?WO(zO({},t),{duration:0}):t;RR({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}}))}))}get manager(){return this.draggable.manager}set manager(e){KC((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){KC((()=>{const t=YO(this,xq),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),XO(this,xq,e)}))}get element(){var e,t;const r=YO(this,xq);if(r)return null!=(t=null!=(e=kM.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){KC((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){KC((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){KC((()=>{this.droppable.id=e,this.draggable.id=e}))}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:$R}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){KC((()=>{this.droppable.type=e,this.draggable.type=e}))}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};mq=[,,,LO(null)],gq=new WeakMap,vq=new WeakMap,yq=new WeakMap,bq=new WeakMap,xq=new WeakMap,GO(mq,4,"index",hq,Eq,gq),GO(mq,4,"group",fq,Eq,bq),((e,t)=>{return FO(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(mq,Eq);var Iq=class extends yk{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},Dq=class extends bk{constructor(e,t,r){super(e,t),this.sortable=r}},Pq=Object.defineProperty,Mq=Object.defineProperties,Rq=Object.getOwnPropertyDescriptors,Lq=Object.getOwnPropertySymbols,Aq=Object.prototype.hasOwnProperty,kq=Object.prototype.propertyIsEnumerable,Oq=(e,t,r)=>t in e?Pq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qq=(e,t)=>{for(var r in t||(t={}))Aq.call(t,r)&&Oq(e,r,t[r]);if(Lq)for(var r of Lq(t))kq.call(t,r)&&Oq(e,r,t[r]);return e};function Tq(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:h,target:m,type:g}=e,v=qq(qq({},wq),e.transition),y=$k((t=>new Eq(((e,t)=>Mq(e,Rq(t)))(qq({},e),{transition:v,register:!1,handle:xk(s),element:xk(a),target:xk(m),feedback:d}),t))),b=Ek(y,_q);return Pk(o,(()=>y.id=o)),Sk((()=>{KC((()=>{y.group=u,y.index=l}))}),[y,u,l]),Pk(g,(()=>y.type=g)),Pk(t,(()=>y.accept=t),void 0,iI),Pk(i,(()=>i&&(y.data=i))),Pk(l,(()=>{var e;(null==(e=y.manager)?void 0:e.dragOperation.status.idle)&&(null==v?void 0:v.idle)&&y.refreshShape()}),Ik),Mk(s,(e=>y.handle=e)),Mk(a,(e=>y.element=e)),Mk(m,(e=>y.target=e)),Pk(c,(()=>y.disabled=!0===c)),Pk(h,(()=>y.sensors=h)),Pk(r,(()=>y.collisionDetector=r)),Pk(n,(()=>y.collisionPriority=n)),Pk(d,(()=>y.feedback=null!=d?d:"default")),Pk(v,(()=>y.transition=v),void 0,iI),Pk(p,(()=>y.modifiers=p),void 0,iI),Pk(e.alignment,(()=>y.alignment=e.alignment)),{sortable:b,get isDragging(){return b.isDragging},get isDropping(){return b.isDropping},get isDragSource(){return b.isDragSource},get isDropTarget(){return b.isDropTarget},handleRef:f((e=>{y.handle=null!=e?e:void 0}),[y]),ref:f((e=>{var t,r;(e||!(null==(t=y.element)?void 0:t.isConnected)||(null==(r=y.manager)?void 0:r.dragOperation.status.idle))&&(y.element=null!=e?e:void 0)}),[y]),sourceRef:f((e=>{var t,r;(e||!(null==(t=y.source)?void 0:t.isConnected)||(null==(r=y.manager)?void 0:r.dragOperation.status.idle))&&(y.source=null!=e?e:void 0)}),[y]),targetRef:f((e=>{var t,r;(e||!(null==(t=y.target)?void 0:t.isConnected)||(null==(r=y.manager)?void 0:r.dragOperation.status.idle))&&(y.target=null!=e?e:void 0)}),[y])}}function _q(e,t,r){return!("isDragSource"!==e||r||!t)}const jq=({id:e,itemIndex:t,sectionIndex:r})=>ii.jsx("div",{children:`${r}:${t} - ${e}`}),Nq=({id:e,itemIndex:t,sectionIndex:r})=>{const n=Mw(zC),o=Mw(NC),i=Mw(qC)({sectionIndex:r}),{ref:a,isDragging:s}=Tq({id:e,index:t,type:"item",accept:"item",group:i,modifiers:[MO],data:{id:e,sectionIndex:r,sectionKey:i,itemIndex:t}}),l=void 0!==n?()=>{n({id:e,itemIndex:t,sectionIndex:r})}:void 0,u=o??jq;return ii.jsx(_d,{"data-testid":"section-item",onClick:l,ref:a,"data-dragging":s,sx:{padding:0},style:{opacity:s?0:1},children:ii.jsx(u,{id:e,itemIndex:t,sectionIndex:r})})},Fq=r.memo(Nq),zq=r.memo((({sectionIndex:e})=>{const t=Mw(qC),r=Mw(OC).at(e)??0,n=t({sectionIndex:e});return ii.jsxs(Qu,{className:"exploration-list",style:{overflow:"auto"},children:[ii.jsx(Uc,{}),ii.jsx(gO,{id:n,sectionIndex:e}),ii.jsx(Uc,{}),ii.jsx(mO,{sectionIndex:e}),ii.jsx(Ed,{sx:{padding:0},children:pO(r).map((r=>{const n=t({sectionIndex:e,itemIndex:r});return ii.jsx(Fq,{id:n,itemIndex:r,sectionIndex:e},n)}))})]},n)})),Wq=r.memo((()=>{const e=Mw(kC),t=Mw(qC),r=Rw(HC("start")),n=Rw(HC("over")),o=Rw(HC("end"));return ii.jsxs(zk,{onDragEnd:o,onDragOver:e>1?n:void 0,onDragStart:r,children:[ii.jsx(Qu,{style:{display:"flex",flexDirection:"column"},children:pO(e).map((e=>ii.jsx(zq,{sectionIndex:e},t({sectionIndex:e}))))}),ii.jsx(fO,{})]})})),$q=r.memo((e=>ii.jsx(RC,{atoms:VC,atomFamilies:BC,children:ii.jsx(GC,{props:e,children:ii.jsx(Wq,{})})})));var Hq=Object.defineProperty,Vq=Object.defineProperties,Bq=Object.getOwnPropertyDescriptors,Gq=Object.getOwnPropertySymbols,Uq=Object.prototype.hasOwnProperty,Yq=Object.prototype.propertyIsEnumerable,Kq=(e,t,r)=>t in e?Hq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xq=(e,t)=>{for(var r in t||(t={}))Uq.call(t,r)&&Kq(e,r,t[r]);if(Gq)for(var r of Gq(t))Yq.call(t,r)&&Kq(e,r,t[r]);return e},Jq=(e,t)=>Vq(e,Bq(t));function Zq(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function Qq(e,t){return function(e,t,r){var n,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const t=e.findIndex((e=>l(e,i.id))),n=e.findIndex((e=>l(e,a.id)));if(-1===t||-1===n)return e;if(!s&&"index"in i&&"number"==typeof i.index){const n=i.index;if(n!==t)return r(e,t,n)}return r(e,t,n)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex((e=>l(e,i.id))),-1!==p&&(c=e)),-1===f&&(f=t.findIndex((e=>l(e,a.id))),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(n=h.shape)?void 0:n.current.center)?o:h.position.current;if(null==d&&a.id in e){const t=a.shape&&m.y>a.shape.center.y?e[a.id].length:0;d=a.id,f=t}if(null==c||null==d||c===d&&p===f)return"preventDefault"in t&&t.preventDefault(),e;if(c===d)return Jq(Xq({},e),{[c]:r(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,v=e[c][p];return Jq(Xq({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),v,...e[d].slice(f+g)]})}(e,t,Zq)}const eT="12px",tT="nebula-table-utils-head-menu-button",rT="sn-copy-cell";let nT=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const oT="nebula-table-utils-column-adjuster";let iT=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),aT=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const sT={darker:.15,brighter:.3,opacity:.03},lT={darker:.3,brighter:.5,opacity:.05};let uT=function(e){return e.Cyclic="C",e}({});const cT=(e,t)=>{const r=new Map;for(const t of e)r.set(t.id,t);return t.reduce(((e,t)=>{const n=r.get(t);return n&&e.push(n),e}),[])},dT=kw((e=>gw((t=>{const r=t(oC),n=t(Gw),o=t(tC)?.[e],i=r?.qHyperCube.rankedList?.[e];return o||(n?.isRankedListCorrupt(e)||void 0===i?n?.createRankedList(e):i)})))),pT=(e,t=new Set)=>gw((r=>{const n=r(e),o=r(mC);if(!n||0===n.length)return"disabled";const i=n.filter((e=>!t.has(e.id)));if(0===i.length)return"disabled";const a=i.filter((e=>o.has(e.id))).length;return 0===a?"none":a===i.length?"all":"some"})),fT=(e,t=new Set)=>gw(null,((r,n,o)=>{const i=r(e);i&&0!==i.length&&(e=>{const{items:t,shouldCheckAll:r,get:n,set:o,excludedIds:i}=e,a=t.filter((e=>!i?.has(e.id)));if(0===a.length)return;const s=n(mC),l=new Set,u=new Set;if(a.forEach((e=>{const t=s.has(e.id);t&&!r&&u.add(e.id),!t&&r&&l.add(e.id)})),0!==l.size||0!==u.size){if(l.size>0){const e=new Set(n(dC));l.forEach((t=>e.add(t))),o(dC,e)}if(u.size>0){const e=new Set(n(pC));u.forEach((t=>e.add(t))),o(pC,e)}Vw({type:"apply",localChecked:l,localUnchecked:u,handler:n(Gw),model:n(Bw),fieldInfo:n(uC)})}})({items:i,shouldCheckAll:o,get:r,set:n,excludedIds:t})})),hT=gw((e=>{const t=e(iC);return t?.qHyperCube.qDimensionInfo.filter(Jw).map((({cId:e,qFallbackTitle:t})=>({id:e,title:t,alternative:!0})))})),mT=gw((e=>{const t=e(oC),r=e(Yw),n=t?.qHyperCube.qEffectiveInterColumnSortOrder.map((e=>{if(-1===e)return{id:-1,title:r("Common.Values")};const{cId:n,qFallbackTitle:o}=t.qHyperCube.qDimensionInfo[e];return{id:n,title:o}}));return n})),gT=gw((e=>{const t=e(Yw),r=e(hT),n=e(Xw),o=e(dT("columns")),i=e(dT("rows")),a=e(mT);if(void 0===r||void 0===o||void 0===i||void 0===a)return[];const s=[...a,...r].filter(n);return[{id:"rows",title:t("Common.Rows"),items:cT(s,i)},{id:"columns",title:t("Common.Columns"),items:cT(s,o)}]})),vT=kw((e=>gw((t=>t(gT).at(e))))),yT=kw((({sectionIndex:e,itemIndex:t})=>gw((r=>r(vT(e))?.items.at(t)?.title))),((e,t)=>e.sectionIndex===t.sectionIndex&&e.itemIndex===t.itemIndex)),bT=kw((e=>gw((t=>t(vT(e))?.title)))),xT=gw((e=>({sectionIndex:t,itemIndex:r})=>{const n=e(vT(t));return void 0===n?0===t?"rows":"columns":void 0===r?n.id:n.items.at(r)?.id??`missing-item-${t}-${r}`})),ST=gw((e=>e(gT).map((e=>e.items.length)))),wT=kw((e=>pT(gw((t=>t(vT(e))?.items)),new Set([-1])))),CT=kw((e=>fT(gw((t=>t(vT(e))?.items)),new Set([-1])))),ET=gw(null,((e,t,{event:r})=>{const n=e(dT("rows")),o=e(dT("columns"));if(void 0===n||void 0===o)return;if("section"===r.operation.target?.type)return;const i=Qq({rows:n,columns:o},r);t(tC,i)})),IT=gw(null,(async(e,t,{event:r,id:n,toIndex:o,toSection:i,startSection:a})=>{const s=e(Gw),l=e(Bw),u=e(dT("rows")),c=e(dT("columns")),d=i;if(void 0!==s&&void 0!==l&&void 0!==u&&void 0!==c)if(r.operation.canceled)t(tC,null);else{if("section"===r.operation.target?.type){if(a===i)return void t(tC,null);const e=Qq({rows:u,columns:c},r);t(tC,e)}"number"==typeof n?await s.movePseudoDimension({toIndex:o,toSection:d}):await s.moveDimension({cId:n,toIndex:o,toSection:d}),await l.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(s.properties.qHyperCubeDef)}],!0)}})),DT={noItems:{row:"ChartExploration.PivotTable.RowSectionEmpty.Title",column:"ChartExploration.PivotTable.ColumnSectionEmpty.Title",measure:"ChartExploration.PivotTable.MeasureSectionEmpty.Title"},noSearchFound:{row:"ChartExploration.PivotTable.NoRowsFound.Title",column:"ChartExploration.PivotTable.NoColumnsFound.Title",measure:"ChartExploration.PivotTable.NoMeasuresFound.Title"}},PT="ChartExploration.PivotTable.DimensionSectionEmpty.Message",MT="ChartExploration.PivotTable.MeasureSectionEmpty.Message",RT="#177fe6",LT=(e,t,r,n)=>{if("measure"===t)return e(n?DT.noSearchFound.measure:DT.noItems.measure);const o=n?DT.noSearchFound:DT.noItems;return e(r?o.row:o.column)},AT=(e,t,r)=>r?"":e("measure"===t?MT:PT),kT=kw((e=>gw((t=>{const r=t(Yw),n=t(Kw).length>0;return t=>({title:LT(r,e,0===t,n),message:AT(r,e,n)})})))),OT=kT("measure"),qT=kT("dimensions"),TT=gw((e=>{const t=e(iC);return t?.qHyperCube.qMeasureInfo.filter(Jw).map((({cId:e,qFallbackTitle:t})=>({id:e,title:t})))})),_T=gw((e=>{const t=e(oC),r=e(TT),n=e(Xw),o=e(dT("measures"));if(void 0===t||void 0===r||void 0===o)return[];const i=t.qHyperCube.qMeasureInfo.filter(Jw).map((({cId:e,qFallbackTitle:t})=>({id:e,title:t})));i.push(...r);const a=i.filter(n);return cT(a,o)})),jT=kw((e=>gw((t=>t(_T).at(e)?.title??"")))),NT=gw((e=>({itemIndex:t})=>{const r=e(_T);return void 0===t?"measures":r.at(t)?.id??`missing-item-${t}`})),FT=gw((e=>[e(_T).length])),zT=pT(_T),WT=fT(_T),$T=gw(null,(async(e,t,{id:r,toIndex:n})=>{const o=e(Gw),i=e(Bw);void 0!==o&&void 0!==i&&"string"==typeof r&&(await o.moveMeasure({cId:r,toIndex:n}),await i.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(o.properties.qHyperCubeDef)}],!0))})),HT=({children:e})=>ii.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold",paddingLeft:4},children:e}),VT=({children:e,sectionIndex:t})=>{const r=Mw(void 0!==t?wT(t):zT),n=Rw(void 0!==t?CT(t):WT);return ii.jsxs(Qu,{style:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box"},children:[ii.jsx(Ic,{disabled:"disabled"===r,checked:"all"===r,indeterminate:"some"===r,onChange:e=>{n(e.target.checked)},size:"small",style:{flexShrink:0,padding:9}}),ii.jsx(HT,{children:e})]})},BT=({sectionIndex:e})=>{const t=Mw(bT(e));return ii.jsx(VT,{sectionIndex:e,children:t})},GT=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})}))),UT=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})}))),YT=fl("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),KT=fl(UT)((()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${RT} inset`}}))),XT=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,JT=(e,t)=>{const r=e.closest(".exploration-list"),n=r?.nextElementSibling||r?.parentElement?.nextElementSibling;return n?n.getElementsByClassName(t)[0]:e.closest(".exploration-panel")?.getElementsByClassName(t)[0]},ZT=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},QT=e=>{const t=e.key===nT.Down?(e=>{const{currentTarget:t}=e,r=XT(t),n=t.closest("li"),o=n?.nextElementSibling?.getElementsByClassName(r)[0];return o||JT(t,r)})(e):(e=>{const{currentTarget:t}=e,r=XT(t),n=t.closest("li"),o=n?.previousElementSibling?.getElementsByClassName(r)[0];return o||((e,t)=>{const r=e.closest(".exploration-list"),n=r?.previousElementSibling||r?.parentElement?.parentElement?.previousElementSibling;if(!n){const r=e.closest(".exploration-panel")?.getElementsByClassName(t).length||0;return r>0?e.closest(".exploration-panel")?.getElementsByClassName(t)[r-1]:null}const o=n.getElementsByTagName("li").length;return n.getElementsByClassName(t)[o-1]})(t,r)})(e);t&&ZT(t)},e_=(e,t)=>{const{key:r}=e;switch(e.preventDefault(),r){case nT.Tab:((e,t)=>{const{currentTarget:r}=e;if(r!==t.items.explorationItemFocusRef.current){if(r===t.items.draggableIconRef.current){const e=r.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const r=e&&e[t.itemIndex+1];return void(r&&ZT(r))}const n=JT(r,"exploration-item-focus");n&&ZT(n)}}else{const e=r.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];e&&ZT(e)}})(e,t);break;case nT.Down:case nT.Up:e.stopPropagation(),QT(e);break;case nT.Enter:case nT.Space:e.stopPropagation(),((e,t)=>{const{currentTarget:r}=e;if(r!==t.items.draggableIconRef.current)if(r!==t.items.explorationItemRef.current)r===t.items.explorationItemFocusRef.current&&t.toggleCheckedById(t.id);else{const e=r.getElementsByClassName("exploration-draggable-icon")[0];ZT(e)}else{const e=r.closest("li")?.getElementsByClassName("exploration-item")[0];e&&ZT(e)}})(e,t)}},t_=({children:e})=>ii.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1,paddingLeft:4},children:e}),r_=({icon:e,title:t,...n})=>{const[o,i]=Lw(mC),a=Mw(Yw),s=r.useRef(null),l=r.useRef(null),u=r.useRef(null),c={id:n.id,itemIndex:n.itemIndex,toggleCheckedById:i,items:{explorationItemRef:s,explorationItemFocusRef:l,draggableIconRef:u}};return ii.jsxs(Qu,{ref:s,className:"exploration-item",onClick:e=>{e.stopPropagation(),i(n.id)},onKeyDown:e=>{e_(e,c)},tabIndex:-1,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:"2px 8px 2px 8px",boxSizing:"border-box"},title:t,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${RT} inset`}},children:[ii.jsxs(Qu,{ref:l,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDown:e=>{e_(e,c)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${RT} inset`}},children:[ii.jsx(Ic,{checked:o.has(n.id),"aria-label":a("ChartExploration.ListItem.Label",t),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0,visibility:-1===n.id?"hidden":"visible"}}),ii.jsx(e,{height:"12px",style:{flexShrink:0}}),ii.jsx(t_,{children:t})]}),ii.jsx(KT,{ref:u,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onKeyDown:e=>{e_(e,c)}})]})},n_=e=>{const t=Mw(yT(e))??"";return ii.jsx(r_,{title:t,icon:GT,...e})},o_=()=>{const e=Mw(xT),t=Mw(ST),r=Mw(qT),n=Rw(IT),o=Rw(ET);return ii.jsxs($q,{numberOfSections:2,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:r,onDragEnd:n,onDragOver:o,children:[BT,n_]})},i_=()=>{const e=Mw(Yw);return ii.jsx(VT,{children:e("Common.Values")})},a_=x(((e,t)=>ii.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[ii.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),ii.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]}))),s_=e=>{const{itemIndex:t}=e,r=Mw(jT(t));return ii.jsx(r_,{title:r,icon:a_,...e})},l_=()=>{const e=Mw(NT),t=Mw(FT),r=Mw(OT),n=Rw($T);return ii.jsx(Qu,{style:{height:"100%",display:"flex",flexDirection:"column-reverse"},children:ii.jsxs($q,{numberOfSections:1,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:r,onDragEnd:n,children:[i_,s_]})})},u_=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6 6 0 0 1-1.413 1.415"})}))),c_=()=>{const[e,t]=Lw(Kw),r=Mw(Yw),[n]=Mw(FT),[o=0,i=0]=Mw(ST),a=f((e=>{t(e.target.value)}),[t]),s=0===e.length||0===o&&0===i&&0===n?r("Common.Search.NoResultsAvailable"):r("ChartExploration.Pivot.Search.ResultsFound",o.toString(),i.toString(),n.toString());return ii.jsxs(Qu,{style:{position:"sticky",top:0,zIndex:10,width:"calc(100% - 16px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:2,paddingRight:8,paddingLeft:8,paddingBottom:8},children:[ii.jsx(YT,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:s}),ii.jsx(_p,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":r("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:r("Common.Search"),onChange:a,startAdornment:ii.jsx(pd,{position:"start",children:ii.jsx(u_,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},d_=e=>{const t=((e="light",t=!1)=>Ls(If(0,t)))();return ii.jsx(ml,{theme:t,children:ii.jsx(ww,{children:ii.jsx(gC,{props:e,children:ii.jsxs(Qu,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[ii.jsx(c_,{}),ii.jsx(o_,{}),ii.jsx(l_,{})]})})})})},p_=e=>{if(e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{component:d_,classification:{tags:["exploration"],exclusive:!0}}},f_=[];for(let e=0;e<256;++e)f_.push((e+256).toString(16).slice(1));let h_;const m_=new Uint8Array(16);var g_={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function v_(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!h_){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");h_=crypto.getRandomValues.bind(crypto)}return h_(m_)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(f_[e[t+0]]+f_[e[t+1]]+f_[e[t+2]]+f_[e[t+3]]+"-"+f_[e[t+4]]+f_[e[t+5]]+"-"+f_[e[t+6]]+f_[e[t+7]]+"-"+f_[e[t+8]]+f_[e[t+9]]+"-"+f_[e[t+10]]+f_[e[t+11]]+f_[e[t+12]]+f_[e[t+13]]+f_[e[t+14]]+f_[e[t+15]]).toLowerCase()}(n)}const y_=()=>crypto?.randomUUID?.()??function(e){return g_.randomUUID&&!e?g_.randomUUID():v_(e)}(),b_=1e3,x_=1e3,S_=e=>{if(0===e.qInterColumnSortOrder.length)return;const t=e.qDimensions,r=((e,t)=>{const r=new Set;for(const t of e){if(r.has(t))return!0;r.add(t)}const n=e.includes(-1),o=e.filter((e=>-1!==e));if(t){const r=n?t.length+1:t.length;if(e.length!==r)return!0}const i=[...o].sort(((e,t)=>e-t));for(let e=0;e<i.length;e++)if(i[e]!==e)return!0;return!1})(e.qInterColumnSortOrder,t);r&&(e.qInterColumnSortOrder=((e,t)=>{const r=[];if(t)for(let e=0;e<t.length;e++)r.push(e);return e.qMeasures.length>=2&&r.push(-1),r})(e,t))},w_=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]},C_=e=>{if(!e)return;S_(e);const t=e.qDimensions,{qInterColumnSortOrder:r}=e;((e,t=[])=>{const r=t.filter((e=>-1!==e));for(let n=0;n<r.length;n++)if(-1!==r[n]&&r[n]!==n){const o=r[n],i=r.indexOf(n),a=r[i];w_(r,n,i),w_(e,n,i),w_(t,t.indexOf(o),t.indexOf(a))}})(t,r)},E_=(e,t,r)=>{t&&(t.splice(r||0,1),t.push(e),t.splice((r||-1)+1,0,-1))},I_=(e,t,r,n)=>{const o=-1===e?t.length:e;if("number"==typeof n&&n<o){const e=Math.max(n,0);t.splice(e,0,r)}else t.splice(o,0,r)},D_=async(e,t,r,n)=>{const o=e.getDimensions(),i=e.hcProperties.qNoOfLeftDims;return await e.autoSortDimension(t),C_(e.hcProperties),(-1===i||Number.isNaN(+i))&&(e.hcProperties.qNoOfLeftDims=o.length),r?((e,t,r,n)=>{if(!e)return;const{qInterColumnSortOrder:o,qNoOfLeftDims:i}=e,a=t.length,s=o.indexOf(-1),l=-1!==s,u=void 0!==n?n+(i||0):void 0;if(l&&void 0!==u&&s>=u?E_(a,o,s):o.push(a),void 0===n)t.push(r);else if(void 0!==u){const e=l&&u>s?u-1:u;t.splice(e,0,r)}})(e.hcProperties,o,t,n):((e,t,r,n)=>{if(!e||"number"!=typeof e.qNoOfLeftDims)return;const o=e.qNoOfLeftDims,{qInterColumnSortOrder:i}=e,a=t.length,s=i.indexOf(-1),l=-1!==s;if(l&&s>=o)E_(a,i,s),I_(o,t,r,n);else{const e=l?o-1:o;n&&n<=e&&l?E_(a,i,s):i.push(a),I_(e,t,r,n)}e.qNoOfLeftDims++})(e.hcProperties,o,t,n),t};var P_=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(P_||{}),M_=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(M_||{}),R_=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(R_||{}),L_=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(L_||{});const A_=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,k_=e=>{if(!Array.isArray(e))return"";let t="{<";const r=[];if(e.forEach((e=>{let t=`[${e.field}]${e.exclude?"-":""}={`,n="}",o="";switch(e.type){case R_.SEARCH:o=(e=>{let t="",r="";const n=e.options?.mode;if(!n)return"";switch(n){case P_.BEGINNING_OF_WORD:t="*^",r="*";break;case P_.ENDS_WITH:t="*";break;case P_.STARTS_WITH:r="*";break;case P_.MATCHES_EXACTLY:break;case P_.CONTAINS:default:t="*",r="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${r}"`:""})(e);break;case R_.CONDITION:o=(e=>{const{options:t}=e,r=t?.mode===M_.GENERAL,n=t?.modifier?.type===L_.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!n&&(!t.firstValue?.aggregator||!t.firstValue?.field)||n&&!t.firstValue?.fixedValue||r&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";r&&n?(i=`${t.conditionField?.aggregator}(${A_(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!r&&n?(i="",a=`${t.firstValue?.fixedValue}`,s=""):r||n?(i=`${t.conditionField?.aggregator}(${A_(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${A_(t.firstValue?.field)})`):(i=`${A_(e.field)}`,a=`${t.firstValue?.aggregator}(total ${A_(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let u="";if(o.length>1){if(!n&&(!t.secondValue?.aggregator||!t.secondValue?.field)||n&&!t.secondValue?.fixedValue)return"";let e,a;r&&n?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!r&&n?(e=`${t.secondValue?.fixedValue}`,a=""):r||n?(e=`${t.secondValue?.aggregator}(${A_(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${A_(t.secondValue?.field)})`,a=` and ${i}`),u=`${a}${o[1]}${e}`}return`"${l}${u}"`})(e);break;case R_.CLEAR_SELECTION:o=`[${e.field}]=`,t="",n="";break;case R_.VALUES:default:o=e.options?.values?e.options.values.map((e=>`'${e.replace(/'/g,"''")}'`)).join(","):""}""!==o&&r.push(`${t}${o}${n}`)})),0===r.length)return;return t+=`${r.join(",")}>}`,t},O_=P;class q_ extends O_{constructor(e){super(e),this.path=e.path}async addDimension(e,t,r,n){if(!e)return;const o=t??!1;if(e.qDef&&!e.qDef.cId&&(e.qDef.cId=y_()),n)return this.addAlternativeDimension(e,o,r);if(this.getDimensions().length<this.maxDimensions()){const t=await D_(this,e,o,r);return this.#e({section:o?"columns":"rows",cId:e.qDef?.cId}),t}}async addDimensions(e,t,r){const n=[];for await(const o of e){const e=await this.addDimension(o,r,void 0,t);e&&n.push(e)}return n}addAlternativeDimension(e,t,r){if(!e||!this.hcProperties)return;const n=this.getAlternativeDimensions();void 0===this.hcProperties.excludedNoOfLeftDims&&(this.hcProperties.excludedNoOfLeftDims=n.length);let o=r;return o=void 0===o?t?n.length:this.hcProperties.excludedNoOfLeftDims:t?this.hcProperties.excludedNoOfLeftDims+o:Math.min(o,this.hcProperties.excludedNoOfLeftDims),n.splice(o,0,e),t||this.hcProperties.excludedNoOfLeftDims++,this.#e({section:t?"columns":"rows",cId:e.qDef?.cId||"",alternative:!0}),e}async addFieldDimension(e,t,r,n={}){const o=this.createFieldDimension(e,t,r);return this.addDimension(o,n.asColumn,void 0,!1)}async addFieldDimensions(e,t={}){const r=e.map((e=>this.createFieldDimension(e.field,e.label,e.defaults)));return this.addDimensions(r,void 0,t.asColumn)}async addLibraryDimensions(e,t={}){const r=e.map((e=>this.createLibraryDimension(e.id,e.defaults)));return this.addDimensions(r,void 0,t.asColumn)}reinsertDimension(e,t,r){e.qDef&&!e.qDef.cId&&(e.qDef.cId=y_());if(this.getDimensions().length<this.maxDimensions())return this.addDimension(e,t,r);return this.reinsertAlternativeDimension(e,r,t)}reinsertAlternativeDimension(e,t,r){const n=this.getDimensions(),o=this.getAlternativeDimensions();if(n.length>=b_)return Promise.resolve();const i="number"==typeof t?t:o.length;return o.splice(i,0,e),this.#e({section:r?"columns":"rows",cId:e.qDef?.cId||"",alternative:!0}),Promise.resolve(e)}async removeDimensions(e,t,r){return Promise.all([...e].reverse().map((e=>this.removeDimension(e,t,r))))}async removeDimension(e,t,r){if(t){const t=this.getAlternativeDimensions().splice(e,1)[0];return!r&&this.hcProperties?.excludedNoOfLeftDims&&this.hcProperties.excludedNoOfLeftDims--,this.#t({cId:t.qDef.cId,section:r?"columns":"rows"}),t}const n=this.getDimensions(),o=this.properties?.qHyperCubeDef.qNoOfLeftDims,i=this.hcProperties?.qInterColumnSortOrder.indexOf(e);"number"==typeof this.properties?.qHyperCubeDef.qNoOfLeftDims&&"number"==typeof i&&"number"==typeof o&&i+1<=o&&this.properties.qHyperCubeDef.qNoOfLeftDims--;const a=this.properties?.qHyperCubeDef.columnWidths?this.properties.qHyperCubeDef.columnWidths[1]:void 0;Array.isArray(a)&&a.length>e&&a.splice(e,1);const s=n.splice(e,1)[0];if(s)return((e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;e.splice(r,1)})(this.hcProperties?.qInterColumnSortOrder,e),C_(this.hcProperties),this.#t({cId:s.qDef.cId,section:r?"columns":"rows"}),s}async addMeasures(e,t=!1){const r=[];for await(const n of e){const e=await this.addMeasure(n,t,void 0,!0);e&&r.push(e)}return r}addAlternativeMeasures(e,t){const r=this.getAlternativeMeasures(),n=void 0===t?r.length:t,o=r.splice(n,0,e);return this.#r(e.qDef?.cId||"",!0),o}async addMeasure(e,t,r,n){const o=this.getMeasures();if(e.qDef&&!e.qDef.cId&&(e.qDef.cId=y_()),t)return this.addAlternativeMeasures(e,r);if(n||delete e.qDef?.qNumFormat,o.length<this.maxMeasures()){const t=1===o.length;return o.push(e),this.autoSortMeasure(e).then((()=>(t&&this.hcProperties?.qInterColumnSortOrder.push(-1),this.#r(e.qDef?.cId||""),e)))}return o.length<x_?(this.getAlternativeMeasures().push(e),this.#r(e.qDef?.cId||"",!0),Promise.resolve(e)):Promise.resolve()}reinsertMeasure(e,t){const r=this.getMeasures(),n=this.getAlternativeMeasures(),o=this.hcProperties?.qInterColumnSortOrder;if(e.qDef&&!e.qDef.cId&&(e.qDef.cId=y_()),t=void 0!==t?t:r.length,r.length<this.maxMeasures()){if(r.splice(t,0,e),this.hcProperties&&o&&2===r.length){-1===o.indexOf(-1)&&o.push(-1)}this.#r(e.qDef?.cId||"")}else r.length<x_&&(t=n.length,n.splice(t,0,e),this.#r(e.qDef?.cId||""));return Promise.resolve(e)}async removeMeasure(e,t){if(t&&"number"==typeof e){const t=this.getAlternativeMeasures().splice(e,1)[0];return this.#t({cId:t.qDef.cId,section:"measures"}),t}const r=this.getMeasures();let n,o,i;if("number"==typeof e&&e<r.length){n=2===r.length,o=this.getMeasures().splice(e,1)[0];const t=this.hcProperties?.qInterColumnSortOrder;n&&t&&(i=t.indexOf(-1),t.splice(i,1),this.hcProperties?.qNoOfLeftDims&&i+1<=this.hcProperties?.qNoOfLeftDims&&this.hcProperties.qNoOfLeftDims--)}else"number"==typeof e&&(o=this.getAlternativeMeasures().splice(e-r.length,1)[0]);if(o)return this.#t({cId:o.qDef.cId,section:"measures"}),o}async removeMeasures(e,t){return await Promise.all([...e].reverse().map((e=>this.removeMeasure(e,t)))),e}getSorting(){throw new Error("don't call this")}changeSorting(){throw new Error("don't call this")}setSorting(){throw new Error("don't call this")}getRowDimensions(){const e=this.#n("rows"),t=this.getDimensions();return e.filter((e=>e>=0)).map((e=>t[e]))}getColumnDimensions(){const e=this.#n("columns"),t=this.getDimensions();return e.filter((e=>e>=0)).map((e=>t[e]))}getAlternativeRowDimensions(){const e=this.getAlternativeDimensions(),{excludedNoOfLeftDims:t}=this.hcProperties;return-1===t?e:e.slice(0,t)}getAlternativeColumnDimensions(){const e=this.getAlternativeDimensions(),{excludedNoOfLeftDims:t}=this.hcProperties;return-1===t?[]:e.slice(t)}#o(e){return this.hcProperties.rankedList?.[e]??this.createRankedList(e)}#i(e){return[...this.#o(e)]}#a(e,t){return void 0===this.hcProperties.rankedList&&(this.hcProperties.rankedList={}),this.hcProperties.rankedList[e]=t,t}#s(e){const t=({qDef:t})=>t?.cId===e;if(-1===e){return this.hcProperties.qInterColumnSortOrder.indexOf(-1)+1<=this.hcProperties.qNoOfLeftDims?"rows":"columns"}return this.getRowDimensions().some(t)||this.getAlternativeRowDimensions().some(t)?"rows":this.getColumnDimensions().some(t)||this.getAlternativeColumnDimensions().some(t)?"columns":null}#l(e){const t=({qDef:t})=>t?.cId===e;return!(!this.getAlternativeDimensions().some(t)&&!this.getAlternativeMeasures().some(t))}#n(e){const{qInterColumnSortOrder:t,qNoOfLeftDims:r}=this.hcProperties;switch(e){case"rows":return-1===r?t:t.slice(0,r);case"columns":return-1===r?[]:t.slice(r);default:throw new Error(`Unknown section in #getInterColumnSortOrderBySection: ${e}`)}}#u(e){const t=this.hcProperties.qInterColumnSortOrder.indexOf(-1);if(-1===t)return!1;switch(e){case"rows":return t+1<=this.hcProperties.qNoOfLeftDims;case"columns":return t+1>this.hcProperties.qNoOfLeftDims;default:return!1}}#c(e,t=!0){const r=e=>-1===e?-1:e.qDef?.cId;if("measures"===e)return this.getMeasures().concat(t?this.getAlternativeMeasures():[]).map(r);const n=this.#n(e),o=this.getDimensions(),i=n.map((e=>-1===e?-1:o[e]));switch(e){case"rows":return i.concat(t?this.getAlternativeRowDimensions():[]).map(r);case"columns":return i.concat(t?this.getAlternativeColumnDimensions():[]).map(r);default:throw new Error(`Unknown section in #isCorruptRankedList: ${e}`)}}isRankedListCorrupt(e){const t=this.hcProperties.rankedList?.[e],r=this.properties.qInfo.qId;if(!t)return!0;const n=this.#c(e);if(t.length!==n.length)return console.warn("Corrupt ranked list detected: length mismatch",{section:e,chartId:r,fieldsLength:n.length,rankedListLength:t.length,diff:new Set(n).symmetricDifference(new Set(t))}),!0;const o=n.filter((e=>!t.includes(e)));if(o.length>0)return console.warn("Corrupt ranked list detected: missing ids",{missingIds:o,section:e,chartId:r}),!0;const i=this.#c(e,!1),a=t.filter((e=>i.includes(e))),s=i.filter(((e,t)=>e!==a[t]));return s.length>0&&(console.warn("Corrupt ranked list detected: main field order mismatch",{section:e,chartId:r,orderMismatchIds:s}),!0)}createRankedList(e){switch(e){case"rows":case"columns":return this.#d({section:e});case"measures":return this.#p();default:throw new Error(`Unknown section in getRankedList: ${e}`)}}#d({section:e}){const t=this.getDimensions(),r=this.#n(e),n="columns"===e?this.getAlternativeColumnDimensions():this.getAlternativeRowDimensions(),o=r.map((e=>-1===e?-1:t[e].qDef.cId));return o.push(...n.map((e=>e.qDef?.cId))),this.#a(e,o)}#p(){if(void 0!==this.hcProperties.rankedList?.measures)return this.hcProperties.rankedList?.measures;const e=[...this.getMeasures(),...this.getAlternativeMeasures()].map((e=>e.qDef.cId));return this.#a("measures",e)}#f({section:e,cId:t,fields:r}){const n=this.#o(e),o=r.findIndex((e=>e.qDef?.cId===t)),i=r[o+1]?.qDef?.cId,a=r[o-1]?.qDef?.cId;if(o>=0)if(i){const e=n.indexOf(i);n.splice(e,0,t)}else if(a){const e=n.indexOf(a);n.splice(e+1,0,t)}else n.push(t);return this.hcProperties.rankedList[e]}#e({section:e,cId:t,alternative:r=!1}){if(void 0===this.hcProperties.rankedList?.[e])return this.#d({section:e});let n=[];return n="columns"===e?r?this.getAlternativeColumnDimensions():this.getColumnDimensions():r?this.getAlternativeRowDimensions():this.getRowDimensions(),this.#f({section:e,cId:t,fields:n})}#r(e,t=!1){if(void 0===this.hcProperties.rankedList?.measures)return this.#p();const r=t?this.getAlternativeMeasures():this.getMeasures();return this.#h(),this.#f({section:"measures",cId:e,fields:r})}#h(){const e=this.#o("rows"),t=this.#o("columns");this.#u("rows")&&!e.includes(-1)?e.push(-1):this.#u("columns")&&!t.includes(-1)&&t.push(-1)}#m(){if(this.hcProperties.qInterColumnSortOrder.includes(-1))return;const e=this.#o("rows"),t=this.#o("columns"),r=e.indexOf(-1),n=t.indexOf(-1);-1!==r&&e.splice(r,1),-1!==n&&t.splice(n,1)}#t({cId:e,section:t}){const r=this.#o(t),n=r.indexOf(e);-1!==n&&(r.splice(n,1),this.#m())}async moveMeasureToAlternative(e){const t=this.getMeasures().findIndex((t=>t.qDef?.cId===e)),r=this.#i("measures"),n=r.indexOf(e);if(-1===t)return;const o=await this.removeMeasure(t),i=r.slice(n+1).find((e=>this.getAlternativeMeasures().some((t=>t.qDef?.cId===e)))),a=this.getAlternativeMeasures().findIndex((e=>e.qDef?.cId===i));await this.addAlternativeMeasures(o,-1===a?void 0:a),this.#a("measures",r)}async moveMeasureFromAlternative(e){const t=this.getAlternativeMeasures().findIndex((t=>t.qDef?.cId===e)),r=this.#i("measures"),n=r.indexOf(e);if(-1===t)return;const o=await this.removeMeasure(t,!0),i=this.getMeasures().map((e=>e.qDef?.cId)),a=r.slice(n+1).find((e=>i.includes(e))),s=i.findIndex((e=>e===a));await this.addMeasure(o,!1,-1===s?void 0:s),this.#a("measures",r)}async moveDimensionToAlternative(e){const t=this.#s(e),r=this.getDimensions().findIndex((t=>t.qDef?.cId===e));if(-1===r||null===t)return;const n=this.#i(t),o=n.indexOf(e),i="columns"===t,a=await this.removeDimension(r,!1,i),s=n.slice(o+1).find((e=>this.getAlternativeDimensions().some((({qDef:t})=>t?.cId===e))));let l=this.getAlternativeDimensions().findIndex((({qDef:e})=>e?.cId===s));l=-1===l?void 0:l,await this.addAlternativeDimension(a,i,l),this.#a(t,n)}async moveDimensionFromAlternative(e){const t=this.#s(e),r=this.getAlternativeDimensions().findIndex((t=>t.qDef?.cId===e));if(-1===r||null===t)return;const n=this.#i(t),o=n.indexOf(e),i="columns"===t,a=await this.removeDimension(r,!0,i),s=this.#c(t,!1),l=n.slice(o+1).find((e=>s.includes(e)));let u=s.findIndex((e=>e===l));u=-1===u?void 0:u,await this.addDimension(a,i,u),this.#a(t,n)}movePseudoDimension({toIndex:e,toSection:t}){const r=this.#s(-1);if(null===r)return void console.error("Cannot move pseudo dimension, unable to find it in any section",{toIndex:e,toSection:t});const n="columns"===t,o=r===t,i=this.#i(t);if(o){const e=i.indexOf(-1);i.splice(e,1)}else{const o=this.#o(r),i=o.indexOf(-1);if(-1===i)return void console.error("Couldn't delete pseudo dimension from current section",{toIndex:e,toSection:t,fromSection:r});o.splice(i,1),this.hcProperties.qNoOfLeftDims=n?Math.max(0,this.hcProperties.qNoOfLeftDims-1):this.hcProperties.qNoOfLeftDims+1}const a=e-i.slice(0,e).filter((e=>this.#l(e))).length,s=n?this.hcProperties.qNoOfLeftDims+a:a,l=this.hcProperties.qInterColumnSortOrder.indexOf(-1);this.hcProperties.qInterColumnSortOrder.splice(l,1),this.hcProperties.qInterColumnSortOrder.splice(s,0,-1),i.splice(e,0,-1),this.#a(t,i)}async moveDimension({cId:e,toIndex:t,toSection:r}){const n=this.#s(e),o=this.#l(e);if(null===n)return void console.error("Cannot move dimension, unable to find it in any section",{cId:e});const i=(o?this.getAlternativeDimensions():this.getDimensions()).findIndex((({qDef:t})=>t?.cId===e));if(-1===i)return void console.error("Couldn't find dimension to move",{cId:e,toIndex:t,toSection:r});const a=this.#i(r),s=a.indexOf(e);-1!==s&&a.splice(s,1);const l=t-a.slice(0,t).filter((e=>this.#l(e)!==o)).length,u="columns"===r,c="columns"===n,d=await this.removeDimension(i,o,c);await this.addDimension(d,u,l,o),a.splice(t,0,e),this.#a(r,a)}async moveMeasure({cId:e,toIndex:t}){const r=this.#l(e),n=(r?this.getAlternativeMeasures():this.getMeasures()).findIndex((t=>t.qDef?.cId===e));if(-1===n)return void console.error("Cannot move measure, unable to find it in any section",{cId:e});const o=this.#i("measures"),i=o.indexOf(e);-1!==i&&o.splice(i,1);const a=t-o.slice(0,t).filter((e=>this.#l(e)!==r)).length,s=await this.removeMeasure(n,r);await this.addMeasure(s,r,a),o.splice(t,0,e),this.#a("measures",o)}getLabels(){return this.getMeasures().filter((e=>!e.qLibraryId&&!!e.qDef?.qLabel)).map((e=>e.qDef?.qLabel))}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}getFilters(){return this.properties?.filters??[]}getFilter(e){return this.getFilters().find((t=>t.id===e))}addFilterField(e){const t=e?.qTags??e?.tags,r=Array.isArray(t)&&t.includes("$numeric"),n=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:n?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:y_(),isNumeric:r};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=k_(o),i}addFilters(e){const t=[];for(const r of e)t.push(this.addFilterField(r));return t}removeFilters(e){if(0===e.length)return[];let t=[];const r=[...e].sort(((e,t)=>t-e));t=this.getFilters().filter(((t,r)=>e.includes(r)));for(const e of r)this.removeFilterField(e);return t}}var T_={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Ae});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function y(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=y(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=y(d,f),v=y(p,m);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=b({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var I=t().bind(null,!0),D={},P=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function R(e){return void 0===e}function L(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function A(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=R(e[r||t])?i:e[t],e=e[r||t]}})),e}function k(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){k(e[n],t[n])||(r=!1)})),r);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}D.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?I({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);k(i,a)||L(t,o)||(R(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(a)?n=n.concat(D.generate(a,i,s)):P(i)&&P(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&R(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(k(t,o))return n;if(!R(t[0])&&R(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(D.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){R(t[o])&&!L(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},D.apply=function(e,t){t.forEach((function(t){var r,n,o=A(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!L(r,e)&&delete r[e]})),I(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=A(e,t.from);P(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},D.clone=function(e){return I({},e)},D.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},D.updateObject=function(e,t){Object.keys(e).length?D.apply(e,D.generate(e,t)):I(e,t)};const O=D,q=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function _(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function j(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var N={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,N)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=_(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=_(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=_(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function W(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function $(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var v=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var y=w.getDimComp(c,1),b=w.getDimComp(c,0),x=w.getAggrComp(v,y,b);v=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat($(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat($(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=W(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=W(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=W(t,e);return i&&!i.disabled}};return r}};var B="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===B)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===B)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(B))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",ye="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Ie="qDef.qAggrFunc",De="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(r(e,ye,i(e,ve)),r(e,xe,i(e,be)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Pe.isValid(e)&&(r(e,ve,i(e,ye)),r(e,be,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Ie)&&i(e,De)&&r(e,Ie,i(e,De)),delete e.qDef.base)},isValid:function(e){var t=i(e,ye),r=i(e,xe);return void 0!==t||void 0!==r}};const Me=Pe;function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}var Le={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Ae={modifiers:Le,apply:Oe,applyModifiers:qe,cleanUpMeasure:Te,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[e.id])},hasActiveModifiers:_e,getActiveModifier:je,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Le[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Le[e]&&Le[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Ne};var ke={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===Re(n))return qe({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),_e({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);$e(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return h&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Re(e)&&!e.disabled){if(r++,"object"!==Re(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),qe({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Re(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return Fe(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function qe(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),$e(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=Fe(n)),!r.length)return Promise.resolve();if(!_e({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Me.isValid(r)||Me.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Re(e)&&!e.disabled){if(s++,"object"!==Re(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Le[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Le[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Le[n.type].updateModifier&&Le[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Le[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Ne(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Ne(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),He(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Re(e)&&!e.disabled&&!Le[e.type]}))}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function _e(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function je(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Le[n.type]&&!n.disabled)return n}}function Ne(e){var t=je(e);return!t||Le[t.type].enableTotalsFunction(e)}function Fe(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function We(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){Fe(e).forEach((function(e){return function(e){var r=je(e);r&&(void 0!==r.outputExpression&&We(r)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function He(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Re(t)&&(t.disabled||!Le[t.type]&&We(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function Be(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!Be(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Re(e)||e.disabled||!Le[e.type])&&(void 0===o[e.type]&&(o[e.type]=Le[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):q(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Re(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=Fe(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=Be(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>$e});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},y=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},b=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function I(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var D=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const R=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},L=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},A=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},k=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},q=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},_=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=I(a.max,o.dimensions.length,D),l=I(a.min,o.dimensions.length,0);return{maxDimensions:I(i.max,s,D),minDimensions:I(i.min,l,0),maxMeasures:s,minMeasures:l}},j=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},N=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},W=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return M(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},H=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const B={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,v({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),y({exportFormat:o,properties:a}),n||b(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=N({exportFormat:t,initialProperties:n,hypercubePath:u}),v=i.getValue(n,u||"").qHyperCubeDef,y=i.getValue(g,u||"").qHyperCubeDef,b=_({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,S=b.minDimensions,w=b.maxMeasures,C=b.minMeasures,E=l.defaultDimension,I=void 0===E?k():E,D=l.defaultMeasure,P=void 0===D?O():D;y.qDimensions.length=0,y.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:y}),q({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:y,defaultDimension:I}),T({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:y,defaultMeasure:P}),W({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),j({exportFormat:t,newHyperCubeDef:y}),L("qMaxStackedCells",v,y),L("qNoOfLeftDims",v,y),A("qInitialDataFetch",v,y,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),A("qMode",v,y,"S"),A("qReductionMode",v,y,"N"),A("qSortbyYValue",v,y),A("qIndentMode",v,y),A("qShowTotalsAbove",v,y),R(g,t,n),m.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return H({measures:y.qMeasures,modifierTypes:M}),p&&V(m.qProperty,"storedFilters"),"S"===y.qMode&&h&&V(m.qProperty,"dynamicScript"),m}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!G[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(U(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},ve={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=B.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=B.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:v,properties:d})&&he(d):me(d),v&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ye=["bar","marker","line"];const be=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ye.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return be({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Ie(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var De="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Me="measures",Re="qDef.conditionalColoring";const Le={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Pe,arrayName:Me,itemPath:Re})},unquarantine:function(e){Ie({properties:e,arrayPath:De,itemPath:Re,arrayName:Me,quarantineName:Pe})}};var Ae="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",qe="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",_e="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Ne="alternativeDimensions",Fe="qCalcCondition",ze="conditionalShowHide";const We={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:ze,arrayName:ke,itemPath:Fe}),Ee({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:qe,itemPath:Fe})},unquarantine:function(e){Ie({properties:e,arrayPath:Ae,quarantineName:ze,arrayName:ke,itemPath:Fe}),Ie({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:qe,itemPath:Fe})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Te,quarantineName:ze,arrayName:_e,itemPath:Fe}),Ee({properties:e,arrayPath:je,quarantineName:ze,arrayName:Ne,itemPath:Fe})},unquarantineAlternative:function(e){Ie({properties:e,arrayPath:Te,quarantineName:ze,arrayName:_e,itemPath:Fe}),Ie({properties:e,arrayPath:je,quarantineName:ze,arrayName:Ne,itemPath:Fe})}},$e={hypercube:B,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Ie,conditionalColoring:Le,conditionalShow:We}})(),n.default})()}(T_);var __=En(T_.exports);const j_="qHyperCubeDef.qMeasures",N_="measures",F_="qHyperCubeDef.qDimensions",z_="dimensions",W_="qDef.representation",$_="tableRepresentation",H_="qDef.conditionalColoring",V_="conditionalColoring",B_="qMiniChartDef",G_="miniChartDef",U_=e=>{__.unquarantineArrayProp({properties:e,arrayPath:F_,itemPath:W_,arrayName:z_,quarantineName:$_}),__.unquarantineArrayProp({properties:e,arrayPath:j_,itemPath:W_,arrayName:N_,quarantineName:$_}),__.unquarantineArrayProp({properties:e,arrayPath:j_,itemPath:H_,arrayName:N_,quarantineName:V_}),__.unquarantineArrayProp({properties:e,arrayPath:j_,itemPath:B_,arrayName:N_,quarantineName:G_})},Y_=e=>{__.quarantineArrayProp({properties:e,arrayPath:F_,itemPath:W_,arrayName:z_,quarantineName:$_}),__.quarantineArrayProp({properties:e,arrayPath:j_,itemPath:W_,arrayName:N_,quarantineName:$_}),__.quarantineArrayProp({properties:e,arrayPath:j_,itemPath:H_,arrayName:N_,quarantineName:V_}),__.quarantineArrayProp({properties:e,arrayPath:j_,itemPath:B_,arrayName:N_,quarantineName:G_})};function K_(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function X_(e){if("object"==typeof e&&K_(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}const J_={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function Z_(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(K_(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in J_}(e)){const t=J_[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function Q_(e){let t,r,n;if(K_(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?X_(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}function ej(e){let t,r,n=0;const o="string"==typeof e?Z_(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function tj(e){let t,r,n=0;const o="string"==typeof e?Z_(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function rj(e){if(K_(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?X_(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function nj(e,t){return K_(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:nj(Z_(e))}function oj(e){return K_(e)?1===e.a?rj(e):nj(e):oj(Z_(e))}const ij=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function aj(e){return.2126*ij(e.r)+.7152*ij(e.g)+.0722*ij(e.b)}function sj(...e){const t=Z_(...e);return t.invalid||aj(t)<.4}function lj(...e){const t=Z_(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=ej(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Z_(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>sj(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=rj(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=nj(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=oj(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=Q_(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?Z_(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=ej(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=tj(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=tj(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>lj(o(18*e)),getDarkenedColor:(e=1)=>lj(o(18*-e))}}function uj(e,t){if(!e||!t)return;const r=aj(e),n=aj(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function cj(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dj,pj="top",fj="top-right",hj="right",mj="bottom-right",gj="bottom",vj="bottom-left",yj="left",bj="top-left";cj(cj(cj(cj(cj(cj(cj(cj(cj(cj(dj={},"equal-equal",[pj,gj]),"equal-higher",[gj,mj]),"equal-lower",[pj,fj]),"equal-void",[pj,gj]),"higher-equal",[yj,vj,pj,fj]),"higher-higher-acute",[gj,vj,yj,fj]),"higher-higher-obtuse",[gj,pj]),"higher-lower-negative",[pj,fj,hj]),"higher-lower-positive",[gj,vj,yj]),"higher-void",[pj]),cj(cj(cj(cj(cj(cj(cj(cj(cj(cj(dj,"lower-equal",[pj]),"lower-higher-negative",[pj,bj]),"lower-higher-positive",[mj]),"lower-lower-acute",[pj,bj,yj,fj,hj]),"lower-lower-obtuse",[pj,gj]),"lower-void",[pj]),"void-equal",[pj]),"void-higher",[pj,gj]),"void-lower",[pj,gj,yj]),"void-void",[pj]),cj(dj,"unclassified",[pj,gj,hj,yj,fj,mj,vj,bj]);var xj,Sj,wj=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Cj=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Ej(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Cj:wj}var Ij=function(){if(Sj)return xj;Sj=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return xj=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},xj}();function Dj(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Pj(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Mj(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Ij);var Rj=1/.7,Lj="\\s*([+-]?\\d+)\\s*",Aj="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",kj="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Oj=/^#([0-9a-f]{3,8})$/,qj=new RegExp(`^rgb\\(${Lj},${Lj},${Lj}\\)$`),Tj=new RegExp(`^rgb\\(${kj},${kj},${kj}\\)$`),_j=new RegExp(`^rgba\\(${Lj},${Lj},${Lj},${Aj}\\)$`),jj=new RegExp(`^rgba\\(${kj},${kj},${kj},${Aj}\\)$`),Nj=new RegExp(`^hsl\\(${Aj},${kj},${kj}\\)$`),Fj=new RegExp(`^hsla\\(${Aj},${kj},${kj},${Aj}\\)$`),zj={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Wj(){return this.rgb().formatHex()}function $j(){return this.rgb().formatRgb()}function Hj(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Oj.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Vj(t):3===r?new Yj(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Bj(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Bj(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=qj.exec(e))?new Yj(t[1],t[2],t[3],1):(t=Tj.exec(e))?new Yj(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_j.exec(e))?Bj(t[1],t[2],t[3],t[4]):(t=jj.exec(e))?Bj(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Nj.exec(e))?eN(t[1],t[2]/100,t[3]/100,1):(t=Fj.exec(e))?eN(t[1],t[2]/100,t[3]/100,t[4]):zj.hasOwnProperty(e)?Vj(zj[e]):"transparent"===e?new Yj(NaN,NaN,NaN,0):null}function Vj(e){return new Yj(e>>16&255,e>>8&255,255&e,1)}function Bj(e,t,r,n){return n<=0&&(e=t=r=NaN),new Yj(e,t,r,n)}function Gj(e){return e instanceof Mj||(e=Hj(e)),e?new Yj((e=e.rgb()).r,e.g,e.b,e.opacity):new Yj}function Uj(e,t,r,n){return 1===arguments.length?Gj(e):new Yj(e,t,r,null==n?1:n)}function Yj(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Kj(){return`#${Qj(this.r)}${Qj(this.g)}${Qj(this.b)}`}function Xj(){const e=Jj(this.opacity);return`${1===e?"rgb(":"rgba("}${Zj(this.r)}, ${Zj(this.g)}, ${Zj(this.b)}${1===e?")":`, ${e})`}`}function Jj(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zj(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Qj(e){return((e=Zj(e))<16?"0":"")+e.toString(16)}function eN(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new rN(e,t,r,n)}function tN(e){if(e instanceof rN)return new rN(e.h,e.s,e.l,e.opacity);if(e instanceof Mj||(e=Hj(e)),!e)return new rN;if(e instanceof rN)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new rN(a,s,l,e.opacity)}function rN(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function nN(e){return(e=(e||0)%360)<0?e+360:e}function oN(e){return Math.max(0,Math.min(1,e||0))}function iN(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Dj(Mj,Hj,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Wj,formatHex:Wj,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return tN(this).formatHsl()},formatRgb:$j,toString:$j}),Dj(Yj,Uj,Pj(Mj,{brighter(e){return e=null==e?Rj:Math.pow(Rj,e),new Yj(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yj(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yj(Zj(this.r),Zj(this.g),Zj(this.b),Jj(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Kj,formatHex:Kj,formatHex8:function(){return`#${Qj(this.r)}${Qj(this.g)}${Qj(this.b)}${Qj(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Xj,toString:Xj})),Dj(rN,(function(e,t,r,n){return 1===arguments.length?tN(e):new rN(e,t,r,null==n?1:n)}),Pj(Mj,{brighter(e){return e=null==e?Rj:Math.pow(Rj,e),new rN(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new rN(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Yj(iN(e>=240?e-240:e+120,o,n),iN(e,o,n),iN(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new rN(nN(this.h),oN(this.s),oN(this.l),Jj(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Jj(this.opacity);return`${1===e?"hsl(":"hsla("}${nN(this.h)}, ${100*oN(this.s)}%, ${100*oN(this.l)}%${1===e?")":`, ${e})`}`}}));const aN=Math.PI/180,sN=180/Math.PI,lN=4/29,uN=6/29,cN=3*uN*uN;function dN(e){if(e instanceof pN)return new pN(e.l,e.a,e.b,e.opacity);if(e instanceof vN)return yN(e);e instanceof Yj||(e=Gj(e));var t,r,n=gN(e.r),o=gN(e.g),i=gN(e.b),a=fN((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=fN((.4360747*n+.3850649*o+.1430804*i)/.96422),r=fN((.0139322*n+.0971045*o+.7141733*i)/.82521)),new pN(116*a-16,500*(t-a),200*(a-r),e.opacity)}function pN(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function fN(e){return e>.008856451679035631?Math.pow(e,1/3):e/cN+lN}function hN(e){return e>uN?e*e*e:cN*(e-lN)}function mN(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function gN(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vN(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function yN(e){if(isNaN(e.h))return new pN(e.l,0,0,e.opacity);var t=e.h*aN;return new pN(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Dj(pN,(function(e,t,r,n){return 1===arguments.length?dN(e):new pN(e,t,r,null==n?1:n)}),Pj(Mj,{brighter(e){return new pN(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new pN(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Yj(mN(3.1338561*(t=.96422*hN(t))-1.6168667*(e=1*hN(e))-.4906146*(r=.82521*hN(r))),mN(-.9787684*t+1.9161415*e+.033454*r),mN(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Dj(vN,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof vN)return new vN(e.h,e.c,e.l,e.opacity);if(e instanceof pN||(e=dN(e)),0===e.a&&0===e.b)return new vN(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*sN;return new vN(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new vN(e,t,r,null==n?1:n)}),Pj(Mj,{brighter(e){return new vN(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new vN(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return yN(this).rgb()}}));var bN=e=>()=>e;function xN(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):bN(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?xN:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):bN(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Uj(e)).r,(t=Uj(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=xN(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var SN="center",wN="bottom";[{key:"NoDataExist",alignment:SN,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:SN,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:SN,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:SN},{key:"DataRangeIncludingZero",alignment:wN},{key:"LimitedData",alignment:wN},{key:"NegativeOrZeroValues",alignment:wN}].reduce((function(e,t){return e[t.key]=t,e}),{});var CN,EN=["__proto__","constructor"];function IN(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!EN.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function DN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function PN(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}function MN(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function RN(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=AN)):void 0===t&&(t=LN);for(var r,n,o,i,a,s=new qN(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new qN(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(ON)}function LN(e){return e.children}function AN(e){return Array.isArray(e)?e[1]:null}function kN(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ON(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function qN(e){this.data=e,this.depth=this.height=0,this.parent=null}function TN(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o="rows"===n?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}qN.prototype=RN.prototype={constructor:qN,count:function(){return this.eachAfter(MN)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return RN(this).eachBefore(kN)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},CN=function(e){
|
|
100
|
+
*/var mS,gS,vS={},yS={};function bS(){if(mS)return yS;mS=1;var e=Ha;Object.defineProperty(yS,"__esModule",{value:!0}),yS.default=void 0;var t=(0,e(dv()).default)();return yS.default=t,yS}var xS,SS,wS={},CS={};function ES(){if(SS)return wS;SS=1;var e=Ha;Object.defineProperty(wS,"__esModule",{value:!0}),wS.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(_s()),r=wh,n=function(){if(xS)return CS;xS=1;var e=Ha;Object.defineProperty(CS,"__esModule",{value:!0}),CS.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},CS.getUnit=r,CS.toUnitless=n,CS.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},CS.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},CS.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},CS.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach((function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e($h());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return CS}();return wS}var IS,DS={};var PS,MS={};var RS,LS={};var AS,kS={};!function(e){var t=Ha,n=Af;Object.defineProperty(e,"__esModule",{value:!0});var o={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return a.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var i=kf;Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))}));var a=n(dv()),s=t(function(){if(pv)return fv;pv=1;var e=Ha;Object.defineProperty(fv,"__esModule",{value:!0}),fv.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=wh,r=e(dv());return fv}()),l=t(function(){if(dS)return hv;dS=1,Object.defineProperty(hv,"__esModule",{value:!0}),hv.default=function(t){return(0,e.createStyles)(t)};var e=hS;return hv}()),u=t(function(){if(gS)return vS;gS=1;var e=Ha;Object.defineProperty(vS,"__esModule",{value:!0}),vS.default=void 0;var t=e(_s()),r=hS,n=e(bS()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return vS.default=o,vS}()),c=t(ES()),d=t(function(){if(IS)return DS;IS=1;var e=Ha;Object.defineProperty(DS,"__esModule",{value:!0}),DS.default=void 0;var t=e(_s()),r=hS,n=e(bS()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return DS.default=o,DS}()),p=sv();Object.keys(p).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))}));var f=t(function(){if(PS)return MS;PS=1;var e=Ha;Object.defineProperty(MS,"__esModule",{value:!0}),MS.default=function(){return(0,t.useTheme)()||n.default};var t=hS;e(r);var n=e(bS());return MS}()),h=t(function(){if(RS)return LS;RS=1;var e=Ha;Object.defineProperty(LS,"__esModule",{value:!0}),LS.default=void 0;var t=e(_s()),r=hS,n=e(bS()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return LS.default=o,LS}()),m=t(function(){if(AS)return kS;AS=1;var e=Ha;Object.defineProperty(kS,"__esModule",{value:!0}),kS.default=void 0;var t=hS,r=e(bS()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return kS.default=n,kS}()),g=hS}(Pf),Pf.alpha(tf.GREYSCALE_0,.05),Pf.alpha(tf.GREEN_PALE,.5),Pf.alpha(tf.BLUE_PALE,.5),Pf.alpha(tf.GREEN_PALE,.5),Pf.alpha(tf.BLUE_PALE,.5),Pf.alpha(tf.GREEN_PALE,.5),Pf.alpha(tf.BLUE_PALE,.5),Pf.alpha(tf.GREEN_PALE,.5),Pf.alpha(tf.BLUE_PALE,.5),Pf.alpha(tf.GREEN_PALE,.5),Pf.alpha(tf.BLUE_PALE,.5);const OS=(e="light",t=!1)=>If(0,t);function qS(e){return"init"in e}function TS(e){return!!e.write}function _S(e){return"v"in e||"e"in e}function jS(e){if("e"in e)throw e.e;if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const NS=new WeakMap;function FS(e){var t;return WS(e)&&!!(null==(t=NS.get(e))?void 0:t[0])}function zS(e,t){let r=NS.get(e);if(!r){r=[!0,new Set],NS.set(e,r);const t=()=>{r[0]=!1};e.then(t,t)}r[1].add(t)}function WS(e){return"function"==typeof(null==e?void 0:e.then)}function $S(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function VS(e,t,r){var n;const o=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])o.add(t);for(const e of t.p)o.add(e);return o}const HS=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach((e=>e(r))),null==(o=t.get(r))||o.forEach((e=>e()))};return r.add=(r,n)=>{const o=r||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(n),()=>{i.delete(n),i.size||t.delete(o)}},r};function BS(e){return e.i||(e.i=HS()),e.r||(e.r=HS()),e.c||(e.c=HS()),e.m||(e.m=HS()),e.u||(e.u=HS()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach((e=>e()));return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const GS=(e,t,...r)=>t.read(...r),US=(e,t,...r)=>t.write(...r),YS=(e,t)=>{var r;return null==(r=t.INTERNAL_onInit)?void 0:r.call(t,e)},KS=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},XS=(e,r)=>{var n;const o=dw(e),i=o[0],a=o[6],s=o[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Atom is undefined or null");let l=i.get(r);return l||(l={d:new Map,p:new Set,n:0},i.set(r,l),null==(n=a.i)||n.call(a,r),null==s||s(e,r)),l},JS=e=>{const t=dw(e),r=t[1],n=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach((e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)})),n.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(u),n.size&&s(e)}while(n.size||i.size||o.size);if(l.length)throw new AggregateError(l)},ZS=e=>{const r=dw(e),n=r[1],o=r[2],i=r[3],a=r[11],s=r[14],l=r[17],u=[],c=new WeakSet,d=new WeakSet,p=Array.from(i);for(;p.length;){const r=p[p.length-1],i=a(e,r);if(d.has(r))p.pop();else if(c.has(r)){if(o.get(r)===i.n)u.push([r,i]);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(r))throw new Error("[Bug] invalidated atom exists");d.add(r),p.pop()}else{c.add(r);for(const e of VS(r,i,n))c.has(e)||p.push(e)}}for(let t=u.length-1;t>=0;--t){const[r,n]=u[t];let a=!1;for(const e of n.d.keys())if(e!==r&&i.has(e)){a=!0;break}a&&(s(e,r),l(e,r)),o.delete(r)}},QS=new WeakSet,ew=(e,r)=>{var n,o;const i=dw(e),a=i[1],s=i[2],l=i[3],u=i[6],c=i[7],d=i[11],p=i[12],f=i[13],h=i[14],m=i[16],g=i[17],v=i[20],y=d(e,r);if(_S(y)){if(a.has(r)&&s.get(r)!==y.n)return y;let t=!1;for(const[r,n]of y.d)if(h(e,r).n!==n){t=!0;break}if(!t)return y}y.d.clear();let b,x,S=!0;function w(){a.has(r)&&(g(e,r),f(e),p(e))}const C={get signal(){return b||(b=new AbortController),b.signal},get setSelf(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(t.meta.env?t.meta.env.MODE:void 0)||TS(r)||console.warn("setSelf function cannot be used with read-only atom"),!x&&TS(r)&&(x=(...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&S&&console.warn("setSelf function cannot be called in sync"),!S)try{return m(e,r,...n)}finally{f(e),p(e)}}),x}},E=y.n;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&QS.delete(e);const o=c(e,r,(function(t){var n;if(t===r){const r=d(e,t);if(!_S(r)){if(!qS(t))throw new Error("no atom init");v(e,t,t.init)}return jS(r)}const o=h(e,t);try{return jS(o)}finally{y.d.set(t,o.n),FS(y.v)&&$S(r,y.v,o),a.has(r)&&(null==(n=a.get(t))||n.t.add(r)),S||w()}}),C);return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&QS.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),v(e,r,o),WS(o)&&(zS(o,(()=>null==b?void 0:b.abort())),o.then(w,w)),null==(n=u.r)||n.call(u,r),y}catch(e){return delete y.v,y.e=e,++y.n,y}finally{S=!1,E!==y.n&&s.get(r)===E&&(s.set(r,y.n),l.add(r),null==(o=u.c)||o.call(u,r))}},tw=(e,t)=>{const r=dw(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of VS(t,r,n)){const t=i(e,s);o.set(s,t.n),a.push(s)}}},rw=(e,r,...n)=>{const o=dw(e),i=o[3],a=o[6],s=o[8],l=o[11],u=o[12],c=o[13],d=o[14],p=o[15],f=o[16],h=o[17],m=o[20];let g=!0;const v=t=>jS(d(e,t)),y=(n,...o)=>{var s;const d=l(e,n);try{if(n===r){if(!qS(n))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&QS.add(e);const r=d.n,l=o[0];return m(e,n,l),h(e,n),void(r!==d.n&&(i.add(n),p(e,n),null==(s=a.c)||s.call(a,n)))}return f(e,n,...o)}finally{g||(c(e),u(e))}};try{return s(e,r,v,y,...n)}finally{g=!1}},nw=(e,t)=>{var r;const n=dw(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p&&!FS(d.v)){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),l(e,n),null==(r=a.c)||r.call(a,n))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},ow=(e,t)=>{var r;const n=dw(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=n[18],h=l(e,t);let m=o.get(t);if(!m){d(e,t);for(const r of h.d.keys()){f(e,r).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(t,m),TS(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(m.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,t)}return m},iw=(e,t)=>{var r,n;const o=dw(e),i=o[1],a=o[5],s=o[6],l=o[11],u=o[19],c=l(e,t);let d=i.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(t);for(const r of c.d.keys()){const n=u(e,r);null==n||n.t.delete(t)}null==(n=s.u)||n.call(s,t)},aw=(e,t,r)=>{const n=dw(e)[11],o=n(e,t),i="v"in o,a=o.v;if(WS(r))for(const i of o.d.keys())$S(t,r,n(e,i));o.v=r,delete o.e,i&&Object.is(a,o.v)||(++o.n,WS(a)&&function(e){const t=NS.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach((e=>e())))}(a))},sw=(e,t)=>jS((0,dw(e)[14])(e,t)),lw=(e,t,...r)=>{const n=dw(e),o=n[12],i=n[13],a=n[16];try{return a(e,t,...r)}finally{i(e),o(e)}},uw=(e,t,r)=>{const n=dw(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},cw=new WeakMap,dw=e=>{const r=cw.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!r)throw new Error("Store must be created by buildStore to read its building blocks");return r};function pw(e){const t=dw(e),r=t[24];return r?r(t):t}function fw(...e){const t={get:e=>(0,dw(t)[21])(t,e),set:(e,...r)=>(0,dw(t)[22])(t,e,...r),sub:(e,r)=>(0,dw(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},GS,US,YS,KS,XS,JS,ZS,ew,tw,rw,nw,ow,iw,aw,sw,lw,uw,void 0].map(((t,r)=>e[r]||t));return cw.set(t,Object.freeze(r)),t}let hw,mw=0;function gw(e,r){const n="atom"+ ++mw,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?n+":"+this.debugLabel:n}};return"function"==typeof e?o.read=e:(o.init=e,o.read=vw,o.write=yw),r&&(o.write=r),o}function vw(e){return e(this)}function yw(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function bw(){return fw()}const xw=u(void 0);function Sw(e){const r=h(xw);return(null==e?void 0:e.store)||r||(hw||(hw=bw(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=hw),globalThis.__JOTAI_DEFAULT_STORE__!==hw&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),hw)}function ww({children:e,store:t}){const r=l(null);return t?n(xw.Provider,{value:t},e):(null===r.current&&(r.current=bw()),n(xw.Provider,{value:r.current},e))}const Cw=e=>"function"==typeof(null==e?void 0:e.then),Ew=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},Iw=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Ew(e),e)}),Dw=new WeakMap,Pw=(e,t)=>{let r=Dw.get(e);return r||(r=new Promise(((n,o)=>{let i=e;const a=e=>t=>{i===e&&n(t)},s=e=>t=>{i===e&&o(t)},l=()=>{try{const e=t();Cw(e)?(Dw.set(e,r),i=e,e.then(a(e),s(e)),zS(e,l)):n(e)}catch(e){o(e)}};e.then(a(e),s(e)),zS(e,l)})),Dw.set(e,r)),r};function Mw(e,t){const{delay:n,unstable_promiseStatus:o=!r.use}={},i=Sw(t),[[a,s,l],u]=c((t=>{const r=i.get(e);return Object.is(t[0],r)&&t[1]===i&&t[2]===e?t:[r,i,e]}),void 0,(()=>[i.get(e),i,e]));let f=a;if(s===i&&l===e||(u(),f=i.get(e)),d((()=>{const t=i.sub(e,(()=>{if(o)try{const t=i.get(e);Cw(t)&&Ew(Pw(t,(()=>i.get(e))))}catch(e){}"number"!=typeof n?u():setTimeout(u,n)}));return u(),t}),[i,e,n,o]),p(f),Cw(f)){const t=Pw(f,(()=>i.get(e)));return o&&Ew(t),Iw(t)}return f}function Rw(e,r){const n=Sw(r);return f(((...r)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)}),[n,e])}function Lw(e,t){return[Mw(e,t),Rw(e,t)]}t.meta.env&&t.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},r){var n;let o,i;const a={getItem:(t,n)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==r?void 0:r.reviver)}catch(e){return n}o=e}return i},u=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let s;try{s=null==(n=e())?void 0:n.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,(e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)}))))}();const Aw=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),kw=new WeakMap,Ow=()=>{};const qw=new WeakMap;function Tw(e,t){const r=Sw(t),n=_w(r);for(const[o,...i]of e)n.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(n.add(o),r.set(o,...i))}const _w=e=>{let t=qw.get(e);return t||(t=new WeakSet,qw.set(e,t)),t};function jw(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function Nw(e){const t=gw((()=>[])),r=gw((function(e){const[n,o,i]=e(t);i.has(r)&&(n.forEach(e),++o.n)}));return r.effect=e,r.INTERNAL_onInit=e=>{const n=new Set;let o,i=0,a=!1,s=!1,l=!1;function u(){if(i)return;n.clear();let t=!0;const c=o=>{if(l)return e.get(o);if(o===r){const t=h(e,o);if(!_S(t)){if(!qS(o))throw new Error("no atom init");S(e,o,o.init)}return jS(t)}const i=v(e,o);try{return jS(i)}finally{C.d.set(o,i.n),d.get(o)?.t.add(r),t?n.add(o):d.has(o)&&(x(e,r),g(e),m(e))}};c.peek=e.get;const w=(n,...o)=>{const a=h(e,n);try{if(++i,n===r){if(!qS(n))throw new Error("atom not writable");const t=a.n,r=o[0];return S(e,n,r),x(e,n),void(t!==a.n&&(p.add(n),f.c?.(n),y(e,n)))}return b(e,n,...o)}finally{t||(g(e),m(e)),--i}};w.recurse=(t,...n)=>{if(l){if(jw())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,r),w(t,...n)}finally{g(e),a=!1,s&&(s=!1,u())}};try{o?.();const e=r.effect(c,w);if("function"!=typeof e)return;o=()=>{if(!i)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,o=void 0}}}finally{t=!1,n.forEach((t=>{C.d.set(t,h(e,t).n)})),x(e,r),g(e)}}const c=pw(e),d=c[1],p=c[3],f=BS(c[6]),h=c[11],m=c[12],g=c[13],v=c[14],y=c[15],b=c[16],x=c[17],S=c[20],w=function(e,t){let r=Fw.get(e);r||(r=new Set,Fw.set(e,r),t.f.add((function(){for(const e of r)r.delete(e),e()})));return r}(e,f),C=h(e,r);C.v=void 0,Object.assign(e.get(t),[n,C,d]),f.c.add(r,(function(){p.delete(r)})),f.m.add(r,(function(){w.add(u),o&&w.delete(o)})),f.u.add(r,(function(){w.delete(u),o&&w.add(o)})),f.c.add(r,(function(){a?s=!0:w.add(u)}))},jw()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const Fw=new WeakMap;const zw=async(e,t,r)=>{const n=e.get(r);void 0!==n&&("dimension"===n.type?await t.moveDimensionToAlternative(n.def.qDef.cId):await t.moveMeasureToAlternative(n.def.qDef.cId))},Ww=async(e,t,r)=>{const n=e.get(r);void 0!==n&&("dimension"===n.type?await t.moveDimensionFromAlternative(n.def.qDef.cId):await t.moveMeasureFromAlternative(n.def.qDef.cId))},$w=async e=>{const{type:t,handler:r,model:n,fieldInfo:o}=e;if(void 0!==r&&void 0!==n){switch(t){case"apply":for(const t of e.localChecked)await Ww(o,r,t);for(const t of e.localUnchecked)await zw(o,r,t);break;case"checked":await Ww(o,r,e.cId);break;case"unchecked":await zw(o,r,e.cId)}await n.applyPatches([{qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef),qPath:"/qHyperCubeDef"}],!0)}},Vw=gw(),Hw=gw(),Bw=gw(),Gw=gw((e=>e(Bw)?.translate??(e=>e))),Uw=gw(""),Yw=gw((e=>{const t=e(Uw).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)})),Kw=e=>7005!==e.qError?.qErrorCode,Xw=new WeakMap,Jw={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},Zw=function(e,r=Ow){return((e,t,r)=>{const n=Aw((()=>new WeakMap),kw,t);return Aw(e,n,r)})((()=>{const n=new WeakMap,o=new WeakMap,i=gw(0),a=gw([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(i,(e=>e+1))])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(i.debugPrivate=!0,a.debugPrivate=!0);const s=gw((t=>{let l;t(i);try{l=t(s)}catch(e){}const u=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(u))return{v:u};if(u!==(null==l?void 0:l.p)&&u.then((e=>{o.set(u,e);const[r]=t(a);r()}),(e=>{n.set(u,e);const[r]=t(a);r()})),n.has(u))throw n.get(u);return o.has(u)?{p:u,v:o.get(u)}:l&&"v"in l?{p:u,f:r(l.v),v:l.v}:{p:u,f:r()}}));return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),gw((e=>{const t=e(s);return"f"in t?t.f:t.v}),((t,r,...n)=>r(e,...n)))}),e,r)}(gw((async e=>{const t=e(Vw);if(t){if(Xw.has(t))return Xw.get(t);try{const e=await t.app.createSessionObject(Jw);return Xw.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}}))),Qw=gw(null),eC=gw(),tC=Nw(((e,t)=>{const r=e(Vw),n=e(Zw);if(!r||!n)return;const o=async()=>{const e=await r.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=await r.getEffectiveProperties();await n.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions)},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures)}]);const i=await n.getLayout();t(eC,{layout:structuredClone(e),properties:structuredClone(o),altLayout:structuredClone(i)}),t(Qw,null)};return o(),r.Invalidated?.bind(o),()=>{r.Invalidated?.unbind(o)}})),rC=gw((e=>e(eC)?.layout)),nC=gw((e=>e(eC)?.altLayout)),oC=gw((e=>e(eC)?.properties)),iC=gw((e=>{const t=e(eC)?.layout;return t?.qHyperCube.qDimensionInfo.filter(Kw)??[]})),aC=gw((e=>{const t=e(eC)?.layout;return t?.qHyperCube.qMeasureInfo.filter(Kw)??[]})),sC=gw((e=>{const t=e(rC),r=e(iC),n=e(aC),o=e(oC),i=new Map;return t&&o?(r.forEach(((e,t)=>{i.set(e.cId,{id:e.cId,type:"dimension",def:o.qHyperCubeDef.qDimensions[t]})})),n.forEach(((e,t)=>{i.set(e.cId,{id:e.cId,type:"measure",def:o.qHyperCubeDef.qMeasures[t]})})),o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach((e=>{i.set(e.qDef.cId,{id:e.qDef.cId,type:"dimension",def:e})})),o.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.forEach((e=>{i.set(e.qDef.cId,{id:e.qDef.cId,type:"measure",def:e})})),i):i})),lC=gw((e=>{const t=[...e(iC),...e(aC)].map((e=>e.cId));return new Set(t)})),uC=gw(new Set),cC=gw(new Set),dC=gw((e=>{const t=e(uC),r=e(cC);return e(lC).difference(r).union(t)})),pC=Nw(((e,t)=>{e(lC),t(uC,new Set),t(cC,new Set)})),fC=gw((e=>e(dC)),((e,t,r)=>{const n=e(dC).has(r);if(n){const n=new Set(e(cC));n.add(r),t(cC,n)}else{const n=new Set(e(uC));n.add(r),t(uC,n)}$w({type:n?"unchecked":"checked",cId:r,handler:e(Hw),model:e(Vw),fieldInfo:e(sC)})})),hC=({props:e,children:t})=>(Tw([[Vw,e.args.model],[Bw,e.args.apis],[Hw,e.args.handler]]),Mw(pC),Mw(tC),t);function mC(e,t){const r=new Set(e),n=new Set(t);return e===t||r.size===n.size&&Array.from(r).every(n.has.bind(n))}function gC(e){return"write"in e}const vC=new WeakMap,yC={},{read:bC,write:xC}=gw(null);function SC(e,t,r){const[n,o,i,,a]=e,s=n.get(t);if(s)return s;if(r===e){let n=o.get(t);return n||(n=[IC(e,t,r),r],o.set(t,n)),n}const l=r??yC;let u=i.get(l);u||(u=new WeakMap,i.set(l,u));let c=u.get(t);if(!c){const[n,o]=a?SC(a,t,r):[t];c=[t.read===bC?n:IC(e,t,o),o],u.set(t,c)}return c}function wC(e){for(const t of e[5])t()}function CC(e,t,r,n,o){if(r.read===bC&&gC(r)&&gC(t)&&r.write!==xC&&e!==n){const{write:i}=r;return t.write=EC(e,r.write.bind(r),n,o),()=>{t.write=i}}}function EC(e,t,r,n=r){return function(o,i,...a){return t((function(t){const[n]=SC(e,t,r);return o(n)}),(function(t,...o){const[a]=SC(e,t,r),s=CC(e,a,t,r,n);try{return i(a,...o)}finally{null==s||s()}}),...a)}}function IC(e,t,r){const n=Object.getOwnPropertyDescriptors(t);Object.keys(n).filter((e=>["read","write","debugLabel"].includes(e))).forEach((e=>n[e].configurable=!0));const o=Object.getPrototypeOf(t),i=Object.create(o,n);return i.read!==bC&&(i.read=function(e,t,r){return function(n,o){return t((function(t){const[o]=SC(e,t,r);return n(o)}),o)}}(e,t.read.bind(t),r)),gC(i)&&gC(t)&&i.write!==xC&&(i.write=EC(e,t.write.bind(t),r)),i}function DC({atoms:e=[],atomFamilies:t=[],parentStore:r,name:n}){const o=new WeakSet(e),i=vC.get(r),a=(null==i?void 0:i[3])??r,s=[new WeakMap,new WeakMap,new WeakMap,a,i,new Set,void 0],l=s[0],u=s[5],c=function(e){const t=e[3],r=[...pw(t)],n=r[21],o=r[22],i=r[23],a=r[9],s={};r[9]=(e,t)=>a(l,t),r[21]=h(n),r[22]=p,r[23]=h(i),r[24]=([...e])=>{const t=[m(e[0],u),m(e[1],c),m(e[2]),g(e[3]),e[4],e[5],y(e[6]),h(e[7]),h(e[8]),e[9],h(e[10]),h(e[11],(e=>d(t[0],e))),e[12],e[13],h(e[14]),h(e[15]),h(e[16]),h(e[17]),h(e[18]),h(e[19]),h(e[20]),h(e[21]),h(e[22]),h(e[23]),()=>e];return t};const l=fw(...r);return l;function u(t){const r=new WeakMap;return function(n){let o=r.get(n);if(o)return o;const i=t(n);return i?(o={...i,d:m(i.d,(function(t){return r=>t(SC(e,r)[0])})),p:g(i.p),get n(){return i.n},set n(e){i.n=e},get v(){return i.v},set v(e){i.v=e},get e(){return i.e},set e(e){i.e=e}},r.set(n,o),o):void 0}}function c(e){const t=new WeakMap;return function(r){let n=t.get(r);if(n)return n;const o=e(r);return o?(n={...o,d:g(o.d),t:g(o.t),get u(){return o.u},set u(e){o.u=e}},t.set(r,n),n):void 0}}function d(e,t){return function(r,n){return e.get(n)||(e.set(n,t(r,n)),e.get(n))}}function p(t,r,...n){const[i,a]=SC(e,r),s=CC(e,i,r,a,e);try{return o(t,i,...n)}finally{null==s||s()}}function f(t,r){return function(n,...o){const[i]=SC(e,n);return(r?r(t):t)(i,...o)}}function h(t,r){return function(n,o,...i){const[a]=SC(e,o);return(r?r(t):t)(n,a,...i)}}function m(e,t){return{get:f(e.get.bind(e),t),set:f(e.set.bind(e)),has:f(e.has.bind(e)),delete:f(e.delete.bind(e))}}function g(t){return{get size(){return t.size},add:f(t.add.bind(t)),has:f(t.has.bind(t)),delete:f(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(f(e)),*[Symbol.iterator](){for(const r of t)yield SC(e,r)[0]}}}function v(t){if(!t)return;const r=f(t);return r.add=function(r,n){if(void 0===r)return t.add(void 0,n);const[o]=SC(e,r);return t.add(o,n)},r}function y(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map((t=>[t,{get:()=>s[t]??(s[t]=v(e[t])),set(r){delete s[t],e[t]=r},configurable:!0,enumerable:!0}])))),Object.assign(t,e)}}(s);s[6]=c,Object.assign(c,{name:n}),vC.set(c,s);for(const t of new Set(e))l.set(t,[IC(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const r=e(t);l.has(r)||l.set(r,[IC(s,r,s),s])}const t=e.unstable_listen((({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!o.has(t)&&l.delete(t):l.set(t,[IC(s,t,s),s])}));u.add(t)}return c}const PC=function(e,t){return function(r){const{atoms:o=[],atomFamilies:i=[],children:a,scope:s,name:l}=r,u=t(),c=Array.from(o,(e=>Array.isArray(e)?e[0]:e));function p(){return[s??DC({atoms:c,atomFamilies:i,parentStore:u,name:l}),function(e){return u!==e.parentStore||!mC(c,e.atoms)||!mC(i,e.atomFamilies)||s!==e.providedScope}]}const[[f,h],g]=m(p);if(h({atoms:c,atomFamilies:i,parentStore:u,providedScope:s})){const e=vC.get(f);e&&wC(e),g(p)}return Tw(Array.from(o).filter(Array.isArray),{store:f}),d((()=>{const e=vC.get(f);return()=>{e&&wC(e)}}),[f]),n(e,{store:f,children:a})}}(ww,Sw);function MC(e,t){let r=null;const n=new Map,o=new Set;function i(o){let s;if(void 0===t)s=n.get(o);else for(const[e,r]of n)if(t(e,o)){s=r;break}if(void 0!==s){if(!r?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return n.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{if(void 0===t){if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}else for(const[r,[o]]of n)if(t(r,e)){n.delete(r),a("REMOVE",r,o);break}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}const RC=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,LC=gw(),AC=gw((e=>e(LC)?.numberOfSections??0)),kC=gw((e=>e(LC)?.numberOfItemsInSection??[])),OC=gw((e=>e(LC)?.keyExtractor??RC)),qC=gw((e=>e(LC)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."})))),TC=gw((e=>e(LC)?.onDragEnd)),_C=gw((e=>e(LC)?.onDragOver)),jC=gw((e=>{const t=e(LC)?.children;return Array.isArray(t)?t[1]:t})),NC=gw((e=>{const t=e(LC)?.children;if(Array.isArray(t))return t[0]})),FC=gw((e=>e(LC)?.onClick)),zC=gw(null),WC=gw((e=>e(zC)),((e,t,r)=>{if(null===r)return void t(zC,null);const n=e(zC);t(zC,{...n,...r})})),$C=MC((e=>gw(null,((t,r,n)=>{let o;"over"===e?o=t(_C):"end"===e&&(o=t(TC),r(WC,null));const{source:i,target:a}=n.operation;if(null===a)return;const s="section"===a.type,l=a.sortable?.index??0;"start"===e?r(WC,{id:i.id,startSection:i.data.sectionKey}):"over"===e&&r(WC,{itemIndex:l,sectionIndex:s?i.data.sectionIndex:a.data.sectionIndex}),o?.({id:i.id,toIndex:l,toSection:a.data.sectionKey,fromSection:i.data.sectionKey,startSection:t(WC)?.startSection??i.data.sectionKey,event:n})})))),VC=[LC,AC,kC,OC,qC,TC,jC,NC,FC,WC],HC=[$C],BC=({props:e,children:t})=>{const r=Rw(LC);return g((()=>{r(e)}),[e,r]),t};var GC=Symbol.for("preact-signals");function UC(){if(ZC>1)ZC--;else{for(var e,t=!1;void 0!==JC;){var r=JC;for(JC=void 0,QC++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&oE(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(QC=0,ZC--,t)throw e}}function YC(e){if(ZC>0)return e();ZC++;try{return e()}finally{UC()}}var KC=void 0;function XC(e){var t=KC;KC=void 0;try{return e()}finally{KC=t}}var JC=void 0,ZC=0,QC=0,eE=0;function tE(e){if(void 0!==KC){var t=e.n;if(void 0===t||t.t!==KC)return t={i:0,S:e,p:KC.s,n:void 0,t:KC,e:void 0,x:void 0,r:t},void 0!==KC.s&&(KC.s.n=t),KC.s=t,e.n=t,32&KC.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=KC.s,t.n=void 0,KC.s.n=t,KC.s=t),t}}function rE(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function nE(e,t){return new rE(e,t)}function oE(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function iE(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function aE(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function sE(e,t){rE.call(this,void 0),this.x=e,this.s=void 0,this.g=eE-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function lE(e,t){return new sE(e,t)}function uE(e){var t=e.u;if(e.u=void 0,"function"==typeof t){ZC++;var r=KC;KC=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,cE(e),t}finally{KC=r,UC()}}}function cE(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,uE(e)}function dE(e){if(KC!==this)throw new Error("Out-of-order effect");aE(this),KC=e,this.f&=-2,8&this.f&&cE(this),UC()}function pE(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function fE(e,t){var r=new pE(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}rE.prototype.brand=GC,rE.prototype.h=function(){return!0},rE.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:XC((function(){var e;null==(e=t.W)||e.call(t)})))},rE.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&XC((function(){var e;null==(e=t.Z)||e.call(t)})))}},rE.prototype.subscribe=function(e){var t=this;return fE((function(){var r=t.value,n=KC;KC=void 0;try{e(r)}finally{KC=n}}),{name:"sub"})},rE.prototype.valueOf=function(){return this.value},rE.prototype.toString=function(){return this.value+""},rE.prototype.toJSON=function(){return this.value},rE.prototype.peek=function(){var e=KC;KC=void 0;try{return this.value}finally{KC=e}},Object.defineProperty(rE.prototype,"value",{get:function(){var e=tE(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(QC>100)throw new Error("Cycle detected");this.v=e,this.i++,eE++,ZC++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{UC()}}}}),sE.prototype=new rE,sE.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===eE)return!0;if(this.g=eE,this.f|=1,this.i>0&&!oE(this))return this.f&=-2,!0;var e=KC;try{iE(this),KC=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return KC=e,aE(this),this.f&=-2,!0},sE.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}rE.prototype.S.call(this,e)},sE.prototype.U=function(e){if(void 0!==this.t&&(rE.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},sE.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(sE.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=tE(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),pE.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},pE.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,uE(this),iE(this),ZC++;var e=KC;return KC=this,dE.bind(this,e)},pE.prototype.N=function(){2&this.f||(this.f|=2,this.o=JC,JC=this)},pE.prototype.d=function(){this.f|=8,1&this.f||cE(this)},pE.prototype.dispose=function(){this.d()};var hE,mE,gE,vE,yE,bE,xE,SE,wE,CE,EE,IE,DE,PE,ME,RE,LE,AE,kE,OE,qE=Object.create,TE=Object.defineProperty,_E=Object.defineProperties,jE=Object.getOwnPropertyDescriptor,NE=Object.getOwnPropertyDescriptors,FE=Object.getOwnPropertySymbols,zE=Object.prototype.hasOwnProperty,WE=Object.prototype.propertyIsEnumerable,$E=e=>{throw TypeError(e)},VE=(e,t,r)=>t in e?TE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,HE=(e,t)=>TE(e,"name",{value:t,configurable:!0}),BE=["class","method","getter","setter","accessor","field","value","get","set"],GE=e=>void 0!==e&&"function"!=typeof e?$E("Function expected"):e,UE=(e,t,r,n,o)=>({kind:BE[e],name:t,metadata:n,addInitializer:e=>r._?$E("Already initialized"):o.push(GE(e||null))}),YE=(e,t)=>{return VE(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},KE=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},XE=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=BE[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&jE(d<4?o:{get[r](){return QE(this,i)},set[r](e){return tI(this,i,e)}},r));d?f&&d<4&&HE(i,(d>2?"set ":d>1?"get ":"")+r):HE(o,r);for(var b=n.length-1;b>=0;b--)u=UE(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>ZE(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?QE:rI)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>tI(e,o,t,4^d?i:y.set):(e,t)=>e[r]=t)),s=(0,n[b])(d?d<4?f?i:y[m]:d>4?void 0:{get:y.get,set:y.set}:o,u),l._=1,4^d||void 0===s?GE(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?$E("Object expected"):(GE(a=s.get)&&(y.get=a),GE(a=s.set)&&(y.set=a),GE(a=s.init)&&g.unshift(a));return d||YE(e,o),y&&TE(o,r,y),f?4^d?i:y:o},JE=(e,t,r)=>t.has(e)||$E("Cannot "+r),ZE=(e,t)=>Object(t)!==t?$E('Cannot use the "in" operator on this value'):e.has(t),QE=(e,t,r)=>(JE(e,t,"read from private field"),r?r.call(e):t.get(e)),eI=(e,t,r)=>t.has(e)?$E("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),tI=(e,t,r,n)=>(JE(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),rI=(e,t,r)=>(JE(e,t,"access private method"),r);function nI(e,t){if(t){let r;return lE((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return lE(e)}function oI(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some(((e,r)=>!oI(e,t[r])))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some((r=>!oI(e[r],t[r])));return!o}return!1}function iI({get:e},t){return{init:e=>nE(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function aI(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=nI(e.bind(this)),r.set(this,t)),t.value}}function sI(e=!0){return function(t,r){r.addInitializer((function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>_E(e,NE(t)))(((e,t)=>{for(var r in t||(t={}))zE.call(t,r)&&VE(e,r,t[r]);if(FE)for(var r of FE(t))WE.call(t,r)&&VE(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function lI(...e){const t=e.map((e=>fE(e)));return()=>t.forEach((e=>e()))}bE=[iI],yE=[iI],vE=[iI],gE=[sI()],mE=[sI()],hE=[sI()];var uI,cI=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,KE(xE,5,this),eI(this,IE),eI(this,SE,KE(xE,8,this)),KE(xE,11,this),eI(this,DE,KE(xE,12,this)),KE(xE,15,this),eI(this,LE,KE(xE,16,this)),KE(xE,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return QE(this,IE,kE)}get initial(){return QE(this,IE,CE)}get previous(){return QE(this,IE,ME)}set current(e){const t=XC((()=>QE(this,IE,kE)));e&&t&&this.equals(t,e)||YC((()=>{QE(this,IE,CE)||tI(this,IE,e,EE),tI(this,IE,t,RE),tI(this,IE,e,OE)}))}reset(e=this.defaultValue){YC((()=>{tI(this,IE,void 0,RE),tI(this,IE,e,EE),tI(this,IE,e,OE)}))}};function dI(e){return XC((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}xE=[,,,qE(null)],SE=new WeakMap,IE=new WeakSet,DE=new WeakMap,LE=new WeakMap,wE=XE(xE,20,"#initial",bE,IE,SE),CE=wE.get,EE=wE.set,PE=XE(xE,20,"#previous",yE,IE,DE),ME=PE.get,RE=PE.set,AE=XE(xE,20,"#current",vE,IE,LE),kE=AE.get,OE=AE.set,XE(xE,2,"current",gE,cI),XE(xE,2,"initial",mE,cI),XE(xE,2,"previous",hE,cI),YE(xE,cI);uI=new WeakMap;var pI,fI,hI,mI,gI,vI=Object.create,yI=Object.defineProperty,bI=Object.getOwnPropertyDescriptor,xI=Object.getOwnPropertySymbols,SI=Object.prototype.hasOwnProperty,wI=Object.prototype.propertyIsEnumerable,CI=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),EI=e=>{throw TypeError(e)},II=Math.pow,DI=(e,t,r)=>t in e?yI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,PI=["class","method","getter","setter","accessor","field","value","get","set"],MI=e=>void 0!==e&&"function"!=typeof e?EI("Function expected"):e,RI=(e,t,r,n,o)=>({kind:PI[e],name:t,metadata:n,addInitializer:e=>r._?EI("Already initialized"):o.push(MI(e||null))}),LI=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=PI[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,bI(o,r)),h=n.length-1;h>=0;h--)(l=RI(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,MI(a)&&(f[d]=a);return f&&yI(o,r,f),o},AI=(e,t,r)=>t.has(e)||EI("Cannot "+r),kI=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},OI=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))SI.call(t,r)&&DI(e,r,t[r]);if(xI)for(var r of xI(t))wI.call(t,r)&&DI(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new kI((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return kI.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var qI,TI=class extends(hI=cI,fI=[aI],pI=[aI],hI){constructor(e){var t,r,n;super(kI.from(e),((e,t)=>kI.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(gI,5,this),t=this,n=0,(r=mI).has(t)?EI("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return kI.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=kI.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(AI(a=this,s=mI,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);YC((()=>{((e,t,r)=>{AI(e,t,"write to private field"),t.set(e,r)})(this,mI,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(kI.from(e)),this.velocity={x:0,y:0}}};function _I({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(II(n,2)+II(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}gI=(e=>{var t;return[,,,vI(null!=(t=null==e?void 0:e[CI("metadata")])?t:null)]})(hI),mI=new WeakMap,LI(gI,2,"delta",fI,TI),LI(gI,2,"direction",pI,TI),qI=gI,DI(TI,CI("metadata"),qI[3]);var jI,NI,FI,zI,WI=(e=>(e.Horizontal="x",e.Vertical="y",e))(WI||{}),$I=Object.values(WI),VI=Object.create,HI=Object.defineProperty,BI=Object.defineProperties,GI=Object.getOwnPropertyDescriptor,UI=Object.getOwnPropertyDescriptors,YI=Object.getOwnPropertySymbols,KI=Object.prototype.hasOwnProperty,XI=Object.prototype.propertyIsEnumerable,JI=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ZI=e=>{throw TypeError(e)},QI=(e,t,r)=>t in e?HI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,eD=(e,t)=>{for(var r in t||(t={}))KI.call(t,r)&&QI(e,r,t[r]);if(YI)for(var r of YI(t))XI.call(t,r)&&QI(e,r,t[r]);return e},tD=(e,t)=>BI(e,UI(t)),rD=(e,t)=>HI(e,"name",{value:t,configurable:!0}),nD=(e,t)=>{var r={};for(var n in e)KI.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&YI)for(var n of YI(e))t.indexOf(n)<0&&XI.call(e,n)&&(r[n]=e[n]);return r},oD=e=>{var t;return[,,,VI(null!=(t=null==e?void 0:e[JI("metadata")])?t:null)]},iD=["class","method","getter","setter","accessor","field","value","get","set"],aD=e=>void 0!==e&&"function"!=typeof e?ZI("Function expected"):e,sD=(e,t,r,n,o)=>({kind:iD[e],name:t,metadata:n,addInitializer:e=>r._?ZI("Already initialized"):o.push(aD(e||null))}),lD=(e,t)=>QI(t,JI("metadata"),e[3]),uD=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},cD=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=iD[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&GI(d<4?o:{get[r](){return fD(this,i)},set[r](e){return mD(this,i,e)}},r));d?f&&d<4&&rD(i,(d>2?"set ":d>1?"get ":"")+r):rD(o,r);for(var b=n.length-1;b>=0;b--)u=sD(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>pD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?fD:gD)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>mD(e,o,t,4^d?i:y.set):(e,t)=>e[r]=t)),s=(0,n[b])(d?d<4?f?i:y[m]:d>4?void 0:{get:y.get,set:y.set}:o,u),l._=1,4^d||void 0===s?aD(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?ZI("Object expected"):(aD(a=s.get)&&(y.get=a),aD(a=s.set)&&(y.set=a),aD(a=s.init)&&g.unshift(a));return d||lD(e,o),y&&HI(o,r,y),f?4^d?i:y:o},dD=(e,t,r)=>t.has(e)||ZI("Cannot "+r),pD=(e,t)=>Object(t)!==t?ZI('Cannot use the "in" operator on this value'):e.has(t),fD=(e,t,r)=>(dD(e,t,"read from private field"),r?r.call(e):t.get(e)),hD=(e,t,r)=>t.has(e)?ZI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),mD=(e,t,r,n)=>(dD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),gD=(e,t,r)=>(dD(e,t,"access private method"),r);function vD(e,t){return{plugin:e,options:t}}function yD(e){return t=>vD(e,t)}function bD(e){return"function"==typeof e?{plugin:e,options:void 0}:e}jI=[iI];var xD=class{constructor(e,t){this.manager=e,this.options=t,hD(this,FI,uD(NI,8,this,!1)),uD(NI,11,this),hD(this,zI,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return XC((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=fE(e.bind(this));return fD(this,zI).add(t),t}destroy(){fD(this,zI).forEach((e=>e()))}static configure(e){return vD(this,e)}};NI=oD(null),FI=new WeakMap,zI=new WeakMap,cD(NI,4,"disabled",jI,xD,FI),lD(NI,xD);var SD,wD=class extends xD{},CD=class{constructor(e){this.manager=e,this.instances=new Map,hD(this,SD,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(bD).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of fD(this,SD))if(!r.includes(e)){if(e.prototype instanceof wD)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);mD(this,SD,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function ED(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}SD=new WeakMap;var ID,DD,PD=[],MD=class extends xD{constructor(e){super(e),hD(this,ID),hD(this,DD),this.computeCollisions=this.computeCollisions.bind(this),mD(this,DD,nE(PD)),this.destroy=lI((()=>{const e=this.computeCollisions(),t=XC((()=>this.manager.dragOperation.position.current));if(e!==PD){const e=fD(this,ID);if(mD(this,ID,t),e&&t.x==e.x&&t.y==e.y)return}else mD(this,ID,void 0);fD(this,DD).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){XC((()=>{e?fD(this,DD).value=this.computeCollisions():mD(this,ID,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return PD;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=XC((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?PD:(s.sort(ED),s)}get collisions(){return fD(this,DD).value}};ID=new WeakMap,DD=new WeakMap;var RD=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},LD=class extends RD{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function AD(e,t=!0){let r=!1;return tD(eD({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var kD,OD,qD,TD,_D,jD,ND,FD,zD,WD=class extends wD{constructor(e){super(e);let t=[];this.destroy=lI((()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())}),(()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=AD({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map((({id:e})=>e)).join("")===t.map((({id:e})=>e)).join(""))(o,t))return;t=o;const[a]=o;XC((()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then((()=>{r.enable()})))}))}))}},$D=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))($D||{}),VD=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(VD||{});ND=[iI],jD=[aI],_D=[aI],TD=[aI],qD=[aI],OD=[aI],kD=[aI];var HD=class{constructor(){uD(FD,5,this),hD(this,zD,uD(FD,8,this,"idle")),uD(FD,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};FD=oD(null),zD=new WeakMap,cD(FD,4,"value",ND,HD,zD),cD(FD,2,"current",jD,HD),cD(FD,2,"idle",_D,HD),cD(FD,2,"initializing",TD,HD),cD(FD,2,"initialized",qD,HD),cD(FD,2,"dragging",OD,HD),cD(FD,2,"dropped",kD,HD),lD(FD,HD);var BD,GD,UD,YD,KD,XD,JD,ZD,QD,eP=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return XC((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=AD({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return XC((()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;YC((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=AD({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then((()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))})),r)}))}move(e){return XC((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=AD({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask((()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l}))}))}stop(e={}){return XC((()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then((()=>{n.status.set("dropped");const e=XC((()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)})),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=fE((()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())}))}else this.manager.renderer.rendering.then(t)}))};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise(((t,r)=>{e.resume=t,e.abort=r})),e}}),i?i.then(a).catch((()=>n.reset())):a()}))}};YD=[iI],UD=[iI],GD=[iI],BD=[iI];var tP=class{constructor(e,t){hD(this,XD,uD(KD,8,this)),uD(KD,11,this),hD(this,JD,uD(KD,12,this)),uD(KD,15,this),hD(this,ZD,uD(KD,16,this)),uD(KD,19,this),hD(this,QD,uD(KD,20,this)),uD(KD,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};KD=oD(null),XD=new WeakMap,JD=new WeakMap,ZD=new WeakMap,QD=new WeakMap,cD(KD,4,"manager",YD,tP,XD),cD(KD,4,"id",UD,tP,JD),cD(KD,4,"data",GD,tP,ZD),cD(KD,4,"disabled",BD,tP,QD),lD(KD,tP);var rP,nP,oP,iP,aP,sP,lP,uP,cP,dP,pP,fP,hP,mP,gP,vP,yP,bP,xP,SP,wP,CP,EP,IP,DP=class{constructor(){this.map=nE(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=lI(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},PP=class extends(lP=tP,sP=[iI],aP=[iI],iP=[iI],oP=[aI],nP=[aI],rP=[aI],lP){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=nD(r,["modifiers","type","sensors"]);super(a,t),uD(uP,5,this),hD(this,cP,uD(uP,8,this)),uD(uP,11,this),hD(this,dP,uD(uP,12,this)),uD(uP,15,this),hD(this,pP,uD(uP,16,this,this.isDragSource?"dragging":"idle")),uD(uP,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};uP=oD(lP),cP=new WeakMap,dP=new WeakMap,pP=new WeakMap,cD(uP,4,"type",sP,PP,cP),cD(uP,4,"modifiers",aP,PP,dP),cD(uP,4,"status",iP,PP,pP),cD(uP,2,"isDropping",oP,PP),cD(uP,2,"isDragging",nP,PP),cD(uP,2,"isDragSource",rP,PP),lD(uP,PP);var MP=class extends(bP=tP,yP=[iI],vP=[iI],gP=[iI],mP=[iI],hP=[iI],fP=[aI],bP){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(nD(r,["accept","collisionDetector","collisionPriority","type"]),t),uD(xP,5,this),hD(this,SP,uD(xP,8,this)),uD(xP,11,this),hD(this,wP,uD(xP,12,this)),uD(xP,15,this),hD(this,CP,uD(xP,16,this)),uD(xP,19,this),hD(this,EP,uD(xP,20,this)),uD(xP,23,this),hD(this,IP,uD(xP,24,this)),uD(xP,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};xP=oD(bP),SP=new WeakMap,wP=new WeakMap,CP=new WeakMap,EP=new WeakMap,IP=new WeakMap,cD(xP,4,"accept",yP,MP,SP),cD(xP,4,"type",vP,MP,wP),cD(xP,4,"collisionDetector",gP,MP,CP),cD(xP,4,"collisionPriority",mP,MP,EP),cD(xP,4,"shape",hP,MP,IP),cD(xP,2,"isDropTarget",fP,MP),lD(xP,MP);var RP,LP=class extends xD{constructor(e,t){super(e,t),this.manager=e,this.options=t}},AP=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},kP=class{constructor(e){this.options=e,hD(this,RP)}set controller(e){mD(this,RP,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=fD(this,RP))||t.activate(e)}};RP=new WeakMap;var OP,qP,TP,_P,jP,NP,FP,zP,WP,$P,VP,HP,BP,GP,UP,YP,KP,XP,JP,ZP=class extends xD{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},QP=class{constructor(e){this.draggables=new DP,this.droppables=new DP,this.plugins=new CD(e),this.sensors=new CD(e),this.modifiers=new CD(e)}register(e,t){if(e instanceof PP)return this.draggables.register(e.id,e);if(e instanceof MP)return this.droppables.register(e.id,e);if(e.prototype instanceof ZP)return this.modifiers.register(e,t);if(e.prototype instanceof LP)return this.sensors.register(e,t);if(e.prototype instanceof xD)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof tP)return e instanceof PP?this.draggables.unregister(e.id,e):e instanceof MP?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof ZP)return this.modifiers.unregister(e);if(e.prototype instanceof LP)return this.sensors.unregister(e);if(e.prototype instanceof xD)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};WP=[aI],zP=[iI],FP=[iI],NP=[iI],jP=[iI],_P=[iI],TP=[aI],qP=[aI],OP=[aI];var eM=class{constructor(e){uD(BP,5,this),hD(this,$P),hD(this,VP),hD(this,HP,new cI(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new HD,hD(this,GP,uD(BP,8,this,!1)),uD(BP,11,this),hD(this,UP,uD(BP,12,this,null)),uD(BP,15,this),hD(this,YP,uD(BP,16,this,null)),uD(BP,19,this),hD(this,KP,uD(BP,20,this,null)),uD(BP,23,this),hD(this,XP,uD(BP,24,this,[])),uD(BP,27,this),this.position=new TI({x:0,y:0}),hD(this,JP,{x:0,y:0}),mD(this,$P,e)}get shape(){const{current:e,initial:t,previous:r}=fD(this,HP);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?fD(this,HP).current=e:fD(this,HP).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=fD(this,$P).registry.draggables.get(t);return r&&mD(this,VP,r),null!=(e=null!=r?r:fD(this,VP))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=fD(this,$P).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(tD(eD({},this.snapshot()),{transform:r}));return mD(this,JP,r),r}snapshot(){return XC((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:fD(this,JP),shape:this.shape?dI(this.shape):null,position:dI(this.position),status:dI(this.status),canceled:this.canceled})))}reset(){YC((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,fD(this,HP).reset(),this.position.reset({x:0,y:0}),mD(this,JP,{x:0,y:0}),this.modifiers=[]}))}};BP=oD(null),$P=new WeakMap,VP=new WeakMap,HP=new WeakMap,GP=new WeakMap,UP=new WeakMap,YP=new WeakMap,KP=new WeakMap,XP=new WeakMap,JP=new WeakMap,cD(BP,2,"shape",WP,eM),cD(BP,4,"canceled",zP,eM,GP),cD(BP,4,"activatorEvent",FP,eM,UP),cD(BP,4,"sourceIdentifier",NP,eM,YP),cD(BP,4,"targetIdentifier",jP,eM,KP),cD(BP,4,"modifiers",_P,eM,XP),cD(BP,2,"source",TP,eM),cD(BP,2,"target",qP,eM),cD(BP,2,"transform",OP,eM),lD(BP,eM);var tM={get rendering(){return Promise.resolve()}};function rM(e,t){return"function"==typeof e?e(t):null!=e?e:t}var nM=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach((e=>e.destroy())),this.registry.destroy(),this.collisionObserver.destroy()};const r=null!=e?e:{},n=rM(r.plugins,[]),o=rM(r.sensors,[]),i=rM(r.modifiers,[]),a=null!=(t=r.renderer)?t:tM,s=new LD(this),l=new QP(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new eP(this),this.dragOperation=new eM(this),this.collisionObserver=new MD(this),this.plugins=[WD,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=lI((()=>{var e,t,r;const n=XC((()=>this.dragOperation.modifiers)),o=this.modifiers;n!==o&&n.forEach((e=>e.destroy())),this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map((e=>{const{plugin:t,options:r}=bD(e);return new t(this,r)})))?r:o}));this.destroy=()=>{c(),u()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},oM=e=>{throw TypeError(e)},iM=(e,t,r)=>t.has(e)||oM("Cannot "+r),aM=(e,t,r)=>(iM(e,t,"read from private field"),t.get(e)),sM=(e,t,r)=>t.has(e)?oM("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),lM=(e,t,r,n)=>(iM(e,t,"write to private field"),t.set(e,r),r),uM=(e,t,r)=>(iM(e,t,"access private method"),r);function cM(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function dM(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(cM(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function pM(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function fM(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function hM(e){return"nodeType"in e}function mM(e){var t,r,n;return e?fM(e)?e:hM(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function gM(e){const{Document:t}=mM(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function vM(e){return!(!e||fM(e))&&(e instanceof mM(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function yM(e){return e instanceof mM(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function bM(e){return e?fM(e)?e.document:hM(e)?gM(e)?e:vM(e)||yM(e)?e.ownerDocument:document:document:document}function xM(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function SM(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(n=u.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!xM(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,v=r*g,y=r*m;return l={top:Math.max(l.top,f-v),right:Math.min(l.right,h+m+y),bottom:Math.min(l.bottom,f+g+v),left:Math.max(l.left,h-y),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function wM(e){return{x:e.clientX,y:e.clientY}}var CM="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function EM(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...EM(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...EM(o.document,t))}}catch(e){}return r}function IM(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function DM(){var e,t;const r=IM()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function PM(e){return!(!e||!hM(e))&&e instanceof mM(e).ShadowRoot}function MM(e){if(e&&hM(e)){let t=e.getRootNode();if(PM(t))return t;if(t instanceof Document)return t}return bM(e)}function RM(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function LM(e){return"value"in e}function AM(e){return"CANVAS"===e.tagName}function kM(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return kM(e,{x:t-o,y:r-i})}}return n}var OM=new WeakMap;var qM=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function TM(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function _M(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}((()=>{e.apply(a,i),o=r()}),t-(r()-o))):(e.apply(a,i),o=r())}}var jM,NM=CM?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},FM=class extends NM{constructor(e){super((t=>{aM(this,jM)?e(t,this):lM(this,jM,!0)})),sM(this,jM,!1)}};jM=new WeakMap;var zM,WM,$M,VM,HM,BM,GM,UM,YM,KM,XM,JM=Array.from({length:100},((e,t)=>t/100)),ZM=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,sM(this,YM),this.disconnect=()=>{var e,t,r;lM(this,GM,!0),null==(e=aM(this,$M))||e.disconnect(),null==(t=aM(this,VM))||t.disconnect(),aM(this,HM).disconnect(),null==(r=aM(this,BM))||r.remove()},sM(this,zM,!0),sM(this,WM),sM(this,$M),sM(this,VM),sM(this,HM),sM(this,BM),sM(this,GM,!1),sM(this,UM,_M((()=>{var e,t,r;const{element:n}=this;if(null==(e=aM(this,VM))||e.disconnect(),aM(this,GM)||!aM(this,zM)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=SM(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,lM(this,VM,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:OI.intersectionRatio(r,SM(n)))&&aM(this,UM).call(this)}),{threshold:JM,rootMargin:m,root:o})),aM(this,VM).observe(n),uM(this,YM,KM).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),lM(this,zM,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=SM(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(lM(this,BM,document.createElement("div")),aM(this,BM).style.background="rgba(0,0,0,0.15)",aM(this,BM).style.position="fixed",aM(this,BM).style.pointerEvents="none",o.body.appendChild(aM(this,BM))),lM(this,HM,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=aM(this,zM);lM(this,zM,a),(s||l)&&(u&&!a?(null==(r=aM(this,VM))||r.disconnect(),this.callback(null),null==(n=aM(this,$M))||n.disconnect(),lM(this,$M,void 0),aM(this,BM)&&(aM(this,BM).style.visibility="hidden")):aM(this,UM).call(this),a&&!aM(this,$M)&&(lM(this,$M,new FM(aM(this,UM))),aM(this,$M).observe(e)))}),{threshold:JM,root:o})),aM(this,zM)&&!r.skipInitial&&this.callback(this.boundingClientRect),aM(this,HM).observe(e)}};zM=new WeakMap,WM=new WeakMap,$M=new WeakMap,VM=new WeakMap,HM=new WeakMap,BM=new WeakMap,GM=new WeakMap,UM=new WeakMap,YM=new WeakSet,KM=function(){aM(this,GM)||(uM(this,YM,XM).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,aM(this,WM))||(this.callback(this.boundingClientRect),lM(this,WM,this.boundingClientRect)))},XM=function(){if(aM(this,BM)){const{top:e,left:t,width:r,height:n}=SM(this.element);aM(this,BM).style.overflow="hidden",aM(this,BM).style.visibility="visible",aM(this,BM).style.top=`${Math.floor(e)}px`,aM(this,BM).style.left=`${Math.floor(t)}px`,aM(this,BM).style.width=`${Math.floor(r)}px`,aM(this,BM).style.height=`${Math.floor(n)}px`}};var QM,eR,tR,rR,nR=new WeakMap,oR=new WeakMap;function iR(e,t){let r=nR.get(e);if(!r){const t=new ZM(e,(t=>{const r=nR.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),nR.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(nR.delete(e),r.disconnect())}}var aR=class{constructor(e,t,r){this.callback=t,sM(this,QM),sM(this,eR,!1),sM(this,tR),sM(this,rR,_M((e=>{if(!aM(this,eR)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of aM(this,tR))if(e.target.contains(t)){this.callback(aM(this,QM).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=TM(e);for(;r;)t.add(r),r=TM(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=iR(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!oR.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",(e=>t.forEach((t=>t(e)))),{capture:!0,passive:!0,signal:e.signal}),oR.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=oR.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),oR.delete(n))}):()=>{}}(e,aM(this,rR));lM(this,tR,n),lM(this,QM,new ZM(e,t,r)),this.disconnect=()=>{aM(this,eR)||(lM(this,eR,!0),o(),i(),aM(this,QM).disconnect())}}};function sR(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function lR(e){try{sR(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function uR(e){return!(!CM||!e)&&e===bM(e).scrollingElement}function cR(e){var t,r;const n=mM(e),o=uR(e)?function(e){var t,r,n,o;const{documentElement:i}=bM(e),a=mM(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,u=null!=(n=null==a?void 0:a.offsetTop)?n:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):pM(e),i=n.visualViewport,a=uR(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function dR(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=cR(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}QM=new WeakMap,eR=new WeakMap,tR=new WeakMap,rR=new WeakMap;var pR=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}},fR=new pR((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),hR=new pR((e=>setTimeout(e,50))),mR=new Map,gR=mR.clear.bind(mR);function vR(e,t=!1){if(!t)return yR(e);let r=mR.get(e);return r||(r=yR(e),mR.set(e,r),hR.schedule(gR),r)}function yR(e){return mM(e).getComputedStyle(e)}var bR={excludeElement:!0,escapeShadowDOM:!0};function xR(e,t=bR){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(gM(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&PM(a))return t(a.host);if(!vM(a))return yM(a)?t(a.parentElement):i;if(i.has(a))return i;const s=vR(a,!0);if(n&&a===e||function(e,t=vR(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(a,s)&&i.add(a),function(e,t=vR(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function SR(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=TM(e);for(;n;){if(n===t)return r;const e=pM(n),{x:o,y:i}=wR(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=TM(n)}return r}function wR(e,t=pM(e)){const r=Math.round(t.width),n=Math.round(t.height);if(vM(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=vR(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function CR(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function ER(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=CR(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,v=null!=(r=null==f?void 0:f.y)?r:1,y=null!=(n=null==h?void 0:h.x)?n:0,b=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:y+x,y:b+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:v*C}}var IR=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(IR||{}),DR={x:.2,y:.2},PR={x:10,y:10};function MR(e,t,r,n=25,o=DR,i=PR){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=cR(e),f=SR(e),h=ER(vR(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new OI(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),y={x:0,y:0},b={x:0,y:0},x=v.height*o.y,S=v.width*o.x;return(!u||g&&!c)&&s<=v.top+x&&1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x?(y.y=g?1:-1,b.y=n*Math.abs((v.top+x-s)/x)):(!c||g&&!u)&&s>=v.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x&&(y.y=g?-1:1,b.y=n*Math.abs((v.bottom-x-s)/x)),(!p||m&&!d)&&a>=v.right-S&&-1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y?(y.x=m?-1:1,b.x=n*Math.abs((v.right-S-a)/S)):(!d||m&&!p)&&a<=v.left+S&&1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y&&(y.x=m?1:-1,b.x=n*Math.abs((v.left+S-a)/S)),{direction:y,speed:b}}function RR(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!vM(e))return e.scrollIntoView();var n=function(e){const[t]=xR(e,{limit:1});return null!=t?t:null}(e);if(!vM(n))return;const o=vR(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function LR({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function AR(e,t=vR(e).translate,r=!0){if(r){const t=dM(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=CR(e);if(t)return t}}}if(t){const e=CR(t);if(e)return e}return{x:0,y:0,z:0}}var kR=new pR((e=>setTimeout(e,0))),OR=new Map,qR=OR.clear.bind(OR);function TR(e,t){const r=function(e){const t=e.ownerDocument;let r=OR.get(t);if(r)return r;r=t.getAnimations(),OR.set(t,r),kR.schedule(qR);const n=r.filter((t=>cM(t.effect)&&t.effect.target===e));return OR.set(e,n),r}(e).filter((e=>{var r,n;if(cM(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some((e=>{for(const r of t.properties)if(e[r])return!0}))}})).map((e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0}));if(r.length>0)return()=>r.forEach((e=>null==e?void 0:e()))}var _R=class extends OI{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=SR(e),ignoreTransforms:s,getBoundingClientRect:l=pM}=t,u=TR(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||IM())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=vR(e),v=ER(g),y={x:null!=(r=null==v?void 0:v.scaleX)?r:1,y:null!=(n=null==v?void 0:v.scaleY)?n:1},b=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=cM(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=ER({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),v&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,v,g.transformOrigin),(s||b)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(b&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,b,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,y.x=b.scaleX,y.y=b.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=y,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function jR(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var NR=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(jR(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(jR(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(jR(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function FR(e){return!!e&&(e instanceof mM(e).Element||hM(e)&&e.nodeType===Node.ELEMENT_NODE)}function zR(e){if(!e)return!1;const{KeyboardEvent:t}=mM(e.target);return e instanceof t}var WR={};function $R(e){const t=null==WR[e]?0:WR[e]+1;return WR[e]=t,`${e}-${t}`}var VR=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/kI.distance(t.shape.center,r),type:VD.PointerIntersection,priority:$D.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=kI.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:VD.ShapeIntersection,priority:$D.Normal}}return null})(e)},HR=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?OI.from(n.current.boundingRectangle).corners:void 0,a=OI.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+kI.distance(kI.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)}),0),s=a/4;return{id:r.id,value:1/s,type:VD.Collision,priority:$D.Normal}},BR=Object.create,GR=Object.defineProperty,UR=Object.defineProperties,YR=Object.getOwnPropertyDescriptor,KR=Object.getOwnPropertyDescriptors,XR=Object.getOwnPropertySymbols,JR=Object.prototype.hasOwnProperty,ZR=Object.prototype.propertyIsEnumerable,QR=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),eL=e=>{throw TypeError(e)},tL=(e,t,r)=>t in e?GR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rL=(e,t)=>{for(var r in t||(t={}))JR.call(t,r)&&tL(e,r,t[r]);if(XR)for(var r of XR(t))ZR.call(t,r)&&tL(e,r,t[r]);return e},nL=(e,t)=>UR(e,KR(t)),oL=(e,t)=>GR(e,"name",{value:t,configurable:!0}),iL=(e,t)=>{var r={};for(var n in e)JR.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&XR)for(var n of XR(e))t.indexOf(n)<0&&ZR.call(e,n)&&(r[n]=e[n]);return r},aL=e=>{var t;return[,,,BR(null!=(t=null==e?void 0:e[QR("metadata")])?t:null)]},sL=["class","method","getter","setter","accessor","field","value","get","set"],lL=e=>void 0!==e&&"function"!=typeof e?eL("Function expected"):e,uL=(e,t,r,n,o)=>({kind:sL[e],name:t,metadata:n,addInitializer:e=>r._?eL("Already initialized"):o.push(lL(e||null))}),cL=(e,t)=>tL(t,QR("metadata"),e[3]),dL=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},pL=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=sL[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&YR(d<4?o:{get[r](){return mL(this,i)},set[r](e){return vL(this,i,e)}},r));d?f&&d<4&&oL(i,(d>2?"set ":d>1?"get ":"")+r):oL(o,r);for(var b=n.length-1;b>=0;b--)u=uL(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>hL(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?mL:yL)(e,o,4^d?i:y.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>vL(e,o,t,4^d?i:y.set):(e,t)=>e[r]=t)),s=(0,n[b])(d?d<4?f?i:y[m]:d>4?void 0:{get:y.get,set:y.set}:o,u),l._=1,4^d||void 0===s?lL(s)&&(d>4?g.unshift(s):d?f?i=s:y[m]=s:o=s):"object"!=typeof s||null===s?eL("Object expected"):(lL(a=s.get)&&(y.get=a),lL(a=s.set)&&(y.set=a),lL(a=s.init)&&g.unshift(a));return d||cL(e,o),y&&GR(o,r,y),f?4^d?i:y:o},fL=(e,t,r)=>t.has(e)||eL("Cannot "+r),hL=(e,t)=>Object(t)!==t?eL('Cannot use the "in" operator on this value'):e.has(t),mL=(e,t,r)=>(fL(e,t,"read from private field"),r?r.call(e):t.get(e)),gL=(e,t,r)=>t.has(e)?eL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),vL=(e,t,r,n)=>(fL(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),yL=(e,t,r)=>(fL(e,t,"access private method"),r),bL="button",xL="draggable",SL="dnd-kit-description",wL="dnd-kit-announcement",CL={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},EL={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function IL(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var DL=["dragover","dragmove"];var PL,ML,RL,LL,AL,kL,OL,qL,TL,_L,jL,NL=new Map,FL=class extends(AL=wD,LL=[iI],RL=[aI],ML=[aI],PL=[aI],AL){constructor(e){super(e),dL(OL,5,this),gL(this,TL),gL(this,kL,new Set),gL(this,qL,dL(OL,8,this,new Set)),dL(OL,11,this),this.registerEffect(yL(this,TL,_L))}register(e){return mL(this,kL).add(e),()=>{mL(this,kL).delete(e)}}addRoot(e){return XC((()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t})),()=>{XC((()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t}))}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return MM(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return MM(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter((e=>null!=e));return new Set([...e,...this.additionalRoots])}return new Set}};OL=aL(AL),kL=new WeakMap,qL=new WeakMap,TL=new WeakSet,_L=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of mL(this,kL))t.push(yL(this,TL,jL).call(this,r,e));return()=>{for(const e of t)e()}},jL=function(e,t){let r=NL.get(e);r||(r=new Map,NL.set(e,r));let n=r.get(t);if(!n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets),0;const o=gM(e)?e.defaultView:e.ownerDocument.defaultView,{CSSStyleSheet:i}=null!=o?o:{};if(!i)return()=>{};const a=new i;a.replaceSync(t),e.adoptedStyleSheets.push(a),n={sheet:a,refCount:0,cleanup:()=>{var n;if(gM(e)||PM(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(a);-1!==t&&e.adoptedStyleSheets.splice(t,1)}r.delete(t),0===r.size&&NL.delete(e)}},r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},pL(OL,4,"additionalRoots",LL,FL,qL),pL(OL,2,"sourceRoot",RL,FL),pL(OL,2,"targetRoot",ML,FL),pL(OL,2,"roots",PL,FL),cL(OL,FL);var zL="data-dnd-",WL=`${zL}dropping`,$L="--dnd-",VL=`${zL}dragging`,HL=`${zL}placeholder`,BL=[VL,HL,"popover","aria-pressed","aria-grabbing"],GL=["view-transition-name"],UL=`\n :is(:root,:host) [${VL}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${$L}top, 0px) !important;\n left: var(${$L}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${$L}width, auto);\n max-width: var(${$L}width, auto);\n height: var(${$L}height, auto);\n max-height: var(${$L}height, auto);\n transition: var(${$L}transition) !important;\n }\n\n :is(:root,:host) [${HL}] {\n transition: none;\n }\n\n :is(:root,:host) [${HL}='hidden'] {\n visibility: hidden;\n }\n\n [${VL}] * {\n pointer-events: none !important;\n }\n\n [${VL}]:not([${WL}]) {\n translate: var(${$L}translate) !important;\n }\n\n [${VL}][style*='${$L}scale'] {\n scale: var(${$L}scale) !important;\n transform-origin: var(${$L}transform-origin) !important;\n }\n\n @layer {\n :where([${VL}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${VL}]::backdrop, [${zL}overlay]:not([${VL}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function YL(e,t="hidden"){return XC((()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${zL}${$R("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach(((e,t)=>{const r=n[t];if(LM(e)&&LM(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),AM(e)&&AM(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}})),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),OM.set(a,i),r.push((()=>{OM.delete(a),n.proxy=void 0}))}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(HL,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function KL(e,t){return e===t||TM(e)===TM(t)}function XL(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&FR(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>lR(t)))}function JL(e){return"TR"===e.tagName}var ZL,QL,eA,tA,rA,nA,oA,iA=250,aA="ease";var sA=class extends(QL=xD,ZL=[iI],QL){constructor(e,t){super(e,t),gL(this,rA),gL(this,tA,dL(eA,8,this)),dL(eA,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(FL),n=null==r?void 0:r.register(UL);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(yL(this,rA,nA).bind(this,r)),this.registerEffect(yL(this,rA,oA))}};eA=aL(QL),tA=new WeakMap,rA=new WeakSet,nA=function(e){const{overlay:t}=this;if(!t||!e)return;const r=MM(t);return r?e.addRoot(r):void 0},oA=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=SR(f),m=SR(c),g=!KL(c,f),v=new _R(c,{frameTransform:g?m:null,ignoreTransforms:!g}),y=m.scaleX/h.scaleX,b=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=v;g&&(x/=y,S/=b);const E=new NR(f),{transition:I,translate:D,boxSizing:P,paddingBlockStart:M,paddingBlockEnd:R,paddingInlineStart:L,paddingInlineEnd:A,borderInlineStartWidth:k,borderInlineEndWidth:O,borderBlockStartWidth:q,borderBlockEndWidth:T}=vR(c),_="clone"===d,j="content-box"===P,N=j?parseInt(L)+parseInt(A)+parseInt(k)+parseInt(O):0,F=j?parseInt(M)+parseInt(R)+parseInt(q)+parseInt(T):0,z="move"===d||this.overlay?null:YL(l,_?"clone":"hidden"),W=XC((()=>zR(o.dragOperation.activatorEvent)));if("none"!==D){const e=CR(D);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=XC((()=>s.current));p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:$}=p,V=w*h.scaleY+h.y,H=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:H,y:V},1!==y||1!==b)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=$;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const B=p.coordinates.x-H,G=p.coordinates.y-V,U=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*$.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*$.y,K={x:B/h.scaleX+U,y:G/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(VL,"true");const Z=XC((()=>a.transform)),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,re=DM();if(E.set({width:x-N,height:S-F,top:J+re.y,left:X+re.x,translate:`${ee}px ${te}px 0`,transition:I?`${I}, translate 0ms linear`:"",scale:g?`${y} ${b}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},$L),z&&(c.insertAdjacentElement("afterend",z),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let ne,oe,ie;sR(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),lR(f),f.addEventListener("beforetoggle",XL));const ae=(se={placeholder:z,element:c,feedbackElement:f,frameTransform:h,transformOrigin:$,width:x,height:S,top:w,left:C,widthOffset:N,heightOffset:F,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver((()=>{var e,t;const r=new _R(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),n=null!=(e=se.transformOrigin)?e:{x:1,y:1},o=(se.width-r.width)*n.x+se.delta.x,i=(se.height-r.height)*n.y+se.delta.y,a=DM();if(se.styles.set({width:r.width-se.widthOffset,height:r.height-se.heightOffset,top:se.top+i+a.y,left:se.left+o+a.x},$L),null==(t=se.getElementMutationObserver())||t.takeRecords(),JL(se.element)&&JL(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map((e=>e.style.width)));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new _R(se.feedbackElement)})));var se;const le=new _R(f);XC((()=>a.shape=le));const ue=mM(f),ce=e=>{this.manager.actions.stop({event:e})},de=RM(ue);W&&ue.addEventListener("resize",ce),"idle"===XC((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),z&&(ae.observe(z),ne=function(e,t,r){const n=new MutationObserver((n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||BL.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(jR(e)&&jR(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(GL.includes(e)||e.startsWith($L))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)}));return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,z,_),oe=function(e,t,r){const n=new MutationObserver((n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void lR(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void lR(r)}}));return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,z,f));const pe=null==(r=o.dragOperation.source)?void 0:r.id,fe=()=>{var e;if(!W||null==pe)return;const t=o.registry.draggables.get(pe),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;vM(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),sR(f)&&(f.removeEventListener("beforetoggle",XL),f.removeAttribute("popover")),f.removeAttribute(VL),E.reset(),ie&&JL(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ie[r])?e:""}l.status="idle";const t=null!=n.current.translate;z&&(t||z.parentElement!==f.parentElement)&&f.isConnected&&z.replaceWith(f),null==z||z.remove()},me=null==i?void 0:i.dropAnimation,ge=this,ve=lI((()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=XC((()=>a.modifiers)),l=XC((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=W&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${I}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},$L),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=kI.delta(o,i);a.shape=OI.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new _R(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=n.current.translate;const r=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();o.renderer.rendering.then((()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then((()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}const{duration:a=iA,easing:s=aA}=null!=i?i:{};lR(e.feedbackElement);const[,l]=null!=(t=dM(e.feedbackElement,(e=>"translate"in e)))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:KL(e.feedbackElement,u)?null:void 0},d=new _R(e.feedbackElement,c),p=null!=(n=CR(vR(e.feedbackElement).translate))?n:e.translate,f=new _R(u,c),h=OI.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,v=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},y=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},$L),e.feedbackElement.setAttribute(WL,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),LR({element:e.feedbackElement,keyframes:nL(rL(rL({},v),y),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:RM(mM(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then((()=>{e.feedbackElement.removeAttribute(WL),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}({element:c,feedbackElement:f,placeholder:z,translate:t,moved:r,transition:I,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>ne,cleanup:he,restoreFocus:fe})}))}}));return()=>{he(),ve()}},pL(eA,4,"overlay",ZL,sA,tA),cL(eA,sA),sA.configure=yD(sA);var lA,uA,cA,dA,pA,fA,hA,mA=sA,gA=!0;cA=[iI],dA=IR.Forward,lA=[iI],uA=IR.Reverse;var vA=class{constructor(){gL(this,fA,dL(pA,8,this,gA)),dL(pA,11,this),gL(this,hA,dL(pA,12,this,gA)),dL(pA,15,this)}isLocked(e){return e!==IR.Idle&&(null==e?this[IR.Forward]===gA&&this[IR.Reverse]===gA:this[e]===gA)}unlock(e){e!==IR.Idle&&(this[e]=false)}};pA=aL(null),fA=new WeakMap,hA=new WeakMap,pL(pA,4,dA,cA,vA,fA),pL(pA,4,uA,lA,vA,hA),cL(pA,vA);var yA,bA,xA,SA,wA,CA,EA=[IR.Forward,IR.Reverse],IA=class{constructor(){this.x=new vA,this.y=new vA}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},DA=class extends xD{constructor(e){super(e);const t=nE(new IA);let r=null;this.signal=t,fE((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new IA);const{delta:o}=e.dragOperation.position;if(r){const e={x:PA(o.x,r.x),y:PA(o.y,r.y)},n=t.peek();YC((()=>{for(const t of $I)for(const r of EA)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function PA(e,t){return Math.sign(e-t)}var MA=class extends(bA=wD,yA=[iI],bA){constructor(e){super(e),gL(this,SA,dL(xA,8,this,!1)),dL(xA,11,this),gL(this,wA),gL(this,CA,(()=>{if(!mL(this,wA))return;const{element:e,by:t}=mL(this,wA);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)})),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return vL(this,wA,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:RA(n.x),y:RA(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=dR(e,n);if(r.x||r.y){const{speed:r,direction:s}=MR(e,o,i);if(a)for(const e of $I)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=mL(this,wA))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return vL(this,wA,{element:e,by:{x:a,y:l}}),fR.schedule(mL(this,CA)),!0}}}}}return vL(this,wA,void 0),!1};let t=null,r=null;const n=nI((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=kM(MM(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=nI((()=>{const t=n.value,{documentElement:o}=bM(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=xR(n,{excludeElement:!1});return r=e,e}}if(t){const e=xR(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),oI);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new DA(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&zR(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function RA(e){return e>0?IR.Forward:e<0?IR.Reverse:IR.Idle}xA=aL(bA),SA=new WeakMap,wA=new WeakMap,CA=new WeakMap,pL(xA,4,"autoScrolling",yA,MA,SA),cL(xA,MA);var LA,AA=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}}((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),kA=class extends xD{constructor(e,t){super(e);const r=e.registry.plugins.get(MA);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=fE((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>AA.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},OA={capture:!0,passive:!0},qA=class extends wD{constructor(e){super(e),gL(this,LA),this.handleScroll=()=>{null==mL(this,LA)&&vL(this,LA,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),vL(this,LA,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=fE((()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,OA),()=>{o.removeEventListener("scroll",this.handleScroll,OA)}}}))}};LA=new WeakMap;function TA(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var _A,jA=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),NA=class extends LP{constructor(e,t){super(e),this.manager=e,this.options=t,gL(this,_A,[]),this.listeners=new qM,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!FR(e.target))return;if(t.disabled)return;const{keyboardCodes:n=jA.keyboardCodes,preventActivation:o=jA.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=fE((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{zR(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}));return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),RR(n);const{center:o}=new _R(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=bM(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];mL(this,_A).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=jA.keyboardCodes}=null!=r?r:{};if(WA(e,[...n.end,...n.cancel])){e.preventDefault();const t=WA(e,n.cancel);this.handleEnd(e,t)}else WA(e,n.up)?this.handleMove("up",e):WA(e,n.down)&&this.handleMove("down",e),WA(e,n.left)?this.handleMove("left",e):WA(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:jA.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(kA);!1===(null==e?void 0:e.disabled)&&(e.disable(),mL(this,_A).push((()=>{e.enable()})))}cleanup(){mL(this,_A).forEach((e=>e())),vL(this,_A,[])}destroy(){this.cleanup(),this.listeners.clear()}};_A=new WeakMap,NA.configure=yD(NA),NA.defaults=jA;var FA,zA=NA;function WA(e,t){return t.includes(e.code)}var $A,VA;FA=new WeakMap;$A=new WeakMap,VA=new WeakMap;var HA=class{};HA.Delay=class extends kP{constructor(){super(...arguments),gL(this,$A),gL(this,VA)}onEvent(e){switch(e.type){case"pointerdown":vL(this,VA,wM(e)),vL(this,$A,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!mL(this,VA))return;const{x:t,y:r}=wM(e);_I({x:t-mL(this,VA).x,y:r-mL(this,VA).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){mL(this,$A)&&(clearTimeout(mL(this,$A)),vL(this,VA,void 0),vL(this,$A,void 0))}},HA.Distance=class extends kP{constructor(){super(...arguments),gL(this,FA)}onEvent(e){switch(e.type){case"pointerdown":vL(this,FA,wM(e));break;case"pointermove":if(!mL(this,FA))return;const{x:t,y:r}=wM(e),n={x:t-mL(this,FA).x,y:r-mL(this,FA).y},{tolerance:o}=this.options;if(o&&_I(n,o))return void this.abort();_I(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){vL(this,FA,void 0)}};var BA,GA=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!FR(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new HA.Delay({value:250,tolerance:5})]:function(e){if(!FR(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new HA.Delay({value:200,tolerance:0})]:[new HA.Delay({value:200,tolerance:10}),new HA.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!FR(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),UA=class extends LP{constructor(e,t){super(e),this.manager=e,this.options=t,gL(this,BA,new Set),this.listeners=new qM,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=GA.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=fE((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=mM(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(ZA(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()}));return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!FR(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=GA.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=vM(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=SR(t.element),{x:s,y:l}=wM(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new AP(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=EM(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:KA,options:{capture:!0}}]);mL(this,BA).add((()=>{p(),this.initialCoordinates=void 0}))}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=wM(e),n=SR(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,fR.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=bM(t.target).body;o.setPointerCapture(t.pointerId);const i=FR(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:KA,options:{passive:!1}},{type:"click",listener:KA},{type:"contextmenu",listener:KA},{type:"keydown",listener:this.handleKeyDown}]);mL(this,BA).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},mL(this,BA).forEach((e=>e())),mL(this,BA).clear()}destroy(){this.cleanup(),this.listeners.clear()}};BA=new WeakMap,UA.configure=yD(UA),UA.defaults=GA;var YA=UA;function KA(e){e.preventDefault()}function XA(){}var JA=new WeakSet;function ZA(e){e&&!JA.has(e)&&(e.addEventListener("touchmove",XA,{capture:!1,passive:!1}),JA.add(e))}var QA,ek,tk,rk,nk,ok,ik,ak,sk,lk,uk,ck,dk,pk,fk,hk,mk,gk,vk={modifiers:[],plugins:[class extends xD{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=SL,announcement:o=wL}={},announcements:i=EL,screenReaderInstructions:a=CL,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:$R(n),u=r?`${o}-${r}`:$R(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>fR.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),v=Object.entries(i).map((([e,t])=>this.manager.monitor.addEventListener(e,((r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,DL.includes(e)?g():(m(),g.cancel()))})))),y=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},b=new Set;function x(){for(const e of b)e()}this.registerEffect((()=>{var e;b.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||b.add(y),IL(r)&&!IM()||r.hasAttribute("tabindex")||b.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||b.add((()=>r.setAttribute("role",bL))),r.hasAttribute("aria-roledescription")||b.add((()=>r.setAttribute("aria-roledescription",xL))),r.hasAttribute("aria-describedby")||b.add((()=>r.setAttribute("aria-describedby",l)));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&b.add((()=>r.setAttribute(e,n)))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&b.add((()=>r.setAttribute("aria-disabled",e)))}}b.size>0&&fR.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach((e=>e()))}}},kA,class extends xD{constructor(e,t){super(e,t),this.manager=e;const r=nI((()=>{var e;return bM(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=fE((()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}}))}},mA,class extends xD{constructor(e,t){super(e,t),this.manager=e,this.destroy=fE((()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),TA(),document.addEventListener("selectionchange",TA,{capture:!0}),()=>{document.removeEventListener("selectionchange",TA,{capture:!0}),e.remove()}}}))}}],sensors:[YA,zA]},yk=class extends nM{constructor(e={}){const t=rM(e.plugins,vk.plugins),r=rM(e.sensors,vk.sensors),n=rM(e.modifiers,vk.modifiers);super(nL(rL({},e),{plugins:[qA,MA,FL,...t],sensors:r,modifiers:n}))}},bk=class extends(rk=PP,tk=[iI],ek=[iI],QA=[iI],rk){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=iL(r,["element","effects","handle","feedback"]);super(rL({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(bD))?t:[...r.sensors]).map((e=>{const t=e instanceof LP?e:r.registry.register(e.plugin),n=e instanceof LP?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),gL(this,ok,dL(nk,8,this)),dL(nk,11,this),gL(this,ik,dL(nk,12,this)),dL(nk,15,this),gL(this,ak,dL(nk,16,this)),dL(nk,19,this),this.element=n,this.handle=i,this.feedback=a}};nk=aL(rk),ok=new WeakMap,ik=new WeakMap,ak=new WeakMap,pL(nk,4,"handle",tk,bk,ok),pL(nk,4,"element",ek,bk,ik),pL(nk,4,"feedback",QA,bk,ak),cL(nk,bk);var xk=class extends(uk=MP,lk=[iI],sk=[iI],uk){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=iL(r,["element","effects"]);const{collisionDetector:a=VR}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new _R(r),o=XC((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=nE(!1);super(nL(rL({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new aR(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),gL(this,mk),gL(this,dk,dL(ck,8,this)),dL(ck,11,this),gL(this,gk,dL(ck,12,this)),dL(ck,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){vL(this,mk,e,hk)}get element(){var e;return null!=(e=this.proxy)?e:mL(this,mk,fk)}};function Sk(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}ck=aL(uk),dk=new WeakMap,mk=new WeakSet,gk=new WeakMap,pk=pL(ck,20,"#element",lk,mk,dk),fk=pk.get,hk=pk.set,pL(ck,4,"proxy",sk,xk,gk),cL(ck,xk);var wk="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?g:d;function Ck(){const e=m(0)[1];return f((()=>{e((e=>e+1))}),[e])}function Ek(e,t=[],r=!1){const n=l(e);return n.current=e,function(e,t=!1){const r=l(e.peek()),n=l(!1),o=Ck();return wk((()=>fE((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?D(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(v((()=>nI((()=>n.current()))),t),r)}function Ik(e,t){const r=l(new Map),n=Ck();return wk((()=>{if(e)return fE((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=XC((()=>n[1])),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?D(n):n())}));r.current.clear()}),[e]),v((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function Dk(e,t){e()}function Pk(e){const t=l(e);return wk((()=>{t.current=e}),[e]),t}function Mk(e,t,r=d,n=Object.is){const o=l(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function Rk(e,t){const r=l(Sk(e));wk((()=>{const n=Sk(e);n!==r.current&&(r.current=n,t(n))}))}var Lk=Object.defineProperty,Ak=Object.defineProperties,kk=Object.getOwnPropertyDescriptors,Ok=Object.getOwnPropertySymbols,qk=Object.prototype.hasOwnProperty,Tk=Object.prototype.propertyIsEnumerable,_k=(e,t,r)=>t in e?Lk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,jk=new yk,Nk=u(jk),Fk=b(x((({children:e},t)=>{const[r,n]=m(0),o=l(null),i=l(null),a=v((()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise((e=>{i.current=e}))),S((()=>{e(),n((e=>e+1))}))}})),[]);return wk((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),w(t,(()=>a)),null}))),zk=[void 0,oI];function Wk(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:u}=t,c=((e,t)=>{var r={};for(var n in e)qk.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Ok)for(var n of Ok(e))t.indexOf(n)<0&&Tk.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const p=l(null),{plugins:f,modifiers:h,sensors:m}=c,g=rM(f,vk.plugins),v=rM(m,vk.sensors),b=rM(h,vk.modifiers),x=Pk(o),S=Pk(i),w=Pk(s),C=Pk(a),E=Pk(u),I=Pk(n),D=function(e){const t=l(null);t.current||(t.current=e());return y((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=c.manager)?e:new yk(c)}));return d((()=>{if(!p.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=p.current,{monitor:r}=D;D.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=x.current;r&&t((()=>r(e,D)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=S.current)?void 0:t.call(S,e,D)})),r.addEventListener("dragover",(e=>{const r=w.current;r&&t((()=>r(e,D)))})),r.addEventListener("dragmove",(e=>{const r=C.current;r&&t((()=>r(e,D)))})),r.addEventListener("dragend",(e=>{const r=E.current;r&&t((()=>r(e,D)))})),r.addEventListener("collision",(e=>{var t;return null==(t=I.current)?void 0:t.call(I,e,D)}))];return()=>n.forEach((e=>e()))}),[D]),Mk(g,(()=>D&&(D.plugins=g)),...zk),Mk(v,(()=>D&&(D.sensors=v)),...zk),Mk(b,(()=>D&&(D.modifiers=b)),...zk),ii.jsxs(Nk.Provider,{value:D,children:[ii.jsx(Fk,{ref:p,children:r}),r]})}function $k(){return h(Nk)}function Vk(e){var t;const r=null!=(t=$k())?t:void 0,[n]=m((()=>e(r)));return n.manager!==r&&(n.manager=r),wk(n.register,[r,n]),n}function Hk({children:e,className:t,dropAnimation:r,style:o,tag:i,disabled:a}){var s;const u=l(null),c=$k(),p=null!=(s=Ek((()=>null==c?void 0:c.dragOperation.source),[c]).value)?s:null,f="function"==typeof a?a(p):a;d((()=>{if(!u.current||!c||f)return;const e=c.plugins.find((e=>e instanceof mA));return e?(e.overlay=u.current,()=>{e.overlay=void 0}):void 0}),[c,f]),d((()=>{if(!c)return;const e=c.plugins.find((e=>e instanceof mA));return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0}),[c,r]);const h=v((()=>{if(!c)return null;const e=new Proxy(c.registry,{get:(e,t)=>"register"===t||"unregister"===t?Bk:e[t]});return new Proxy(c,{get:(t,r)=>"registry"===r?e:t[r]})}),[c]);return ii.jsx(Nk.Provider,{value:h,children:n(i||"div",{ref:u,className:t,style:o,"data-dnd-overlay":!0},function(){if(!p||f)return null;if("function"==typeof e)return ii.jsx(Gk,{source:p,children:e});return e}())})}function Bk(){return()=>{}}function Gk({children:e,source:t}){return e(Ik(t))}var Uk,Yk,Kk,Xk,Jk,Zk=Object.create,Qk=Object.defineProperty,eO=Object.getOwnPropertyDescriptor,tO=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),rO=e=>{throw TypeError(e)},nO=["class","method","getter","setter","accessor","field","value","get","set"],oO=e=>void 0!==e&&"function"!=typeof e?rO("Function expected"):e,iO=(e,t,r,n,o)=>({kind:nO[e],name:t,metadata:n,addInitializer:e=>r._?rO("Already initialized"):o.push(oO(e||null))}),aO=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=nO[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,eO(o,r)),h=n.length-1;h>=0;h--)(l=iO(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,oO(a)&&(f[d]=a);return f&&Qk(o,r,f),o},sO=(e,t,r)=>t.has(e)||rO("Cannot "+r),lO=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},uO=class extends(Kk=cI,Yk=[aI],Uk=[aI],Kk){constructor(e){var t,r,n;super(lO.from(e),((e,t)=>lO.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(Jk,5,this),t=this,n=0,(r=Xk).has(t)?rO("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return lO.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=lO.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(sO(a=this,s=Xk,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);YC((()=>{((e,t,r)=>{sO(e,t,"write to private field"),t.set(e,r)})(this,Xk,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(lO.from(e)),this.velocity={x:0,y:0}}};Jk=(e=>{var t;return[,,,Zk(null!=(t=null==e?void 0:e[tO("metadata")])?t:null)]})(Kk),Xk=new WeakMap,aO(Jk,2,"delta",Yk,uO),aO(Jk,2,"direction",Uk,uO),((e,t)=>{((e,t,r)=>{t in e?Qk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,tO("metadata"),e[3])})(Jk,uO);var cO=(e=>(e.Horizontal="x",e.Vertical="y",e))(cO||{});Object.values(cO);var dO=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/lO.distance(t.shape.center,r),type:VD.PointerIntersection,priority:$D.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=lO.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:VD.ShapeIntersection,priority:$D.Normal}}return null})(e)};function pO(e){const{collisionDetector:t,data:r,disabled:n,element:o,id:i,accept:a,type:s}=e,l=Vk((t=>new xk(((e,t)=>Ak(e,kk(t)))(((e,t)=>{for(var r in t||(t={}))qk.call(t,r)&&_k(e,r,t[r]);if(Ok)for(var r of Ok(t))Tk.call(t,r)&&_k(e,r,t[r]);return e})({},e),{register:!1,element:Sk(o)}),t))),u=Ik(l);return Mk(i,(()=>l.id=i)),Rk(o,(e=>l.element=e)),Mk(a,(()=>l.accept=a),void 0,oI),Mk(t,(()=>l.collisionDetector=null!=t?t:dO)),Mk(r,(()=>r&&(l.data=r))),Mk(n,(()=>l.disabled=!0===n)),Mk(s,(()=>l.type=s)),{droppable:u,get isDropTarget(){return u.isDropTarget},ref:f((e=>{var t,r;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(r=l.manager)?void 0:r.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)}),[l])}}const fO=e=>Array.from({length:e},((e,t)=>t)),hO=r.memo((()=>{const e=Mw(jC),{sectionIndex:t,itemIndex:r,id:n}=Mw(WC)??{};return e&&"number"==typeof t&&"number"==typeof r&&void 0!==n?ii.jsx(Hk,{children:ii.jsx(_d,{"data-testid":"section-item",sx:{padding:0,background:"rgb(243, 243, 243)",boxShadow:"2px 4px 8px rgba(0, 0, 0, 0.2)",borderRadius:2,marginLeft:"2px",width:"calc(100% - 4px)"},children:ii.jsx(e,{id:n,itemIndex:r,sectionIndex:t})})}):null})),mO=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,gO=r.memo((({sectionIndex:e})=>{const t=Mw(kC)[e],r=Mw(OC),n=Mw(qC),o=null!==Mw(WC),i=n(e),a=r({sectionIndex:e}),{ref:s,isDropTarget:l}=pO({id:a,type:"section",accept:"item",collisionPriority:$D.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return!l&&t>0?null:ii.jsxs(Qu,{ref:s,sx:{padding:2,display:"flex",flexDirection:"column",alignItems:"center",border:mO(l,o),borderRadius:"4px",boxSizing:"border-box"},children:[ii.jsx(mu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"bold",fontSize:14},children:i.title}),ii.jsx(mu,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:12},children:i.message})]})})),vO=r.memo((({id:e,sectionIndex:t})=>{const r=Mw(NC);return void 0===r?null:ii.jsx(r,{id:e,sectionIndex:t})}));var yO=Object.defineProperty,bO=Object.defineProperties,xO=Object.getOwnPropertyDescriptors,SO=Object.getOwnPropertySymbols,wO=Object.prototype.hasOwnProperty,CO=Object.prototype.propertyIsEnumerable,EO=(e,t,r)=>t in e?yO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,IO=(e,t)=>{for(var r in t||(t={}))wO.call(t,r)&&EO(e,r,t[r]);if(SO)for(var r of SO(t))CO.call(t,r)&&EO(e,r,t[r]);return e},DO=(e,t)=>bO(e,xO(t)),PO=class extends ZP{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return DO(IO({},e),{[t]:r})}};PO.configure=yD(PO);var MO=PO,RO=MO.configure({axis:"x",value:0});MO.configure({axis:"y",value:0});var LO=class extends ZP{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return DO(IO({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};LO.configure=yD(LO);var AO=Object.create,kO=Object.defineProperty,OO=Object.defineProperties,qO=Object.getOwnPropertyDescriptor,TO=Object.getOwnPropertyDescriptors,_O=Object.getOwnPropertySymbols,jO=Object.prototype.hasOwnProperty,NO=Object.prototype.propertyIsEnumerable,FO=e=>{throw TypeError(e)},zO=(e,t,r)=>t in e?kO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,WO=(e,t)=>{for(var r in t||(t={}))jO.call(t,r)&&zO(e,r,t[r]);if(_O)for(var r of _O(t))NO.call(t,r)&&zO(e,r,t[r]);return e},$O=(e,t)=>OO(e,TO(t)),VO=["class","method","getter","setter","accessor","field","value","get","set"],HO=e=>void 0!==e&&"function"!=typeof e?FO("Function expected"):e,BO=(e,t,r,n,o)=>({kind:VO[e],name:t,metadata:n,addInitializer:e=>r._?FO("Already initialized"):o.push(HO(e||null))}),GO=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},UO=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=VO[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,qO({get[r](){return KO(this,i)},set[r](e){return JO(this,i,e)}},r)),v=n.length-1;v>=0;v--)(u=BO(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[v])({get:g.get,set:g.set},u),l._=1,void 0===s?HO(s)&&(g[f]=s):"object"!=typeof s||null===s?FO("Object expected"):(HO(a=s.get)&&(g.get=a),HO(a=s.set)&&(g.set=a),HO(a=s.init)&&h.unshift(a));return g&&kO(o,r,g),o},YO=(e,t,r)=>t.has(e)||FO("Cannot "+r),KO=(e,t,r)=>(YO(e,t,"read from private field"),t.get(e)),XO=(e,t,r)=>t.has(e)?FO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),JO=(e,t,r,n)=>(YO(e,t,"write to private field"),t.set(e,r),r);function ZO(e){return e instanceof Mq||e instanceof Pq}var QO=Object.defineProperty,eq=Object.defineProperties,tq=Object.getOwnPropertyDescriptors,rq=Object.getOwnPropertySymbols,nq=Object.prototype.hasOwnProperty,oq=Object.prototype.propertyIsEnumerable,iq=(e,t,r)=>t in e?QO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aq=(e,t)=>{for(var r in t||(t={}))nq.call(t,r)&&iq(e,r,t[r]);if(rq)for(var r of rq(t))oq.call(t,r)&&iq(e,r,t[r]);return e},sq=(e,t)=>eq(e,tq(t));function lq(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function uq(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function cq(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex((e=>u(e,a.id))),o=e.findIndex((e=>u(e,s.id)));if(-1===n||-1===o){if(uq(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex((e=>u(e,a.id))),-1!==f&&(d=e)),-1===h&&(h=t.findIndex((e=>u(e,s.id))),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&uq(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return sq(aq({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return sq(aq({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&uq(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return sq(aq({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return sq(aq({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return sq(aq({},e),{[d]:r(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,y=e[d][f];return sq(aq({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),y,...e[p].slice(h+v)]})}(e,t,lq)}var dq="__default__";function pq(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function fq(e,t){return e.index-t.index}function hq(e){return Array.from(e).sort(fq)}var mq,gq,vq,yq,bq,xq,Sq,wq,Cq=[class extends xD{constructor(e){super(e);const t=fE((()=>{const{dragOperation:t}=e;if(zR(t.activatorEvent)&&ZO(t.source)&&t.status.initialized){const t=e.registry.plugins.get(MA);if(t)return t.disable(),()=>t.enable()}})),r=e.monitor.addEventListener("dragmove",((e,t)=>{queueMicrotask((()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!zR(e.nativeEvent))return;if(!ZO(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];YC((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&ZO(e)||!e.element)continue;let r=e.shape;const n=new _R(e.element,{getBoundingClientRect:e=>SM(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push((()=>e.shape=r))))}})),e.preventDefault(),o.disable();const f=o.computeCollisions(d,HR);YC((()=>p.forEach((e=>e()))));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:v}=l.sortable;n.setDropTarget(m).then((()=>{const{source:e,target:t,shape:i}=r;if(!e||!ZO(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||v!==s,c=u?l:null==t?void 0:t.element;if(!c)return;RR(c);const d=new _R(c);if(!d)return;const p=OI.delta(d,OI.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then((()=>o.enable())):o.enable()}))}))}));this.destroy=()=>{r(),t()}}},class extends xD{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof Mq){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(hq(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!ZO(o)||!ZO(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask((()=>{e.defaultPrevented||r.renderer.rendering.then((()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=hq(l),g=s?m:hq(u),v=null!=(c=o.sortable.group)?c:dq,y=null!=(d=i.sortable.group)?d:dq,b={[v]:m,[y]:g},x=cq(b,e);if(b===x)return;const S=x[y].indexOf(o.sortable),w=x[y].indexOf(i.sortable);r.collisionObserver.disable(),pq(f,S,h,w),YC((()=>{for(const[e,t]of x[v].entries())t.index=e;if(!s)for(const[e,t]of x[y].entries())t.group=i.sortable.group,t.index=e})),r.actions.setDropTarget(o.id).then((()=>r.collisionObserver.enable()))}))}))})),e.monitor.addEventListener("dragend",((e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;ZO(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask((()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=hq(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(pq(r,i.index,a,o.index),YC((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}})))}))})))}))];this.destroy=()=>{for(const e of r)e()}}}],Eq={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},Iq=new class{constructor(){eI(this,uI,new WeakMap)}get(e,t){var r;return e?null==(r=QE(this,uI).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return QE(this,uI).has(e)||QE(this,uI).set(e,new Map),null==(n=QE(this,uI).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=QE(this,uI).get(e))?void 0:t.clear():void 0}};gq=[iI],mq=[iI];var Dq=class{constructor(e,t){XO(this,yq,GO(vq,8,this)),GO(vq,11,this),XO(this,bq),XO(this,xq),XO(this,Sq,GO(vq,12,this)),GO(vq,15,this),XO(this,wq),this.register=()=>(YC((()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)})),()=>this.unregister()),this.unregister=()=>{YC((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{YC((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=Eq,plugins:u=Cq}=r,c=((e,t)=>{var r={};for(var n in e)jO.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&_O)for(var n of _O(e))t.indexOf(n)<0&&NO.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new Mq(c,t,this),this.draggable=new Pq($O(WO({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&Iq.clear(this.manager),(null==n?void 0:n.dragging)&&Iq.set(this.manager,this.id,XC((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=KO(this,xq),o=KO(this,bq);e===n&&t===o||(JO(this,xq,e),JO(this,bq,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),JO(this,wq,c.element),this.manager=t,this.index=i,JO(this,xq,i),this.group=o,JO(this,bq,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=Iq.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=Iq.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){XC((()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then((()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=vR(n),l=AR(n,s,!1),u=AR(n,s);if(i||a){const r=RM(mM(n))?$O(WO({},t),{duration:0}):t;LR({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}}))}))}get manager(){return this.draggable.manager}set manager(e){YC((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){YC((()=>{const t=KO(this,wq),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),JO(this,wq,e)}))}get element(){var e,t;const r=KO(this,wq);if(r)return null!=(t=null!=(e=OM.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){YC((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){YC((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){YC((()=>{this.droppable.id=e,this.draggable.id=e}))}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:VR}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){YC((()=>{this.droppable.type=e,this.draggable.type=e}))}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};vq=[,,,AO(null)],yq=new WeakMap,bq=new WeakMap,xq=new WeakMap,Sq=new WeakMap,wq=new WeakMap,UO(vq,4,"index",gq,Dq,yq),UO(vq,4,"group",mq,Dq,Sq),((e,t)=>{return zO(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(vq,Dq);var Pq=class extends bk{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},Mq=class extends xk{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},Rq=Object.defineProperty,Lq=Object.defineProperties,Aq=Object.getOwnPropertyDescriptors,kq=Object.getOwnPropertySymbols,Oq=Object.prototype.hasOwnProperty,qq=Object.prototype.propertyIsEnumerable,Tq=(e,t,r)=>t in e?Rq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_q=(e,t)=>{for(var r in t||(t={}))Oq.call(t,r)&&Tq(e,r,t[r]);if(kq)for(var r of kq(t))qq.call(t,r)&&Tq(e,r,t[r]);return e};function jq(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:h,target:m,type:g}=e,v=_q(_q({},Eq),e.transition),y=Vk((t=>new Dq(((e,t)=>Lq(e,Aq(t)))(_q({},e),{transition:v,register:!1,handle:Sk(s),element:Sk(a),target:Sk(m),feedback:d}),t))),b=Ik(y,Nq);return Mk(o,(()=>y.id=o)),wk((()=>{YC((()=>{y.group=u,y.index=l}))}),[y,u,l]),Mk(g,(()=>y.type=g)),Mk(t,(()=>y.accept=t),void 0,oI),Mk(i,(()=>i&&(y.data=i))),Mk(l,(()=>{var e;(null==(e=y.manager)?void 0:e.dragOperation.status.idle)&&(null==v?void 0:v.idle)&&y.refreshShape()}),Dk),Rk(s,(e=>y.handle=e)),Rk(a,(e=>y.element=e)),Rk(m,(e=>y.target=e)),Mk(c,(()=>y.disabled=!0===c)),Mk(h,(()=>y.sensors=h)),Mk(r,(()=>y.collisionDetector=r)),Mk(n,(()=>y.collisionPriority=n)),Mk(d,(()=>y.feedback=null!=d?d:"default")),Mk(v,(()=>y.transition=v),void 0,oI),Mk(p,(()=>y.modifiers=p),void 0,oI),Mk(e.alignment,(()=>y.alignment=e.alignment)),{sortable:b,get isDragging(){return b.isDragging},get isDropping(){return b.isDropping},get isDragSource(){return b.isDragSource},get isDropTarget(){return b.isDropTarget},handleRef:f((e=>{y.handle=null!=e?e:void 0}),[y]),ref:f((e=>{var t,r;(e||!(null==(t=y.element)?void 0:t.isConnected)||(null==(r=y.manager)?void 0:r.dragOperation.status.idle))&&(y.element=null!=e?e:void 0)}),[y]),sourceRef:f((e=>{var t,r;(e||!(null==(t=y.source)?void 0:t.isConnected)||(null==(r=y.manager)?void 0:r.dragOperation.status.idle))&&(y.source=null!=e?e:void 0)}),[y]),targetRef:f((e=>{var t,r;(e||!(null==(t=y.target)?void 0:t.isConnected)||(null==(r=y.manager)?void 0:r.dragOperation.status.idle))&&(y.target=null!=e?e:void 0)}),[y])}}function Nq(e,t,r){return!("isDragSource"!==e||r||!t)}const Fq=({id:e,itemIndex:t,sectionIndex:r})=>ii.jsx("div",{children:`${r}:${t} - ${e}`}),zq=({id:e,itemIndex:t,sectionIndex:r})=>{const n=Mw(FC),o=Mw(jC),i=Mw(OC)({sectionIndex:r}),{ref:a,isDragging:s}=jq({id:e,index:t,type:"item",accept:"item",group:i,modifiers:[RO],data:{id:e,sectionIndex:r,sectionKey:i,itemIndex:t}}),l=void 0!==n?()=>{n({id:e,itemIndex:t,sectionIndex:r})}:void 0,u=o??Fq;return ii.jsx(_d,{"data-testid":"section-item",onClick:l,ref:a,"data-dragging":s,sx:{padding:0},style:{opacity:s?0:1},children:ii.jsx(u,{id:e,itemIndex:t,sectionIndex:r})})},Wq=r.memo(zq),$q=r.memo((({sectionIndex:e})=>{const t=Mw(OC),r=Mw(kC).at(e)??0,n=t({sectionIndex:e});return ii.jsxs(Qu,{className:"exploration-list",style:{overflow:"auto"},children:[ii.jsx(Uc,{}),ii.jsx(vO,{id:n,sectionIndex:e}),ii.jsx(Uc,{}),ii.jsx(gO,{sectionIndex:e}),ii.jsx(Ed,{sx:{padding:0},children:fO(r).map((r=>{const n=t({sectionIndex:e,itemIndex:r});return ii.jsx(Wq,{id:n,itemIndex:r,sectionIndex:e},n)}))})]},n)})),Vq=r.memo((()=>{const e=Mw(AC),t=Mw(OC),r=Rw($C("start")),n=Rw($C("over")),o=Rw($C("end"));return ii.jsxs(Wk,{onDragEnd:o,onDragOver:n,onDragStart:r,children:[ii.jsx(Qu,{style:{display:"flex",flexDirection:"column"},children:fO(e).map((e=>ii.jsx($q,{sectionIndex:e},t({sectionIndex:e}))))}),ii.jsx(hO,{})]})})),Hq=r.memo((e=>ii.jsx(PC,{atoms:VC,atomFamilies:HC,children:ii.jsx(BC,{props:e,children:ii.jsx(Vq,{})})})));var Bq=Object.defineProperty,Gq=Object.defineProperties,Uq=Object.getOwnPropertyDescriptors,Yq=Object.getOwnPropertySymbols,Kq=Object.prototype.hasOwnProperty,Xq=Object.prototype.propertyIsEnumerable,Jq=(e,t,r)=>t in e?Bq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zq=(e,t)=>{for(var r in t||(t={}))Kq.call(t,r)&&Jq(e,r,t[r]);if(Yq)for(var r of Yq(t))Xq.call(t,r)&&Jq(e,r,t[r]);return e},Qq=(e,t)=>Gq(e,Uq(t));function eT(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function tT(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function rT(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex((e=>u(e,a.id))),o=e.findIndex((e=>u(e,s.id)));if(-1===n||-1===o){if(tT(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex((e=>u(e,a.id))),-1!==f&&(d=e)),-1===h&&(h=t.findIndex((e=>u(e,s.id))),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&tT(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return Qq(Zq({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return Qq(Zq({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&tT(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return Qq(Zq({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return Qq(Zq({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return Qq(Zq({},e),{[d]:r(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,y=e[d][f];return Qq(Zq({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),y,...e[p].slice(h+v)]})}(e,t,eT)}const nT="12px",oT="nebula-table-utils-head-menu-button",iT="sn-copy-cell";let aT=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const sT="nebula-table-utils-column-adjuster";let lT=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),uT=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const cT={darker:.15,brighter:.3,opacity:.03},dT={darker:.3,brighter:.5,opacity:.05};let pT=function(e){return e.Cyclic="C",e}({});const fT=(e,t)=>{const r=new Map;for(const t of e)r.set(t.id,t);return t.reduce(((e,t)=>{const n=r.get(t);return n&&e.push(n),e}),[])},hT=MC((e=>gw((t=>{const r=t(rC),n=t(Hw),o=t(Qw)?.[e],i=r?.qHyperCube.rankedList?.[e];return o||(n?.isRankedListCorrupt(e)||void 0===i?n?.createRankedList(e):i)})))),mT=(e,t=new Set)=>gw((r=>{const n=r(e),o=r(fC);if(!n||0===n.length)return"disabled";const i=n.filter((e=>!t.has(e.id)));if(0===i.length)return"disabled";const a=i.filter((e=>o.has(e.id))).length;return 0===a?"none":a===i.length?"all":"some"})),gT=(e,t=new Set)=>gw(null,((r,n,o)=>{const i=r(e);i&&0!==i.length&&(e=>{const{items:t,shouldCheckAll:r,get:n,set:o,excludedIds:i}=e,a=t.filter((e=>!i?.has(e.id)));if(0===a.length)return;const s=n(fC),l=new Set,u=new Set;if(a.forEach((e=>{const t=s.has(e.id);t&&!r&&u.add(e.id),!t&&r&&l.add(e.id)})),0!==l.size||0!==u.size){if(l.size>0){const e=new Set(n(uC));l.forEach((t=>e.add(t))),o(uC,e)}if(u.size>0){const e=new Set(n(cC));u.forEach((t=>e.add(t))),o(cC,e)}$w({type:"apply",localChecked:l,localUnchecked:u,handler:n(Hw),model:n(Vw),fieldInfo:n(sC)})}})({items:i,shouldCheckAll:o,get:r,set:n,excludedIds:t})})),vT=gw((e=>{const t=e(nC);return t?.qHyperCube.qDimensionInfo.filter(Kw).map((({cId:e,qFallbackTitle:t})=>({id:e,title:t,alternative:!0})))})),yT=gw((e=>{const t=e(rC),r=e(Gw),n=t?.qHyperCube.qEffectiveInterColumnSortOrder.map((e=>{if(-1===e)return{id:-1,title:r("Common.Values")};const{cId:n,qFallbackTitle:o}=t.qHyperCube.qDimensionInfo[e];return{id:n,title:o}}));return n})),bT=gw((e=>{const t=e(Gw),r=e(vT),n=e(Yw),o=e(hT("columns")),i=e(hT("rows")),a=e(yT);if(void 0===r||void 0===o||void 0===i||void 0===a)return[];const s=[...a,...r].filter(n);return[{id:"rows",title:t("Common.Rows"),items:fT(s,i)},{id:"columns",title:t("Common.Columns"),items:fT(s,o)}]})),xT=MC((e=>gw((t=>t(bT).at(e))))),ST=MC((({sectionIndex:e,itemIndex:t})=>gw((r=>r(xT(e))?.items.at(t)?.title))),((e,t)=>e.sectionIndex===t.sectionIndex&&e.itemIndex===t.itemIndex)),wT=MC((e=>gw((t=>t(xT(e))?.title)))),CT=gw((e=>({sectionIndex:t,itemIndex:r})=>{const n=e(xT(t));return void 0===n?0===t?"rows":"columns":void 0===r?n.id:n.items.at(r)?.id??`missing-item-${t}-${r}`})),ET=gw((e=>e(bT).map((e=>e.items.length)))),IT=MC((e=>mT(gw((t=>t(xT(e))?.items)),new Set([-1])))),DT=MC((e=>gT(gw((t=>t(xT(e))?.items)),new Set([-1])))),PT=gw(null,((e,t,{event:r})=>{const n=e(hT("rows")),o=e(hT("columns"));if(void 0===n||void 0===o)return;if("section"===r.operation.target?.type)return;const i=rT({rows:n,columns:o},r);t(Qw,i)})),MT=gw(null,(async(e,t,{event:r,id:n,toIndex:o,toSection:i,startSection:a})=>{const s=e(Hw),l=e(Vw),u=e(hT("rows")),c=e(hT("columns")),d=i;if(void 0!==s&&void 0!==l&&void 0!==u&&void 0!==c)if(r.operation.canceled)t(Qw,null);else{if("section"===r.operation.target?.type){if(a===i)return void t(Qw,null);const e=rT({rows:u,columns:c},r);t(Qw,e)}"number"==typeof n?await s.movePseudoDimension({toIndex:o,toSection:d}):await s.moveDimension({cId:n,toIndex:o,toSection:d}),await l.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(s.properties.qHyperCubeDef)}],!0)}})),RT={noItems:{row:"ChartExploration.PivotTable.RowSectionEmpty.Title",column:"ChartExploration.PivotTable.ColumnSectionEmpty.Title",measure:"ChartExploration.PivotTable.MeasureSectionEmpty.Title"},noSearchFound:{row:"ChartExploration.PivotTable.NoRowsFound.Title",column:"ChartExploration.PivotTable.NoColumnsFound.Title",measure:"ChartExploration.PivotTable.NoMeasuresFound.Title"}},LT="ChartExploration.PivotTable.DimensionSectionEmpty.Message",AT="ChartExploration.PivotTable.MeasureSectionEmpty.Message",kT="#177fe6",OT=(e,t,r,n)=>{if("measure"===t)return e(n?RT.noSearchFound.measure:RT.noItems.measure);const o=n?RT.noSearchFound:RT.noItems;return e(r?o.row:o.column)},qT=(e,t,r)=>r?"":e("measure"===t?AT:LT),TT=MC((e=>gw((t=>{const r=t(Gw),n=t(Uw).length>0;return t=>({title:OT(r,e,0===t,n),message:qT(r,e,n)})})))),_T=TT("measure"),jT=TT("dimensions"),NT=gw((e=>{const t=e(nC);return t?.qHyperCube.qMeasureInfo.filter(Kw).map((({cId:e,qFallbackTitle:t})=>({id:e,title:t})))})),FT=gw((e=>{const t=e(rC),r=e(NT),n=e(Yw),o=e(hT("measures"));if(void 0===t||void 0===r||void 0===o)return[];const i=t.qHyperCube.qMeasureInfo.filter(Kw).map((({cId:e,qFallbackTitle:t})=>({id:e,title:t})));i.push(...r);const a=i.filter(n);return fT(a,o)})),zT=MC((e=>gw((t=>t(FT).at(e)?.title??"")))),WT=gw((e=>({itemIndex:t})=>{const r=e(FT);return void 0===t?"measures":r.at(t)?.id??`missing-item-${t}`})),$T=gw((e=>[e(FT).length])),VT=mT(FT),HT=gT(FT),BT=gw(null,((e,t,{event:r})=>{const n=e(hT("measures"));if(void 0===n)return;const o=rT({measures:n},r);t(Qw,o)})),GT=gw(null,(async(e,t,{id:r,toIndex:n})=>{const o=e(Hw),i=e(Vw);void 0!==o&&void 0!==i&&"string"==typeof r&&(await o.moveMeasure({cId:r,toIndex:n}),await i.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(o.properties.qHyperCubeDef)}],!0))})),UT=({children:e})=>ii.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold",paddingLeft:4},children:e}),YT=({children:e,sectionIndex:t})=>{const r=Mw(void 0!==t?IT(t):VT),n=Rw(void 0!==t?DT(t):HT);return ii.jsxs(Qu,{style:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box"},children:[ii.jsx(Ic,{disabled:"disabled"===r,checked:"all"===r,indeterminate:"some"===r,onChange:e=>{n(e.target.checked)},size:"small",style:{flexShrink:0,padding:9}}),ii.jsx(UT,{children:e})]})},KT=({sectionIndex:e})=>{const t=Mw(wT(e));return ii.jsx(YT,{sectionIndex:e,children:t})},XT=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})}))),JT=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})}))),ZT=fl("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),QT=fl(JT)((()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${kT} inset`}}))),e_=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,t_=(e,t)=>{const r=e.closest(".exploration-list"),n=r?.nextElementSibling||r?.parentElement?.nextElementSibling;return n?n.getElementsByClassName(t)[0]:e.closest(".exploration-panel")?.getElementsByClassName(t)[0]},r_=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},n_=e=>{const t=e.key===aT.Down?(e=>{const{currentTarget:t}=e,r=e_(t),n=t.closest("li"),o=n?.nextElementSibling?.getElementsByClassName(r)[0];return o||t_(t,r)})(e):(e=>{const{currentTarget:t}=e,r=e_(t),n=t.closest("li"),o=n?.previousElementSibling?.getElementsByClassName(r)[0];return o||((e,t)=>{const r=e.closest(".exploration-list"),n=r?.previousElementSibling||r?.parentElement?.parentElement?.previousElementSibling;if(!n){const r=e.closest(".exploration-panel")?.getElementsByClassName(t).length||0;return r>0?e.closest(".exploration-panel")?.getElementsByClassName(t)[r-1]:null}const o=n.getElementsByTagName("li").length;return n.getElementsByClassName(t)[o-1]})(t,r)})(e);t&&r_(t)},o_=(e,t)=>{const{key:r}=e;switch(e.preventDefault(),r){case aT.Tab:((e,t)=>{const{currentTarget:r}=e;if(r!==t.items.explorationItemFocusRef.current){if(r===t.items.draggableIconRef.current){const e=r.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const r=e&&e[t.itemIndex+1];return void(r&&r_(r))}const n=t_(r,"exploration-item-focus");n&&r_(n)}}else{const e=r.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];e&&r_(e)}})(e,t);break;case aT.Down:case aT.Up:e.stopPropagation(),n_(e);break;case aT.Enter:case aT.Space:e.stopPropagation(),((e,t)=>{const{currentTarget:r}=e;if(r!==t.items.draggableIconRef.current)if(r!==t.items.explorationItemRef.current)r===t.items.explorationItemFocusRef.current&&t.toggleCheckedById(t.id);else{const e=r.getElementsByClassName("exploration-draggable-icon")[0];r_(e)}else{const e=r.closest("li")?.getElementsByClassName("exploration-item")[0];e&&r_(e)}})(e,t)}},i_=({children:e})=>ii.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1,paddingLeft:4},children:e}),a_=({icon:e,title:t,...n})=>{const[o,i]=Lw(fC),a=Mw(Gw),s=r.useRef(null),l=r.useRef(null),u=r.useRef(null),c={id:n.id,itemIndex:n.itemIndex,toggleCheckedById:i,items:{explorationItemRef:s,explorationItemFocusRef:l,draggableIconRef:u}};return ii.jsxs(Qu,{ref:s,className:"exploration-item",onClick:e=>{e.stopPropagation(),i(n.id)},onKeyDown:e=>{o_(e,c)},tabIndex:-1,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:"2px 8px 2px 8px",boxSizing:"border-box"},title:t,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${kT} inset`}},children:[ii.jsxs(Qu,{ref:l,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDown:e=>{o_(e,c)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${kT} inset`}},children:[ii.jsx(Ic,{checked:o.has(n.id),"aria-label":a("ChartExploration.ListItem.Label",t),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0,visibility:-1===n.id?"hidden":"visible"}}),ii.jsx(e,{height:"12px",style:{flexShrink:0}}),ii.jsx(i_,{children:t})]}),ii.jsx(QT,{ref:u,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDown:e=>{o_(e,c)}})]})},s_=e=>{const t=Mw(ST(e))??"";return ii.jsx(a_,{title:t,icon:XT,...e})},l_=()=>{const e=Mw(CT),t=Mw(ET),r=Mw(jT),n=Rw(MT),o=Rw(PT);return ii.jsxs(Hq,{numberOfSections:2,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:r,onDragEnd:n,onDragOver:o,children:[KT,s_]})},u_=()=>{const e=Mw(Gw);return ii.jsx(YT,{children:e("Common.Values")})},c_=x(((e,t)=>ii.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:[ii.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),ii.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]}))),d_=e=>{const{itemIndex:t}=e,r=Mw(zT(t));return ii.jsx(a_,{title:r,icon:c_,...e})},p_=()=>{const e=Mw(WT),t=Mw($T),r=Mw(_T),n=Rw(GT),o=Rw(BT);return ii.jsx(Qu,{style:{height:"100%",display:"flex",flexDirection:"column-reverse"},children:ii.jsxs(Hq,{numberOfSections:1,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:r,onDragEnd:n,onDragOver:o,children:[u_,d_]})})},f_=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6 6 0 0 1-1.413 1.415"})}))),h_=()=>{const[e,t]=Lw(Uw),r=Mw(Gw),[n]=Mw($T),[o=0,i=0]=Mw(ET),a=f((e=>{t(e.target.value)}),[t]),s=0===e.length||0===o&&0===i&&0===n?r("Common.Search.NoResultsAvailable"):r("ChartExploration.Pivot.Search.ResultsFound",o.toString(),i.toString(),n.toString());return ii.jsxs(Qu,{style:{position:"sticky",top:0,zIndex:10,width:"calc(100% - 16px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:2,paddingRight:8,paddingLeft:8,paddingBottom:8},children:[ii.jsx(ZT,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:s}),ii.jsx(_p,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":r("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:r("Common.Search"),onChange:a,startAdornment:ii.jsx(pd,{position:"start",children:ii.jsx(f_,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},m_=e=>{const t=((e="light",t=!1)=>Ls(If(0,t)))();return ii.jsx(ml,{theme:t,children:ii.jsx(ww,{children:ii.jsx(hC,{props:e,children:ii.jsxs(Qu,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[ii.jsx(h_,{}),ii.jsx(l_,{}),ii.jsx(p_,{})]})})})})},g_=e=>{if(e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{component:m_,classification:{tags:["exploration"],exclusive:!0}}},v_=[];for(let e=0;e<256;++e)v_.push((e+256).toString(16).slice(1));let y_;const b_=new Uint8Array(16);var x_={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function S_(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!y_){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");y_=crypto.getRandomValues.bind(crypto)}return y_(b_)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(v_[e[t+0]]+v_[e[t+1]]+v_[e[t+2]]+v_[e[t+3]]+"-"+v_[e[t+4]]+v_[e[t+5]]+"-"+v_[e[t+6]]+v_[e[t+7]]+"-"+v_[e[t+8]]+v_[e[t+9]]+"-"+v_[e[t+10]]+v_[e[t+11]]+v_[e[t+12]]+v_[e[t+13]]+v_[e[t+14]]+v_[e[t+15]]).toLowerCase()}(n)}const w_=()=>crypto?.randomUUID?.()??function(e){return x_.randomUUID&&!e?x_.randomUUID():S_(e)}(),C_=1e3,E_=1e3,I_=e=>{if(0===e.qInterColumnSortOrder.length)return;const t=e.qDimensions,r=((e,t)=>{const r=new Set;for(const t of e){if(r.has(t))return!0;r.add(t)}const n=e.includes(-1),o=e.filter((e=>-1!==e));if(t){const r=n?t.length+1:t.length;if(e.length!==r)return!0}const i=[...o].sort(((e,t)=>e-t));for(let e=0;e<i.length;e++)if(i[e]!==e)return!0;return!1})(e.qInterColumnSortOrder,t);r&&(e.qInterColumnSortOrder=((e,t)=>{const r=[];if(t)for(let e=0;e<t.length;e++)r.push(e);return e.qMeasures.length>=2&&r.push(-1),r})(e,t))},D_=(e,t,r)=>{[e[t],e[r]]=[e[r],e[t]]},P_=e=>{if(!e)return;I_(e);const t=e.qDimensions,{qInterColumnSortOrder:r}=e;((e,t=[])=>{const r=t.filter((e=>-1!==e));for(let n=0;n<r.length;n++)if(-1!==r[n]&&r[n]!==n){const o=r[n],i=r.indexOf(n),a=r[i];D_(r,n,i),D_(e,n,i),D_(t,t.indexOf(o),t.indexOf(a))}})(t,r)},M_=(e,t,r)=>{t.splice(r,1),t.push(e),t.splice(r+1,0,-1)},R_=(e,t,r,n)=>{const o=-1===e?t.length:e;if("number"==typeof n&&n<o){const e=Math.max(n,0);t.splice(e,0,r)}else t.splice(o,0,r)},L_=async(e,t,r,n)=>{const o=e.getDimensions(),i=e.hcProperties.qNoOfLeftDims;return await e.autoSortDimension(t),P_(e.hcProperties),(-1===i||Number.isNaN(+i))&&(e.hcProperties.qNoOfLeftDims=o.length),r?((e,t,r,n)=>{if(!e)return;const{qInterColumnSortOrder:o,qNoOfLeftDims:i}=e,a=t.length,s=o.indexOf(-1),l=-1!==s,u=void 0!==n?n+(i||0):void 0;if(l&&void 0!==u&&s>=u?M_(a,o,s):o.push(a),void 0===n)t.push(r);else if(void 0!==u){const e=l&&u>s?u-1:u;t.splice(e,0,r)}})(e.hcProperties,o,t,n):((e,t,r,n)=>{if(!e||"number"!=typeof e.qNoOfLeftDims)return;const o=e.qNoOfLeftDims,{qInterColumnSortOrder:i}=e,a=t.length,s=i.indexOf(-1),l=-1!==s;if(l&&s>=o)M_(a,i,s),R_(o,t,r,n);else{const e=l?o-1:o;void 0!==n&&n<=e&&l?M_(a,i,s):i.push(a),R_(e,t,r,n)}e.qNoOfLeftDims++})(e.hcProperties,o,t,n),t};var A_=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(A_||{}),k_=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(k_||{}),O_=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(O_||{}),q_=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(q_||{});const T_=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,__=e=>{if(!Array.isArray(e))return"";let t="{<";const r=[];if(e.forEach((e=>{let t=`[${e.field}]${e.exclude?"-":""}={`,n="}",o="";switch(e.type){case O_.SEARCH:o=(e=>{let t="",r="";const n=e.options?.mode;if(!n)return"";switch(n){case A_.BEGINNING_OF_WORD:t="*^",r="*";break;case A_.ENDS_WITH:t="*";break;case A_.STARTS_WITH:r="*";break;case A_.MATCHES_EXACTLY:break;case A_.CONTAINS:default:t="*",r="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${r}"`:""})(e);break;case O_.CONDITION:o=(e=>{const{options:t}=e,r=t?.mode===k_.GENERAL,n=t?.modifier?.type===q_.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!n&&(!t.firstValue?.aggregator||!t.firstValue?.field)||n&&!t.firstValue?.fixedValue||r&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";r&&n?(i=`${t.conditionField?.aggregator}(${T_(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!r&&n?(i="",a=`${t.firstValue?.fixedValue}`,s=""):r||n?(i=`${t.conditionField?.aggregator}(${T_(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${T_(t.firstValue?.field)})`):(i=`${T_(e.field)}`,a=`${t.firstValue?.aggregator}(total ${T_(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let u="";if(o.length>1){if(!n&&(!t.secondValue?.aggregator||!t.secondValue?.field)||n&&!t.secondValue?.fixedValue)return"";let e,a;r&&n?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!r&&n?(e=`${t.secondValue?.fixedValue}`,a=""):r||n?(e=`${t.secondValue?.aggregator}(${T_(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${T_(t.secondValue?.field)})`,a=` and ${i}`),u=`${a}${o[1]}${e}`}return`"${l}${u}"`})(e);break;case O_.CLEAR_SELECTION:o=`[${e.field}]=`,t="",n="";break;case O_.VALUES:default:o=e.options?.values?e.options.values.map((e=>`'${e.replace(/'/g,"''")}'`)).join(","):""}""!==o&&r.push(`${t}${o}${n}`)})),0===r.length)return;return t+=`${r.join(",")}>}`,t},j_=P;class N_ extends j_{constructor(e){super(e),this.path=e.path}async addDimension(e,t,r,n){if(!e)return;const o=t??!1;if(e.qDef&&!e.qDef.cId&&(e.qDef.cId=w_()),n)return this.addAlternativeDimension(e,o,r);if(this.getDimensions().length<this.maxDimensions()){const t=await L_(this,e,o,r);return this.#e({section:o?"columns":"rows",cId:e.qDef?.cId}),t}}async addDimensions(e,t,r){const n=[];for await(const o of e){const e=await this.addDimension(o,r,void 0,t);e&&n.push(e)}return n}addAlternativeDimension(e,t,r){if(!e||!this.hcProperties)return;const n=this.getAlternativeDimensions();void 0===this.hcProperties.excludedNoOfLeftDims&&(this.hcProperties.excludedNoOfLeftDims=n.length);let o=r;return o=void 0===o?t?n.length:this.hcProperties.excludedNoOfLeftDims:t?this.hcProperties.excludedNoOfLeftDims+o:Math.min(o,this.hcProperties.excludedNoOfLeftDims),n.splice(o,0,e),t||this.hcProperties.excludedNoOfLeftDims++,this.#e({section:t?"columns":"rows",cId:e.qDef?.cId||"",alternative:!0}),e}async addFieldDimension(e,t,r,n={}){const o=this.createFieldDimension(e,t,r);return this.addDimension(o,n.asColumn,void 0,!1)}async addFieldDimensions(e,t={}){const r=e.map((e=>this.createFieldDimension(e.field,e.label,e.defaults)));return this.addDimensions(r,void 0,t.asColumn)}async addLibraryDimensions(e,t={}){const r=e.map((e=>this.createLibraryDimension(e.id,e.defaults)));return this.addDimensions(r,void 0,t.asColumn)}reinsertDimension(e,t,r){e.qDef&&!e.qDef.cId&&(e.qDef.cId=w_());if(this.getDimensions().length<this.maxDimensions())return this.addDimension(e,t,r);return this.reinsertAlternativeDimension(e,r,t)}reinsertAlternativeDimension(e,t,r){const n=this.getDimensions(),o=this.getAlternativeDimensions();if(n.length>=C_)return Promise.resolve();const i="number"==typeof t?t:o.length;return o.splice(i,0,e),this.#e({section:r?"columns":"rows",cId:e.qDef?.cId||"",alternative:!0}),Promise.resolve(e)}async removeDimensions(e,t,r){return Promise.all([...e].reverse().map((e=>this.removeDimension(e,t,r))))}async removeDimension(e,t,r){if(t){const t=this.getAlternativeDimensions().splice(e,1)[0];return!r&&this.hcProperties?.excludedNoOfLeftDims&&this.hcProperties.excludedNoOfLeftDims--,this.#t({cId:t.qDef.cId,section:r?"columns":"rows"}),t}const n=this.getDimensions(),o=this.properties?.qHyperCubeDef.qNoOfLeftDims,i=this.hcProperties?.qInterColumnSortOrder.indexOf(e);"number"==typeof this.properties?.qHyperCubeDef.qNoOfLeftDims&&"number"==typeof i&&"number"==typeof o&&i+1<=o&&this.properties.qHyperCubeDef.qNoOfLeftDims--;const a=this.properties?.qHyperCubeDef.columnWidths?this.properties.qHyperCubeDef.columnWidths[1]:void 0;Array.isArray(a)&&a.length>e&&a.splice(e,1);const s=n.splice(e,1)[0];if(s)return((e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;e.splice(r,1)})(this.hcProperties?.qInterColumnSortOrder,e),P_(this.hcProperties),this.#t({cId:s.qDef.cId,section:r?"columns":"rows"}),s}async addMeasures(e,t=!1){const r=[];for await(const n of e){const e=await this.addMeasure(n,t,void 0,!0);e&&r.push(e)}return r}addAlternativeMeasures(e,t){const r=this.getAlternativeMeasures(),n=void 0===t?r.length:t,o=r.splice(n,0,e);return this.#r(e.qDef?.cId||"",!0),o}async addMeasure(e,t,r,n){const o=this.getMeasures();if(e.qDef&&!e.qDef.cId&&(e.qDef.cId=w_()),t)return this.addAlternativeMeasures(e,r);if(n||delete e.qDef?.qNumFormat,o.length<this.maxMeasures()){const t=1===o.length;return void 0!==r&&r>=0?o.splice(r,0,e):o.push(e),this.autoSortMeasure(e).then((()=>(t&&(this.hcProperties?.qInterColumnSortOrder.push(-1),0===this.getDimensions().length&&(this.hcProperties.qNoOfLeftDims=0)),this.#r(e.qDef?.cId||""),e)))}return o.length<E_?(this.getAlternativeMeasures().push(e),this.#r(e.qDef?.cId||"",!0),Promise.resolve(e)):Promise.resolve()}reinsertMeasure(e,t){const r=this.getMeasures(),n=this.getAlternativeMeasures(),o=this.hcProperties?.qInterColumnSortOrder;if(e.qDef&&!e.qDef.cId&&(e.qDef.cId=w_()),t=void 0!==t?t:r.length,r.length<this.maxMeasures()){if(r.splice(t,0,e),this.hcProperties&&o&&2===r.length){-1===o.indexOf(-1)&&o.push(-1)}this.#r(e.qDef?.cId||"")}else r.length<E_&&(t=n.length,n.splice(t,0,e),this.#r(e.qDef?.cId||""));return Promise.resolve(e)}async removeMeasure(e,t){if(t&&"number"==typeof e){const t=this.getAlternativeMeasures().splice(e,1)[0];return this.#t({cId:t.qDef.cId,section:"measures"}),t}const r=this.getMeasures();let n,o,i;if("number"==typeof e&&e<r.length){n=2===r.length,o=this.getMeasures().splice(e,1)[0];const t=this.hcProperties?.qInterColumnSortOrder;n&&t&&(i=t.indexOf(-1),t.splice(i,1),this.hcProperties?.qNoOfLeftDims&&i+1<=this.hcProperties?.qNoOfLeftDims&&this.hcProperties.qNoOfLeftDims--)}else"number"==typeof e&&(o=this.getAlternativeMeasures().splice(e-r.length,1)[0]);if(o)return this.#t({cId:o.qDef.cId,section:"measures"}),o}async removeMeasures(e,t){return await Promise.all([...e].reverse().map((e=>this.removeMeasure(e,t)))),e}getSorting(){throw new Error("don't call this")}changeSorting(){throw new Error("don't call this")}setSorting(){throw new Error("don't call this")}getRowDimensions(){const e=this.#n("rows"),t=this.getDimensions();return e.filter((e=>e>=0)).map((e=>t[e]))}getColumnDimensions(){const e=this.#n("columns"),t=this.getDimensions();return e.filter((e=>e>=0)).map((e=>t[e]))}getAlternativeRowDimensions(){const e=this.getAlternativeDimensions(),{excludedNoOfLeftDims:t}=this.hcProperties;return-1===t?e:e.slice(0,t)}getAlternativeColumnDimensions(){const e=this.getAlternativeDimensions(),{excludedNoOfLeftDims:t}=this.hcProperties;return-1===t?[]:e.slice(t)}#o(e){return this.hcProperties.rankedList?.[e]??this.createRankedList(e)}#i(e){return[...this.#o(e)]}#a(e,t){return void 0===this.hcProperties.rankedList&&(this.hcProperties.rankedList={}),this.hcProperties.rankedList[e]=t,t}#s(e){const t=({qDef:t})=>t?.cId===e;if(-1===e){return this.hcProperties.qInterColumnSortOrder.indexOf(-1)+1<=this.hcProperties.qNoOfLeftDims?"rows":"columns"}return this.getRowDimensions().some(t)||this.getAlternativeRowDimensions().some(t)?"rows":this.getColumnDimensions().some(t)||this.getAlternativeColumnDimensions().some(t)?"columns":null}#l(e){const t=({qDef:t})=>t?.cId===e;return!(!this.getAlternativeDimensions().some(t)&&!this.getAlternativeMeasures().some(t))}#n(e){const{qInterColumnSortOrder:t,qNoOfLeftDims:r}=this.hcProperties;if(this.#u())return"columns"===e?t:[];switch(e){case"rows":return-1===r?t:t.slice(0,r);case"columns":return-1===r?[]:t.slice(r);default:throw new Error(`Unknown section in #getInterColumnSortOrderBySection: ${e}`)}}#u(){const{qNoOfLeftDims:e}=this.hcProperties,t=-1===e||Number.isNaN(+e);return 0===this.getDimensions().length&&this.getMeasures().length>0&&t}#c(e){const t=this.hcProperties.qInterColumnSortOrder.indexOf(-1);if(-1===t)return!1;if(this.#u())return"columns"===e;switch(e){case"rows":return t+1<=this.hcProperties.qNoOfLeftDims;case"columns":return t+1>this.hcProperties.qNoOfLeftDims;default:return!1}}#d(e,t=!0){const r=e=>-1===e?-1:e.qDef?.cId;if("measures"===e)return this.getMeasures().concat(t?this.getAlternativeMeasures():[]).map(r);const n=this.#n(e),o=this.getDimensions(),i=n.map((e=>-1===e?-1:o[e]));switch(e){case"rows":return i.concat(t?this.getAlternativeRowDimensions():[]).map(r);case"columns":return i.concat(t?this.getAlternativeColumnDimensions():[]).map(r);default:throw new Error(`Unknown section in #isCorruptRankedList: ${e}`)}}isRankedListCorrupt(e){const t=this.hcProperties.rankedList?.[e],r=this.properties.qInfo.qId;if(!t)return!0;if(new Set(t).size!==t.length){const n=t.filter(((e,r)=>t.indexOf(e)!==r));return console.warn("Corrupt ranked list detected: duplicate ids",{duplicates:n,section:e,chartId:r}),!0}const n=this.#d(e);if(t.length!==n.length)return console.warn("Corrupt ranked list detected: length mismatch",{section:e,chartId:r,fieldsLength:n.length,rankedListLength:t.length,diff:new Set(n).symmetricDifference(new Set(t))}),!0;const o=n.filter((e=>!t.includes(e)));if(o.length>0)return console.warn("Corrupt ranked list detected: missing ids",{missingIds:o,section:e,chartId:r}),!0;const i=this.#d(e,!1),a=t.filter((e=>i.includes(e))),s=i.filter(((e,t)=>e!==a[t]));return s.length>0&&(console.warn("Corrupt ranked list detected: main field order mismatch",{section:e,chartId:r,orderMismatchIds:s}),!0)}createRankedList(e){switch(e){case"rows":case"columns":return this.#p({section:e});case"measures":return this.#f();default:throw new Error(`Unknown section in getRankedList: ${e}`)}}#p({section:e}){const t=this.getDimensions(),r=this.#n(e),n="columns"===e?this.getAlternativeColumnDimensions():this.getAlternativeRowDimensions(),o=r.map((e=>-1===e?-1:t[e].qDef.cId));return o.push(...n.map((e=>e.qDef?.cId))),this.#a(e,o)}#f(){if(void 0!==this.hcProperties.rankedList?.measures)return this.hcProperties.rankedList?.measures;const e=[...this.getMeasures(),...this.getAlternativeMeasures()].map((e=>e.qDef.cId));return this.#a("measures",e)}#h({section:e,cId:t,fields:r}){const n=this.#o(e),o=r.findIndex((e=>e.qDef?.cId===t)),i=r[o+1]?.qDef?.cId,a=r[o-1]?.qDef?.cId;if(o>=0)if(i){const e=n.indexOf(i);n.splice(e,0,t)}else if(a){const e=n.indexOf(a);n.splice(e+1,0,t)}else n.push(t);return this.hcProperties.rankedList[e]}#e({section:e,cId:t,alternative:r=!1}){if(void 0===this.hcProperties.rankedList?.[e])return this.#p({section:e});let n=[];return n="columns"===e?r?this.getAlternativeColumnDimensions():this.getColumnDimensions():r?this.getAlternativeRowDimensions():this.getRowDimensions(),this.#h({section:e,cId:t,fields:n})}#r(e,t=!1){if(void 0===this.hcProperties.rankedList?.measures)return this.#f();const r=t?this.getAlternativeMeasures():this.getMeasures();return this.#m(),this.#h({section:"measures",cId:e,fields:r})}#m(){const e=this.#o("rows"),t=this.#o("columns");this.#c("rows")&&!e.includes(-1)?e.push(-1):this.#c("columns")&&!t.includes(-1)&&t.push(-1)}#g(){if(this.hcProperties.qInterColumnSortOrder.includes(-1))return;const e=this.#o("rows"),t=this.#o("columns"),r=e.indexOf(-1),n=t.indexOf(-1);-1!==r&&e.splice(r,1),-1!==n&&t.splice(n,1)}#t({cId:e,section:t}){const r=this.#o(t),n=r.indexOf(e);-1!==n&&(r.splice(n,1),this.#g())}async moveMeasureToAlternative(e){const t=this.getMeasures().findIndex((t=>t.qDef?.cId===e)),r=this.#i("measures"),n=r.indexOf(e);if(-1===t)return;const o=await this.removeMeasure(t),i=r.slice(n+1).find((e=>this.getAlternativeMeasures().some((t=>t.qDef?.cId===e)))),a=this.getAlternativeMeasures().findIndex((e=>e.qDef?.cId===i));await this.addAlternativeMeasures(o,-1===a?void 0:a),this.#a("measures",r)}async moveMeasureFromAlternative(e){const t=this.getAlternativeMeasures().findIndex((t=>t.qDef?.cId===e)),r=this.#i("measures"),n=r.indexOf(e);if(-1===t)return;const o=await this.removeMeasure(t,!0),i=this.getMeasures().map((e=>e.qDef?.cId)),a=r.slice(n+1).find((e=>i.includes(e))),s=i.findIndex((e=>e===a));await this.addMeasure(o,!1,-1===s?void 0:s),this.#a("measures",r)}async moveDimensionToAlternative(e){const t=this.#s(e),r=this.getDimensions().findIndex((t=>t.qDef?.cId===e));if(-1===r||null===t)return;const n=this.#i(t),o=n.indexOf(e),i="columns"===t,a=await this.removeDimension(r,!1,i),s=n.slice(o+1).find((e=>this.getAlternativeDimensions().some((({qDef:t})=>t?.cId===e))));let l=this.getAlternativeDimensions().findIndex((({qDef:e})=>e?.cId===s));l=-1===l?void 0:l,await this.addAlternativeDimension(a,i,l),this.#a(t,n)}async moveDimensionFromAlternative(e){const t=this.#s(e),r=this.getAlternativeDimensions().findIndex((t=>t.qDef?.cId===e));if(-1===r||null===t)return;const n=this.#i(t),o=n.indexOf(e),i="columns"===t,a=await this.removeDimension(r,!0,i),s=this.#d(t,!1),l=n.slice(o+1).find((e=>s.includes(e)));let u=s.findIndex((e=>e===l));u=-1===u?void 0:u,await this.addDimension(a,i,u),this.#a(t,n)}movePseudoDimension({toIndex:e,toSection:t}){const r=this.#s(-1);if(null===r)return void console.error("Cannot move pseudo dimension, unable to find it in any section",{toIndex:e,toSection:t});const n="columns"===t,o=r===t,i=this.#i(t);if(o){const e=i.indexOf(-1);i.splice(e,1)}else{const o=this.#o(r),i=o.indexOf(-1);if(-1===i)return void console.error("Couldn't delete pseudo dimension from current section",{toIndex:e,toSection:t,fromSection:r});o.splice(i,1),this.hcProperties.qNoOfLeftDims=n?Math.max(0,this.hcProperties.qNoOfLeftDims-1):this.hcProperties.qNoOfLeftDims+1}const a=e-i.slice(0,e).filter((e=>this.#l(e))).length,s=n?this.hcProperties.qNoOfLeftDims+a:a,l=this.hcProperties.qInterColumnSortOrder.indexOf(-1);this.hcProperties.qInterColumnSortOrder.splice(l,1),this.hcProperties.qInterColumnSortOrder.splice(s,0,-1),i.splice(e,0,-1),this.#a(t,i)}async moveDimension({cId:e,toIndex:t,toSection:r}){const n=this.#s(e),o=this.#l(e);if(null===n)return void console.error("Cannot move dimension, unable to find it in any section",{cId:e});const i=(o?this.getAlternativeDimensions():this.getDimensions()).findIndex((({qDef:t})=>t?.cId===e));if(-1===i)return void console.error("Couldn't find dimension to move",{cId:e,toIndex:t,toSection:r});const a=this.#i(r),s=a.indexOf(e);-1!==s&&a.splice(s,1);const l=t-a.slice(0,t).filter((e=>this.#l(e)!==o)).length,u="columns"===r,c="columns"===n,d=await this.removeDimension(i,o,c);await this.addDimension(d,u,l,o),a.splice(t,0,e),this.#a(r,a)}async moveMeasure({cId:e,toIndex:t}){const r=this.#l(e),n=(r?this.getAlternativeMeasures():this.getMeasures()).findIndex((t=>t.qDef?.cId===e));if(-1===n)return void console.error("Cannot move measure, unable to find it in any section",{cId:e});const o=this.#i("measures"),i=o.indexOf(e);-1!==i&&o.splice(i,1);const a=t-o.slice(0,t).filter((e=>this.#l(e)!==r)).length,s=await this.removeMeasure(n,r);await this.addMeasure(s,r,a),o.splice(t,0,e),this.#a("measures",o)}getLabels(){return this.getMeasures().filter((e=>!e.qLibraryId&&!!e.qDef?.qLabel)).map((e=>e.qDef?.qLabel))}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}getFilters(){return this.properties?.filters??[]}getFilter(e){return this.getFilters().find((t=>t.id===e))}addFilterField(e){const t=e?.qTags??e?.tags,r=Array.isArray(t)&&t.includes("$numeric"),n=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:n?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:w_(),isNumeric:r};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=__(o),i}addFilters(e){const t=[];for(const r of e)t.push(this.addFilterField(r));return t}removeFilters(e){if(0===e.length)return[];let t=[];const r=[...e].sort(((e,t)=>t-e));t=this.getFilters().filter(((t,r)=>e.includes(r)));for(const e of r)this.removeFilterField(e);return t}}var F_={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Ae});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function y(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=y(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=y(d,f),v=y(p,m);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=b({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var I=t().bind(null,!0),D={},P=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function R(e){return void 0===e}function L(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function A(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=R(e[r||t])?i:e[t],e=e[r||t]}})),e}function k(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){k(e[n],t[n])||(r=!1)})),r);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}D.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?I({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);k(i,a)||L(t,o)||(R(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(a)?n=n.concat(D.generate(a,i,s)):P(i)&&P(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&R(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(k(t,o))return n;if(!R(t[0])&&R(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(D.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){R(t[o])&&!L(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},D.apply=function(e,t){t.forEach((function(t){var r,n,o=A(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!L(r,e)&&delete r[e]})),I(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=A(e,t.from);P(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},D.clone=function(e){return I({},e)},D.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},D.updateObject=function(e,t){Object.keys(e).length?D.apply(e,D.generate(e,t)):I(e,t)};const O=D,q=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function _(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function j(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var N={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,N)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=_(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=_(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=_(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function W(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function $(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const H={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var v=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var y=w.getDimComp(c,1),b=w.getDimComp(c,0),x=w.getAggrComp(v,y,b);v=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat($(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat($(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=W(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=W(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=W(t,e);return i&&!i.disabled}};return r}};var B="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===B)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===B)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(B))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",ye="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Ie="qDef.qAggrFunc",De="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(r(e,ye,i(e,ve)),r(e,xe,i(e,be)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Pe.isValid(e)&&(r(e,ve,i(e,ye)),r(e,be,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Ie)&&i(e,De)&&r(e,Ie,i(e,De)),delete e.qDef.base)},isValid:function(e){var t=i(e,ye),r=i(e,xe);return void 0!==t||void 0!==r}};const Me=Pe;function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}var Le={accumulation:F,movingAverage:H,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Ae={modifiers:Le,apply:Oe,applyModifiers:qe,cleanUpMeasure:Te,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[e.id])},hasActiveModifiers:_e,getActiveModifier:je,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Le[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Le[e]&&Le[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Ne};var ke={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===Re(n))return qe({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),_e({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);$e(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return h&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Re(e)&&!e.disabled){if(r++,"object"!==Re(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&He(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),qe({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Re(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return Fe(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function qe(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),$e(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=Fe(n)),!r.length)return Promise.resolve();if(!_e({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Me.isValid(r)||Me.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Re(e)&&!e.disabled){if(s++,"object"!==Re(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Le[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Le[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Le[n.type].updateModifier&&Le[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Le[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Ne(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Ne(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Ve(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Re(e)&&!e.disabled&&!Le[e.type]}))}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function _e(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function je(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Le[n.type]&&!n.disabled)return n}}function Ne(e){var t=je(e);return!t||Le[t.type].enableTotalsFunction(e)}function Fe(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function We(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){Fe(e).forEach((function(e){return function(e){var r=je(e);r&&(void 0!==r.outputExpression&&We(r)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Ve(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Re(t)&&(t.disabled||!Le[t.type]&&We(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function He(e){return e.base||e.qDef&&e.qDef.base}function Be(e){var t=He(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!Be(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Re(e)||e.disabled||!Le[e.type])&&(void 0===o[e.type]&&(o[e.type]=Le[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):q(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Re(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=Fe(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=Be(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>$e});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},y=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},b=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function I(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var D=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const R=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},L=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},A=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},k=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},q=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},_=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=I(a.max,o.dimensions.length,D),l=I(a.min,o.dimensions.length,0);return{maxDimensions:I(i.max,s,D),minDimensions:I(i.min,l,0),maxMeasures:s,minMeasures:l}},j=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},N=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},W=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return M(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},V=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function H(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const B={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,v({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),y({exportFormat:o,properties:a}),n||b(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=N({exportFormat:t,initialProperties:n,hypercubePath:u}),v=i.getValue(n,u||"").qHyperCubeDef,y=i.getValue(g,u||"").qHyperCubeDef,b=_({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,S=b.minDimensions,w=b.maxMeasures,C=b.minMeasures,E=l.defaultDimension,I=void 0===E?k():E,D=l.defaultMeasure,P=void 0===D?O():D;y.qDimensions.length=0,y.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:y}),q({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:y,defaultDimension:I}),T({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:y,defaultMeasure:P}),W({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),j({exportFormat:t,newHyperCubeDef:y}),L("qMaxStackedCells",v,y),L("qNoOfLeftDims",v,y),A("qInitialDataFetch",v,y,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),A("qMode",v,y,"S"),A("qReductionMode",v,y,"N"),A("qSortbyYValue",v,y),A("qIndentMode",v,y),A("qShowTotalsAbove",v,y),R(g,t,n),m.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return V({measures:y.qMeasures,modifierTypes:M}),p&&H(m.qProperty,"storedFilters"),"S"===y.qMode&&h&&H(m.qProperty,"dynamicScript"),m}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!G[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(U(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},ve={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=B.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=B.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:v,properties:d})&&he(d):me(d),v&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ye=["bar","marker","line"];const be=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?H(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):H(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ye.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return be({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Ie(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var De="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Me="measures",Re="qDef.conditionalColoring";const Le={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Pe,arrayName:Me,itemPath:Re})},unquarantine:function(e){Ie({properties:e,arrayPath:De,itemPath:Re,arrayName:Me,quarantineName:Pe})}};var Ae="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",qe="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",_e="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Ne="alternativeDimensions",Fe="qCalcCondition",ze="conditionalShowHide";const We={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:ze,arrayName:ke,itemPath:Fe}),Ee({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:qe,itemPath:Fe})},unquarantine:function(e){Ie({properties:e,arrayPath:Ae,quarantineName:ze,arrayName:ke,itemPath:Fe}),Ie({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:qe,itemPath:Fe})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Te,quarantineName:ze,arrayName:_e,itemPath:Fe}),Ee({properties:e,arrayPath:je,quarantineName:ze,arrayName:Ne,itemPath:Fe})},unquarantineAlternative:function(e){Ie({properties:e,arrayPath:Te,quarantineName:ze,arrayName:_e,itemPath:Fe}),Ie({properties:e,arrayPath:je,quarantineName:ze,arrayName:Ne,itemPath:Fe})}},$e={hypercube:B,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:H,quarantineArrayProp:Ee,unquarantineArrayProp:Ie,conditionalColoring:Le,conditionalShow:We}})(),n.default})()}(F_);var z_=En(F_.exports);const W_="qHyperCubeDef.qMeasures",$_="measures",V_="qHyperCubeDef.qDimensions",H_="dimensions",B_="qDef.representation",G_="tableRepresentation",U_="qDef.conditionalColoring",Y_="conditionalColoring",K_="qMiniChartDef",X_="miniChartDef",J_=e=>{z_.unquarantineArrayProp({properties:e,arrayPath:V_,itemPath:B_,arrayName:H_,quarantineName:G_}),z_.unquarantineArrayProp({properties:e,arrayPath:W_,itemPath:B_,arrayName:$_,quarantineName:G_}),z_.unquarantineArrayProp({properties:e,arrayPath:W_,itemPath:U_,arrayName:$_,quarantineName:Y_}),z_.unquarantineArrayProp({properties:e,arrayPath:W_,itemPath:K_,arrayName:$_,quarantineName:X_})},Z_=e=>{z_.quarantineArrayProp({properties:e,arrayPath:V_,itemPath:B_,arrayName:H_,quarantineName:G_}),z_.quarantineArrayProp({properties:e,arrayPath:W_,itemPath:B_,arrayName:$_,quarantineName:G_}),z_.quarantineArrayProp({properties:e,arrayPath:W_,itemPath:U_,arrayName:$_,quarantineName:Y_}),z_.quarantineArrayProp({properties:e,arrayPath:W_,itemPath:K_,arrayName:$_,quarantineName:X_})};function Q_(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function ej(e){if("object"==typeof e&&Q_(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}const tj={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function rj(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Q_(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in tj}(e)){const t=tj[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function nj(e){let t,r,n;if(Q_(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?ej(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}function oj(e){let t,r,n=0;const o="string"==typeof e?rj(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function ij(e){let t,r,n=0;const o="string"==typeof e?rj(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function aj(e){if(Q_(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?ej(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function sj(e,t){return Q_(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:sj(rj(e))}function lj(e){return Q_(e)?1===e.a?aj(e):sj(e):lj(rj(e))}const uj=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function cj(e){return.2126*uj(e.r)+.7152*uj(e.g)+.0722*uj(e.b)}function dj(...e){const t=rj(...e);return t.invalid||cj(t)<.4}function pj(...e){const t=rj(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=oj(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=rj(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>dj(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=aj(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=sj(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=lj(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=nj(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?rj(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=oj(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=ij(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=ij(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>pj(o(18*e)),getDarkenedColor:(e=1)=>pj(o(18*-e))}}function fj(e,t){if(!e||!t)return;const r=cj(e),n=cj(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function hj(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var mj,gj="top",vj="top-right",yj="right",bj="bottom-right",xj="bottom",Sj="bottom-left",wj="left",Cj="top-left";hj(hj(hj(hj(hj(hj(hj(hj(hj(hj(mj={},"equal-equal",[gj,xj]),"equal-higher",[xj,bj]),"equal-lower",[gj,vj]),"equal-void",[gj,xj]),"higher-equal",[wj,Sj,gj,vj]),"higher-higher-acute",[xj,Sj,wj,vj]),"higher-higher-obtuse",[xj,gj]),"higher-lower-negative",[gj,vj,yj]),"higher-lower-positive",[xj,Sj,wj]),"higher-void",[gj]),hj(hj(hj(hj(hj(hj(hj(hj(hj(hj(mj,"lower-equal",[gj]),"lower-higher-negative",[gj,Cj]),"lower-higher-positive",[bj]),"lower-lower-acute",[gj,Cj,wj,vj,yj]),"lower-lower-obtuse",[gj,xj]),"lower-void",[gj]),"void-equal",[gj]),"void-higher",[gj,xj]),"void-lower",[gj,xj,wj]),"void-void",[gj]),hj(mj,"unclassified",[gj,xj,yj,wj,vj,bj,Sj,Cj]);var Ej,Ij,Dj=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Pj=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Mj(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Pj:Dj}var Rj=function(){if(Ij)return Ej;Ij=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return Ej=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},Ej}();function Lj(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Aj(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function kj(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Rj);var Oj=1/.7,qj="\\s*([+-]?\\d+)\\s*",Tj="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_j="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jj=/^#([0-9a-f]{3,8})$/,Nj=new RegExp(`^rgb\\(${qj},${qj},${qj}\\)$`),Fj=new RegExp(`^rgb\\(${_j},${_j},${_j}\\)$`),zj=new RegExp(`^rgba\\(${qj},${qj},${qj},${Tj}\\)$`),Wj=new RegExp(`^rgba\\(${_j},${_j},${_j},${Tj}\\)$`),$j=new RegExp(`^hsl\\(${Tj},${_j},${_j}\\)$`),Vj=new RegExp(`^hsla\\(${Tj},${_j},${_j},${Tj}\\)$`),Hj={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Bj(){return this.rgb().formatHex()}function Gj(){return this.rgb().formatRgb()}function Uj(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=jj.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Yj(t):3===r?new Zj(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Kj(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Kj(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Nj.exec(e))?new Zj(t[1],t[2],t[3],1):(t=Fj.exec(e))?new Zj(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=zj.exec(e))?Kj(t[1],t[2],t[3],t[4]):(t=Wj.exec(e))?Kj(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$j.exec(e))?oN(t[1],t[2]/100,t[3]/100,1):(t=Vj.exec(e))?oN(t[1],t[2]/100,t[3]/100,t[4]):Hj.hasOwnProperty(e)?Yj(Hj[e]):"transparent"===e?new Zj(NaN,NaN,NaN,0):null}function Yj(e){return new Zj(e>>16&255,e>>8&255,255&e,1)}function Kj(e,t,r,n){return n<=0&&(e=t=r=NaN),new Zj(e,t,r,n)}function Xj(e){return e instanceof kj||(e=Uj(e)),e?new Zj((e=e.rgb()).r,e.g,e.b,e.opacity):new Zj}function Jj(e,t,r,n){return 1===arguments.length?Xj(e):new Zj(e,t,r,null==n?1:n)}function Zj(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Qj(){return`#${nN(this.r)}${nN(this.g)}${nN(this.b)}`}function eN(){const e=tN(this.opacity);return`${1===e?"rgb(":"rgba("}${rN(this.r)}, ${rN(this.g)}, ${rN(this.b)}${1===e?")":`, ${e})`}`}function tN(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rN(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nN(e){return((e=rN(e))<16?"0":"")+e.toString(16)}function oN(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new aN(e,t,r,n)}function iN(e){if(e instanceof aN)return new aN(e.h,e.s,e.l,e.opacity);if(e instanceof kj||(e=Uj(e)),!e)return new aN;if(e instanceof aN)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new aN(a,s,l,e.opacity)}function aN(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function sN(e){return(e=(e||0)%360)<0?e+360:e}function lN(e){return Math.max(0,Math.min(1,e||0))}function uN(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Lj(kj,Uj,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bj,formatHex:Bj,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return iN(this).formatHsl()},formatRgb:Gj,toString:Gj}),Lj(Zj,Jj,Aj(kj,{brighter(e){return e=null==e?Oj:Math.pow(Oj,e),new Zj(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Zj(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zj(rN(this.r),rN(this.g),rN(this.b),tN(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Qj,formatHex:Qj,formatHex8:function(){return`#${nN(this.r)}${nN(this.g)}${nN(this.b)}${nN(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:eN,toString:eN})),Lj(aN,(function(e,t,r,n){return 1===arguments.length?iN(e):new aN(e,t,r,null==n?1:n)}),Aj(kj,{brighter(e){return e=null==e?Oj:Math.pow(Oj,e),new aN(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new aN(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Zj(uN(e>=240?e-240:e+120,o,n),uN(e,o,n),uN(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new aN(sN(this.h),lN(this.s),lN(this.l),tN(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=tN(this.opacity);return`${1===e?"hsl(":"hsla("}${sN(this.h)}, ${100*lN(this.s)}%, ${100*lN(this.l)}%${1===e?")":`, ${e})`}`}}));const cN=Math.PI/180,dN=180/Math.PI,pN=4/29,fN=6/29,hN=3*fN*fN;function mN(e){if(e instanceof gN)return new gN(e.l,e.a,e.b,e.opacity);if(e instanceof SN)return wN(e);e instanceof Zj||(e=Xj(e));var t,r,n=xN(e.r),o=xN(e.g),i=xN(e.b),a=vN((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=vN((.4360747*n+.3850649*o+.1430804*i)/.96422),r=vN((.0139322*n+.0971045*o+.7141733*i)/.82521)),new gN(116*a-16,500*(t-a),200*(a-r),e.opacity)}function gN(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function vN(e){return e>.008856451679035631?Math.pow(e,1/3):e/hN+pN}function yN(e){return e>fN?e*e*e:hN*(e-pN)}function bN(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function xN(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function SN(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function wN(e){if(isNaN(e.h))return new gN(e.l,0,0,e.opacity);var t=e.h*cN;return new gN(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Lj(gN,(function(e,t,r,n){return 1===arguments.length?mN(e):new gN(e,t,r,null==n?1:n)}),Aj(kj,{brighter(e){return new gN(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new gN(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Zj(bN(3.1338561*(t=.96422*yN(t))-1.6168667*(e=1*yN(e))-.4906146*(r=.82521*yN(r))),bN(-.9787684*t+1.9161415*e+.033454*r),bN(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Lj(SN,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof SN)return new SN(e.h,e.c,e.l,e.opacity);if(e instanceof gN||(e=mN(e)),0===e.a&&0===e.b)return new SN(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*dN;return new SN(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new SN(e,t,r,null==n?1:n)}),Aj(kj,{brighter(e){return new SN(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new SN(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return wN(this).rgb()}}));var CN=e=>()=>e;function EN(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):CN(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?EN:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):CN(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Jj(e)).r,(t=Jj(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=EN(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var IN="center",DN="bottom";[{key:"NoDataExist",alignment:IN,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:IN,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:IN,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:IN},{key:"DataRangeIncludingZero",alignment:DN},{key:"LimitedData",alignment:DN},{key:"NegativeOrZeroValues",alignment:DN}].reduce((function(e,t){return e[t.key]=t,e}),{});var PN,MN=["__proto__","constructor"];function RN(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!MN.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function LN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function AN(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}function kN(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function ON(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=TN)):void 0===t&&(t=qN);for(var r,n,o,i,a,s=new NN(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new NN(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(jN)}function qN(e){return e.children}function TN(e){return Array.isArray(e)?e[1]:null}function _N(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function jN(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function NN(e){this.data=e,this.depth=this.height=0,this.parent=null}function FN(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,r,n){const o="rows"===n?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(o)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}NN.prototype=ON.prototype={constructor:NN,count:function(){return this.eachAfter(kN)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return ON(this).eachBefore(_N)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},PN=function(e){
|
|
101
101
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
102
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=p-g,y=e.substring(v,v+1),b=v+("."===y||","===y?1:0),x=g>0?e.substring(b,p):"";if(r=(t="-"===(e=e.substring(f,b)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%l,p=d.length,b=0;b<p;b++)m+=d.charAt(b),!((b-v+1)%l)&&b<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},CN({exports:{}});const _N="qHyperCubeDef.qDimensions",jN="dimensions",NN="qOtherTotalSpec.qTotalMode",FN="totalMode",zN={quarantine(e){__.quarantineArrayProp({properties:e,arrayPath:_N,quarantineName:FN,arrayName:jN,itemPath:NN})},unquarantine(e){__.unquarantineArrayProp({properties:e,arrayPath:_N,quarantineName:FN,arrayName:jN,itemPath:NN})}};function WN(e){const t=TN(e);return(e,r,n,o)=>{const i=__.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),a=i.qProperty.qHyperCubeDef.qDimensions.length,s=i.qProperty.qHyperCubeDef.qMeasures.length;let l,u=i.qProperty.qHyperCubeDef.qInterColumnSortOrder,c=!0;a+s===u.length&&IN(i,"qProperty.qLayoutExclude.quarantine.interColSortOrder",u.concat());const d=i.qProperty.qLayoutExclude.quarantine?.pivotInterColSortOrder;d?(u=d,l=[...d],IN(i,"qProperty.qHyperCubeDef.qInterColumnSortOrder",u),i.qProperty.qLayoutExclude.quarantine&&delete i.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):u.length=0;const p=+(u.indexOf(-1)>-1),f=a+p;if(f>u.length)for(let e=u.length;e<f;e++)u.indexOf(e)<0&&u.push(e-p);for(let e=u.length-1;e>=0;e--)u[e]>=a&&u.splice(e,1);s>1&&u.indexOf(-1)<0?u.push(-1):s<2&&u.indexOf(-1)>-1&&u.splice(u.indexOf(-1),1);const h=i.qProperty.qHyperCubeDef.qNoOfLeftDims??-1;if(a>0&&-1===h&&IN(i,"qProperty.qHyperCubeDef.qNoOfLeftDims",a),l?.length===u.length){for(let e=0;e<l.length;e++)if(l[e]!==u[e]){c=!1;break}c&&(__.unquarantineProperty(i.qProperty,"noOfLeftDims"),__.unquarantineProperty(i.qProperty,"excludedNoOfLeftDims "))}return __.conditionalShow.unquarantine(i.qProperty),zN.unquarantine(i.qProperty),U_(i.qProperty),__.unquarantineProperty(i.qProperty,"pivotTableIndentMode"),i}}function $N(e,t){const r=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,n=r.slice(),o=r.indexOf(-1);o>-1&&r.splice(o,1);const i=__.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),a=i.properties.qHyperCubeDef,s=a.qDimensions.length,l=a.qMeasures.length;let u=a.qInterColumnSortOrder;IN(i,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",n),__.quarantineProperty(i.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete i.properties.qHyperCubeDef.qNoOfLeftDims;const c=i.properties.qLayoutExclude.quarantine?.interColSortOrder;c&&(u=c,IN(i,"properties.qHyperCubeDef.qInterColumnSortOrder",u),IN(i,"data.0.interColumnSortOrder",u),i.properties.qLayoutExclude.quarantine&&delete i.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=u.length;e<s+l;e++)u.length<=e&&u.push(e);return __.quarantineProperty(i.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),__.quarantineProperty(i.properties,"qHyperCubeDef.excludedNoOfLeftDims ","excludedNoOfLeftDims "),__.conditionalShow.quarantine(i.properties),zN.quarantine(i.properties),Y_(i.properties),i}const HN=e=>({dimensions:{min:1,max:1e3,description(t,r,n){const o="rows"===n?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return e.translator.get(o)}},measures:{min:1,max:1e3,description:()=>e.translator.get("Visualizations.Descriptions.Values")}}),VN={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let BN=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),GN=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const UN=e=>{switch(e?.type){case"url":return BN.Link;case"image":return BN.Image;case"indicator":return BN.Indicator;case"miniChart":return BN.MiniChart;default:return BN.Text}},YN=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),KN=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>UN(e.qDef.representation)===BN.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},XN=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:YN({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>UN(e.qDef.representation)===BN.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>UN(e.qDef.representation)===BN.Link&&e.qDef.representation?.urlPosition===GN.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>UN(e.qDef.representation)===BN.Link&&e.qDef.representation?.urlPosition===GN.Attribute},...KN(r)}},JN=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[BN.Image],i=!n?.("qMiniChartDef")&&t[BN.MiniChart],a=!n?.("tableIndicators")&&t[BN.Indicator],s=o&&t[BN.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>UN(e.qDef.representation)===BN.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};let ZN=function(e){return e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot",e}({}),QN=function(e){return e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel",e}({}),eF=function(e){return e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid",e}({}),tF=function(e){return e.Forward="forward",e.Backward="backward",e.None="none",e}({});const rF="image",nF=(e,t,r)=>{if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder?.indexOf(-1)??-1;let o=r.properties.qHyperCubeDef.qNoOfLeftDims??-1;n>-1&&n<o&&(o-=1);const i=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},oF=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:aT.Auto,translation:"Common.Auto"},{value:aT.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:aT.Pixels,translation:"Object.Table.Column.Pixels"},{value:aT.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:aT.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:iT.PixelsDefault,show:e=>e.qDef.columnWidth?.type===aT.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:iT.PercentageDefault,show:e=>e.qDef.columnWidth?.type===aT.Percentage}}),iF=({key:e,translation:t,env:r})=>{const n=!r.anything.sense?.isUnsupportedFeature?.("tableImages");return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>!n||"labelTextAlign"===e||t.qDef.representation?.type!==rF},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>void 0!==t.qDef[e]&&!t.qDef[e].auto&&(!n||"labelTextAlign"===e||t.qDef.representation?.type!==rF)}}},aF="TOTAL_OFF",sF={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:QN.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:QN.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:QN.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:QN.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:QN.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:QN.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},lF="TOTAL_OFF",uF={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:QN.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:QN.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:QN.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:QN.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:QN.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:QN.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},cF=e=>{const{translator:t,anything:r,flags:n}=e,o=(e=>{const{translator:t,anything:r}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:aF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:aF,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&nF},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,n)=>!r.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==aF&&nF(e,0,n)},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show:e=>"OTHER_OFF"!==e.qOtherTotalSpec?.qOtherMode}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:sF,...iF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...iF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...XN(e),...oF()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:sF,...iF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...iF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...JN(e,{[BN.Image]:!0,[BN.Indicator]:!0}),...oF()}}}},filter:{type:"object",component:"filter-item-react",ref:"filter",tabName:"SimpleProperties.Filters.Filters"}}}})(e);return n.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?o:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:lF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:lF,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&nF},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,n)=>!r.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==lF&&nF(e,0,n)},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show:e=>"OTHER_OFF"!==e.qOtherTotalSpec?.qOtherMode},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:uF,...iF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...iF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...XN(e),...oF()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:uF,...iF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...iF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...JN(e,{[BN.Image]:!0,[BN.ImagesInIndentMode]:!0,[BN.Indicator]:!0}),...oF()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}},dF=OS().palette,pF={TEXT:dF.text.primary,DISABLED:dF.text.disabled,HOVER:dF.action.hover,WHITE:Df.GREYSCALE_100,BORDER_MEDIUM:Df.GREYSCALE_85,DARK_MODE_TEXT:Df.GREYSCALE_95,DARK_MODE_BORDER:Df.GREYSCALE_95,DARK_MODE_DISABLED:Df.GREYSCALE_70,TRANSPARENT:"transparent",SELECTED:dF.primary.main,LINK:dF.info.main,ERROR:dF.error.main},fF=(e,t=pF.TEXT,r=pF.WHITE)=>{const n=lj(e),o=lj(t),i=lj(r);return n.isInvalid()?t:function(e,t,r){const n=uj(e,t),o=uj(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},hF=e=>{const t=e.getStyle("","","dataColors.selected")||pF.SELECTED,r=function(e,t){const r=lj("#FFFFFF"),n=lj(e),o=lj(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=uj(r,n),a=uj(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,pF.TEXT);return{background:t,color:r}},mF=(e,t)=>{const r=lj(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},gF=e=>{const t=lj(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},vF=e=>{e.stopPropagation(),e.preventDefault()},yF=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),bF=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},xF=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map((e=>bF(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...Ej(n).filter((e=>!a.includes(e))).map((e=>bF(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),SF=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],wF=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>bF(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...SF.filter((e=>!i.includes(e))).map((e=>bF(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),CF=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:xF({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:wF({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:yF(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:yF(`${e}.background`,"properties.background",((t,r)=>{const n=r?pF.WHITE:pF.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),EF=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:yF(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:yF(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),IF=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),DF="12px",PF="Source Sans Pro, sans-serif",MF="600",RF=15e3,LF=4/3;let AF=function(e){return e.Transparent="transparent",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2",e}({}),kF=function(e){return e.Solid="solid",e.None="none",e}({});const OF={display:"flex",justifyContent:"center",alignItems:"center"},qF={borderStyle:"solid"},TF={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},_F={lineHeight:LF,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},jF=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),NF=(e,t)=>e>0?`${e}px ${kF.Solid} ${t}`:kF.None,FF=(e,t,r,n,o)=>{const i=Number(!t||o?.right),a=Number(!e||o?.bottom);return{borderRight:"rtl"!==n?NF(i,r):kF.None,borderBottom:NF(a,r),borderLeft:"rtl"===n?NF(i,r):kF.None,borderTop:kF.None}},zF=(e,t,r,n,o,i,a)=>{const s=FF(t,n,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=NF(2,o)),r||(s.borderLeft="rtl"!==i?NF(1,o):"none",s.borderRight="rtl"===i?NF(1,o):"none")),s},WF=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=NF(1,r)),t&&(n.borderRight=NF(1,r)),n},$F=(e,t,r)=>{switch(t){case"header":return e.object?.pivotTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.pivotTableV2?.dimension?.label?.value?.[r];case"measureLabels":return e.object?.pivotTableV2?.measure?.label?.name?.[r];case"measureValues":return e.object?.pivotTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.pivotTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.pivotTableV2?.null?.label?.value?.[r];default:return}},HF=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:CF({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:$F}),dimensionValueSection:CF({section:"dimensionValues",translator:e,flags:t,getThemeValue:$F}),measureValueSection:CF({section:"measureValues",translator:e,flags:t,getThemeValue:$F}),measureLabelSection:EF({section:"measureLabels",getThemeValue:$F}),totalValuesSection:EF({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:$F}),nullValuesSection:EF({section:"nullValues",fallbackBackground:AF.NullValueBackground,getThemeValue:$F}),gridSection:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:IF("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:IF("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"),border:yF("grid.border","properties.border",(e=>e.object?.pivotTableV2?.grid?.borderColor??AF.DividerLight)),divider:yF("grid.divider","properties.pivot.divider",(e=>e.object?.pivotTableV2?.grid?.divider?.borderColor??AF.DividerDark)),background:yF("grid.background","properties.background",(e=>e.object?.pivotTableV2?.grid?.backgroundColor??AF.Transparent))}}}}}}]}),VF=e=>{if(e.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}}},BF=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[HF(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:aT.Auto,translation:"Common.Auto"},{value:aT.Pixels,translation:"Object.Table.Column.Pixels"},{value:aT.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:aT.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:iT.PixelsDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===aT.Pixels}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:iT.PercentageDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===aT.Percentage}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){const{qIndentMode:t}=e.qHyperCubeDef;return!t&&!!e.qHyperCubeDef.qDimensions.some((e=>"TOTAL_EXPR"===e.qOtherTotalSpec?.qTotalMode))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}]},...VF(t)}}),GF="auto",UF={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:GF,translation:"Object.Table.SortingInSearch",options:[{value:GF,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function YF(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:cF(e),sorting:UF,addons:VN,settings:BF(t,r)}}}function KF(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,exploration:e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:YF(e),importProperties:WN(e),exportProperties:$N,exploration:p_(e),data:HN(e),propertyHandler:e.flags.isEnabled("VNA-147_NEBULA_PIVOT_DATA_HANDLERS")?e=>new q_(e):void 0}}const XF=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function JF(e,t){return M((()=>e),t)}const ZF={},QF=e=>{const t=M((()=>({current:ZF})),[]);return t.current=t.current===ZF?e:t.current,t},ez=e=>!!e&&0===lj(e).a,tz="#grid",rz=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},nz=(e,t,r,n,o)=>{const i=rz(".qv-object .qv-inner-object",r),a=rz(".qv-panel-sheet",r),s=rz(tz,r)??a,l=(e=>{const t=e.components?.find((e=>"general"===e.key)),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return gF(r);if("none"===n)return"transparent";if(void 0===n)return;const i=lj(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=ez(d),f=!ez(h=p?s:d)&&fF(h,pF.TEXT,pF.DARK_MODE_TEXT)===rj(pF.DARK_MODE_TEXT);var h;const m=((e,t,r,n=pF.WHITE)=>e&&!ez(e)?e:ez(t)?r&&!ez(r)?r:n:t)(l,d,s);return{color:d,headerColor:m,isDark:f}},oz=(e,t,r,n)=>{const o=O(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=A([]);return k((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{r?.disconnect()}}),[e,t]),r})(t.closest(tz),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return M((()=>({...o,background:nz(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function iz(e,t){const r=M((()=>({isLoading:!0})),t),[n,o]=L((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const az=3;function sz(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function lz({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=az}={},{estimateWidth:a,measureText:s,estimateLineCount:l}=v((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=DN(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=DN((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=sz(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}var uz,cz=E;uz=cz.createRoot,cz.hydrateRoot;const dz="Source Sans Pro, sans-serif";function pz(e,t){const[r,n]=m(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var fz={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const hz=({translator:e})=>(v((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(fz).forEach((t=>{e.add(fz[t])}))}}(e)}),[e]),e),mz={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},gz={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},vz=fl("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...mz},"&::-moz-range-track":{...mz},"&::-ms-track":{...mz},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...gz},"&::-moz-range-thumb":{...gz},"&::-ms-thumb":{...gz},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),yz=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c,accessibilityRelatedArgs:d,direction:p="ltr"})=>{const f=hz({translator:d.translator}),h=l({initWidth:e,columnWidth:e,initX:0}),m=r?0:1,g=n&&!c,v=()=>g?h.current.columnWidth-m:"100%",y={left:"rtl"!==p?v():void 0,right:"rtl"===p?v():void 0},b=t=>{h.current={initWidth:e,columnWidth:e,initX:t??h.current.initX}};pz((()=>{g&&b()}),[e]);const x=e=>{const t=Math.max(e,iT.PixelsMin);h.current.columnWidth=t,i(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:aT.Pixels,pixels:h.current.columnWidth};a(e)}else u?.(!1)},w=e=>{const t="rtl"===p?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;x(t)},C=e=>{vF(e),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),S()},E=e=>{const t="rtl"===p?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;x(t)},I=e=>{vF(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",I),S()},D=!n&&s?e=>{if(e.key===nT.Left||e.key===nT.Right){vF(e);const t=5,r=e.key===nT.Left?t:-t,n="rtl"===p?r:-r;u?.(!0),x(h.current.columnWidth+n)}else e.key===nT.Space||e.key===nT.Enter?(vF(e),s(e),u?.(!1),S()):e.key===nT.Esc&&(vF(e),s(e),u?.(!1),x(h.current.initWidth))}:void 0,P=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return ii.jsx(vz,{style:y,hoverColor:o,isLastColumn:r,className:oT,"data-testid":oT,onMouseDown:e=>{vF(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),u?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:aT.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(vF(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",I),u?.(!0),b(e.touches[0].clientX))},onKeyDown:D,onBlur:s,onFocus:()=>{b()},type:"range",tabIndex:-1,"aria-label":P,"aria-valuemin":iT.PixelsMin,"aria-valuemax":iT.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p},t)},bz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),xz=fl(Qu,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})((({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"}))),Sz=fl(bz,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),wz=fl(hp)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Cz=fl(Uc)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),Ez=fl(bp)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),Iz=fl(bp,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),Dz=fl("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),Pz=fl("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),Mz=fl(mu)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),Rz=fl(Wd,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),Lz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),Az=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?Az(t):t:e.parentElement?.children?.[0]},kz=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?kz(t):t},Oz=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===nT.Down||t===nT.Up){const r=e=>t===nT.Down?Az(e):kz(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},qz=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach((([,e])=>{e(!1)})),await e(r)}}:{}})))})))));let Tz={};const _z=({autoFocus:e,id:t,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:s,isSubMenu:l,isActive:u,direction:c,isPagination:d})=>{const[p,h]=m(!1),g=r.useRef(null),v=f((e=>{e.stopPropagation(),h(!1)}),[h]);return ii.jsxs(ii.Fragment,{children:[ii.jsxs(Iz,{ref:s?g:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),Tz={}),s?.length&&(h(!0),Tz[o]=h,e.stopPropagation()))},disabled:!a,autoFocus:e,isSubMenu:!!l,isActive:!!u,onKeyDown:Oz,children:[u?ii.jsx(Dz,{direction:c,isPagination:d}):null,ii.jsxs(Pz,{children:[ii.jsx(Rz,{direction:c,isPagination:d,children:ii.jsx(i,{})}),ii.jsx(Mz,{variant:"body2",children:o})]}),s?.length?ii.jsx(Lz,{}):null]},t),s?.length?ii.jsx(zz,{isSubMenu:!0,open:p,anchorEl:g.current,onClose:v,menuGroups:qz(s,Tz),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null]})},jz=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&ii.jsx(Ez,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>ii.jsx(_z,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),Nz=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[jz({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?ii.jsx(Cz,{"data-testid":"group-divider",variant:"middle"}):void 0])),Fz={appear:0,enter:0,exit:0},zz=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?ii.jsx(wz,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,transitionDuration:Fz,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:Nz({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,Wz=(e,t)=>e.some((e=>t[e]>0)),$z={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Hz=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=m(null),[a,s]=m($z);return pz((()=>{e||(s($z),i(null))}),[e]),d((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:Wz(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:Wz(["qSelected"],e),canSelectPossible:Wz(["qOption"],e),canSelectAlternative:Wz(["qAlternative"],e),canSelectExcluded:Wz(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},Vz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})}))),Bz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})}))),Gz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})}))),Uz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})}))),Yz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})}))),Kz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})}))),Xz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})}))),Jz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})}))),Zz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})}))),Qz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),eW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),tW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),rW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})})));let nW=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const oW="/qListObjectDef",iW=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[nW.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:Vz,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:Uz,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:Xz,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:GT,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[nW.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:Jz,enabled:!0}]}]),!e.isLocked&&r[nW.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:rW,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(oW))},icon:Zz,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(oW))},icon:tW,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(oW))},icon:Qz,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(oW))},icon:eW,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(oW))},icon:Bz,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:Kz,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:Yz,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[nW.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:Gz,enabled:!0}]}]),f},aW=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:h,model:m,direction:g="ltr",isPagination:v,isAccessibleHeader:y,iconSize:b=eT})=>{const x=l(null),S=hz({translator:o}),{qLibraryId:w,fieldId:C,headTextAlign:E}=n,I=d?.app,{fieldInstance:D,selectionActionsEnabledStatus:P}=Hz({open:e,headerData:n,app:I,qStateName:d?.qStateName}),M=(({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null})({model:m,headerData:n}),R=(({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>f((()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}}),[e,t,r,n?.qStateName,o,i]))({qLibraryId:w,fieldId:C,searchRelatedArgs:c,selectionRelatedArgs:d,direction:g}),L=f((e=>{e.stopPropagation(),t(!1)}),[t]),A=f((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?ii.jsxs(xz,{rightAligned:"right"===E,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper",onClick:!1===y?A:void 0,ref:x,isAccessibleHeader:y,children:[s?ii.jsx(Sz,{height:b,className:tT,"data-testid":tT,isInteractionsActive:i.active??!1,children:ii.jsx(bz,{})}):null,ii.jsx(zz,{open:e,anchorEl:!1===y?x.current:r.current,onClose:L,menuGroups:iW({headerData:n,translator:S,menuAvailabilityFlags:a,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:D,selectionActionsEnabledStatus:P,anchorRef:r,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:M,expandOrCollapseArgs:h}),direction:g,isPagination:v})]}):null},sW=e=>e.isDark?{background:e.color,borderColor:pF.DARK_MODE_BORDER,color:pF.DARK_MODE_TEXT,disabledColor:pF.DARK_MODE_DISABLED,iconColor:pF.DARK_MODE_TEXT}:{background:e.color,borderColor:pF.BORDER_MEDIUM,color:pF.TEXT,disabledColor:pF.DISABLED},lW=fl(Qu,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),uW=fl(Qp,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),cW=fl(uc,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),dW=fl(mu)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),pW=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=v((()=>sW(n.background)),[n]);if(!r.active)return null;const a=o?ii.jsx(lW,{footerStyle:i,children:e}):null;return t?E.createPortal(e,t):a},fW=u({}),hW=()=>h(fW),mW=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const y=(e=>!e.enabled||e.active)(c)?0:-1,b=v((()=>sW(p.background)),[p]),x=o?o.getBoundingClientRect().width:h.width,S=hz({translator:d}),w=v((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:S,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:y,width:x,visibilityThreshold:g})),[t,r,n,o,i,a,s,l,u,c,S,p,f,h,m,b,y,x,g]);return ii.jsx(fW.Provider,{value:w,children:e})};let gW=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),vW=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const yW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),bW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),xW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),SW={FirstPage:bW,PreviousPage:yW,NextPage:Lz,LastPage:xW,FirstPageRTL:xW,PreviousPageRTL:Lz,NextPageRTL:yW,LastPageRTL:bW},wW=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=hW(),u=r.concat("rtl"===n?"RTL":""),c=SW[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},CW=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=hW(),o=0===e.page,{IconComponent:i,styledProps:a}=wW({type:gW.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||vW.FirstPage)?null:ii.jsx(cW,{...a,disabled:!r.active,children:ii.jsx(i,{height:eT})})},EW=(e,t,r=!1)=>{r&&e.key===nT.Tab&&!e.shiftKey&&(vF(e),((e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)})(e.target,t,!1))},IW=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=hW(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=wW({type:gW.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{EW(e,t,n)}:void 0;return o<=(a?.lastPage||vW.LastPage)?null:ii.jsx(cW,{...u,onKeyDown:c,disabled:!i.active,children:ii.jsx(l,{height:eT})})},DW=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=hW(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=wW({type:gW.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>vW.FirstPage&&o>vW.LastPage)&&t.enabled?e=>{EW(e,t,n)}:void 0;return ii.jsx(cW,{...l,onKeyDown:u,disabled:!i.active,children:ii.jsx(s,{height:eT})})},PW=()=>{const{pageInfo:e,interactions:t}=hW(),r=0===e.page,{IconComponent:n,styledProps:o}=wW({type:gW.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return ii.jsx(cW,{...o,disabled:!t.active,children:ii.jsx(n,{height:eT})})},MW=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=hW(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||vW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return ii.jsx(dW,{variant:"caption",dir:"ltr",children:s})},RW=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=hW(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return ii.jsxs(ii.Fragment,{children:[ii.jsxs(dW,{variant:"caption",id:p,children:[c,":"]}),ii.jsx(uW,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},LW=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=hW();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||vW.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=ii.jsx(ii.Fragment,{children:e.rowsPerPageOptions.map((e=>ii.jsx("option",{value:e,children:e},e)))});return ii.jsx(RW,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},AW=1e3,kW="…",OW=({totalPages:e,page:t})=>{const r=Math.min(e,AW),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-AW):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return ii.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(ii.jsx("option",{value:kW,disabled:!0,children:kW},"startMoreOptions")),o<e-1&&a.push(ii.jsx("option",{value:kW,disabled:!0,children:kW},"endMoreOptions")),ii.jsx(ii.Fragment,{children:a})},qW=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=hW(),{page:i}=e;if(t<=(o?.selectPage||vW.SelectPage))return null;const a=ii.jsx(OW,{totalPages:r,page:i});return ii.jsx(RW,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var TW=b((e=>ii.jsxs(mW,{...e,children:[ii.jsx(LW,{}),ii.jsx(qW,{}),ii.jsx(MW,{}),ii.jsx(CW,{}),ii.jsx(PW,{}),ii.jsx(DW,{}),ii.jsx(IW,{})]})));const _W=e=>ii.jsx(pW,{...e,children:ii.jsx(TW,{...e})}),jW=u({}),NW=()=>h(jW),FW=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o,children:i})=>{const a=v((()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o})),[e,t,r,n,o]);return ii.jsx(jW.Provider,{value:a,children:i})},zW=u({}),WW=()=>h(zW),$W=({app:e,model:t,theme:r,embed:n,keyboard:o,translator:i,interactions:a,env:s,children:l})=>{const u=v((()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:o,env:s,translator:i})),[e,a,t,n,r,o,s,i]);return ii.jsx(zW.Provider,{value:u,children:l})},HW=u({}),VW=()=>h(HW),BW=({children:e,...t})=>ii.jsx(HW.Provider,{value:t,children:e}),GW=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{const{theme:e,translator:t}=WW(),{layoutService:r}=VW(),n=e.getStyle("","","fontFamily")??PF;return r.hasData?r.hasLimitedData?{text:t.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:n,alignItems:"center",height:"22px"}:{}:{text:t.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:n,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:ii.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:ii.jsx("span",{style:{..._F,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},UW="/qHyperCubeDef",YW=-1,KW="PSEUDO-DIM",XW=e=>e===YW?KW:(({cId:e})=>e??y_())(e),JW=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===YW?r.columnWidthLocation=ZN.Measures:r.isLeftDimension?r.columnWidthLocation=ZN.Dimension:t.at(-1)===YW?r.columnWidthLocation=ZN.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=ZN.Pivot))},ZW=(e,t,r,n)=>{const o=XW(r),i=e.getDimensionInfoIndex(r),a=e.isLeftDimension(i);return r===YW?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:ZN.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:o,colIdx:0,label:r.qFallbackTitle,qReverseSort:r.qReverseSort,sortDirection:r.qSortIndicator&&"N"!==r.qSortIndicator?r.qSortIndicator:"A",qLibraryId:r.qLibraryId,fieldId:r.qGroupFieldDefs[r.qGroupPos],isLocked:r.qLocked??!1,columnWidth:r.columnWidth,qApprMaxGlyphCount:r.qApprMaxGlyphCount,isDim:!0,isCyclic:r.qGrouping===uT.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:ZN.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},QW=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let o=n;var i;r.length>0&&(o=(i=n).at(-1)===YW?i.slice(0,-1):i);const a=o.length+(r.length?1:0),s=Math.max(1,r.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,s);return r.forEach(((r,n,o)=>{const i=n===o.length-1;l[a-1][n]=ZW(e,t,r,i)})),o.forEach(((r,n,o)=>{const i=n===o.length-1;l[n][s-1]=ZW(e,t,r,i)})),l},e$=(e,t,r,n)=>{const o=((e,t,r,n)=>{let o;return o=0===r.length||r.includes(YW)?QW({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(QW({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&o.at(-1)?.forEach(((t,r)=>{Array.isArray(t)?t.forEach(((t,r)=>{JW({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})):JW({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})),o})(e,t,r,n);return{data:o,size:{x:o[0]?.length??0,y:o.length}}};var t$={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach((e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:n$(e),value:n$(t),useEqualSign:r}}(n,o,i))})),t}},r$=t$;function n$(e){try{return decodeURIComponent(e)}catch{return e}}function o$(e){if(!(this instanceof o$))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>r$.fromSearchString(t.search)}})}function i$(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}o$.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},o$.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=i$(t.key),t.value?r+=`=${i$(t.value)}`:r+=t.useEqualSign?"=":"";return r};var a$=o$;var s$,l$=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},u$=class{decode(e){let t="";const r=new l$(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},c$=e=>e>=0&&e<=1114111,d$=e=>e.match(/[\s]/),p$=class extends u${decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(r=i,n=0;n<5&&(o=e.next(),null!=o&&!d$(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return c$(a)?String.fromCharCode(a):"�"}},f$=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},h$=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return f$.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return f$.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||f$.newInstanceIfNeeded(e,t,this._value)}},m$=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new h$);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},g$=(()=>{const e=[],t=[],r=new m$;let n,o,i;for(n in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})(),v$=class extends u${decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,g$.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=g$.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&c$(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&c$(n)?String.fromCharCode(n):null}},y$=class extends u${decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),c$(i))?String.fromCharCode(i):(e.reset(),null)}},b$=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,x$=5e6,S$=5e5,w$=(e,t)=>{const{maxByteSizeSvg:r=S$,maxByteSizeImage:n=x$}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=b$.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n};"undefined"!=typeof document&&(s$=document.createElement("div"));var C$=Array.prototype.indexOf,E$=[",",".","_"," "],I$=[",",".","-","_"," "],D$={width:["%"],height:["%"]},P$={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},M$={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":P$.image,"background-color":P$.color,"border-color":P$.color,"border-image":P$.image,color:P$.color,icon:P$.image,"list-style-image":P$.image,"outline-color":P$.color},R$={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function L$(e,t,r){let n;if(t){if(C$)return C$.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function A$(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return s$.appendChild(r),t=s$.innerHTML,s$.removeChild(r),t}function k$(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=q$(e).toLowerCase(),t=q$(t),i=0;i<R$.attr_name.length;i++)if(e.match(R$.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<R$.attr_val.length;i++)if(t.toLowerCase().match(R$.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=D$[e],n||(n=I$),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&L$(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function O$(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=q$(e).toLowerCase(),t=q$(t),L$(e,R$.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<R$.css_val.length;n++)if(t.toLowerCase().indexOf(R$.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=M$[e],o||(o=P$.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&L$(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function q$(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new v$,new y$,new p$];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}var T$=[];for(let e=0;e<255;e++)T$[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var _$={html:e=>A$(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=O$(t,r[t],!0),i+=O$(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=k$(e,t[e],!0),o+=k$(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function j$(e,t){throw new Error(t)}var N$={canonicalize:q$,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?_$.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&j$(this,"Invalid parameter type"),_$.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&j$(this,"Invalid parameter type"),_$.attr(e)):void j$(this,"Invalid parameter type")},encodeForAttr:k$,encodeForAttr2:function(e){return k$("nonsens",e,!0)},encodeForCSS:O$,encodeForHref:function(e){q$(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new a$(e),r=a$.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+a$.encodeSearchParams(n)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,o,i,a,s;for(t||(t=E$),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),L$(o,t)>=0||null==T$[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:A$,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=q$(t).toLowerCase():j$(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:w$,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const F$=(e,t)=>t.qAttrExps?.qValues?.[e],z$=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},W$=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&N$.isSafeDataURL(t)?{type:BN.Image,url:t,text:e,imageSize:r,resolvedImagePosition:z$(n,a),labelStructure:o,imageBox:i}:{type:BN.Text,url:void 0,text:e,labelStructure:o},$$=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:BN.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:BN.MiniChart,text:n,miniChart:a}},H$=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===GN.Attribute?void 0:r?.urlLabel},V$=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:BN.Link,url:N$.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:BN.Text,url:void 0,text:t,labelStructure:e}}},B$=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=UN(t),d=s(e);return c===BN.Image&&u[BN.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=F$(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),W$({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return W$({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=F$(r.imageLabel??-1,e)?.qText??n;return W$({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:BN.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===BN.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===GN.Attribute){const i=H$(r.url??-1,e,t);return V$({labelStructure:n,text:o||i||"",url:i})}if(i===GN.Dimension){const i=H$(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),V$({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:BN.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===BN.Indicator&&u[BN.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:BN.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===BN.MiniChart&&u[BN.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?$$(e,t,i,d):{type:BN.Text,url:void 0,text:d,labelStructure:a}},G$=(e,t)=>{const r=t.qAttrExps,n=r?.qValues?.[e?.cellForegroundColor??-1]?.qText,o=r?.qValues?.[e?.cellBackgroundColor??-1]?.qText,i=o?gF(o):null,a=n?gF(n):null,s=((e,t)=>e||!t?null:fF(t))(a,i);return{color:s??a,background:i}},U$=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:U$(e,t)),e),Y$=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:RF-n;let s=e.qUp+e.qDown;if(o&&0===r){const r=(t+e.qUp)%i.rowsPerPage;s=e.qDown+r}return Math.min(a,U$(s,e))},K$=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:s,attrExprInfoIndex:l,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,labelStructure:p,env:f,pageInfo:h,direction:m="ltr"})=>{const g=(!c||!u)&&"P"===e.qType,v=((e,t)=>{if(e!==YW){if(t){const t=UN(e.representation);return t===BN.Link||t===BN.Image?e.representation:{type:BN.Text}}return e.representation}})(s,c),y=(({node:e,isLeftColumn:t,isIndentModeEnabled:r,labelStructure:n,representationType:o,parentOrRootOriginalValue:i})=>{let a=e.qText;if(t&&r&&n){const{originalValue:t,delimeter:r,suffix:s}=n;a=o===BN.Link?"P"===e.qType?i:t:`${t} ${!s||!t&&s?"":r} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:p,representationType:UN(v),parentOrRootOriginalValue:(t||r)?.representation?.labelStructure?.originalValue??""}),b=B$({cell:{...e,qText:y},representationProperties:v,attrExprInfoIndex:l,env:f,labelStructure:p,direction:m,enabledFeatures:{[BN.Image]:!0,[BN.Indicator]:!0}}),x={id:y_(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:Y$(e,o,i,n,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof s||!s.qLocked),isTotal:"T"===e.qType||!!t?.isTotal,isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:g,expressionColor:G$(l,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(s),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:g?e.qElemNo:t?.visibleMeasureInfoIndex,representation:b,...void 0!==d&&{indentLevel:d}};return t&&(t.children[x.mainAxisPageCoord-t.mainAxisPageCoord]=x),x},X$=(e,t,r,n,o,i,a,s,l)=>{const{isIndentModeEnabled:u}=o;if(!t.length)return e;let c=0;return function t(d,p,f,h=0,m=-1){e[h]||(e[h]={}),u&&m++;const g=o.leftDimensionInfoIndexes.indexOf(YW);f.forEach(((f,v)=>{const y={originalValue:f.qText??"",maskedValue:"",delimeter:"-",suffix:""};c+=0===v?0:1;const b=r.qTop-n.page*n.rowsPerPage,x=Math.max(0,b+c-f.qUp),S=r.qTop+c-f.qUp;if(u){if(o.hasPseudoDimOnLeft&&m<=g)if(y.originalValue=f.qText??"",y.maskedValue=f.qText??"","N"===f.qType||"U"===f.qType||"T"===f.qType)"U"===f.qType&&(y.originalValue=o.getNullValueText()),m<g&&(y.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===f.qType){y.originalValue=(p||d)?.representation.labelStructure?.originalValue??"",y.maskedValue=(p||d)?.representation.labelStructure?.originalValue??"",y.suffix=f.qText??"";const e=f.qSubNodes;f={...(p||d)?.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},m=(p||d)?.indentLevel??0}"U"===f.qType&&(y.originalValue=o.getNullValueText())}let w=h;u&&(w=g>=1&&m>=g?m+1:m,0===m&&0===g&&0===f.qSubNodes.length&&(w=0));const C=e.at(h)?.[x],E=u&&void 0===C?.ref.qText||!C?K$({node:f,parent:p,root:d,x:w,y:S,pageY:x,layoutService:o,dimensionInfo:i[w],attrExprInfoIndex:a[w],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentLevel:m},env:s,pageInfo:n,labelStructure:y,direction:l}):e[h][x];if(e[h][x]=E,f.qSubNodes.length){const e=u?0:h+1;t(d||E,E,f.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},J$=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n.at(r+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},Z$=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=t?.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=r?.[o],a=n.at(-1);return i?.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:a?.isTotal?a.mainAxisPageCoord-1:-1},Q$=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a,direction:s})=>{const{qLeft:l,qArea:u}=t;if(!l.length)return e;const c=X$(e.grid,l,u,r,n,o,i,a,s);J$(c,r.rowsOnCurrentPage);const d=Z$(c,n);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},eH=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{const a=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[a])||(o[a]=[]);const l="U"===t.qType;o[a][s]=o[a][s]??{id:y_(),ref:t,isNull:l}}))})),o},tH=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n?.length?eH({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},rH=(e,t,r,n,o,i,a,s,l,u)=>{const{isIndentModeEnabled:c}=n;if(!t.length)return e;let d=0;!function t(a,p,f,h=0){e[h]||(e[h]={}),f.forEach(((f,m)=>{d+=0===m?0:1;const g=r.qLeft+d-f.qUp,v=e[h][g]??K$({node:f,parent:p,root:a,x:g,y:h,pageY:h,layoutService:n,dimensionInfo:o[h],attrExprInfoIndex:i[h],isLeftColumn:!1,...c&&{isIndentModeEnabled:c},env:s,pageInfo:l,direction:u});e[h][g]=v,f.qSubNodes.length&&t(a||v,v,f.qSubNodes,h+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},nH=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:s,direction:l})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=rH(e.grid,u,c,r,n,o,i,a,s,l);J$(d,r.size.x);const p=Z$(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},oH=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),iH=(e,t)=>{const{env:r}=WW(),{direction:n}=NW(),{layoutService:o,effectivePropertiesService:i}=VW(),{qPivotDataPages:a,pageInfo:s}=NW(),[l,u]=m(null),c=((e,t,r)=>v((()=>({left:e.map(oH),top:t.map(oH),measures:r.map(oH)})),[r,e,t]))(e,t,o.visibleMeasureInfo),d=v((()=>e$(o,i,t,e)),[o,i,t,e]),p=f((()=>a.slice(1).reduce(((e,t)=>tH({prevData:e,dataPage:t,pageInfo:s})),((e,t)=>{const{qData:r,qArea:n}=e;return eH({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(a[0],s))),[a,s]),h=f((()=>a.slice(1).reduce(((e,i)=>nH({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n})),((e,t,r,n,o,i,a,s)=>{const{qArea:l,qTop:u}=e,c=rH([],u,l,t,r,n,o,i,a,s);J$(c,t.size.x);const d=Z$(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(a[0],o,t,c.top,d.size.y,r,s,n))),[a,o,t,c.top,d.size.y,r,s,n]),g=f((()=>a.slice(1).reduce(((t,i)=>Q$({prevData:t,nextDataPage:i,pageInfo:s,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r,direction:n})),((e,t,r,n,o,i,a)=>{const{qArea:s,qLeft:l}=e,u=X$([],l,s,r,t,n,o,i,a);J$(u,r.rowsOnCurrentPage);const c=Z$(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(a[0],o,s,e,c.left,r,n))),[a,o,s,e,c,r,n]),[y,b]=m((()=>p())),[x,S]=m((()=>h())),[w,C]=m((()=>g()));pz((()=>{b(p())}),[p]),pz((()=>{S(h())}),[h]),pz((()=>{C(g())}),[g]),pz((()=>{l&&l.forEach((i=>{b((e=>tH({prevData:e,dataPage:i,pageInfo:s}))),S((e=>nH({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n}))),C((t=>Q$({prevData:t,nextDataPage:i,pageInfo:s,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r,direction:n})))}))}),[l]);const E=f((e=>{u(e)}),[]);return{headersData:d,measureData:y,topDimensionData:x,leftDimensionData:w,attrExprInfoIndexes:c,nextPageHandler:E}},aH=Math.sqrt(1e4),sH=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/iT.PixelsMin)}),lH=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/aH),n=Math.ceil(e.qHeight/aH);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*aH,qTop:e.qTop+r*aH,qWidth:Math.min(aH,e.qWidth-o*aH),qHeight:Math.min(aH,e.qHeight-r*aH)});return t};function uH({nextPageHandler:e}){const{model:t}=WW(),{pageInfo:r}=NW(),{layoutService:n}=VW(),o=(e=>{const t=l(e);return t.current=e,t})(r.page),i=t,a=f((async(e,t)=>{await(i?.collapseLeft(UW,e,t,!1))}),[i]),s=f((async(e,t)=>{await(i?.collapseTop(UW,e,t,!1))}),[i]),u=f((async(e,t)=>{await(i?.expandLeft(UW,e,t,!1))}),[i]),c=f((async(e,t)=>{await(i?.expandTop(UW,e,t,!1))}),[i]),d=f((async t=>{if(i?.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(UW,t.reduce(((e,t)=>[...e,...lH(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),p=f(((e,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:s,qDimensionInfo:l,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case ZN.Dimension:c=[{qPath:`${UW}/qDimensions/${r}/qDef/columnWidth`,oldValue:l[r].columnWidth}];break;case ZN.Measures:if(o)c=s.map(((e,t)=>({qPath:`${UW}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${UW}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case ZN.Pivot:c=[{qPath:`${UW}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}}));t?.applyPatches(d,!0)}),[t,n]),h=f((async e=>{await(i?.applyPatches([{qPath:`${UW}/indentModeColumnWidth`,qOp:n.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))}),[i,n]);return v((()=>({collapseLeft:a,collapseTop:s,expandLeft:u,expandTop:c,applyColumnWidth:p,applyIndentModeColumnWidth:h,fetchPages:d})),[a,s,u,c,p,h,d])}const cH=(e,t,r)=>(n,o)=>{if("P"===n)return YW;const i=t[r+o];return e[i]},dH=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},pH=u({}),fH=()=>h(pH),hH=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=VW(),{qPivotDataPages:n}=NW();return v((()=>{const o=dH(n[0]?.qLeft??[]),i=dH(n[0]?.qTop??[]);return{visibleLeftDimensionInfo:o.map(cH(r,t,0)),visibleTopDimensionInfo:i.map(cH(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:s,nextPageHandler:l}=iH(t,r),u=uH({nextPageHandler:l}),c=v((()=>({gridSectionsData:{headersData:n,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:s,dataModel:u})),[t,r,n,o,i,a,s,u]);return ii.jsx(pH.Provider,{value:c,children:e})},mH=20,gH=18,vH=.75,yH=e=>-1!==e&&e?.representation?.type===BN.Image,bH=({isLeftColumn:e,layoutService:t,representation:r})=>Boolean(e)&&t.isIndentModeEnabled&&r.type===BN.Image,xH=e=>void 0===e?MF:e,SH=(e,t)=>void 0===e||Number.isNaN(+e)?t:+e,wH=e=>SH(e,iT.PixelsDefault),CH=(e,t)=>SH(e,iT.PercentageDefault)*t/100,EH=(e,t,r)=>{switch(t?.type){case aT.Pixels:return wH(t.pixels);case aT.Percentage:return CH(t.percentage,e);case aT.FitToContent:case aT.Auto:default:return r}},IH=({headers:e,layoutService:t,effectivePropertiesService:r,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,s,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:u,qDimensionInfo:c}}}=t,{id:d,colIdx:p,qApprMaxGlyphCount:f,isLeftDimension:h}=s,m=c.find((e=>e.cId===d)),g={width:24,...m?.representation?.imageBox};if(!h)return e+0;if(d===KW)return e+0;const v=bH({isLeftColumn:h,layoutService:t,representation:m?.representation||{type:BN.Text}})?g.width+8+4:n(f),y=!r.qAlwaysFullyExpanded&&p<u-1?21:0;let b=0;if(o&&i&&a){b=i("- ")+a}return Math.max(e,24*l+gH+y+v+b)}),0),DH=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*gH;return Math.max(e,o+t(n.qFallbackTitle))}),0),PH=(e,t,r,n)=>{const o=100*e/t,i=n*vH*(o/100),a=o/100*+r;return Math.min(a,i)},MH=(e,t,r,n)=>n*(+r/100)*(100*e/t/100),RH=(e,t)=>e.some((e=>e>=t*vH)),LH=({layoutService:e,effectivePropertiesService:t,headersData:r,columnWidths:n,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:u})=>{let c=[];const d=o*vH,p=r.data[r.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,n.at(-1)),h=Math.min(d,IH({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,DH(e.visibleMeasureInfo,a));let g=0;const v=p.findIndex((e=>e.id===KW)),y=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===aT.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+gH+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:r});if(e.hasPseudoDimOnLeft)if(0===v){const e=Math.max(f,h,m);c=[Math.max(y,e-f),f]}else{const r=Math.min(d,DH(e.visibleMeasureInfo,l,!0));g=Math.min(d,IH({headers:p.slice(0,v),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:r}));const n=Math.max(f,h,g);c=[Math.max(y,n-f),f]}else c=[Math.max(y,h-f),f];const b=Math.min(d,c.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:x}=e;i&&i<=d&&(x.type=aT.Pixels,x.pixels=i);return[aT.Pixels,aT.Percentage].includes(x.type)||RH(c,o)?((e,t,r,n)=>{let o=e[0],i=e[1],a=[];const s=e.reduce(((e,t)=>e+t),0),{type:l,pixels:u,percentage:c}=t,d=RH(e,r);l===aT.Auto&&d&&(o>i?o-=i:i-=o),l===aT.Pixels&&u&&(o=PH(e[0],s,u,r),i=PH(e[1],s,u,r)),l===aT.Percentage&&c&&(o=MH(e[0],s,c,r),i=MH(e[1],s,c,r));let p=0;i<=n&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-n,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(c,x,o,f):{leftGridWidth:b,leftGridColumnWidths:c,leftGridFullWidth:b}};function AH({tableWidth:e}){const t=e*vH,{styleService:r,layoutService:n,effectivePropertiesService:o}=VW(),{translator:i}=WW(),{gridSectionsData:{headersData:a}}=fH(),{measureText:s}=lz(r.header),{estimateWidth:l,measureText:u}=lz({...r.dimensionValues,fontWeight:xH(r.dimensionValues.fontWeight)}),{measureText:c}=lz({...r.dimensionValues,...r.measureLabels}),d=f(((r,d)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=n,v=(t=0)=>h.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=c(n)+gH,a=Math.max(i,t);return Math.max(r,m?a:EH(e,o,a))}),0),y=e=>a.data.reduce(((t,r)=>{const n=r.at(e);if(!n||Array.isArray(n))return t;if(n.id===KW)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?mH:0;return gH+s(t)+mH+n})(n);return Math.max(o,t)}),0);let b=0,x=a.data.at(-1);m&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((i,s)=>{let u=gH;if(m&&1!==a.size.x||!r||void 0===d||d!==i.colIdx){let t;i.columnWidthLocation===ZN.Pivot?t=m?void 0:f:i.columnWidthLocation===ZN.Dimension&&({columnWidth:t}=i);let r=0;if(i.isLeftDimension)if(i.id===KW)r=v();else{const e=y(s),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:i,dimensionInfoIndex:a}=e,s=n.getDimensionInfo(a);if(yH(s))return iT.PixelsDefault;const u=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return gH+l(r)+u})(i,s);r=Math.max(e,t),m&&!g&&s+1===p&&i.columnWidthLocation===ZN.Dimension&&a.size.x>1&&(r=e)}else r=y(s),i.columnWidthLocation===ZN.Measures&&(r=v(r));m&&1===a.size.x&&(t=n.indentModeColumnWidth),u=m&&!g&&a.size.x>1?r:EH(e,t,r)}else u=m?Math.min(t,r):r;return b+=u,u}));return m&&a.size.x>1?LH({layoutService:n,effectivePropertiesService:o,headersData:a,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:s,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:u,translator:i}):{leftGridWidth:Math.min(t,b),leftGridColumnWidths:S,leftGridFullWidth:b}}),[e,a,n,t,s,c,l,u,i,o]),[p,h]=m(d);pz((()=>{h(d())}),[d]);const g=f(((e,t)=>{h(d(e,t))}),[d]);return{...p,overrideLeftGridWidth:g}}function kH({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=VW(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=fH(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:s}},size:l,visibleMeasureInfo:u}=o,{estimateWidth:c,measureText:d}=lz(n.measureValues),{estimateWidth:p}=lz({...n.dimensionValues,fontWeight:xH(n.dimensionValues.fontWeight)}),h=e-r-1,m=i.at(-1),g=m===YW,y=s.length-a>i.length?21:0,b=v((()=>{const e=g?u:[m],t=l.x/e.length,r=[],n=[];let o=h;const i=(e,n)=>{r[e]=Math.min(iT.PixelsMax,Math.max(iT.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(e?.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:s,qFallbackTitle:l}=e;switch(r){case aT.Pixels:i(t,wH(o));break;case aT.Percentage:i(t,CH(a,h));break;case aT.FitToContent:i(t,((e,t,r)=>r?iT.PixelsDefault:gH+(g?Math.max(c(e),d(t)):Math.max(Math.max(...u.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+y)))(s,l,yH(e)));break;case aT.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(iT.AutoMinPivot,i)}))}return r}),[g,u,m,l.x,h,c,d,p,y]),x=v((()=>{if(g){return u.reduce(((e,t,r)=>e+b[r]),0)/u.length}return b[0]}),[g,b,u]),S=parseFloat((t/o.size.x).toFixed(12)),w=f((e=>(g&&void 0!==e?b[o.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S),[g,b,o,x,S]),C=l.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,h),getRightGridColumnWidth:w}}const OH=`scrollable-container--${eF.TopGrid}`,qH=`scrollable-container--${eF.LeftGrid}`,TH=`scrollable-container--${eF.DataGrid}`,_H=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},jH=(e,t)=>e>t?tF.Forward:e<t?tF.Backward:tF.None,NH=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{const{direction:s}=NW();d((()=>{const{headerGridWrapperElement:l,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=n(),p=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,i(e),o?.(e)},f=e=>{const t=e.target;l.scrollTop=t.scrollTop,i(e),o?.(e)},h=n=>{const a=n.target,l=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(a,s);r.current?.scrollTo({scrollLeft:l,scrollTop:a.scrollTop}),u.scrollLeft=l,e.current?.forEach((e=>{e?.scrollTo(l)})),c.scrollTop=d.scrollTop,t.current?.forEach((e=>{e?.scrollTo(a.scrollTop)})),i(n),o?.(n)};return c.addEventListener("scroll",p),u.addEventListener("scroll",f),d.addEventListener("scroll",h),a.scroll||setTimeout((()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}),0),()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}}),[i,o,a,e,t,r,n,s])},FH=()=>{const{interactions:e}=WW(),t=l(null),r=l(null),n=l(null),o=l(null),i=l([]),a=l([]),s=l(null),{scrollbarsDimensions:{verticalScrollbarWidth:u,horizontalScrollbarHeight:c},resetHorizontalScrollbarHeight:p}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=m(0),[i,a]=m(0);return g((()=>{(e.current||r.current)&&o(Math.max(_H(e.current).width,_H(r.current).width))})),g((()=>{(t.current||r.current)&&a(Math.max(_H(t.current).height,_H(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>{a(0)}}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:s}=NW(),{downloadService:l,viewService:u,layoutService:c}=VW(),d=f((()=>{const o={left:0,top:0};e.current?.scrollTo(o),t.current?.scrollTo(o),r.current?.scrollTo(o),n.current?.scrollTo(o)}),[e,t,r,n]);g((()=>{d()}),[s.page,d]),g((()=>{c.triggerdByExpandOrCollapse||d()}),[c,d]),g((()=>{if(c.triggerdByExpandOrCollapse){const e=n.current?.scrollLeft??0,t=n.current?.scrollTop??0;i.current?.forEach((e=>{e?.scrollTo(t)})),o.current?.forEach((t=>{t?.scrollTo(e)})),a.current?.scrollTo({scrollTop:t,scrollLeft:e})}}),[c,n,a,i,o]),g((()=>{(l.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,l,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s}});const{trackScrollDirection:h,scrollDirectionRefs:{verticalScrollDirection:v,horizontalScrollDirection:y}}=(()=>{const e=l(tF.None),t=l(tF.None),r=l({prevScrollTop:0,prevScrollLeft:0}),n=f((n=>{if(n instanceof WheelEvent&&(e.current=jH(n.deltaY,0),t.current=jH(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=jH(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=jH(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]);return{trackScrollDirection:n,scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),b=(()=>{const{viewService:e}=VW();return f((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===qH&&(e.leftGridScrollLeft=n.scrollLeft),o===TH&&(e.scrollLeft=n.scrollLeft),o===OH&&(e.topGridScrollTop=n.scrollTop),o!==qH&&o!==TH||(e.scrollTop=n.scrollTop)}),[e])})(),x={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s},getWrapperElements:f((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:o.current})),[t,r,n,o]),updateViewService:b,trackScrollDirection:h,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{d((()=>{const{headerGridWrapperElement:o,topGridWrapperElement:s,leftGridWrapperElement:l,dataGridWrapperElement:u}=n(),c=e=>{o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,l.scrollLeft=o.scrollLeft,s.scrollTop=o.scrollTop,i(e)},d=e=>{l.scrollTop+=e.deltaY,t.current?.forEach((e=>{e?.scrollTo(l.scrollTop)})),o.scrollLeft+=e.deltaX,l.scrollLeft=o.scrollLeft,u.scrollTop=l.scrollTop,r.current?.scrollTo({scrollTop:l.scrollTop}),i(e)},p=t=>{s.scrollLeft+=t.deltaX,e.current?.forEach((e=>{e?.scrollTo(s.scrollLeft)})),o.scrollTop+=t.deltaY,s.scrollTop=o.scrollTop,u.scrollLeft=s.scrollLeft,r.current?.scrollTo({scrollLeft:s.scrollLeft}),i(t)},f=n=>{u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,r.current?.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),s.scrollLeft=u.scrollLeft,e.current?.forEach((e=>{e?.scrollTo(u.scrollLeft)})),l.scrollTop=u.scrollTop,t.current?.forEach((e=>{e?.scrollTo(u.scrollTop)})),i(n)};return o.addEventListener("wheel",c),l.addEventListener("wheel",d),s.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout((()=>{o.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{o.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[i,o,a,e,t,r,n])})(x),NH(x),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s},scrollDirectionRefs:{verticalScrollDirection:v,horizontalScrollDirection:y},scrollbarsDimensions:{verticalScrollbarWidth:u,horizontalScrollbarHeight:c,resetHorizontalScrollbarHeight:p}}},zH=()=>{const{layoutService:e}=VW(),{rect:t,pageInfo:r}=NW();return v((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},WH=({children:e,style:t})=>ii.jsx("div",{"data-testid":"fullSize",style:t,children:e}),$H=({children:e,style:t})=>{const{direction:r}=NW();return ii.jsx("div",{"data-section-id":"GRID",style:{direction:r,display:"grid",...t},children:e})},HH=e=>e&&`scrollable-container--${e}`,VH=({children:e,style:t,origin:r},n)=>{const{interactions:o}=WW(),i=o.scroll?t:{overflow:"hidden"};return ii.jsx("div",{"data-testid":"scrollable","data-key":HH(r),style:i,ref:n,children:e})};var BH=r.forwardRef(VH);const GH=({children:e,style:t})=>{const{direction:r}=NW();return ii.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===r?"right":"left"]:0,...t},children:e})};function UH(){return UH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},UH.apply(null,arguments)}function YH(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KH(e,t){return KH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KH(e,t)}function XH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,KH(e,t)}var JH=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ZH(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||JH(n)&&JH(o)))return!1;var n,o;return!0}function QH(e,t){var r;void 0===t&&(t=ZH);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function eV(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var tV="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function rV(e){cancelAnimationFrame(e.id)}function nV(e,t){var r=tV();var n={id:requestAnimationFrame((function o(){tV()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var oV=-1;function iV(e){if(void 0===e&&(e=!1),-1===oV||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),oV=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return oV}var aV=null;function sV(e){if(void 0===e&&(e=!1),null===aV||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?aV="positive-descending":(t.scrollLeft=1,aV=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),aV}return aV}var lV=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function uV(e){var t,r=e.getColumnOffset,o=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,s=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,YH(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:YH(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=QH((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=QH((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,i=n.props,s=i.columnWidth,l=i.direction,u=i.rowHeight,c=n._getItemStyleCache(g&&s,g&&l,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))o=c[f];else{var h=r(n.props,t,n._instanceProps),m="rtl"===l;c[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:a(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=QH((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(sV()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&rV(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=nV(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}XH(t,e),t.getDerivedStateFromProps=function(e,t){return cV(e,t),v(e),null};var y=t.prototype;return y.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},y.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=iV();void 0!==n&&(n=Math.max(0,Math.min(n,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var y=s(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>f?v:0,x=y>d?v:0;this.scrollTo({scrollLeft:void 0!==n?u(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,b):g})},y.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},y.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(sV()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&rV(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,r=e.className,o=e.columnCount,i=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?lV:f,m=e.outerElementType,g=e.outerTagName,v=e.rowCount,y=e.style,b=e.useIsScrolling,x=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),C=w[0],E=w[1],I=this._getVerticalRangeToRender(),D=I[0],P=I[1],M=[];if(o>0&&v)for(var R=D;R<=P;R++)for(var L=C;L<=E;L++)M.push(n(t,{columnIndex:L,data:p,isScrolling:b?S:void 0,key:h({columnIndex:L,data:p,rowIndex:R}),rowIndex:R,style:this._getItemStyle(R,L)}));var A=s(this.props,this._instanceProps),k=l(this.props,this._instanceProps);return n(m||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:UH({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},y)},n(c||d||"div",{children:M,ref:u,style:{height:A,pointerEvents:S?"none":void 0,width:k}}))},y._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,y=m.scrollTop,b=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,y,g,x,b)}},y._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,n=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||n||a||1;if(0===t||0===s)return[0,0,0,0];var f=o(this.props,d,this._instanceProps),h=i(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},y._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=h(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(C),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var cV=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},dV=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},pV=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},fV=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},hV=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?mV(e,t,r,i,0,n):gV(e,t,r,Math.max(0,i),n)},mV=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=fV(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},gV=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&fV(e,t,n,r).offset<o;)n+=a,a*=2;return mV(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},vV=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=fV(e,t,r,i),u="column"===e?pV(t,i):dV(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},yV=uV({getColumnOffset:function(e,t,r){return fV("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return hV("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=fV("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=fV("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:dV,getEstimatedTotalWidth:pV,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return vV("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return vV("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return fV("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return hV("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=fV("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=fV("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),bV=function(e,t){return e};function xV(e){var t,r=e.getItemOffset,o=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,YH(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:YH(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=QH((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=QH((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,s=o.itemSize,l=o.layout,u=n._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=QH((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(sV()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&rV(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=nV(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}XH(t,e),t.getDerivedStateFromProps=function(e,t){return SV(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?iV():0:l.scrollHeight>l.clientHeight?iV():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(sV()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&rV(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,r=e.className,i=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?bV:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,y=e.useIsScrolling,b=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===h,w=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],I=C[1],D=[];if(c>0)for(var P=E;P<=I;P++)D.push(n(t,{data:d,key:f(P,d),index:P,isScrolling:y?x:void 0,style:this._getItemStyle(P)}));var M=o(this.props,this._instanceProps);return n(m||g||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:UH({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},n(l||u||"div",{children:D,ref:s,style:{height:S?"100%":M,pointerEvents:x?"none":void 0,width:S?M:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var u=s(this.props,a,this._instanceProps),c=l(this.props,u,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(C),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var SV=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},wV=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},CV=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=wV(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},EV=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&wV(e,r,t).offset<n;)r+=i,i*=2;return CV(e,t,Math.min(r,o-1),Math.floor(r/2),n)},IV=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},DV=xV({getItemOffset:function(e,t,r){return wV(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:IV,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=wV(e,t,o),p=IV(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?CV(e,t,o,0,r):EV(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=wV(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=wV(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function PV(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var MV=["style"],RV=["style"];function LV(e,t){var r=e.style,n=eV(e,MV),o=t.style,i=eV(t,RV);return!PV(r,o)&&!PV(n,i)}const AV=10,kV=(e,t)=>e.current===tF.Backward?t:0,OV=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e.at(o);if(void 0===r||void 0===r.at(t))return!0}return!1},qV=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,TV=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],s=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(OV(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+s,qWidth:1,qHeight:n};void 0!==t&&qV(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},_V=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=n,u=r.current===tF.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return TV({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},jV=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:s,qHeight:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=e.size.x,l=kV(r,AV),u=Math.max(n-l,0);return{startLeft:u,endLeft:u+Math.min(i+AV,s-u),pageTop:o,qHeight:a}})(n,o,r),u=TV({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,..._V({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},NV=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},FV=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,zV=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],s=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(NV(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+s,qWidth:n,qHeight:1};void 0!==e&&FV(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},WV=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=kV(r,AV),l=Math.max(o-s,0);return{startTop:l,endTop:l+Math.min(a+AV,e.rowsOnCurrentPage-l),qLeft:n,qWidth:i}})(e,n,r),l=zV({startTop:o,endTop:i,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const n=r.current===tF.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=zV({startTop:n,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},$V=async(e,t,r,n,o,i,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==tF.None&&(p=WV({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==tF.None&&(f=jV({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===tF.None&&a.current===tF.None&&(p=zV({measureData:r,pageInfo:n,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},HV=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];r=s;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}($V,100),VV=PN($V,75),BV=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),GV=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:s}=NW(),{styleService:{grid:{border:l,divider:u}}}=VW();return ii.jsx("div",{style:{...e,...TF,...FF(r,n,l,s,o),...WF({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:u})},"data-testid":"empty-cell","data-index":t})},UV=({children:e,verticalAlign:t,width:r,right:n,isLeftColumn:o})=>{const{layoutService:{isIndentModeEnabled:i}}=VW(),a=o&&i;return ii.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,...!a&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},YV=e=>{const{type:t,imageSize:r}=e;return t!==BN.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"},KV=e=>"number"==typeof e&&!Number.isNaN(+e),XV=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,JV=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})}))),ZV=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),QV=x(((e,t)=>ii.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[ii.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),ii.jsx("use",{fillRule:"evenodd"})]}))),eB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})}))),tB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})}))),rB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})}))),nB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M2 7.5h12v1H2z"})}))),oB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})}))),iB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),aB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})}))),sB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})}))),lB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),uB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})}))),cB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})}))),dB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})}))),pB={m:lB,"ï":aB,R:x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})}))),S:uB,T:cB,U:dB,P:iB,Q:rB,"è":x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})}))),"¢":eB,"©":QV,"23F4":tB,2013:sB,"&":oB,add:JV,"minus-2":nB,dot:ZV},fB=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&pB[t];return o&&ii.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:ii.jsx(o,{style:{height:e}})})},hB=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),mB=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},gB=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return s&&lj(e.localPaletteColors[t].color).blend(lj(s.color),s.t)},vB=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:hB(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:mB(n,t,r)})))),n},yB=(e,t,r,n)=>{const o=vB(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=gB(e,a,t);break}n=i}return r})(o,t);return a},bB=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!KV(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!KV(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},xB=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=bB(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!KV(t))return 0;let a=r&&KV(r)?Math.min(r,t):0;const s=n.sort(((e,t)=>e.value-t.value)),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},SB=e=>"flex-start"===e?"flex-end":"flex-start",wB=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=xB(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return mB(o,r.limitPaletteColorIndex,n);const a=hB(r.limitRange,t);return yB(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},CB=({representation:e,cellValue:t,textStyle:r})=>{const{styleService:n}=VW(),{theme:o}=WW(),{direction:i}=NW(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=wB(e,t,i,o),{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m}=n.measureValues,g={fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m},v=parseInt(d||DF,10),{iconKey:y,color:b,position:x}=c||{},S={display:"flex",paddingTop:2};return l?ii.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:r?.overflow,color:u?b:r?.color},children:["left"===x&&fB({size:v,iconKey:y,color:b,pvStyle:S}),ii.jsx("span",{style:{paddingTop:4,overflow:r?.overflow,textOverflow:r?.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===x&&fB({size:v,iconKey:y,color:b,pvStyle:S})]}):(S.paddingTop=5,fB({size:v,iconKey:y,color:b,pvStyle:S}))},EB=e=>!!e.target?.getAttribute("class")?.includes(oT),IB=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),o=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:n,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:o}=e,i=new Map(o);for(let e=r;e<=n;e++){const r=t(e);"N"===r?.ref.qType&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}},DB=e=>null!==e.target?.closest("[data-prevent-selection]"),PB=e=>"A"===e.target?.tagName,MB=({startIndex:e,getCellFromIndex:t,cell:r})=>({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(r.ref.qElemNo,r)},selectedField:{selectionCellType:r.selectionCellType,index:"L"===r.selectionCellType?r.x:r.y}}});const RB=u({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),LB=()=>h(RB),AB=({children:e,selections:t})=>{const r=function(e){const{updatePageInfo:t}=NW(),r=e.isActive(),[n,o]=c(IB,{engineSelectedCells:null,selectedField:null,activeSelection:null});d((()=>{const r=()=>{o({type:"clearSelections"})},n=()=>{r(),t({page:0})};return e.on("deactivated",r),e.on("canceled",r),e.on("confirmed",n),e.on("cleared",r),()=>{e.removeListener("deactivated",r),e.removeListener("canceled",r),e.removeListener("confirmed",n),e.removeListener("cleared",r)}}),[e,t]);const i=f((async()=>{if(!n.activeSelection)return;var t,r;1===n.activeSelection.clientSelectedCells.size&&(t=n.engineSelectedCells,(r=n.activeSelection).clientSelectedCells.forEach(((e,n)=>{t?.has(n)&&(r.clientSelectedCells.delete(n),t.delete(n))})));const i=new Map([...n.engineSelectedCells??new Map,...n.activeSelection.clientSelectedCells]);try{o({type:"mouseup",payload:{engineSelectedCells:i}}),await e.select({method:"selectPivotCells",params:[UW,Array.from(i,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),o({type:"mouseup",payload:{engineSelectedCells:n.engineSelectedCells}})}}),[n,e]);d((()=>{if(n.activeSelection)return document.addEventListener("mouseup",i),()=>{document.removeEventListener("mouseup",i)}}),[i,n.activeSelection]);const a=f(((e,t)=>r=>{const n=t(e);EB(r)||DB(r)||PB(r)||!(e=>1===e.buttons)(r)||!n||o(MB({startIndex:e,getCellFromIndex:t,cell:n}))}),[]),s=f((t=>async()=>{n.activeSelection&&(e.isActive()||await e.begin([UW]),o({type:"mouseover",payload:{index:t}}))}),[n.activeSelection,e]),l=f(((e,t)=>r=>{if("touch"!==r.pointerType)return;const n=t(e);EB(r)||DB(r)||PB(r)||!n||(o(MB({startIndex:e,getCellFromIndex:t,cell:n})),i())}),[i]),u=f((e=>!(!n.engineSelectedCells?.size&&!n.activeSelection?.clientSelectedCells.size||!n.selectedField||e.selectionCellType===n.selectedField.selectionCellType&&("L"===e.selectionCellType?n.selectedField.index===e.x:n.selectedField.index===e.y))),[n.activeSelection?.clientSelectedCells.size,n.engineSelectedCells?.size,n.selectedField]),p=f((e=>!u(e)&&(n.engineSelectedCells?.has(e.ref.qElemNo)||!!n.activeSelection?.clientSelectedCells.has(e.ref.qElemNo))),[u,n.activeSelection?.clientSelectedCells,n.engineSelectedCells]);return v((()=>({isSelected:p,isActive:r,isLocked:u,createMouseDownHandler:a,createMouseOverHandler:s,createPointerUpHandler:l})),[p,r,u,a,s,l])}(t);return ii.jsx(RB.Provider,{value:r,children:e})},kB=e=>"fill"===e.representation.imageSize,OB=(e,t)=>{let r=e.isLeftColumn?"flex-start":"center";return e.isLeftColumn&&kB(e)&&t&&(r="center"),e.representation.type!==BN.Image||kB(e)?r:e.representation.resolvedImagePosition?.vertical};var qB=function(e){return e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration",e}(qB||{});const TB={brighter:.5,darker:.3,opacity:.03},_B=(e,{cell:t,styleService:r})=>{if(e===qB.Background||e===qB.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},jB=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=_B(qB.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?_B(qB.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${mF(i=o,TB)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},NB=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:_B(qB.Color,{cell:e,styleService:t}),FB=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=_B(qB.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?MF:o},zB=({cell:e,styleService:t})=>_B(qB.FontStyle,{cell:e,styleService:t}),WB=({cell:e,styleService:t})=>_B(qB.TextDecoration,{cell:e,styleService:t}),$B=e=>e?"pointer":"default",HB=({expandOrCollapse:e,cell:t})=>r=>{e?.(t.y,t.x),r.stopPropagation()},VB=(e,t)=>{if(!e.isLeftColumn||e.representation.type===BN.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},BB=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n,layoutService:o}=VW(),{interactions:i}=WW(),{isActive:a}=LB(),{dataModel:s}=fH();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!s,u=NB({cell:e,styleService:n,isCellSelected:r}),c=a?.4:1,d=e.ref.qCanExpand?Kz:Yz;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=bH({isLeftColumn:t,layoutService:o,representation:e.representation});return ii.jsx(d,{opacity:c,color:u,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",position:"sticky",top:0,...VB(e,n),...f&&{alignSelf:OB(e)}},onClick:l?void 0:HB({cell:e,expandOrCollapse:p})})},GB=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},UB=(e,t,r)=>{if("alwaysFit"===e&&t&&!r)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return r?"unset":"100%";default:return"100%"}},YB=(e,t)=>{if("alwaysFit"===e)switch(t?.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},KB=({representation:e,canExpandOrCollapse:t,leafCount:r,isLeftColumn:n,styleService:o,layoutService:i,isMeasureCell:a})=>{const{isIndentModeEnabled:s}=i,l=bH({isLeftColumn:n,layoutService:i,representation:e}),u=t?21:0,c=e.imageBox?.width??24;let d=`calc(100% - ${u}px)`,p=o.headerCellHeight;n&&l&&(d=c),(a||n)&&(p=o.contentCellHeight);let f=p;switch(n&&void 0!==r&&!s&&(f=p*Math.max(r,1)),e.imageSize){case"originalSize":return{maxWidth:d,maxHeight:f,...l?{width:d}:{}};case"fitWidth":return{width:d,maxHeight:f};case"fitHeight":return{height:f,maxWidth:d,...l?{width:d}:{}};case"fill":return{height:f,width:d};default:return{width:d,height:p}}},XB=e=>{if("alwaysFit"===e)return"contain"},JB=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),ZB=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:r,isMeasureCell:n})=>({width:UB(e,r,n),height:GB(e),objectFit:XB(e),objectPosition:YB(e,t),...r&&"alwaysFit"===e?{"max-width":"100%"}:{}}),QB=({representation:e,textStyle:t,isMeasureCell:r})=>{const{imageRef:n,onLoad:o}=(()=>{const{downloadService:e}=VW(),t=l(null),{promise:r,resolve:n}=v((()=>XF()),[]);return d((()=>(e.isDownloadedAsPDForImage&&(e.waitForPromise(r),t.current?.complete&&n()),()=>{n()})),[t,e,r,n]),{onLoad:f((()=>{n()}),[n]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:i}}=VW(),{url:a,text:s,imageSize:u,resolvedImagePosition:c}=e,{overflow:p,...h}=t;return ii.jsx("img",{src:a,alt:s,style:{...ZB({imageSize:u,resolvedImagePosition:c,isImagesInIndentModeEnabled:i,isMeasureCell:r}),...h},onLoad:o,ref:n})},eG=({representation:e,textStyle:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o=!1,imageContainerHorizontalAlignment:i,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=VW(),{resolvedImagePosition:u}=e;return ii.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:u?.vertical,alignItems:i,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...KB({representation:e,canExpandOrCollapse:r,leafCount:n,styleService:s,layoutService:l,isLeftColumn:o,isMeasureCell:a})},children:ii.jsx(QB,{representation:e,textStyle:t,isMeasureCell:!0})})},tG=(e,t,r)=>{if(e?.auto)return t;switch(e?.align){case"center":return"center";case"left":return"rtl"===r?"flex-end":"flex-start";case"right":return"rtl"===r?"flex-start":"flex-end";default:return t}},rG=(e,t)=>{let{textAlign:r}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:r}=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex)??{}),r?.auto||void 0===r?"left":r.align},nG={display:"flex",flexDirection:"row",alignItems:"center"},oG={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},iG=(e,t,r,n)=>t?{...oG,...e.nullValues}:r?{...nG,color:e.totalValues.color,background:n??e.totalValues.background}:{...nG,color:e.measureValues.color,background:n??e.measureValues.background},aG=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,s={..._F,...!r&&jF(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...s,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...s,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:l,fontStyle:u,textDecoration:c}=e.measureValues;return{...s,fontWeight:void 0===l?MF:l,fontStyle:u,textDecoration:c}},sG=({cell:e,representation:t,color:r,isTotalValueCell:n,cellHorizontalAlignment:o})=>{const{layoutService:i,styleService:a}=VW(),{isIndentModeEnabled:s}=i,l=e.isNull?i.getNullValueText():t.text,u=t.type===BN.Image,c=t.type===BN.Indicator,d=KV(XV(l)),p=aG(a,r,d,n,e.isNull);if(!s&&u&&!e.isNull||s&&u&&!e.isNull)return ii.jsx(eG,{isMeasureCell:!0,textStyle:p,representation:t,imageContainerHorizontalAlignment:o});const f=XV(e.isNull?t.text:e.ref.qNum);return c&&KV(f)?ii.jsx(CB,{representation:t,cellValue:f,textStyle:p}):ii.jsx("span",{style:{padding:4,direction:d?"ltr":void 0,...p},children:l})},lG=(e,t)=>e?.[t]?.visibleMeasureInfoIndex??0,uG="flex-start",cG=(e,t)=>e.isNull?uG:t.type===BN.Image&&"fill"!==t.imageSize?t.resolvedImagePosition?.vertical:uG,dG=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{env:o}=WW(),{pageInfo:i,direction:a}=NW(),{styleService:s,layoutService:l}=VW(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleLeftDimensionInfo:h,visibleTopDimensionInfo:m}}=fH(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=VW(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=fH(),i=n.length,a=o.length;return f(((n,o)=>!(!r.grid.at(a-1)?.[n]?.isTotal&&!t.grid.at(e?0:i-1)?.[o]?.isTotal)),[r,t,i,a,e])})(),v=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=fH(),r=t.length;return f((t=>{const n=e.grid.at(r-1)?.[t];return BV(n,e.totalDividerIndex)}),[e,r])})(),y=(()=>{const{layoutService:{isIndentModeEnabled:e}}=VW(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=fH(),n=r.length;return f((r=>{const o=e?0:n-1,i=t.grid.at(o)?.[r];return BV(i,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:b}=n,x=p.grid.at(m.length-1),S=d.grid.at(h.length-1),{background:w}=s.measureValues,C=c[t]?.[e],E=t===i.rowsOnCurrentPage-1,I=e===l.size.x-1;if(!C)return ii.jsx(GV,{style:{...r,background:w},isLastRow:E,isLastColumn:I,showLastBorder:b,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const D=l.hasPseudoDimOnLeft?lG(S,t):lG(x,e),P=l.visibleMeasureInfo[D],M=B$({cell:C.ref,representationProperties:P.representation,attrExprInfoIndex:u.measures[D],env:o,direction:a,conditionalColoring:P.conditionalColoring,enabledFeatures:{[BN.Image]:!0,[BN.Indicator]:!0}}),R=!C.isNull&&g(e,t),L=C.isNull?l.getNullValueText():M.text,A=!C.isNull||!Number.isNaN(+L),k=G$(u.measures[D],C.ref),O=((e,t,r,n,o)=>{const{textAlign:i}=t,a=n?"flex-end":"center";return e.isNull||r.type!==BN.Image?tG(i,a,o):r.resolvedImagePosition?.horizontal??"center"})(C,P,M,A,a),q={...iG(s,C.isNull,R,k.background),...FF(E,I,s.grid.border,a,b),...WF({bottomDivider:y(t),rightDivider:v(e),borderColor:s.grid.divider}),...TF,padding:"0px 4px",display:"flex",justifyContent:O};return ii.jsx("div",{className:rT,title:L,style:{...q,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:ii.jsx(UV,{width:YV(M),verticalAlign:cG(C,M),children:ii.jsx(sG,{cell:C,representation:M,isTotalValueCell:R,color:k.color,cellHorizontalAlignment:O})})})};var pG=r.memo(dG,LV);const fG=(e,t)=>t.list[e]?.id??e.toString(),hG=({columnIndex:e,rowIndex:t,data:r})=>r.grid[t]?.[e]?.id??`${t}-${e}`,mG=e=>({...qF,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),gG=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:u}=NW(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:p}}=VW(),{dataModel:h,gridSectionsData:{measureData:m}}=fH(),v={...mG(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},y=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=NW(),{downloadService:n,viewService:o,layoutService:i}=VW(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=fH(),c=s.columnCount,d=l.rowCount;return f((async({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=s,o.gridRowStartIndex=p,o.gridWidth=l-s+1,o.gridHeight=f-p+1;const h=o.gridWidth+c+(t.current===tF.None?0:AV),m=o.gridHeight+d+(e.current===tF.None?0:AV);let g=HV;m*h>1500&&(g=VV),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:s});return pz((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,h,m]),g((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,p,u]),0===c.size.x?null:ii.jsx(yV,{"data-section-id":"DATA_GRID",ref:e,style:v,columnCount:c.size.x,columnWidth:i,height:t,rowCount:l.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:o,grid:m},onItemsRendered:y,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:hG,direction:u,children:pG})};var vG=b(gG);const yG=x(((e,t)=>ii.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[ii.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),ii.jsx("use",{fillRule:"evenodd"})]}))),bG=e=>{const[t,r]=m(!1);return pz((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},xG=()=>{const[e,t]=m(!1),{dataModel:r}=fH(),{interactions:n}=WW(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=bG([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||EB(e)||o||t(!0)},setIsAdjustingWidth:i}};function SG(e,t){const r=t.expressionColor?.background??e.dimensionValues.background,n=t.isLeftColumn?e.header.background:r,o=n===AF.Transparent?pF.WHITE:n,i=lj(e.grid.border),a=lj(o);return a.isInvalid()||i.isInvalid()||1===i.a?e.grid.border:function(e,t,r){return lj(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(a,i,i.a).getRGB()}const wG=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{const{direction:s}=NW(),{interactions:l,translator:u}=WW(),{isActive:c}=LB(),{dataModel:d}=fH(),{styleService:p}=VW(),[,f]=m({});if(!(e.canBeResized&&!!l.active&&!c))return null;const h=SG(p,e);return ii.jsx(yz,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{f({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{i?d.applyIndentModeColumnWidth({...t,pixels:Math.min((a??0)*vH,t.pixels??0)}):d.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:u,columnLabel:e.label??""},direction:s})},CG=fl(Qu,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),EG=fl("div",{shouldForwardProp:e=>!["direction"].includes(e)})((({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0}))),IG=fl("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...OF,justifyContent:e??OF.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),DG=fl("div")((()=>({...OF}))),PG=fl("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),MG=fl(hp)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),RG=fl(bp,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),LG=fl("span")({textOverflow:"ellipsis",overflow:"hidden"}),AG=fl("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:mH,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),kG=fl("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})((({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0})));let OG=function(e){return e.Expand="Expand",e.Collapse="Collapse",e}({});const qG=(e,t)=>({qExcludeList:t===OG.Expand,qPos:{qDimName:e,qElemNo:[]}}),TG=`${UW}/qExpansionState`,_G=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=t?.findIndex((t=>t.qPos?.qDimName===e));return{expansionData:qG(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:o}=t;try{let t,r=TG,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${TG}/-`,t=JSON.stringify(o)):(r=`${TG}/${n}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:r,qOp:i,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${n} dimension`})},jG=({model:e,effectivePropertiesService:t,cell:r})=>{if(void 0===r.qEffectiveDimensionName)return;const n={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:_G({...n,action:OG.Expand}),collapseCallback:_G({...n,action:OG.Collapse}),alwaysFullyExpanded:t.qAlwaysFullyExpanded}},NG={[nW.Sorting]:!0,[nW.Selections]:!0,[nW.Searching]:!0},FG=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:s,overrideLeftGridWidth:u,shouldApplyIndentModeColumnWidth:c,tableWidth:d})=>{const p=l(null),{styleService:f,layoutService:h,effectivePropertiesService:m}=VW(),{app:g,interactions:v,embed:y,translator:b,model:x}=WW(),{fontSize:S,fontFamily:w,fontStyle:C,fontWeight:E,textDecoration:I,color:D,background:P,hoverBackground:M,activeBackground:R}=f.header,L=l(null),{shouldShowLockIcon:A,shouldShowMenuIcon:k}=a,{open:O,setOpen:q,handleOpenMenu:T,setIsAdjustingWidth:_}=xG(),{direction:j}=NW(),N={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},F={embed:y,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?m.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},z={app:g,qStateName:h.layout.qStateName},{labelTextAlign:W}=h.getDimensionInfo(e.dimensionInfoIndex)??{},$=tG(W,"flex-start",j);return ii.jsxs(CG,{className:rT,title:e.label,interactions:v,background:O?R:P,hoverBackground:M,shouldShowMenuIcon:k,isDimension:e.isDim,style:{...t,...TF,...zF(e,o,r,n,f.grid.border,j),color:D},"data-testid":"title-cell",onClick:T,children:[ii.jsxs(IG,{children:[A?ii.jsx(DG,{children:ii.jsx(yG,{height:12})}):null,ii.jsx(PG,{fontFamily:w,fontSize:S,fontStyle:C,fontWeight:E,textDecoration:I,justifyContent:$,children:ii.jsx("span",{style:_F,children:e.label})})]}),e.isDim?ii.jsxs(ii.Fragment,{children:[ii.jsx(aW,{headerData:e,translator:b,anchorRef:L,open:O,setOpen:q,interactions:v,menuAvailabilityFlags:NG,sortRelatedArgs:N,searchRelatedArgs:F,selectionRelatedArgs:z,expandOrCollapseArgs:jG({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:k,model:x&&"setActiveField"in x?x:void 0,direction:j,isAccessibleHeader:!0}),ii.jsx(EG,{ref:p,direction:j}),ii.jsx(EG,{ref:L,direction:j})]}):null,ii.jsx(wG,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:n,overrideLeftGridWidth:u,setIsAdjustingWidth:_,shouldApplyIndentModeColumnWidth:c,tableWidth:d})]})},zG=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=VW(),{direction:n}=NW();return e>0&&t>0?ii.jsx("div",{style:{...qF,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===n?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null},WG=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}))),$G=x(((e,t)=>ii.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[ii.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),ii.jsx("use",{fillRule:"evenodd"})]}))),HG=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{direction:n}=NW(),{styleService:o}=VW(),{interactions:i,translator:a}=WW(),{isActive:s}=LB(),{dataModel:l}=fH(),{setIsAdjustingWidth:u}=bG([l]);if(!(!!i.active&&!s))return null;const c=SG(o,{isLeftColumn:!0});return ii.jsx(yz,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*vH))},confirmWidthCallback:n=>{if(n.type===aT.FitToContent)return void l.applyIndentModeColumnWidth({type:aT.Auto});const o=Math.min(n.pixels??t,e*vH);r(o),l.applyIndentModeColumnWidth({type:aT.Pixels,pixels:o})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:n})},VG=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}))),BG=({cell:e,changeSortOrder:t})=>{const r=l(null),n=l(null),{app:o,interactions:i,embed:a,translator:s,model:u}=WW(),{layoutService:c,effectivePropertiesService:d}=VW(),{open:p,setOpen:f,handleOpenMenu:h}=xG();return ii.jsxs(RG,{onClick:h,isActive:p,children:[ii.jsx(LG,{children:e.label}),ii.jsxs(AG,{className:"indent-mode-dropdown-more",visible:p,children:[ii.jsx(VG,{}),e.isDim?ii.jsxs(ii.Fragment,{children:[ii.jsx(aW,{headerData:e,translator:s,anchorRef:r,open:p,setOpen:f,interactions:i,menuAvailabilityFlags:NG,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:c.layout.qStateName},expandOrCollapseArgs:jG({model:u,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:u&&"setActiveField"in u?u:void 0}),ii.jsx(EG,{ref:n}),ii.jsx(EG,{ref:r})]}):null]})]})},GG=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{const o=r.at(-1)?.id===KW,i=e+1<r.length&&r[e+1]?.id===KW;return!(n&&o&&i)&&(t?.id!==KW&&e<r.length-1)},UG=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=VW(),{interactions:a,translator:s}=WW(),{dataModel:u,gridSectionsData:{headersData:c}}=fH(),[d,p]=m(!1),f=l(null),{headerCellHeight:h}=i,{color:g,background:v,hoverBackground:y,activeBackground:b,fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E}=i.header,{isAdjustingWidth:I}=bG([u]),D=e=>{e.stopPropagation()},P={height:h,gridColumn:`1 / span ${c.size.x}`,gridRow:c.size.y,zIndex:c.size.x-0};return ii.jsxs(CG,{isDimension:!0,background:d?b:v,interactions:a,hoverBackground:y,style:{...P,...TF,color:g},onClick:e=>{!a.active||EB(e)||I||p(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[ii.jsxs(IG,{justifyContent:"flex-start",children:[ii.jsx(PG,{fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E,justifyContent:"flex-start",children:ii.jsx("span",{style:_F,children:s.get("SNPivotTable.IndentMode.Rows")})}),d?ii.jsx($G,{}):ii.jsx(WG,{}),ii.jsx(EG,{ref:f})]}),ii.jsx(MG,{open:d,anchorEl:f.current,disableEnforceFocus:!0,children:e.map(((r,n)=>[r&&r.id!==KW&&ii.jsx("li",{role:"presentation",onClick:D,onKeyDown:D,children:ii.jsx(BG,{cell:r,changeSortOrder:t})}),GG({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===c.size.y})&&ii.jsx(Cz,{"data-testid":"group-divider",variant:"middle"})]))}),ii.jsx(HG,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},YG=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,KG={display:"grid",width:"fit-content"},XG=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=VW(),{gridSectionsData:{headersData:u}}=fH();return ii.jsxs("div",{"data-testid":"HEADER_GRID",style:{...KG,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&ii.jsx(zG,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(YG({layoutService:l,headersData:u,topRowIndex:c})){const r=a.at(0);return Array.isArray(r)&&d.push(ii.jsx(UG,{menuItems:r,changeSortOrder:o,overrideLeftGridWidth:s,leftGridWidth:t,tableWidth:e},r.at(0)?.id)),d}return d=a.reduce(((t,a,d)=>{if(a&&!Array.isArray(a)){const p=i(d,a.isLocked,a.label),f=l.isIndentModeEnabled&&1===u.size.x;t.push(ii.jsx(FG,{style:{width:r[d],height:n,gridColumn:l.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var JG=b(XG);const ZG=(e,t,r,n)=>{const{layoutService:o}=VW();g((()=>{e.current?.forEach((e=>e?.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},QG=(e,t)=>{pz((()=>{e.current?.forEach((e=>e?.resetAfterIndex(0,!1)))}),[e,t])},eU=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},tU=(e,t,r,n,o)=>{if(o)return;const i=e.representation,a=bH({isLeftColumn:r,layoutService:t,representation:i}),s=r?"flex-start":"center",l=e.representation.resolvedImagePosition?.horizontal;if(e.representation.type===BN.Image)return a&&l&&"center"!==l&&"rtl"===n?SB(l):l??s;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){const{labelTextAlign:r}=t.visibleMeasureInfo[e.visibleMeasureInfoIndex]??{};return tG(r,s,n)}const{textAlign:u}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return tG(u,s,n)},rU=()=>{},nU=({children:e,reactWindowStyle:t,cell:r,data:n,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:s,isCellSelected:l,isAdjustingWidth:u,index:c})=>{const{styleService:d,layoutService:p}=VW(),{interactions:f}=WW(),{direction:h}=NW(),{isLocked:m,createMouseDownHandler:g,createMouseOverHandler:v,createPointerUpHandler:y}=LB(),{showLastBorder:b}=n,x=m(r)||r.isLockedByDimension,S=!(x||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||u),w=S?g(c,(e=>eU(e,n))):void 0,C=S?v(c):void 0,E=S?y(c,(e=>eU(e,n))):void 0,I=bH({isLeftColumn:s,layoutService:p,representation:r.representation});return ii.jsx("div",{className:rT,title:f.passive?r.representation.text:void 0,style:{...t,...FF(i,a,d.grid.border,h,b),...WF({bottomDivider:o&&s,rightDivider:o&&!s,borderColor:d.grid.divider}),...TF,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:$B(S),background:jB({styleService:d,isCellSelected:l,cell:r,isCellLocked:x}),zIndex:s?void 0:p.size.x-r.x,justifyContent:tU(r,p,s,h,I),display:"flex",...p.isIndentModeEnabled&&s&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(r.indentLevel??0))},textAlign:rG(r,p)},"aria-hidden":"true",onMouseDown:w,onMouseOver:C,onPointerUp:E,onKeyUp:rU,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,"data-dimension-info-index":r.dimensionInfoIndex,children:e})},oU=e=>{e.stopPropagation()},iU=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:oU,color:pF.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),aU=({href:e,text:t,interactions:r,color:n})=>ii.jsx(bd,{...iU({href:e,text:t,interactions:r,color:n}),children:t}),sU=Y();sU.use(U),sU.renderer.prio(["canvas"]);const lU=(e,t)=>e&&"center"!==e&&"rtl"===t?SB(e):e,uU=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{const{imageBox:o}=t,{styleService:{grid:{lineClamp:i}}}=VW(),{direction:a}=NW();return ii.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${o?.width??24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[ii.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:OB(e),alignItems:lU(n,a),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:o?.width??24,height:"100%"},children:ii.jsx(QB,{representation:t,textStyle:r})}),ii.jsx(kG,{padding:4/(i<=2?2:1),alignSelf:OB(e,!0),children:!!t.labelStructure&&JB(t.labelStructure)})]})},cU=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,dU=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>ii.jsxs("span",{children:[ii.jsx(bd,{...iU({href:e,text:t,interactions:n,color:o}),children:r?.maskedValue?r.maskedValue:r?.originalValue}),!!r&&cU(r)]}),pU=({children:e,textStyle:t,shouldEnableStickyText:r})=>ii.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...r&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),fU=({isLeftColumn:e,styleService:t,cell:r,isIndentModeEnabled:n})=>e?n?t.grid.lineClamp:Math.max(t.grid.lineClamp,r.leafCount*t.grid.lineClamp):t.grid.columnLineClamp,hU=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{direction:n}=NW(),{isActive:o}=LB(),{layoutService:i,styleService:a}=VW(),{interactions:s}=WW(),l=r&&i.isIndentModeEnabled;let u=r&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const c=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n,isIndentModeEnabled:o})=>({..._F,...jF(fU({cell:e,isLeftColumn:n,styleService:t,isIndentModeEnabled:o})),color:NB({cell:e,styleService:t,isCellSelected:r}),fontWeight:FB({cell:e,styleService:t}),fontStyle:zB({cell:e,styleService:t}),textDecoration:WB({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:r,isIndentModeEnabled:i.isIndentModeEnabled});if(e.representation.type===BN.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=r&&t&&t.suffix?uU:eG;return ii.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:tU(e,i,r,n)})}if(e.representation.type===BN.Link&&!o&&!e.isTotal){const t=r&&e.representation.labelStructure?dU:aU;u=ii.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return ii.jsx(pU,{shouldEnableStickyText:l,textStyle:{...c,...e.representation.type===BN.Image&&e.isNull?{alignSelf:OB(e)}:{}},children:u})},mU=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=VW(),{isSelected:i}=LB(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=bG([r]),f=eU(e,r),h=a?e===l-1:u,m=a?u:e===l-1,g=BV(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return ii.jsx(GV,{style:{...t,background:r},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const v=i(f);return ii.jsxs(nU,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:v,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[ii.jsxs(UV,{verticalAlign:OB(f),width:YV(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[ii.jsx(BB,{isLeftColumn:a,isCellSelected:v,cell:f}),ii.jsx(hU,{isLeftColumn:a,isCellSelected:v,cell:f})]}),ii.jsx(wG,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?ZN.Measures:ZN.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var gU=r.memo(mU,LV);const vU=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{const i=r?e[o]:t.at(o);return i&&0===o&&i.x>0?(i.leafCount+i.x+i.distanceToNextCell)*n():!r&&i?(i.leafCount+i.distanceToNextCell)*n():n(i?.x??o)},yU=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},bU=(e,t)=>r=>{e.current&&(e.current[t]=r)},xU={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...qF},SU={overflow:"hidden",willChange:"auto",flexShrink:0},wU=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i,direction:a}=NW(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=VW(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=fH();QG(e,d),ZG(e,t,r,l);const f=i.rowsOnCurrentPage*l,h={...xU,borderColor:u,width:n.reduce(((e,t)=>e+t),0)};return ii.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map(((t,u)=>{const h=u===d.columnCount-1,m=XW(p[u]),{itemCount:g,estimatedItemSize:v,listValues:y}=yU(t,f,i.rowsOnCurrentPage,h),b=s.isIndentModeEnabled?()=>l:((e,t,r,n,o)=>i=>{const a=n?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,y,l,h,c.qcy);return ii.jsx(DV,{ref:bU(e,u),style:{...SU,flexGrow:h?1:0,direction:a},height:r,width:n[u],itemCount:g,itemSize:b,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:o,listValues:y,totalDividerIndex:d.totalDividerIndex},itemKey:fG,estimatedItemSize:v,children:gU},m)}))})};var CU=b(wU);const EU={overflow:"hidden",willChange:"auto"},IU=e=>({...qF,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),DU=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=NW(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=VW(),{gridSectionsData:{headersData:c,topDimensionData:d}}=fH(),p={...IU(a),borderColor:l,height:n};QG(e,d),ZG(e,r,n,u);const f=s.size.x*i();return 0===d.rowCount?ii.jsx("div",{style:{width:r,height:n,...IU(a)}}):ii.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map(((n,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=yU(n,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:r})=>{const n=t.data.at(r);if(void 0===n)return;const o=t.size.x-1,i=YG({layoutService:e,headersData:t,topRowIndex:r})?0:o,a=n.at(i),s=Array.isArray(a)?a.at(o):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),v=g?XW(g):`empty ${l}`;return ii.jsx(DV,{ref:bU(e,l),style:EU,height:t(),width:r,itemCount:p,itemSize:vU({list:n,listValues:m,isLastRow:u,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:u,itemCount:p,showLastBorder:o,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:fG,estimatedItemSize:h,direction:a,children:gU},v)}))})};var PU=b(DU);const MU=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=VW(),r=zH(),n=(()=>{const{model:e}=WW(),t=f((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:s},gridRefs:{topGridRef:l,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:h},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:v}}=FH(),{leftGridWidth:y,leftGridFullWidth:b,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:w,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:E,overrideLeftGridWidth:I}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=VW(),{gridSectionsData:{headersData:i}}=fH(),{measureText:a}=lz(o.header),s=AH({tableWidth:e}),l=kH({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),u=s.leftGridWidth+l.rightGridFullWidth+1<e,c=f(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const l=s.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+gH;return t&&d+mH<=l&&(c=!0,d+=mH),d+mH<=l&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[s.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return d((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=l.rightGridWidth===l.rightGridFullWidth;e&&t&&r()}),[r,s.leftGridWidth,s.leftGridFullWidth,l.rightGridWidth,l.rightGridFullWidth]),{...s,...l,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:v}),{gridScaffoldDimensions:D,headerGridDims:P,topGridDims:M,leftGridDims:R,dataGridDims:L,metadata:{everyThingFitsInTableRectHeight:A,scrollbarsVisibilityStatus:k}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const s=zH(),{pageInfo:l}=NW(),{gridSectionsData:{headersData:u,topDimensionData:c}}=fH(),d=Math.min(s.height*vH,Math.max(s.height*vH-25,s.height-t-a)),p=s.width*vH,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,v=Math.min(p,r),y=s.width-p,b=Math.max(y,s.width-v),x=Math.min(d,m,g),{availableHeight:S,everyThingFitsInTableRectHeight:w,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=s.width,o=e+1+f+a,l=o-s.height<a||o<=s.height;return{availableHeight:l?o:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:n}})(x,v,b),E=S-d,I=Math.max(E,S-x),D=Math.min(I,f),P=Math.min(I,f),M=m+1+f,{visibilityStatus:R,metadata:{hasLeftGridOverflowX:L,hasDataGridOverflowX:A}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>n,c=i>t,d=a>r,p=l>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:v,rightSectionWidth:b},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:I}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:M-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${v}px ${b}px`,gridTemplateRows:`${x}px ${I}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(A?i:0),height:g},stickyWrapper:{width:b-1-i,height:-1},self:{width:Math.min(o,b)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:v,height:M-g+(!L&&A?a:0)},stickyWrapper:{width:v,height:I-1-a},self:{width:v,height:Math.max(t,D-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(A?i:0),height:M-g+(!A&&L?a:0)},stickyWrapper:{width:b-1-i,height:I-1-a},self:{width:Math.min(o,b)-(C?1:0)-i,height:Math.max(t,P-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:R}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:y,leftGridOriginalWidth:b,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),O=f((()=>e),[e]),q=f((()=>t),[t]);return(()=>{const{downloadService:e}=VW();d((()=>{e.notifyIsDoneRendering()}))})(),ii.jsxs($H,{style:D,children:[ii.jsx("div",{style:{overflow:"hidden"},ref:o,children:ii.jsx(JG,{tableWidth:r.width,leftGridWidth:y,columnWidths:x,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:P.height,changeSortOrder:n,overrideLeftGridWidth:I})}),ii.jsx(BH,{style:k.topGrid,origin:eF.TopGrid,ref:i,children:ii.jsx(WH,{style:M.fullSizeWrapper,children:ii.jsx(GH,{style:M.stickyWrapper,children:ii.jsx(PU,{topGridRef:l,rowHightCallback:O,...M.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:C})})})}),ii.jsx(BH,{style:k.leftGrid,origin:eF.LeftGrid,ref:a,children:ii.jsx(WH,{style:R.fullSizeWrapper,children:ii.jsx(GH,{style:R.stickyWrapper,children:ii.jsx(CU,{leftGridRef:u,...R.self,columnWidths:x,showLastBorder:{right:!1,bottom:A}})})})}),ii.jsx(BH,{style:k.dataGrid,origin:eF.DataGrid,ref:s,children:ii.jsx(WH,{style:L.fullSizeWrapper,children:ii.jsx(GH,{style:L.stickyWrapper,children:ii.jsx(vG,{dataGridRef:c,rowHightCallback:q,...L.self,showLastBorder:{right:w,bottom:A},getRightGridColumnWidth:C,verticalScrollDirection:p,horizontalScrollDirection:h})})})})]})},RU=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=WW(),{pageInfo:o,updatePageInfo:i,rect:a}=NW(),{layoutService:s}=VW(),{layout:l,hasData:u}=s;return ii.jsxs(ii.Fragment,{children:[u?ii.jsx(MU,{}):null,ii.jsx(GW,{}),ii.jsx(_W,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:l})]})};const LU=(e,{selections:t,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){const t=OS();return t?.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Ls({...t,direction:e})}(n.direction);e.render(ii.jsx(r.StrictMode,{children:ii.jsx(ml,{theme:a,children:ii.jsx($W,{...i,children:ii.jsx(FW,{...n,children:ii.jsx(AB,{selections:t,children:ii.jsx(BW,{...o,children:ii.jsx(hH,{children:ii.jsx(RU,{})})})})})})})}))};var AU=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider",e}(AU||{}),kU=function(e){return e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2",e}(kU||{}),OU=function(e){return e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value",e}(OU||{}),qU=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor",e}(qU||{});const TU=e=>e?`${parseInt(e,10)}px`:void 0,_U=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?AF.Transparent:r}},jU=(e,t)=>+(parseInt(e,10)*LF*t+8).toFixed(2),NU=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?MF:"normal",FU=e=>e?.some((e=>"italic"===e))?"italic":"normal",zU=e=>e?.some((e=>"underline"===e))?"underline":"none",WU=document.createElement("textarea");function $U(e){WU.value=e,document.body.appendChild(WU),WU.select(),WU.setSelectionRange(0,WU.value.length),document.execCommand("copy"),document.body.removeChild(WU)}WU.style.position="absolute",WU.style.left="-9999px",WU.setAttribute("readonly","");function HU(e){T?.(((t,r)=>{const n=r.target,o=n?.closest(`.${rT}`);o?.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{(e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{$U(t)})):$U(t))})(o)}}),e?.forEach((e=>{e(t,r,o)}))}))}const VU=({model:e,layoutService:t,effectivePropertiesService:r,translator:n})=>JF(((o,i,a)=>{if(!e||r.qAlwaysFullyExpanded)return;const s=e,l=o.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group",id:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const r=((e,t)=>{const r=e?.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(a,t);l.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(UW,0,0,!0),await e.expandLeft(UW,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[n??""]),tid:"expand-dimension",id:"expand-dimension",select:_G({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:OG.Expand})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(UW,0,0,!0),await e.collapseLeft(UW,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[n??""]),tid:"collapse-dimension",id:"collapse-dimension",select:_G({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:OG.Collapse})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n}))}),[e,t,r]),BU=(e,t)=>M((()=>(({layout:e})=>{const{qHyperCube:t,nullValueRepresentation:r,snapshotData:n}=e,{qNoOfLeftDims:o,qEffectiveInterColumnSortOrder:i,qMeasureInfo:a,qDimensionInfo:s}=t,l=!!n,u=n?.content?.rowsPerPage??15e3,c={x:Math.min(e.qHyperCube.qSize.qcx,RF),y:Math.min(e.qHyperCube.qSize.qcy,u)},d=i.slice(0,o),p=e=>d.some((t=>t===e)),f=p(YW),h=new Map(i.map((e=>[s[e]??YW,e]))),m=a.filter((e=>7005!==e.qError?.qErrorCode));return{layout:e,getNullValueText:()=>r?.text??"-",getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(f)return 0;const r=e%m.length;return t?r:a.findIndex((e=>e===m[r]))},getDimensionInfo:e=>e===YW?void 0:s.at(e),getDimensionInfoIndex:e=>h.get(e)??-1,size:c,isSnapshot:l,hasLimitedData:!l&&c.x<e.qHyperCube.qSize.qcx,hasData:c.x>0&&c.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:f,leftDimensionInfoIndexes:d,isLeftDimension:p,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:m,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeColumnWidth:e.qHyperCube.indentModeColumnWidth??{type:aT.Auto,pixels:iT.PixelsDefault,percentage:iT.PercentageDefault},searchSortFromDimension:"inherit"===e.search?.sorting}})({layout:e})),[e,t]),GU=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=QF(e);return t.current=e,t})(sH(o));return iz((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=l.current;if(a)return i.snapshotData?.content?.qPivotDataPages??[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(s,r,o,u)||((e,t,r,n)=>{const{qHyperCube:{qPivotDataPages:o,qSize:i}}=e,{qTop:a,qWidth:s,qHeight:l}=o[0]?.qArea??{qTop:0,qWidth:0,qHeight:0};return a<t.page*t.rowsPerPage||s<Math.min(n,i.qcx)||l<Math.min(r,i.qcy)})(i,n,o,u))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,s=Math.min(a+n.rowsPerPage,r.qcy),l=Math.min(RF,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-o)),r>l&&(u=Math.max(0,l-i))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,i),qHeight:Math.min(s-c,o)}})(s,r,i.qHyperCube.qSize,n,o,u);return t?e.getHyperCubePivotData(UW,lH(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,l,s])},UU=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),YU=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:UU({rowsPerPage:r,totalRowCount:e,page:t})}),KU=15,XU=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{const{freeResize:i}=R();return _((async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(n-KU,0),u=Math.max(s+o-KU,s,0),c=RF-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=sH(r);return{qLeft:l,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:l,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=lH(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(UW,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i})),j((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),e.layout.snapshotData?.content&&!i?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var JU={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const ZU=()=>{const e=N(),t=e.language();return M((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(JU).forEach((t=>{e.add(JU[t])}))}(e)}),[e]),{translator:e,language:t}},QU=e=>{const{flags:t}=e,r=F(),n=(e=>{const t=M((()=>uz(e)),[e]);return k((()=>()=>{t.unmount()}),[t]),t})(r),o=z(),i=W(),a=$(),s=H(),l=V(),u=(()=>{const{viewState:e}=R(),t=QF(new Set),r=void 0!==window.qlikprinting,{promise:n,resolve:o}=M((()=>XF()),[]),i=JF((e=>{t.current.add(e)}),[t]),a=JF(PN((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return L((async()=>{await n}),[n]),M((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])})(),c=((e,t)=>{const[r]=iz((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]);return M((()=>{const e=void 0!==r?.qHyperCubeDef.qSortbyYValue&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),t=r?.qHyperCubeDef.qDimensions.map((e=>e.qDef?.qSortCriterias))??[];return{qAlwaysFullyExpanded:r?.qHyperCubeDef.qAlwaysFullyExpanded??!1,qExpansionState:r?.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:e,getSortCriteriaForDimension:e=>t[e]}}),[r])})(i,o),d=BU(o,t),p=(e=>{const t=q();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(d.isSnapshot),f=B(),h=oz(o,r),{translator:m,language:g}=ZU(),{pageInfo:v,updatePageInfo:y}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>e.layout.snapshotData?.content?.rowsPerPage)(e),[a,s]=A((()=>{const a=((e,t)=>t.isDownloadedAsPDForImage?t.viewState?.renderPage??0:e.isSnapshot?e.layout.snapshotData?.content?.page??0:0)(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,...YU(n.qcy,a,i)}})),l=e.layout.qHyperCube.qSize.qcy;return k((()=>{s((t=>({...t,...YU(l,t.page,i),shouldShowPagination:l>e.size.y&&!o})))}),[l,e.size.y,s,o,i]),k((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=UU({...a,page:e});s({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:UU({...a,...e})})}}})(d,u),b=((e,t,r)=>M((()=>((e,t)=>{if(e.isDownloadedAsPDForImage){const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.scrollTop??0,scrollLeft:t?.scrollLeft??0,leftGridScrollLeft:t?.leftGridScrollLeft??0,topGridScrollTop:t?.topGridScrollTop??0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.content?.scrollTop??0,scrollLeft:t?.content?.scrollLeft??0,leftGridScrollLeft:t?.content?.leftGridScrollLeft??0,topGridScrollTop:t?.content?.topGridScrollTop??0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(v,o,u),x=XU({rect:G(),layoutService:d,viewService:b,model:i,pageInfo:v}),[S,w]=GU({model:i,layoutService:d,viewService:b,pageInfo:v,rect:x}),C=M((()=>((e,t)=>{const r=t.layout.components?.find((e=>"theme"===e.key)),n=r?.header,o=r?.dimensionValues,i=r?.measureValues,a=r?.measureLabels,s=r?.totalValues,l=r?.nullValues,u=r?.grid,c=(t,r,n)=>e.getStyle(t,r,n),d=+(u?.[AU.LineClamp]??c(kU.Grid,OU.Grid,qU.LineClamp)??1),p=+(u?.[AU.ColumnLineClamp]??c(kU.Grid,OU.Grid,qU.ColumnLineClamp)??1),f=_U(e,n?.[AU.Background])??c(kU.Dimension,OU.LabelName,qU.BackgroundColor)??AF.Transparent,h={header:{fontSize:TU(n?.[AU.FontSize])??c(kU.Dimension,OU.LabelName,qU.FontSize)??DF,fontFamily:n?.[AU.FontFamily]??c(kU.Dimension,OU.LabelName,qU.FontFamily)??PF,fontWeight:NU(n?.[AU.FontStyle],MF),fontStyle:FU(n?.[AU.FontStyle]),textDecoration:zU(n?.[AU.FontStyle]),color:_U(e,n?.[AU.FontColor])??c(kU.Dimension,OU.LabelName,qU.FontColor)??pF.TEXT,background:f,hoverBackground:mF(f,sT),activeBackground:mF(f,lT)},dimensionValues:{fontSize:TU(o?.[AU.FontSize])??c(kU.Dimension,OU.LabelValue,qU.FontSize)??DF,fontFamily:o?.[AU.FontFamily]??c(kU.Dimension,OU.LabelValue,qU.FontFamily)??PF,fontWeight:NU(o?.[AU.FontStyle],void 0),fontStyle:FU(o?.[AU.FontStyle]),textDecoration:zU(o?.[AU.FontStyle]),color:_U(e,o?.[AU.FontColor])??c(kU.Dimension,OU.LabelValue,qU.FontColor)??pF.TEXT,background:_U(e,o?.[AU.Background])??c(kU.Dimension,OU.LabelValue,qU.BackgroundColor)??AF.Transparent},measureValues:{fontSize:TU(i?.[AU.FontSize])??c(kU.Measure,OU.LabelValue,qU.FontSize)??DF,fontFamily:i?.[AU.FontFamily]??c(kU.Measure,OU.LabelValue,qU.FontFamily)??PF,fontWeight:NU(i?.[AU.FontStyle],"normal"),fontStyle:FU(i?.[AU.FontStyle]),textDecoration:zU(i?.[AU.FontStyle]),color:_U(e,i?.[AU.FontColor])??c(kU.Measure,OU.LabelValue,qU.FontColor)??AF.FontSecondary,background:_U(e,i?.[AU.Background])??c(kU.Measure,OU.LabelValue,qU.BackgroundColor)??AF.Transparent},measureLabels:{fontWeight:NU(a?.[AU.FontStyle],"normal"),fontStyle:FU(a?.[AU.FontStyle]),textDecoration:zU(a?.[AU.FontStyle]),color:_U(e,a?.[AU.FontColor])??c(kU.Measure,OU.LabelName,qU.FontColor)??AF.FontSecondary,background:_U(e,a?.[AU.Background])??c(kU.Measure,OU.LabelName,qU.BackgroundColor)??AF.Transparent},totalValues:{fontWeight:NU(s?.[AU.FontStyle],MF),fontStyle:FU(s?.[AU.FontStyle]),textDecoration:zU(s?.[AU.FontStyle]),color:_U(e,s?.[AU.FontColor])??c(kU.Total,OU.LabelValue,qU.FontColor)??pF.TEXT,background:_U(e,s?.[AU.Background])??c(kU.Total,OU.LabelValue,qU.BackgroundColor)??AF.Transparent},nullValues:{fontWeight:NU(l?.[AU.FontStyle],"normal"),fontStyle:FU(l?.[AU.FontStyle]),textDecoration:zU(l?.[AU.FontStyle]),color:_U(e,l?.[AU.FontColor])??c(kU.Null,OU.LabelValue,qU.FontColor)??pF.TEXT,background:_U(e,l?.[AU.Background])??c(kU.Null,OU.LabelValue,qU.BackgroundColor)??AF.NullValueBackground},grid:{columnLineClamp:p,lineClamp:d,border:_U(e,u?.[AU.Border])??c(kU.Grid,OU.Grid,qU.BorderColor)??AF.DividerLight,divider:_U(e,u?.[AU.Divider])??c(kU.Grid,OU.Divider,qU.BorderColor)??AF.DividerDark,background:_U(e,u?.[AU.Background])??c(kU.Grid,OU.Grid,qU.BackgroundColor)??AF.Transparent},selectedColors:hF(e)};return h.headerCellHeight=Math.max(jU(h.header.fontSize,p),jU(h.dimensionValues.fontSize,p),32),h.contentCellHeight=Math.max(jU(h.measureValues.fontSize,d),jU(h.dimensionValues.fontSize,d),24),h.dimensionValueTextHeight=jU(h.dimensionValues.fontSize,1),h})(h,d)),[h,d]),E=((e,t,r)=>{const[,n,o]=iz((async()=>{const t=Ej(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,dz].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(h,o,e),{direction:I}=R();HU([VU({model:i,layoutService:d,effectivePropertiesService:c,translator:m})]),k((()=>{!w&&i&&!!S&&E&&LU(n,{selections:f,baseObjects:{rect:x,pageInfo:v,qPivotDataPages:S,updatePageInfo:y,direction:I},nebulaObjects:{env:e,app:a,model:i,embed:s,theme:h,keyboard:l,translator:m,interactions:p},coreServices:{styleService:C,viewService:b,layoutService:d,downloadService:u,effectivePropertiesService:c}})}),[i,a,x,p,f,b,d,u,w,S,C,n,E,m,g,v,y,c,s,l,h,e,I])},eY={version:"7.2.1",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},tY=()=>({...eY,qHyperCubeDef:{...eY.qHyperCubeDef,qIndentMode:!1}})}}}));
|
|
102
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=p-g,y=e.substring(v,v+1),b=v+("."===y||","===y?1:0),x=g>0?e.substring(b,p):"";if(r=(t="-"===(e=e.substring(f,b)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%l,p=d.length,b=0;b<p;b++)m+=d.charAt(b),!((b-v+1)%l)&&b<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},PN({exports:{}});const zN="qHyperCubeDef.qDimensions",WN="dimensions",$N="qOtherTotalSpec.qTotalMode",VN="totalMode",HN={quarantine(e){z_.quarantineArrayProp({properties:e,arrayPath:zN,quarantineName:VN,arrayName:WN,itemPath:$N})},unquarantine(e){z_.unquarantineArrayProp({properties:e,arrayPath:zN,quarantineName:VN,arrayName:WN,itemPath:$N})}};function BN(e){const t=FN(e);return(e,r,n,o)=>{const i=z_.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),a=i.qProperty.qHyperCubeDef.qDimensions.length,s=i.qProperty.qHyperCubeDef.qMeasures.length;let l,u=i.qProperty.qHyperCubeDef.qInterColumnSortOrder,c=!0;a+s===u.length&&RN(i,"qProperty.qLayoutExclude.quarantine.interColSortOrder",u.concat());const d=i.qProperty.qLayoutExclude.quarantine?.pivotInterColSortOrder;d?(u=d,l=[...d],RN(i,"qProperty.qHyperCubeDef.qInterColumnSortOrder",u),i.qProperty.qLayoutExclude.quarantine&&delete i.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):u.length=0;const p=+(u.indexOf(-1)>-1),f=a+p;if(f>u.length)for(let e=u.length;e<f;e++)u.indexOf(e)<0&&u.push(e-p);for(let e=u.length-1;e>=0;e--)u[e]>=a&&u.splice(e,1);s>1&&u.indexOf(-1)<0?u.push(-1):s<2&&u.indexOf(-1)>-1&&u.splice(u.indexOf(-1),1);const h=i.qProperty.qHyperCubeDef.qNoOfLeftDims??-1;if(a>0&&-1===h&&RN(i,"qProperty.qHyperCubeDef.qNoOfLeftDims",a),l?.length===u.length){for(let e=0;e<l.length;e++)if(l[e]!==u[e]){c=!1;break}c&&(z_.unquarantineProperty(i.qProperty,"noOfLeftDims"),z_.unquarantineProperty(i.qProperty,"excludedNoOfLeftDims "))}return z_.conditionalShow.unquarantine(i.qProperty),HN.unquarantine(i.qProperty),J_(i.qProperty),z_.unquarantineProperty(i.qProperty,"pivotTableIndentMode"),i}}function GN(e,t){const r=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,n=r.slice(),o=r.indexOf(-1);o>-1&&r.splice(o,1);const i=z_.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),a=i.properties.qHyperCubeDef,s=a.qDimensions.length,l=a.qMeasures.length;let u=a.qInterColumnSortOrder;RN(i,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",n),z_.quarantineProperty(i.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete i.properties.qHyperCubeDef.qNoOfLeftDims;const c=i.properties.qLayoutExclude.quarantine?.interColSortOrder;c&&(u=c,RN(i,"properties.qHyperCubeDef.qInterColumnSortOrder",u),RN(i,"data.0.interColumnSortOrder",u),i.properties.qLayoutExclude.quarantine&&delete i.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=u.length;e<s+l;e++)u.length<=e&&u.push(e);return z_.quarantineProperty(i.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),z_.quarantineProperty(i.properties,"qHyperCubeDef.excludedNoOfLeftDims ","excludedNoOfLeftDims "),z_.conditionalShow.quarantine(i.properties),HN.quarantine(i.properties),Z_(i.properties),i}const UN=e=>({dimensions:{min:1,max:1e3,description(t,r,n){const o="rows"===n?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return e.translator.get(o)}},measures:{min:1,max:1e3,description:()=>e.translator.get("Visualizations.Descriptions.Values")}}),YN={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let KN=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),XN=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const JN=e=>{switch(e?.type){case"url":return KN.Link;case"image":return KN.Image;case"indicator":return KN.Indicator;case"miniChart":return KN.MiniChart;default:return KN.Text}},ZN=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),QN=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>JN(e.qDef.representation)===KN.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},eF=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:ZN({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>JN(e.qDef.representation)===KN.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>JN(e.qDef.representation)===KN.Link&&e.qDef.representation?.urlPosition===XN.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>JN(e.qDef.representation)===KN.Link&&e.qDef.representation?.urlPosition===XN.Attribute},...QN(r)}},tF=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[KN.Image],i=!n?.("qMiniChartDef")&&t[KN.MiniChart],a=!n?.("tableIndicators")&&t[KN.Indicator],s=o&&t[KN.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>JN(e.qDef.representation)===KN.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};let rF=function(e){return e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot",e}({}),nF=function(e){return e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel",e}({}),oF=function(e){return e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid",e}({}),iF=function(e){return e.Forward="forward",e.Backward="backward",e.None="none",e}({});const aF="image",sF=(e,t,r)=>{if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder?.indexOf(-1)??-1;let o=r.properties.qHyperCubeDef.qNoOfLeftDims??-1;n>-1&&n<o&&(o-=1);const i=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},lF=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:uT.Auto,translation:"Common.Auto"},{value:uT.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:uT.Pixels,translation:"Object.Table.Column.Pixels"},{value:uT.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:uT.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:lT.PixelsDefault,show:e=>e.qDef.columnWidth?.type===uT.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:lT.PercentageDefault,show:e=>e.qDef.columnWidth?.type===uT.Percentage}}),uF=({key:e,translation:t,env:r})=>{const n=!r.anything.sense?.isUnsupportedFeature?.("tableImages");return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>!n||"labelTextAlign"===e||t.qDef.representation?.type!==aF},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>void 0!==t.qDef[e]&&!t.qDef[e].auto&&(!n||"labelTextAlign"===e||t.qDef.representation?.type!==aF)}}},cF="TOTAL_OFF",dF={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:nF.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:nF.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nF.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nF.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nF.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nF.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},pF="TOTAL_OFF",fF={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:nF.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:nF.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nF.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nF.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nF.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:nF.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},hF=e=>{const{translator:t,anything:r,flags:n}=e,o=(e=>{const{translator:t,anything:r}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:cF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:cF,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&sF},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,n)=>!r.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==cF&&sF(e,0,n)},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show:e=>"OTHER_OFF"!==e.qOtherTotalSpec?.qOtherMode}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:dF,...uF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...uF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...eF(e),...lF()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:dF,...uF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...uF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...tF(e,{[KN.Image]:!0,[KN.Indicator]:!0}),...lF()}}}},filter:{type:"object",component:"filter-item-react",ref:"filter",tabName:"SimpleProperties.Filters.Filters"}}}})(e);return n.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?o:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:pF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:pF,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&sF},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,n)=>!r.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==pF&&sF(e,0,n)},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show:e=>"OTHER_OFF"!==e.qOtherTotalSpec?.qOtherMode},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:fF,...uF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...uF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...eF(e),...lF()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:fF,...uF({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...uF({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...tF(e,{[KN.Image]:!0,[KN.ImagesInIndentMode]:!0,[KN.Indicator]:!0}),...lF()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}},mF=OS().palette,gF={TEXT:mF.text.primary,DISABLED:mF.text.disabled,HOVER:mF.action.hover,WHITE:Df.GREYSCALE_100,BORDER_MEDIUM:Df.GREYSCALE_85,DARK_MODE_TEXT:Df.GREYSCALE_95,DARK_MODE_BORDER:Df.GREYSCALE_95,DARK_MODE_DISABLED:Df.GREYSCALE_70,TRANSPARENT:"transparent",SELECTED:mF.primary.main,LINK:mF.info.main,ERROR:mF.error.main},vF=(e,t=gF.TEXT,r=gF.WHITE)=>{const n=pj(e),o=pj(t),i=pj(r);return n.isInvalid()?t:function(e,t,r){const n=fj(e,t),o=fj(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},yF=e=>{const t=e.getStyle("","","dataColors.selected")||gF.SELECTED,r=function(e,t){const r=pj("#FFFFFF"),n=pj(e),o=pj(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=fj(r,n),a=fj(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,gF.TEXT);return{background:t,color:r}},bF=(e,t)=>{const r=pj(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},xF=e=>{const t=pj(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},SF=e=>{e.stopPropagation(),e.preventDefault()},wF=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),CF=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},EF=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map((e=>CF(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...Mj(n).filter((e=>!a.includes(e))).map((e=>CF(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),IF=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],DF=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>CF(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...IF.filter((e=>!i.includes(e))).map((e=>CF(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),PF=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:EF({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:DF({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:wF(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:wF(`${e}.background`,"properties.background",((t,r)=>{const n=r?gF.WHITE:gF.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),MF=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:wF(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:wF(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),RF=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),LF="12px",AF="Source Sans Pro, sans-serif",kF="600",OF=15e3,qF=4/3;let TF=function(e){return e.Transparent="transparent",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2",e}({}),_F=function(e){return e.Solid="solid",e.None="none",e}({});const jF={display:"flex",justifyContent:"center",alignItems:"center"},NF={borderStyle:"solid"},FF={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},zF={lineHeight:qF,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},WF=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),$F=(e,t)=>e>0?`${e}px ${_F.Solid} ${t}`:_F.None,VF=(e,t,r,n,o)=>{const i=Number(!t||o?.right),a=Number(!e||o?.bottom);return{borderRight:"rtl"!==n?$F(i,r):_F.None,borderBottom:$F(a,r),borderLeft:"rtl"===n?$F(i,r):_F.None,borderTop:_F.None}},HF=(e,t,r,n,o,i,a)=>{const s=VF(t,n,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=$F(2,o)),r||(s.borderLeft="rtl"!==i?$F(1,o):"none",s.borderRight="rtl"===i?$F(1,o):"none")),s},BF=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=$F(1,r)),t&&(n.borderRight=$F(1,r)),n},GF=(e,t,r)=>{switch(t){case"header":return e.object?.pivotTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.pivotTableV2?.dimension?.label?.value?.[r];case"measureLabels":return e.object?.pivotTableV2?.measure?.label?.name?.[r];case"measureValues":return e.object?.pivotTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.pivotTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.pivotTableV2?.null?.label?.value?.[r];default:return}},UF=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:PF({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:GF}),dimensionValueSection:PF({section:"dimensionValues",translator:e,flags:t,getThemeValue:GF}),measureValueSection:PF({section:"measureValues",translator:e,flags:t,getThemeValue:GF}),measureLabelSection:MF({section:"measureLabels",getThemeValue:GF}),totalValuesSection:MF({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:GF}),nullValuesSection:MF({section:"nullValues",fallbackBackground:TF.NullValueBackground,getThemeValue:GF}),gridSection:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:RF("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:RF("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"),border:wF("grid.border","properties.border",(e=>e.object?.pivotTableV2?.grid?.borderColor??TF.DividerLight)),divider:wF("grid.divider","properties.pivot.divider",(e=>e.object?.pivotTableV2?.grid?.divider?.borderColor??TF.DividerDark)),background:wF("grid.background","properties.background",(e=>e.object?.pivotTableV2?.grid?.backgroundColor??TF.Transparent))}}}}}}]}),YF=e=>{if(e.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}}},KF=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[UF(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:uT.Auto,translation:"Common.Auto"},{value:uT.Pixels,translation:"Object.Table.Column.Pixels"},{value:uT.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:uT.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:lT.PixelsDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===uT.Pixels}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:lT.PercentageDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===uT.Percentage}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){const{qIndentMode:t}=e.qHyperCubeDef;return!t&&!!e.qHyperCubeDef.qDimensions.some((e=>"TOTAL_EXPR"===e.qOtherTotalSpec?.qTotalMode))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}]},...YF(t)}}),XF="auto",JF={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:XF,translation:"Object.Table.SortingInSearch",options:[{value:XF,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function ZF(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:hF(e),sorting:JF,addons:YN,settings:KF(t,r)}}}function QF(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,exploration:e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:ZF(e),importProperties:BN(e),exportProperties:GN,exploration:g_(e),data:UN(e),propertyHandler:e.flags.isEnabled("VNA-147_NEBULA_PIVOT_DATA_HANDLERS")?e=>new N_(e):void 0}}const ez=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function tz(e,t){return M((()=>e),t)}const rz={},nz=e=>{const t=M((()=>({current:rz})),[]);return t.current=t.current===rz?e:t.current,t},oz=e=>!!e&&0===pj(e).a,iz="#grid",az=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},sz=(e,t,r,n,o)=>{const i=az(".qv-object .qv-inner-object",r),a=az(".qv-panel-sheet",r),s=az(iz,r)??a,l=(e=>{const t=e.components?.find((e=>"general"===e.key)),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return xF(r);if("none"===n)return"transparent";if(void 0===n)return;const i=pj(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=oz(d),f=!oz(h=p?s:d)&&vF(h,gF.TEXT,gF.DARK_MODE_TEXT)===aj(gF.DARK_MODE_TEXT);var h;const m=((e,t,r,n=gF.WHITE)=>e&&!oz(e)?e:oz(t)?r&&!oz(r)?r:n:t)(l,d,s);return{color:d,headerColor:m,isDark:f}},lz=(e,t,r,n)=>{const o=O(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=A([]);return k((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{r?.disconnect()}}),[e,t]),r})(t.closest(iz),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return M((()=>({...o,background:sz(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function uz(e,t){const r=M((()=>({isLoading:!0})),t),[n,o]=L((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const cz=3;function dz(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function pz({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=cz}={},{estimateWidth:a,measureText:s,estimateLineCount:l}=v((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=LN(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=LN((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=dz(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}var fz,hz=E;fz=hz.createRoot,hz.hydrateRoot;const mz="Source Sans Pro, sans-serif";function gz(e,t){const[r,n]=m(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var vz={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const yz=({translator:e})=>(v((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(vz).forEach((t=>{e.add(vz[t])}))}}(e)}),[e]),e),bz={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},xz={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},Sz=fl("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...bz},"&::-moz-range-track":{...bz},"&::-ms-track":{...bz},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...xz},"&::-moz-range-thumb":{...xz},"&::-ms-thumb":{...xz},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),wz=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c,accessibilityRelatedArgs:d,direction:p="ltr"})=>{const f=yz({translator:d.translator}),h=l({initWidth:e,columnWidth:e,initX:0}),m=r?0:1,g=n&&!c,v=()=>g?h.current.columnWidth-m:"100%",y={left:"rtl"!==p?v():void 0,right:"rtl"===p?v():void 0},b=t=>{h.current={initWidth:e,columnWidth:e,initX:t??h.current.initX}};gz((()=>{g&&b()}),[e]);const x=e=>{const t=Math.max(e,lT.PixelsMin);h.current.columnWidth=t,i(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:uT.Pixels,pixels:h.current.columnWidth};a(e)}else u?.(!1)},w=e=>{const t="rtl"===p?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;x(t)},C=e=>{SF(e),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),S()},E=e=>{const t="rtl"===p?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;x(t)},I=e=>{SF(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",I),S()},D=!n&&s?e=>{if(e.key===aT.Left||e.key===aT.Right){SF(e);const t=5,r=e.key===aT.Left?t:-t,n="rtl"===p?r:-r;u?.(!0),x(h.current.columnWidth+n)}else e.key===aT.Space||e.key===aT.Enter?(SF(e),s(e),u?.(!1),S()):e.key===aT.Esc&&(SF(e),s(e),u?.(!1),x(h.current.initWidth))}:void 0,P=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return ii.jsx(Sz,{style:y,hoverColor:o,isLastColumn:r,className:sT,"data-testid":sT,onMouseDown:e=>{SF(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),u?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:uT.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(SF(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",I),u?.(!0),b(e.touches[0].clientX))},onKeyDown:D,onBlur:s,onFocus:()=>{b()},type:"range",tabIndex:-1,"aria-label":P,"aria-valuemin":lT.PixelsMin,"aria-valuemax":lT.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p},t)},Cz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),Ez=fl(Qu,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})((({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"}))),Iz=fl(Cz,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),Dz=fl(hp)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Pz=fl(Uc)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),Mz=fl(bp)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),Rz=fl(bp,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),Lz=fl("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),Az=fl("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),kz=fl(mu)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),Oz=fl(Wd,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),qz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),Tz=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?Tz(t):t:e.parentElement?.children?.[0]},_z=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?_z(t):t},jz=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===aT.Down||t===aT.Up){const r=e=>t===aT.Down?Tz(e):_z(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},Nz=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach((([,e])=>{e(!1)})),await e(r)}}:{}})))})))));let Fz={};const zz=({autoFocus:e,id:t,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:s,isSubMenu:l,isActive:u,direction:c,isPagination:d})=>{const[p,h]=m(!1),g=r.useRef(null),v=f((e=>{e.stopPropagation(),h(!1)}),[h]);return ii.jsxs(ii.Fragment,{children:[ii.jsxs(Rz,{ref:s?g:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),Fz={}),s?.length&&(h(!0),Fz[o]=h,e.stopPropagation()))},disabled:!a,autoFocus:e,isSubMenu:!!l,isActive:!!u,onKeyDown:jz,children:[u?ii.jsx(Lz,{direction:c,isPagination:d}):null,ii.jsxs(Az,{children:[ii.jsx(Oz,{direction:c,isPagination:d,children:ii.jsx(i,{})}),ii.jsx(kz,{variant:"body2",children:o})]}),s?.length?ii.jsx(qz,{}):null]},t),s?.length?ii.jsx(Hz,{isSubMenu:!0,open:p,anchorEl:g.current,onClose:v,menuGroups:Nz(s,Fz),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null]})},Wz=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&ii.jsx(Mz,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>ii.jsx(zz,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),$z=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[Wz({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?ii.jsx(Pz,{"data-testid":"group-divider",variant:"middle"}):void 0])),Vz={appear:0,enter:0,exit:0},Hz=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?ii.jsx(Dz,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,transitionDuration:Vz,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:$z({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,Bz=(e,t)=>e.some((e=>t[e]>0)),Gz={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Uz=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=m(null),[a,s]=m(Gz);return gz((()=>{e||(s(Gz),i(null))}),[e]),d((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:Bz(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:Bz(["qSelected"],e),canSelectPossible:Bz(["qOption"],e),canSelectAlternative:Bz(["qAlternative"],e),canSelectExcluded:Bz(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},Yz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})}))),Kz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})}))),Xz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})}))),Jz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})}))),Zz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})}))),Qz=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})}))),eW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})}))),tW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})}))),rW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})}))),nW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),oW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),iW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),aW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})})));let sW=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const lW="/qListObjectDef",uW=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[sW.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:Yz,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:Jz,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:eW,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:XT,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[sW.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:tW,enabled:!0}]}]),!e.isLocked&&r[sW.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:aW,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(lW))},icon:rW,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(lW))},icon:iW,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(lW))},icon:nW,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(lW))},icon:oW,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(lW))},icon:Kz,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:Qz,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:Zz,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[sW.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:Xz,enabled:!0}]}]),f},cW=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:h,model:m,direction:g="ltr",isPagination:v,isAccessibleHeader:y,iconSize:b=nT})=>{const x=l(null),S=yz({translator:o}),{qLibraryId:w,fieldId:C,headTextAlign:E}=n,I=d?.app,{fieldInstance:D,selectionActionsEnabledStatus:P}=Uz({open:e,headerData:n,app:I,qStateName:d?.qStateName}),M=(({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null})({model:m,headerData:n}),R=(({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>f((()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}}),[e,t,r,n?.qStateName,o,i]))({qLibraryId:w,fieldId:C,searchRelatedArgs:c,selectionRelatedArgs:d,direction:g}),L=f((e=>{e.stopPropagation(),t(!1)}),[t]),A=f((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?ii.jsxs(Ez,{rightAligned:"right"===E,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper",onClick:!1===y?A:void 0,ref:x,isAccessibleHeader:y,children:[s?ii.jsx(Iz,{height:b,className:oT,"data-testid":oT,isInteractionsActive:i.active??!1,children:ii.jsx(Cz,{})}):null,ii.jsx(Hz,{open:e,anchorEl:!1===y?x.current:r.current,onClose:L,menuGroups:uW({headerData:n,translator:S,menuAvailabilityFlags:a,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:D,selectionActionsEnabledStatus:P,anchorRef:r,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:M,expandOrCollapseArgs:h}),direction:g,isPagination:v})]}):null},dW=e=>e.isDark?{background:e.color,borderColor:gF.DARK_MODE_BORDER,color:gF.DARK_MODE_TEXT,disabledColor:gF.DARK_MODE_DISABLED,iconColor:gF.DARK_MODE_TEXT}:{background:e.color,borderColor:gF.BORDER_MEDIUM,color:gF.TEXT,disabledColor:gF.DISABLED},pW=fl(Qu,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),fW=fl(Qp,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),hW=fl(uc,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),mW=fl(mu)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),gW=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=v((()=>dW(n.background)),[n]);if(!r.active)return null;const a=o?ii.jsx(pW,{footerStyle:i,children:e}):null;return t?E.createPortal(e,t):a},vW=u({}),yW=()=>h(vW),bW=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const y=(e=>!e.enabled||e.active)(c)?0:-1,b=v((()=>dW(p.background)),[p]),x=o?o.getBoundingClientRect().width:h.width,S=yz({translator:d}),w=v((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:S,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:y,width:x,visibilityThreshold:g})),[t,r,n,o,i,a,s,l,u,c,S,p,f,h,m,b,y,x,g]);return ii.jsx(vW.Provider,{value:w,children:e})};let xW=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),SW=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const wW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),CW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),EW=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),IW={FirstPage:CW,PreviousPage:wW,NextPage:qz,LastPage:EW,FirstPageRTL:EW,PreviousPageRTL:qz,NextPageRTL:wW,LastPageRTL:CW},DW=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=yW(),u=r.concat("rtl"===n?"RTL":""),c=IW[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},PW=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=yW(),o=0===e.page,{IconComponent:i,styledProps:a}=DW({type:xW.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||SW.FirstPage)?null:ii.jsx(hW,{...a,disabled:!r.active,children:ii.jsx(i,{height:nT})})},MW=(e,t,r=!1)=>{r&&e.key===aT.Tab&&!e.shiftKey&&(SF(e),((e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)})(e.target,t,!1))},RW=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=yW(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=DW({type:xW.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{MW(e,t,n)}:void 0;return o<=(a?.lastPage||SW.LastPage)?null:ii.jsx(hW,{...u,onKeyDown:c,disabled:!i.active,children:ii.jsx(l,{height:nT})})},LW=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=yW(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=DW({type:xW.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>SW.FirstPage&&o>SW.LastPage)&&t.enabled?e=>{MW(e,t,n)}:void 0;return ii.jsx(hW,{...l,onKeyDown:u,disabled:!i.active,children:ii.jsx(s,{height:nT})})},AW=()=>{const{pageInfo:e,interactions:t}=yW(),r=0===e.page,{IconComponent:n,styledProps:o}=DW({type:xW.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return ii.jsx(hW,{...o,disabled:!t.active,children:ii.jsx(n,{height:nT})})},kW=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=yW(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||SW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return ii.jsx(mW,{variant:"caption",dir:"ltr",children:s})},OW=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=yW(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return ii.jsxs(ii.Fragment,{children:[ii.jsxs(mW,{variant:"caption",id:p,children:[c,":"]}),ii.jsx(fW,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},qW=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=yW();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||SW.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=ii.jsx(ii.Fragment,{children:e.rowsPerPageOptions.map((e=>ii.jsx("option",{value:e,children:e},e)))});return ii.jsx(OW,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},TW=1e3,_W="…",jW=({totalPages:e,page:t})=>{const r=Math.min(e,TW),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-TW):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return ii.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(ii.jsx("option",{value:_W,disabled:!0,children:_W},"startMoreOptions")),o<e-1&&a.push(ii.jsx("option",{value:_W,disabled:!0,children:_W},"endMoreOptions")),ii.jsx(ii.Fragment,{children:a})},NW=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=yW(),{page:i}=e;if(t<=(o?.selectPage||SW.SelectPage))return null;const a=ii.jsx(jW,{totalPages:r,page:i});return ii.jsx(OW,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var FW=b((e=>ii.jsxs(bW,{...e,children:[ii.jsx(qW,{}),ii.jsx(NW,{}),ii.jsx(kW,{}),ii.jsx(PW,{}),ii.jsx(AW,{}),ii.jsx(LW,{}),ii.jsx(RW,{})]})));const zW=e=>ii.jsx(gW,{...e,children:ii.jsx(FW,{...e})}),WW=u({}),$W=()=>h(WW),VW=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o,children:i})=>{const a=v((()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o})),[e,t,r,n,o]);return ii.jsx(WW.Provider,{value:a,children:i})},HW=u({}),BW=()=>h(HW),GW=({app:e,model:t,theme:r,embed:n,keyboard:o,translator:i,interactions:a,env:s,children:l})=>{const u=v((()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:o,env:s,translator:i})),[e,a,t,n,r,o,s,i]);return ii.jsx(HW.Provider,{value:u,children:l})},UW=u({}),YW=()=>h(UW),KW=({children:e,...t})=>ii.jsx(UW.Provider,{value:t,children:e}),XW=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{const{theme:e,translator:t}=BW(),{layoutService:r}=YW(),n=e.getStyle("","","fontFamily")??AF;return r.hasData?r.hasLimitedData?{text:t.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:n,alignItems:"center",height:"22px"}:{}:{text:t.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:n,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:ii.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:ii.jsx("span",{style:{...zF,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},JW="/qHyperCubeDef",ZW=-1,QW="PSEUDO-DIM",e$=e=>e===ZW?QW:(({cId:e})=>e??w_())(e),t$=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===ZW?r.columnWidthLocation=rF.Measures:r.isLeftDimension?r.columnWidthLocation=rF.Dimension:t.at(-1)===ZW?r.columnWidthLocation=rF.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=rF.Pivot))},r$=(e,t,r,n)=>{const o=e$(r),i=e.getDimensionInfoIndex(r),a=e.isLeftDimension(i);return r===ZW?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:rF.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:o,colIdx:0,label:r.qFallbackTitle,qReverseSort:r.qReverseSort,sortDirection:r.qSortIndicator&&"N"!==r.qSortIndicator?r.qSortIndicator:"A",qLibraryId:r.qLibraryId,fieldId:r.qGroupFieldDefs[r.qGroupPos],isLocked:r.qLocked??!1,columnWidth:r.columnWidth,qApprMaxGlyphCount:r.qApprMaxGlyphCount,isDim:!0,isCyclic:r.qGrouping===pT.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:rF.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},n$=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let o=n;var i;r.length>0&&(o=(i=n).at(-1)===ZW?i.slice(0,-1):i);const a=o.length+(r.length?1:0),s=Math.max(1,r.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,s);return r.forEach(((r,n,o)=>{const i=n===o.length-1;l[a-1][n]=r$(e,t,r,i)})),o.forEach(((r,n,o)=>{const i=n===o.length-1;l[n][s-1]=r$(e,t,r,i)})),l},o$=(e,t,r,n)=>{const o=((e,t,r,n)=>{let o;return o=0===r.length||r.includes(ZW)?n$({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(n$({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&o.at(-1)?.forEach(((t,r)=>{Array.isArray(t)?t.forEach(((t,r)=>{t$({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})):t$({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})),o})(e,t,r,n);return{data:o,size:{x:o[0]?.length??0,y:o.length}}};var i$={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach((e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:s$(e),value:s$(t),useEqualSign:r}}(n,o,i))})),t}},a$=i$;function s$(e){try{return decodeURIComponent(e)}catch{return e}}function l$(e){if(!(this instanceof l$))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>a$.fromSearchString(t.search)}})}function u$(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}l$.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},l$.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=u$(t.key),t.value?r+=`=${u$(t.value)}`:r+=t.useEqualSign?"=":"";return r};var c$=l$;var d$,p$=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},f$=class{decode(e){let t="";const r=new p$(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},h$=e=>e>=0&&e<=1114111,m$=e=>e.match(/[\s]/),g$=class extends f${decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(r=i,n=0;n<5&&(o=e.next(),null!=o&&!m$(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return h$(a)?String.fromCharCode(a):"�"}},v$=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},y$=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return v$.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return v$.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||v$.newInstanceIfNeeded(e,t,this._value)}},b$=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new y$);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},x$=(()=>{const e=[],t=[],r=new b$;let n,o,i;for(n in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})(),S$=class extends f${decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,x$.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=x$.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&h$(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&h$(n)?String.fromCharCode(n):null}},w$=class extends f${decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),h$(i))?String.fromCharCode(i):(e.reset(),null)}},C$=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,E$=5e6,I$=5e5,D$=(e,t)=>{const{maxByteSizeSvg:r=I$,maxByteSizeImage:n=E$}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=C$.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n};"undefined"!=typeof document&&(d$=document.createElement("div"));var P$=Array.prototype.indexOf,M$=[",",".","_"," "],R$=[",",".","-","_"," "],L$={width:["%"],height:["%"]},A$={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},k$={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":A$.image,"background-color":A$.color,"border-color":A$.color,"border-image":A$.image,color:A$.color,icon:A$.image,"list-style-image":A$.image,"outline-color":A$.color},O$={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function q$(e,t,r){let n;if(t){if(P$)return P$.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function T$(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return d$.appendChild(r),t=d$.innerHTML,d$.removeChild(r),t}function _$(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=N$(e).toLowerCase(),t=N$(t),i=0;i<O$.attr_name.length;i++)if(e.match(O$.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<O$.attr_val.length;i++)if(t.toLowerCase().match(O$.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=L$[e],n||(n=R$),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&q$(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function j$(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=N$(e).toLowerCase(),t=N$(t),q$(e,O$.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<O$.css_val.length;n++)if(t.toLowerCase().indexOf(O$.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=k$[e],o||(o=A$.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&q$(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function N$(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new S$,new w$,new g$];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}var F$=[];for(let e=0;e<255;e++)F$[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var z$={html:e=>T$(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=j$(t,r[t],!0),i+=j$(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=_$(e,t[e],!0),o+=_$(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function W$(e,t){throw new Error(t)}var $$={canonicalize:N$,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?z$.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&W$(this,"Invalid parameter type"),z$.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&W$(this,"Invalid parameter type"),z$.attr(e)):void W$(this,"Invalid parameter type")},encodeForAttr:_$,encodeForAttr2:function(e){return _$("nonsens",e,!0)},encodeForCSS:j$,encodeForHref:function(e){N$(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new c$(e),r=c$.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+c$.encodeSearchParams(n)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,o,i,a,s;for(t||(t=M$),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),q$(o,t)>=0||null==F$[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:T$,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=N$(t).toLowerCase():W$(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:D$,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const V$=(e,t)=>t.qAttrExps?.qValues?.[e],H$=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},B$=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&$$.isSafeDataURL(t)?{type:KN.Image,url:t,text:e,imageSize:r,resolvedImagePosition:H$(n,a),labelStructure:o,imageBox:i}:{type:KN.Text,url:void 0,text:e,labelStructure:o},G$=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:KN.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:KN.MiniChart,text:n,miniChart:a}},U$=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===XN.Attribute?void 0:r?.urlLabel},Y$=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:KN.Link,url:$$.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:KN.Text,url:void 0,text:t,labelStructure:e}}},K$=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=JN(t),d=s(e);return c===KN.Image&&u[KN.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=V$(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),B$({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return B$({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=V$(r.imageLabel??-1,e)?.qText??n;return B$({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:KN.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===KN.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===XN.Attribute){const i=U$(r.url??-1,e,t);return Y$({labelStructure:n,text:o||i||"",url:i})}if(i===XN.Dimension){const i=U$(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),Y$({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:KN.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===KN.Indicator&&u[KN.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:KN.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===KN.MiniChart&&u[KN.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?G$(e,t,i,d):{type:KN.Text,url:void 0,text:d,labelStructure:a}},X$=(e,t)=>{const r=t.qAttrExps,n=r?.qValues?.[e?.cellForegroundColor??-1]?.qText,o=r?.qValues?.[e?.cellBackgroundColor??-1]?.qText,i=o?xF(o):null,a=n?xF(n):null,s=((e,t)=>e||!t?null:vF(t))(a,i);return{color:s??a,background:i}},J$=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:J$(e,t)),e),Z$=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:OF-n;let s=e.qUp+e.qDown;if(o&&0===r){const r=(t+e.qUp)%i.rowsPerPage;s=e.qDown+r}return Math.min(a,J$(s,e))},Q$=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:s,attrExprInfoIndex:l,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,labelStructure:p,env:f,pageInfo:h,direction:m="ltr"})=>{const g=(!c||!u)&&"P"===e.qType,v=((e,t)=>{if(e!==ZW){if(t){const t=JN(e.representation);return t===KN.Link||t===KN.Image?e.representation:{type:KN.Text}}return e.representation}})(s,c),y=(({node:e,isLeftColumn:t,isIndentModeEnabled:r,labelStructure:n,representationType:o,parentOrRootOriginalValue:i})=>{let a=e.qText;if(t&&r&&n){const{originalValue:t,delimeter:r,suffix:s}=n;a=o===KN.Link?"P"===e.qType?i:t:`${t} ${!s||!t&&s?"":r} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:p,representationType:JN(v),parentOrRootOriginalValue:(t||r)?.representation?.labelStructure?.originalValue??""}),b=K$({cell:{...e,qText:y},representationProperties:v,attrExprInfoIndex:l,env:f,labelStructure:p,direction:m,enabledFeatures:{[KN.Image]:!0,[KN.Indicator]:!0}}),x={id:w_(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:Z$(e,o,i,n,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof s||!s.qLocked),isTotal:"T"===e.qType||!!t?.isTotal,isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:g,expressionColor:X$(l,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(s),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:g?e.qElemNo:t?.visibleMeasureInfoIndex,representation:b,...void 0!==d&&{indentLevel:d}};return t&&(t.children[x.mainAxisPageCoord-t.mainAxisPageCoord]=x),x},eV=(e,t,r,n,o,i,a,s,l)=>{const{isIndentModeEnabled:u}=o;if(!t.length)return e;let c=0;return function t(d,p,f,h=0,m=-1){e[h]||(e[h]={}),u&&m++;const g=o.leftDimensionInfoIndexes.indexOf(ZW);f.forEach(((f,v)=>{const y={originalValue:f.qText??"",maskedValue:"",delimeter:"-",suffix:""};c+=0===v?0:1;const b=r.qTop-n.page*n.rowsPerPage,x=Math.max(0,b+c-f.qUp),S=r.qTop+c-f.qUp;if(u){if(o.hasPseudoDimOnLeft&&m<=g)if(y.originalValue=f.qText??"",y.maskedValue=f.qText??"","N"===f.qType||"U"===f.qType||"T"===f.qType)"U"===f.qType&&(y.originalValue=o.getNullValueText()),m<g&&(y.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===f.qType){y.originalValue=(p||d)?.representation.labelStructure?.originalValue??"",y.maskedValue=(p||d)?.representation.labelStructure?.originalValue??"",y.suffix=f.qText??"";const e=f.qSubNodes;f={...(p||d)?.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},m=(p||d)?.indentLevel??0}"U"===f.qType&&(y.originalValue=o.getNullValueText())}let w=h;u&&(w=g>=1&&m>=g?m+1:m,0===m&&0===g&&0===f.qSubNodes.length&&(w=0));const C=e.at(h)?.[x],E=u&&void 0===C?.ref.qText||!C?Q$({node:f,parent:p,root:d,x:w,y:S,pageY:x,layoutService:o,dimensionInfo:i[w],attrExprInfoIndex:a[w],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentLevel:m},env:s,pageInfo:n,labelStructure:y,direction:l}):e[h][x];if(e[h][x]=E,f.qSubNodes.length){const e=u?0:h+1;t(d||E,E,f.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},tV=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n.at(r+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},rV=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=t?.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=r?.[o],a=n.at(-1);return i?.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:a?.isTotal?a.mainAxisPageCoord-1:-1},nV=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a,direction:s})=>{const{qLeft:l,qArea:u}=t;if(!l.length)return e;const c=eV(e.grid,l,u,r,n,o,i,a,s);tV(c,r.rowsOnCurrentPage);const d=rV(c,n);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},oV=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{const a=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[a])||(o[a]=[]);const l="U"===t.qType;o[a][s]=o[a][s]??{id:w_(),ref:t,isNull:l}}))})),o},iV=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n?.length?oV({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},aV=(e,t,r,n,o,i,a,s,l,u)=>{const{isIndentModeEnabled:c}=n;if(!t.length)return e;let d=0;!function t(a,p,f,h=0){e[h]||(e[h]={}),f.forEach(((f,m)=>{d+=0===m?0:1;const g=r.qLeft+d-f.qUp,v=e[h][g]??Q$({node:f,parent:p,root:a,x:g,y:h,pageY:h,layoutService:n,dimensionInfo:o[h],attrExprInfoIndex:i[h],isLeftColumn:!1,...c&&{isIndentModeEnabled:c},env:s,pageInfo:l,direction:u});e[h][g]=v,f.qSubNodes.length&&t(a||v,v,f.qSubNodes,h+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},sV=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:s,direction:l})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=aV(e.grid,u,c,r,n,o,i,a,s,l);tV(d,r.size.x);const p=rV(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},lV=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),uV=(e,t)=>{const{env:r}=BW(),{direction:n}=$W(),{layoutService:o,effectivePropertiesService:i}=YW(),{qPivotDataPages:a,pageInfo:s}=$W(),[l,u]=m(null),c=((e,t,r)=>v((()=>({left:e.map(lV),top:t.map(lV),measures:r.map(lV)})),[r,e,t]))(e,t,o.visibleMeasureInfo),d=v((()=>o$(o,i,t,e)),[o,i,t,e]),p=f((()=>a.slice(1).reduce(((e,t)=>iV({prevData:e,dataPage:t,pageInfo:s})),((e,t)=>{const{qData:r,qArea:n}=e;return oV({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(a[0],s))),[a,s]),h=f((()=>a.slice(1).reduce(((e,i)=>sV({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n})),((e,t,r,n,o,i,a,s)=>{const{qArea:l,qTop:u}=e,c=aV([],u,l,t,r,n,o,i,a,s);tV(c,t.size.x);const d=rV(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(a[0],o,t,c.top,d.size.y,r,s,n))),[a,o,t,c.top,d.size.y,r,s,n]),g=f((()=>a.slice(1).reduce(((t,i)=>nV({prevData:t,nextDataPage:i,pageInfo:s,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r,direction:n})),((e,t,r,n,o,i,a)=>{const{qArea:s,qLeft:l}=e,u=eV([],l,s,r,t,n,o,i,a);tV(u,r.rowsOnCurrentPage);const c=rV(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(a[0],o,s,e,c.left,r,n))),[a,o,s,e,c,r,n]),[y,b]=m((()=>p())),[x,S]=m((()=>h())),[w,C]=m((()=>g()));gz((()=>{b(p())}),[p]),gz((()=>{S(h())}),[h]),gz((()=>{C(g())}),[g]),gz((()=>{l&&l.forEach((i=>{b((e=>iV({prevData:e,dataPage:i,pageInfo:s}))),S((e=>sV({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n}))),C((t=>nV({prevData:t,nextDataPage:i,pageInfo:s,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r,direction:n})))}))}),[l]);const E=f((e=>{u(e)}),[]);return{headersData:d,measureData:y,topDimensionData:x,leftDimensionData:w,attrExprInfoIndexes:c,nextPageHandler:E}},cV=Math.sqrt(1e4),dV=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/lT.PixelsMin)}),pV=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/cV),n=Math.ceil(e.qHeight/cV);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*cV,qTop:e.qTop+r*cV,qWidth:Math.min(cV,e.qWidth-o*cV),qHeight:Math.min(cV,e.qHeight-r*cV)});return t};function fV({nextPageHandler:e}){const{model:t}=BW(),{pageInfo:r}=$W(),{layoutService:n}=YW(),o=(e=>{const t=l(e);return t.current=e,t})(r.page),i=t,a=f((async(e,t)=>{await(i?.collapseLeft(JW,e,t,!1))}),[i]),s=f((async(e,t)=>{await(i?.collapseTop(JW,e,t,!1))}),[i]),u=f((async(e,t)=>{await(i?.expandLeft(JW,e,t,!1))}),[i]),c=f((async(e,t)=>{await(i?.expandTop(JW,e,t,!1))}),[i]),d=f((async t=>{if(i?.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(JW,t.reduce(((e,t)=>[...e,...pV(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),p=f(((e,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:s,qDimensionInfo:l,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case rF.Dimension:c=[{qPath:`${JW}/qDimensions/${r}/qDef/columnWidth`,oldValue:l[r].columnWidth}];break;case rF.Measures:if(o)c=s.map(((e,t)=>({qPath:`${JW}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${JW}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case rF.Pivot:c=[{qPath:`${JW}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}}));t?.applyPatches(d,!0)}),[t,n]),h=f((async e=>{await(i?.applyPatches([{qPath:`${JW}/indentModeColumnWidth`,qOp:n.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))}),[i,n]);return v((()=>({collapseLeft:a,collapseTop:s,expandLeft:u,expandTop:c,applyColumnWidth:p,applyIndentModeColumnWidth:h,fetchPages:d})),[a,s,u,c,p,h,d])}const hV=(e,t,r)=>(n,o)=>{if("P"===n)return ZW;const i=t[r+o];return e[i]},mV=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},gV=u({}),vV=()=>h(gV),yV=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=YW(),{qPivotDataPages:n}=$W();return v((()=>{const o=mV(n[0]?.qLeft??[]),i=mV(n[0]?.qTop??[]);return{visibleLeftDimensionInfo:o.map(hV(r,t,0)),visibleTopDimensionInfo:i.map(hV(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:s,nextPageHandler:l}=uV(t,r),u=fV({nextPageHandler:l}),c=v((()=>({gridSectionsData:{headersData:n,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:s,dataModel:u})),[t,r,n,o,i,a,s,u]);return ii.jsx(gV.Provider,{value:c,children:e})},bV=20,xV=18,SV=.75,wV=e=>-1!==e&&e?.representation?.type===KN.Image,CV=({isLeftColumn:e,layoutService:t,representation:r})=>Boolean(e)&&t.isIndentModeEnabled&&r.type===KN.Image,EV=e=>void 0===e?kF:e,IV=(e,t)=>void 0===e||Number.isNaN(+e)?t:+e,DV=e=>IV(e,lT.PixelsDefault),PV=(e,t)=>IV(e,lT.PercentageDefault)*t/100,MV=(e,t,r)=>{switch(t?.type){case uT.Pixels:return DV(t.pixels);case uT.Percentage:return PV(t.percentage,e);case uT.FitToContent:case uT.Auto:default:return r}},RV=({headers:e,layoutService:t,effectivePropertiesService:r,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,s,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:u,qDimensionInfo:c}}}=t,{id:d,colIdx:p,qApprMaxGlyphCount:f,isLeftDimension:h}=s,m=c.find((e=>e.cId===d)),g={width:24,...m?.representation?.imageBox};if(!h)return e+0;if(d===QW)return e+0;const v=CV({isLeftColumn:h,layoutService:t,representation:m?.representation||{type:KN.Text}})?g.width+8+4:n(f),y=!r.qAlwaysFullyExpanded&&p<u-1?21:0;let b=0;if(o&&i&&a){b=i("- ")+a}return Math.max(e,24*l+xV+y+v+b)}),0),LV=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*xV;return Math.max(e,o+t(n.qFallbackTitle))}),0),AV=(e,t,r,n)=>{const o=100*e/t,i=n*SV*(o/100),a=o/100*+r;return Math.min(a,i)},kV=(e,t,r,n)=>n*(+r/100)*(100*e/t/100),OV=(e,t)=>e.some((e=>e>=t*SV)),qV=({layoutService:e,effectivePropertiesService:t,headersData:r,columnWidths:n,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:u})=>{let c=[];const d=o*SV,p=r.data[r.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,n.at(-1)),h=Math.min(d,RV({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,LV(e.visibleMeasureInfo,a));let g=0;const v=p.findIndex((e=>e.id===QW)),y=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===uT.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+xV+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:r});if(e.hasPseudoDimOnLeft)if(0===v){const e=Math.max(f,h,m);c=[Math.max(y,e-f),f]}else{const r=Math.min(d,LV(e.visibleMeasureInfo,l,!0));g=Math.min(d,RV({headers:p.slice(0,v),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:r}));const n=Math.max(f,h,g);c=[Math.max(y,n-f),f]}else c=[Math.max(y,h-f),f];const b=Math.min(d,c.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:x}=e;i&&i<=d&&(x.type=uT.Pixels,x.pixels=i);return[uT.Pixels,uT.Percentage].includes(x.type)||OV(c,o)?((e,t,r,n)=>{let o=e[0],i=e[1],a=[];const s=e.reduce(((e,t)=>e+t),0),{type:l,pixels:u,percentage:c}=t,d=OV(e,r);l===uT.Auto&&d&&(o>i?o-=i:i-=o),l===uT.Pixels&&u&&(o=AV(e[0],s,u,r),i=AV(e[1],s,u,r)),l===uT.Percentage&&c&&(o=kV(e[0],s,c,r),i=kV(e[1],s,c,r));let p=0;i<=n&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-n,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(c,x,o,f):{leftGridWidth:b,leftGridColumnWidths:c,leftGridFullWidth:b}};function TV({tableWidth:e}){const t=e*SV,{styleService:r,layoutService:n,effectivePropertiesService:o}=YW(),{translator:i}=BW(),{gridSectionsData:{headersData:a}}=vV(),{measureText:s}=pz(r.header),{estimateWidth:l,measureText:u}=pz({...r.dimensionValues,fontWeight:EV(r.dimensionValues.fontWeight)}),{measureText:c}=pz({...r.dimensionValues,...r.measureLabels}),d=f(((r,d)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=n,v=(t=0)=>h.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=c(n)+xV,a=Math.max(i,t);return Math.max(r,m?a:MV(e,o,a))}),0),y=e=>a.data.reduce(((t,r)=>{const n=r.at(e);if(!n||Array.isArray(n))return t;if(n.id===QW)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?bV:0;return xV+s(t)+bV+n})(n);return Math.max(o,t)}),0);let b=0,x=a.data.at(-1);m&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((i,s)=>{let u=xV;if(m&&1!==a.size.x||!r||void 0===d||d!==i.colIdx){let t;i.columnWidthLocation===rF.Pivot?t=m?void 0:f:i.columnWidthLocation===rF.Dimension&&({columnWidth:t}=i);let r=0;if(i.isLeftDimension)if(i.id===QW)r=v();else{const e=y(s),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:i,dimensionInfoIndex:a}=e,s=n.getDimensionInfo(a);if(wV(s))return lT.PixelsDefault;const u=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return xV+l(r)+u})(i,s);r=Math.max(e,t),m&&!g&&s+1===p&&i.columnWidthLocation===rF.Dimension&&a.size.x>1&&(r=e)}else r=y(s),i.columnWidthLocation===rF.Measures&&(r=v(r));m&&1===a.size.x&&(t=n.indentModeColumnWidth),u=m&&!g&&a.size.x>1?r:MV(e,t,r)}else u=m?Math.min(t,r):r;return b+=u,u}));return m&&a.size.x>1?qV({layoutService:n,effectivePropertiesService:o,headersData:a,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:s,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:u,translator:i}):{leftGridWidth:Math.min(t,b),leftGridColumnWidths:S,leftGridFullWidth:b}}),[e,a,n,t,s,c,l,u,i,o]),[p,h]=m(d);gz((()=>{h(d())}),[d]);const g=f(((e,t)=>{h(d(e,t))}),[d]);return{...p,overrideLeftGridWidth:g}}function _V({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=YW(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=vV(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:s}},size:l,visibleMeasureInfo:u}=o,{estimateWidth:c,measureText:d}=pz(n.measureValues),{estimateWidth:p}=pz({...n.dimensionValues,fontWeight:EV(n.dimensionValues.fontWeight)}),h=e-r-1,m=i.at(-1),g=m===ZW,y=s.length-a>i.length?21:0,b=v((()=>{const e=g?u:[m],t=l.x/e.length,r=[],n=[];let o=h;const i=(e,n)=>{r[e]=Math.min(lT.PixelsMax,Math.max(lT.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(e?.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:s,qFallbackTitle:l}=e;switch(r){case uT.Pixels:i(t,DV(o));break;case uT.Percentage:i(t,PV(a,h));break;case uT.FitToContent:i(t,((e,t,r)=>r?lT.PixelsDefault:xV+(g?Math.max(c(e),d(t)):Math.max(Math.max(...u.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+y)))(s,l,wV(e)));break;case uT.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(lT.AutoMinPivot,i)}))}return r}),[g,u,m,l.x,h,c,d,p,y]),x=v((()=>{if(g){return u.reduce(((e,t,r)=>e+b[r]),0)/u.length}return b[0]}),[g,b,u]),S=parseFloat((t/o.size.x).toFixed(12)),w=f((e=>(g&&void 0!==e?b[o.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S),[g,b,o,x,S]),C=l.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,h),getRightGridColumnWidth:w}}const jV=`scrollable-container--${oF.TopGrid}`,NV=`scrollable-container--${oF.LeftGrid}`,FV=`scrollable-container--${oF.DataGrid}`,zV=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},WV=(e,t)=>e>t?iF.Forward:e<t?iF.Backward:iF.None,$V=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{const{direction:s}=$W();d((()=>{const{headerGridWrapperElement:l,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=n(),p=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,i(e),o?.(e)},f=e=>{const t=e.target;l.scrollTop=t.scrollTop,i(e),o?.(e)},h=n=>{const a=n.target,l=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(a,s);r.current?.scrollTo({scrollLeft:l,scrollTop:a.scrollTop}),u.scrollLeft=l,e.current?.forEach((e=>{e?.scrollTo(l)})),c.scrollTop=d.scrollTop,t.current?.forEach((e=>{e?.scrollTo(a.scrollTop)})),i(n),o?.(n)};return c.addEventListener("scroll",p),u.addEventListener("scroll",f),d.addEventListener("scroll",h),a.scroll||setTimeout((()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}),0),()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}}),[i,o,a,e,t,r,n,s])},VV=()=>{const{interactions:e}=BW(),t=l(null),r=l(null),n=l(null),o=l(null),i=l([]),a=l([]),s=l(null),{scrollbarsDimensions:{verticalScrollbarWidth:u,horizontalScrollbarHeight:c},resetHorizontalScrollbarHeight:p}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=m(0),[i,a]=m(0);return g((()=>{(e.current||r.current)&&o(Math.max(zV(e.current).width,zV(r.current).width))})),g((()=>{(t.current||r.current)&&a(Math.max(zV(t.current).height,zV(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>{a(0)}}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:s}=$W(),{downloadService:l,viewService:u,layoutService:c}=YW(),d=f((()=>{const o={left:0,top:0};e.current?.scrollTo(o),t.current?.scrollTo(o),r.current?.scrollTo(o),n.current?.scrollTo(o)}),[e,t,r,n]);g((()=>{d()}),[s.page,d]),g((()=>{c.triggerdByExpandOrCollapse||d()}),[c,d]),g((()=>{if(c.triggerdByExpandOrCollapse){const e=n.current?.scrollLeft??0,t=n.current?.scrollTop??0;i.current?.forEach((e=>{e?.scrollTo(t)})),o.current?.forEach((t=>{t?.scrollTo(e)})),a.current?.scrollTo({scrollTop:t,scrollLeft:e})}}),[c,n,a,i,o]),g((()=>{(l.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,l,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s}});const{trackScrollDirection:h,scrollDirectionRefs:{verticalScrollDirection:v,horizontalScrollDirection:y}}=(()=>{const e=l(iF.None),t=l(iF.None),r=l({prevScrollTop:0,prevScrollLeft:0}),n=f((n=>{if(n instanceof WheelEvent&&(e.current=WV(n.deltaY,0),t.current=WV(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=WV(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=WV(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]);return{trackScrollDirection:n,scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),b=(()=>{const{viewService:e}=YW();return f((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===NV&&(e.leftGridScrollLeft=n.scrollLeft),o===FV&&(e.scrollLeft=n.scrollLeft),o===jV&&(e.topGridScrollTop=n.scrollTop),o!==NV&&o!==FV||(e.scrollTop=n.scrollTop)}),[e])})(),x={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s},getWrapperElements:f((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:o.current})),[t,r,n,o]),updateViewService:b,trackScrollDirection:h,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{d((()=>{const{headerGridWrapperElement:o,topGridWrapperElement:s,leftGridWrapperElement:l,dataGridWrapperElement:u}=n(),c=e=>{o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,l.scrollLeft=o.scrollLeft,s.scrollTop=o.scrollTop,i(e)},d=e=>{l.scrollTop+=e.deltaY,t.current?.forEach((e=>{e?.scrollTo(l.scrollTop)})),o.scrollLeft+=e.deltaX,l.scrollLeft=o.scrollLeft,u.scrollTop=l.scrollTop,r.current?.scrollTo({scrollTop:l.scrollTop}),i(e)},p=t=>{s.scrollLeft+=t.deltaX,e.current?.forEach((e=>{e?.scrollTo(s.scrollLeft)})),o.scrollTop+=t.deltaY,s.scrollTop=o.scrollTop,u.scrollLeft=s.scrollLeft,r.current?.scrollTo({scrollLeft:s.scrollLeft}),i(t)},f=n=>{u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,r.current?.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),s.scrollLeft=u.scrollLeft,e.current?.forEach((e=>{e?.scrollTo(u.scrollLeft)})),l.scrollTop=u.scrollTop,t.current?.forEach((e=>{e?.scrollTo(u.scrollTop)})),i(n)};return o.addEventListener("wheel",c),l.addEventListener("wheel",d),s.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout((()=>{o.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{o.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[i,o,a,e,t,r,n])})(x),$V(x),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s},scrollDirectionRefs:{verticalScrollDirection:v,horizontalScrollDirection:y},scrollbarsDimensions:{verticalScrollbarWidth:u,horizontalScrollbarHeight:c,resetHorizontalScrollbarHeight:p}}},HV=()=>{const{layoutService:e}=YW(),{rect:t,pageInfo:r}=$W();return v((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},BV=({children:e,style:t})=>ii.jsx("div",{"data-testid":"fullSize",style:t,children:e}),GV=({children:e,style:t})=>{const{direction:r}=$W();return ii.jsx("div",{"data-section-id":"GRID",style:{direction:r,display:"grid",...t},children:e})},UV=e=>e&&`scrollable-container--${e}`,YV=({children:e,style:t,origin:r},n)=>{const{interactions:o}=BW(),i=o.scroll?t:{overflow:"hidden"};return ii.jsx("div",{"data-testid":"scrollable","data-key":UV(r),style:i,ref:n,children:e})};var KV=r.forwardRef(YV);const XV=({children:e,style:t})=>{const{direction:r}=$W();return ii.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===r?"right":"left"]:0,...t},children:e})};function JV(){return JV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},JV.apply(null,arguments)}function ZV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QV(e,t){return QV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QV(e,t)}function eH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,QV(e,t)}var tH=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function rH(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||tH(n)&&tH(o)))return!1;var n,o;return!0}function nH(e,t){var r;void 0===t&&(t=rH);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function oH(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var iH="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function aH(e){cancelAnimationFrame(e.id)}function sH(e,t){var r=iH();var n={id:requestAnimationFrame((function o(){iH()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var lH=-1;function uH(e){if(void 0===e&&(e=!1),-1===lH||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),lH=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return lH}var cH=null;function dH(e){if(void 0===e&&(e=!1),null===cH||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?cH="positive-descending":(t.scrollLeft=1,cH=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),cH}return cH}var pH=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function fH(e){var t,r=e.getColumnOffset,o=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,s=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,ZV(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:ZV(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=nH((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=nH((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,i=n.props,s=i.columnWidth,l=i.direction,u=i.rowHeight,c=n._getItemStyleCache(g&&s,g&&l,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))o=c[f];else{var h=r(n.props,t,n._instanceProps),m="rtl"===l;c[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:a(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=nH((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(dH()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&aH(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=sH(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}eH(t,e),t.getDerivedStateFromProps=function(e,t){return hH(e,t),v(e),null};var y=t.prototype;return y.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},y.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=uH();void 0!==n&&(n=Math.max(0,Math.min(n,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var y=s(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>f?v:0,x=y>d?v:0;this.scrollTo({scrollLeft:void 0!==n?u(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,b):g})},y.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},y.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(dH()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&aH(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,r=e.className,o=e.columnCount,i=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?pH:f,m=e.outerElementType,g=e.outerTagName,v=e.rowCount,y=e.style,b=e.useIsScrolling,x=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),C=w[0],E=w[1],I=this._getVerticalRangeToRender(),D=I[0],P=I[1],M=[];if(o>0&&v)for(var R=D;R<=P;R++)for(var L=C;L<=E;L++)M.push(n(t,{columnIndex:L,data:p,isScrolling:b?S:void 0,key:h({columnIndex:L,data:p,rowIndex:R}),rowIndex:R,style:this._getItemStyle(R,L)}));var A=s(this.props,this._instanceProps),k=l(this.props,this._instanceProps);return n(m||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:JV({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},y)},n(c||d||"div",{children:M,ref:u,style:{height:A,pointerEvents:S?"none":void 0,width:k}}))},y._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,y=m.scrollTop,b=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,y,g,x,b)}},y._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,n=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||n||a||1;if(0===t||0===s)return[0,0,0,0];var f=o(this.props,d,this._instanceProps),h=i(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},y._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,u,this._instanceProps),p=h(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(C),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var hH=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},mH=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},gH=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},vH=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},yH=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?bH(e,t,r,i,0,n):xH(e,t,r,Math.max(0,i),n)},bH=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=vH(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},xH=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&vH(e,t,n,r).offset<o;)n+=a,a*=2;return bH(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},SH=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=vH(e,t,r,i),u="column"===e?gH(t,i):mH(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},wH=fH({getColumnOffset:function(e,t,r){return vH("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return yH("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=vH("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=vH("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:mH,getEstimatedTotalWidth:gH,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return SH("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return SH("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return vH("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return yH("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=vH("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=vH("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),CH=function(e,t){return e};function EH(e){var t,r=e.getItemOffset,o=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,ZV(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:ZV(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=nH((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=nH((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,s=o.itemSize,l=o.layout,u=n._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=nH((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(dH()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&aH(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=sH(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}eH(t,e),t.getDerivedStateFromProps=function(e,t){return IH(e,t),d(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?uH():0:l.scrollHeight>l.clientHeight?uH():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(dH()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&aH(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,r=e.className,i=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?CH:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,y=e.useIsScrolling,b=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===h,w=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],I=C[1],D=[];if(c>0)for(var P=E;P<=I;P++)D.push(n(t,{data:d,key:f(P,d),index:P,isScrolling:y?x:void 0,style:this._getItemStyle(P)}));var M=o(this.props,this._instanceProps);return n(m||g||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:JV({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},n(l||u||"div",{children:D,ref:s,style:{height:S?"100%":M,pointerEvents:x?"none":void 0,width:S?M:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var u=s(this.props,a,this._instanceProps),c=l(this.props,u,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(C),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var IH=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},DH=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},PH=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=DH(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},MH=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&DH(e,r,t).offset<n;)r+=i,i*=2;return PH(e,t,Math.min(r,o-1),Math.floor(r/2),n)},RH=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},LH=EH({getItemOffset:function(e,t,r){return DH(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:RH,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=DH(e,t,o),p=RH(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?PH(e,t,o,0,r):MH(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=DH(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=DH(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function AH(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var kH=["style"],OH=["style"];function qH(e,t){var r=e.style,n=oH(e,kH),o=t.style,i=oH(t,OH);return!AH(r,o)&&!AH(n,i)}const TH=10,_H=(e,t)=>e.current===iF.Backward?t:0,jH=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e.at(o);if(void 0===r||void 0===r.at(t))return!0}return!1},NH=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,FH=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],s=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(jH(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+s,qWidth:1,qHeight:n};void 0!==t&&NH(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},zH=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=n,u=r.current===iF.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return FH({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},WH=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:s,qHeight:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=e.size.x,l=_H(r,TH),u=Math.max(n-l,0);return{startLeft:u,endLeft:u+Math.min(i+TH,s-u),pageTop:o,qHeight:a}})(n,o,r),u=FH({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,...zH({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},$H=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},VH=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,HH=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],s=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if($H(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+s,qWidth:n,qHeight:1};void 0!==e&&VH(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},BH=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=_H(r,TH),l=Math.max(o-s,0);return{startTop:l,endTop:l+Math.min(a+TH,e.rowsOnCurrentPage-l),qLeft:n,qWidth:i}})(e,n,r),l=HH({startTop:o,endTop:i,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const n=r.current===iF.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=HH({startTop:n,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},GH=async(e,t,r,n,o,i,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==iF.None&&(p=BH({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==iF.None&&(f=WH({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===iF.None&&a.current===iF.None&&(p=HH({measureData:r,pageInfo:n,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},UH=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];r=s;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(GH,100),YH=AN(GH,75),KH=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),XH=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:s}=$W(),{styleService:{grid:{border:l,divider:u}}}=YW();return ii.jsx("div",{style:{...e,...FF,...VF(r,n,l,s,o),...BF({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:u})},"data-testid":"empty-cell","data-index":t})},JH=({children:e,verticalAlign:t,width:r,right:n,isLeftColumn:o})=>{const{layoutService:{isIndentModeEnabled:i}}=YW(),a=o&&i;return ii.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,...!a&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},ZH=e=>{const{type:t,imageSize:r}=e;return t!==KN.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"},QH=e=>"number"==typeof e&&!Number.isNaN(+e),eB=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,tB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})}))),rB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),nB=x(((e,t)=>ii.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[ii.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),ii.jsx("use",{fillRule:"evenodd"})]}))),oB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})}))),iB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})}))),aB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})}))),sB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M2 7.5h12v1H2z"})}))),lB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})}))),uB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),cB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})}))),dB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})}))),pB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),fB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})}))),hB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})}))),mB=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})}))),gB={m:pB,"ï":cB,R:x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})}))),S:fB,T:hB,U:mB,P:uB,Q:aB,"è":x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})}))),"¢":oB,"©":nB,"23F4":iB,2013:dB,"&":lB,add:tB,"minus-2":sB,dot:rB},vB=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&gB[t];return o&&ii.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:ii.jsx(o,{style:{height:e}})})},yB=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),bB=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},xB=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return s&&pj(e.localPaletteColors[t].color).blend(pj(s.color),s.t)},SB=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:yB(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:bB(n,t,r)})))),n},wB=(e,t,r,n)=>{const o=SB(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=xB(e,a,t);break}n=i}return r})(o,t);return a},CB=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!QH(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!QH(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},EB=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=CB(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!QH(t))return 0;let a=r&&QH(r)?Math.min(r,t):0;const s=n.sort(((e,t)=>e.value-t.value)),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},IB=e=>"flex-start"===e?"flex-end":"flex-start",DB=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=EB(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return bB(o,r.limitPaletteColorIndex,n);const a=yB(r.limitRange,t);return wB(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},PB=({representation:e,cellValue:t,textStyle:r})=>{const{styleService:n}=YW(),{theme:o}=BW(),{direction:i}=$W(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=DB(e,t,i,o),{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m}=n.measureValues,g={fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m},v=parseInt(d||LF,10),{iconKey:y,color:b,position:x}=c||{},S={display:"flex",paddingTop:2};return l?ii.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:r?.overflow,color:u?b:r?.color},children:["left"===x&&vB({size:v,iconKey:y,color:b,pvStyle:S}),ii.jsx("span",{style:{paddingTop:4,overflow:r?.overflow,textOverflow:r?.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===x&&vB({size:v,iconKey:y,color:b,pvStyle:S})]}):(S.paddingTop=5,vB({size:v,iconKey:y,color:b,pvStyle:S}))},MB=e=>!!e.target?.getAttribute("class")?.includes(sT),RB=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),o=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:n,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:o}=e,i=new Map(o);for(let e=r;e<=n;e++){const r=t(e);"N"===r?.ref.qType&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}},LB=e=>null!==e.target?.closest("[data-prevent-selection]"),AB=e=>"A"===e.target?.tagName,kB=({startIndex:e,getCellFromIndex:t,cell:r})=>({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(r.ref.qElemNo,r)},selectedField:{selectionCellType:r.selectionCellType,index:"L"===r.selectionCellType?r.x:r.y}}});const OB=u({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),qB=()=>h(OB),TB=({children:e,selections:t})=>{const r=function(e){const{updatePageInfo:t}=$W(),r=e.isActive(),[n,o]=c(RB,{engineSelectedCells:null,selectedField:null,activeSelection:null});d((()=>{const r=()=>{o({type:"clearSelections"})},n=()=>{r(),t({page:0})};return e.on("deactivated",r),e.on("canceled",r),e.on("confirmed",n),e.on("cleared",r),()=>{e.removeListener("deactivated",r),e.removeListener("canceled",r),e.removeListener("confirmed",n),e.removeListener("cleared",r)}}),[e,t]);const i=f((async()=>{if(!n.activeSelection)return;var t,r;1===n.activeSelection.clientSelectedCells.size&&(t=n.engineSelectedCells,(r=n.activeSelection).clientSelectedCells.forEach(((e,n)=>{t?.has(n)&&(r.clientSelectedCells.delete(n),t.delete(n))})));const i=new Map([...n.engineSelectedCells??new Map,...n.activeSelection.clientSelectedCells]);try{o({type:"mouseup",payload:{engineSelectedCells:i}}),await e.select({method:"selectPivotCells",params:[JW,Array.from(i,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),o({type:"mouseup",payload:{engineSelectedCells:n.engineSelectedCells}})}}),[n,e]);d((()=>{if(n.activeSelection)return document.addEventListener("mouseup",i),()=>{document.removeEventListener("mouseup",i)}}),[i,n.activeSelection]);const a=f(((e,t)=>r=>{const n=t(e);MB(r)||LB(r)||AB(r)||!(e=>1===e.buttons)(r)||!n||o(kB({startIndex:e,getCellFromIndex:t,cell:n}))}),[]),s=f((t=>async()=>{n.activeSelection&&(e.isActive()||await e.begin([JW]),o({type:"mouseover",payload:{index:t}}))}),[n.activeSelection,e]),l=f(((e,t)=>r=>{if("touch"!==r.pointerType)return;const n=t(e);MB(r)||LB(r)||AB(r)||!n||(o(kB({startIndex:e,getCellFromIndex:t,cell:n})),i())}),[i]),u=f((e=>!(!n.engineSelectedCells?.size&&!n.activeSelection?.clientSelectedCells.size||!n.selectedField||e.selectionCellType===n.selectedField.selectionCellType&&("L"===e.selectionCellType?n.selectedField.index===e.x:n.selectedField.index===e.y))),[n.activeSelection?.clientSelectedCells.size,n.engineSelectedCells?.size,n.selectedField]),p=f((e=>!u(e)&&(n.engineSelectedCells?.has(e.ref.qElemNo)||!!n.activeSelection?.clientSelectedCells.has(e.ref.qElemNo))),[u,n.activeSelection?.clientSelectedCells,n.engineSelectedCells]);return v((()=>({isSelected:p,isActive:r,isLocked:u,createMouseDownHandler:a,createMouseOverHandler:s,createPointerUpHandler:l})),[p,r,u,a,s,l])}(t);return ii.jsx(OB.Provider,{value:r,children:e})},_B=e=>"fill"===e.representation.imageSize,jB=(e,t)=>{let r=e.isLeftColumn?"flex-start":"center";return e.isLeftColumn&&_B(e)&&t&&(r="center"),e.representation.type!==KN.Image||_B(e)?r:e.representation.resolvedImagePosition?.vertical};var NB=function(e){return e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration",e}(NB||{});const FB={brighter:.5,darker:.3,opacity:.03},zB=(e,{cell:t,styleService:r})=>{if(e===NB.Background||e===NB.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},WB=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=zB(NB.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?zB(NB.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${bF(i=o,FB)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},$B=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:zB(NB.Color,{cell:e,styleService:t}),VB=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=zB(NB.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?kF:o},HB=({cell:e,styleService:t})=>zB(NB.FontStyle,{cell:e,styleService:t}),BB=({cell:e,styleService:t})=>zB(NB.TextDecoration,{cell:e,styleService:t}),GB=e=>e?"pointer":"default",UB=({expandOrCollapse:e,cell:t})=>r=>{e?.(t.y,t.x),r.stopPropagation()},YB=(e,t)=>{if(!e.isLeftColumn||e.representation.type===KN.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},KB=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n,layoutService:o}=YW(),{interactions:i}=BW(),{isActive:a}=qB(),{dataModel:s}=vV();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!s,u=$B({cell:e,styleService:n,isCellSelected:r}),c=a?.4:1,d=e.ref.qCanExpand?Qz:Zz;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=CV({isLeftColumn:t,layoutService:o,representation:e.representation});return ii.jsx(d,{opacity:c,color:u,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",position:"sticky",top:0,...YB(e,n),...f&&{alignSelf:jB(e)}},onClick:l?void 0:UB({cell:e,expandOrCollapse:p})})},XB=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},JB=(e,t,r)=>{if("alwaysFit"===e&&t&&!r)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return r?"unset":"100%";default:return"100%"}},ZB=(e,t)=>{if("alwaysFit"===e)switch(t?.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},QB=({representation:e,canExpandOrCollapse:t,leafCount:r,isLeftColumn:n,styleService:o,layoutService:i,isMeasureCell:a})=>{const{isIndentModeEnabled:s}=i,l=CV({isLeftColumn:n,layoutService:i,representation:e}),u=t?21:0,c=e.imageBox?.width??24;let d=`calc(100% - ${u}px)`,p=o.headerCellHeight;n&&l&&(d=c),(a||n)&&(p=o.contentCellHeight);let f=p;switch(n&&void 0!==r&&!s&&(f=p*Math.max(r,1)),e.imageSize){case"originalSize":return{maxWidth:d,maxHeight:f,...l?{width:d}:{}};case"fitWidth":return{width:d,maxHeight:f};case"fitHeight":return{height:f,maxWidth:d,...l?{width:d}:{}};case"fill":return{height:f,width:d};default:return{width:d,height:p}}},eG=e=>{if("alwaysFit"===e)return"contain"},tG=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),rG=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:r,isMeasureCell:n})=>({width:JB(e,r,n),height:XB(e),objectFit:eG(e),objectPosition:ZB(e,t),...r&&"alwaysFit"===e?{"max-width":"100%"}:{}}),nG=({representation:e,textStyle:t,isMeasureCell:r})=>{const{imageRef:n,onLoad:o}=(()=>{const{downloadService:e}=YW(),t=l(null),{promise:r,resolve:n}=v((()=>ez()),[]);return d((()=>(e.isDownloadedAsPDForImage&&(e.waitForPromise(r),t.current?.complete&&n()),()=>{n()})),[t,e,r,n]),{onLoad:f((()=>{n()}),[n]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:i}}=YW(),{url:a,text:s,imageSize:u,resolvedImagePosition:c}=e,{overflow:p,...h}=t;return ii.jsx("img",{src:a,alt:s,style:{...rG({imageSize:u,resolvedImagePosition:c,isImagesInIndentModeEnabled:i,isMeasureCell:r}),...h},onLoad:o,ref:n})},oG=({representation:e,textStyle:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o=!1,imageContainerHorizontalAlignment:i,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=YW(),{resolvedImagePosition:u}=e;return ii.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:u?.vertical,alignItems:i,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...QB({representation:e,canExpandOrCollapse:r,leafCount:n,styleService:s,layoutService:l,isLeftColumn:o,isMeasureCell:a})},children:ii.jsx(nG,{representation:e,textStyle:t,isMeasureCell:!0})})},iG=(e,t,r)=>{if(e?.auto)return t;switch(e?.align){case"center":return"center";case"left":return"rtl"===r?"flex-end":"flex-start";case"right":return"rtl"===r?"flex-start":"flex-end";default:return t}},aG=(e,t)=>{let{textAlign:r}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:r}=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex)??{}),r?.auto||void 0===r?"left":r.align},sG={display:"flex",flexDirection:"row",alignItems:"center"},lG={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},uG=(e,t,r,n)=>t?{...lG,...e.nullValues}:r?{...sG,color:e.totalValues.color,background:n??e.totalValues.background}:{...sG,color:e.measureValues.color,background:n??e.measureValues.background},cG=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,s={...zF,...!r&&WF(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...s,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...s,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:l,fontStyle:u,textDecoration:c}=e.measureValues;return{...s,fontWeight:void 0===l?kF:l,fontStyle:u,textDecoration:c}},dG=({cell:e,representation:t,color:r,isTotalValueCell:n,cellHorizontalAlignment:o})=>{const{layoutService:i,styleService:a}=YW(),{isIndentModeEnabled:s}=i,l=e.isNull?i.getNullValueText():t.text,u=t.type===KN.Image,c=t.type===KN.Indicator,d=QH(eB(l)),p=cG(a,r,d,n,e.isNull);if(!s&&u&&!e.isNull||s&&u&&!e.isNull)return ii.jsx(oG,{isMeasureCell:!0,textStyle:p,representation:t,imageContainerHorizontalAlignment:o});const f=eB(e.isNull?t.text:e.ref.qNum);return c&&QH(f)?ii.jsx(PB,{representation:t,cellValue:f,textStyle:p}):ii.jsx("span",{style:{padding:4,direction:d?"ltr":void 0,...p},children:l})},pG=(e,t)=>e?.[t]?.visibleMeasureInfoIndex??0,fG="flex-start",hG=(e,t)=>e.isNull?fG:t.type===KN.Image&&"fill"!==t.imageSize?t.resolvedImagePosition?.vertical:fG,mG=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{env:o}=BW(),{pageInfo:i,direction:a}=$W(),{styleService:s,layoutService:l}=YW(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleLeftDimensionInfo:h,visibleTopDimensionInfo:m}}=vV(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=YW(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=vV(),i=n.length,a=o.length;return f(((n,o)=>!(!r.grid.at(a-1)?.[n]?.isTotal&&!t.grid.at(e?0:i-1)?.[o]?.isTotal)),[r,t,i,a,e])})(),v=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=vV(),r=t.length;return f((t=>{const n=e.grid.at(r-1)?.[t];return KH(n,e.totalDividerIndex)}),[e,r])})(),y=(()=>{const{layoutService:{isIndentModeEnabled:e}}=YW(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=vV(),n=r.length;return f((r=>{const o=e?0:n-1,i=t.grid.at(o)?.[r];return KH(i,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:b}=n,x=p.grid.at(m.length-1),S=d.grid.at(h.length-1),{background:w}=s.measureValues,C=c[t]?.[e],E=t===i.rowsOnCurrentPage-1,I=e===l.size.x-1;if(!C)return ii.jsx(XH,{style:{...r,background:w},isLastRow:E,isLastColumn:I,showLastBorder:b,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const D=l.hasPseudoDimOnLeft?pG(S,t):pG(x,e),P=l.visibleMeasureInfo[D],M=K$({cell:C.ref,representationProperties:P.representation,attrExprInfoIndex:u.measures[D],env:o,direction:a,conditionalColoring:P.conditionalColoring,enabledFeatures:{[KN.Image]:!0,[KN.Indicator]:!0}}),R=!C.isNull&&g(e,t),L=C.isNull?l.getNullValueText():M.text,A=!C.isNull||!Number.isNaN(+L),k=X$(u.measures[D],C.ref),O=((e,t,r,n,o)=>{const{textAlign:i}=t,a=n?"flex-end":"center";return e.isNull||r.type!==KN.Image?iG(i,a,o):r.resolvedImagePosition?.horizontal??"center"})(C,P,M,A,a),q={...uG(s,C.isNull,R,k.background),...VF(E,I,s.grid.border,a,b),...BF({bottomDivider:y(t),rightDivider:v(e),borderColor:s.grid.divider}),...FF,padding:"0px 4px",display:"flex",justifyContent:O};return ii.jsx("div",{className:iT,title:L,style:{...q,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:ii.jsx(JH,{width:ZH(M),verticalAlign:hG(C,M),children:ii.jsx(dG,{cell:C,representation:M,isTotalValueCell:R,color:k.color,cellHorizontalAlignment:O})})})};var gG=r.memo(mG,qH);const vG=(e,t)=>t.list[e]?.id??e.toString(),yG=({columnIndex:e,rowIndex:t,data:r})=>r.grid[t]?.[e]?.id??`${t}-${e}`,bG=e=>({...NF,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),xG=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:u}=$W(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:p}}=YW(),{dataModel:h,gridSectionsData:{measureData:m}}=vV(),v={...bG(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},y=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=$W(),{downloadService:n,viewService:o,layoutService:i}=YW(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=vV(),c=s.columnCount,d=l.rowCount;return f((async({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=s,o.gridRowStartIndex=p,o.gridWidth=l-s+1,o.gridHeight=f-p+1;const h=o.gridWidth+c+(t.current===iF.None?0:TH),m=o.gridHeight+d+(e.current===iF.None?0:TH);let g=UH;m*h>1500&&(g=YH),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:s});return gz((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,h,m]),g((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,p,u]),0===c.size.x?null:ii.jsx(wH,{"data-section-id":"DATA_GRID",ref:e,style:v,columnCount:c.size.x,columnWidth:i,height:t,rowCount:l.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:o,grid:m},onItemsRendered:y,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:yG,direction:u,children:gG})};var SG=b(xG);const wG=x(((e,t)=>ii.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[ii.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),ii.jsx("use",{fillRule:"evenodd"})]}))),CG=e=>{const[t,r]=m(!1);return gz((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},EG=()=>{const[e,t]=m(!1),{dataModel:r}=vV(),{interactions:n}=BW(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=CG([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||MB(e)||o||t(!0)},setIsAdjustingWidth:i}};function IG(e,t){const r=t.expressionColor?.background??e.dimensionValues.background,n=t.isLeftColumn?e.header.background:r,o=n===TF.Transparent?gF.WHITE:n,i=pj(e.grid.border),a=pj(o);return a.isInvalid()||i.isInvalid()||1===i.a?e.grid.border:function(e,t,r){return pj(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(a,i,i.a).getRGB()}const DG=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{const{direction:s}=$W(),{interactions:l,translator:u}=BW(),{isActive:c}=qB(),{dataModel:d}=vV(),{styleService:p}=YW(),[,f]=m({});if(!(e.canBeResized&&!!l.active&&!c))return null;const h=IG(p,e);return ii.jsx(wz,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{f({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{i?d.applyIndentModeColumnWidth({...t,pixels:Math.min((a??0)*SV,t.pixels??0)}):d.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:u,columnLabel:e.label??""},direction:s})},PG=fl(Qu,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),MG=fl("div",{shouldForwardProp:e=>!["direction"].includes(e)})((({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0}))),RG=fl("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...jF,justifyContent:e??jF.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),LG=fl("div")((()=>({...jF}))),AG=fl("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),kG=fl(hp)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),OG=fl(bp,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),qG=fl("span")({textOverflow:"ellipsis",overflow:"hidden"}),TG=fl("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:bV,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),_G=fl("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})((({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0})));let jG=function(e){return e.Expand="Expand",e.Collapse="Collapse",e}({});const NG=(e,t)=>({qExcludeList:t===jG.Expand,qPos:{qDimName:e,qElemNo:[]}}),FG=`${JW}/qExpansionState`,zG=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=t?.findIndex((t=>t.qPos?.qDimName===e));return{expansionData:NG(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:o}=t;try{let t,r=FG,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${FG}/-`,t=JSON.stringify(o)):(r=`${FG}/${n}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:r,qOp:i,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${n} dimension`})},WG=({model:e,effectivePropertiesService:t,cell:r})=>{if(void 0===r.qEffectiveDimensionName)return;const n={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:zG({...n,action:jG.Expand}),collapseCallback:zG({...n,action:jG.Collapse}),alwaysFullyExpanded:t.qAlwaysFullyExpanded}},$G={[sW.Sorting]:!0,[sW.Selections]:!0,[sW.Searching]:!0},VG=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:s,overrideLeftGridWidth:u,shouldApplyIndentModeColumnWidth:c,tableWidth:d})=>{const p=l(null),{styleService:f,layoutService:h,effectivePropertiesService:m}=YW(),{app:g,interactions:v,embed:y,translator:b,model:x}=BW(),{fontSize:S,fontFamily:w,fontStyle:C,fontWeight:E,textDecoration:I,color:D,background:P,hoverBackground:M,activeBackground:R}=f.header,L=l(null),{shouldShowLockIcon:A,shouldShowMenuIcon:k}=a,{open:O,setOpen:q,handleOpenMenu:T,setIsAdjustingWidth:_}=EG(),{direction:j}=$W(),N={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},F={embed:y,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?m.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},z={app:g,qStateName:h.layout.qStateName},{labelTextAlign:W}=h.getDimensionInfo(e.dimensionInfoIndex)??{},$=iG(W,"flex-start",j);return ii.jsxs(PG,{className:iT,title:e.label,interactions:v,background:O?R:P,hoverBackground:M,shouldShowMenuIcon:k,isDimension:e.isDim,style:{...t,...FF,...HF(e,o,r,n,f.grid.border,j),color:D},"data-testid":"title-cell",onClick:T,children:[ii.jsxs(RG,{children:[A?ii.jsx(LG,{children:ii.jsx(wG,{height:12})}):null,ii.jsx(AG,{fontFamily:w,fontSize:S,fontStyle:C,fontWeight:E,textDecoration:I,justifyContent:$,children:ii.jsx("span",{style:zF,children:e.label})})]}),e.isDim?ii.jsxs(ii.Fragment,{children:[ii.jsx(cW,{headerData:e,translator:b,anchorRef:L,open:O,setOpen:q,interactions:v,menuAvailabilityFlags:$G,sortRelatedArgs:N,searchRelatedArgs:F,selectionRelatedArgs:z,expandOrCollapseArgs:WG({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:k,model:x&&"setActiveField"in x?x:void 0,direction:j,isAccessibleHeader:!0}),ii.jsx(MG,{ref:p,direction:j}),ii.jsx(MG,{ref:L,direction:j})]}):null,ii.jsx(DG,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:n,overrideLeftGridWidth:u,setIsAdjustingWidth:_,shouldApplyIndentModeColumnWidth:c,tableWidth:d})]})},HG=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=YW(),{direction:n}=$W();return e>0&&t>0?ii.jsx("div",{style:{...NF,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===n?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null},BG=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}))),GG=x(((e,t)=>ii.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[ii.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),ii.jsx("use",{fillRule:"evenodd"})]}))),UG=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{direction:n}=$W(),{styleService:o}=YW(),{interactions:i,translator:a}=BW(),{isActive:s}=qB(),{dataModel:l}=vV(),{setIsAdjustingWidth:u}=CG([l]);if(!(!!i.active&&!s))return null;const c=IG(o,{isLeftColumn:!0});return ii.jsx(wz,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*SV))},confirmWidthCallback:n=>{if(n.type===uT.FitToContent)return void l.applyIndentModeColumnWidth({type:uT.Auto});const o=Math.min(n.pixels??t,e*SV);r(o),l.applyIndentModeColumnWidth({type:uT.Pixels,pixels:o})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:n})},YG=x(((e,t)=>ii.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ii.jsx("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}))),KG=({cell:e,changeSortOrder:t})=>{const r=l(null),n=l(null),{app:o,interactions:i,embed:a,translator:s,model:u}=BW(),{layoutService:c,effectivePropertiesService:d}=YW(),{open:p,setOpen:f,handleOpenMenu:h}=EG();return ii.jsxs(OG,{onClick:h,isActive:p,children:[ii.jsx(qG,{children:e.label}),ii.jsxs(TG,{className:"indent-mode-dropdown-more",visible:p,children:[ii.jsx(YG,{}),e.isDim?ii.jsxs(ii.Fragment,{children:[ii.jsx(cW,{headerData:e,translator:s,anchorRef:r,open:p,setOpen:f,interactions:i,menuAvailabilityFlags:$G,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:c.layout.qStateName},expandOrCollapseArgs:WG({model:u,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:u&&"setActiveField"in u?u:void 0}),ii.jsx(MG,{ref:n}),ii.jsx(MG,{ref:r})]}):null]})]})},XG=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{const o=r.at(-1)?.id===QW,i=e+1<r.length&&r[e+1]?.id===QW;return!(n&&o&&i)&&(t?.id!==QW&&e<r.length-1)},JG=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=YW(),{interactions:a,translator:s}=BW(),{dataModel:u,gridSectionsData:{headersData:c}}=vV(),[d,p]=m(!1),f=l(null),{headerCellHeight:h}=i,{color:g,background:v,hoverBackground:y,activeBackground:b,fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E}=i.header,{isAdjustingWidth:I}=CG([u]),D=e=>{e.stopPropagation()},P={height:h,gridColumn:`1 / span ${c.size.x}`,gridRow:c.size.y,zIndex:c.size.x-0};return ii.jsxs(PG,{isDimension:!0,background:d?b:v,interactions:a,hoverBackground:y,style:{...P,...FF,color:g},onClick:e=>{!a.active||MB(e)||I||p(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[ii.jsxs(RG,{justifyContent:"flex-start",children:[ii.jsx(AG,{fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E,justifyContent:"flex-start",children:ii.jsx("span",{style:zF,children:s.get("SNPivotTable.IndentMode.Rows")})}),d?ii.jsx(GG,{}):ii.jsx(BG,{}),ii.jsx(MG,{ref:f})]}),ii.jsx(kG,{open:d,anchorEl:f.current,disableEnforceFocus:!0,children:e.map(((r,n)=>[r&&r.id!==QW&&ii.jsx("li",{role:"presentation",onClick:D,onKeyDown:D,children:ii.jsx(KG,{cell:r,changeSortOrder:t})}),XG({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===c.size.y})&&ii.jsx(Pz,{"data-testid":"group-divider",variant:"middle"})]))}),ii.jsx(UG,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},ZG=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,QG={display:"grid",width:"fit-content"},eU=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=YW(),{gridSectionsData:{headersData:u}}=vV();return ii.jsxs("div",{"data-testid":"HEADER_GRID",style:{...QG,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&ii.jsx(HG,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(ZG({layoutService:l,headersData:u,topRowIndex:c})){const r=a.at(0);return Array.isArray(r)&&d.push(ii.jsx(JG,{menuItems:r,changeSortOrder:o,overrideLeftGridWidth:s,leftGridWidth:t,tableWidth:e},r.at(0)?.id)),d}return d=a.reduce(((t,a,d)=>{if(a&&!Array.isArray(a)){const p=i(d,a.isLocked,a.label),f=l.isIndentModeEnabled&&1===u.size.x;t.push(ii.jsx(VG,{style:{width:r[d],height:n,gridColumn:l.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var tU=b(eU);const rU=(e,t,r,n)=>{const{layoutService:o}=YW();g((()=>{e.current?.forEach((e=>e?.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},nU=(e,t)=>{gz((()=>{e.current?.forEach((e=>e?.resetAfterIndex(0,!1)))}),[e,t])},oU=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},iU=(e,t,r,n,o)=>{if(o)return;const i=e.representation,a=CV({isLeftColumn:r,layoutService:t,representation:i}),s=r?"flex-start":"center",l=e.representation.resolvedImagePosition?.horizontal;if(e.representation.type===KN.Image)return a&&l&&"center"!==l&&"rtl"===n?IB(l):l??s;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){const{labelTextAlign:r}=t.visibleMeasureInfo[e.visibleMeasureInfoIndex]??{};return iG(r,s,n)}const{textAlign:u}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return iG(u,s,n)},aU=()=>{},sU=({children:e,reactWindowStyle:t,cell:r,data:n,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:s,isCellSelected:l,isAdjustingWidth:u,index:c})=>{const{styleService:d,layoutService:p}=YW(),{interactions:f}=BW(),{direction:h}=$W(),{isLocked:m,createMouseDownHandler:g,createMouseOverHandler:v,createPointerUpHandler:y}=qB(),{showLastBorder:b}=n,x=m(r)||r.isLockedByDimension,S=!(x||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||u),w=S?g(c,(e=>oU(e,n))):void 0,C=S?v(c):void 0,E=S?y(c,(e=>oU(e,n))):void 0,I=CV({isLeftColumn:s,layoutService:p,representation:r.representation});return ii.jsx("div",{className:iT,title:f.passive?r.representation.text:void 0,style:{...t,...VF(i,a,d.grid.border,h,b),...BF({bottomDivider:o&&s,rightDivider:o&&!s,borderColor:d.grid.divider}),...FF,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:GB(S),background:WB({styleService:d,isCellSelected:l,cell:r,isCellLocked:x}),zIndex:s?void 0:p.size.x-r.x,justifyContent:iU(r,p,s,h,I),display:"flex",...p.isIndentModeEnabled&&s&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(r.indentLevel??0))},textAlign:aG(r,p)},"aria-hidden":"true",onMouseDown:w,onMouseOver:C,onPointerUp:E,onKeyUp:aU,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,"data-dimension-info-index":r.dimensionInfoIndex,children:e})},lU=e=>{e.stopPropagation()},uU=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:lU,color:gF.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),cU=({href:e,text:t,interactions:r,color:n})=>ii.jsx(bd,{...uU({href:e,text:t,interactions:r,color:n}),children:t}),dU=Y();dU.use(U),dU.renderer.prio(["canvas"]);const pU=(e,t)=>e&&"center"!==e&&"rtl"===t?IB(e):e,fU=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{const{imageBox:o}=t,{styleService:{grid:{lineClamp:i}}}=YW(),{direction:a}=$W();return ii.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${o?.width??24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[ii.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:jB(e),alignItems:pU(n,a),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:o?.width??24,height:"100%"},children:ii.jsx(nG,{representation:t,textStyle:r})}),ii.jsx(_G,{padding:4/(i<=2?2:1),alignSelf:jB(e,!0),children:!!t.labelStructure&&tG(t.labelStructure)})]})},hU=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,mU=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>ii.jsxs("span",{children:[ii.jsx(bd,{...uU({href:e,text:t,interactions:n,color:o}),children:r?.maskedValue?r.maskedValue:r?.originalValue}),!!r&&hU(r)]}),gU=({children:e,textStyle:t,shouldEnableStickyText:r})=>ii.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...r&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),vU=({isLeftColumn:e,styleService:t,cell:r,isIndentModeEnabled:n})=>e?n?t.grid.lineClamp:Math.max(t.grid.lineClamp,r.leafCount*t.grid.lineClamp):t.grid.columnLineClamp,yU=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{direction:n}=$W(),{isActive:o}=qB(),{layoutService:i,styleService:a}=YW(),{interactions:s}=BW(),l=r&&i.isIndentModeEnabled;let u=r&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const c=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n,isIndentModeEnabled:o})=>({...zF,...WF(vU({cell:e,isLeftColumn:n,styleService:t,isIndentModeEnabled:o})),color:$B({cell:e,styleService:t,isCellSelected:r}),fontWeight:VB({cell:e,styleService:t}),fontStyle:HB({cell:e,styleService:t}),textDecoration:BB({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:r,isIndentModeEnabled:i.isIndentModeEnabled});if(e.representation.type===KN.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=r&&t&&t.suffix?fU:oG;return ii.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:iU(e,i,r,n)})}if(e.representation.type===KN.Link&&!o&&!e.isTotal){const t=r&&e.representation.labelStructure?mU:cU;u=ii.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return ii.jsx(gU,{shouldEnableStickyText:l,textStyle:{...c,...e.representation.type===KN.Image&&e.isNull?{alignSelf:jB(e)}:{}},children:u})},bU=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=YW(),{isSelected:i}=qB(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=CG([r]),f=oU(e,r),h=a?e===l-1:u,m=a?u:e===l-1,g=KH(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return ii.jsx(XH,{style:{...t,background:r},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const v=i(f);return ii.jsxs(sU,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:v,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[ii.jsxs(JH,{verticalAlign:jB(f),width:ZH(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[ii.jsx(KB,{isLeftColumn:a,isCellSelected:v,cell:f}),ii.jsx(yU,{isLeftColumn:a,isCellSelected:v,cell:f})]}),ii.jsx(DG,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?rF.Measures:rF.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var xU=r.memo(bU,qH);const SU=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{const i=r?e[o]:t.at(o);return i&&0===o&&i.x>0?(i.leafCount+i.x+i.distanceToNextCell)*n():!r&&i?(i.leafCount+i.distanceToNextCell)*n():n(i?.x??o)},wU=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},CU=(e,t)=>r=>{e.current&&(e.current[t]=r)},EU={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...NF},IU={overflow:"hidden",willChange:"auto",flexShrink:0},DU=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i,direction:a}=$W(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=YW(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=vV();nU(e,d),rU(e,t,r,l);const f=i.rowsOnCurrentPage*l,h={...EU,borderColor:u,width:n.reduce(((e,t)=>e+t),0)};return ii.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map(((t,u)=>{const h=u===d.columnCount-1,m=e$(p[u]),{itemCount:g,estimatedItemSize:v,listValues:y}=wU(t,f,i.rowsOnCurrentPage,h),b=s.isIndentModeEnabled?()=>l:((e,t,r,n,o)=>i=>{const a=n?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,y,l,h,c.qcy);return ii.jsx(LH,{ref:CU(e,u),style:{...IU,flexGrow:h?1:0,direction:a},height:r,width:n[u],itemCount:g,itemSize:b,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:o,listValues:y,totalDividerIndex:d.totalDividerIndex},itemKey:vG,estimatedItemSize:v,children:xU},m)}))})};var PU=b(DU);const MU={overflow:"hidden",willChange:"auto"},RU=e=>({...NF,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),LU=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=$W(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=YW(),{gridSectionsData:{headersData:c,topDimensionData:d}}=vV(),p={...RU(a),borderColor:l,height:n};nU(e,d),rU(e,r,n,u);const f=s.size.x*i();return 0===d.rowCount?ii.jsx("div",{style:{width:r,height:n,...RU(a)}}):ii.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map(((n,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=wU(n,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:r})=>{const n=t.data.at(r);if(void 0===n)return;const o=t.size.x-1,i=ZG({layoutService:e,headersData:t,topRowIndex:r})?0:o,a=n.at(i),s=Array.isArray(a)?a.at(o):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),v=g?e$(g):`empty ${l}`;return ii.jsx(LH,{ref:CU(e,l),style:MU,height:t(),width:r,itemCount:p,itemSize:SU({list:n,listValues:m,isLastRow:u,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:u,itemCount:p,showLastBorder:o,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:vG,estimatedItemSize:h,direction:a,children:xU},v)}))})};var AU=b(LU);const kU=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=YW(),r=HV(),n=(()=>{const{model:e}=BW(),t=f((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:s},gridRefs:{topGridRef:l,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:h},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:v}}=VV(),{leftGridWidth:y,leftGridFullWidth:b,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:w,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:E,overrideLeftGridWidth:I}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=YW(),{gridSectionsData:{headersData:i}}=vV(),{measureText:a}=pz(o.header),s=TV({tableWidth:e}),l=_V({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),u=s.leftGridWidth+l.rightGridFullWidth+1<e,c=f(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const l=s.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+xV;return t&&d+bV<=l&&(c=!0,d+=bV),d+bV<=l&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[s.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return d((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=l.rightGridWidth===l.rightGridFullWidth;e&&t&&r()}),[r,s.leftGridWidth,s.leftGridFullWidth,l.rightGridWidth,l.rightGridFullWidth]),{...s,...l,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:v}),{gridScaffoldDimensions:D,headerGridDims:P,topGridDims:M,leftGridDims:R,dataGridDims:L,metadata:{everyThingFitsInTableRectHeight:A,scrollbarsVisibilityStatus:k}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const s=HV(),{pageInfo:l}=$W(),{gridSectionsData:{headersData:u,topDimensionData:c}}=vV(),d=Math.min(s.height*SV,Math.max(s.height*SV-25,s.height-t-a)),p=s.width*SV,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,v=Math.min(p,r),y=s.width-p,b=Math.max(y,s.width-v),x=Math.min(d,m,g),{availableHeight:S,everyThingFitsInTableRectHeight:w,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=s.width,o=e+1+f+a,l=o-s.height<a||o<=s.height;return{availableHeight:l?o:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:n}})(x,v,b),E=S-d,I=Math.max(E,S-x),D=Math.min(I,f),P=Math.min(I,f),M=m+1+f,{visibilityStatus:R,metadata:{hasLeftGridOverflowX:L,hasDataGridOverflowX:A}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>n,c=i>t,d=a>r,p=l>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:v,rightSectionWidth:b},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:I}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:M-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${v}px ${b}px`,gridTemplateRows:`${x}px ${I}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(A?i:0),height:g},stickyWrapper:{width:b-1-i,height:-1},self:{width:Math.min(o,b)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:v,height:M-g+(!L&&A?a:0)},stickyWrapper:{width:v,height:I-1-a},self:{width:v,height:Math.max(t,D-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(A?i:0),height:M-g+(!A&&L?a:0)},stickyWrapper:{width:b-1-i,height:I-1-a},self:{width:Math.min(o,b)-(C?1:0)-i,height:Math.max(t,P-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:R}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:y,leftGridOriginalWidth:b,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),O=f((()=>e),[e]),q=f((()=>t),[t]);return(()=>{const{downloadService:e}=YW();d((()=>{e.notifyIsDoneRendering()}))})(),ii.jsxs(GV,{style:D,children:[ii.jsx("div",{style:{overflow:"hidden"},ref:o,children:ii.jsx(tU,{tableWidth:r.width,leftGridWidth:y,columnWidths:x,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:P.height,changeSortOrder:n,overrideLeftGridWidth:I})}),ii.jsx(KV,{style:k.topGrid,origin:oF.TopGrid,ref:i,children:ii.jsx(BV,{style:M.fullSizeWrapper,children:ii.jsx(XV,{style:M.stickyWrapper,children:ii.jsx(AU,{topGridRef:l,rowHightCallback:O,...M.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:C})})})}),ii.jsx(KV,{style:k.leftGrid,origin:oF.LeftGrid,ref:a,children:ii.jsx(BV,{style:R.fullSizeWrapper,children:ii.jsx(XV,{style:R.stickyWrapper,children:ii.jsx(PU,{leftGridRef:u,...R.self,columnWidths:x,showLastBorder:{right:!1,bottom:A}})})})}),ii.jsx(KV,{style:k.dataGrid,origin:oF.DataGrid,ref:s,children:ii.jsx(BV,{style:L.fullSizeWrapper,children:ii.jsx(XV,{style:L.stickyWrapper,children:ii.jsx(SG,{dataGridRef:c,rowHightCallback:q,...L.self,showLastBorder:{right:w,bottom:A},getRightGridColumnWidth:C,verticalScrollDirection:p,horizontalScrollDirection:h})})})})]})},OU=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=BW(),{pageInfo:o,updatePageInfo:i,rect:a}=$W(),{layoutService:s}=YW(),{layout:l,hasData:u}=s;return ii.jsxs(ii.Fragment,{children:[u?ii.jsx(kU,{}):null,ii.jsx(XW,{}),ii.jsx(zW,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:l})]})};const qU=(e,{selections:t,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){const t=OS();return t?.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Ls({...t,direction:e})}(n.direction);e.render(ii.jsx(r.StrictMode,{children:ii.jsx(ml,{theme:a,children:ii.jsx(GW,{...i,children:ii.jsx(VW,{...n,children:ii.jsx(TB,{selections:t,children:ii.jsx(KW,{...o,children:ii.jsx(yV,{children:ii.jsx(OU,{})})})})})})})}))};var TU=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider",e}(TU||{}),_U=function(e){return e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2",e}(_U||{}),jU=function(e){return e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value",e}(jU||{}),NU=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor",e}(NU||{});const FU=e=>e?`${parseInt(e,10)}px`:void 0,zU=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?TF.Transparent:r}},WU=(e,t)=>+(parseInt(e,10)*qF*t+8).toFixed(2),$U=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?kF:"normal",VU=e=>e?.some((e=>"italic"===e))?"italic":"normal",HU=e=>e?.some((e=>"underline"===e))?"underline":"none",BU=document.createElement("textarea");function GU(e){BU.value=e,document.body.appendChild(BU),BU.select(),BU.setSelectionRange(0,BU.value.length),document.execCommand("copy"),document.body.removeChild(BU)}BU.style.position="absolute",BU.style.left="-9999px",BU.setAttribute("readonly","");function UU(e){T?.(((t,r)=>{const n=r.target,o=n?.closest(`.${iT}`);o?.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{(e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{GU(t)})):GU(t))})(o)}}),e?.forEach((e=>{e(t,r,o)}))}))}const YU=({model:e,layoutService:t,effectivePropertiesService:r,translator:n})=>tz(((o,i,a)=>{if(!e||r.qAlwaysFullyExpanded)return;const s=e,l=o.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group",id:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const r=((e,t)=>{const r=e?.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(a,t);l.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(JW,0,0,!0),await e.expandLeft(JW,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[n??""]),tid:"expand-dimension",id:"expand-dimension",select:zG({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:jG.Expand})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(JW,0,0,!0),await e.collapseLeft(JW,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[n??""]),tid:"collapse-dimension",id:"collapse-dimension",select:zG({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:jG.Collapse})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n}))}),[e,t,r]),KU=(e,t)=>M((()=>(({layout:e})=>{const{qHyperCube:t,nullValueRepresentation:r,snapshotData:n}=e,{qNoOfLeftDims:o,qEffectiveInterColumnSortOrder:i,qMeasureInfo:a,qDimensionInfo:s}=t,l=!!n,u=n?.content?.rowsPerPage??15e3,c={x:Math.min(e.qHyperCube.qSize.qcx,OF),y:Math.min(e.qHyperCube.qSize.qcy,u)},d=i.slice(0,o),p=e=>d.some((t=>t===e)),f=p(ZW),h=new Map(i.map((e=>[s[e]??ZW,e]))),m=a.filter((e=>7005!==e.qError?.qErrorCode));return{layout:e,getNullValueText:()=>r?.text??"-",getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(f)return 0;const r=e%m.length;return t?r:a.findIndex((e=>e===m[r]))},getDimensionInfo:e=>e===ZW?void 0:s.at(e),getDimensionInfoIndex:e=>h.get(e)??-1,size:c,isSnapshot:l,hasLimitedData:!l&&c.x<e.qHyperCube.qSize.qcx,hasData:c.x>0&&c.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:f,leftDimensionInfoIndexes:d,isLeftDimension:p,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:m,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeColumnWidth:e.qHyperCube.indentModeColumnWidth??{type:uT.Auto,pixels:lT.PixelsDefault,percentage:lT.PercentageDefault},searchSortFromDimension:"inherit"===e.search?.sorting}})({layout:e})),[e,t]),XU=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=nz(e);return t.current=e,t})(dV(o));return uz((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=l.current;if(a)return i.snapshotData?.content?.qPivotDataPages??[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(s,r,o,u)||((e,t,r,n)=>{const{qHyperCube:{qPivotDataPages:o,qSize:i}}=e,{qTop:a,qWidth:s,qHeight:l}=o[0]?.qArea??{qTop:0,qWidth:0,qHeight:0};return a<t.page*t.rowsPerPage||s<Math.min(n,i.qcx)||l<Math.min(r,i.qcy)})(i,n,o,u))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,s=Math.min(a+n.rowsPerPage,r.qcy),l=Math.min(OF,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-o)),r>l&&(u=Math.max(0,l-i))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,i),qHeight:Math.min(s-c,o)}})(s,r,i.qHyperCube.qSize,n,o,u);return t?e.getHyperCubePivotData(JW,pV(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,l,s])},JU=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),ZU=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:JU({rowsPerPage:r,totalRowCount:e,page:t})}),QU=15,eY=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{const{freeResize:i}=R();return _((async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(n-QU,0),u=Math.max(s+o-QU,s,0),c=OF-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=dV(r);return{qLeft:l,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:l,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=pV(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(JW,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i})),j((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),e.layout.snapshotData?.content&&!i?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var tY={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const rY=()=>{const e=N(),t=e.language();return M((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(tY).forEach((t=>{e.add(tY[t])}))}(e)}),[e]),{translator:e,language:t}},nY=e=>{const{flags:t}=e,r=F(),n=(e=>{const t=M((()=>fz(e)),[e]);return k((()=>()=>{t.unmount()}),[t]),t})(r),o=z(),i=W(),a=$(),s=V(),l=H(),u=(()=>{const{viewState:e}=R(),t=nz(new Set),r=void 0!==window.qlikprinting,{promise:n,resolve:o}=M((()=>ez()),[]),i=tz((e=>{t.current.add(e)}),[t]),a=tz(AN((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return L((async()=>{await n}),[n]),M((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])})(),c=((e,t)=>{const[r]=uz((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]);return M((()=>{const e=void 0!==r?.qHyperCubeDef.qSortbyYValue&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),t=r?.qHyperCubeDef.qDimensions.map((e=>e.qDef?.qSortCriterias))??[];return{qAlwaysFullyExpanded:r?.qHyperCubeDef.qAlwaysFullyExpanded??!1,qExpansionState:r?.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:e,getSortCriteriaForDimension:e=>t[e]}}),[r])})(i,o),d=KU(o,t),p=(e=>{const t=q();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(d.isSnapshot),f=B(),h=lz(o,r),{translator:m,language:g}=rY(),{pageInfo:v,updatePageInfo:y}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>e.layout.snapshotData?.content?.rowsPerPage)(e),[a,s]=A((()=>{const a=((e,t)=>t.isDownloadedAsPDForImage?t.viewState?.renderPage??0:e.isSnapshot?e.layout.snapshotData?.content?.page??0:0)(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,...ZU(n.qcy,a,i)}})),l=e.layout.qHyperCube.qSize.qcy;return k((()=>{s((t=>({...t,...ZU(l,t.page,i),shouldShowPagination:l>e.size.y&&!o})))}),[l,e.size.y,s,o,i]),k((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=JU({...a,page:e});s({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:JU({...a,...e})})}}})(d,u),b=((e,t,r)=>M((()=>((e,t)=>{if(e.isDownloadedAsPDForImage){const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.scrollTop??0,scrollLeft:t?.scrollLeft??0,leftGridScrollLeft:t?.leftGridScrollLeft??0,topGridScrollTop:t?.topGridScrollTop??0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.content?.scrollTop??0,scrollLeft:t?.content?.scrollLeft??0,leftGridScrollLeft:t?.content?.leftGridScrollLeft??0,topGridScrollTop:t?.content?.topGridScrollTop??0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(v,o,u),x=eY({rect:G(),layoutService:d,viewService:b,model:i,pageInfo:v}),[S,w]=XU({model:i,layoutService:d,viewService:b,pageInfo:v,rect:x}),C=M((()=>((e,t)=>{const r=t.layout.components?.find((e=>"theme"===e.key)),n=r?.header,o=r?.dimensionValues,i=r?.measureValues,a=r?.measureLabels,s=r?.totalValues,l=r?.nullValues,u=r?.grid,c=(t,r,n)=>e.getStyle(t,r,n),d=+(u?.[TU.LineClamp]??c(_U.Grid,jU.Grid,NU.LineClamp)??1),p=+(u?.[TU.ColumnLineClamp]??c(_U.Grid,jU.Grid,NU.ColumnLineClamp)??1),f=zU(e,n?.[TU.Background])??c(_U.Dimension,jU.LabelName,NU.BackgroundColor)??TF.Transparent,h={header:{fontSize:FU(n?.[TU.FontSize])??c(_U.Dimension,jU.LabelName,NU.FontSize)??LF,fontFamily:n?.[TU.FontFamily]??c(_U.Dimension,jU.LabelName,NU.FontFamily)??AF,fontWeight:$U(n?.[TU.FontStyle],kF),fontStyle:VU(n?.[TU.FontStyle]),textDecoration:HU(n?.[TU.FontStyle]),color:zU(e,n?.[TU.FontColor])??c(_U.Dimension,jU.LabelName,NU.FontColor)??gF.TEXT,background:f,hoverBackground:bF(f,cT),activeBackground:bF(f,dT)},dimensionValues:{fontSize:FU(o?.[TU.FontSize])??c(_U.Dimension,jU.LabelValue,NU.FontSize)??LF,fontFamily:o?.[TU.FontFamily]??c(_U.Dimension,jU.LabelValue,NU.FontFamily)??AF,fontWeight:$U(o?.[TU.FontStyle],void 0),fontStyle:VU(o?.[TU.FontStyle]),textDecoration:HU(o?.[TU.FontStyle]),color:zU(e,o?.[TU.FontColor])??c(_U.Dimension,jU.LabelValue,NU.FontColor)??gF.TEXT,background:zU(e,o?.[TU.Background])??c(_U.Dimension,jU.LabelValue,NU.BackgroundColor)??TF.Transparent},measureValues:{fontSize:FU(i?.[TU.FontSize])??c(_U.Measure,jU.LabelValue,NU.FontSize)??LF,fontFamily:i?.[TU.FontFamily]??c(_U.Measure,jU.LabelValue,NU.FontFamily)??AF,fontWeight:$U(i?.[TU.FontStyle],"normal"),fontStyle:VU(i?.[TU.FontStyle]),textDecoration:HU(i?.[TU.FontStyle]),color:zU(e,i?.[TU.FontColor])??c(_U.Measure,jU.LabelValue,NU.FontColor)??TF.FontSecondary,background:zU(e,i?.[TU.Background])??c(_U.Measure,jU.LabelValue,NU.BackgroundColor)??TF.Transparent},measureLabels:{fontWeight:$U(a?.[TU.FontStyle],"normal"),fontStyle:VU(a?.[TU.FontStyle]),textDecoration:HU(a?.[TU.FontStyle]),color:zU(e,a?.[TU.FontColor])??c(_U.Measure,jU.LabelName,NU.FontColor)??TF.FontSecondary,background:zU(e,a?.[TU.Background])??c(_U.Measure,jU.LabelName,NU.BackgroundColor)??TF.Transparent},totalValues:{fontWeight:$U(s?.[TU.FontStyle],kF),fontStyle:VU(s?.[TU.FontStyle]),textDecoration:HU(s?.[TU.FontStyle]),color:zU(e,s?.[TU.FontColor])??c(_U.Total,jU.LabelValue,NU.FontColor)??gF.TEXT,background:zU(e,s?.[TU.Background])??c(_U.Total,jU.LabelValue,NU.BackgroundColor)??TF.Transparent},nullValues:{fontWeight:$U(l?.[TU.FontStyle],"normal"),fontStyle:VU(l?.[TU.FontStyle]),textDecoration:HU(l?.[TU.FontStyle]),color:zU(e,l?.[TU.FontColor])??c(_U.Null,jU.LabelValue,NU.FontColor)??gF.TEXT,background:zU(e,l?.[TU.Background])??c(_U.Null,jU.LabelValue,NU.BackgroundColor)??TF.NullValueBackground},grid:{columnLineClamp:p,lineClamp:d,border:zU(e,u?.[TU.Border])??c(_U.Grid,jU.Grid,NU.BorderColor)??TF.DividerLight,divider:zU(e,u?.[TU.Divider])??c(_U.Grid,jU.Divider,NU.BorderColor)??TF.DividerDark,background:zU(e,u?.[TU.Background])??c(_U.Grid,jU.Grid,NU.BackgroundColor)??TF.Transparent},selectedColors:yF(e)};return h.headerCellHeight=Math.max(WU(h.header.fontSize,p),WU(h.dimensionValues.fontSize,p),32),h.contentCellHeight=Math.max(WU(h.measureValues.fontSize,d),WU(h.dimensionValues.fontSize,d),24),h.dimensionValueTextHeight=WU(h.dimensionValues.fontSize,1),h})(h,d)),[h,d]),E=((e,t,r)=>{const[,n,o]=uz((async()=>{const t=Mj(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,mz].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(h,o,e),{direction:I}=R();UU([YU({model:i,layoutService:d,effectivePropertiesService:c,translator:m})]),k((()=>{!w&&i&&!!S&&E&&qU(n,{selections:f,baseObjects:{rect:x,pageInfo:v,qPivotDataPages:S,updatePageInfo:y,direction:I},nebulaObjects:{env:e,app:a,model:i,embed:s,theme:h,keyboard:l,translator:m,interactions:p},coreServices:{styleService:C,viewService:b,layoutService:d,downloadService:u,effectivePropertiesService:c}})}),[i,a,x,p,f,b,d,u,w,S,C,n,E,m,g,v,y,c,s,l,h,e,I])},oY={version:"7.2.2",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},iY=()=>({...oY,qHyperCubeDef:{...oY.qHyperCubeDef,qIndentMode:!1}})}}}));
|