@nebula.js/sn-pivot-table 7.26.0 → 7.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +11 -22
- package/dist/sn-pivot-table.js +12 -23
- package/dist/sn-pivot-table.systemjs.js +10 -21
- package/package.json +14 -14
- package/sn-pivot-table-ext/dist/sn-pivot-table.js +12 -23
- package/sn-pivot-table-ext/sn-pivot-table.qext +1 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pivot-table v7.
|
|
2
|
+
* @nebula.js/sn-pivot-table v7.28.0
|
|
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 n,r,i,o,a,s,l,u,c,d,p,f,h,m,g,v,y,b,x,S,w,C,E,I,D,P,M,R,k,L,A,O,T,q,_,N,j,F,z,W,$,H,V,B,G,U,Y;return{setters:[function(e){n=e,r=e.forwardRef,i=e.useContext,o=e.default,a=e.isValidElement,s=e.cloneElement,l=e.Children,u=e.useRef,c=e.createElement,d=e.createContext,p=e.useReducer,f=e.useEffect,h=e.useDebugValue,m=e.useCallback,g=e.useState,v=e.useLayoutEffect,y=e.useMemo,b=e.useInsertionEffect,x=e.memo,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,k=e.usePromise,L=e.useState,A=e.useEffect,O=e.useTheme,T=e.useInteractionState,q=e.onContextMenu,_=e.onTakeSnapshot,N=e.useImperativeHandle,j=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:sG()},data:H_(e)},ext:ZN(e),component(){oG(e)}}});const K={black:"#000",white:"#fff"},X="#e57373",J="#ef5350",Z="#f44336",Q="#d32f2f",ee="#c62828",te="#f3e5f5",ne="#ce93d8",re="#ba68c8",ie="#ab47bc",oe="#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 ke=Object.freeze({__proto__:null,default:Re}),Le="$$material";function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ae.apply(null,arguments)}function Oe(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Te=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),qe="-ms-",_e="-moz-",Ne="-webkit-",je="comm",Fe="rule",ze="decl",We="@keyframes",$e=Math.abs,He=String.fromCharCode,Ve=Object.assign;function Be(e){return e.trim()}function Ge(e,t,n){return e.replace(t,n)}function Ue(e,t){return e.indexOf(t)}function Ye(e,t){return 0|e.charCodeAt(t)}function Ke(e,t,n){return e.slice(t,n)}function Xe(e){return e.length}function Je(e){return e.length}function Ze(e,t){return t.push(e),e}var Qe=1,et=1,tt=0,nt=0,rt=0,it="";function ot(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Qe,column:et,length:a,return:""}}function at(e,t){return Ve(ot("",null,null,"",null,null,0),e,{length:-e.length},t)}function st(){return rt=nt>0?Ye(it,--nt):0,et--,10===rt&&(et=1,Qe--),rt}function lt(){return rt=nt<tt?Ye(it,nt++):0,et++,10===rt&&(et=1,Qe++),rt}function ut(){return Ye(it,nt)}function ct(){return nt}function dt(e,t){return Ke(it,e,t)}function pt(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 ft(e){return Qe=et=1,tt=Xe(it=e),nt=0,[]}function ht(e){return it="",e}function mt(e){return Be(dt(nt-1,yt(91===e?e+2:40===e?e+1:e)))}function gt(e){for(;(rt=ut())&&rt<33;)lt();return pt(e)>2||pt(rt)>3?"":" "}function vt(e,t){for(;--t&<()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return dt(e,ct()+(t<6&&32==ut()&&32==lt()))}function yt(e){for(;lt();)switch(rt){case e:return nt;case 34:case 39:34!==e&&39!==e&&yt(rt);break;case 40:41===e&&yt(e);break;case 92:lt()}return nt}function bt(e,t){for(;lt()&&e+rt!==57&&(e+rt!==84||47!==ut()););return"/*"+dt(t,nt-1)+"*"+He(47===e?e:lt())}function xt(e){for(;!pt(ut());)lt();return dt(e,nt)}function St(e){return ht(wt("",null,null,null,[""],e=ft(e),0,[0],e))}function wt(e,t,n,r,i,o,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=i,S=o,w=r,C=b;g;)switch(h=y,y=lt()){case 40:if(108!=h&&58==Ye(C,d-1)){-1!=Ue(C+=Ge(mt(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=mt(y);break;case 9:case 10:case 13:case 32:C+=gt(h);break;case 92:C+=vt(ct()-1,7);continue;case 47:switch(ut()){case 42:case 47:Ze(Et(bt(lt(),ct()),t,n),l);break;default:C+="/"}break;case 123*m:s[u++]=Xe(C)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(C=Ge(C,/\f/g,"")),f>0&&Xe(C)-d&&Ze(f>32?It(C+";",r,n,d-1):It(Ge(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(Ze(w=Ct(C,t,n,u,c,i,s,b,x=[],S=[],d),o),123===y)if(0===c)wt(C,t,w,w,x,o,d,s,S);else switch(99===p&&110===Ye(C,3)?100:p){case 100:case 108:case 109:case 115:wt(e,w,w,r&&Ze(Ct(e,w,w,0,0,i,s,b,i,x=[],d),S),i,S,d,s,r?x:S);break;default:wt(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=v=1,b=C="",d=a;break;case 58:d=1+Xe(C),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==st())continue;switch(C+=He(y),y*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Xe(C)-1)*v,v=1;break;case 64:45===ut()&&(C+=mt(lt())),p=ut(),c=d=Xe(b=C+=xt(ct())),y++;break;case 45:45===h&&2==Xe(C)&&(m=0)}}return o}function Ct(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,p=0===i?o:[""],f=Je(p),h=0,m=0,g=0;h<r;++h)for(var v=0,y=Ke(e,d+1,d=$e(m=a[h])),b=e;v<f;++v)(b=Be(m>0?p[v]+" "+y:Ge(y,/&\f/g,p[v])))&&(l[g++]=b);return ot(e,t,n,0===i?Fe:s,l,u,c)}function Et(e,t,n){return ot(e,t,n,je,He(rt),Ke(e,2,-2),0)}function It(e,t,n,r){return ot(e,t,n,ze,Ke(e,0,r),Ke(e,r+1,-1),r)}function Dt(e,t){for(var n="",r=Je(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Pt(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ze:return e.return=e.return||e.value;case je:return"";case We:return e.return=e.value+"{"+Dt(e.children,r)+"}";case Fe:e.value=e.props.join(",")}return Xe(n=Dt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Mt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Rt=function(e,t,n){for(var r=0,i=0;r=i,i=ut(),38===r&&12===i&&(t[n]=1),!pt(i);)lt();return dt(e,nt)},kt=function(e,t){return ht(function(e,t){var n=-1,r=44;do{switch(pt(r)){case 0:38===r&&12===ut()&&(t[n]=1),e[n]+=Rt(nt-1,t,n);break;case 2:e[n]+=mt(r);break;case 4:if(44===r){e[++n]=58===ut()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=He(r)}}while(r=lt());return e}(ft(e),t))},Lt=new WeakMap,At=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Lt.get(n))&&!r){Lt.set(e,!0);for(var i=[],o=kt(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},Ot=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Tt(e,t){switch(function(e,t){return 45^Ye(e,0)?(((t<<2^Ye(e,0))<<2^Ye(e,1))<<2^Ye(e,2))<<2^Ye(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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ne+e+_e+e+qe+e+e;case 6828:case 4268:return Ne+e+qe+e+e;case 6165:return Ne+e+qe+"flex-"+e+e;case 5187:return Ne+e+Ge(e,/(\w+).+(:[^]+)/,Ne+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return Ne+e+qe+"flex-item-"+Ge(e,/flex-|-self/,"")+e;case 4675:return Ne+e+qe+"flex-line-pack"+Ge(e,/align-content|flex-|-self/,"")+e;case 5548:return Ne+e+qe+Ge(e,"shrink","negative")+e;case 5292:return Ne+e+qe+Ge(e,"basis","preferred-size")+e;case 6060:return Ne+"box-"+Ge(e,"-grow","")+Ne+e+qe+Ge(e,"grow","positive")+e;case 4554:return Ne+Ge(e,/([^-])(transform)/g,"$1"+Ne+"$2")+e;case 6187:return Ge(Ge(Ge(e,/(zoom-|grab)/,Ne+"$1"),/(image-set)/,Ne+"$1"),e,"")+e;case 5495:case 3959:return Ge(e,/(image-set\([^]*)/,Ne+"$1$`$1");case 4968:return Ge(Ge(e,/(.+:)(flex-)?(.*)/,Ne+"box-pack:$3"+qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ne+e+e;case 4095:case 3583:case 4068:case 2532:return Ge(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(Xe(e)-1-t>6)switch(Ye(e,t+1)){case 109:if(45!==Ye(e,t+4))break;case 102:return Ge(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+_e+(108==Ye(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ue(e,"stretch")?Tt(Ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ye(e,t+1))break;case 6444:switch(Ye(e,Xe(e)-3-(~Ue(e,"!important")&&10))){case 107:return Ge(e,":",":"+Ne)+e;case 101:return Ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ne+(45===Ye(e,14)?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return Ne+e+qe+Ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+qe+Ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+qe+Ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ne+e+qe+e+e}return e}var qt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ze:e.return=Tt(e.value,e.length);break;case We:return Dt([at(e,{value:Ge(e.value,"@","@"+Ne)})],r);case Fe:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Dt([at(e,{props:[Ge(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Dt([at(e,{props:[Ge(t,/:(plac\w+)/,":"+Ne+"input-$1")]}),at(e,{props:[Ge(t,/:(plac\w+)/,":-moz-$1")]}),at(e,{props:[Ge(t,/:(plac\w+)/,qe+"input-$1")]})],r)}return""})}}],_t=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||qt,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,u,c=[Pt,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=Je(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([At,Ot].concat(o,c));i=function(e,t,n,r){l=n,function(e){Dt(St(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Te({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(s),p};function Nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jt(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Ft,zt,Wt,$t,Ht={exports:{}},Vt={};function Bt(){return zt||(zt=1,Ht.exports=function(){if(Ft)return Vt;Ft=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case u:case r:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case h:case f:case a:return e;default:return p}}case n:return p}}}function x(e){return b(e)===u}return Vt.AsyncMode=l,Vt.ConcurrentMode=u,Vt.ContextConsumer=s,Vt.ContextProvider=a,Vt.Element=t,Vt.ForwardRef=c,Vt.Fragment=r,Vt.Lazy=h,Vt.Memo=f,Vt.Portal=n,Vt.Profiler=o,Vt.StrictMode=i,Vt.Suspense=d,Vt.isAsyncMode=function(e){return x(e)||b(e)===l},Vt.isConcurrentMode=x,Vt.isContextConsumer=function(e){return b(e)===s},Vt.isContextProvider=function(e){return b(e)===a},Vt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Vt.isForwardRef=function(e){return b(e)===c},Vt.isFragment=function(e){return b(e)===r},Vt.isLazy=function(e){return b(e)===h},Vt.isMemo=function(e){return b(e)===f},Vt.isPortal=function(e){return b(e)===n},Vt.isProfiler=function(e){return b(e)===o},Vt.isStrictMode=function(e){return b(e)===i},Vt.isSuspense=function(e){return b(e)===d},Vt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===o||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Vt.typeOf=b,Vt}()),Ht.exports}var Gt=function(){if($t)return Wt;$t=1;var e=Bt(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(n){return e.isMemo(n)?r:i[n.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,d=Object.prototype;return Wt=function e(t,r,i){if("string"!=typeof r){if(d){var p=c(r);p&&p!==d&&e(t,p,i)}var f=s(r);l&&(f=f.concat(l(r)));for(var h=o(t),m=o(r),g=0;g<f.length;++g){var v=f[g];if(!(n[v]||i&&i[v]||m&&m[v]||h&&h[v])){var y=u(r,v);try{a(t,v,y)}catch(e){}}}}return t},Wt}(),Ut=Nt(Gt);function Yt(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var Kt=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Xt=function(e,t,n){Kt(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var Jt={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},Zt=/[A-Z]|^ms/g,Qt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,en=function(e){return 45===e.charCodeAt(1)},tn=function(e){return null!=e&&"boolean"!=typeof e},nn=Mt(function(e){return en(e)?e:e.replace(Zt,"-$&").toLowerCase()}),rn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Qt,function(e,t,n){return an={name:t,styles:n,next:an},t})}return 1===Jt[e]||en(e)||"number"!=typeof t||0===t?t:t+"px"};function on(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return an={name:i.name,styles:i.styles,next:an},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)an={name:a.name,styles:a.styles,next:an},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=on(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":tn(s)&&(r+=nn(o)+":"+rn(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=on(e,t,a);switch(o){case"animation":case"animationName":r+=nn(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var u=0;u<a.length;u++)tn(a[u])&&(r+=nn(o)+":"+rn(o,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=an,l=n(e);return an=s,on(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var an,sn=/label:\s*([^\s;{]+)\s*(;|$)/g;function ln(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";an=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=on(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=on(n,t,e[a]),r)i+=o[a]}sn.lastIndex=0;for(var s,l="";null!==(s=sn.exec(i));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:an}}var un,cn,dn=!!n.useInsertionEffect&&n.useInsertionEffect,pn=dn||function(e){return e()},fn=dn||n.useLayoutEffect,hn=n.createContext("undefined"!=typeof HTMLElement?_t({key:"css"}):null),mn=hn.Provider,gn=function(e){return r(function(t,n){var r=i(hn);return e(t,r,n)})},vn=n.createContext({}),yn={}.hasOwnProperty,bn="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Kt(t,n,r),pn(function(){return Xt(t,n,r)}),null},Sn=gn(function(e,t,r){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[bn],a=[i],s="";"string"==typeof e.className?s=Yt(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=ln(a,void 0,n.useContext(vn));s+=t.key+"-"+l.name;var u={};for(var c in e)yn.call(e,c)&&"css"!==c&&c!==bn&&(u[c]=e[c]);return u.className=s,r&&(u.ref=r),n.createElement(n.Fragment,null,n.createElement(xn,{cache:t,serialized:l,isStringTag:"string"==typeof o}),n.createElement(o,u))}),wn=Sn,Cn=function(e,t){var r=arguments;if(null==t||!yn.call(t,"css"))return n.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=wn,o[1]=function(e,t){var n={};for(var r in t)yn.call(t,r)&&(n[r]=t[r]);return n[bn]=e,n}(e,t);for(var a=2;a<i;a++)o[a]=r[a];return n.createElement.apply(null,o)};un=Cn||(Cn={}),cn||(cn=un.JSX||(un.JSX={}));var En=gn(function(e,t){var r=ln([e.styles],void 0,n.useContext(vn)),i=n.useRef();return fn(function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),i.current=[n,o],function(){n.flush()}},[t]),fn(function(){var e=i.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Xt(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}},[t,r.name]),null});function In(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ln(t)}function Dn(){var e=In.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Pn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Mn=Mt(function(e){return Pn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Rn=function(e){return"theme"!==e},kn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Mn:Rn},Ln=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},An=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Kt(t,n,r),pn(function(){return Xt(t,n,r)}),null},On=function e(t,r){var i,o,a=t.__emotion_real===t,s=a&&t.__emotion_base||t;void 0!==r&&(i=r.label,o=r.target);var l=Ln(t,r,a),u=l||kn(s),c=!u("as");return function(){var d=arguments,p=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&p.push("label:"+i+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{var f=d[0];p.push(f[0]);for(var h=d.length,m=1;m<h;m++)p.push(d[m],f[m])}var g=gn(function(e,t,r){var i=c&&e.as||s,a="",d=[],f=e;if(null==e.theme){for(var h in f={},e)f[h]=e[h];f.theme=n.useContext(vn)}"string"==typeof e.className?a=Yt(t.registered,d,e.className):null!=e.className&&(a=e.className+" ");var m=ln(p.concat(d),t.registered,f);a+=t.key+"-"+m.name,void 0!==o&&(a+=" "+o);var g=c&&void 0===l?kn(i):u,v={};for(var y in e)c&&"as"===y||g(y)&&(v[y]=e[y]);return v.className=a,r&&(v.ref=r),n.createElement(n.Fragment,null,n.createElement(An,{cache:t,serialized:m,isStringTag:"string"==typeof i}),n.createElement(i,v))});return g.displayName=void 0!==i?i:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=p,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,n){return e(t,Ae({},r,n,{shouldForwardProp:Ln(g,n,!0)})).apply(void 0,p)},g}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){On[e]=On(e)});var Tn,qn,_n,Nn,jn,Fn={exports:{}};function zn(){if(qn)return Tn;qn=1;return Tn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Wn(){if(Nn)return _n;Nn=1;var e=zn();function t(){}function n(){}return n.resetWarningCache=t,_n=function(){function r(t,n,r,i,o,a){if(a!==e){var s=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 s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}function $n(){return jn||(jn=1,Fn.exports=Wn()()),Fn.exports}var Hn,Vn,Bn=Nt($n()),Gn={exports:{}},Un={};var Yn=(Vn||(Vn=1,Gn.exports=function(){if(Hn)return Un;Hn=1;var e=o,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,o){var s,l={},u=null,c=null;for(s in void 0!==o&&(u=""+o),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:i.current}}return Un.Fragment=n,Un.jsx=s,Un.jsxs=s,Un}()),Gn.exports);const Kn=new Map;function Xn(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return Yn.jsx(En,{styles:r})}
|
|
7
|
+
System.register(["react","react-dom","@nebula.js/stardust","picasso-plugin-q","picasso.js"],function(e,t){"use strict";var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,v,b,y,x,S,w,C,E,I,D,R,L,M,A,P,q,k,T,O,N,j,_,F,z,W,$,H,V,B,G,U,Y;return{setters:[function(e){n=e.default,r=e.createElement,o=e,i=e.isValidElement,a=e.cloneElement,s=e.Children,l=e.useRef,c=e.createContext,u=e.useReducer,d=e.useEffect,p=e.useDebugValue,f=e.useCallback,h=e.useContext,m=e.useState,g=e.useLayoutEffect,v=e.useMemo,b=e.useInsertionEffect,y=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){R=e.HyperCubeHandler,L=e.useMemo,M=e.useOptions,A=e.usePromise,P=e.useState,q=e.useEffect,k=e.useTheme,T=e.useInteractionState,O=e.onContextMenu,N=e.onTakeSnapshot,j=e.useImperativeHandle,_=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:WF()},data:IA(e)},ext:TP(e),component(){FF(e)}}});const K={black:"#000",white:"#fff"},X="#e57373",J="#ef5350",Z="#f44336",Q="#d32f2f",ee="#c62828",te="#f3e5f5",ne="#ce93d8",re="#ba68c8",oe="#ab47bc",ie="#9c27b0",ae="#7b1fa2",se="#e3f2fd",le="#90caf9",ce="#42a5f5",ue="#1976d2",de="#1565c0",pe="#4fc3f7",fe="#29b6f6",he="#03a9f4",me="#0288d1",ge="#01579b",ve="#81c784",be="#66bb6a",ye="#4caf50",xe="#388e3c",Se="#2e7d32",we="#1b5e20",Ce="#ffb74d",Ee="#ffa726",Ie="#ff9800",De="#f57c00",Re="#e65100",Le={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 Me(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 Ae=Object.freeze({__proto__:null,default:Me}),Pe="$$material";function qe(){return qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qe.apply(null,arguments)}function ke(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Te="-ms-",Oe="-moz-",Ne="-webkit-",je="comm",_e="rule",Fe="decl",ze="@keyframes",We=Math.abs,$e=String.fromCharCode,He=Object.assign;function Ve(e){return e.trim()}function Be(e,t){return(e=t.exec(e))?e[0]:e}function Ge(e,t,n){return e.replace(t,n)}function Ue(e,t,n){return e.indexOf(t,n)}function Ye(e,t){return 0|e.charCodeAt(t)}function Ke(e,t,n){return e.slice(t,n)}function Xe(e){return e.length}function Je(e){return e.length}function Ze(e,t){return t.push(e),e}function Qe(e,t){return e.filter(function(e){return!Be(e,t)})}var et,tt,nt=1,rt=1,ot=0,it=0,at=0,st="";function lt(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:nt,column:rt,length:a,return:"",siblings:s}}function ct(e,t){return He(lt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ut(e){for(;e.root;)e=ct(e.root,{children:[e]});Ze(e,e.siblings)}function dt(){return at=it>0?Ye(st,--it):0,rt--,10===at&&(rt=1,nt--),at}function pt(){return at=it<ot?Ye(st,it++):0,rt++,10===at&&(rt=1,nt++),at}function ft(){return Ye(st,it)}function ht(){return it}function mt(e,t){return Ke(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 Ve(mt(it-1,xt(91===e?e+2:40===e?e+1:e)))}function bt(e){for(;(at=ft())&&at<33;)pt();return gt(e)>2||gt(at)>3?"":" "}function yt(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)+"*"+$e(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 nt=rt=1,ot=Xe(st=e),it=0,[]}(e),0,[0],e))}function Et(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=i,w=r,C=y;g;)switch(h=b,b=pt()){case 40:if(108!=h&&58==Ye(C,d-1)){-1!=Ue(C+=Ge(vt(b),"&","&\f"),"&\f",We(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=vt(b);break;case 9:case 10:case 13:case 32:C+=bt(h);break;case 92:C+=yt(ht()-1,7);continue;case 47:switch(ft()){case 42:case 47:Ze(Dt(St(pt(),ht()),t,n,l),l),5!=gt(h||1)&&5!=gt(ft()||1)||!Xe(C)||" "===Ke(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[c++]=Xe(C)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(C=Ge(C,/\f/g,"")),f>0&&(Xe(C)-d||0===m&&47===h)&&Ze(f>32?Rt(C+";",r,n,d-1,l):Rt(Ge(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(Ze(w=It(C,t,n,c,u,o,s,y,x=[],S=[],d,i),i),123===b)if(0===u)Et(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===Ye(C,3))break;case 108:if(97===Ye(C,2))break;default:u=0;case 100:case 109:case 115:}u?Et(e,w,w,r&&Ze(It(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,r?x:S):Et(C,w,w,w,[""],S,0,s,S)}}c=u=f=0,m=v=1,y=C="",d=a;break;case 58:d=1+Xe(C),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==dt())continue;switch(C+=$e(b),b*m){case 38:v=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Xe(C)-1)*v,v=1;break;case 64:45===ft()&&(C+=vt(pt())),p=ft(),u=d=Xe(y=C+=wt(ht())),b++;break;case 45:45===h&&2==Xe(C)&&(m=0)}}return i}function It(e,t,n,r,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=Je(f),m=0,g=0,v=0;m<r;++m)for(var b=0,y=Ke(e,p+1,p=We(g=a[m])),x=e;b<h;++b)(x=Ve(g>0?f[b]+" "+y:Ge(y,/&\f/g,f[b])))&&(l[v++]=x);return lt(e,t,n,0===o?_e:s,l,c,u,d)}function Dt(e,t,n,r){return lt(e,t,n,je,$e(at),Ke(e,2,-2),0,r)}function Rt(e,t,n,r,o){return lt(e,t,n,Fe,Ke(e,0,r),Ke(e,r+1,-1),r,o)}function Lt(e,t,n){switch(function(e,t){return 45^Ye(e,0)?(((t<<2^Ye(e,0))<<2^Ye(e,1))<<2^Ye(e,2))<<2^Ye(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 Oe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ne+e+Oe+e+Te+e+e;case 5936:switch(Ye(e,t+11)){case 114:return Ne+e+Te+Ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ne+e+Te+Ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ne+e+Te+Ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ne+e+Te+e+e;case 6165:return Ne+e+Te+"flex-"+e+e;case 5187:return Ne+e+Ge(e,/(\w+).+(:[^]+)/,Ne+"box-$1$2"+Te+"flex-$1$2")+e;case 5443:return Ne+e+Te+"flex-item-"+Ge(e,/flex-|-self/g,"")+(Be(e,/flex-|baseline/)?"":Te+"grid-row-"+Ge(e,/flex-|-self/g,""))+e;case 4675:return Ne+e+Te+"flex-line-pack"+Ge(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ne+e+Te+Ge(e,"shrink","negative")+e;case 5292:return Ne+e+Te+Ge(e,"basis","preferred-size")+e;case 6060:return Ne+"box-"+Ge(e,"-grow","")+Ne+e+Te+Ge(e,"grow","positive")+e;case 4554:return Ne+Ge(e,/([^-])(transform)/g,"$1"+Ne+"$2")+e;case 6187:return Ge(Ge(Ge(e,/(zoom-|grab)/,Ne+"$1"),/(image-set)/,Ne+"$1"),e,"")+e;case 5495:case 3959:return Ge(e,/(image-set\([^]*)/,Ne+"$1$`$1");case 4968:return Ge(Ge(e,/(.+:)(flex-)?(.*)/,Ne+"box-pack:$3"+Te+"flex-pack:$3"),/space-between/,"justify")+Ne+e+e;case 4200:if(!Be(e,/flex-|baseline/))return Te+"grid-column-align"+Ke(e,t)+e;break;case 2592:case 3360:return Te+Ge(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Be(e.props,/grid-\w+-end/)})?~Ue(e+(n=n[t].value),"span",0)?e:Te+Ge(e,"-start","")+e+Te+"grid-row-span:"+(~Ue(n,"span",0)?Be(n,/\d+/):+Be(n,/\d+/)-+Be(e,/\d+/))+";":Te+Ge(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return Be(e.props,/grid-\w+-start/)})?e:Te+Ge(Ge(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ge(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(Xe(e)-1-t>6)switch(Ye(e,t+1)){case 109:if(45!==Ye(e,t+4))break;case 102:return Ge(e,/(.+:)(.+)-([^]+)/,"$1"+Ne+"$2-$3$1"+Oe+(108==Ye(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ue(e,"stretch",0)?Lt(Ge(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ge(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,a,s){return Te+n+":"+r+s+(o?Te+n+"-span:"+(i?a:+a-+r)+s:"")+e});case 4949:if(121===Ye(e,t+6))return Ge(e,":",":"+Ne)+e;break;case 6444:switch(Ye(e,45===Ye(e,14)?18:11)){case 120:return Ge(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ne+(45===Ye(e,14)?"inline-":"")+"box$3$1"+Ne+"$2$3$1"+Te+"$2box$3")+e;case 100:return Ge(e,":",":"+Te)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ge(e,"scroll-","scroll-snap-")+e}return e}function Mt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function At(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Fe:return e.return=e.return||e.value;case je:return"";case ze:return e.return=e.value+"{"+Mt(e.children,r)+"}";case _e:if(!Xe(e.value=e.props.join(",")))return""}return Xe(n=Mt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pt(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Fe:return void(e.return=Lt(e.value,e.length,n));case ze:return Mt([ct(e,{value:Ge(e.value,"@","@"+Ne)})],r);case _e:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(Be(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ut(ct(e,{props:[Ge(t,/:(read-\w+)/,":-moz-$1")]})),ut(ct(e,{props:[t]})),He(e,{props:Qe(n,r)});break;case"::placeholder":ut(ct(e,{props:[Ge(t,/:(plac\w+)/,":"+Ne+"input-$1")]})),ut(ct(e,{props:[Ge(t,/:(plac\w+)/,":-moz-$1")]})),ut(ct(e,{props:[Ge(t,/:(plac\w+)/,Te+"input-$1")]})),ut(ct(e,{props:[t]})),He(e,{props:Qe(n,r)})}return""})}}const qt="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",kt="active",Tt="data-styled-version",Ot="6.4.1",Nt="/*!sc*/\n",jt="undefined"!=typeof window&&"undefined"!=typeof document;function _t(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Ft=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(tt=null!==(et=_t("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==et?et:_t("SC_DISABLE_SPEEDY"))&&void 0!==tt?tt:"undefined"==typeof process||void 0===process.env||!1),zt="sc-keyframes-",Wt={};function $t(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let Ht=new Map,Vt=new Map,Bt=1;const Gt=e=>{if(Ht.has(e))return Ht.get(e);for(;Vt.has(Bt);)Bt++;const t=Bt++;return Ht.set(e,t),Vt.set(t,e),t},Ut=e=>Vt.get(e),Yt=(e,t)=>{Bt=t+1,Ht.set(e,t),Vt.set(t,e)},Kt=Object.freeze([]),Xt=Object.freeze({});function Jt(e,t,n=Xt){return e.theme!==n.theme&&e.theme||t||n.theme}const Zt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Qt=/(^-|-$)/g;function en(e){return e.replace(Zt,"-").replace(Qt,"")}const tn=/(a)(d)/gi,nn=e=>String.fromCharCode(e+(e>25?39:97));function rn(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=nn(t%52)+n;return(nn(t%52)+n).replace(tn,"$1-$2")}const on=5381,an=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},sn=e=>an(on,e);function ln(e){return rn(sn(e)>>>0)}function cn(e){return"string"==typeof e&&!0}function un(e){return cn(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const dn=Symbol.for("react.memo"),pn=Symbol.for("react.forward_ref"),fn={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},hn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gn={[pn]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[dn]:mn};function vn(e){return("type"in(t=e)&&t.type.$$typeof)===dn?mn:"$$typeof"in e?gn[e.$$typeof]:fn;var t}const bn=Object.defineProperty,yn=Object.getOwnPropertyNames,xn=Object.getOwnPropertySymbols,Sn=Object.getOwnPropertyDescriptor,wn=Object.getPrototypeOf,Cn=Object.prototype;function En(e,t,n){if("string"!=typeof t){const r=wn(t);r&&r!==Cn&&En(e,r,n);const o=yn(t).concat(xn(t)),i=vn(e),a=vn(t);for(let r=0;r<o.length;++r){const s=o[r];if(!(s in hn||n&&n[s]||a&&s in a||i&&s in i)){const n=Sn(t,s);try{bn(e,s,n)}catch(e){}}}}return e}function In(e){return"function"==typeof e}function Dn(e){return"object"==typeof e&&"styledComponentId"in e}function Rn(e,t){return e&&t?e+" "+t:e||t||""}function Ln(e,t){return e.join("")}function Mn(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function An(e,t,n=!1){if(!n&&!Mn(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=An(e[n],t[n]);else if(Mn(t))for(const n in t)e[n]=An(e[n],t[n]);return e}function Pn(e,t){Object.defineProperty(e,"toString",{value:t})}const qn=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw $t(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let o=0,i=t.length;o<i;o++)this.tag.insertRule(n,t[o])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n;for(let e=r;e<o;e++)t+=this.tag.getRule(e)+Nt;return t}},kn=`style[${qt}][${Tt}="${Ot}"]`,Tn=new RegExp(`^${qt}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),On=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,Nn=e=>{if(!e)return document;if(On(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(On(t))return t}return document},jn=(e,t,n)=>{const r=n.split(",");let o;for(let n=0,i=r.length;n<i;n++)(o=r[n])&&e.registerName(t,o)},_n=(e,t)=>{var n;const r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Nt),o=[];for(let t=0,n=r.length;t<n;t++){const n=r[t].trim();if(!n)continue;const i=n.match(Tn);if(i){const t=0|parseInt(i[1],10),n=i[2];0!==t&&(Yt(n,t),jn(e,n,i[3]),e.getTag().insertRules(t,o)),o.length=0}else o.push(n)}},Fn=e=>{const t=Nn(e.options.target).querySelectorAll(kn);for(let n=0,r=t.length;n<r;n++){const r=t[n];r&&r.getAttribute(qt)!==kt&&(_n(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let zn=!1;const Wn=(e,t)=>{const n=document.head,r=e||n,o=document.createElement("style"),i=(e=>{const t=Array.from(e.querySelectorAll(`style[${qt}]`));return t[t.length-1]})(r),a=void 0!==i?i.nextSibling:null;o.setAttribute(qt,kt),o.setAttribute(Tt,Ot);const s=t||function(){if(!1!==zn)return zn;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return zn=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return zn=t.getAttribute("content")||void 0}return zn="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return s&&o.setAttribute("nonce",s),r.insertBefore(o,a),o},$n=class{constructor(e,t){this.element=Wn(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){const r=n[t];if(r.ownerNode===e)return r}throw $t(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},Hn=class{constructor(e,t){this.element=Wn(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let Vn=jt;const Bn={isServer:!jt,useCSSOMInjection:!Ft};class Gn{static registerId(e){return Gt(e)}constructor(e=Xt,t={},n){this.options=Object.assign(Object.assign({},Bn),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&jt&&Vn&&(Vn=!1,Fn(this)),Pn(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let r="";for(let o=0;o<n;o++){const n=Ut(o);if(void 0===n)continue;const i=e.names.get(n);if(void 0===i||!i.size)continue;const a=t.getGroup(o);if(0===a.length)continue;const s=qt+".g"+o+'[id="'+n+'"]';let l="";for(const e of i)e.length>0&&(l+=e+",");r+=a+s+'{content:"'+l+'"}'+Nt}return r})(this))}rehydrate(){!this.server&&jt&&Fn(this)}reconstructWithOptions(e,t=!0){const n=new Gn(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&jt&&e.target!==this.options.target&&Nn(this.options.target)!==Nn(e.target)&&Fn(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new $n(t,n):new Hn(t,n))(this.options),new qn(e)));var e}hasNameForId(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}registerName(e,t){Gt(e),e.startsWith(zt)&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(Gt(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(Gt(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const Un=new WeakSet,Yn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart: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};function Kn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Yn||e.startsWith("--")?String(t).trim():t+"px"}const Xn=47;function Jn(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}const Zn=Symbol.for("sc-keyframes");function Qn(e){return In(e)&&!(e.prototype&&e.prototype.isReactComponent)}const er=e=>null==e||!1===e||""===e,tr=Symbol.for("react.client.reference");function nr(e){return e.$$typeof===tr}function rr(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!er(r)&&(Array.isArray(r)&&Un.has(r)||In(r)?t.push(Jn(n)+":",r,";"):Mn(r)?(t.push(n+" {"),rr(r,t),t.push("}")):t.push(Jn(n)+": "+Kn(n,r)+";"))}}function or(e,t,n,r,o=[]){if(er(e))return o;const i=typeof e;if("string"===i)return o.push(e),o;if("function"===i){if(nr(e))return o;if(Qn(e)&&t){return or(e(t),t,n,r,o)}return o.push(e),o}if(Array.isArray(e)){for(let i=0;i<e.length;i++)or(e[i],t,n,r,o);return o}return Dn(e)?(o.push(`.${e.styledComponentId}`),o):function(e){return"object"==typeof e&&null!==e&&Zn in e}(e)?(n?(e.inject(n,r),o.push(e.getName(r))):o.push(e),o):nr(e)?o:Mn(e)?(rr(e,o),o):(o.push(e.toString()),o)}const ir=sn(Ot);class ar{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=an(ir,t),this.baseStyle=n,Gn.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let o="";for(let r=0;r<this.rules.length;r++){const i=this.rules[r];if("string"==typeof i)o+=i;else if(i)if(Qn(i)){const r=i(e);"string"==typeof r?o+=r:null!=r&&!1!==r&&(o+=Ln(or(r,e,t,n)))}else o+=Ln(or(i,e,t,n))}if(o){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+o:o;let i=this.dynamicNameCache.get(e);if(!i){if(i=rn(an(an(this.baseHash,n.hash),o)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,i)}if(!t.hasNameForId(this.componentId,i)){const e=n(o,"."+i,void 0,this.componentId);t.insertRules(this.componentId,i,e)}r=Rn(r,i)}}return r}}const sr=/&/g;function lr(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function cr(e){const t=e.length;let n="",r=0,o=0,i=0,a=!1,s=!1;for(let l=0;l<t;l++){const c=e.charCodeAt(l);if(0!==i||a||c!==Xn||42!==e.charCodeAt(l+1))if(a)42===c&&e.charCodeAt(l+1)===Xn&&(a=!1,l++);else if(34!==c&&39!==c||lr(e,l)){if(0===i)if(123===c)o++;else if(125===c){if(o--,o<0){s=!0;let n=l+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,o=0,l=n-1,r=n;continue}0===o&&(n+=e.substring(r,l+1),r=l+1)}else 59===c&&0===o&&(n+=e.substring(r,l+1),r=l+1)}else 0===i?i=c:i===c&&(i=0);else a=!0,l++}return s||0!==o||0!==i?(r<t&&0===o&&0===i&&(n+=e.substring(r)),n):e}function ur(e,t){const n=t+" ",r=","+n;for(let o=0;o<e.length;o++){const i=e[o];if("rule"===i.type){i.value=(n+i.value).replaceAll(",",r);const e=i.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];i.props=t}Array.isArray(i.children)&&"@keyframes"!==i.type&&ur(i.children,t)}return e}const dr=new Gn,pr=function({options:e=Xt,plugins:t=Kt}=Xt){let n,r,o;const i=(e,t,o)=>o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===_e&&e.value.includes("&")&&(o||(o=new RegExp(`\\${r}\\b`,"g")),e.props[0]=e.props[0].replace(sr,r).replace(o,i))}),e.prefix&&a.push(Pt),a.push(At);let s=[];const l=function(e){var t=Je(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(a.concat((d=e=>s.push(e),function(e){e.root||(e=e.return)&&d(e)}))),c=(t,i="",a="",c="&")=>{n=c,r=i,o=void 0;const u=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return cr(e);const r=e.length;let o="",i=0,a=0,s=0,l=0,c=0,u=!1;for(;a<r;){const t=e.charCodeAt(a);if(34!==t&&39!==t||lr(e,a))if(0===s)if(t===Xn&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==Xn);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<r&&e.charCodeAt(a+1)===Xn)o+=e.substring(i,a),a+=2,i=a,u=!0;else if(t===Xn&&a+1<r&&e.charCodeAt(a+1)===Xn){for(o+=e.substring(i,a);a<r&&10!==e.charCodeAt(a);)a++;i=a,u=!0}else 123===t?c++:125===t&&c--,a++;else l>0&&l--,a++;else l++,a++;else a++;else 0===s?s=t:s===t&&(s=0),a++}return u?(i<r&&(o+=e.substring(i)),0===c?o:cr(o)):0===c?e:cr(e)}(t);let d=Ct(a||i?a+" "+i+" { "+u+" }":u);return e.namespace&&(d=ur(d,e.namespace)),s=[],Mt(d,l),s},u=e;var d;let p=on;for(let e=0;e<t.length;e++)t[e].name||$t(15),p=an(p,t[e].name);return(null==u?void 0:u.namespace)&&(p=an(p,u.namespace)),(null==u?void 0:u.prefix)&&(p=an(p,"p")),c.hash=p!==on?p.toString():"",c}(),fr=n.createContext({shouldForwardProp:void 0,styleSheet:dr,stylis:pr,stylisPlugins:void 0});function hr(){return n.useContext(fr)}fr.Consumer;const mr=n.createContext(void 0);mr.Consumer;const gr=Object.prototype.hasOwnProperty,vr={};function br(e,t){const n="string"!=typeof e?"sc":en(e);vr[n]=(vr[n]||0)+1;const r=n+"-"+ln(Ot+n+vr[n]);return t?t+"-"+r:r}function yr(e,t,o){const i=Dn(e),a=e,s=!cn(e),{attrs:l=Kt,componentId:c=br(t.displayName,t.parentComponentId),displayName:u=un(e)}=t,d=t.displayName&&t.componentId?en(t.displayName)+"-"+t.componentId:t.componentId||c,p=i&&a.attrs?a.attrs.concat(l).filter(Boolean):l;let{shouldForwardProp:f}=t;if(i&&a.shouldForwardProp){const e=a.shouldForwardProp;if(t.shouldForwardProp){const n=t.shouldForwardProp;f=(t,r)=>e(t,r)&&n(t,r)}else f=e}const h=new ar(o,d,i?a.componentStyle:void 0);function m(e,t){return function(e,t,o){const{attrs:i,componentStyle:a,defaultProps:s,foldedComponentIds:l,styledComponentId:c,target:u}=e,d=n.useContext(mr),p=hr(),f=e.shouldForwardProp||p.shouldForwardProp,h=Jt(t,d,s)||Xt;let m,g;{const e=n.useRef(null),r=e.current;if(null!==r&&r[1]===h&&r[2]===p.styleSheet&&r[3]===p.stylis&&r[7]===a&&function(e,t,n){const r=e,o=t;let i=0;for(const e in o)if(gr.call(o,e)&&(i++,r[e]!==o[e]))return!1;return i===n}(r[0],t,r[4]))m=r[5],g=r[6];else{m=function(e,t,n){const r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),o=e.length>1;for(let n=0;n<e.length;n++){const i=e[n],a=In(i)?i(o?Object.assign({},r):r):i;for(const e in a)"className"===e?r.className=Rn(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):e in t&&void 0===t[e]||(r[e]=a[e])}return"className"in t&&"string"==typeof t.className&&(r.className=Rn(r.className,t.className)),r}(i,t,h),g=function(e,t,n,r){return e.generateAndInjectStyles(t,n,r)}(a,m,p.styleSheet,p.stylis);let n=0;for(const e in t)gr.call(t,e)&&n++;e.current=[t,h,p.styleSheet,p.stylis,n,m,g,a]}}const v=m.as||u,b=function(e,t,n,r){const o={};for(const i in e)void 0===e[i]||"$"===i[0]||"as"===i||"theme"===i&&e.theme===n||("forwardedAs"===i?o.as=e.forwardedAs:r&&!r(i,t)||(o[i]=e[i]));return o}(m,v,h,f);let y=Rn(l,c);return g&&(y+=" "+g),m.className&&(y+=" "+m.className),b[cn(v)&&v.includes("-")?"class":"className"]=y,o&&(b.ref=o),r(v,b)}(g,e,t)}m.displayName=u;let g=n.forwardRef(m);return g.attrs=p,g.componentStyle=h,g.displayName=u,g.shouldForwardProp=f,g.foldedComponentIds=i?Rn(a.foldedComponentIds,a.styledComponentId):"",g.styledComponentId=d,g.target=i?a.target:e,Object.defineProperty(g,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=i?function(e,...t){for(const n of t)An(e,n,!0);return e}({},a.defaultProps,e):e}}),Pn(g,()=>`.${g.styledComponentId}`),s&&En(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}var xr=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"]);function Sr(e,t){const n=[e[0]];for(let r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}const wr=e=>(Un.add(e),e);function Cr(e,...t){if(In(e)||Mn(e))return wr(or(Sr(Kt,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?or(n):wr(or(Sr(n,t)))}function Er(e,t,n=Xt){if(!t)throw $t(1,t);const r=(r,...o)=>e(t,n,Cr(r,...o));return r.attrs=r=>Er(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>Er(e,t,Object.assign(Object.assign({},n),r)),r}const Ir=e=>Er(yr,e),Dr=Ir;xr.forEach(e=>{Dr[e]=Ir(e)});let Rr=class{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(In(n)&&!Dn(n))return!1}return!0}(e),Gn.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){const o=this.componentId;if(this.isStatic){if(n.hasNameForId(o,o+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{const i=this.computeRules(e,t,n,r);n.insertRules(o,i.name,i.rules)}return}const i=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&i){const t=i.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){const o=Ln(or(this.rules,t,n,r)),i={name:this.componentId+e,rules:r(o,"")};return this.instanceRules.set(e,i),i}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}};var Lr;class Mr{constructor(e,t){this[Lr]=!0,this.inject=(e,t=pr)=>{const n=this.getName(t);if(!e.hasNameForId(this.id,n)){const r=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,r)}},this.name=e,this.id=zt+e,this.rules=t,Gt(this.id),Pn(this,()=>{throw $t(12,String(this.name))})}getName(e=pr){return e.hash?this.name+rn(+e.hash>>>0):this.name}}function Ar(e,...t){const n=Ln(Cr(e,...t)),r=ln(n);return new Mr(r,n)}function Pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qr(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}Lr=Zn;var kr,Tr,Or,Nr,jr,_r={exports:{}};function Fr(){if(Tr)return kr;Tr=1;return kr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function zr(){if(Nr)return Or;Nr=1;var e=Fr();function t(){}function n(){}return n.resetWarningCache=t,Or=function(){function r(t,n,r,o,i,a){if(a!==e){var s=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 s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function Wr(){return jr||(jr=1,_r.exports=zr()()),_r.exports}var $r=Pr(Wr());function Hr(e){const{injectFirst:t,children:n}=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 n}Hr.propTypes={children:$r.node,injectFirst:$r.bool};const Vr=function(e,...t){const r=Cr(e,...t),o=`sc-global-${ln(JSON.stringify(r))}`,i=new Rr(r,o),a=e=>{const t=hr(),r=n.useContext(mr);let a;{const e=n.useRef(null);null===e.current&&(e.current=t.styleSheet.allocateGSInstance(o)),a=e.current}t.styleSheet.server&&s(a,e,t.styleSheet,r,t.stylis);{const l=i.isStatic?[a,t.styleSheet,i]:[a,e,t.styleSheet,r,t.stylis,i],c=n.useRef(i);n.useLayoutEffect(()=>{t.styleSheet.server||(c.current!==i&&(t.styleSheet.clearRules(o),c.current=i),s(a,e,t.styleSheet,r,t.stylis))},l),n.useLayoutEffect(()=>()=>{t.styleSheet.server||i.removeStyles(a,t.styleSheet)},[a,t.styleSheet,i])}return t.styleSheet.server&&i.instanceRules.delete(a),null};function s(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,Wt,n,o);else{const s=Object.assign(Object.assign({},t),{theme:Jt(t,r,a.defaultProps)});i.renderStyles(e,s,n,o)}}return n.memo(a)}(e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r});
|
|
8
8
|
/**
|
|
9
|
-
* @mui/styled-engine
|
|
9
|
+
* @mui/styled-engine-sc v6.4.3
|
|
10
10
|
*
|
|
11
11
|
* @license MIT
|
|
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
|
-
*/function Jn(e,t){return On(e,t)}const Zn=[];function Qn(e){return Zn[0]=e,ln(Zn)}var er=Object.freeze({__proto__:null,GlobalStyles:Xn,StyledEngineProvider:function(e){const{injectFirst:t,enableCssLayer:r,children:i}=e,o=n.useMemo(()=>{const e=`${t}-${r}`;if("object"==typeof document&&Kn.has(e))return Kn.get(e);const n=function(e,t){const n=_t({key:"css",prepend:e});if(t){const e=n.insert;n.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return n}(t,r);return Kn.set(e,n),n},[t,r]);return t||r?Yn.jsx(mn,{value:o,children:i}):i},ThemeContext:vn,css:In,default:Jn,internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:Qn,keyframes:Dn});function tr(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 nr(e){if(n.isValidElement(e)||!tr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=nr(e[n])}),t}function rr(e,t,r={clone:!0}){const i=r.clone?Ae({},e):e;return tr(e)&&tr(t)&&Object.keys(t).forEach(o=>{n.isValidElement(t[o])?i[o]=t[o]:tr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&tr(e[o])?i[o]=rr(e[o],t[o],r):r.clone?i[o]=tr(t[o])?nr(t[o]):t[o]:i[o]=t[o]}),i}var ir=Object.freeze({__proto__:null,default:rr,isPlainObject:tr});const or=["values","unit","step"];function ar(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Oe(e,or),o=(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)=>Ae({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return Ae({keys:a,values:o,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:n},i)}const sr={borderRadius:4};function lr(e,t){return t?rr(e,t,{clone:!1}):e}const ur={xs:0,sm:600,md:900,lg:1200,xl:1536},cr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ur[e]}px)`};function dr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||cr;return t.reduce((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r),{})}if("object"==typeof t){const e=r.breakpoints||cr;return Object.keys(t).reduce((r,i)=>{if(-1!==Object.keys(e.values||ur).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r},{})}return n(t)}function pr(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function fr(e){if("string"!=typeof e)throw new Error(Re(7));return e.charAt(0).toUpperCase()+e.slice(1)}var hr=Object.freeze({__proto__:null,default:fr});function mr(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function gr(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:mr(e,n)||r,t&&(i=t(i,r,e)),i}function vr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=mr(e.theme,r)||{};return dr(e,o,e=>{let r=gr(a,i,e);return e===r&&"string"==typeof e&&(r=gr(a,i,`${t}${"default"===e?"":fr(e)}`,e)),!1===n?r:{[n]:r}})};return o.propTypes={},o.filterProps=[t],o}const yr={m:"margin",p:"padding"},br={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},xr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Sr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!xr[e])return[e];e=xr[e]}const[t,n]=e.split(""),r=yr[t],i=br[n]||"";return Array.isArray(i)?i.map(e=>r+e):[r+i]}),wr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Cr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Er(e,t,n,r){var i;const o=null!=(i=mr(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function Ir(e){return Er(e,"spacing",8)}function Dr(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Pr(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce((e,r)=>(e[r]=Dr(t,n),e),{})}(Sr(n),r);return dr(e,e[n],i)}function Mr(e,t){const n=Ir(e.theme);return Object.keys(e).map(r=>Pr(e,t,r,n)).reduce(lr,{})}function Rr(e){return Mr(e,wr)}function kr(e){return Mr(e,Cr)}function Lr(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?lr(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Ar(e){return"number"!=typeof e?e:`${e}px solid`}function Or(e,t){return vr({prop:e,themeKey:"borders",transform:t})}Rr.propTypes={},Rr.filterProps=wr,kr.propTypes={},kr.filterProps=Cr;const Tr=Or("border",Ar),qr=Or("borderTop",Ar),_r=Or("borderRight",Ar),Nr=Or("borderBottom",Ar),jr=Or("borderLeft",Ar),Fr=Or("borderColor"),zr=Or("borderTopColor"),Wr=Or("borderRightColor"),$r=Or("borderBottomColor"),Hr=Or("borderLeftColor"),Vr=Or("outline",Ar),Br=Or("outlineColor"),Gr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Er(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Dr(t,e)});return dr(e,e.borderRadius,n)}return null};Gr.propTypes={},Gr.filterProps=["borderRadius"],Lr(Tr,qr,_r,Nr,jr,Fr,zr,Wr,$r,Hr,Gr,Vr,Br);const Ur=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Er(e.theme,"spacing",8),n=e=>({gap:Dr(t,e)});return dr(e,e.gap,n)}return null};Ur.propTypes={},Ur.filterProps=["gap"];const Yr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Er(e.theme,"spacing",8),n=e=>({columnGap:Dr(t,e)});return dr(e,e.columnGap,n)}return null};Yr.propTypes={},Yr.filterProps=["columnGap"];const Kr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Er(e.theme,"spacing",8),n=e=>({rowGap:Dr(t,e)});return dr(e,e.rowGap,n)}return null};Kr.propTypes={},Kr.filterProps=["rowGap"];function Xr(e,t){return"grey"===t?t:e}Lr(Ur,Yr,Kr,vr({prop:"gridColumn"}),vr({prop:"gridRow"}),vr({prop:"gridAutoFlow"}),vr({prop:"gridAutoColumns"}),vr({prop:"gridAutoRows"}),vr({prop:"gridTemplateColumns"}),vr({prop:"gridTemplateRows"}),vr({prop:"gridTemplateAreas"}),vr({prop:"gridArea"}));function Jr(e){return e<=1&&0!==e?100*e+"%":e}Lr(vr({prop:"color",themeKey:"palette",transform:Xr}),vr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xr}),vr({prop:"backgroundColor",themeKey:"palette",transform:Xr}));const Zr=vr({prop:"width",transform:Jr}),Qr=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||ur[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Jr(t)}};return dr(e,e.maxWidth,t)}return null};Qr.filterProps=["maxWidth"];const ei=vr({prop:"minWidth",transform:Jr}),ti=vr({prop:"height",transform:Jr}),ni=vr({prop:"maxHeight",transform:Jr}),ri=vr({prop:"minHeight",transform:Jr});vr({prop:"size",cssProperty:"width",transform:Jr}),vr({prop:"size",cssProperty:"height",transform:Jr});Lr(Zr,Qr,ei,ti,ni,ri,vr({prop:"boxSizing"}));const ii={border:{themeKey:"borders",transform:Ar},borderTop:{themeKey:"borders",transform:Ar},borderRight:{themeKey:"borders",transform:Ar},borderBottom:{themeKey:"borders",transform:Ar},borderLeft:{themeKey:"borders",transform:Ar},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ar},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gr},color:{themeKey:"palette",transform:Xr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xr},backgroundColor:{themeKey:"palette",transform:Xr},p:{style:kr},pt:{style:kr},pr:{style:kr},pb:{style:kr},pl:{style:kr},px:{style:kr},py:{style:kr},padding:{style:kr},paddingTop:{style:kr},paddingRight:{style:kr},paddingBottom:{style:kr},paddingLeft:{style:kr},paddingX:{style:kr},paddingY:{style:kr},paddingInline:{style:kr},paddingInlineStart:{style:kr},paddingInlineEnd:{style:kr},paddingBlock:{style:kr},paddingBlockStart:{style:kr},paddingBlockEnd:{style:kr},m:{style:Rr},mt:{style:Rr},mr:{style:Rr},mb:{style:Rr},ml:{style:Rr},mx:{style:Rr},my:{style:Rr},margin:{style:Rr},marginTop:{style:Rr},marginRight:{style:Rr},marginBottom:{style:Rr},marginLeft:{style:Rr},marginX:{style:Rr},marginY:{style:Rr},marginInline:{style:Rr},marginInlineStart:{style:Rr},marginInlineEnd:{style:Rr},marginBlock:{style:Rr},marginBlockStart:{style:Rr},marginBlockEnd:{style:Rr},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:Ur},rowGap:{style:Kr},columnGap:{style:Yr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jr},maxWidth:{style:Qr},minWidth:{transform:Jr},height:{transform:Jr},maxHeight:{transform:Jr},minHeight:{transform:Jr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function oi(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=mr(n,s)||{};if(u)return u(i);return dr(i,t,t=>{let n=gr(c,l,t);return t===n&&"string"==typeof t&&(n=gr(c,l,`${e}${"default"===t?"":fr(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:i,theme:o={},nested:a}=n||{};if(!i)return null;const s=null!=(r=o.unstable_sxConfig)?r:ii;function l(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{});return n||{}}(o.breakpoints),l=Object.keys(i);let u=i;return Object.keys(r).forEach(n=>{const i=(a=r[n],l=o,"function"==typeof a?a(l):a);var a,l;if(null!=i)if("object"==typeof i)if(s[n])u=lr(u,e(n,i,o,s));else{const e=dr({theme:o},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?u=lr(u,e):u[n]=t({sx:i,theme:o,nested:!0})}else u=lr(u,e(n,i,o,s))}),!a&&o.modularCssLayers?{"@layer sx":pr(l,u)}:pr(l,u)}return Array.isArray(i)?i.map(l):l(i)}}const ai=oi();function si(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}ai.filterProps=["sx"];const li=["breakpoints","palette","spacing","shape"];function ui(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Oe(e,li),s=ar(n),l=function(e=8){if(e.mui)return e;const t=Ir({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(i);let u=rr({breakpoints:s,direction:"ltr",components:{},palette:Ae({mode:"light"},r),spacing:l,shape:Ae({},sr,o)},a);return u.applyStyles=si,u=t.reduce((e,t)=>rr(e,t),u),u.unstable_sxConfig=Ae({},ii,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ai({sx:e,theme:this})},u}var ci=Object.freeze({__proto__:null,default:ui,private_createBreakpoints:ar,unstable_applyStyles:si});function di(e=null){const t=n.useContext(vn);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const pi=ui();function fi(e=pi){return di(e)}function hi(e){const t=Qn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function mi({styles:e,themeId:t,defaultTheme:n={}}){const r=fi(n),i=t&&r[t]||r;let o="function"==typeof e?e(i):e;return i.modularCssLayers&&(o=Array.isArray(o)?o.map(e=>hi("function"==typeof e?e(i):e)):hi(o)),Yn.jsx(Xn,{styles:o})}const gi=["sx"];function vi(e){const{sx:t}=e,n=Oe(e,gi),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:ii;return Object.keys(e).forEach(t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return tr(n)?Ae({},r,n):r}:Ae({},r,t),Ae({},i,{sx:o})}var yi=Object.freeze({__proto__:null,default:ai,extendSxProp:vi,unstable_createStyleFunctionSx:oi,unstable_defaultSxConfig:ii});const bi=e=>e,xi=(()=>{let e=bi;return{configure(t){e=t},generate:t=>e(t),reset(){e=bi}}})();function Si(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Si(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wi(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Si(e))&&(r&&(r+=" "),r+=t);return r}const Ci=["className","component"];const Ei={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 Ii(e,t,n="Mui"){const r=Ei[t];return r?`${n}-${r}`:`${xi.generate(e)}-${t}`}function Di(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Ii(e,t,n)}),r}var Pi,Mi,Ri={exports:{}},ki={};function Li(){if(Pi)return ki;Pi=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case n:case i:case r:case l:case u:case p:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case c:case o:return f;default:return h}}case t:return h}}}return ki.ContextConsumer=o,ki.ContextProvider=a,ki.Element=e,ki.ForwardRef=s,ki.Fragment=n,ki.Lazy=d,ki.Memo=c,ki.Portal=t,ki.Profiler=i,ki.StrictMode=r,ki.Suspense=l,ki.SuspenseList=u,ki.isContextConsumer=function(e){return h(e)===o},ki.isContextProvider=function(e){return h(e)===a},ki.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},ki.isForwardRef=function(e){return h(e)===s},ki.isFragment=function(e){return h(e)===n},ki.isLazy=function(e){return h(e)===d},ki.isMemo=function(e){return h(e)===c},ki.isPortal=function(e){return h(e)===t},ki.isProfiler=function(e){return h(e)===i},ki.isStrictMode=function(e){return h(e)===r},ki.isSuspense=function(e){return h(e)===l},ki.isSuspenseList=function(e){return h(e)===u},ki.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===r||e===l||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===a||e.$$typeof===o||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},ki.typeOf=h,ki}function Ai(){return Mi||(Mi=1,Ri.exports=Li()),Ri.exports}var Oi=Ai();const Ti=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function qi(e){const t=`${e}`.match(Ti);return t&&t[1]||""}function _i(e,t=""){return e.displayName||e.name||qi(e)||t}function Ni(e,t,n){const r=_i(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var ji=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return _i(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Oi.ForwardRef:return Ni(e,e.render,"ForwardRef");case Oi.Memo:return Ni(e,e.type,"memo");default:return}}},getFunctionName:qi});function Fi(e,t){const n=Ae({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ae({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=Ae({},o),Object.keys(i).forEach(e=>{n[r][e]=Fi(i[e],o[e])})):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])}),n}const zi="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function Wi(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var $i=Object.freeze({__proto__:null,default:Wi});function Hi(e){if(e.type)return e;if("#"===e.charAt(0))return Hi(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Re(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Re(10,r))}else i=i.split(",");return i=i.map(e=>parseFloat(e)),{type:n,values:i,colorSpace:r}}function Vi(e,t){return e=Hi(e),t=function(e,t=0,n=1){return Wi(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function Bi(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Gi(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Ui(e){return e&&e.ownerDocument||document}function Yi(e){return Ui(e).defaultView||window}function Ki(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Xi=0;const Ji=n["useId".toString()];function Zi(e){if(void 0!==Ji){return Ji()}return function(e){const[t,r]=n.useState(e),i=t;return n.useEffect(()=>{null==t&&(Xi+=1,r(`mui-${Xi}`))},[t]),i}(e)}function Qi({controlled:e,default:t,name:r,state:i="value"}){const{current:o}=n.useRef(void 0!==e),[a,s]=n.useState(t);return[o?e:a,n.useCallback(e=>{o||s(e)},[])]}function eo(e){const t=n.useRef(e);return zi(()=>{t.current=e}),n.useRef((...e)=>(0,t.current)(...e)).current}function to(...e){return n.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{Ki(e,t)})},e)}const no={};const ro=[];class io{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new io}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function oo(){const e=function(e,t){const r=n.useRef(no);return r.current===no&&(r.current=e(t)),r}(io.create).current;return function(e){n.useEffect(e,ro)}(e.disposeEffect),e}let ao=!0,so=!1;const lo=new io,uo={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 co(e){e.metaKey||e.altKey||e.ctrlKey||(ao=!0)}function po(){ao=!1}function fo(){"hidden"===this.visibilityState&&so&&(ao=!0)}function ho(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ao||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!uo[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function mo(){const e=n.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",co,!0),t.addEventListener("mousedown",po,!0),t.addEventListener("pointerdown",po,!0),t.addEventListener("touchstart",po,!0),t.addEventListener("visibilitychange",fo,!0))},[]),t=n.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ho(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(so=!0,lo.start(100,()=>{so=!1}),t.current=!1,!0)},ref:e}}function go(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function vo(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function yo(e){return"string"==typeof e}function bo(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function xo(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}const So=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function wo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Oe(e,So),s=o?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,i),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const e=wi(null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),t=Ae({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),a=Ae({},n,i,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=bo(Ae({},i,r)),s=xo(r),l=xo(i),u=t(a),c=wi(null==u?void 0:u.className,null==n?void 0:n.className,o,null==i?void 0:i.className,null==r?void 0:r.className),d=Ae({},null==u?void 0:u.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),p=Ae({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Ae({},a,{externalSlotProps:s})),c=function(e,t,n){return void 0===e||yo(e)?t:Ae({},t,{ownerState:Ae({},t.ownerState,n)})}(n,Ae({},l,{ref:to(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),i);return c}function Co(e){var t;return parseInt(n.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Eo=n.createContext(null);function Io(){return n.useContext(Eo)}var Do="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Po(e){const{children:t,theme:r}=e,i=Io(),o=n.useMemo(()=>{const e=null===i?r:function(e,t){if("function"==typeof t)return t(e);return Ae({},e,t)}(i,r);return null!=e&&(e[Do]=null!==i),e},[r,i]);return Yn.jsx(Eo.Provider,{value:o,children:t})}const Mo=["value"],Ro=n.createContext();function ko(e){let{value:t}=e,n=Oe(e,Mo);return Yn.jsx(Ro.Provider,Ae({value:null==t||t},n))}const Lo=n.createContext(void 0);function Ao({value:e,children:t}){return Yn.jsx(Lo.Provider,{value:e,children:t})}function Oo({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Fi(i.defaultProps,r):i.styleOverrides||i.variants?r:Fi(i,r)}({props:e,name:t,theme:{components:n.useContext(Lo)}})}const To={};function qo(e,t,r,i=!1){return n.useMemo(()=>{const n=e&&t[e]||t;if("function"==typeof r){const o=r(n),a=e?Ae({},t,{[e]:o}):o;return i?()=>a:a}return Ae({},t,e?{[e]:r}:r)},[e,t,r,i])}function _o(e){const{children:t,theme:n,themeId:r}=e,i=di(To),o=Io()||To,a=qo(r,i,n),s=qo(r,o,n,!0),l="rtl"===a.direction,u=function(e){const t=di(),n=Zi()||"",{modularCssLayers:r}=e;let i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return i=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,i):`@layer ${i};`:"",zi(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(i){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const o=document.createElement("style");o.setAttribute("data-mui-layer-order",n),o.textContent=i,e.prepend(o)}else{var o;null==(o=e.querySelector(`style[data-mui-layer-order="${n}"]`))||o.remove()}},[i,n]),i?Yn.jsx(mi,{styles:i}):null}(a);return Yn.jsx(Po,{theme:s,children:Yn.jsx(vn.Provider,{value:a,children:Yn.jsx(ko,{value:l,children:Yn.jsxs(Ao,{value:null==a?void 0:a.components,children:[u,t]})})})})}function No(e){return No="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},No(e)}function jo(e){var t=function(e,t){if("object"!=No(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=No(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==No(t)?t:t+""}function Fo(e,t){return Ae({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var zo,Wo={},$o={exports:{}};function Ho(){return zo||(zo=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}($o)),$o.exports}var Vo,Bo=jt(ke),Go=jt($i);function Uo(){if(Vo)return Wo;Vo=1;var e=Ho();Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.alpha=c,Wo.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=o(e),l=o(t),u=[i(a.values[0],l.values[0]),i(a.values[1],l.values[1]),i(a.values[2],l.values[2])];return s({type:"rgb",values:u})},Wo.colorChannel=void 0,Wo.darken=d,Wo.decomposeColor=o,Wo.emphasize=f,Wo.getContrastRatio=function(e,t){const n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Wo.getLuminance=u,Wo.hexToRgb=i,Wo.hslToRgb=l,Wo.lighten=p,Wo.private_safeAlpha=function(e,t,n){try{return c(e,t)}catch(t){return e}},Wo.private_safeColorChannel=void 0,Wo.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},Wo.private_safeEmphasize=function(e,t,n){try{return f(e,t)}catch(t){return e}},Wo.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},Wo.recomposeColor=s,Wo.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=o(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 t=e(Bo),n=e(Go);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function i(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(i(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:r,values:s,colorSpace:a}}const a=e=>{const t=o(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};Wo.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=o(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),l=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1);let u="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),s({type:u,values:c})}function u(e){let t="hsl"===(e=o(e)).type||"hsla"===e.type?o(l(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 c(e,t){return e=o(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=o(e),t=r(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 n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=o(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function f(e,t=.15){return u(e)>.5?d(e,t):p(e,t)}return Wo.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},Wo}var Yo=Uo();const Ko=["mode","contrastThreshold","tonalOffset"],Xo={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}},Jo={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 Zo(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Yo.lighten(e.main,i):"dark"===t&&(e.dark=Yo.darken(e.main,o)))}function Qo(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Oe(e,Ko),o=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:ne,light:te,dark:ie}:{main:oe,light:re,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 Yo.getContrastRatio(e,Jo.text.primary)>=n?Jo.text.primary:Xo.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=Ae({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Re(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Re(12,t?` (${t})`:"",JSON.stringify(e.main)));return Zo(e,"light",i,r),Zo(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Jo,light:Xo};return rr(Ae({common:Ae({},K),mode:t,primary:p({color:o,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:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),i)}const ea=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ta={textTransform:"uppercase"},na='"Roboto", "Helvetica", "Arial", sans-serif';function ra(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=na,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Oe(n,ea),f=i/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,i,o)=>{return Ae({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===na?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5)+"em"}:{},o,c);var a},g={h1:m(o,96,1.167,-1.5),h2:m(o,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,ta),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ta),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return rr(Ae({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function ia(...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 oa=["none",ia(0,2,1,-1,0,1,1,0,0,1,3,0),ia(0,3,1,-2,0,2,2,0,0,1,5,0),ia(0,3,3,-2,0,3,4,0,0,1,8,0),ia(0,2,4,-1,0,4,5,0,0,1,10,0),ia(0,3,5,-1,0,5,8,0,0,1,14,0),ia(0,3,5,-1,0,6,10,0,0,1,18,0),ia(0,4,5,-2,0,7,10,1,0,2,16,1),ia(0,5,5,-3,0,8,10,1,0,3,14,2),ia(0,5,6,-3,0,9,12,1,0,3,16,2),ia(0,6,6,-3,0,10,14,1,0,4,18,3),ia(0,6,7,-4,0,11,15,1,0,4,20,3),ia(0,7,8,-4,0,12,17,2,0,5,22,4),ia(0,7,8,-4,0,13,19,2,0,5,24,4),ia(0,7,9,-4,0,14,21,2,0,5,26,4),ia(0,8,9,-5,0,15,22,2,0,6,28,5),ia(0,8,10,-5,0,16,24,2,0,6,30,5),ia(0,8,11,-5,0,17,26,2,0,6,32,5),ia(0,9,11,-5,0,18,28,2,0,7,34,6),ia(0,9,12,-6,0,19,29,2,0,7,36,6),ia(0,10,13,-6,0,20,31,3,0,8,38,7),ia(0,10,13,-6,0,21,33,3,0,8,40,7),ia(0,10,14,-6,0,22,35,3,0,8,42,7),ia(0,11,14,-7,0,23,36,3,0,9,44,8),ia(0,11,15,-7,0,24,38,3,0,9,46,8)],aa=["duration","easing","delay"],sa={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)"},la={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ua(e){return`${Math.round(e)}ms`}function ca(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function da(e){const t=Ae({},sa,e.easing),n=Ae({},la,e.duration);return Ae({getAutoHeightDuration:ca,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return Oe(r,aa),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof i?i:ua(i)} ${o} ${"string"==typeof a?a:ua(a)}`).join(",")}},e,{easing:t,duration:n})}const pa={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},fa=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ha(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Oe(e,fa);if(e.vars&&void 0===e.generateCssVars)throw new Error(Re(18));const s=Qo(r),l=ui(e);let u=rr(l,{mixins:Fo(l.breakpoints,n),palette:s,shadows:oa.slice(),typography:ra(s,o),transitions:da(i),zIndex:Ae({},pa)});return u=rr(u,a),u=t.reduce((e,t)=>rr(e,t),u),u.unstable_sxConfig=Ae({},ii,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ai({sx:e,theme:this})},u}const ma=ha();function ga(){const e=fi(ma);return e[Le]||e}var va,ya={},ba={exports:{}};function xa(){return va||(va=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 n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}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}(ba)),ba.exports}var Sa,wa={exports:{}};function Ca(){return Sa||(Sa=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(wa)),wa.exports}var Ea,Ia=jt(er),Da=jt(ir),Pa=jt(hr),Ma=jt(ji),Ra=jt(ci),ka=jt(yi);function La(){if(Ea)return ya;Ea=1;var e=Ho();Object.defineProperty(ya,"__esModule",{value:!0}),ya.default=function(e={}){const{themeId:o,defaultTheme:s=f,rootShouldForwardProp:l=d,slotShouldForwardProp:c=d}=e,p=e=>(0,a.default)((0,t.default)({},e,{theme:m((0,t.default)({},e,{defaultTheme:s,themeId:o}))}));return p.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:f,slot:y,skipVariantsResolver:b,skipSx:x,overridesResolver:S=g(h(y))}=a,w=(0,n.default)(a,u),C=f&&f.startsWith("Mui")||y?"components":"custom",E=void 0!==b?b:y&&"Root"!==y&&"root"!==y||!1,I=x||!1;let D=d;"Root"===y||"root"===y?D=l:y?D=c:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(D=void 0);const P=(0,r.default)(e,(0,t.default)({shouldForwardProp:D,label:void 0},w)),M=e=>"function"==typeof e&&e.__emotion_real!==e||(0,i.isPlainObject)(e)?n=>{const r=m({theme:n.theme,defaultTheme:s,themeId:o});return v(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?C:void 0)}:e,R=(n,...r)=>{let i=M(n);const a=r?r.map(M):[];f&&S&&a.push(e=>{const n=m((0,t.default)({},e,{defaultTheme:s,themeId:o}));if(!n.components||!n.components[f]||!n.components[f].styleOverrides)return null;const r=n.components[f].styleOverrides,i={};return Object.entries(r).forEach(([r,o])=>{i[r]=v(o,(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),S(e,i)}),f&&!E&&a.push(e=>{var n;const r=m((0,t.default)({},e,{defaultTheme:s,themeId:o}));return v({variants:null==r||null==(n=r.components)||null==(n=n[f])?void 0:n.variants},(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),I||a.push(p);const l=a.length-r.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");i=[...n,...e],i.raw=[...n.raw,...e]}const u=P(i,...a);return e.muiName&&(u.muiName=e.muiName),u};return P.withConfig&&(R.withConfig=P.withConfig),R}},ya.shouldForwardProp=d,ya.systemDefaultTheme=void 0;var t=e(xa()),n=e(Ca()),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(Ia),i=Da;e(Pa),e(Ma);var o=e(Ra),a=e(ka);const s=["ownerState"],l=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function p(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=ya.systemDefaultTheme=(0,o.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function v(e,i,o){let{ownerState:a}=i,u=(0,n.default)(i,s);const c="function"==typeof e?e((0,t.default)({ownerState:a},u)):e;if(Array.isArray(c))return c.flatMap(e=>v(e,(0,t.default)({ownerState:a},u),o));if(c&&"object"==typeof c&&Array.isArray(c.variants)){const{variants:e=[]}=c;let i=(0,n.default)(c,l);return e.forEach(e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,t.default)({ownerState:a},u,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&u[t]!==e.props[t]&&(n=!1)}),n){Array.isArray(i)||(i=[i]);const n="function"==typeof e.style?e.style((0,t.default)({ownerState:a},u,a)):e.style;i.push(o?p((0,r.internal_serializeStyles)(n),o):n)}}),i}return o?p((0,r.internal_serializeStyles)(c),o):c}return ya}function Aa(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Oa=e=>Aa(e)&&"classes"!==e,Ta=Nt(La())({themeId:Le,defaultTheme:ma,rootShouldForwardProp:Oa}),qa=["theme"];function _a(e){let{theme:t}=e,n=Oe(e,qa);const r=t[Le];let i=r||t;return"function"!=typeof t&&(r&&!r.vars?i=Ae({},r,{vars:null}):t&&!t.vars&&(i=Ae({},t,{vars:null}))),Yn.jsx(_o,Ae({},n,{themeId:r?Le:void 0,theme:i}))}const Na=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function ja(e){return Oo(e)}function Fa(e){return Ii("MuiSvgIcon",e)}Di("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const za=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Wa=Ta("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${fr(n.color)}`],t[`fontSize${fr(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,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==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,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]}}),$a=n.forwardRef(function(e,t){const r=ja({props:e,name:"MuiSvgIcon"}),{children:i,className:o,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,za),h=n.isValidElement(i)&&"svg"===i.type,m=Ae({},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:n,classes:r}=e;return vo({root:["root","inherit"!==t&&`color${fr(t)}`,`fontSize${fr(n)}`]},Fa,r)})(m);return Yn.jsxs(Wa,Ae({as:s,className:wi(v.root,o),focusable:"false",color:u,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},g,f,h&&i.props,{ownerState:m,children:[h?i.props.children:i,d?Yn.jsx("title",{children:d}):null]}))});function Ha(e,t){function r(n,r){return Yn.jsx($a,Ae({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return r.muiName=$a.muiName,n.memo(n.forwardRef(r))}function Va(e,t){return Va=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Va(e,t)}function Ba(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Va(e,t)}$a.muiName="SvgIcon";var Ga=!1,Ua=o.createContext(null),Ya="unmounted",Ka="exited",Xa="entering",Ja="entered",Za="exiting",Qa=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Ka,r.appearStatus=Xa):i=Ja:i=t.unmountOnExit||t.mountOnEnter?Ya:Ka,r.state={status:i},r.nextCallback=null,r}Ba(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ya?{status:Ka}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Xa&&n!==Ja&&(t=Xa):n!==Xa&&n!==Ja||(t=Za)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Xa){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ka&&this.setState({status:Ya})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[E.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Ga?this.safeSetState({status:Ja},function(){t.props.onEntered(o)}):(this.props.onEnter(o,a),this.safeSetState({status:Xa},function(){t.props.onEntering(o,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Ja},function(){t.props.onEntered(o,a)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:E.findDOMNode(this);t&&!Ga?(this.props.onExit(r),this.safeSetState({status:Za},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Ka},function(){e.props.onExited(r)})})})):this.safeSetState({status:Ka},function(){e.props.onExited(r)})},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,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ya)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 r=Oe(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return o.createElement(Ua.Provider,{value:null},"function"==typeof n?n(e,r):o.cloneElement(o.Children.only(n),r))},t}(o.Component);function es(){}function ts(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ns(e,t){var n=Object.create(null);return e&&l.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&a(e)?t(e):e}(e)}),n}function rs(e,t,n){return null!=n[t]?n[t]:e.props[t]}function is(e,t,n){var r=ns(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach(function(o){var l=i[o];if(a(l)){var u=o in t,c=o in r,d=t[o],p=a(d)&&!d.props.in;!c||u&&!p?c||!u||p?c&&u&&a(d)&&(i[o]=s(l,{onExited:n.bind(null,l),in:d.props.in,exit:rs(l,"exit",e),enter:rs(l,"enter",e)})):i[o]=s(l,{in:!1}):i[o]=s(l,{onExited:n.bind(null,l),in:!0,exit:rs(l,"exit",e),enter:rs(l,"enter",e)})}}),i}Qa.contextType=Ua,Qa.propTypes={},Qa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:es,onEntering:es,onEntered:es,onExit:es,onExiting:es,onExited:es},Qa.UNMOUNTED=Ya,Qa.EXITED=Ka,Qa.ENTERING=Xa,Qa.ENTERED=Ja,Qa.EXITING=Za;var os=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},as=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(ts(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Ba(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 n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,ns(n.children,function(e){return s(e,{onExited:r.bind(null,e),in:!0,appear:rs(e,"appear",n),enter:rs(e,"enter",n),exit:rs(e,"exit",n)})})):is(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=ns(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Ae({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Oe(e,["component","childFactory"]),i=this.state.contextValue,a=os(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(Ua.Provider,{value:i},a):o.createElement(Ua.Provider,{value:i},o.createElement(t,r,a))},t}(o.Component);as.propTypes={},as.defaultProps={component:"div",childFactory:function(e){return e}};const ss=e=>e.scrollTop;function ls(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof i?i:i[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof o?o[t.mode]:o,delay:a.transitionDelay}}function us(e){return Ii("MuiPaper",e)}Di("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 cs=["className","component","elevation","square","variant"],ds=Ta("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return Ae({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&&Ae({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Yo.alpha("#fff",Na(t.elevation))}, ${Yo.alpha("#fff",Na(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),ps=n.forwardRef(function(e,t){const n=ja({props:e,name:"MuiPaper"}),{className:r,component:i="div",elevation:o=1,square:a=!1,variant:s="elevation"}=n,l=Oe(n,cs),u=Ae({},n,{component:i,elevation:o,square:a,variant:s}),c=(e=>{const{square:t,elevation:n,variant:r,classes:i}=e;return vo({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},us,i)})(u);return Yn.jsx(ds,Ae({as:i,ownerState:u,className:wi(c.root,r),ref:t},l))});const fs=Di("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),hs=["center","classes","className"];let ms,gs,vs,ys,bs=e=>e;const xs=Dn(ms||(ms=bs`
|
|
14
|
+
*/
|
|
15
|
+
function Br(e,t){let n;return n=t?Dr(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Dr(e),n}function Gr(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Ur(e){return e}Vr.propTypes={defaultTheme:$r.object,styles:$r.oneOfType([$r.array,$r.string,$r.object,$r.func])};var Yr=Object.freeze({__proto__:null,GlobalStyles:Vr,StyledEngineProvider:Hr,ThemeContext:mr,css:Cr,default:Br,internal_mutateStyles:Gr,internal_processStyles:function(e,t){return Gr(e,t)},internal_serializeStyles:Ur,keyframes:Ar});function Kr(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 Xr(e){if(o.isValidElement(e)||!Kr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Xr(e[n])}),t}function Jr(e,t,n={clone:!0}){const r=n.clone?qe({},e):e;return Kr(e)&&Kr(t)&&Object.keys(t).forEach(i=>{o.isValidElement(t[i])?r[i]=t[i]:Kr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Kr(e[i])?r[i]=Jr(e[i],t[i],n):n.clone?r[i]=Kr(t[i])?Xr(t[i]):t[i]:r[i]=t[i]}),r}var Zr=Object.freeze({__proto__:null,default:Jr,isPlainObject:Kr});const Qr=["values","unit","step"];function eo(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ke(e,Qr),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)=>qe({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return qe({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(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]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const to={borderRadius:4};function no(e,t){return t?Jr(e,t,{clone:!1}):e}const ro={xs:0,sm:600,md:900,lg:1200,xl:1536},oo={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ro[e]}px)`};function io(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||oo;return t.reduce((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r),{})}if("object"==typeof t){const e=r.breakpoints||oo;return Object.keys(t).reduce((r,o)=>{if(-1!==Object.keys(e.values||ro).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r},{})}return n(t)}function ao(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function so(e){if("string"!=typeof e)throw new Error(Me(7));return e.charAt(0).toUpperCase()+e.slice(1)}var lo=Object.freeze({__proto__:null,default:so});function co(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function uo(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:co(e,n)||r,t&&(o=t(o,r,e)),o}function po(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=co(e.theme,r)||{};return io(e,i,e=>{let r=uo(a,o,e);return e===r&&"string"==typeof e&&(r=uo(a,o,`${t}${"default"===e?"":so(e)}`,e)),!1===n?r:{[n]:r}})};return i.propTypes={},i.filterProps=[t],i}const fo={m:"margin",p:"padding"},ho={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},mo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},go=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!mo[e])return[e];e=mo[e]}const[t,n]=e.split(""),r=fo[t],o=ho[n]||"";return Array.isArray(o)?o.map(e=>r+e):[r+o]}),vo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function yo(e,t,n,r){var o;const i=null!=(o=co(e,t,!1))?o:n;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 xo(e){return yo(e,"spacing",8)}function So(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function wo(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce((e,r)=>(e[r]=So(t,n),e),{})}(go(n),r);return io(e,e[n],o)}function Co(e,t){const n=xo(e.theme);return Object.keys(e).map(r=>wo(e,t,r,n)).reduce(no,{})}function Eo(e){return Co(e,vo)}function Io(e){return Co(e,bo)}function Do(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?no(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Ro(e){return"number"!=typeof e?e:`${e}px solid`}function Lo(e,t){return po({prop:e,themeKey:"borders",transform:t})}Eo.propTypes={},Eo.filterProps=vo,Io.propTypes={},Io.filterProps=bo;const Mo=Lo("border",Ro),Ao=Lo("borderTop",Ro),Po=Lo("borderRight",Ro),qo=Lo("borderBottom",Ro),ko=Lo("borderLeft",Ro),To=Lo("borderColor"),Oo=Lo("borderTopColor"),No=Lo("borderRightColor"),jo=Lo("borderBottomColor"),_o=Lo("borderLeftColor"),Fo=Lo("outline",Ro),zo=Lo("outlineColor"),Wo=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=yo(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:So(t,e)});return io(e,e.borderRadius,n)}return null};Wo.propTypes={},Wo.filterProps=["borderRadius"],Do(Mo,Ao,Po,qo,ko,To,Oo,No,jo,_o,Wo,Fo,zo);const $o=e=>{if(void 0!==e.gap&&null!==e.gap){const t=yo(e.theme,"spacing",8),n=e=>({gap:So(t,e)});return io(e,e.gap,n)}return null};$o.propTypes={},$o.filterProps=["gap"];const Ho=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=yo(e.theme,"spacing",8),n=e=>({columnGap:So(t,e)});return io(e,e.columnGap,n)}return null};Ho.propTypes={},Ho.filterProps=["columnGap"];const Vo=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=yo(e.theme,"spacing",8),n=e=>({rowGap:So(t,e)});return io(e,e.rowGap,n)}return null};Vo.propTypes={},Vo.filterProps=["rowGap"];function Bo(e,t){return"grey"===t?t:e}Do($o,Ho,Vo,po({prop:"gridColumn"}),po({prop:"gridRow"}),po({prop:"gridAutoFlow"}),po({prop:"gridAutoColumns"}),po({prop:"gridAutoRows"}),po({prop:"gridTemplateColumns"}),po({prop:"gridTemplateRows"}),po({prop:"gridTemplateAreas"}),po({prop:"gridArea"}));function Go(e){return e<=1&&0!==e?100*e+"%":e}Do(po({prop:"color",themeKey:"palette",transform:Bo}),po({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bo}),po({prop:"backgroundColor",themeKey:"palette",transform:Bo}));const Uo=po({prop:"width",transform:Go}),Yo=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||ro[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Go(t)}};return io(e,e.maxWidth,t)}return null};Yo.filterProps=["maxWidth"];const Ko=po({prop:"minWidth",transform:Go}),Xo=po({prop:"height",transform:Go}),Jo=po({prop:"maxHeight",transform:Go}),Zo=po({prop:"minHeight",transform:Go});po({prop:"size",cssProperty:"width",transform:Go}),po({prop:"size",cssProperty:"height",transform:Go});Do(Uo,Yo,Ko,Xo,Jo,Zo,po({prop:"boxSizing"}));const Qo={border:{themeKey:"borders",transform:Ro},borderTop:{themeKey:"borders",transform:Ro},borderRight:{themeKey:"borders",transform:Ro},borderBottom:{themeKey:"borders",transform:Ro},borderLeft:{themeKey:"borders",transform:Ro},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ro},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wo},color:{themeKey:"palette",transform:Bo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bo},backgroundColor:{themeKey:"palette",transform:Bo},p:{style:Io},pt:{style:Io},pr:{style:Io},pb:{style:Io},pl:{style:Io},px:{style:Io},py:{style:Io},padding:{style:Io},paddingTop:{style:Io},paddingRight:{style:Io},paddingBottom:{style:Io},paddingLeft:{style:Io},paddingX:{style:Io},paddingY:{style:Io},paddingInline:{style:Io},paddingInlineStart:{style:Io},paddingInlineEnd:{style:Io},paddingBlock:{style:Io},paddingBlockStart:{style:Io},paddingBlockEnd:{style:Io},m:{style:Eo},mt:{style:Eo},mr:{style:Eo},mb:{style:Eo},ml:{style:Eo},mx:{style:Eo},my:{style:Eo},margin:{style:Eo},marginTop:{style:Eo},marginRight:{style:Eo},marginBottom:{style:Eo},marginLeft:{style:Eo},marginX:{style:Eo},marginY:{style:Eo},marginInline:{style:Eo},marginInlineStart:{style:Eo},marginInlineEnd:{style:Eo},marginBlock:{style:Eo},marginBlockStart:{style:Eo},marginBlockEnd:{style:Eo},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:$o},rowGap:{style:Vo},columnGap:{style:Ho},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Go},maxWidth:{style:Yo},minWidth:{transform:Go},height:{transform:Go},maxHeight:{transform:Go},minHeight:{transform:Go},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ei(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=co(n,s)||{};if(c)return c(o);return io(o,t,t=>{let n=uo(u,l,t);return t===n&&"string"==typeof t&&(n=uo(u,l,`${e}${"default"===t?"":so(t)}`,t)),!1===a?n:{[a]:n}})}return function t(n){var r;const{sx:o,theme:i={},nested:a}=n||{};if(!o)return null;const s=null!=(r=i.unstable_sxConfig)?r:Qo;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,n)=>(t[e.up(n)]={},t),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(r).forEach(n=>{const o=(a=r[n],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[n])c=no(c,e(n,o,i,s));else{const e=io({theme:i},o,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,o)?c=no(c,e):c[n]=t({sx:o,theme:i,nested:!0})}else c=no(c,e(n,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":ao(l,c)}:ao(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const ti=ei();function ni(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}ti.filterProps=["sx"];const ri=["breakpoints","palette","spacing","shape"];function oi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ke(e,ri),s=eo(n),l=function(e=8){if(e.mui)return e;const t=xo({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(o);let c=Jr({breakpoints:s,direction:"ltr",components:{},palette:qe({mode:"light"},r),spacing:l,shape:qe({},to,i)},a);return c.applyStyles=ni,c=t.reduce((e,t)=>Jr(e,t),c),c.unstable_sxConfig=qe({},Qo,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ti({sx:e,theme:this})},c}var ii=Object.freeze({__proto__:null,default:oi,private_createBreakpoints:eo,unstable_applyStyles:ni});function ai(e=null){const t=o.useContext(mr);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const si=oi();function li(e=si){return ai(e)}var ci,ui,di={exports:{}},pi={};var fi=(ui||(ui=1,di.exports=function(){if(ci)return pi;ci=1;var e=n,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,r){var s,l={},c=null,u=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)o.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:i.current}}return pi.Fragment=r,pi.jsx=s,pi.jsxs=s,pi}()),di.exports);function hi(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function mi({styles:e,themeId:t,defaultTheme:n={}}){const r=li(n),o=t&&r[t]||r;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>hi("function"==typeof e?e(o):e)):hi(i)),fi.jsx(Vr,{styles:i})}const gi=["sx"];function vi(e){const{sx:t}=e,n=ke(e,gi),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Qo;return Object.keys(e).forEach(t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]}),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Kr(n)?qe({},r,n):r}:qe({},r,t),qe({},o,{sx:i})}var bi=Object.freeze({__proto__:null,default:ti,extendSxProp:vi,unstable_createStyleFunctionSx:ei,unstable_defaultSxConfig:Qo});const yi=e=>e,xi=(()=>{let e=yi;return{configure(t){e=t},generate:t=>e(t),reset(){e=yi}}})();function Si(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Si(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wi(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Si(e))&&(r&&(r+=" "),r+=t);return r}const Ci=["className","component"];const Ei={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 Ii(e,t,n="Mui"){const r=Ei[t];return r?`${n}-${r}`:`${xi.generate(e)}-${t}`}function Di(e,t,n="Mui"){const r={};return t.forEach(t=>{r[t]=Ii(e,t,n)}),r}var Ri,Li,Mi={exports:{}},Ai={};function Pi(){if(Ri)return Ai;Ri=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(f){if("object"==typeof f&&null!==f){var h=f.$$typeof;switch(h){case e:switch(f=f.type){case n:case o:case r:case l:case c:case p:return f;default:switch(f=f&&f.$$typeof){case a:case s:case d:case u:case i:return f;default:return h}}case t:return h}}}return Ai.ContextConsumer=i,Ai.ContextProvider=a,Ai.Element=e,Ai.ForwardRef=s,Ai.Fragment=n,Ai.Lazy=d,Ai.Memo=u,Ai.Portal=t,Ai.Profiler=o,Ai.StrictMode=r,Ai.Suspense=l,Ai.SuspenseList=c,Ai.isContextConsumer=function(e){return h(e)===i},Ai.isContextProvider=function(e){return h(e)===a},Ai.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ai.isForwardRef=function(e){return h(e)===s},Ai.isFragment=function(e){return h(e)===n},Ai.isLazy=function(e){return h(e)===d},Ai.isMemo=function(e){return h(e)===u},Ai.isPortal=function(e){return h(e)===t},Ai.isProfiler=function(e){return h(e)===o},Ai.isStrictMode=function(e){return h(e)===r},Ai.isSuspense=function(e){return h(e)===l},Ai.isSuspenseList=function(e){return h(e)===c},Ai.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},Ai.typeOf=h,Ai}function qi(){return Li||(Li=1,Mi.exports=Pi()),Mi.exports}var ki=qi();const Ti=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Oi(e){const t=`${e}`.match(Ti);return t&&t[1]||""}function Ni(e,t=""){return e.displayName||e.name||Oi(e)||t}function ji(e,t,n){const r=Ni(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var _i=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ni(e,"Component");if("object"==typeof e)switch(e.$$typeof){case ki.ForwardRef:return ji(e,e.render,"ForwardRef");case ki.Memo:return ji(e,e.type,"memo");default:return}}},getFunctionName:Oi});function Fi(e,t){const n=qe({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=qe({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=qe({},i),Object.keys(o).forEach(e=>{n[r][e]=Fi(o[e],i[e])})):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])}),n}const zi="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function Wi(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var $i=Object.freeze({__proto__:null,default:Wi});function Hi(e){if(e.type)return e;if("#"===e.charAt(0))return Hi(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Me(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=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(r))throw new Error(Me(10,r))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:n,values:o,colorSpace:r}}function Vi(e,t){return e=Hi(e),t=function(e,t=0,n=1){return Wi(e,t,n)}(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:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}function Bi(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function Gi(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Ui(e){return e&&e.ownerDocument||document}function Yi(e){return Ui(e).defaultView||window}function Ki(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Xi=0;const Ji=o["useId".toString()];function Zi(e){if(void 0!==Ji){return Ji()}return function(e){const[t,n]=o.useState(e),r=t;return o.useEffect(()=>{null==t&&(Xi+=1,n(`mui-${Xi}`))},[t]),r}(e)}function Qi({controlled:e,default:t,name:n,state:r="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 ea(e){const t=o.useRef(e);return zi(()=>{t.current=e}),o.useRef((...e)=>(0,t.current)(...e)).current}function ta(...e){return o.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{Ki(e,t)})},e)}const na={};const ra=[];class oa{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new oa}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function ia(){const e=function(e,t){const n=o.useRef(na);return n.current===na&&(n.current=e(t)),n}(oa.create).current;return function(e){o.useEffect(e,ra)}(e.disposeEffect),e}let aa=!0,sa=!1;const la=new oa,ca={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 ua(e){e.metaKey||e.altKey||e.ctrlKey||(aa=!0)}function da(){aa=!1}function pa(){"hidden"===this.visibilityState&&sa&&(aa=!0)}function fa(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return aa||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ca[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function ha(){const e=o.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ua,!0),t.addEventListener("mousedown",da,!0),t.addEventListener("pointerdown",da,!0),t.addEventListener("touchstart",da,!0),t.addEventListener("visibilitychange",pa,!0))},[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!fa(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(sa=!0,la.start(100,()=>{sa=!1}),t.current=!1,!0)},ref:e}}function ma(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ga(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e},[]).join(" ")}),r}function va(e){return"string"==typeof e}function ba(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function ya(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}const xa=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Sa(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ke(e,xa),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=wi(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=qe({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=qe({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=ba(qe({},o,r)),s=ya(r),l=ya(o),c=t(a),u=wi(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=qe({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=qe({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(qe({},a,{externalSlotProps:s})),u=function(e,t,n){return void 0===e||va(e)?t:qe({},t,{ownerState:qe({},t.ownerState,n)})}(n,qe({},l,{ref:ta(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return u}function wa(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 Ca=o.createContext(null);function Ea(){return o.useContext(Ca)}var Ia="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Da(e){const{children:t,theme:n}=e,r=Ea(),i=o.useMemo(()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return qe({},e,t)}(r,n);return null!=e&&(e[Ia]=null!==r),e},[n,r]);return fi.jsx(Ca.Provider,{value:i,children:t})}const Ra=["value"],La=o.createContext();function Ma(e){let{value:t}=e,n=ke(e,Ra);return fi.jsx(La.Provider,qe({value:null==t||t},n))}const Aa=o.createContext(void 0);function Pa({value:e,children:t}){return fi.jsx(Aa.Provider,{value:e,children:t})}function qa({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Fi(o.defaultProps,r):o.styleOverrides||o.variants?r:Fi(o,r)}({props:e,name:t,theme:{components:o.useContext(Aa)}})}const ka={};function Ta(e,t,n,r=!1){return o.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?qe({},t,{[e]:i}):i;return r?()=>a:a}return qe({},t,e?{[e]:n}:n)},[e,t,n,r])}function Oa(e){const{children:t,theme:n,themeId:r}=e,o=ai(ka),i=Ea()||ka,a=Ta(r,o,n),s=Ta(r,i,n,!0),l="rtl"===a.direction,c=function(e){const t=ai(),n=Zi()||"",{modularCssLayers:r}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=r&&null===t?"string"==typeof r?r.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",zi(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var r;if(t&&null!=(r=t.hasAttribute)&&r.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===n)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",n),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${n}"]`))||i.remove()}},[o,n]),o?fi.jsx(mi,{styles:o}):null}(a);return fi.jsx(Da,{theme:s,children:fi.jsx(mr.Provider,{value:a,children:fi.jsx(Ma,{value:l,children:fi.jsxs(Pa,{value:null==a?void 0:a.components,children:[c,t]})})})})}var Na,ja={},_a={exports:{}};function Fa(){return Na||(Na=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(_a)),_a.exports}var za,Wa=qr(Ae),$a=qr($i);function Ha(){if(za)return ja;za=1;var e=Fa();Object.defineProperty(ja,"__esModule",{value:!0}),ja.alpha=u,ja.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(e),l=i(t),c=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return s({type:"rgb",values:c})},ja.colorChannel=void 0,ja.darken=d,ja.decomposeColor=i,ja.emphasize=f,ja.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},ja.getLuminance=c,ja.hexToRgb=o,ja.hslToRgb=l,ja.lighten=p,ja.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},ja.private_safeColorChannel=void 0,ja.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},ja.private_safeEmphasize=function(e,t,n){try{return f(e,t)}catch(t){return e}},ja.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},ja.recomposeColor=s,ja.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=i(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 t=e(Wa),n=e($a);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let a,s=e.substring(n+1,e.length-1);if("color"===r){if(s=s.split(" "),a=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,t.default)(10,a))}else s=s.split(",");return s=s.map(e=>parseFloat(e)),{type:r,values:s,colorSpace:a}}const a=e=>{const t=i(e);return t.values.slice(0,3).map((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e).join(" ")};ja.colorChannel=a;function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function l(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),s({type:c,values:u})}function c(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(l(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 u(e,t){return e=i(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function d(e,t){if(e=i(e),t=r(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 n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function p(e,t){if(e=i(e),t=r(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}function f(e,t=.15){return c(e)>.5?d(e,t):p(e,t)}return ja.private_safeColorChannel=(e,t)=>{try{return a(e)}catch(t){return e}},ja}var Va=Ha();const Ba=["mode","contrastThreshold","tonalOffset"],Ga={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}},Ua={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 Ya(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Va.lighten(e.main,o):"dark"===t&&(e.dark=Va.darken(e.main,i)))}function Ka(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ke(e,Ba),i=e.primary||function(e="light"){return"dark"===e?{main:le,light:se,dark:ce}:{main:ue,light:ce,dark:de}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ne,light:te,dark:oe}:{main:ie,light:re,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),c=e.success||function(e="light"){return"dark"===e?{main:be,light:ve,dark:xe}:{main:Se,light:ye,dark:we}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Ee,light:Ce,dark:De}:{main:"#ed6c02",light:Ie,dark:Re}}(t);function d(e){return Va.getContrastRatio(e,Ua.text.primary)>=n?Ua.text.primary:Ga.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=qe({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Me(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Me(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ya(e,"light",o,r),Ya(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ua,light:Ga};return Jr(qe({common:qe({},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:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Le,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Xa=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ja={textTransform:"uppercase"},Za='"Roboto", "Helvetica", "Arial", sans-serif';function Qa(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Za,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=ke(n,Xa),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>{return qe({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Za?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);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,Ja),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ja),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jr(qe({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function es(...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 ts=["none",es(0,2,1,-1,0,1,1,0,0,1,3,0),es(0,3,1,-2,0,2,2,0,0,1,5,0),es(0,3,3,-2,0,3,4,0,0,1,8,0),es(0,2,4,-1,0,4,5,0,0,1,10,0),es(0,3,5,-1,0,5,8,0,0,1,14,0),es(0,3,5,-1,0,6,10,0,0,1,18,0),es(0,4,5,-2,0,7,10,1,0,2,16,1),es(0,5,5,-3,0,8,10,1,0,3,14,2),es(0,5,6,-3,0,9,12,1,0,3,16,2),es(0,6,6,-3,0,10,14,1,0,4,18,3),es(0,6,7,-4,0,11,15,1,0,4,20,3),es(0,7,8,-4,0,12,17,2,0,5,22,4),es(0,7,8,-4,0,13,19,2,0,5,24,4),es(0,7,9,-4,0,14,21,2,0,5,26,4),es(0,8,9,-5,0,15,22,2,0,6,28,5),es(0,8,10,-5,0,16,24,2,0,6,30,5),es(0,8,11,-5,0,17,26,2,0,6,32,5),es(0,9,11,-5,0,18,28,2,0,7,34,6),es(0,9,12,-6,0,19,29,2,0,7,36,6),es(0,10,13,-6,0,20,31,3,0,8,38,7),es(0,10,13,-6,0,21,33,3,0,8,40,7),es(0,10,14,-6,0,22,35,3,0,8,42,7),es(0,11,14,-7,0,23,36,3,0,9,44,8),es(0,11,15,-7,0,24,38,3,0,9,46,8)],ns=["duration","easing","delay"],rs={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)"},os={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function is(e){return`${Math.round(e)}ms`}function as(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ss(e){const t=qe({},rs,e.easing),n=qe({},os,e.duration);return qe({getAutoHeightDuration:as,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return ke(r,ns),(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:n})}const ls={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},cs=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function us(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ke(e,cs);if(e.vars&&void 0===e.generateCssVars)throw new Error(Me(18));const s=Ka(r),l=oi(e);let c=Jr(l,{mixins:(u=l.breakpoints,d=n,qe({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:ts.slice(),typography:Qa(s,i),transitions:ss(o),zIndex:qe({},ls)});var u,d;return c=Jr(c,a),c=t.reduce((e,t)=>Jr(e,t),c),c.unstable_sxConfig=qe({},Qo,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return ti({sx:e,theme:this})},c}const ds=us();function ps(){const e=li(ds);return e[Pe]||e}var fs,hs={},ms={exports:{}};var gs,vs={exports:{}};var bs,ys=qr(Yr),xs=qr(Zr),Ss=qr(lo),ws=qr(_i),Cs=qr(ii),Es=qr(bi);function Is(){if(bs)return hs;bs=1;var e=Fa();Object.defineProperty(hs,"__esModule",{value:!0}),hs.default=function(e={}){const{themeId:i,defaultTheme:s=f,rootShouldForwardProp:l=d,slotShouldForwardProp:u=d}=e,p=e=>(0,a.default)((0,t.default)({},e,{theme:m((0,t.default)({},e,{defaultTheme:s,themeId:i}))}));return p.__mui_systemSx=!0,(e,a={})=>{(0,r.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:f,slot:b,skipVariantsResolver:y,skipSx:x,overridesResolver:S=g(h(b))}=a,w=(0,n.default)(a,c),C=f&&f.startsWith("Mui")||b?"components":"custom",E=void 0!==y?y:b&&"Root"!==b&&"root"!==b||!1,I=x||!1;let D=d;"Root"===b||"root"===b?D=l:b?D=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(D=void 0);const R=(0,r.default)(e,(0,t.default)({shouldForwardProp:D,label:void 0},w)),L=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>{const r=m({theme:n.theme,defaultTheme:s,themeId:i});return v(e,(0,t.default)({},n,{theme:r}),r.modularCssLayers?C:void 0)}:e,M=(n,...r)=>{let o=L(n);const a=r?r.map(L):[];f&&S&&a.push(e=>{const n=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));if(!n.components||!n.components[f]||!n.components[f].styleOverrides)return null;const r=n.components[f].styleOverrides,o={};return Object.entries(r).forEach(([r,i])=>{o[r]=v(i,(0,t.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),S(e,o)}),f&&!E&&a.push(e=>{var n;const r=m((0,t.default)({},e,{defaultTheme:s,themeId:i}));return v({variants:null==r||null==(n=r.components)||null==(n=n[f])?void 0:n.variants},(0,t.default)({},e,{theme:r}),r.modularCssLayers?"theme":void 0)}),I||a.push(p);const l=a.length-r.length;if(Array.isArray(n)&&l>0){const e=new Array(l).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const c=R(o,...a);return e.muiName&&(c.muiName=e.muiName),c};return R.withConfig&&(M.withConfig=R.withConfig),M}},hs.shouldForwardProp=d,hs.systemDefaultTheme=void 0;var t=e((fs||(fs=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 n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}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}(ms)),ms.exports)),n=e((gs||(gs=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(vs)),vs.exports)),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__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(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(ys),o=xs;e(Ss),e(ws);var i=e(Cs),a=e(Es);const s=["ownerState"],l=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function p(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const f=hs.systemDefaultTheme=(0,i.default)(),h=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e){return e?(t,n)=>n[e]:null}function v(e,o,i){let{ownerState:a}=o,c=(0,n.default)(o,s);const u="function"==typeof e?e((0,t.default)({ownerState:a},c)):e;if(Array.isArray(u))return u.flatMap(e=>v(e,(0,t.default)({ownerState:a},c),i));if(u&&"object"==typeof u&&Array.isArray(u.variants)){const{variants:e=[]}=u;let o=(0,n.default)(u,l);return e.forEach(e=>{let n=!0;if("function"==typeof e.props?n=e.props((0,t.default)({ownerState:a},c,a)):Object.keys(e.props).forEach(t=>{(null==a?void 0:a[t])!==e.props[t]&&c[t]!==e.props[t]&&(n=!1)}),n){Array.isArray(o)||(o=[o]);const n="function"==typeof e.style?e.style((0,t.default)({ownerState:a},c,a)):e.style;o.push(i?p((0,r.internal_serializeStyles)(n),i):n)}}),o}return i?p((0,r.internal_serializeStyles)(u),i):u}return hs}function Ds(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Rs=e=>Ds(e)&&"classes"!==e,Ls=Pr(Is())({themeId:Pe,defaultTheme:ds,rootShouldForwardProp:Rs}),Ms=["theme"];function As(e){let{theme:t}=e,n=ke(e,Ms);const r=t[Pe];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=qe({},r,{vars:null}):t&&!t.vars&&(o=qe({},t,{vars:null}))),fi.jsx(Oa,qe({},n,{themeId:r?Pe:void 0,theme:o}))}const Ps=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function qs(e){return qa(e)}function ks(e){return Ii("MuiSvgIcon",e)}Di("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ts=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Os=Ls("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${so(n.color)}`],t[`fontSize${so(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"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==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,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]}}),Ns=o.forwardRef(function(e,t){const n=qs({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24"}=n,f=ke(n,Ts),h=o.isValidElement(r)&&"svg"===r.type,m=qe({},n,{color:a,component:s,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:h}),g={};u||(g.viewBox=p);const v=(e=>{const{color:t,fontSize:n,classes:r}=e;return ga({root:["root","inherit"!==t&&`color${so(t)}`,`fontSize${so(n)}`]},ks,r)})(m);return fi.jsxs(Os,qe({as:s,className:wi(v.root,i),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:t},g,f,h&&r.props,{ownerState:m,children:[h?r.props.children:r,d?fi.jsx("title",{children:d}):null]}))});function js(e,t){function n(n,r){return fi.jsx(Ns,qe({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Ns.muiName,o.memo(o.forwardRef(n))}function _s(e,t){return _s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_s(e,t)}function Fs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_s(e,t)}Ns.muiName="SvgIcon";var zs=!1,Ws=n.createContext(null),$s="unmounted",Hs="exited",Vs="entering",Bs="entered",Gs="exiting",Us=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Hs,r.appearStatus=Vs):o=Bs:o=t.unmountOnExit||t.mountOnEnter?$s:Hs,r.state={status:o},r.nextCallback=null,r}Fs(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===$s?{status:Hs}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Vs&&n!==Bs&&(t=Vs):n!==Vs&&n!==Bs||(t=Gs)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Vs){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Hs&&this.setState({status:$s})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[E.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||zs?this.safeSetState({status:Bs},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Vs},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Bs},function(){t.props.onEntered(i,a)})})}))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:E.findDOMNode(this);t&&!zs?(this.props.onExit(r),this.safeSetState({status:Gs},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Hs},function(){e.props.onExited(r)})})})):this.safeSetState({status:Hs},function(){e.props.onExited(r)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:E.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===$s)return null;var t=this.props,r=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=ke(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return n.createElement(Ws.Provider,{value:null},"function"==typeof r?r(e,o):n.cloneElement(n.Children.only(r),o))},t}(n.Component);function Ys(){}function Ks(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xs(e,t){var n=Object.create(null);return e&&s.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&i(e)?t(e):e}(e)}),n}function Js(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Zs(e,t,n){var r=Xs(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,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(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach(function(s){var l=o[s];if(i(l)){var c=s in t,u=s in r,d=t[s],p=i(d)&&!d.props.in;!u||c&&!p?u||!c||p?u&&c&&i(d)&&(o[s]=a(l,{onExited:n.bind(null,l),in:d.props.in,exit:Js(l,"exit",e),enter:Js(l,"enter",e)})):o[s]=a(l,{in:!1}):o[s]=a(l,{onExited:n.bind(null,l),in:!0,exit:Js(l,"exit",e),enter:Js(l,"enter",e)})}}),o}Us.contextType=Ws,Us.propTypes={},Us.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ys,onEntering:Ys,onEntered:Ys,onExit:Ys,onExiting:Ys,onExited:Ys},Us.UNMOUNTED=$s,Us.EXITED=Hs,Us.ENTERING=Vs,Us.ENTERED=Bs,Us.EXITING=Gs;var Qs=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},el=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ks(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Fs(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Xs(n.children,function(e){return a(e,{onExited:r.bind(null,e),in:!0,appear:Js(e,"appear",n),enter:Js(e,"enter",n),exit:Js(e,"exit",n)})})):Zs(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var n=Xs(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=qe({},t.children);return delete n[e.key],{children:n}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,o=ke(e,["component","childFactory"]),i=this.state.contextValue,a=Qs(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===t?n.createElement(Ws.Provider,{value:i},a):n.createElement(Ws.Provider,{value:i},n.createElement(t,o,a))},t}(n.Component);el.propTypes={},el.defaultProps={component:"div",childFactory:function(e){return e}};const tl=e=>e.scrollTop;function nl(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function rl(e){return Ii("MuiPaper",e)}Di("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 ol=["className","component","elevation","square","variant"],il=Ls("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return qe({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&&qe({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Va.alpha("#fff",Ps(t.elevation))}, ${Va.alpha("#fff",Ps(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}),al=o.forwardRef(function(e,t){const n=qs({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=ke(n,ol),c=qe({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return ga({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},rl,o)})(c);return fi.jsx(il,qe({as:o,ownerState:c,className:wi(u.root,r),ref:t},l))});const sl=Di("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ll=["center","classes","className"];let cl,ul,dl,pl,fl=e=>e;const hl=Ar(cl||(cl=fl`
|
|
15
16
|
0% {
|
|
16
17
|
transform: scale(0);
|
|
17
18
|
opacity: 0.1;
|
|
@@ -21,7 +22,7 @@ System.register(["react","react-dom","@nebula.js/stardust","picasso-plugin-q","p
|
|
|
21
22
|
transform: scale(1);
|
|
22
23
|
opacity: 0.3;
|
|
23
24
|
}
|
|
24
|
-
`)),
|
|
25
|
+
`)),ml=Ar(ul||(ul=fl`
|
|
25
26
|
0% {
|
|
26
27
|
opacity: 1;
|
|
27
28
|
}
|
|
@@ -29,7 +30,7 @@ System.register(["react","react-dom","@nebula.js/stardust","picasso-plugin-q","p
|
|
|
29
30
|
100% {
|
|
30
31
|
opacity: 0;
|
|
31
32
|
}
|
|
32
|
-
`)),
|
|
33
|
+
`)),gl=Ar(dl||(dl=fl`
|
|
33
34
|
0% {
|
|
34
35
|
transform: scale(1);
|
|
35
36
|
}
|
|
@@ -41,7 +42,7 @@ System.register(["react","react-dom","@nebula.js/stardust","picasso-plugin-q","p
|
|
|
41
42
|
100% {
|
|
42
43
|
transform: scale(1);
|
|
43
44
|
}
|
|
44
|
-
`)),
|
|
45
|
+
`)),vl=Ls("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),bl=Ls(function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,p]=o.useState(!1),f=wi(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:s,height:s,top:-s/2+a,left:-s/2+i},m=wi(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||p(!0),o.useEffect(()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}},[c,l,u]),fi.jsx("span",{className:f,style:h,children:fi.jsx("span",{className:m})})},{name:"MuiTouchRipple",slot:"Ripple"})(pl||(pl=fl`
|
|
45
46
|
opacity: 0;
|
|
46
47
|
position: absolute;
|
|
47
48
|
|
|
@@ -84,18 +85,6 @@ System.register(["react","react-dom","@nebula.js/stardust","picasso-plugin-q","p
|
|
|
84
85
|
animation-iteration-count: infinite;
|
|
85
86
|
animation-delay: 200ms;
|
|
86
87
|
}
|
|
87
|
-
`),fs.rippleVisible,xs,550,({theme:e})=>e.transitions.easing.easeInOut,fs.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,fs.child,fs.childLeaving,Ss,550,({theme:e})=>e.transitions.easing.easeInOut,fs.childPulsate,ws,({theme:e})=>e.transitions.easing.easeInOut),Is=n.forwardRef(function(e,t){const r=ja({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Oe(r,hs),[l,u]=n.useState([]),c=n.useRef(0),d=n.useRef(null);n.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=n.useRef(!1),f=oo(),h=n.useRef(null),m=n.useRef(null),g=n.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;u(e=>[...e,Yn.jsx(Es,{classes:{ripple:wi(o.ripple,fs.ripple),rippleVisible:wi(o.rippleVisible,fs.rippleVisible),ripplePulsate:wi(o.ripplePulsate,fs.ripplePulsate),child:wi(o.child,fs.child),childLeaving:wi(o.childLeaving,fs.childLeaving),childPulsate:wi(o.childPulsate,fs.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)]),c.current+=1,d.current=a},[o]),v=n.useCallback((e={},t={},n=()=>{})=>{const{pulsate:r=!1,center:o=i||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(o||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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(o)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:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},f.start(80,()=>{h.current&&(h.current(),h.current=null)})):g({pulsate:r,rippleX:u,rippleY:c,rippleSize:d,cb:n})},[i,g,f]),y=n.useCallback(()=>{v({},{pulsate:!0})},[v]),b=n.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 n.useImperativeHandle(t,()=>({pulsate:y,start:v,stop:b}),[y,v,b]),Yn.jsx(Cs,Ae({className:wi(fs.root,o.root,a),ref:m},s,{children:Yn.jsx(as,{component:null,exit:!0,children:l})}))});function Ds(e){return Ii("MuiButtonBase",e)}const Ps=Di("MuiButtonBase",["root","disabled","focusVisible"]),Ms=["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"],Rs=Ta("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"},[`&.${Ps.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ks=n.forwardRef(function(e,t){const r=ja({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:o=!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:k,type:L}=r,A=Oe(r,Ms),O=n.useRef(null),T=n.useRef(null),q=to(T,k),{isFocusVisibleRef:_,onFocus:N,onBlur:j,ref:F}=mo(),[z,W]=n.useState(!1);u&&z&&W(!1),n.useImperativeHandle(i,()=>({focusVisible:()=>{W(!0),O.current.focus()}}),[]);const[$,H]=n.useState(!1);n.useEffect(()=>{H(!0)},[]);const V=$&&!c&&!u;function B(e,t,n=d){return eo(r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0})}n.useEffect(()=>{z&&p&&!c&&$&&T.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=>{j(e),!1===_.current&&W(!1),h&&h(e)},!1),te=eo(e=>{O.current||(O.current=e.currentTarget),N(e),!0===_.current&&(W(!0),b&&b(e)),y&&y(e)}),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=n.useRef(!1),ie=eo(e=>{p&&!re.current&&z&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,()=>{T.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!u&&(e.preventDefault(),m&&m(e))}),oe=eo(e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,()=>{T.current.pulsate(e)})),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)});let ae=l;"button"===ae&&(A.href||A.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===L?"button":L,se.disabled=u):(A.href||A.to||(se.role="button"),u&&(se["aria-disabled"]=u));const le=to(t,F,O),ue=Ae({},r,{centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=vo({root:["root",t&&"disabled",n&&"focusVisible"]},Ds,i);return n&&r&&(o.root+=` ${r}`),o})(ue);return Yn.jsxs(Rs,Ae({as:ae,className:wi(ce.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:ie,onKeyUp:oe,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:u?-1:M,type:L},se,A,{children:[a,V?Yn.jsx(Is,Ae({ref:q,center:o},R)):null]}))});function Ls(e){return Ii("MuiTypography",e)}Di("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const As=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Os=Ta("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${fr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Ae({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})),Ts={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},qs={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_s=n.forwardRef(function(e,t){const n=ja({props:e,name:"MuiTypography"}),r=(e=>qs[e]||e)(n.color),i=vi(Ae({},n,{color:r})),{align:o="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Ts}=i,f=Oe(i,As),h=Ae({},i,{align:o,color:r,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||Ts[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e;return vo({root:["root",o,"inherit"!==e.align&&`align${fr(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]},Ls,a)})(h);return Yn.jsx(Os,Ae({as:m,ref:t,ownerState:h,className:wi(g.root,a)},f))});const Ns=n.forwardRef(function(e,t){const{children:r,container:i,disablePortal:o=!1}=e,[a,s]=n.useState(null),l=to(n.isValidElement(r)?Co(r):null,t);if(zi(()=>{o||s(function(e){return"function"==typeof e?e():e}(i)||document.body)},[i,o]),zi(()=>{if(a&&!o)return Ki(t,a),()=>{Ki(t,null)}},[t,a,o]),o){if(n.isValidElement(r)){const e={ref:l};return n.cloneElement(r,e)}return Yn.jsx(n.Fragment,{children:r})}return Yn.jsx(n.Fragment,{children:a?I.createPortal(r,a):a})}),js=["onChange","maxRows","minRows","style","value"];function Fs(e){return parseInt(e,10)||0}const zs={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ws(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const $s=n.forwardRef(function(e,t){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=e,l=Oe(e,js),{current:u}=n.useRef(null!=s),c=n.useRef(null),d=to(t,c),p=n.useRef(null),f=n.useRef(null),h=n.useCallback(()=>{const t=c.current,n=f.current;if(!t||!n)return;const r=Yi(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=r.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=r.boxSizing,s=Fs(r.paddingBottom)+Fs(r.paddingTop),l=Fs(r.borderBottomWidth)+Fs(r.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=u;o&&(p=Math.max(Number(o)*d,p)),i&&(p=Math.min(Number(i)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-u)<=1}},[i,o,e.placeholder]),m=eo(()=>{const e=c.current,t=h();if(!e||!t||Ws(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n}),g=n.useCallback(()=>{const e=c.current,t=h();if(!e||!t||Ws(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),v=n.useRef(-1);zi(()=>{const e=Gi(g),t=null==c?void 0:c.current;if(!t)return;const n=Yi(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,g,m]),zi(()=>{g()});return Yn.jsxs(n.Fragment,{children:[Yn.jsx("textarea",Ae({value:s,onChange:e=>{u||g(),r&&r(e)},ref:d,rows:o,style:a},l)),Yn.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:Ae({},zs,a,{paddingTop:0,paddingBottom:0})})]})});function Hs({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const Vs=n.createContext(void 0);function Bs(){return n.useContext(Vs)}function Gs(e){return Yn.jsx(mi,Ae({},e,{defaultTheme:ma,themeId:Le}))}function Us(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ys(e,t=!1){return e&&(Us(e.value)&&""!==e.value||t&&Us(e.defaultValue)&&""!==e.defaultValue)}function Ks(e){return Ii("MuiInputBase",e)}const Xs=Di("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Js=["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"],Zs=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${fr(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Qs=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},el=Ta("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Zs})(({theme:e,ownerState:t})=>Ae({},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",[`&.${Xs.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ae({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),tl=Ta("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Qs})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Ae({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Ae({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Xs.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Xs.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"})}),nl=Yn.jsx(Gs,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),rl=n.forwardRef(function(e,t){var r;const i=ja({props:e,name:"MuiInputBase"}),{"aria-describedby":o,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:k,readOnly:L,renderSuffix:A,rows:O,slotProps:T={},slots:q={},startAdornment:_,type:N="text",value:j}=i,F=Oe(i,Js),z=null!=y.value?y.value:j,{current:W}=n.useRef(null!=z),$=n.useRef(),H=n.useCallback(e=>{},[]),V=to($,b,y.ref,H),[B,G]=n.useState(!1),U=Bs(),Y=Hs({props:i,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:B,n.useEffect(()=>{!U&&p&&B&&(G(!1),E&&E())},[U,p,B,E]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=n.useCallback(e=>{Ys(e)?K&&K():X&&X()},[K,X]);zi(()=>{W&&J({value:z})},[z,J,W]);n.useEffect(()=>{J($.current)},[]);let Z=v,Q=y;w&&"input"===Z&&(Q=Ae(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=$s);n.useEffect(()=>{U&&U.setAdornedStart(Boolean(_))},[U,_]);const ee=Ae({},i,{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:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return vo({root:["root",`color${fr(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${fr(p)}`,c&&"multiline",f&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]},Ks,t)})(ee),ne=q.root||u.Root||el,re=T.root||c.root||{},ie=q.input||u.Input||tl;return Q=Ae({},Q,null!=(r=T.input)?r:c.input),Yn.jsxs(n.Fragment,{children:[!f&&nl,Yn.jsxs(ne,Ae({},re,!yo(ne)&&{ownerState:Ae({},ee,re.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),D&&D(e)}},F,{className:wi(te.root,re.className,l,L&&"MuiInputBase-readOnly"),children:[_,Yn.jsx(Vs.Provider,{value:null,children:Yn.jsx(ie,Ae({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,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:k,readOnly:L,required:Y.required,rows:O,value:z,onKeyDown:M,onKeyUp:R,type:N},Q,!yo(ie)&&{as:Z,ownerState:Ae({},ee,Q.ownerState)},{ref:V,className:wi(te.input,Q.className,L&&"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,A?A(Ae({},Y,{startAdornment:_})):null]}))]})});function il(e){return Ii("MuiInput",e)}const ol=Ae({},Xs,Di("MuiInput",["root","underline","input"]));function al(e){return Ii("MuiOutlinedInput",e)}const sl=Ae({},Xs,Di("MuiOutlinedInput",["root","notchedOutline","input"]));function ll(e){return Ii("MuiFilledInput",e)}const ul=Ae({},Xs,Di("MuiFilledInput",["root","underline","input"]));var cl=Ha(Yn.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const dl=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pl={entering:{opacity:1},entered:{opacity:1}},fl=n.forwardRef(function(e,t){const r=ga(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,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=i,TransitionComponent:y=Qa}=e,b=Oe(e,dl),x=n.useRef(null),S=to(x,Co(s),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=w(p),E=w((e,t)=>{ss(e);const n=ls({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=ls({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 Yn.jsx(y,Ae({appear:a,in:u,nodeRef:x,onEnter:E,onEntered:I,onEntering:C,onExit:P,onExited:M,onExiting:D,addEndListener:e=>{o&&o(x.current,e)},timeout:v},b,{children:(e,t)=>n.cloneElement(s,Ae({style:Ae({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},pl[e],g,s.props.style),ref:S},t))}))});function hl(e){return Ii("MuiBackdrop",e)}Di("MuiBackdrop",["root","invisible"]);const ml=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],gl=Ta("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Ae({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"})),vl=n.forwardRef(function(e,t){var n,r,i;const o=ja({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=fl,transitionDuration:g}=o,v=Oe(o,ml),y=Ae({},o,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return vo({root:["root",n&&"invisible"]},hl,t)})(y),x=null!=(n=f.root)?n:c.root;return Yn.jsx(m,Ae({in:p,timeout:g},v,{children:Yn.jsx(gl,Ae({"aria-hidden":!0},x,{as:null!=(r=null!=(i=h.root)?i:u.Root)?r:l,className:wi(b.root,s,null==x?void 0:x.className),ownerState:Ae({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}),yl=Di("MuiBox",["root"]),bl=ha(),xl=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:i="MuiBox-root",generateClassName:o}=e,a=Jn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ai);return n.forwardRef(function(e,n){const s=fi(r),l=vi(e),{className:u,component:c="div"}=l,d=Oe(l,Ci);return Yn.jsx(a,Ae({as:c,ref:n,className:wi(u,o?o(i):i),theme:t&&s[t]||s},d))})}({themeId:Le,defaultTheme:bl,defaultClassName:yl.root,generateClassName:xi.generate});function Sl(e){return Ii("MuiButton",e)}const wl=Di("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"]),Cl=n.createContext({}),El=n.createContext(void 0),Il=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Dl=e=>Ae({},"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}}),Pl=Ta(ks,{shouldForwardProp:e=>Oa(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fr(n.color)}`],t[`size${fr(n.size)}`],t[`${n.variant}Size${fr(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Ae({},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":Ae({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Yo.alpha(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})`:Yo.alpha(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})`:Yo.alpha(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:o,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":Ae({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${wl.focusVisible}`]:Ae({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${wl.disabled}`]:Ae({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 ${Yo.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,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"},[`&.${wl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${wl.disabled}`]:{boxShadow:"none"}}),Ml=Ta("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${fr(n.size)}`]]}})(({ownerState:e})=>Ae({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Dl(e))),Rl=Ta("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${fr(n.size)}`]]}})(({ownerState:e})=>Ae({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Dl(e))),kl=n.forwardRef(function(e,t){const r=n.useContext(Cl),i=n.useContext(El),o=ja({props:Fi(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"}=o,x=Oe(o,Il),S=Ae({},o,{color:s,component:l,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:m,size:g,type:y,variant:b}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return Ae({},a,vo({root:["root",o,`${o}${fr(t)}`,`size${fr(i)}`,`${o}Size${fr(i)}`,`color${fr(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${fr(i)}`],endIcon:["icon","endIcon",`iconSize${fr(i)}`]},Sl,a))})(S),C=v&&Yn.jsx(Ml,{className:w.startIcon,ownerState:S,children:v}),E=f&&Yn.jsx(Rl,{className:w.endIcon,ownerState:S,children:f}),I=i||"";return Yn.jsxs(Pl,Ae({ownerState:S,className:wi(r.className,w.root,u,I),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:wi(w.focusVisible,h),ref:t,type:y},x,{classes:w,children:[C,a,E]}))});function Ll(e){return Ii("PrivateSwitchBase",e)}Di("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Al=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Ol=Ta(ks,{name:"MuiSwitchBase"})(({ownerState:e})=>Ae({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),Tl=Ta("input",{name:"MuiSwitchBase",shouldForwardProp:Oa})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ql=n.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:i,className:o,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,Al),[E,I]=Qi({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),D=Bs();let P=s;D&&void 0===P&&(P=D.disabled);const M="checkbox"===S||"radio"===S,R=Ae({},e,{checked:E,disabled:P,disableFocusRipple:l,edge:u}),k=(e=>{const{classes:t,checked:n,disabled:r,edge:i}=e;return vo({root:["root",n&&"checked",r&&"disabled",i&&`edge${fr(i)}`],input:["input"]},Ll,t)})(R);return Yn.jsxs(Ol,Ae({component:"span",className:wi(k.root,o),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:[Yn.jsx(Tl,Ae({autoFocus:n,checked:r,defaultChecked:a,className:k.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?i:c]}))});var _l=Ha(Yn.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"),Nl=Ha(Yn.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"),jl=Ha(Yn.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 Fl(e){return Ii("MuiCheckbox",e)}const zl=Di("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Wl=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],$l=Ta(ql,{shouldForwardProp:e=>Oa(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${fr(n.size)}`],"default"!==n.color&&t[`color${fr(n.color)}`]]}})(({theme:e,ownerState:t})=>Ae({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})`:Yo.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${zl.checked}, &.${zl.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${zl.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Hl=Yn.jsx(Nl,{}),Vl=Yn.jsx(_l,{}),Bl=Yn.jsx(jl,{}),Gl=n.forwardRef(function(e,t){var r,i;const o=ja({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Hl,color:s="primary",icon:l=Vl,indeterminate:u=!1,indeterminateIcon:c=Bl,inputProps:d,size:p="medium",className:f}=o,h=Oe(o,Wl),m=u?c:l,g=u?c:a,v=Ae({},o,{color:s,indeterminate:u,size:p}),y=(e=>{const{classes:t,indeterminate:n,color:r,size:i}=e;return Ae({},t,vo({root:["root",n&&"indeterminate",`color${fr(r)}`,`size${fr(i)}`]},Fl,t))})(v);return Yn.jsx($l,Ae({type:"checkbox",inputProps:Ae({"data-indeterminate":u},d),icon:n.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:p}),checkedIcon:n.cloneElement(g,{fontSize:null!=(i=g.props.fontSize)?i:p}),ownerState:v,ref:t,className:wi(y.root,f)},h,{classes:y}))});function Ul(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Yl(e){return parseInt(Yi(e).getComputedStyle(e).paddingRight,10)||0}function Kl(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===o.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Ul(e,i)})}function Xl(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function Jl(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ui(e);return t.body===e?Yi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=go(Ui(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Yl(r)+e}px`;const t=Ui(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Yl(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Ui(r).body;else{const t=r.parentElement,n=Yi(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.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()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const Zl=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ql(e){const t=[],n=[];return Array.from(e.querySelectorAll(Zl)).forEach((e,r)=>{const i=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!==i&&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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function eu(){return!0}function tu(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:a=Ql,isEnabled:s=eu,open:l}=e,u=n.useRef(!1),c=n.useRef(null),d=n.useRef(null),p=n.useRef(null),f=n.useRef(null),h=n.useRef(!1),m=n.useRef(null),g=to(Co(t),m),v=n.useRef(null);n.useEffect(()=>{l&&m.current&&(h.current=!r)},[r,l]),n.useEffect(()=>{if(!l||!m.current)return;const e=Ui(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}},[l]),n.useEffect(()=>{if(!l||!m.current)return;const e=Ui(m.current),t=t=>{v.current=t,!i&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},n=()=>{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(i&&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 n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=a(m.current)),n.length>0){var r,o;const e=Boolean((null==(r=v.current)?void 0:r.shiftKey)&&"Tab"===(null==(o=v.current)?void 0:o.key)),t=n[0],i=n[n.length-1];"string"!=typeof t&&"string"!=typeof i&&(e?i.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[r,i,o,s,l,a]);const y=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return Yn.jsxs(n.Fragment,{children:[Yn.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),n.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Yn.jsx("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})}const nu=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Ul(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Kl(t,e.mount,e.modalRef,r,!0);const i=Xl(this.containers,e=>e.container===t);return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Xl(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=Jl(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Xl(this.containers,t=>-1!==t.modals.indexOf(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&Ul(e.modalRef,t),Kl(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=i.modals[i.modals.length-1];e.modalRef&&Ul(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function ru(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:i=!1,manager:o=nu,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:u,onClose:c,open:d,rootRef:p}=e,f=n.useRef({}),h=n.useRef(null),m=n.useRef(null),g=to(m,p),[v,y]=n.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=()=>{o.mount(S(),{disableScrollLock:i}),m.current&&(m.current.scrollTop=0)},C=eo(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ui(h.current).body;o.add(S(),e),m.current&&w()}),E=n.useCallback(()=>o.isTopModal(S()),[o]),I=eo(e=>{h.current=e,e&&(d&&E()?w():m.current&&Ul(m.current,x))}),D=n.useCallback(()=>{o.remove(S(),x)},[x,o]);n.useEffect(()=>()=>{D()},[D]),n.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 n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=bo(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Ae({},n,t);return Ae({role:"presentation"},r,{onKeyDown:P(r),ref:g})},getBackdropProps:(e={})=>Ae({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:Bi(()=>{y(!1),s&&s()},null==u?void 0:u.props.onEnter),onExited:Bi(()=>{y(!0),l&&l(),a&&D()},null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:I,isTopModal:E,exited:v,hasTransition:b}}function iu(e){return Ii("MuiModal",e)}Di("MuiModal",["root","hidden","backdrop"]);const ou=["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"],au=Ta("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Ae({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),su=Ta(vl,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lu=n.forwardRef(function(e,t){var r,i,o,a,s,l;const u=ja({name:"MuiModal",props:e}),{BackdropComponent:c=su,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:k}=u,L=Oe(u,ou),A=Ae({},u,{closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:I,keepMounted:D}),{getRootProps:O,getBackdropProps:T,getTransitionProps:q,portalRef:_,isTopModal:N,exited:j,hasTransition:F}=ru(Ae({},A,{rootRef:t})),z=Ae({},A,{exited:j}),W=(e=>{const{open:t,exited:n,classes:r}=e;return vo({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},iu,r)})(z),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=q();$.onEnter=e,$.onExited=t}const H=null!=(r=null!=(i=null==k?void 0:k.root)?i:v.Root)?r:au,V=null!=(o=null!=(a=null==k?void 0:k.backdrop)?a:v.Backdrop)?o: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=wo({elementType:H,externalSlotProps:B,externalForwardedProps:L,getSlotProps:O,additionalProps:{ref:t,as:g},ownerState:z,className:wi(p,null==B?void 0:B.className,null==W?void 0:W.root,!z.open&&z.exited&&(null==W?void 0:W.hidden))}),Y=wo({elementType:V,externalSlotProps:G,additionalProps:d,getSlotProps:e=>T(Ae({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:wi(null==G?void 0:G.className,null==d?void 0:d.className,null==W?void 0:W.backdrop),ownerState:z});return D||M||F&&!j?Yn.jsx(Ns,{ref:_,container:m,disablePortal:w,children:Yn.jsxs(H,Ae({},U,{children:[!I&&c?Yn.jsx(V,Ae({},Y)):null,Yn.jsx(tu,{disableEnforceFocus:x,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:N,open:M,children:n.cloneElement(h,$)})]}))}):null});function uu(e){return Ii("MuiDivider",e)}const cu=Di("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),du=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],pu=Ta("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Ae({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)`:Yo.alpha(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})=>Ae({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Ae({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Ae({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Ae({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),fu=Ta("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Ae({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)`})),hu=n.forwardRef(function(e,t){const n=ja({props:e,name:"MuiDivider"}),{absolute:r=!1,children:i,className:o,component:a=(i?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Oe(n,du),h=Ae({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return vo({root:["root",t&&"absolute",l,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},uu,r)})(h);return Yn.jsx(pu,Ae({as:a,className:wi(m.root,o),role:c,ref:t,ownerState:h},f,{children:i?Yn.jsx(fu,{className:m.wrapper,ownerState:h,children:i}):null}))});hu.muiSkipListHighlight=!0;const mu=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],gu=Ta(el,{shouldForwardProp:e=>Oa(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Zs(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Ae({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:o}},[`&.${ul.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${ul.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.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"},[`&.${ul.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ul.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})`:i}`,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(.${ul.disabled}, .${ul.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ul.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Ae({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}))}),vu=Ta(tl,{name:"MuiFilledInput",slot:"Input",overridesResolver:Qs})(({theme:e,ownerState:t})=>Ae({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})),yu=n.forwardRef(function(e,t){var n,r,i,o;const a=ja({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,mu),g=Ae({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:n}=e;return Ae({},t,vo({root:["root",!n&&"underline"],input:["input"]},ll,t))})(a),y={root:{ownerState:g},input:{ownerState:g}},b=(null!=p?p:l)?rr(y,null!=p?p:l):y,x=null!=(n=null!=(r=f.root)?r:s.Root)?n:gu,S=null!=(i=null!=(o=f.input)?o:s.Input)?i:vu;return Yn.jsx(rl,Ae({slots:{root:x,input:S},componentsProps:b,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))});yu.muiName="Input";const bu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function xu(e){return`scale(${e}, ${e**2})`}const Su={entering:{opacity:1,transform:xu(1)},entered:{opacity:1,transform:"none"}},wu="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Cu=n.forwardRef(function(e,t){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Qa}=e,v=Oe(e,bu),y=oo(),b=n.useRef(),x=ga(),S=n.useRef(null),w=to(S,Co(o),t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},E=C(c),I=C((e,t)=>{ss(e);const{duration:n,delay:r,easing:i}=ls({style:h,timeout:m,easing:a},{mode:"enter"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=n,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:wu?o:.666*o,delay:r,easing:i})].join(","),l&&l(e,t)}),D=C(u),P=C(f),M=C(e=>{const{duration:t,delay:n,easing:r}=ls({style:h,timeout:m,easing:a},{mode:"exit"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=t,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:wu?i:.666*i,delay:wu?n:n||.333*i,easing:r})].join(","),e.style.opacity=0,e.style.transform=xu(.75),d&&d(e)}),R=C(p);return Yn.jsx(g,Ae({appear:i,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)=>n.cloneElement(o,Ae({style:Ae({opacity:0,transform:xu(.75),visibility:"exited"!==e||s?void 0:"hidden"},Su[e],h,o.props.style),ref:w},t))}))});Cu.muiSupportAuto=!0;const Eu=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Iu=Ta(el,{shouldForwardProp:e=>Oa(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Zs(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Ae({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"},[`&.${ol.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ol.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${ol.disabled}, .${ol.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ol.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Du=Ta(tl,{name:"MuiInput",slot:"Input",overridesResolver:Qs})({}),Pu=n.forwardRef(function(e,t){var n,r,i,o;const a=ja({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,Eu),v=(e=>{const{classes:t,disableUnderline:n}=e;return Ae({},t,vo({root:["root",!n&&"underline"],input:["input"]},il,t))})(a),y={root:{ownerState:{disableUnderline:s}}},b=(null!=f?f:u)?rr(null!=f?f:u,y):y,x=null!=(n=null!=(r=h.root)?r:l.Root)?n:Iu,S=null!=(i=null!=(o=h.input)?o:l.Input)?i:Du;return Yn.jsx(rl,Ae({slots:{root:x,input:S},slotProps:b,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))});function Mu(e){return Ii("MuiInputAdornment",e)}Pu.muiName="Input";const Ru=Di("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var ku;const Lu=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Au=Ta("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${fr(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>Ae({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Ru.positionStart}&:not(.${Ru.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),Ou=n.forwardRef(function(e,t){const r=ja({props:e,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,d=Oe(r,Lu),p=Bs()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=Ae({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e;return vo({root:["root",n&&"disablePointerEvents",i&&`position${fr(i)}`,a,r&&"hiddenLabel",o&&`size${fr(o)}`]},Mu,t)})(h);return Yn.jsx(Vs.Provider,{value:null,children:Yn.jsx(Au,Ae({as:a,ownerState:h,className:wi(m.root,o),ref:t},d,{children:"string"!=typeof i||l?Yn.jsxs(n.Fragment,{children:["start"===u?ku||(ku=Yn.jsx("span",{className:"notranslate",children:""})):null,i]}):Yn.jsx(_s,{color:"text.secondary",children:i})}))})});function Tu(e){return Ii("MuiLink",e)}const qu=Di("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),_u={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Nu=({theme:e,ownerState:t})=>{const n=(e=>_u[e]||e)(t.color),r=mr(e,`palette.${n}`,!1)||t.color,i=mr(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Yo.alpha(r,.4)},ju=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Fu=Ta(_s,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${fr(n.underline)}`],"button"===n.component&&t.button]}})(({theme:e,ownerState:t})=>Ae({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Ae({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Nu({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"},[`&.${qu.focusVisible}`]:{outline:"auto"}})),zu=n.forwardRef(function(e,t){const r=ja({props:e,name:"MuiLink"}),{className:i,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=r,f=Oe(r,ju),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:v}=mo(),[y,b]=n.useState(!1),x=to(t,v),S=Ae({},r,{color:o,component:a,focusVisible:y,underline:c,variant:d}),w=(e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e;return vo({root:["root",`underline${fr(i)}`,"button"===n&&"button",r&&"focusVisible"]},Tu,t)})(S);return Yn.jsx(Fu,Ae({color:o,className:wi(w.root,i),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(_u).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},f))}),Wu=n.createContext({});function $u(e){return Ii("MuiList",e)}Di("MuiList",["root","padding","dense","subheader"]);const Hu=["children","className","component","dense","disablePadding","subheader"],Vu=Ta("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>Ae({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Bu=n.forwardRef(function(e,t){const r=ja({props:e,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=Oe(r,Hu),d=n.useMemo(()=>({dense:s}),[s]),p=Ae({},r,{component:a,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return vo({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},$u,t)})(p);return Yn.jsx(Wu.Provider,{value:d,children:Yn.jsxs(Vu,Ae({as:a,className:wi(f.root,o),ref:t,ownerState:p},c,{children:[u,i]}))})});function Gu(e){return Ii("MuiListItem",e)}const Uu=Di("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Yu=Di("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Ku(e){return Ii("MuiListItemSecondaryAction",e)}Di("MuiListItemSecondaryAction",["root","disableGutters"]);const Xu=["className"],Ju=Ta("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>Ae({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Zu=n.forwardRef(function(e,t){const r=ja({props:e,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Oe(r,Xu),a=Ae({},r,{disableGutters:n.useContext(Wu).disableGutters}),s=(e=>{const{disableGutters:t,classes:n}=e;return vo({root:["root",t&&"disableGutters"]},Ku,n)})(a);return Yn.jsx(Ju,Ae({className:wi(s.root,i),ownerState:a,ref:t},o))});Zu.muiName="ListItemSecondaryAction";const Qu=["className"],ec=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],tc=Ta("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>Ae({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Ae({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Yu.root}`]:{paddingRight:48}},{[`&.${Uu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Uu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Uu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Uu.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"}},[`&.${Uu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yo.alpha(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})`:Yo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),nc=Ta("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),rc=n.forwardRef(function(e,t){const r=ja({props:e,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!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,Qu),I=Oe(r,ec),D=n.useContext(Wu),P=n.useMemo(()=>({dense:h||D.dense||!1,alignItems:i,disableGutters:g}),[i,D.dense,h,g]),M=n.useRef(null);zi(()=>{o&&M.current&&M.current.focus()},[o]);const R=n.Children.toArray(s),k=R.length&&(L=R[R.length-1],A=["ListItemSecondaryAction"],n.isValidElement(L)&&-1!==A.indexOf(null!=(O=L.type.muiName)?O:null==(T=L.type)||null==(T=T._payload)||null==(T=T.value)?void 0:T.muiName));var L,A,O,T;const q=Ae({},r,{alignItems:i,autoFocus:o,button:a,dense:P.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:k,selected:S}),_=(e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return vo({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Gu,r)})(q),N=to(M,t),j=C.root||c.Root||tc,F=w.root||d.root||{},z=Ae({className:wi(_.root,F.className,l),disabled:m},I);let W=u||"li";return a&&(z.component=u||"div",z.focusVisibleClassName=wi(Uu.focusVisible,b),W=ks),k?(W=z.component||u?W:"div","li"===p&&("li"===W?W="div":"li"===z.component&&(z.component="div")),Yn.jsx(Wu.Provider,{value:P,children:Yn.jsxs(nc,Ae({as:p,className:wi(_.container,f),ref:N,ownerState:q},E,{children:[Yn.jsx(j,Ae({},F,!yo(j)&&{as:W,ownerState:Ae({},q,F.ownerState)},z,{children:R})),R.pop()]}))})):Yn.jsx(Wu.Provider,{value:P,children:Yn.jsxs(j,Ae({},F,{as:W,ref:N},!yo(j)&&{ownerState:Ae({},q,F.ownerState)},z,{children:[R,x&&Yn.jsx(Zu,{children:x})]}))})});function ic(e){return Ii("MuiListItemIcon",e)}const oc=Di("MuiListItemIcon",["root","alignItemsFlexStart"]),ac=["className"],sc=Ta("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>Ae({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),lc=n.forwardRef(function(e,t){const r=ja({props:e,name:"MuiListItemIcon"}),{className:i}=r,o=Oe(r,ac),a=Ae({},r,{alignItems:n.useContext(Wu).alignItems}),s=(e=>{const{alignItems:t,classes:n}=e;return vo({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ic,n)})(a);return Yn.jsx(sc,Ae({className:wi(s.root,i),ownerState:a,ref:t},o))}),uc=Di("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),cc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function dc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function pc(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function fc(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function hc(e,t,n,r,i,o){let a=!1,s=i(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&fc(s,o)&&!t)return s.focus(),!0;s=i(e,s,n)}return!1}const mc=n.forwardRef(function(e,t){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Oe(e,cc),f=n.useRef(null),h=n.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});zi(()=>{i&&f.current.focus()},[i]),n.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${go(Ui(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const m=to(f,t);let g=-1;n.Children.forEach(a,(e,t)=>{n.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=n.Children.map(a,(e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),n.cloneElement(e,t)}return e});return Yn.jsx(Bu,Ae({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,n=e.key,r=Ui(t).activeElement;if("ArrowDown"===n)e.preventDefault(),hc(t,r,u,l,dc);else if("ArrowUp"===n)e.preventDefault(),hc(t,r,u,l,pc);else if("Home"===n)e.preventDefault(),hc(t,null,u,l,dc);else if("End"===n)e.preventDefault(),hc(t,null,u,l,pc);else if(1===n.length){const i=h.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);const s=r&&!i.repeating&&fc(r,i);i.previousKeyMatched&&(s||hc(t,r,!1,l,dc,i))?e.preventDefault():i.previousKeyMatched=!1}c&&c(e)},tabIndex:i?0:-1},p,{children:v}))});function gc(e){return Ii("MuiPopover",e)}Di("MuiPopover",["root","paper"]);const vc=["onEntering"],yc=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],bc=["slotProps"];function xc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Sc(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function wc(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Cc(e){return"function"==typeof e?e():e}const Ec=Ta(lu,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ic=Ta(ps,{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}),Dc=n.forwardRef(function(e,t){var r,i,o;const a=ja({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=Cu,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:I=!1}=a,D=Oe(a.TransitionProps,vc),P=Oe(a,yc),M=null!=(r=null==x?void 0:x.paper)?r:y,R=n.useRef(),k=to(R,M.ref),L=Ae({},a,{anchorOrigin:u,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:D}),A=(e=>{const{classes:t}=e;return vo({root:["root"],paper:["paper"]},gc,t)})(L),O=n.useCallback(()=>{if("anchorPosition"===d)return c;const e=Cc(l),t=(e&&1===e.nodeType?e:Ui(R.current).body).getBoundingClientRect();return{top:t.top+xc(t,u.vertical),left:t.left+Sc(t,u.horizontal)}},[l,u.horizontal,u.vertical,c,d]),T=n.useCallback(e=>({vertical:xc(e,S.vertical),horizontal:Sc(e,S.horizontal)}),[S.horizontal,S.vertical]),q=n.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===d)return{top:null,left:null,transformOrigin:wc(n)};const r=O();let i=r.top-n.vertical,o=r.left-n.horizontal;const a=i+t.height,s=o+t.width,u=Yi(Cc(l)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&i<g){const e=i-g;i-=e,n.vertical+=e}else if(null!==g&&a>c){const e=a-c;i-=e,n.vertical+=e}if(null!==g&&o<g){const e=o-g;o-=e,n.horizontal+=e}else if(s>p){const e=s-p;o-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(o)}px`,transformOrigin:wc(n)}},[l,d,O,T,g]),[_,N]=n.useState(v),j=n.useCallback(()=>{const e=R.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)},[q]);n.useEffect(()=>(I&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[l,I,j]);n.useEffect(()=>{v&&j()}),n.useImperativeHandle(s,()=>v?{updatePosition:()=>{j()}}:null,[v,j]),n.useEffect(()=>{if(!v)return;const e=Gi(()=>{j()}),t=Yi(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[l,v,j]);let F=C;"auto"!==C||w.muiSupportAuto||(F=void 0);const z=h||(l?Ui(Cc(l)).body:void 0),W=null!=(i=null==b?void 0:b.root)?i:Ec,$=null!=(o=null==b?void 0:b.paper)?o:Ic,H=wo({elementType:$,externalSlotProps:Ae({},M,{style:_?M.style:Ae({},M.style,{opacity:0})}),additionalProps:{elevation:m,ref:k},ownerState:L,className:wi(A.paper,null==M?void 0:M.className)}),V=wo({elementType:W,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:L,className:wi(A.root,f)}),{slotProps:B}=V,G=Oe(V,bc);return Yn.jsx(W,Ae({},G,!yo(W)&&{slotProps:B,disableScrollLock:I},{children:Yn.jsx(w,Ae({appear:!0,in:v,onEntering:(e,t)=>{E&&E(e,t),j()},onExited:()=>{N(!1)},timeout:F},D,{children:Yn.jsx($,Ae({},H,{children:p}))}))}))});function Pc(e){return Ii("MuiMenu",e)}Di("MuiMenu",["root","paper","list"]);const Mc=["onEntering"],Rc=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],kc={vertical:"top",horizontal:"right"},Lc={vertical:"top",horizontal:"left"},Ac=Ta(Dc,{shouldForwardProp:e=>Oa(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Oc=Ta(Ic,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Tc=Ta(mc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),qc=n.forwardRef(function(e,t){var r,i;const o=ja({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={}}=o,x=Oe(o.TransitionProps,Mc),S=Oe(o,Rc),w=(()=>{const e=n.useContext(Ro);return null!=e&&e})(),C=Ae({},o,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:x,variant:v}),E=(e=>{const{classes:t}=e;return vo({root:["root"],paper:["paper"],list:["list"]},Pc,t)})(C),I=a&&!u&&p,D=n.useRef(null);let P=-1;n.Children.map(s,(e,t)=>{n.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===P)&&(P=t))});const M=null!=(r=y.paper)?r:Oc,R=null!=(i=b.paper)?i:f,k=wo({elementType:y.root,externalSlotProps:b.root,ownerState:C,className:[E.root,l]}),L=wo({elementType:M,externalSlotProps:R,ownerState:C,className:E.paper});return Yn.jsx(Ac,Ae({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?kc:Lc,slots:{paper:M,root:y.root},slotProps:{root:k,paper:L},open:p,ref:t,transitionDuration:m,TransitionProps:Ae({onEntering:(e,t)=>{D.current&&D.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:h,children:Yn.jsx(Tc,Ae({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:D,autoFocus:a&&(-1===P||u),autoFocusItem:I,variant:v},c,{className:wi(E.list,c.className),children:s}))}))});function _c(e){return Ii("MuiMenuItem",e)}const Nc=Di("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),jc=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Fc=Ta(ks,{shouldForwardProp:e=>Oa(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>Ae({},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"}},[`&.${Nc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Nc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Nc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yo.alpha(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})`:Yo.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${cu.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${cu.inset}`]:{marginLeft:52},[`& .${uc.root}`]:{marginTop:0,marginBottom:0},[`& .${uc.inset}`]:{paddingLeft:36},[`& .${oc.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Ae({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${oc.root} svg`]:{fontSize:"1.25rem"}}))),zc=n.forwardRef(function(e,t){const r=ja({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=r,f=Oe(r,jc),h=n.useContext(Wu),m=n.useMemo(()=>({dense:a||h.dense||!1,disableGutters:l}),[h.dense,a,l]),g=n.useRef(null);zi(()=>{i&&g.current&&g.current.focus()},[i]);const v=Ae({},r,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e;return Ae({},a,vo({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},_c,a))})(r),b=to(g,t);let x;return r.disabled||(x=void 0!==d?d:-1),Yn.jsx(Wu.Provider,{value:m,children:Yn.jsx(Fc,Ae({ref:b,role:c,tabIndex:x,component:o,focusVisibleClassName:wi(y.focusVisible,u),className:wi(y.root,p)},f,{ownerState:v,classes:y}))})});function Wc(e){return Ii("MuiNativeSelect",e)}const $c=Di("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Hc=["className","disabled","error","IconComponent","inputRef","variant"],Vc=({ownerState:e,theme:t})=>Ae({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Ae({},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"},[`&.${$c.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}}),Bc=Ta("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Oa,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${$c.multiple}`]:t.multiple}]}})(Vc),Gc=({ownerState:e,theme:t})=>Ae({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${$c.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Uc=Ta("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fr(n.variant)}`],n.open&&t.iconOpen]}})(Gc),Yc=n.forwardRef(function(e,t){const{className:r,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=e,u=Oe(e,Hc),c=Ae({},e,{disabled:i,variant:l,error:o}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e;return vo({select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${fr(n)}`,o&&"iconOpen",r&&"disabled"]},Wc,t)})(c);return Yn.jsxs(n.Fragment,{children:[Yn.jsx(Bc,Ae({ownerState:c,className:wi(d.select,r),disabled:i,ref:s||t},u)),e.multiple?null:Yn.jsx(Uc,{as:a,ownerState:c,className:d.icon})]})});var Kc;const Xc=["children","classes","className","label","notched"],Jc=Ta("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Oa})({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%"}),Zc=Ta("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Oa})(({ownerState:e,theme:t})=>Ae({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&&Ae({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 Qc=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ed=Ta(el,{shouldForwardProp:e=>Oa(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Zs})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Ae({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${sl.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${sl.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${sl.focused} .${sl.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${sl.error} .${sl.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${sl.disabled} .${sl.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Ae({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),td=Ta(function(e){const{className:t,label:n,notched:r}=e,i=Oe(e,Xc),o=null!=n&&""!==n,a=Ae({},e,{notched:r,withLabel:o});return Yn.jsx(Jc,Ae({"aria-hidden":!0,className:t,ownerState:a},i,{children:Yn.jsx(Zc,{ownerState:a,children:o?Yn.jsx("span",{children:n}):Kc||(Kc=Yn.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}}),nd=Ta(tl,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Qs})(({theme:e,ownerState:t})=>Ae({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})),rd=n.forwardRef(function(e,t){var r,i,o,a,s;const l=ja({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,Qc),y=(e=>{const{classes:t}=e;return Ae({},t,vo({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},al,t))})(l),b=Bs(),x=Hs({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Ae({},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!=(i=m.root)?i:u.Root)?r:ed,C=null!=(o=null!=(a=m.input)?a:u.Input)?o:nd;return Yn.jsx(rl,Ae({slots:{root:w,input:C},renderSuffix:e=>Yn.jsx(td,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=Yn.jsxs(n.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:Ae({},y,{notchedOutline:null})}))});function id(e){return Ii("MuiSelect",e)}rd.muiName="Input";const od=Di("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ad;const sd=["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"],ld=Ta("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${od.select}`]:t.select},{[`&.${od.select}`]:t[n.variant]},{[`&.${od.error}`]:t.error},{[`&.${od.multiple}`]:t.multiple}]}})(Vc,{[`&.${od.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ud=Ta("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fr(n.variant)}`],n.open&&t.iconOpen]}})(Gc),cd=Ta("input",{shouldForwardProp:e=>Aa(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 dd(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function pd(e){return null==e||"string"==typeof e&&!e.trim()}const fd=n.forwardRef(function(e,t){var r;const{"aria-describedby":i,"aria-label":o,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:k,value:L,variant:A="standard"}=e,O=Oe(e,sd),[T,q]=Qi({controlled:L,default:d,name:"Select"}),[_,N]=Qi({controlled:D,default:c,name:"Select"}),j=n.useRef(null),F=n.useRef(null),[z,W]=n.useState(null),{current:$}=n.useRef(null!=D),[H,V]=n.useState(),B=to(t,g),G=n.useCallback(e=>{F.current=e,e&&W(e)},[]),U=null==z?void 0:z.parentNode;n.useImperativeHandle(B,()=>({focus:()=>{F.current.focus()},node:j.current,value:T}),[T]),n.useEffect(()=>{c&&_&&z&&!$&&(V(s?null:U.clientWidth),F.current.focus())},[z,s]),n.useEffect(()=>{a&&F.current.focus()},[a]),n.useEffect(()=>{if(!v)return;const e=Ui(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),N(e))},K=n.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==n&&(q(n),w)){const r=t.nativeEvent||t,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:x}}),w(i,e)}b||Y(!1,t)}},J=null!==z&&_;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Ys({value:T})||f)&&(M?Z=M(T):te=!0);const ne=K.map(e=>{if(!n.isValidElement(e))return null;let t;if(b){if(!Array.isArray(T))throw new Error(Re(2));t=T.some(t=>dd(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=dd(T,e.props.value),t&&te&&(Q=e.props.children);return n.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,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e),[]):Q);let re,ie=H;!s&&$&&z&&(ie=U.clientWidth),re=void 0!==k?k:p?null:0;const oe=R.id||(x?`mui-component-select-${x}`:void 0),ae=Ae({},e,{variant:A,value:T,open:J,error:h}),se=(e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:a}=e;return vo({select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${fr(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},id,t)})(ae),le=Ae({},y.PaperProps,null==(r=y.slotProps)?void 0:r.paper),ue=Zi();return Yn.jsxs(n.Fragment,{children:[Yn.jsx(ld,Ae({ref:G,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":p?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":i,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:T,name:x}}),S(e))},onFocus:E},R,{ownerState:ae,className:wi(R.className,se.select,u),id:oe,children:pd(Z)?ad||(ad=Yn.jsx("span",{className:"notranslate",children:""})):Z})),Yn.jsx(cd,Ae({"aria-invalid":h,value:Array.isArray(T)?T.join(","):T,name:x,ref:j,"aria-hidden":!0,onChange:e=>{const t=K.find(t=>t.props.value===e.target.value);void 0!==t&&(q(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:p,className:se.nativeInput,autoFocus:a,ownerState:ae},O)),Yn.jsx(ud,{as:m,className:se.icon,ownerState:ae}),Yn.jsx(qc,Ae({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:Ae({"aria-labelledby":v,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},y.MenuListProps),slotProps:Ae({},y.slotProps,{paper:Ae({},le,{style:Ae({minWidth:ie},null!=le?le.style:null)})}),children:ne}))]})}),hd=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],md=["root"],gd={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Oa(e)&&"variant"!==e,slot:"Root"},vd=Ta(Pu,gd)(""),yd=Ta(rd,gd)(""),bd=Ta(yu,gd)(""),xd=n.forwardRef(function(e,t){const r=ja({name:"MuiSelect",props:e}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=cl,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,hd),D=y?Yc:fd,P=Hs({props:r,muiFormControl:Bs(),states:["variant","error"]}),M=P.variant||E,R=Ae({},r,{variant:M,classes:a}),k=(e=>{const{classes:t}=e;return t})(R),L=Oe(k,md),A=p||{standard:Yn.jsx(vd,{ownerState:R}),outlined:Yn.jsx(yd,{label:h,ownerState:R}),filled:Yn.jsx(bd,{ownerState:R})}[M],O=to(t,Co(A));return Yn.jsx(n.Fragment,{children:n.cloneElement(A,Ae({inputComponent:D,inputProps:Ae({children:o,error:P.error,IconComponent:c,variant:M,type:void 0,multiple:v},y?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:m,MenuProps:g,onClose:b,onOpen:x,open:S,renderValue:w,SelectDisplayProps:Ae({id:d},C)},f,{classes:f?rr(L,f.classes):L},p?p.props.inputProps:{})},(v&&y||u)&&"outlined"===M?{notched:!0}:{},{ref:O,className:wi(A.props.className,s,k.root)},!p&&{variant:M},I))})});xd.muiName="Select";const Sd={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"},wd={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",...Sd,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)"},Cd=12,Ed=14,Id=16,Dd=24,Pd=3,Md=300,Rd=400,kd=600,Ld=700,Ad={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Od(e){return Yn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Yn.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function Td({fontSize:e="medium",children:t=null,className:n=""}={}){return Yn.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:n,children:t})}function qd(e={}){return Yn.jsx(Td,{...e,children:Yn.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yn.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yn.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 _d(e={}){return Yn.jsx(Td,{fontSize:"medium",...e,children:Yn.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yn.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yn.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 Nd(e){return Yn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Yn.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 jd(e={}){return Yn.jsx(Td,{...e,children:Yn.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yn.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yn.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yn.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Fd(e={}){return Yn.jsx(Td,{fontSize:"medium",...e,children:Yn.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yn.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yn.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function zd({className:e}){return Yn.jsx(Td,{fontSize:"small",className:e,children:Yn.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yn.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yn.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yn.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yn.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"}),Yn.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 Wd(e={}){return Yn.jsx(Td,{...e,children:Yn.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yn.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yn.jsx("rect",{stroke:wd.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var $d=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:wd.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:wd.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yn.jsx(Od,{"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 ${wd.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:wd.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${wd.MISC_FOCUS_BORDER}`,borderRadius:Pd,backgroundColor:wd.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 ${wd.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:wd.WHITE,color:wd.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:Pd},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${wd.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:wd.GREYSCALE_0_15,backgroundColor:wd.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:wd.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${wd.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:wd.GREEN_PALE},"&:active":{backgroundColor:wd.GREEN_DARK},"&.Mui-focusVisible":{borderColor:wd.GREEN_PALE,boxShadow:`0 0 0 3px ${Vi(wd.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:wd.BLUE_PALE},"&:active":{backgroundColor:wd.BLUE_DARK},"&.Mui-focusVisible":{borderColor:wd.BLUE_PALE,boxShadow:`0 0 0 3px ${Vi(wd.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:Pd,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:wd.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${wd.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:wd.GREYSCALE_0_42,backgroundColor:wd.GREYSCALE_100_60,"&:active":{backgroundColor:wd.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:wd.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${wd.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:wd.PURPLE,"&.Mui-focusVisible":{borderColor:wd.PURPLE,boxShadow:`0 0 0 3px ${Vi(wd.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:wd.GREEN,"&.Mui-focusVisible":{borderColor:wd.GREEN,boxShadow:`0 0 0 3px ${Vi(wd.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:wd.BLUE,"&.Mui-focusVisible":{borderColor:wd.BLUE,boxShadow:`0 0 0 3px ${Vi(wd.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:wd.ORANGE,"&.Mui-focusVisible":{borderColor:wd.ORANGE,boxShadow:`0 0 0 3px ${Vi(wd.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:wd.RED,"&.Mui-focusVisible":{borderColor:wd.RED,boxShadow:`0 0 0 3px ${Vi(wd.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:wd.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:wd.PURPLE_PALE},"&:active":{backgroundColor:wd.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:wd.PURPLE_PALE,boxShadow:`0 0 0 3px ${Vi(wd.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:wd.GREEN_PALE},"&:active":{backgroundColor:wd.GREEN_DARK},"&.Mui-focusVisible":{borderColor:wd.GREEN_PALE,boxShadow:`0 0 0 3px ${Vi(wd.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:wd.BLUE_PALE},"&:active":{backgroundColor:wd.BLUE_DARK},"&.Mui-focusVisible":{borderColor:wd.BLUE_PALE,boxShadow:`0 0 0 3px ${Vi(wd.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:wd.ORANGE_PALE},"&:active":{backgroundColor:wd.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:wd.ORANGE_PALE,boxShadow:`0 0 0 3px ${Vi(wd.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:wd.RED_PALE},"&:active":{backgroundColor:wd.RED_DARK},"&.Mui-focusVisible":{borderColor:wd.RED_PALE,boxShadow:`0 0 0 3px ${Vi(wd.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:wd.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:wd.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Pd,boxShadow:`inset 0 0 0 2px ${wd.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yn.jsx(Nd,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Cd,borderRadius:Pd,color:wd.TEXT_PRIMARY,backgroundColor:wd.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:wd.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${wd.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:wd.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:wd.GREYSCALE_0_05,color:wd.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:wd.GREEN,borderColor:wd.GREEN},"&.MuiChip-outlinedInfo":{color:wd.BLUE,borderColor:wd.BLUE},"&.MuiChip-outlinedWarning":{color:wd.ORANGE,borderColor:wd.ORANGE},"&.MuiChip-outlinedError":{color:wd.RED,borderColor:wd.RED}},outlined:{border:`solid 1px ${wd.GREYSCALE_0_15}`,backgroundColor:wd.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Pd,boxShadow:"none",backgroundColor:wd.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:wd.GREEN,borderColor:wd.GREEN},outlinedSecondary:{color:wd.BLUE,borderColor:wd.BLUE},label:{fontFamily:Ad.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yn.jsx(Nd,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yn.jsx(Od,{"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:Pd},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Pd,fontSize:Ed,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:wd.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${wd.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:wd.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:wd.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:wd.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Pd,border:`solid 1px ${wd.GREYSCALE_0_15}`,color:wd.GREYSCALE_0_60,marginRight:0,width:Dd,height:Dd},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${wd.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Pd,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:wd.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Ed}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Cd,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:wd.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:wd.GREYSCALE_25,fontSize:Cd,fontFamily:Ad.FONT_FAMILY,fontWeight:kd,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:wd.TEXT_PRIMARY},"&.Mui-error":{color:wd.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:wd.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Rd,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:wd.TEXT_SECONDARY,content:"'(required)'",fontWeight:Rd,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Ed,lineHeight:"16px",backgroundColor:wd.WHITE,borderRadius:Pd,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wd.GREYSCALE_0_05}`,borderColor:wd.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wd.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${wd.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${wd.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wd.RED}`,boxShadow:`0px 0px 0px 1px ${wd.RED}, inset 0 2px 0 0 ${wd.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wd.GREYSCALE_0_10}`,borderColor:wd.GREYSCALE_0_10,backgroundColor:wd.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:wd.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:wd.GREYSCALE_0_15,borderRadius:Pd,boxShadow:`inset 0 2px 0 0 ${wd.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yn.jsx(Od,{...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:wd.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:wd.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:wd.GREYSCALE_0_03},"&:active":{backgroundColor:wd.GREYSCALE_0_10},"&:focus":{backgroundColor:wd.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${wd.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${wd.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:wd.GREYSCALE_0_30,"&:hover":{backgroundColor:wd.GREYSCALE_0_0,borderColor:wd.GREYSCALE_0_15},"& ~svg":{color:wd.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${wd.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Pd}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:wd.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${wd.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:wd.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Ed,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Cd,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Cd,fontWeight:kd,color:wd.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:kd}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${wd.GREYSCALE_0_15}, 0px 0px 0px 1px ${wd.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yn.jsx(Fd,{}),checkedIcon:Yn.jsx(_d,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:wd.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${wd.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:wd.GREEN_PALE,boxShadow:`0 0 0 3px ${Vi(wd.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:wd.BLUE_PALE,boxShadow:`0 0 0 3px ${Vi(wd.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:wd.GREYSCALE_0_20}},"&.Mui-disabled":{fill:wd.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yn.jsx(Wd,{}),checkedIcon:Yn.jsx(qd,{}),indeterminateIcon:Yn.jsx(jd,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Pd,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:wd.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:wd.GREYSCALE_0_55,color:wd.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:wd.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:wd.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:wd.GREYSCALE_0_55,"&:hover":{color:wd.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:wd.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:wd.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Ed,color:wd.TEXT_PRIMARY,lineHeight:"16px",fontWeight:kd},secondary:{fontSize:Cd,color:wd.GREYSCALE_45,fontWeight:Rd,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Ed,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Ed,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:wd.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Cd,borderBottom:`solid 1px ${wd.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Ed,color:wd.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:wd.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:wd.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:wd.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:wd.RED}}},"&.Mui-focusVisible":{backgroundColor:wd.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:wd.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:wd.GREEN,height:"24px","&.Mui-disabled":{color:wd.GREYSCALE_0_15}},rail:{backgroundColor:wd.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${wd.GREYSCALE_0_05}`,borderRadius:Pd,boxShadow:`inset 0px 0px 0px 1px ${wd.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${wd.GREYSCALE_0_05}`,borderRadius:Pd},thumb:{height:"16px",width:"16px",borderRadius:Pd,backgroundColor:wd.WHITE,boxShadow:`0px 1px 2px 0px ${wd.GREYSCALE_0_15}, 0px 0px 0px 1px ${wd.GREYSCALE_0_05}`,"&:hover":{borderRadius:Pd,boxShadow:`0 2px 4px 0 ${wd.GREYSCALE_0_30}, 0 0 0 1px ${wd.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${wd.GREYSCALE_0_15}, 0 0 0 1px ${wd.GREYSCALE_0_06}, 0 0 0 2px ${wd.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${wd.GREYSCALE_0_15}, 0 0 0 1px ${wd.GREYSCALE_0_06}, 0 0 0 2px ${wd.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:wd.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:wd.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:wd.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:wd.GREYSCALE_0_15},markLabel:{color:wd.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:wd.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:wd.WHITE,color:wd.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:wd.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:wd.GREEN_PALE,boxShadow:`0 0 0 3px ${Vi(wd.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:wd.BLUE_PALE,boxShadow:`0 0 0 3px ${Vi(wd.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:wd.GREYSCALE_0_15,borderRadius:Pd},thumb:{height:"16px",width:"16px",borderRadius:Pd,backgroundColor:wd.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:Ed,fontWeight:kd,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${wd.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${wd.MISC_FOCUS_BORDER}`,backgroundColor:wd.GREYSCALE_0_03,borderRadius:Pd},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:wd.GREYSCALE_25,"&.Mui-selected":{color:wd.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Ed,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Pd,"&:hover":{backgroundColor:wd.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 ${wd.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${wd.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Pd,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:wd.GREYSCALE_0_05},"&:hover":{backgroundColor:wd.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${wd.GREYSCALE_85}`,borderRight:`1px solid ${wd.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:kd,backgroundColor:wd.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:wd.GREYSCALE_98,borderBottom:`1px solid ${wd.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${wd.GREYSCALE_85}`,borderTop:`1px solid ${wd.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:wd.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:wd.GREYSCALE_0_05,"&:hover":{backgroundColor:wd.GREYSCALE_0_03}},"&&:hover":{backgroundColor:wd.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yn.jsx(zd,{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 ${wd.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Ed,borderRadius:Pd,padding:"7px 16px",border:`1px solid ${wd.GREYSCALE_0_15}`,backgroundColor:wd.GREYSCALE_100_60,color:wd.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:wd.GREYSCALE_0_10,border:`1px solid ${wd.GREYSCALE_0_30}`},"&:hover":{backgroundColor:wd.GREYSCALE_0_03,border:`1px solid ${wd.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:wd.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${wd.MISC_FOCUS_BORDER}`,border:`1px solid ${wd.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:wd.GREYSCALE_25,backgroundColor:wd.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:wd.GREYSCALE_0_10,border:`1px solid ${wd.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Cd,height:24,width:24,padding:7},sizeLarge:{fontSize:Id,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Ed,borderRadius:Pd}}},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:wd.GREYSCALE_20},tooltip:{backgroundColor:wd.GREYSCALE_20,fontSize:Cd,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Hd=e=>({mode:"light",primary:{ultraLight:wd.GREEN_ULTRA_LIGHT,light:wd.GREEN_PALE,main:wd.GREEN,dark:wd.GREEN_DARK,extraDark:wd.GREEN_EXTRA_DARK,contrastText:wd.WHITE},secondary:{ultraLight:wd.BLUE_ULTRA_LIGHT,light:wd.BLUE_PALE,main:wd.BLUE,dark:wd.BLUE_DARK,extraDark:wd.BLUE_EXTRA_DARK,contrastText:wd.WHITE},error:{ultraLight:wd.RED_ULTRA_LIGHT,light:wd.RED_PALE,main:wd.RED,dark:wd.RED_DARK,extraDark:wd.RED_EXTRA_DARK,contrastText:wd.WHITE},warning:{ultraLight:wd.ORANGE_ULTRA_LIGHT,light:wd.ORANGE_PALE,main:wd.ORANGE,dark:wd.ORANGE_DARK,extraDark:wd.ORANGE_EXTRA_DARK,contrastText:wd.WHITE},success:{ultraLight:wd.GREEN_ULTRA_LIGHT,light:wd.GREEN_PALE,main:wd.GREEN,dark:wd.GREEN_DARK,extraDark:wd.GREEN_EXTRA_DARK,contrastText:wd.WHITE},info:{ultraLight:wd.BLUE_ULTRA_LIGHT,light:wd.BLUE_PALE,main:wd.BLUE,dark:wd.BLUE_DARK,extraDark:wd.BLUE_EXTRA_DARK,contrastText:wd.WHITE},text:{primary:wd.TEXT_PRIMARY,secondary:wd.TEXT_SECONDARY,disabled:wd.GREYSCALE_0_30},action:{hover:wd.GREYSCALE_0_03,hoverOpacity:.03,selected:wd.GREYSCALE_0_05,selectedOpacity:.05,focus:wd.MISC_FOCUS_BORDER},amethyst:{ultraLight:wd.WHITE,main:wd.PURPLE,light:wd.PURPLE_PALE,dark:wd.PURPLE_DARK,extraDark:wd.GREYSCALE_0_0,contrastText:wd.WHITE},background:{paper:wd.WHITE,default:wd.GREYSCALE_95},divider:wd.GREYSCALE_0_15}),Vd=e=>({components:$d(),palette:Hd(),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:Ed,fontWeightLight:Md,fontWeightRegular:Rd,fontWeightMedium:kd,fontWeightBold:Ld,htmlFontSize:Ed,fontFamily:Ad.FONT_FAMILY,button:{fontWeight:kd,fontSize:Ed,textTransform:"none"},body1:{fontSize:Id,lineHeight:"24px"},body2:{fontSize:Ed,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Dd,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Id,fontWeight:kd,lineHeight:"16px"},h6:{fontSize:Ed,fontWeight:kd,lineHeight:"16px"},caption:{color:wd.TEXT_SECONDARY},subtitle1:{fontSize:Ed,color:wd.TEXT_SECONDARY},subtitle2:{fontSize:Cd,color:wd.TEXT_SECONDARY}},shape:{borderRadius:Pd}}),Bd={...Sd};var Gd,Ud,Yd={},Kd={exports:{}},Xd={exports:{}};function Jd(){return Gd||(Gd=1,function(e){function t(n){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(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Xd)),Xd.exports}var Zd={};function Qd(e,t){return function(){return null}}function ep(e){return e&&"object"===No(e)&&e.constructor===Object}function tp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Ae({},e):e;return ep(e)&&ep(t)&&Object.keys(t).forEach(function(i){"__proto__"!==i&&(ep(t[i])&&i in e?r[i]=tp(e[i],t[i],n):r[i]=t[i])}),r}var np=(Bn.element,function(){return null});np.isRequired=(Bn.element.isRequired,function(){return null});var rp=function(){return null};var ip,op,ap={exports:{}},sp={};var lp=(op||(op=1,ap.exports=function(){if(ip)return sp;ip=1;var e=60103,t=60106,n=60107,r=60108,i=60114,o=60109,a=60110,s=60112,l=60113,u=60120,c=60115,d=60116,p=60121,f=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var v=Symbol.for;e=v("react.element"),t=v("react.portal"),n=v("react.fragment"),r=v("react.strict_mode"),i=v("react.profiler"),o=v("react.provider"),a=v("react.context"),s=v("react.forward_ref"),l=v("react.suspense"),u=v("react.suspense_list"),c=v("react.memo"),d=v("react.lazy"),p=v("react.block"),f=v("react.server.block"),h=v("react.fundamental"),m=v("react.debug_trace_mode"),g=v("react.legacy_hidden")}function y(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case i:case r:case l:case u:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case c:case o:return p;default:return f}}case t:return f}}}var b=o,x=e,S=s,w=n,C=d,E=c,I=t,D=i,P=r,M=l;return sp.ContextConsumer=a,sp.ContextProvider=b,sp.Element=x,sp.ForwardRef=S,sp.Fragment=w,sp.Lazy=C,sp.Memo=E,sp.Portal=I,sp.Profiler=D,sp.StrictMode=P,sp.Suspense=M,sp.isAsyncMode=function(){return!1},sp.isConcurrentMode=function(){return!1},sp.isContextConsumer=function(e){return y(e)===a},sp.isContextProvider=function(e){return y(e)===o},sp.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},sp.isForwardRef=function(e){return y(e)===s},sp.isFragment=function(e){return y(e)===n},sp.isLazy=function(e){return y(e)===d},sp.isMemo=function(e){return y(e)===c},sp.isPortal=function(e){return y(e)===t},sp.isProfiler=function(e){return y(e)===i},sp.isStrictMode=function(e){return y(e)===r},sp.isSuspense=function(e){return y(e)===l},sp.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===m||e===r||e===l||e===u||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===c||e.$$typeof===o||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===p||e[0]===f)},sp.typeOf=y,sp}()),ap.exports),up=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function cp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(up);return t&&t[1]||""}(e)||t}function dp(e,t,n){var r=cp(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}var pp,fp="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),hp=Bn.oneOfType([Bn.func,Bn.object]),mp=Object.freeze({__proto__:null,HTMLElementType:function(e,t,n,r,i){return null},chainPropTypes:Qd,deepmerge:tp,elementAcceptingRef:np,elementTypeAcceptingRef:rp,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);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 cp(e,"Component");if("object"===No(e))switch(e.$$typeof){case lp.ForwardRef:return dp(e,e.render,"ForwardRef");case lp.Memo:return dp(e,e.type,"memo");default:return}}},ponyfillGlobal:fp,refType:hp}),gp=jt(mp);function vp(){if(pp)return Zd;pp=1,Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.hexToRgb=n,Zd.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=i(e),n=t.values;return"#".concat(n.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},Zd.hslToRgb=r,Zd.decomposeColor=i,Zd.recomposeColor=o,Zd.getContrastRatio=function(e,t){var n=a(e),r=a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Zd.getLuminance=a,Zd.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return a(e)>.5?l(e,t):u(e,t)},Zd.fade=function(e,t){return s(e,t)},Zd.alpha=s,Zd.darken=l,Zd.lighten=u;var e=gp;function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function n(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function r(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(u+="a",c.push(t[3])),o({type:u,values:c})}function i(t){if(t.type)return t;if("#"===t.charAt(0))return i(n(t));var r=t.indexOf("("),o=t.substring(0,r);if(-1===["rgb","rgba","hsl","hsla"].indexOf(o))throw new Error((0,e.formatMuiErrorMessage)(3,t));var a=t.substring(r+1,t.length-1).split(",");return{type:o,values:a=a.map(function(e){return parseFloat(e)})}}function o(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function a(e){var t="hsl"===(e=i(e)).type?i(r(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 s(e,n){return e=i(e),n=t(n),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=n,o(e)}function l(e,n){if(e=i(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]*=1-n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-n;return o(e)}function u(e,n){if(e=i(e),n=t(n),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*n;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*n;return o(e)}return Zd}var yp,bp,xp,Sp={},wp={exports:{}},Cp={exports:{}},Ep={exports:{}};function Ip(){return yp||(yp=1,function(e){var t=Jd().default;e.exports=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,n||"default");if("object"!=t(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Ep)),Ep.exports}function Dp(){return bp||(bp=1,function(e){var t=Jd().default,n=Ip();e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Cp)),Cp.exports}function Pp(){return xp||(xp=1,function(e){var t=Dp();e.exports=function(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(wp)),wp.exports}var Mp,Rp={exports:{}};function kp(){return Mp||(Mp=1,function(e){var t=Ca();e.exports=function(e,n){if(null==e)return{};var r,i,o=t(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===n.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},e.exports.__esModule=!0,e.exports.default=e.exports}(Rp)),Rp.exports}var Lp,Ap={};function Op(){if(Lp)return Ap;Lp=1;var e=Ho();Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.default=function(e){var i=e.values,o=void 0===i?{xs:0,sm:600,md:960,lg:1280,xl:1920}:i,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,n.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof o[e]?o[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var n=r.indexOf(t);return n===r.length-1?d(e):"@media (min-width:".concat("number"==typeof o[e]?o[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==n&&"number"==typeof o[r[n+1]]?o[r[n+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:r,values:o,up:d,down:function(e){var t=r.indexOf(e)+1,n=o[r[t]];return t===r.length?d("xs"):"@media (max-width:".concat(("number"==typeof n&&t>0?n:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return o[e]}},c)},Ap.keys=void 0;var t=e(xa()),n=e(kp()),r=["xs","sm","md","lg","xl"];return Ap.keys=r,Ap}var Tp,qp={};function _p(){if(Tp)return qp;Tp=1;var e=Ho();Object.defineProperty(qp,"__esModule",{value:!0}),qp.default=function(e,r,i){var o;return(0,n.default)({gutters:function(){var i=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,n.default)({paddingLeft:r(2),paddingRight:r(2)},i,(0,t.default)({},e.up("sm"),(0,n.default)({paddingLeft:r(3),paddingRight:r(3)},i[e.up("sm")])))},toolbar:(o={minHeight:56},(0,t.default)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(o,e.up("sm"),{minHeight:64}),o)},i)};var t=e(Pp()),n=e(xa());return qp}var Np,jp={},Fp={};function zp(){if(Np)return Fp;Np=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.default=void 0;var e={black:"#000",white:"#fff"};return Fp.default=e,Fp}var Wp,$p={};function Hp(){if(Wp)return $p;Wp=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.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 $p.default=e,$p}var Vp,Bp={};function Gp(){if(Vp)return Bp;Vp=1,Object.defineProperty(Bp,"__esModule",{value:!0}),Bp.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 Bp.default=e,Bp}var Up,Yp={};function Kp(){if(Up)return Yp;Up=1,Object.defineProperty(Yp,"__esModule",{value:!0}),Yp.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 Yp.default=e,Yp}var Xp,Jp={};function Zp(){if(Xp)return Jp;Xp=1,Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.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 Jp.default=e,Jp}var Qp,ef={};function tf(){if(Qp)return ef;Qp=1,Object.defineProperty(ef,"__esModule",{value:!0}),ef.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 ef.default=e,ef}var nf,rf={};function of(){if(nf)return rf;nf=1,Object.defineProperty(rf,"__esModule",{value:!0}),rf.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 rf.default=e,rf}var af,sf,lf={};function uf(){if(af)return lf;af=1,Object.defineProperty(lf,"__esModule",{value:!0}),lf.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 lf.default=e,lf}function cf(){if(sf)return jp;sf=1;var e=Ho();Object.defineProperty(jp,"__esModule",{value:!0}),jp.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,k=e.contrastThreshold,L=void 0===k?3:k,A=e.tonalOffset,O=void 0===A?.2:A,T=(0,n.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function q(e){return(0,p.getContrastRatio)(e,h.text.primary)>=L?h.text.primary:f.text.primary}var _=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[n]&&(e.main=e[n]),!e.main)throw new Error((0,r.formatMuiErrorMessage)(4,n));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",i,O),m(e,"dark",o,O),e.contrastText||(e.contrastText=q(e.main)),e},N={dark:h,light:f},j=(0,r.deepmerge)((0,t.default)({common:i.default,type:R,primary:_(v),secondary:_(b,"A400","A200","A700"),error:_(S),warning:_(C),info:_(I),success:_(P),grey:o.default,contrastThreshold:L,getContrastText:q,augmentColor:_,tonalOffset:O},N[R]),T);return j},jp.dark=jp.light=void 0;var t=e(xa()),n=e(kp()),r=gp,i=e(zp()),o=e(Hp()),a=e(Gp()),s=e(Kp()),l=e(Zp()),u=e(tf()),c=e(of()),d=e(uf()),p=vp(),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:i.default.white,default:o.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}};jp.light=f;var h={text:{primary:i.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:o.default[800],default:"#303030"},action:{active:i.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,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,p.lighten)(e.main,i):"dark"===t&&(e.dark=(0,p.darken)(e.main,o)))}return jp.dark=h,jp}var df,pf={};function ff(){if(df)return pf;df=1;var e=Ho();Object.defineProperty(pf,"__esModule",{value:!0}),pf.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,n.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,n,r,o,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(n),lineHeight:r},d===s?{letterSpacing:"".concat(i(o/n),"em")}:{},a,E)},k={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,r.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:M,round:o,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:b,fontWeightBold:S},k),D,{clone:!1})};var t=e(xa()),n=e(kp()),r=gp;function i(e){return Math.round(1e5*e)/1e5}function o(e){return i(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return pf}var hf,mf={};function gf(){if(hf)return mf;hf=1,Object.defineProperty(mf,"__esModule",{value:!0}),mf.default=void 0;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(",")}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 mf.default=t,mf}var vf,yf={};function bf(){if(vf)return yf;vf=1,Object.defineProperty(yf,"__esModule",{value:!0}),yf.default=void 0;var e={borderRadius:4};return yf.default=e,yf}var xf={};function Sf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wf(e,t){if(e){if("string"==typeof e)return Sf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sf(e,t):void 0}}function Cf(e){return function(e){if(Array.isArray(e))return Sf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wf(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 Ef(e,t){return t?tp(e,t,{clone:!1}):e}var If={xs:0,sm:600,md:960,lg:1280,xl:1920},Df={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(If[e],"px)")}};function Pf(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||Df;return t.reduce(function(e,i,o){return e[r.up(r.keys[o])]=n(t[o]),e},{})}if("object"===No(t)){var i=e.theme.breakpoints||Df;return Object.keys(t).reduce(function(e,r){return e[i.up(r)]=n(t[r]),e},{})}return n(t)}function Mf(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function Rf(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,i=e.themeKey,o=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=Mf(e.theme,i)||{};return Pf(e,n,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Mf(a,e)||e,o&&(t=o(t))),!1===r?t:function(e,t,n){return(t=jo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)})};return a.propTypes={},a.filterProps=[t],a}function kf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce(function(t,n){var r=n(e);return r?Ef(t,r):t},{})};return r.propTypes={},r.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),r}function Lf(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Af=Rf({prop:"border",themeKey:"borders",transform:Lf}),Of=Rf({prop:"borderTop",themeKey:"borders",transform:Lf}),Tf=Rf({prop:"borderRight",themeKey:"borders",transform:Lf}),qf=Rf({prop:"borderBottom",themeKey:"borders",transform:Lf}),_f=Rf({prop:"borderLeft",themeKey:"borders",transform:Lf}),Nf=Rf({prop:"borderColor",themeKey:"palette"}),jf=Rf({prop:"borderRadius",themeKey:"shape"}),Ff=kf(Af,Of,Tf,qf,_f,Nf,jf);function zf(e,t){var n={};return Object.keys(e).forEach(function(r){-1===t.indexOf(r)&&(n[r]=e[r])}),n}function Wf(e){var t=function(t){var n=e(t);return t.css?Ae({},Ef(n,e(Ae({theme:t.theme},t.css))),zf(t.css,[e.filterProps])):t.sx?Ae({},Ef(n,e(Ae({theme:t.theme},t.sx))),zf(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(Cf(e.filterProps)),t}var $f=kf(Rf({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Rf({prop:"display"}),Rf({prop:"overflow"}),Rf({prop:"textOverflow"}),Rf({prop:"visibility"}),Rf({prop:"whiteSpace"})),Hf=Rf({prop:"flexBasis"}),Vf=Rf({prop:"flexDirection"}),Bf=Rf({prop:"flexWrap"}),Gf=Rf({prop:"justifyContent"}),Uf=Rf({prop:"alignItems"}),Yf=Rf({prop:"alignContent"}),Kf=Rf({prop:"order"}),Xf=Rf({prop:"flex"}),Jf=Rf({prop:"flexGrow"}),Zf=Rf({prop:"flexShrink"}),Qf=Rf({prop:"alignSelf"}),eh=Rf({prop:"justifyItems"}),th=Rf({prop:"justifySelf"}),nh=kf(Hf,Vf,Bf,Gf,Uf,Yf,Kf,Xf,Jf,Zf,Qf,eh,th),rh=Rf({prop:"gridGap"}),ih=Rf({prop:"gridColumnGap"}),oh=Rf({prop:"gridRowGap"}),ah=Rf({prop:"gridColumn"}),sh=Rf({prop:"gridRow"}),lh=Rf({prop:"gridAutoFlow"}),uh=Rf({prop:"gridAutoColumns"}),ch=Rf({prop:"gridAutoRows"}),dh=Rf({prop:"gridTemplateColumns"}),ph=Rf({prop:"gridTemplateRows"}),fh=Rf({prop:"gridTemplateAreas"}),hh=Rf({prop:"gridArea"}),mh=kf(rh,ih,oh,ah,sh,lh,uh,ch,dh,ph,fh,hh),gh=Rf({prop:"color",themeKey:"palette"}),vh=Rf({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),yh=kf(gh,vh),bh=Rf({prop:"position"}),xh=Rf({prop:"zIndex",themeKey:"zIndex"}),Sh=Rf({prop:"top"}),wh=Rf({prop:"right"}),Ch=Rf({prop:"bottom"}),Eh=Rf({prop:"left"}),Ih=kf(bh,xh,Sh,wh,Ch,Eh),Dh=Rf({prop:"boxShadow",themeKey:"shadows"});function Ph(e){return e<=1?"".concat(100*e,"%"):e}var Mh=Rf({prop:"width",transform:Ph}),Rh=Rf({prop:"maxWidth",transform:Ph}),kh=Rf({prop:"minWidth",transform:Ph}),Lh=Rf({prop:"height",transform:Ph}),Ah=Rf({prop:"maxHeight",transform:Ph}),Oh=Rf({prop:"minHeight",transform:Ph}),Th=Rf({prop:"size",cssProperty:"width",transform:Ph}),qh=Rf({prop:"size",cssProperty:"height",transform:Ph}),_h=Rf({prop:"boxSizing"}),Nh=kf(Mh,Rh,kh,Lh,Ah,Oh,_h);function jh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t);else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||wf(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 Fh={m:"margin",p:"padding"},zh={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Wh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$h=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){if(e.length>2){if(!Wh[e])return[e];e=Wh[e]}var t=jh(e.split(""),2),n=t[0],r=t[1],i=Fh[n],o=zh[r]||"";return Array.isArray(o)?o.map(function(e){return i+e}):[i+o]}),Hh=["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 Vh(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 Bh(e,t){return function(n){return e.reduce(function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e},{})}}function Gh(e){var t=Vh(e.theme);return Object.keys(e).map(function(n){if(-1===Hh.indexOf(n))return null;var r=Bh($h(n),t),i=e[n];return Pf(e,i,r)}).reduce(Ef,{})}Gh.propTypes={},Gh.filterProps=Hh;var Uh,Yh=Rf({prop:"fontFamily",themeKey:"typography"}),Kh=Rf({prop:"fontSize",themeKey:"typography"}),Xh=Rf({prop:"fontStyle",themeKey:"typography"}),Jh=Rf({prop:"fontWeight",themeKey:"typography"}),Zh=Rf({prop:"letterSpacing"}),Qh=Rf({prop:"lineHeight"}),em=Rf({prop:"textAlign"}),tm=kf(Yh,Kh,Xh,Jh,Zh,Qh,em),nm=Object.freeze({__proto__:null,alignContent:Yf,alignItems:Uf,alignSelf:Qf,bgcolor:vh,border:Af,borderBottom:qf,borderColor:Nf,borderLeft:_f,borderRadius:jf,borderRight:Tf,borderTop:Of,borders:Ff,bottom:Ch,boxSizing:_h,breakpoints:function(e){var t=function(t){var n=e(t),r=t.theme.breakpoints||Df,i=r.keys.reduce(function(n,i){return t[i]&&((n=n||{})[r.up(i)]=e(Ae({theme:t.theme},t[i]))),n},null);return Ef(n,i)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Cf(e.filterProps)),t},color:gh,compose:kf,createUnarySpacing:Vh,css:function(e){return Wf(e)},display:$f,flex:Xf,flexBasis:Hf,flexDirection:Vf,flexGrow:Jf,flexShrink:Zf,flexWrap:Bf,flexbox:nh,fontFamily:Yh,fontSize:Kh,fontStyle:Xh,fontWeight:Jh,grid:mh,gridArea:hh,gridAutoColumns:uh,gridAutoFlow:lh,gridAutoRows:ch,gridColumn:ah,gridColumnGap:ih,gridGap:rh,gridRow:sh,gridRowGap:oh,gridTemplateAreas:fh,gridTemplateColumns:dh,gridTemplateRows:ph,height:Lh,justifyContent:Gf,justifyItems:eh,justifySelf:th,left:Eh,letterSpacing:Zh,lineHeight:Qh,maxHeight:Ah,maxWidth:Rh,minHeight:Oh,minWidth:kh,order:Kf,palette:yh,position:bh,positions:Ih,right:wh,shadows:Dh,sizeHeight:qh,sizeWidth:Th,sizing:Nh,spacing:Gh,style:Rf,styleFunctionSx:Wf,textAlign:em,top:Sh,typography:tm,width:Mh,zIndex:xh}),rm=jt(nm);function im(){if(Uh)return xf;Uh=1,Object.defineProperty(xf,"__esModule",{value:!0}),xf.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,e.createUnarySpacing)({spacing:t}),r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?n(1):1===t.length?n(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=n(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return t}}),r.mui=!0,r};var e=rm;return xf}var om,am={};function sm(){if(om)return am;om=1;var e=Ho();Object.defineProperty(am,"__esModule",{value:!0}),am.default=am.duration=am.easing=void 0;var t=e(kp()),n={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)"};am.easing=n;var r={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function i(e){return"".concat(Math.round(e),"ms")}am.duration=r;var o={easing:n,duration:r,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.duration,s=void 0===a?r.standard:a,l=o.easing,u=void 0===l?n.easeInOut:l,c=o.delay,d=void 0===c?0:c;return(0,t.default)(o,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:i(s)," ").concat(u," ").concat("string"==typeof d?d:i(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 am.default=o,am}var lm,um,cm={};function dm(){if(lm)return cm;lm=1,Object.defineProperty(cm,"__esModule",{value:!0}),cm.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return cm.default=e,cm}function pm(){if(um)return Sp;um=1;var e=Ho();Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.createMuiTheme=function(){return p.apply(void 0,arguments)},Sp.default=void 0,e(Pp());var t=e(kp()),n=gp,r=e(Op()),i=e(_p()),o=e(cf()),a=e(ff()),s=e(gf()),l=e(bf()),u=e(im()),c=e(sm()),d=e(dm());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,o.default)(v),C=(0,r.default)(f),E=(0,u.default)(y),I=(0,n.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,i.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,n.deepmerge)(e,t)},I)}var f=p;return Sp.default=f,Sp}var fm,hm={};function mm(){if(fm)return hm;fm=1;var e=Ho();Object.defineProperty(hm,"__esModule",{value:!0}),hm.default=function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(i))};var t=gp,n=e(pm());return hm}var gm={},vm="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ym=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function bm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==ym.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[vm]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}function xm(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var Sm="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},wm="object"===("undefined"==typeof window?"undefined":Sm(window))&&"object"===("undefined"==typeof document?"undefined":Sm(document))&&9===document.nodeType;function Cm(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jo(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Em={}.constructor;function Im(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Im);if(e.constructor!==Em)return e;var t={};for(var n in e)t[n]=Im(e[n]);return t}function Dm(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=Im(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var Pm=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Mm=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=Pm(e[n]," ");else t=Pm(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Rm(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function km(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Lm(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=Rm(n),l=s.linebreak,u=s.space;if(e&&o++,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&&(r&&(r+=l),r+=km(p+":"+u+Mm(f)+";",o))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=km(h+":"+u+Mm(m)+";",o))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=km(g+":"+u+Mm(v)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),km(""+e+u+"{"+r,--o)+km("}",o)):r}var Am=/([[\].#*$><+~=|^:(),"'`\s])/g,Om="undefined"!=typeof CSS&&CSS.escape,Tm=function(e){return Om?Om(e):e.replace(Am,"\\$1")},qm=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),_m=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(ts(ts(i)),s),i.selectorText="."+Tm(i.id)),i}Ba(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Mm(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Ae({},e,{allowEmpty:!0}):e;return Lm(this.selectorText,this.style,n)},Cm(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(qm),Nm={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new _m(e,t,n)}},jm={indent:1,children:!0},Fm=/@([\w-]+)/,zm=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Fm);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new cg(Ae({},n,{parent:this})),t)this.rules.add(i,t[i]);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,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=jm);var t=Rm(e).linebreak;if(null==e.indent&&(e.indent=jm.indent),null==e.children&&(e.children=jm.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Wm=/@container|@media|@supports\s+/,$m={onCreateRule:function(e,t,n){return Wm.test(e)?new zm(e,t,n):null}},Hm={indent:1,children:!0},Vm=/@keyframes\s+([\w-]+)/,Bm=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(Vm);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:Tm(a(this,o)),this.rules=new cg(Ae({},n,{parent:this})),t)this.rules.add(s,t[s],Ae({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Hm);var t=Rm(e).linebreak;if(null==e.indent&&(e.indent=Hm.indent),null==e.children&&(e.children=Hm.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Gm=/@keyframes\s+/,Um=/\$([\w-]+)/g,Ym=function(e,t){return"string"==typeof e?e.replace(Um,function(e,n){return n in t?t[n]:e}):e},Km=function(e,t,n){var r=e[t],i=Ym(r,n);i!==r&&(e[t]=i)},Xm={onCreateRule:function(e,t,n){return"string"==typeof e&&Gm.test(e)?new Bm(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Km(e,"animation-name",n.keyframes),"animation"in e&&Km(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return Ym(e,r.keyframes);default:return e}}},Jm=function(e){function t(){return e.apply(this,arguments)||this}return Ba(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Ae({},e,{allowEmpty:!0}):e;return Lm(this.key,this.style,n)},t}(qm),Zm={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new Jm(e,t,n):null}},Qm=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Rm(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Lm(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Lm(this.at,this.style,e)},e}(),eg=/@font-face/,tg={onCreateRule:function(e,t,n){return eg.test(e)?new Qm(e,t,n):null}},ng=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Lm(this.key,this.style,e)},e}(),rg={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new ng(e,t,n):null}},ig=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),og={"@charset":!0,"@import":!0,"@namespace":!0},ag={onCreateRule:function(e,t,n){return e in og?new ig(e,t,n):null}},sg=[Nm,$m,Xm,Zm,tg,rg,ag],lg={process:!0},ug={force:!0,process:!0},cg=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,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=Ae({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Tm(this.classes[d]));var p=Dm(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,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=Ae({},n,{index:i})),this.add(e,t,o)},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 _m?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Bm&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof _m?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Bm&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;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],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=lg);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,ug)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,ug)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=Rm(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),dg=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Ae({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new cg(this.options),e)this.rules.add(n,e[n]);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,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},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,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),pg=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),fg=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,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,n=t.attached,r=Oe(t,["attached"]),i=Rm(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},Cm(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),hg=new fg,mg="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),gg="2f1acc6c3a606b082e5eef5e54414ffb";null==mg[gg]&&(mg[gg]=0);var vg=mg[gg]++,yg=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+vg+i+t:o+n.key+"-"+vg+(i?"-"+i:"")+"-"+t}},bg=function(e){var t;return function(){return t||(t=e()),t}},xg=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Sg=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Mm(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},wg=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Cg=function(e,t){return e.selectorText=t,e.selectorText===t},Eg=bg(function(){return document.querySelector("head")});function Ig(e){var t=hg.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=Eg(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var Dg=bg(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),Pg=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Mg=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Rg=function(){function e(e){this.getPropertyValue=xg,this.setProperty=Sg,this.removeProperty=wg,this.setSelector=Cg,this.hasInsertedRules=!1,this.cssRules=[],e&&hg.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=Dg();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Ig(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else Eg().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 n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=Mg(n,t);if(!1===(i=Pg(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=Mg(n,t),l=Pg(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof dg&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),kg=0,Lg=function(){function e(e){this.id=kg++,this.version="10.10.0",this.plugins=new pg,this.options={id:{minify:!1},createGenerateId:yg,Renderer:wm?Rg:null,plugins:[]},this.generateId=yg({minify:!1});for(var t=0;t<sg.length;t++)this.plugins.use(sg[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=Ae({},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 n=t.index;"number"!=typeof n&&(n=0===hg.index?0:hg.index+1);var r=new dg(e,Ae({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),hg.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=Ae({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=Dm(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.plugins.use(t)}),this},e}(),Ag=function(e){return new Lg(e)},Og="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Tg(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=Tg(r);o&&(t||(t={}),t[n]=o)}}return t}
|
|
88
|
-
/**
|
|
89
|
-
* A better abstraction over CSS.
|
|
90
|
-
*
|
|
91
|
-
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
92
|
-
* @website https://github.com/cssinjs/jss
|
|
93
|
-
* @license MIT
|
|
94
|
-
*/Ag();var qg=Date.now(),_g="fnValues"+qg,Ng="fnStyle"+ ++qg,jg="@global",Fg="@global ",zg=function(){function e(e,t,n){for(var r in this.type="global",this.at=jg,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new cg(Ae({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Wg=function(){function e(e,t,n){this.type="global",this.at=jg,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,Ae({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),$g=/\s*,\s*/g;function Hg(e,t){for(var n=e.split($g),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function Vg(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===jg)return new zg(e,t,n);if("@"===e[0]&&e.substr(0,8)===Fg)return new Wg(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[jg]:null;if(i){for(var o in i)t.addRule(o,i[o],Ae({},n,{selector:Hg(o,e.selector)}));delete r[jg]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,7)===jg){var o=Hg(i.substr(7),e.selector);t.addRule(o,r[i],Ae({},n,{selector:o})),delete r[i]}}(e,t))}}}var Bg=/\s*,\s*/g,Gg=/&/g,Ug=/\$([\w-]+)/g;function Yg(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(Bg),r=e.split(Bg),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Gg,a):a+" "+l}return i}function n(e,t,n){if(n)return Ae({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=Ae({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=n(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,o)),f=f.replace(Ug,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,r[c],Ae({},a,{selector:f})):u.addRule(h,r[c],Ae({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var Kg=/[A-Z]/g,Xg=/^ms-/,Jg={};function Zg(e){return"-"+e.toLowerCase()}function Qg(e){if(Jg.hasOwnProperty(e))return Jg[e];var t=e.replace(Kg,Zg);return Jg[e]=Xg.test(t)?"-"+t:t}function ev(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Qg(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(ev):t.fallbacks=ev(e.fallbacks)),t}var tv=Og&&CSS?CSS.px:"px",nv=Og&&CSS?CSS.ms:"ms",rv=Og&&CSS?CSS.percent:"%";function iv(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var ov=iv({"animation-delay":nv,"animation-duration":nv,"background-position":tv,"background-position-x":tv,"background-position-y":tv,"background-size":tv,border:tv,"border-bottom":tv,"border-bottom-left-radius":tv,"border-bottom-right-radius":tv,"border-bottom-width":tv,"border-left":tv,"border-left-width":tv,"border-radius":tv,"border-right":tv,"border-right-width":tv,"border-top":tv,"border-top-left-radius":tv,"border-top-right-radius":tv,"border-top-width":tv,"border-width":tv,"border-block":tv,"border-block-end":tv,"border-block-end-width":tv,"border-block-start":tv,"border-block-start-width":tv,"border-block-width":tv,"border-inline":tv,"border-inline-end":tv,"border-inline-end-width":tv,"border-inline-start":tv,"border-inline-start-width":tv,"border-inline-width":tv,"border-start-start-radius":tv,"border-start-end-radius":tv,"border-end-start-radius":tv,"border-end-end-radius":tv,margin:tv,"margin-bottom":tv,"margin-left":tv,"margin-right":tv,"margin-top":tv,"margin-block":tv,"margin-block-end":tv,"margin-block-start":tv,"margin-inline":tv,"margin-inline-end":tv,"margin-inline-start":tv,padding:tv,"padding-bottom":tv,"padding-left":tv,"padding-right":tv,"padding-top":tv,"padding-block":tv,"padding-block-end":tv,"padding-block-start":tv,"padding-inline":tv,"padding-inline-end":tv,"padding-inline-start":tv,"mask-position-x":tv,"mask-position-y":tv,"mask-size":tv,height:tv,width:tv,"min-height":tv,"max-height":tv,"min-width":tv,"max-width":tv,bottom:tv,left:tv,top:tv,right:tv,inset:tv,"inset-block":tv,"inset-block-end":tv,"inset-block-start":tv,"inset-inline":tv,"inset-inline-end":tv,"inset-inline-start":tv,"box-shadow":tv,"text-shadow":tv,"column-gap":tv,"column-rule":tv,"column-rule-width":tv,"column-width":tv,"font-size":tv,"font-size-delta":tv,"letter-spacing":tv,"text-decoration-thickness":tv,"text-indent":tv,"text-stroke":tv,"text-stroke-width":tv,"word-spacing":tv,motion:tv,"motion-offset":tv,outline:tv,"outline-offset":tv,"outline-width":tv,perspective:tv,"perspective-origin-x":rv,"perspective-origin-y":rv,"transform-origin":rv,"transform-origin-x":rv,"transform-origin-y":rv,"transform-origin-z":rv,"transition-delay":nv,"transition-duration":nv,"vertical-align":tv,"flex-basis":tv,"shape-margin":tv,size:tv,gap:tv,grid:tv,"grid-gap":tv,"row-gap":tv,"grid-row-gap":tv,"grid-column-gap":tv,"grid-template-rows":tv,"grid-template-columns":tv,"grid-auto-rows":tv,"grid-auto-columns":tv,"box-shadow-x":tv,"box-shadow-y":tv,"box-shadow-blur":tv,"box-shadow-spread":tv,"font-line-height":tv,"text-shadow-x":tv,"text-shadow-y":tv,"text-shadow-blur":tv});function av(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=av(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=av(i,t[i],n);else for(var o in t)t[o]=av(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||ov[e];return!a||0===t&&a===tv?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function sv(e){void 0===e&&(e={});var t=iv(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=av(r,e[r],t);return e},onChangeValue:function(e,n){return av(n,e,t)}}}var lv="",uv="",cv="",dv="",pv=wm&&"ontouchstart"in document.documentElement;if(wm){var fv={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},hv=document.createElement("p").style;for(var mv in fv)if(mv+"Transform"in hv){lv=mv,uv=fv[mv];break}"Webkit"===lv&&"msHyphens"in hv&&(lv="ms",uv=fv.ms,dv="edge"),"Webkit"===lv&&"-apple-trailing-word"in hv&&(cv="apple")}var gv=lv,vv=uv,yv=cv,bv=dv,xv=pv;var Sv={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===gv?"-webkit-"+e:vv+e)}},wv={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===gv?vv+"print-"+e:e)}},Cv=/[-\s]+(.)?/g;function Ev(e,t){return t?t.toUpperCase():""}function Iv(e){return e.replace(Cv,Ev)}function Dv(e){return Iv("-"+e)}var Pv,Mv={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===gv){var n="mask-image";if(Iv(n)in t)return e;if(gv+Dv(n)in t)return vv+e}return e}},Rv={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==yv||xv?e:vv+e)}},kv={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:vv+e)}},Lv={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:vv+e)}},Av={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===gv||"ms"===gv&&"edge"!==bv?vv+e:e)}},Ov={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===gv||"ms"===gv||"apple"===yv?vv+e:e)}},Tv={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===gv?"WebkitColumn"+Dv(e)in t&&vv+"column-"+e:"Moz"===gv&&("page"+Dv(e)in t&&"page-"+e))}},qv={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===gv)return e;var n=e.replace("-inline","");return gv+Dv(n)in t&&vv+n}},_v={supportedProperty:function(e,t){return Iv(e)in t&&e}},Nv={supportedProperty:function(e,t){var n=Dv(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:gv+n in t?vv+e:"Webkit"!==gv&&"Webkit"+n in t&&"-webkit-"+e}},jv={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===gv?""+vv+e:e)}},Fv={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===gv?vv+"scroll-chaining":e)}},zv={"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"},Wv={supportedProperty:function(e,t){var n=zv[e];return!!n&&(gv+Dv(n)in t&&vv+n)}},$v={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"},Hv=Object.keys($v),Vv=function(e){return vv+e},Bv={supportedProperty:function(e,t,n){var r=n.multiple;if(Hv.indexOf(e)>-1){var i=$v[e];if(!Array.isArray(i))return gv+Dv(i)in t&&vv+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(gv+Dv(i[0])in t))return!1;return i.map(Vv)}return!1}},Gv=[Sv,wv,Mv,Rv,kv,Lv,Av,Ov,Tv,qv,_v,Nv,jv,Fv,Wv,Bv],Uv=Gv.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Yv=Gv.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Cf(t.noPrefill)),e},[]),Kv={};if(wm){Pv=document.createElement("p");var Xv=window.getComputedStyle(document.documentElement,"");for(var Jv in Xv)isNaN(Jv)||(Kv[Xv[Jv]]=Xv[Jv]);Yv.forEach(function(e){return delete Kv[e]})}function Zv(e,t){if(void 0===t&&(t={}),!Pv)return e;if(null!=Kv[e])return Kv[e];"transition"!==e&&"transform"!==e||(t[e]=e in Pv.style);for(var n=0;n<Uv.length&&(Kv[e]=Uv[n](e,Pv.style,t),!Kv[e]);n++);try{Pv.style[e]=""}catch(e){return!1}return Kv[e]}var Qv,ey={},ty={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},ny=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function ry(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Zv(t):", "+Zv(n);return r||(t||n)}function iy(e,t){var n=t;if(!Qv||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=ey[r])return ey[r];try{Qv.style[e]=n}catch(e){return ey[r]=!1,!1}if(ty[e])n=n.replace(ny,ry);else if(""===Qv.style[e]&&("-ms-flex"===(n=vv+n)&&(Qv.style[e]="-ms-flexbox"),Qv.style[e]=n,""===Qv.style[e]))return ey[r]=!1,!1;return Qv.style[e]="",ey[r]=n,ey[r]}function oy(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=Zv(n);o&&o!==n&&(i=!0);var a=!1,s=iy(o,Mm(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===gv?e:"@"+vv+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return iy(t,Mm(e))||e}}}function ay(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}}function sy(){return{plugins:[{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Dm(e,{},n);return r[Ng]=t,r},onProcessStyle:function(e,t){if(_g in t||Ng in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[_g]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Ng];o&&(i.style=o(e)||{});var a=i[_g];if(a)for(var s in a)i.prop(s,a[s](e),r)}},Vg(),Yg(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=ev(e[t]);return e}return ev(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Qg(t);return t===r?e:(n.prop(r,e),null)}},sv(),"undefined"==typeof window?null:oy(),ay()]}}function ly(e,t){if(null==e)return{};var n,r,i=Oe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function uy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=Ae({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r}wm&&(Qv=document.createElement("p"));var cy=function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},dy=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},py=function(e,t,n){e.get(t).delete(n)},fy=o.createContext(null);function hy(){return o.useContext(fy)}var my,gy=Ag(sy()),vy=bm(),yy=new Map,by={disableGeneration:!1,generateClassName:vy,jss:gy,sheetsCache:null,sheetsManager:yy,sheetsRegistry:null},xy=o.createContext(by);function Sy(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,a=void 0!==i&&i,s=ly(e,["children","injectFirst","disableGeneration"]),l=Ae({},o.useContext(xy),{disableGeneration:a},s);if(!l.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!my){var u=document.head;my=document.createComment("mui-inject-first"),u.insertBefore(my,u.firstChild)}l.jss=Ag({plugins:sy().plugins,insertionPoint:my})}return o.createElement(xy.Provider,{value:l},t)}var wy=-1e9;var Cy={};function Ey(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=dy(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},cy(i.sheetsManager,o,r,s));var l=Ae({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=i.sheetsRegistry;if(0===s.refs){var c;i.sheetsCache&&(c=dy(i.sheetsCache,o,r));var d=o.create(r,a);c||((c=i.jss.createStyleSheet(d,Ae({link:!1},l))).attach(),i.sheetsCache&&cy(i.sheetsCache,o,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Tg(d)}if(s.dynamicStyles){var p=i.jss.createStyleSheet(s.dynamicStyles,Ae({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=uy({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Iy(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,a=t.defaultTheme,s=void 0===a?Cy:a,l=ly(t,["name","classNamePrefix","Component","defaultTheme"]),u=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var o=n.overrides[r],a=Ae({},i);return Object.keys(o).forEach(function(e){a[e]=tp(a[e],o[e])}),a},options:{}}}(e),c=n||r||"makeStyles";u.options={index:wy+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=hy()||s,r=Ae({},o.useContext(xy),l),a=o.useRef(),c=o.useRef();!function(e,t){var n,r=o.useRef([]),i=o.useMemo(function(){return{}},t);r.current!==i&&(r.current=i,n=e()),o.useEffect(function(){return function(){n&&n()}},[i])}(function(){var i={name:n,state:{},stylesCreator:u,stylesOptions:r,theme:t};return Ey(i,e),c.current=!1,a.current=i,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=dy(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(py(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(i)}},[t,u]),o.useEffect(function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(a.current,e),c.current=!0});var d=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=uy({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(a.current,e.classes,i);return d}}var Dy=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 Cm(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new fg;var n=bm();return o.createElement(Sy,Ae({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 o.createElement("style",Ae({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function Py(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Py(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function My(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Py(e))&&(r&&(r+=" "),r+=t);return r}function Ry(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var n=o.forwardRef(function(n,r){var i=n.innerRef,a=ly(n,["innerRef"]),s=hy()||e;return o.createElement(t,Ae({theme:s,ref:i||r},a))});return Ut(n,t),n}}var ky,Ly=Ry(),Ay=Object.freeze({__proto__:null,ServerStyleSheets:Dy,StylesContext:xy,StylesProvider:Sy,ThemeProvider:function(e){var t=e.children,n=e.theme,r=hy(),i=o.useMemo(function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Ae({},e,t)}(r,n);return null!=e&&(e[vm]=null!==r),e},[n,r]);return o.createElement(fy.Provider,{value:i},t)},createGenerateClassName:bm,createStyles:function(e){return e},getThemeProps:xm,jssPreset:sy,makeStyles:Iy,mergeClasses:uy,sheetsManager:yy,styled:function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,a=ly(r,["name"]),s=i,l=Iy("function"==typeof t?function(e){return{root:function(n){return t(Ae({theme:e},n))}}}:{root:t},Ae({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=o.forwardRef(function(t,r){var i,a,s,u=t.children,c=t.className,d=t.clone,p=t.component,f=ly(t,["children","className","clone","component"]),h=My(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 o.cloneElement(u,Ae({className:My(u.props.className,h)},m));if("function"==typeof u)return u(Ae({className:h},m));var g=p||e;return o.createElement(g,Ae({ref:r,className:h},m),u)});return Ut(u,e),u}},useTheme:hy,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,i=t.withTheme,a=void 0!==i&&i,s=t.name,l=ly(t,["defaultTheme","withTheme","name"]),u=s,c=Iy(e,Ae({defaultTheme:r,Component:n,name:s||n.displayName,classNamePrefix:u},l)),d=o.forwardRef(function(e,t){e.classes;var i,l=e.innerRef,u=ly(e,["classes","innerRef"]),d=c(Ae({},n.defaultProps,e)),p=u;return("string"==typeof s||a)&&(i=hy()||r,s&&(p=xm({theme:i,name:s,props:u})),a&&!p.theme&&(p.theme=i)),o.createElement(n,Ae({ref:l||t,classes:d},p))});return Ut(d,n),d}},withTheme:Ly,withThemeCreator:Ry}),Oy=jt(Ay);
|
|
95
|
-
/** @license Material-UI v4.11.5
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the MIT license found in the
|
|
98
|
-
* LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/function Ty(){if(ky)return gm;ky=1,Object.defineProperty(gm,"__esModule",{value:!0}),gm.default=function(t){return(0,e.createStyles)(t)};var e=Oy;return gm}var qy,_y,Ny={},jy={};function Fy(){if(qy)return jy;qy=1;var e=Ho();Object.defineProperty(jy,"__esModule",{value:!0}),jy.default=void 0;var t=(0,e(pm()).default)();return jy.default=t,jy}function zy(){if(_y)return Ny;_y=1;var e=Ho();Object.defineProperty(Ny,"__esModule",{value:!0}),Ny.default=void 0;var t=e(xa()),n=Oy,r=e(Fy());var i=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},i))};return Ny.default=i,Ny}var Wy,$y,Hy={},Vy={};function By(){if(Wy)return Vy;Wy=1;var e=Ho();Object.defineProperty(Vy,"__esModule",{value:!0}),Vy.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},Vy.getUnit=n,Vy.toUnitless=r,Vy.convertLength=function(e){return function(t,i){var o=n(t);if(o===i)return t;var a=r(t);if("px"!==o)if("em"===o)a=r(t)*r(e);else if("rem"===o)return a=r(t)*r(e),t;var s=a;if("px"!==i)if("em"===i)s=a/r(e);else{if("rem"!==i)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+i}},Vy.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,i=r+n;return t-r<i-t?r:i},Vy.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},Vy.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,i=e.max,o=e.unit,a=void 0===o?"rem":o,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(i-r)/l[l.length-1];return l.forEach(function(e){var i=r+p*e;null!==c&&(i=c(i)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*i)/1e4).concat(a))}),d};var t=e(Pp());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return Vy}function Gy(){if($y)return Hy;$y=1;var e=Ho();Object.defineProperty(Hy,"__esModule",{value:!0}),Hy.default=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.breakpoints,a=void 0===o?["sm","md","lg"]:o,s=i.disableAlign,l=void 0!==s&&s,u=i.factor,c=void 0===u?2:u,d=i.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,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var i=h[e],o=parseFloat(m(i.fontSize,"rem"));if(!(o<=1)){var a=o,s=1+(a-1)/c,u=i.lineHeight;if(!(0,r.isUnitless)(u)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(o));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},i,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(xa()),n=gp,r=By();return Hy}var Uy,Yy={};function Ky(){if(Uy)return Yy;Uy=1;var e=Ho();Object.defineProperty(Yy,"__esModule",{value:!0}),Yy.default=void 0;var t=e(xa()),n=Oy,r=e(Fy()),i=function(e){var i=(0,n.styled)(e);return function(e,n){return i(e,(0,t.default)({defaultTheme:r.default},n))}};return Yy.default=i,Yy}var Xy,Jy={};function Zy(){if(Xy)return Jy;Xy=1;var e=Ho();Object.defineProperty(Jy,"__esModule",{value:!0}),Jy.default=function(){return(0,t.useTheme)()||n.default};var t=Oy;e(o);var n=e(Fy());return Jy}var Qy,eb={};function tb(){if(Qy)return eb;Qy=1;var e=Ho();Object.defineProperty(eb,"__esModule",{value:!0}),eb.default=void 0;var t=e(xa()),n=Oy,r=e(Fy());var i=function(e,i){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},i))};return eb.default=i,eb}var nb,rb,ib={};function ob(){if(nb)return ib;nb=1;var e=Ho();Object.defineProperty(ib,"__esModule",{value:!0}),ib.default=void 0;var t=Oy,n=e(Fy()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return ib.default=r,ib}function ab(){return rb||(rb=1,function(e){var t=Ho(),n=(Ud||(Ud=1,function(e){var t=Jd().default;function n(r,i){if("function"==typeof WeakMap)var o=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,i,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:o){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?r(s,l,i):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Kd)),Kd.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={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 o.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return o.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var i=vp();Object.keys(i).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))});var o=n(pm()),a=t(mm()),s=t(Ty()),l=t(zy()),u=t(Gy()),c=t(Ky()),d=sm();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(Zy()),f=t(tb()),h=t(ob()),m=Oy}(Yd)),Yd}var sb=ab();sb.alpha(wd.GREYSCALE_0,.05),sb.alpha(wd.GREEN_PALE,.5),sb.alpha(wd.BLUE_PALE,.5),sb.alpha(wd.GREEN_PALE,.5),sb.alpha(wd.BLUE_PALE,.5),sb.alpha(wd.GREEN_PALE,.5),sb.alpha(wd.BLUE_PALE,.5),sb.alpha(wd.GREEN_PALE,.5),sb.alpha(wd.BLUE_PALE,.5),sb.alpha(wd.GREEN_PALE,.5),sb.alpha(wd.BLUE_PALE,.5);const lb=(e="light")=>Vd();function ub(e){return"init"in e}function cb(e){return!!e.write}function db(e){return"v"in e||"e"in e}function pb(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}function fb(e){return"function"==typeof(null==e?void 0:e.then)}function hb(e,t,n){if(!n.p.has(e)){n.p.add(e);const r=()=>n.p.delete(e);t.then(r,r)}}function mb(e,t,n){const r=n.get(e),i=null==r?void 0:r.t,o=t.p;if(!(null==i?void 0:i.size))return o;if(!o.size)return i;const a=new Set(i);for(const e of o)a.add(e);return a}const gb=()=>{const e={},t=new WeakMap,n=n=>{var r,i;null==(r=t.get(e))||r.forEach(e=>e(n)),null==(i=t.get(n))||i.forEach(e=>e())};return n.add=(n,r)=>{const i=n||e;let o=t.get(i);return o||(o=new Set,t.set(i,o)),o.add(r),()=>{o.delete(r),o.size||t.delete(i)}},n};function vb(e){return e.i||(e.i=gb()),e.r||(e.r=gb()),e.c||(e.c=gb()),e.m||(e.m=gb()),e.u||(e.u=gb()),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 yb=(e,t,...n)=>t.read(...n),bb=(e,t,...n)=>t.write(...n),xb=(e,t)=>{var n;return null==(n=t.INTERNAL_onInit)?void 0:n.call(t,e)},Sb=(e,t,n)=>{var r;return null==(r=t.onMount)?void 0:r.call(t,n)},wb=(e,n)=>{var r;const i=Fb(e),o=i[0],a=i[6],s=i[9];if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!n)throw new Error("Atom is undefined or null");let l=o.get(n);return l||(l={d:new Map,p:new Set,n:0},o.set(n,l),null==(r=a.i)||r.call(a,n),null==s||s(e,n)),l},Cb=e=>{var t;const n=Fb(e),r=n[1],i=n[3],o=n[4],a=n[5],s=n[6],l=n[13];if(!(s.f||i.size||o.size||a.size))return;const u=[],c=e=>{try{e()}catch(e){u.push(e)}};do{s.f&&c(s.f);const n=new Set;for(const e of i){const i=null==(t=r.get(e))?void 0:t.l;if(i)for(const e of i)n.add(e)}i.clear();for(const e of a)n.add(e);a.clear();for(const e of o)n.add(e);o.clear();for(const e of n)c(e);i.size&&l(e)}while(i.size||a.size||o.size);if(u.length)throw new AggregateError(u)},Eb=e=>{const n=Fb(e),r=n[1],i=n[2],o=n[3],a=n[11],s=n[14],l=n[17];if(!o.size)return;const u=[],c=[],d=new WeakSet,p=new WeakSet,f=[],h=[];for(const t of o)f.push(t),h.push(a(e,t));for(;f.length;){const n=f.length-1,o=f[n],s=h[n];if(p.has(o))f.pop(),h.pop();else if(d.has(o)){if(i.get(o)===s.n)u.push(o),c.push(s);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&i.has(o))throw new Error("[Bug] invalidated atom exists");p.add(o),f.pop(),h.pop()}else{d.add(o);for(const t of mb(o,s,r))d.has(t)||(f.push(t),h.push(a(e,t)))}}for(let t=u.length-1;t>=0;--t){const n=u[t],r=c[t];let a=!1;for(const e of r.d.keys())if(e!==n&&o.has(e)){a=!0;break}a&&(i.set(n,r.n),s(e,n),l(e,n)),i.delete(n)}},Ib=new WeakSet,Db=(e,n)=>{var r,i;const o=Fb(e),a=o[1],s=o[2],l=o[3],u=o[6],c=o[7],d=o[11],p=o[12],f=o[13],h=o[14],m=o[16],g=o[17],v=o[20],y=o[26],b=o[28],x=d(e,n),S=b[0];if(db(x)){if(a.has(n)&&s.get(n)!==x.n||x.m===S)return x.m=S,x;let t=!1;for(const[n,r]of x.d)if(h(e,n).n!==r){t=!0;break}if(!t)return x.m=S,x}let w=!0;const C=new Set(x.d.keys()),E=()=>{for(const e of C)x.d.delete(e)},I=()=>{if(a.has(n)){const t=!l.size;g(e,n),t&&(f(e),p(e))}},D=t=>{var r;if(t===n){const n=d(e,t);if(!db(n)){if(!ub(t))throw new Error("no atom init");v(e,t,t.init)}return pb(n)}const i=h(e,t);try{return pb(i)}finally{C.delete(t),x.d.set(t,i.n),fb(x.v)&&hb(n,x.v,i),a.has(n)&&(null==(r=a.get(t))||r.t.add(n)),w||I()}};let P,M;const R={get signal(){return P||(P=new AbortController),P.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)||cb(n)||console.warn("setSelf function cannot be used with read-only atom"),!M&&cb(n)&&(M=(...r)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&w&&console.warn("setSelf function cannot be called in sync"),!w)try{return m(e,n,...r)}finally{f(e),p(e)}}),M}},k=x.n,L=s.get(n)===k;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&Ib.delete(e);const i=c(e,n,D,R);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&Ib.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),v(e,n,i),fb(i)){y(e,i,()=>null==P?void 0:P.abort());const t=()=>{E(),I()};i.then(t,t)}else E();return null==(r=u.r)||r.call(u,n),x.m=S,x}catch(e){return delete x.v,x.e=e,++x.n,x.m=S,x}finally{w=!1,x.n!==k&&L&&(s.set(n,x.n),l.add(n),null==(i=u.c)||i.call(u,n))}},Pb=(e,t)=>{const n=Fb(e),r=n[1],i=n[2],o=n[11],a=[t];for(;a.length;){const t=a.pop(),n=o(e,t);for(const s of mb(t,n,r)){const t=o(e,s);i.get(s)!==t.n&&(i.set(s,t.n),a.push(s))}}},Mb=(e,n,...r)=>{const i=Fb(e),o=i[3],a=i[6],s=i[8],l=i[11],u=i[12],c=i[13],d=i[14],p=i[15],f=i[16],h=i[17],m=i[20],g=i[28];let v=!0;const y=t=>pb(d(e,t)),b=(r,...i)=>{var s;const d=l(e,r);try{if(r===n){if(!ub(r))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&Ib.add(e);const n=d.n,l=i[0];return m(e,r,l),h(e,r),void(n!==d.n&&(++g[0],o.add(r),p(e,r),null==(s=a.c)||s.call(a,r)))}return f(e,r,...i)}finally{v||(c(e),u(e))}};try{return s(e,n,y,b,...r)}finally{v=!1}},Rb=(e,t)=>{var n;const r=Fb(e),i=r[1],o=r[3],a=r[6],s=r[11],l=r[15],u=r[18],c=r[19],d=s(e,t),p=i.get(t);if(p&&d.d.size>0){for(const[r,i]of d.d)if(!p.d.has(r)){const c=s(e,r);u(e,r).t.add(t),p.d.add(r),i!==c.n&&(o.add(r),l(e,r),null==(n=a.c)||n.call(a,r))}for(const n of p.d)if(!d.d.has(n)){p.d.delete(n);const r=c(e,n);null==r||r.t.delete(t)}}},kb=(e,t)=>{var n;const r=Fb(e),i=r[1],o=r[4],a=r[6],s=r[10],l=r[11],u=r[12],c=r[13],d=r[14],p=r[16],f=r[18],h=l(e,t);let m=i.get(t);if(!m){d(e,t);for(const n of h.d.keys()){f(e,n).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},i.set(t,m),cb(t)&&function(e){return!!e.onMount}(t)){const n=()=>{let n=!0;const r=(...r)=>{try{return p(e,t,...r)}finally{n||(c(e),u(e))}};try{const i=s(e,t,r);i&&(m.u=()=>{n=!0;try{i()}finally{n=!1}})}finally{n=!1}};o.add(n)}null==(n=a.m)||n.call(a,t)}return m},Lb=(e,t)=>{var n,r;const i=Fb(e),o=i[1],a=i[5],s=i[6],l=i[11],u=i[19],c=l(e,t);let d=o.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(n=o.get(e))?void 0:n.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,o.delete(t);for(const n of c.d.keys()){const r=u(e,n);null==r||r.t.delete(t)}null==(r=s.u)||r.call(s,t)},Ab=(e,t,n)=>{const r=Fb(e),i=r[11],o=r[27],a=i(e,t),s="v"in a,l=a.v;if(fb(n))for(const r of a.d.keys())hb(t,n,i(e,r));a.v=n,delete a.e,s&&Object.is(l,a.v)||(++a.n,fb(l)&&o(e,l))},Ob=(e,t)=>pb((0,Fb(e)[14])(e,t)),Tb=(e,t,...n)=>{const r=Fb(e),i=r[3],o=r[12],a=r[13],s=r[16],l=i.size;try{return s(e,t,...n)}finally{i.size!==l&&(a(e),o(e))}},qb=(e,t,n)=>{const r=Fb(e),i=r[12],o=r[18],a=r[19],s=o(e,t).l;return s.add(n),i(e),()=>{s.delete(n),a(e,t),i(e)}},_b=(e,t,n)=>{const r=Fb(e)[25];let i=r.get(t);if(!i){i=new Set,r.set(t,i);const e=()=>r.delete(t);t.then(e,e)}i.add(n)},Nb=(e,t)=>{const n=Fb(e)[25].get(t);null==n||n.forEach(e=>e())},jb=new WeakMap,Fb=e=>{const n=jb.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!n)throw new Error("Store must be created by buildStore to read its building blocks");return n};function zb(e){const t=Fb(e),n=t[24];return n?n(t):t}function Wb(...e){const t={get:e=>(0,Fb(t)[21])(t,e),set:(e,...n)=>(0,Fb(t)[22])(t,e,...n),sub:(e,n)=>(0,Fb(t)[23])(t,e,n)},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},yb,bb,xb,Sb,wb,Cb,Eb,Db,Pb,Mb,Rb,kb,Lb,Ab,Ob,Tb,qb,void 0,new WeakMap,_b,Nb,[0]].map((t,n)=>e[n]||t);return jb.set(t,Object.freeze(n)),t}let $b,Hb=0;function Vb(e,n){const r="atom"+ ++Hb,i={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?i.read=e:(i.init=e,i.read=Bb,i.write=Gb),n&&(i.write=n),i}function Bb(e){return e(this)}function Gb(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}function Ub(){return Wb()}const Yb=d(void 0);function Kb(e){const n=i(Yb);return(null==e?void 0:e.store)||n||($b||($b=Ub(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=$b),globalThis.__JOTAI_DEFAULT_STORE__!==$b&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),$b)}function Xb({children:e,store:t}){const n=u(null);return t?c(Yb.Provider,{value:t},e):(null===n.current&&(n.current=Ub()),c(Yb.Provider,{value:n.current},e))}const Jb=e=>"function"==typeof(null==e?void 0:e.then),Zb=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Qb=o.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Zb(e),e)}),ex=new WeakMap,tx=(e,t,n)=>{const r=zb(e)[26];let i=ex.get(t);return i||(i=new Promise((o,a)=>{let s=t;const l=e=>t=>{s===e&&o(t)},u=e=>t=>{s===e&&a(t)},c=()=>{try{const t=n();Jb(t)?(ex.set(t,i),s=t,t.then(l(t),u(t)),r(e,t,c)):o(t)}catch(e){a(e)}};t.then(l(t),u(t)),r(e,t,c)}),ex.set(t,i)),i};function nx(e,t){const{delay:n,unstable_promiseStatus:r=!o.use}={},i=Kb(t),[[a,s,l],u]=p(t=>{const n=i.get(e);return Object.is(t[0],n)&&t[1]===i&&t[2]===e?t:[n,i,e]},void 0,()=>[i.get(e),i,e]);let c=a;if(s===i&&l===e||(u(),c=i.get(e)),f(()=>{const t=i.sub(e,()=>{if(r)try{const t=i.get(e);Jb(t)&&Zb(tx(i,t,()=>i.get(e)))}catch(e){}if("number"==typeof n)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(u,n);u()});return u(),t},[i,e,n,r]),h(c),Jb(c)){const t=tx(i,c,()=>i.get(e));return r&&Zb(t),Qb(t)}return c}function rx(e,n){const r=Kb(n);return m((...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...n)},[r,e])}function ix(e,t){return[nx(e,t),rx(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))}},n){var r;let i,o;const a={getItem:(t,r)=>{var a,s;const l=e=>{if(i!==(e=e||"")){try{o=JSON.parse(e,null==n?void 0:n.reviver)}catch(e){return r}i=e}return o},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,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n,void 0))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let s;try{s=null==(r=e())?void 0:r.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),s&&(a.subscribe=(l=s,(e,t,n)=>l(e,e=>{let r;try{r=JSON.parse(e||"")}catch(e){r=n}t(r)})))}();const ox=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),ax=new WeakMap,sx=()=>{};const lx=new WeakMap;function ux(e,t){const n=Kb(t),r=cx(n);for(const[i,...o]of e)r.has(i)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(i),n.set(i,...o))}const cx=e=>{let t=lx.get(e);return t||(t=new WeakSet,lx.set(e,t)),t};function dx(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function px(e){const t=Vb(()=>[]),n=Vb(function(e){const[r,i,o]=e(t);o.has(n)&&(r.forEach(e),++i.n)});return n.effect=e,n.INTERNAL_onInit=e=>{const r=new Set;let i,o=0,a=!1,s=!1,l=!1;function u(){if(o)return;r.clear();let t=!0;const c=i=>{if(l)return e.get(i);if(i===n){const t=h(e,i);if(!db(t)){if(!ub(i))throw new Error("no atom init");S(e,i,i.init)}return pb(t)}const o=v(e,i);try{return pb(o)}finally{C.d.set(i,o.n),d.get(i)?.t.add(n),t?r.add(i):d.has(i)&&(x(e,n),g(e),m(e))}};c.peek=e.get;const w=(r,...i)=>{const a=h(e,r);try{if(++o,r===n){if(!ub(r))throw new Error("atom not writable");const t=a.n,n=i[0];return S(e,r,n),x(e,r),void(t!==a.n&&(p.add(r),f.c?.(r),y(e,r)))}return b(e,r,...i)}finally{t||(g(e),m(e)),--o}};w.recurse=(t,...r)=>{if(l){if(dx())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,n),w(t,...r)}finally{g(e),a=!1,s&&(s=!1,u())}};try{i?.();const e=n.effect(c,w);if("function"!=typeof e)return;i=()=>{if(!o)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,i=void 0}}}finally{t=!1,r.forEach(t=>{C.d.set(t,h(e,t).n)}),x(e,n),g(e)}}const c=zb(e),d=c[1],p=c[3],f=vb(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 n=fx.get(e);n||(n=new Set,fx.set(e,n),t.f.add(function(){for(const e of n)n.delete(e),e()}));return n}(e,f),C=h(e,n);C.v=void 0,Object.assign(e.get(t),[r,C,d]),f.c.add(n,function(){p.delete(n)}),f.m.add(n,function(){w.add(u),i&&w.delete(i)}),f.u.add(n,function(){w.delete(u),i&&w.add(i)}),f.c.add(n,function(){a?s=!0:w.add(u)})},dx()&&(Object.defineProperty(t,"debugLabel",{get:()=>n.debugLabel?`${n.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),n}const fx=new WeakMap;const hx=async(e,t,n)=>{const r=e.get(n);void 0!==r&&("dimension"===r.type?await t.moveDimensionToAlternative(r.def.qDef.cId):await t.moveMeasureToAlternative(r.def.qDef.cId))},mx=async(e,t,n)=>{const r=e.get(n);void 0!==r&&("dimension"===r.type?await t.moveDimensionFromAlternative(r.def.qDef.cId):await t.moveMeasureFromAlternative(r.def.qDef.cId))},gx=e=>{const{type:t,handler:n,model:r,fieldInfo:i,handlerQueue:o}=e;void 0!==n&&void 0!==r&&o&&o.add(async()=>{switch(t){case"apply":for(const t of e.localChecked)await mx(i,n,t);for(const t of e.localUnchecked)await hx(i,n,t);break;case"checked":await mx(i,n,e.cId);break;case"unchecked":await hx(i,n,e.cId)}})},vx=Vb(),yx=Vb(),bx=Vb(),xx=Vb(e=>e(bx)?.translate??(e=>e)),Sx=Vb(""),wx=Vb(e=>{const t=e(Sx).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)}),Cx=Vb(e=>e(bx)?.getBooleanFlag??(()=>!1)),Ex=e=>7005!==e.qError?.qErrorCode,Ix=new WeakMap,Dx={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},Px=function(e,n=sx){return((e,t,n)=>{const r=ox(()=>new WeakMap,ax,t);return ox(e,r,n)})(()=>{const r=new WeakMap,i=new WeakMap,o=Vb(0),a=Vb([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(o,e=>e+1)])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(o.debugPrivate=!0,a.debugPrivate=!0);const s=Vb(t=>{let l;t(o);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=>{i.set(u,e);const[n]=t(a);n()},e=>{r.set(u,e);const[n]=t(a);n()}),r.has(u))throw r.get(u);return i.has(u)?{p:u,v:i.get(u)}:l&&"v"in l?{p:u,f:n(l.v),v:l.v}:{p:u,f:n()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),Vb(e=>{const t=e(s);return"f"in t?t.f:t.v},(t,n,...r)=>n(e,...r))},e,n)}(Vb(async e=>{const t=e(vx);if(t){if(Ix.has(t))return Ix.get(t);try{const e=await t.app.createSessionObject(Dx);return Ix.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}})),Mx=Vb(null),Rx=Vb(),kx=px((e,t)=>{const n=e(vx),r=e(Px);if(!n||!r)return;const i=async()=>{const e=await n.getLayout();if(e.qSelectionInfo?.qInSelections)return;const i=await n.getEffectiveProperties();await r.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions)},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures)}]);const o=await r.getLayout();t(Rx,{layout:structuredClone(e),properties:structuredClone(i),altLayout:structuredClone(o)}),t(Mx,null)};return i(),n.Invalidated?.bind(i),()=>{n.Invalidated?.unbind(i)}}),Lx=Vb(e=>e(Rx)?.layout),Ax=Vb(e=>e(Rx)?.altLayout),Ox=Vb(e=>e(Rx)?.properties),Tx=Vb(e=>{const t=e(Rx)?.layout;return t?.qHyperCube.qDimensionInfo.filter(Ex)??[]}),qx=Vb(e=>{const t=e(Rx)?.layout;return t?.qHyperCube.qMeasureInfo.filter(Ex)??[]}),_x=Vb(e=>{const t=e(Lx),n=e(Tx),r=e(qx),i=e(Ox),o=new Map;return t&&i?(n.forEach((e,t)=>{o.set(e.cId,{id:e.cId,type:"dimension",def:i.qHyperCubeDef.qDimensions[t]})}),r.forEach((e,t)=>{o.set(e.cId,{id:e.cId,type:"measure",def:i.qHyperCubeDef.qMeasures[t]})}),i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions?.forEach(e=>{o.set(e.qDef.cId,{id:e.qDef.cId,type:"dimension",def:e})}),i.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures?.forEach(e=>{o.set(e.qDef.cId,{id:e.qDef.cId,type:"measure",def:e})}),o):o});class Nx{#e=[];#t=!1;#n=!1;#r;#i;#o;#a;constructor({onQueueCompleted:e}){this.#r=e}#s(){this.#i=void 0,this.#o=void 0,this.#a=void 0}pause(){this.#i&&(clearTimeout(this.#a),this.#o?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#i=e,this.#o=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#o;await(e=>new Promise(t=>{setTimeout(t,e)}))(e),t===this.#o&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#n=!0,this.#e=[],this.#o?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#n=!1;this.#e.length>0;)if(this.#i)await this.#i;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#n||await(this.#r?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const jx=Vb(null),Fx=px((e,t)=>{const n=e(vx),r=e(yx),i=new Nx({onQueueCompleted:async()=>{n&&r&&await n.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef)}],!0)}});t(jx,i);const o=()=>{i.pause()},a=()=>{i.continue(500)},s=()=>{i.abort()};return n?.Invalidated?.bind(o),n?.Validated?.bind(a),n?.Cancelled?.bind(s),n?.Closing?.bind(s),()=>{i.abort(),n?.Invalidated?.unbind(o),n?.Validated?.unbind(a),n?.Cancelled?.unbind(s),n?.Closing?.unbind(s)}}),zx=Vb(e=>{const t=[...e(Tx),...e(qx)].map(e=>e.cId);return new Set(t)}),Wx=Vb(new Set),$x=Vb(new Set),Hx=Vb(e=>{const t=e(Wx),n=e($x);return e(zx).difference(n).union(t)}),Vx=px((e,t)=>{e(zx),t(Wx,new Set),t($x,new Set)}),Bx=Vb(e=>e(Hx),(e,t,n)=>{const r=e(Hx).has(n),i=new Set(e($x)),o=new Set(e(Wx));r?(i.add(n),o.delete(n)):(o.add(n),i.delete(n)),t($x,i),t(Wx,o),gx({type:r?"unchecked":"checked",cId:n,handler:e(yx),model:e(vx),fieldInfo:e(_x),handlerQueue:e(jx)})}),Gx=({props:e,children:t})=>(ux([[vx,e.args.model],[bx,e.args.apis],[yx,e.args.handler]]),nx(Vx),nx(kx),nx(Fx),t);function Ux(e,t){const n=new Set(e),r=new Set(t);return e===t||n.size===r.size&&Array.from(n).every(r.has.bind(r))}function Yx(e){return"write"in e}const Kx=new WeakMap,Xx={},{read:Jx,write:Zx}=Vb(null);function Qx(e,t,n){const[r,i,o,,a]=e,s=r.get(t);if(s)return s;if(n===e){let r=i.get(t);return r||(r=[rS(e,t,n),n],i.set(t,r)),r}const l=n??Xx;let u=o.get(l);u||(u=new WeakMap,o.set(l,u));let c=u.get(t);if(!c){const[r,i]=a?Qx(a,t,n):[t];c=[t.read===Jx?r:rS(e,t,i),i],u.set(t,c)}return c}function eS(e){for(const t of e[5])t()}function tS(e,t,n,r,i){if(n.read===Jx&&Yx(n)&&Yx(t)&&n.write!==Zx&&e!==r){const{write:o}=n;return t.write=nS(e,n.write.bind(n),r,i),()=>{t.write=o}}}function nS(e,t,n,r=n){return function(i,o,...a){return t(function(t){const[r]=Qx(e,t,n);return i(r)},function(t,...i){const[a]=Qx(e,t,n),s=tS(e,a,t,n,r);try{return o(a,...i)}finally{null==s||s()}},...a)}}function rS(e,t,n){const r=Object.getOwnPropertyDescriptors(t);Object.keys(r).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>r[e].configurable=!0);const i=Object.getPrototypeOf(t),o=Object.create(i,r);return o.read!==Jx&&(o.read=function(e,t,n){return function(r,i){return t(function(t){const[i]=Qx(e,t,n);return r(i)},i)}}(e,t.read.bind(t),n)),Yx(o)&&Yx(t)&&o.write!==Zx&&(o.write=nS(e,t.write.bind(t),n)),o}function iS({atoms:e=[],atomFamilies:t=[],parentStore:n,name:r}){const i=new WeakSet(e),o=Kx.get(n),a=(null==o?void 0:o[3])??n,s=[new WeakMap,new WeakMap,new WeakMap,a,o,new Set,void 0],l=s[0],u=s[5],c=function(e){const t=e[3],n=[...zb(t)],r=n[21],i=n[22],o=n[23],a=n[9],s={};n[9]=(e,t)=>a(l,t),n[21]=h(r),n[22]=p,n[23]=h(o),n[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=Wb(...n);return l;function u(t){const n=new WeakMap;return function(r){let i=n.get(r);if(i)return i;const o=t(r);return o?(i={...o,d:m(o.d,function(t){return n=>t(Qx(e,n)[0])}),p:g(o.p),get n(){return o.n},set n(e){o.n=e},get v(){return o.v},set v(e){o.v=e},get e(){return o.e},set e(e){o.e=e}},n.set(r,i),i):void 0}}function c(e){const t=new WeakMap;return function(n){let r=t.get(n);if(r)return r;const i=e(n);return i?(r={...i,d:g(i.d),t:g(i.t),get u(){return i.u},set u(e){i.u=e}},t.set(n,r),r):void 0}}function d(e,t){return function(n,r){return e.get(r)||(e.set(r,t(n,r)),e.get(r))}}function p(t,n,...r){const[o,a]=Qx(e,n),s=tS(e,o,n,a,e);try{return i(t,o,...r)}finally{null==s||s()}}function f(t,n){return function(r,...i){const[o]=Qx(e,r);return(n?n(t):t)(o,...i)}}function h(t,n){return function(r,i,...o){const[a]=Qx(e,i);return(n?n(t):t)(r,a,...o)}}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 n of t)yield Qx(e,n)[0]}}}function v(t){if(!t)return;const n=f(t);return n.add=function(n,r){if(void 0===n)return t.add(void 0,r);const[i]=Qx(e,n);return t.add(i,r)},n}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(n){delete s[t],e[t]=n},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=c,Object.assign(c,{name:r}),Kx.set(c,s);for(const t of new Set(e))l.set(t,[rS(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const n=e(t);l.has(n)||l.set(n,[rS(s,n,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!i.has(t)&&l.delete(t):l.set(t,[rS(s,t,s),s])});u.add(t)}return c}const oS=function(e,t){return function(n){const{atoms:r=[],atomFamilies:i=[],children:o,scope:a,name:s}=n,l=t(),u=Array.from(r,e=>Array.isArray(e)?e[0]:e);function d(){return[a??iS({atoms:u,atomFamilies:i,parentStore:l,name:s}),function(e){return l!==e.parentStore||!Ux(u,e.atoms)||!Ux(i,e.atomFamilies)||a!==e.providedScope}]}const[[p,h],m]=g(d);if(h({atoms:u,atomFamilies:i,parentStore:l,providedScope:a})){const e=Kx.get(p);e&&eS(e),m(d)}return ux(Array.from(r).filter(Array.isArray),{store:p}),f(()=>{const e=Kx.get(p);return()=>{e&&eS(e)}},[p]),c(e,{store:p,children:o})}}(Xb,Kb);var aS=Object.defineProperty,sS=Object.defineProperties,lS=Object.getOwnPropertyDescriptors,uS=Object.getOwnPropertySymbols,cS=Object.prototype.hasOwnProperty,dS=Object.prototype.propertyIsEnumerable,pS=(e,t,n)=>t in e?aS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fS=(e,t)=>{for(var n in t||(t={}))cS.call(t,n)&&pS(e,n,t[n]);if(uS)for(var n of uS(t))dS.call(t,n)&&pS(e,n,t[n]);return e},hS=(e,t)=>sS(e,lS(t));function mS(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function gS(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function vS(e,t){return function(e,t,n){var r,i,o;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 r=e.findIndex(e=>u(e,a.id)),i=e.findIndex(e=>u(e,s.id));if(-1===r||-1===i){if(gS(a)){const r=a.initialIndex,i=a.index;return r===i||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,i)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==r)return n(e,r,t)}return n(e,r,i)}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&&gS(a)){const r=a.initialGroup,i=a.initialIndex,o=a.group,s=a.index;if(null==r||null==o||!(r in e)||!(o in e))return"preventDefault"in t&&t.preventDefault(),e;if(r===o&&i===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===o)return hS(fS({},e),{[r]:n(e[r],i,s)});const l=e[r][i];return hS(fS({},e),{[r]:[...e[r].slice(0,i),...e[r].slice(i+1)],[o]:[...e[o].slice(0,s),l,...e[o].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(i=null==(r=m.shape)?void 0:r.current.center)?i: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&&gS(a)){const t=null!=a.group&&a.group!==d,r=a.index!==f;if(t||r){const t=null!=(o=a.group)?o:d;if(t in e){if(d===t)return hS(fS({},e),{[d]:n(e[d],f,a.index)});const r=e[d][f];return hS(fS({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),r,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return hS(fS({},e),{[d]:n(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 hS(fS({},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,mS)}function yS(e,t){let n=null;const r=new Map,i=new Set;function o(i){let s;if(void 0===t)s=r.get(i);else for(const[e,n]of r)if(t(e,i)){s=n;break}if(void 0!==s){if(!n?.(s[1],i))return s[0];o.remove(i)}const l=e(i);return r.set(i,[l,Date.now()]),a("CREATE",i,l),l}function a(e,t,n){for(const r of i)r({type:e,param:t,atom:n})}return o.unstable_listen=e=>(i.add(e),()=>{i.delete(e)}),o.getParams=()=>r.keys(),o.remove=e=>{if(void 0===t){if(!r.has(e))return;const[t]=r.get(e);r.delete(e),a("REMOVE",e,t)}else for(const[n,[i]]of r)if(t(n,e)){r.delete(n),a("REMOVE",n,i);break}},o.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,i]]of r)n(i,e)&&(r.delete(e),a("REMOVE",e,t))},o}const bS=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,xS=Vb(),SS=Vb(e=>e(xS)?.numberOfSections??0),wS=Vb(e=>e(xS)?.numberOfItemsInSection??[]),CS=Vb(e=>e(xS)?.keyExtractor??bS),ES=Vb(e=>e(xS)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),IS=Vb(e=>e(xS)?.onDragEnd),DS=Vb(e=>e(xS)?.onDragOver),PS=Vb(e=>e(xS)?.itemRenderer),MS=Vb(e=>e(xS)?.headerRenderer),RS=Vb(e=>e(xS)?.dragOverlayRenderer),kS=Vb(e=>e(xS)?.onClick),LS=Vb(e=>{const t=e(SS),n=e(wS),r=e(CS),i={};for(let e=0;e<t;e++)i[e]=Array.from({length:n[e]},(t,n)=>r({sectionIndex:e,itemIndex:n}));return i}),AS=Vb(null),OS=Vb(e=>e(AS),(e,t,n)=>{if(null===n)return void t(AS,null);const r=e(AS);t(AS,{...r,...n})}),TS=yS(e=>Vb(null,(t,n,r)=>{let i;"over"===e?i=t(DS):"end"===e&&(i=t(IS),n(OS,null));const{source:o,target:a}=r.operation;if(null===a)return void n(OS,{toIndex:void 0,toSectionIndex:void 0});const s=o.data.sectionIndex!==a.data.sectionIndex;let l;if(s){const e=vS(t(LS),r)[a.data.sectionIndex].indexOf(o.id);l=-1!==e?e:a.sortable?.index??0}else l=a.sortable?.index??0;if("start"===e)n(OS,{id:o.id,startSection:o.data.sectionKey,startIndex:o.data.itemIndex,startSectionIndex:o.data.sectionIndex});else if("over"===e){const e=t(OS)?.startIndex;n(OS,{toIndex:!s&&void 0!==e&&l>e?l+1:l,toSectionIndex:a.data.sectionIndex})}i?.({id:o.id,toIndex:l,toSection:a.data.sectionKey,fromSection:o.data.sectionKey,startSection:t(OS)?.startSection??o.data.sectionKey,event:r})})),qS=[xS,SS,wS,CS,ES,IS,PS,MS,kS,OS],_S=[TS],NS=({props:e,children:t})=>{const n=rx(xS);return v(()=>{n(e)},[e,n]),t};var jS=Symbol.for("preact-signals");function FS(){if(VS>1)VS--;else{var e,t=!1;for(!function(){var e=YS;for(YS=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==HS;){var n=HS;for(HS=void 0,BS++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&QS(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(BS=0,VS--,t)throw e}}function zS(e){if(VS>0)return e();US=++GS,VS++;try{return e()}finally{FS()}}var WS=void 0;function $S(e){var t=WS;WS=void 0;try{return e()}finally{WS=t}}var HS=void 0,VS=0,BS=0,GS=0,US=0,YS=void 0,KS=0;function XS(e){if(void 0!==WS){var t=e.n;if(void 0===t||t.t!==WS)return t={i:0,S:e,p:WS.s,n:void 0,t:WS,e:void 0,x:void 0,r:t},void 0!==WS.s&&(WS.s.n=t),WS.s=t,e.n=t,32&WS.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=WS.s,t.n=void 0,WS.s.n=t,WS.s=t),t}}function JS(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=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 ZS(e,t){return new JS(e,t)}function QS(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 ew(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function tw(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function nw(e,t){JS.call(this,void 0),this.x=e,this.s=void 0,this.g=KS-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 rw(e,t){return new nw(e,t)}function iw(e){var t=e.m;if(e.m=void 0,"function"==typeof t){VS++;var n=WS;WS=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,ow(e),t}finally{WS=n,FS()}}}function ow(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,iw(e)}function aw(e){if(WS!==this)throw new Error("Out-of-order effect");tw(this),WS=e,this.f&=-2,8&this.f&&ow(this),FS()}function sw(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function lw(e,t){var n=new sw(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}JS.prototype.brand=jS,JS.prototype.h=function(){return!0},JS.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:$S(function(){var e;null==(e=t.W)||e.call(t)}))},JS.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&$S(function(){var e;null==(e=t.Z)||e.call(t)}))}},JS.prototype.subscribe=function(e){var t=this;return lw(function(){var n=t.value,r=WS;WS=void 0;try{e(n)}finally{WS=r}},{name:"sub"})},JS.prototype.valueOf=function(){return this.value},JS.prototype.toString=function(){return this.value+""},JS.prototype.toJSON=function(){return this.value},JS.prototype.peek=function(){var e=WS;WS=void 0;try{return this.value}finally{WS=e}},Object.defineProperty(JS.prototype,"value",{get:function(){var e=XS(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(BS>100)throw new Error("Cycle detected");!function(e){0!==VS&&0===BS&&e.l!==US&&(e.l=US,YS={S:e,v:e.v,i:e.i,o:YS})}(this),this.v=e,this.i++,KS++,VS++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{FS()}}}}),nw.prototype=new JS,nw.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===KS)return!0;if(this.g=KS,this.f|=1,this.i>0&&!QS(this))return this.f&=-2,!0;var e=WS;try{ew(this),WS=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 WS=e,tw(this),this.f&=-2,!0},nw.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)}JS.prototype.S.call(this,e)},nw.prototype.U=function(e){if(void 0!==this.t&&(JS.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)}},nw.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(nw.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=XS(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),sw.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.m=t)}finally{e()}},sw.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,iw(this),ew(this),VS++;var e=WS;return WS=this,aw.bind(this,e)},sw.prototype.N=function(){2&this.f||(this.f|=2,this.u=HS,HS=this)},sw.prototype.d=function(){this.f|=8,1&this.f||ow(this)},sw.prototype.dispose=function(){this.d()};var uw,cw,dw,pw,fw,hw,mw,gw,vw,yw,bw,xw,Sw,ww,Cw,Ew,Iw,Dw,Pw,Mw,Rw=Object.create,kw=Object.defineProperty,Lw=Object.defineProperties,Aw=Object.getOwnPropertyDescriptor,Ow=Object.getOwnPropertyDescriptors,Tw=Object.getOwnPropertySymbols,qw=Object.prototype.hasOwnProperty,_w=Object.prototype.propertyIsEnumerable,Nw=e=>{throw TypeError(e)},jw=(e,t,n)=>t in e?kw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fw=(e,t)=>kw(e,"name",{value:t,configurable:!0}),zw=["class","method","getter","setter","accessor","field","value","get","set"],Ww=e=>void 0!==e&&"function"!=typeof e?Nw("Function expected"):e,$w=(e,t,n,r,i)=>({kind:zw[e],name:t,metadata:r,addInitializer:e=>n._?Nw("Already initialized"):i.push(Ww(e||null))}),Hw=(e,t)=>{return jw(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r},Vw=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},Bw=(e,t,n,r,i,o)=>{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=zw[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&Aw(d<4?i:{get[n](){return Yw(this,o)},set[n](e){return Xw(this,o,e)}},n));d?f&&d<4&&Fw(o,(d>2?"set ":d>1?"get ":"")+n):Fw(i,n);for(var b=r.length-1;b>=0;b--)u=$w(d,n,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>Uw(i,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?Yw:Jw)(e,i,4^d?o:y.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>Xw(e,i,t,4^d?o:y.set):(e,t)=>e[n]=t)),s=(0,r[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?Ww(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?Nw("Object expected"):(Ww(a=s.get)&&(y.get=a),Ww(a=s.set)&&(y.set=a),Ww(a=s.init)&&g.unshift(a));return d||Hw(e,i),y&&kw(i,n,y),f?4^d?o:y:i},Gw=(e,t,n)=>t.has(e)||Nw("Cannot "+n),Uw=(e,t)=>Object(t)!==t?Nw('Cannot use the "in" operator on this value'):e.has(t),Yw=(e,t,n)=>(Gw(e,t,"read from private field"),n?n.call(e):t.get(e)),Kw=(e,t,n)=>t.has(e)?Nw("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Xw=(e,t,n,r)=>(Gw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Jw=(e,t,n)=>(Gw(e,t,"access private method"),n);function Zw(e,t){if(t){let n;return rw(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return rw(e)}function Qw(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 n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,n)=>!Qw(e,t[n]))}if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const i=n.some(n=>!Qw(e[n],t[n]));return!i}return!1}function eC({get:e},t){return{init:e=>ZS(e),get(){return e.call(this).value},set(t){const n=e.call(this);n.peek()!==t&&(n.value=t)}}}function tC(e,t){const n=new WeakMap;return function(){let t=n.get(this);return t||(t=Zw(e.bind(this)),n.set(this,t)),t.value}}function nC(e=!0){return function(t,n){n.addInitializer(function(){const t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,((e,t)=>Lw(e,Ow(t)))(((e,t)=>{for(var n in t||(t={}))qw.call(t,n)&&jw(e,n,t[n]);if(Tw)for(var n of Tw(t))_w.call(t,n)&&jw(e,n,t[n]);return e})({},r),{enumerable:e}))})}}function rC(...e){const t=e.map(e=>lw(e));return()=>t.forEach(e=>e())}hw=[eC],fw=[eC],pw=[eC],dw=[nC()],cw=[nC()],uw=[nC()];var iC,oC=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,Vw(mw,5,this),Kw(this,xw),Kw(this,gw,Vw(mw,8,this)),Vw(mw,11,this),Kw(this,Sw,Vw(mw,12,this)),Vw(mw,15,this),Kw(this,Iw,Vw(mw,16,this)),Vw(mw,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return Yw(this,xw,Pw)}get initial(){return Yw(this,xw,yw)}get previous(){return Yw(this,xw,Cw)}set current(e){const t=$S(()=>Yw(this,xw,Pw));e&&t&&this.equals(t,e)||zS(()=>{Yw(this,xw,yw)||Xw(this,xw,e,bw),Xw(this,xw,t,Ew),Xw(this,xw,e,Mw)})}reset(e=this.defaultValue){zS(()=>{Xw(this,xw,void 0,Ew),Xw(this,xw,e,bw),Xw(this,xw,e,Mw)})}};function aC(e){return $S(()=>{const t={};for(const n in e)t[n]=e[n];return t})}mw=[,,,Rw(null)],gw=new WeakMap,xw=new WeakSet,Sw=new WeakMap,Iw=new WeakMap,vw=Bw(mw,20,"#initial",hw,xw,gw),yw=vw.get,bw=vw.set,ww=Bw(mw,20,"#previous",fw,xw,Sw),Cw=ww.get,Ew=ww.set,Dw=Bw(mw,20,"#current",pw,xw,Iw),Pw=Dw.get,Mw=Dw.set,Bw(mw,2,"current",dw,oC),Bw(mw,2,"initial",cw,oC),Bw(mw,2,"previous",uw,oC),Hw(mw,oC);iC=new WeakMap;var sC,lC,uC,cC,dC,pC=Object.create,fC=Object.defineProperty,hC=Object.getOwnPropertyDescriptor,mC=Object.getOwnPropertySymbols,gC=Object.prototype.hasOwnProperty,vC=Object.prototype.propertyIsEnumerable,yC=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),bC=e=>{throw TypeError(e)},xC=Math.pow,SC=(e,t,n)=>t in e?fC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wC=["class","method","getter","setter","accessor","field","value","get","set"],CC=e=>void 0!==e&&"function"!=typeof e?bC("Function expected"):e,EC=(e,t,n,r,i)=>({kind:wC[e],name:t,metadata:r,addInitializer:e=>n._?bC("Already initialized"):i.push(CC(e||null))}),IC=(e,t,n,r,i,o)=>{for(var a,s,l,u,c=7&t,d=wC[c+5],p=e[2]||(e[2]=[]),f=(i=i.prototype,hC(i,n)),h=r.length-1;h>=0;h--)(l=EC(c,n,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>n in e},u.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,CC(a)&&(f[d]=a);return f&&fC(i,n,f),i},DC=(e,t,n)=>t.has(e)||bC("Cannot "+n),PC=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.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:n}){return new e(t,n)}},MC=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:i,width:o,height:a,scale:s}=this,l=new e(i+t,r+n,o,a);return l.scale=((e,t)=>{for(var n in t||(t={}))gC.call(t,n)&&SC(e,n,t[n]);if(mC)for(var n of mC(t))vC.call(t,n)&&SC(e,n,t[n]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:n,top:r,right:i,bottom:o}=this;return{width:e,height:t,left:n,top:r,right:i,bottom:o}}get center(){const{left:e,top:t,right:n,bottom:r}=this;return new PC((e+n)/2,(t+r)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:n,top:r,width:i,height:o}=this;return n===t.left&&r===t.top&&i===t.width&&o===t.height}containsPoint(e){const{top:t,left:n,bottom:r,right:i}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=i}intersectionArea(t){return t instanceof e?function(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}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:n,width:r,height:i}){return new e(n,t,r,i)}static delta(e,t,n={x:"center",y:"center"}){const r=(e,t)=>{const r=n[t],i="x"===t?e.left:e.top,o="x"===t?e.width:e.height;return"start"==r?i:"end"==r?i+o:i+o/2};return PC.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};var RC,kC=class extends(uC=oC,lC=[tC],sC=[tC],uC){constructor(e){var t,n,r;super(PC.from(e),(e,t)=>PC.equals(e,t)),((e,t,n)=>{for(var r=0,i=e[t>>1],o=i&&i.length;r<o;r++)i[r].call(n)})(dC,5,this),t=this,r=0,(n=cC).has(t)?bC("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return PC.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=PC.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),o=i-(DC(a=this,s=cC,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/o*100);zS(()=>{((e,t,n)=>{DC(e,t,"write to private field"),t.set(e,n)})(this,cC,i),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(PC.from(e)),this.velocity={x:0,y:0}}};function LC({x:e,y:t},n){const r=Math.abs(e),i=Math.abs(t);return"number"==typeof n?Math.sqrt(xC(r,2)+xC(i,2))>n:"x"in n&&"y"in n?r>n.x&&i>n.y:"x"in n?r>n.x:"y"in n&&i>n.y}dC=(e=>{var t;return[,,,pC(null!=(t=null==e?void 0:e[yC("metadata")])?t:null)]})(uC),cC=new WeakMap,IC(dC,2,"delta",lC,kC),IC(dC,2,"direction",sC,kC),RC=dC,SC(kC,yC("metadata"),RC[3]);var AC,OC,TC,qC,_C=(e=>(e.Horizontal="x",e.Vertical="y",e))(_C||{}),NC=Object.values(_C),jC=Object.create,FC=Object.defineProperty,zC=Object.defineProperties,WC=Object.getOwnPropertyDescriptor,$C=Object.getOwnPropertyDescriptors,HC=Object.getOwnPropertySymbols,VC=Object.prototype.hasOwnProperty,BC=Object.prototype.propertyIsEnumerable,GC=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),UC=e=>{throw TypeError(e)},YC=(e,t,n)=>t in e?FC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,KC=(e,t)=>{for(var n in t||(t={}))VC.call(t,n)&&YC(e,n,t[n]);if(HC)for(var n of HC(t))BC.call(t,n)&&YC(e,n,t[n]);return e},XC=(e,t)=>zC(e,$C(t)),JC=(e,t)=>FC(e,"name",{value:t,configurable:!0}),ZC=(e,t)=>{var n={};for(var r in e)VC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&HC)for(var r of HC(e))t.indexOf(r)<0&&BC.call(e,r)&&(n[r]=e[r]);return n},QC=e=>{var t;return[,,,jC(null!=(t=null==e?void 0:e[GC("metadata")])?t:null)]},eE=["class","method","getter","setter","accessor","field","value","get","set"],tE=e=>void 0!==e&&"function"!=typeof e?UC("Function expected"):e,nE=(e,t,n,r,i)=>({kind:eE[e],name:t,metadata:r,addInitializer:e=>n._?UC("Already initialized"):i.push(tE(e||null))}),rE=(e,t)=>YC(t,GC("metadata"),e[3]),iE=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},oE=(e,t,n,r,i,o)=>{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=eE[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&WC(d<4?i:{get[n](){return lE(this,o)},set[n](e){return cE(this,o,e)}},n));d?f&&d<4&&JC(o,(d>2?"set ":d>1?"get ":"")+n):JC(i,n);for(var b=r.length-1;b>=0;b--)u=nE(d,n,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>sE(i,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?lE:dE)(e,i,4^d?o:y.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>cE(e,i,t,4^d?o:y.set):(e,t)=>e[n]=t)),s=(0,r[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?tE(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?UC("Object expected"):(tE(a=s.get)&&(y.get=a),tE(a=s.set)&&(y.set=a),tE(a=s.init)&&g.unshift(a));return d||rE(e,i),y&&FC(i,n,y),f?4^d?o:y:i},aE=(e,t,n)=>t.has(e)||UC("Cannot "+n),sE=(e,t)=>Object(t)!==t?UC('Cannot use the "in" operator on this value'):e.has(t),lE=(e,t,n)=>(aE(e,t,"read from private field"),n?n.call(e):t.get(e)),uE=(e,t,n)=>t.has(e)?UC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),cE=(e,t,n,r)=>(aE(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),dE=(e,t,n)=>(aE(e,t,"access private method"),n);function pE(e,t){return{plugin:e,options:t}}function fE(e){return t=>pE(e,t)}function hE(e){return"function"==typeof e?{plugin:e,options:void 0}:e}AC=[eC];var mE=class{constructor(e,t){this.manager=e,this.options=t,uE(this,TC,iE(OC,8,this,!1)),iE(OC,11,this),uE(this,qC,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return $S(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=lw(e.bind(this));return lE(this,qC).add(t),t}destroy(){lE(this,qC).forEach(e=>e())}static configure(e){return pE(this,e)}};OC=QC(null),TC=new WeakMap,qC=new WeakMap,oE(OC,4,"disabled",AC,mE,TC),rE(OC,mE);var gE,vE=class extends mE{},yE=class{constructor(e){this.manager=e,this.instances=new Map,uE(this,gE,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(hE).reduceRight((e,t)=>e.some(({plugin:e})=>e===t.plugin)?e:[t,...e],[]),n=t.map(({plugin:e})=>e);for(const e of lE(this,gE))if(!n.includes(e)){if(e.prototype instanceof vE)continue;this.unregister(e)}for(const{plugin:e,options:n}of t)this.register(e,n);cE(this,gE,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}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 bE(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}gE=new WeakMap;var xE,SE,wE=[],CE=class extends mE{constructor(e){super(e),uE(this,xE),uE(this,SE),this.computeCollisions=this.computeCollisions.bind(this),cE(this,SE,ZS(wE)),this.destroy=rC(()=>{const e=this.computeCollisions(),t=$S(()=>this.manager.dragOperation.position.current);if(e!==wE){const e=lE(this,xE);if(cE(this,xE,t),e&&t.x==e.x&&t.y==e.y)return}else cE(this,xE,void 0);lE(this,SE).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){$S(()=>{e?lE(this,SE).value=this.computeCollisions():cE(this,xE,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:i,shape:o,status:a}=r;if(!a.initialized||!o)return wE;const s=[],l=[];for(const o of null!=e?e:n.droppables){if(o.disabled)continue;if(i&&!o.accepts(i))continue;const e=null!=t?t:o.collisionDetector;if(!e)continue;l.push(o),o.shape;const n=$S(()=>e({droppable:o,dragOperation:r}));n&&(null!=o.collisionPriority&&(n.priority=o.collisionPriority),s.push(n))}return 0===l.length?wE:(s.sort(bE),s)}get collisions(){return lE(this,SE).value}};xE=new WeakMap,SE=new WeakMap;var EE=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const e of r)e(...t)}},IE=class extends EE{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function DE(e,t=!0){let n=!1;return XC(KC({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var PE,ME,RE,kE,LE,AE,OE,TE,qE,_E=class extends vE{constructor(e){super(e);let t=[];this.destroy=rC(()=>{const{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=e,{collisions:i}=n;if(n.isDisabled())return;const o=DE({collisions:i});if(r.dispatch("collision",o),o.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(i,t))return;t=i;const[a]=i;$S(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(n.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{n.enable()}))})})}},NE=(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))(NE||{}),jE=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(jE||{});OE=[eC],AE=[tC],LE=[tC],kE=[tC],RE=[tC],ME=[tC],PE=[tC];var FE=class{constructor(){iE(TE,5,this),uE(this,qE,iE(TE,8,this,"idle")),iE(TE,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}};TE=QC(null),qE=new WeakMap,oE(TE,4,"value",OE,FE,qE),oE(TE,2,"current",AE,FE),oE(TE,2,"idle",LE,FE),oE(TE,2,"initializing",kE,FE),oE(TE,2,"initialized",RE,FE),oE(TE,2,"dragging",ME,FE),oE(TE,2,"dropped",PE,FE),rE(TE,FE);var zE,WE,$E,HE,VE,BE,GE,UE,YE,KE=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 $S(()=>{const{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=DE({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return $S(()=>{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 n=new AbortController,{event:r,coordinates:i}=e;zS(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(i)});const o=DE({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",o),o.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1}))}),n)})}move(e){return $S(()=>{var t,n;const{dragOperation:r}=this.manager,{status:i,controller:o}=r;if(!i.dragging||!o||o.signal.aborted)return;const a=DE({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,n,i,o,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(o=null==(i=e.by)?void 0:i.y)?o:0)};r.position.current=l})})}stop(e={}){return $S(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:i}=r;if(!i||i.signal.aborted)return;let o;i.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const e=$S(()=>{var e;return"dropping"===(null==(e=r.source)?void 0:e.status)}),t=()=>{r.controller===i&&(r.controller=void 0),r.reset()};if(e){const{source:e}=r,n=lw(()=>{"idle"===(null==e?void 0:e.status)&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};r.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return o=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),o?o.then(a).catch(()=>r.reset()):a()})}};HE=[eC],$E=[eC],WE=[eC],zE=[eC];var XE=class{constructor(e,t){uE(this,BE,iE(VE,8,this)),iE(VE,11,this),uE(this,GE,iE(VE,12,this)),iE(VE,15,this),uE(this,UE,iE(VE,16,this)),iE(VE,19,this),uE(this,YE,iE(VE,20,this)),iE(VE,23,this);const{effects:n,id:r,data:i={},disabled:o=!1,register:a=!0}=e;let s=r;this.manager=t,this.id=r,this.data=i,this.disabled=o,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==n?void 0:n())?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)}};VE=QC(null),BE=new WeakMap,GE=new WeakMap,UE=new WeakMap,YE=new WeakMap,oE(VE,4,"manager",HE,XE,BE),oE(VE,4,"id",$E,XE,GE),oE(VE,4,"data",WE,XE,UE),oE(VE,4,"disabled",zE,XE,YE),rE(VE,XE);var JE,ZE,QE,eI,tI,nI,rI,iI,oI,aI,sI,lI,uI,cI,dI,pI,fI,hI,mI,gI,vI,yI,bI,xI,SI=class{constructor(){this.map=ZS(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),i=()=>this.unregister(e,t);if(r===t)return i;if(r){const e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}const o=new Map(n);o.set(e,t),this.map.value=o;const a=rC(...t.effects());return this.cleanupFunctions.set(t,a),i},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);const i=new Map(n);i.delete(e),this.map.value=i}}[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}},wI=class extends(rI=XE,nI=[eC],tI=[eC],eI=[eC],QE=[tC],ZE=[tC],JE=[tC],rI){constructor(e,t){var n=e,{modifiers:r,type:i,sensors:o}=n,a=ZC(n,["modifiers","type","sensors"]);super(a,t),iE(iI,5,this),uE(this,oI,iE(iI,8,this)),iE(iI,11,this),uE(this,aI,iE(iI,12,this)),iE(iI,15,this),uE(this,sI,iE(iI,16,this,this.isDragSource?"dragging":"idle")),iE(iI,19,this),this.type=i,this.sensors=o,this.modifiers=r,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}};iI=QC(rI),oI=new WeakMap,aI=new WeakMap,sI=new WeakMap,oE(iI,4,"type",nI,wI,oI),oE(iI,4,"modifiers",tI,wI,aI),oE(iI,4,"status",eI,wI,sI),oE(iI,2,"isDropping",QE,wI),oE(iI,2,"isDragging",ZE,wI),oE(iI,2,"isDragSource",JE,wI),rE(iI,wI);var CI=class extends(hI=XE,fI=[eC],pI=[eC],dI=[eC],cI=[eC],uI=[eC],lI=[tC],hI){constructor(e,t){var n=e,{accept:r,collisionDetector:i,collisionPriority:o,type:a}=n;super(ZC(n,["accept","collisionDetector","collisionPriority","type"]),t),iE(mI,5,this),uE(this,gI,iE(mI,8,this)),iE(mI,11,this),uE(this,vI,iE(mI,12,this)),iE(mI,15,this),uE(this,yI,iE(mI,16,this)),iE(mI,19,this),uE(this,bI,iE(mI,20,this)),iE(mI,23,this),uE(this,xI,iE(mI,24,this)),iE(mI,27,this),this.accept=r,this.collisionDetector=i,this.collisionPriority=o,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}};mI=QC(hI),gI=new WeakMap,vI=new WeakMap,yI=new WeakMap,bI=new WeakMap,xI=new WeakMap,oE(mI,4,"accept",fI,CI,gI),oE(mI,4,"type",pI,CI,vI),oE(mI,4,"collisionDetector",dI,CI,yI),oE(mI,4,"collisionPriority",cI,CI,bI),oE(mI,4,"shape",uI,CI,xI),oE(mI,2,"isDropTarget",lI,CI),rE(mI,CI);var EI,II=class extends mE{constructor(e,t){super(e,t),this.manager=e,this.options=t}},DI=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)}},PI=class{constructor(e){this.options=e,uE(this,EI)}set controller(e){cE(this,EI,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=lE(this,EI))||t.activate(e)}};EI=new WeakMap;var MI,RI,kI,LI,AI,OI,TI,qI,_I,NI,jI,FI,zI,WI,$I,HI,VI,BI,GI,UI=class extends mE{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},YI=class{constructor(e){this.draggables=new SI,this.droppables=new SI,this.plugins=new yE(e),this.sensors=new yE(e),this.modifiers=new yE(e)}register(e,t){if(e instanceof wI)return this.draggables.register(e.id,e);if(e instanceof CI)return this.droppables.register(e.id,e);if(e.prototype instanceof UI)return this.modifiers.register(e,t);if(e.prototype instanceof II)return this.sensors.register(e,t);if(e.prototype instanceof mE)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof XE)return e instanceof wI?this.draggables.unregister(e.id,e):e instanceof CI?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof UI)return this.modifiers.unregister(e);if(e.prototype instanceof II)return this.sensors.unregister(e);if(e.prototype instanceof mE)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()}};_I=[tC],qI=[eC],TI=[eC],OI=[eC],AI=[eC],LI=[eC],kI=[tC],RI=[tC],MI=[tC];var KI=class{constructor(e){iE(zI,5,this),uE(this,NI),uE(this,jI),uE(this,FI,new oC(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new FE,uE(this,WI,iE(zI,8,this,!1)),iE(zI,11,this),uE(this,$I,iE(zI,12,this,null)),iE(zI,15,this),uE(this,HI,iE(zI,16,this,null)),iE(zI,19,this),uE(this,VI,iE(zI,20,this,null)),iE(zI,23,this),uE(this,BI,iE(zI,24,this,[])),iE(zI,27,this),this.position=new kC({x:0,y:0}),uE(this,GI,{x:0,y:0}),cE(this,NI,e)}get shape(){const{current:e,initial:t,previous:n}=lE(this,FI);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?lE(this,FI).current=e:lE(this,FI).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const n=lE(this,NI).registry.draggables.get(t);return n&&cE(this,jI,n),null!=(e=null!=n?n:lE(this,jI))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=lE(this,NI).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const e of this.modifiers)n=e.apply(XC(KC({},this.snapshot()),{transform:n}));return cE(this,GI,n),n}snapshot(){return $S(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:lE(this,GI),shape:this.shape?aC(this.shape):null,position:aC(this.position),status:aC(this.status),canceled:this.canceled}))}reset(){zS(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,lE(this,FI).reset(),this.position.reset({x:0,y:0}),cE(this,GI,{x:0,y:0}),this.modifiers=[]})}};zI=QC(null),NI=new WeakMap,jI=new WeakMap,FI=new WeakMap,WI=new WeakMap,$I=new WeakMap,HI=new WeakMap,VI=new WeakMap,BI=new WeakMap,GI=new WeakMap,oE(zI,2,"shape",_I,KI),oE(zI,4,"canceled",qI,KI,WI),oE(zI,4,"activatorEvent",TI,KI,$I),oE(zI,4,"sourceIdentifier",OI,KI,HI),oE(zI,4,"targetIdentifier",AI,KI,VI),oE(zI,4,"modifiers",LI,KI,BI),oE(zI,2,"source",kI,KI),oE(zI,2,"target",RI,KI),oE(zI,2,"transform",MI,KI),rE(zI,KI);var XI={get rendering(){return Promise.resolve()}};function JI(e,t){return"function"==typeof e?e(t):null!=e?e:t}var ZI=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 n=null!=e?e:{},r=JI(n.plugins,[]),i=JI(n.sensors,[]),o=JI(n.modifiers,[]),a=null!=(t=n.renderer)?t:XI,s=new IE(this),l=new YI(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new KE(this),this.dragOperation=new KI(this),this.collisionObserver=new CE(this),this.plugins=[_E,...r],this.modifiers=o,this.sensors=i;const{destroy:u}=this,c=rC(()=>{var e,t,n;const r=$S(()=>this.dragOperation.modifiers),i=this.modifiers;for(const e of r)i.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:n}=hE(e);return new t(this,n)}))?n:i});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}},QI=e=>{throw TypeError(e)},eD=(e,t,n)=>t.has(e)||QI("Cannot "+n),tD=(e,t,n)=>(eD(e,t,"read from private field"),t.get(e)),nD=(e,t,n)=>t.has(e)?QI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),rD=(e,t,n,r)=>(eD(e,t,"write to private field"),t.set(e,n),n),iD=(e,t,n)=>(eD(e,t,"access private method"),n);function oD(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function aD(e,t){const n=e.getAnimations();if(n.length>0)for(const e of n){if("running"!==e.playState)continue;const{effect:n}=e,r=(oD(n)?n.getKeyframes():[]).filter(t);if(r.length>0)return[r[r.length-1],e]}return null}function sD(e){const{width:t,height:n,top:r,left:i,bottom:o,right:a}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:i,bottom:o,right:a}}function lD(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function uD(e){return"nodeType"in e}function cD(e){var t,n,r;return e?lD(e)?e:uD(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function dD(e){const{Document:t}=cD(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function pD(e){return!(!e||lD(e))&&(e instanceof cD(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function fD(e){return e instanceof cD(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function hD(e){return e?lD(e)?e.document:uD(e)?dD(e)?e:pD(e)||fD(e)?e.ownerDocument:document:document:document}function mD(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===i}function gD(e,t=e.getBoundingClientRect(),n=0){var r,i,o,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(r=u.defaultView)?r:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!mD(d)){const e=d.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),i=n*(e.bottom-e.top),o=n*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+r),bottom:Math.min(l.bottom,e.bottom+i),left:Math.max(l.left,e.left-o),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!=(i=null==p?void 0:p.offsetTop)?i:0,h=null!=(o=null==p?void 0:p.offsetLeft)?o: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=n*g,y=n*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 vD(e){return{x:e.clientX,y:e.clientY}}var yD="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function bD(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const e=r.contentDocument;e&&!t.has(e)&&n.push(...bD(e,t))}catch(e){}try{const r=e.defaultView;if(r&&r!==window.top){const i=r.parent;i&&i.document&&i.document!==e&&n.push(...bD(i.document,t))}}catch(e){}return n}function xD(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function SD(){var e,t;const n=xD()?window.visualViewport:null;return{x:null!=(e=null==n?void 0:n.offsetLeft)?e:0,y:null!=(t=null==n?void 0:n.offsetTop)?t:0}}function wD(e){return!(!e||!uD(e))&&e instanceof cD(e).ShadowRoot}function CD(e){if(e&&uD(e)){let t=e.getRootNode();if(wD(t))return t;if(t instanceof Document)return t}return hD(e)}function ED(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function ID(e){return"value"in e}function DD(e){return"CANVAS"===e.tagName}function PD(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(r)){const{contentDocument:e}=r;if(e){const{left:i,top:o}=r.getBoundingClientRect();return PD(e,{x:t-i,y:n-o})}}return r}var MD=new WeakMap;var RD=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:n,listener:r,options:i}]=e;t.removeEventListener(n,r,i)}this.entries.clear()}}bind(e,t){const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],i=[];for(const e of n)for(const t of r){const{type:n,listener:r,options:o}=t,a=[e,t];e.addEventListener(n,r,o),this.entries.add(a),i.push(a)}return function(){for(const[e,{type:t,listener:n,options:r}]of i)e.removeEventListener(t,n,r)}}};function kD(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function LD(e,t){const n=()=>performance.now();let r,i;return function(...o){const a=this;i?(null==r||r(),r=function(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}(()=>{e.apply(a,o),i=n()},t-(n()-i))):(e.apply(a,o),i=n())}}var AD,OD=yD?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},TD=class extends OD{constructor(e){super(t=>{tD(this,AD)?e(t,this):rD(this,AD,!0)}),nD(this,AD,!1)}};AD=new WeakMap;var qD,_D,ND,jD,FD,zD,WD,$D,HD,VD,BD,GD=Array.from({length:100},(e,t)=>t/100),UD=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,nD(this,HD),this.disconnect=()=>{var e,t,n;rD(this,WD,!0),null==(e=tD(this,ND))||e.disconnect(),null==(t=tD(this,jD))||t.disconnect(),tD(this,FD).disconnect(),null==(n=tD(this,zD))||n.remove()},nD(this,qD,!0),nD(this,_D),nD(this,ND),nD(this,jD),nD(this,FD),nD(this,zD),nD(this,WD,!1),nD(this,$D,LD(()=>{var e,t,n;const{element:r}=this;if(null==(e=tD(this,jD))||e.disconnect(),tD(this,WD)||!tD(this,qD)||!r.isConnected)return;const i=null!=(t=r.ownerDocument)?t:document,{innerHeight:o,innerWidth:a}=null!=(n=i.defaultView)?n:window,s=r.getBoundingClientRect(),l=gD(r,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(o-d)}px ${h}px`;this.boundingClientRect=s,rD(this,jD,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:MC.intersectionRatio(n,gD(r)))&&tD(this,$D).call(this)},{threshold:GD,rootMargin:m,root:i})),tD(this,jD).observe(r),iD(this,HD,VD).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),rD(this,qD,function(e,t=e.getBoundingClientRect()){const{width:n,height:r}=gD(e,t);return n>0&&r>0}(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};const i=e.ownerDocument;(null==n?void 0:n.debug)&&(rD(this,zD,document.createElement("div")),tD(this,zD).style.background="rgba(0,0,0,0.15)",tD(this,zD).style.position="fixed",tD(this,zD).style.pointerEvents="none",i.body.appendChild(tD(this,zD))),rD(this,FD,new IntersectionObserver(t=>{var n,r;const i=t[t.length-1],{boundingClientRect:o,isIntersecting:a}=i,{width:s,height:l}=o,u=tD(this,qD);rD(this,qD,a),(s||l)&&(u&&!a?(null==(n=tD(this,jD))||n.disconnect(),this.callback(null),null==(r=tD(this,ND))||r.disconnect(),rD(this,ND,void 0),tD(this,zD)&&(tD(this,zD).style.visibility="hidden")):tD(this,$D).call(this),a&&!tD(this,ND)&&(rD(this,ND,new TD(tD(this,$D))),tD(this,ND).observe(e)))},{threshold:GD,root:i})),tD(this,qD)&&!n.skipInitial&&this.callback(this.boundingClientRect),tD(this,FD).observe(e)}};qD=new WeakMap,_D=new WeakMap,ND=new WeakMap,jD=new WeakMap,FD=new WeakMap,zD=new WeakMap,WD=new WeakMap,$D=new WeakMap,HD=new WeakSet,VD=function(){tD(this,WD)||(iD(this,HD,BD).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,tD(this,_D))||(this.callback(this.boundingClientRect),rD(this,_D,this.boundingClientRect)))},BD=function(){if(tD(this,zD)){const{top:e,left:t,width:n,height:r}=gD(this.element);tD(this,zD).style.overflow="hidden",tD(this,zD).style.visibility="visible",tD(this,zD).style.top=`${Math.floor(e)}px`,tD(this,zD).style.left=`${Math.floor(t)}px`,tD(this,zD).style.width=`${Math.floor(n)}px`,tD(this,zD).style.height=`${Math.floor(r)}px`}};var YD,KD,XD,JD,ZD=new WeakMap,QD=new WeakMap;function eP(e,t){let n=ZD.get(e);if(!n){const t=new UD(e,t=>{const n=ZD.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0});n={disconnect:t.disconnect,callbacks:new Set}}return n.callbacks.add(t),ZD.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(ZD.delete(e),n.disconnect())}}var tP=class{constructor(e,t,n){this.callback=t,nD(this,YD),nD(this,KD,!1),nD(this,XD),nD(this,JD,LD(e=>{if(!tD(this,KD)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of tD(this,XD))if(e.target.contains(t)){this.callback(tD(this,YD).boundingClientRect);break}},75));const r=function(e){const t=new Set;let n=kD(e);for(;n;)t.add(n),n=kD(n);return t}(e),i=function(e,t){const n=new Set;for(const r of e){const e=eP(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),o=function(e,t){var n;const r=e.ownerDocument;if(!QD.has(r)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),QD.set(r,{disconnect:()=>e.abort(),listeners:t})}const{listeners:i,disconnect:o}=null!=(n=QD.get(r))?n:{};return i&&o?(i.add(t),()=>{i.delete(t),0===i.size&&(o(),QD.delete(r))}):()=>{}}(e,tD(this,JD));rD(this,XD,r),rD(this,YD,new UD(e,t,n)),this.disconnect=()=>{tD(this,KD)||(rD(this,KD,!0),i(),o(),tD(this,YD).disconnect())}}};function nP(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function rP(e){try{nP(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function iP(e){return!(!yD||!e)&&e===hD(e).scrollingElement}function oP(e){var t,n;const r=cD(e),i=iP(e)?function(e){var t,n,r,i;const{documentElement:o}=hD(e),a=cD(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:o.clientWidth,l=null!=(n=null==a?void 0:a.height)?n:o.clientHeight,u=null!=(r=null==a?void 0:a.offsetTop)?r:0,c=null!=(i=null==a?void 0:a.offsetLeft)?i:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):sD(e),o=r.visualViewport,a=iP(e)?{height:null!=(t=null==o?void 0:o.height)?t:r.innerHeight,width:null!=(n=null==o?void 0:o.width)?n:r.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:i,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 aP(e,t){const{isTop:n,isBottom:r,isLeft:i,isRight:o,position:a}=oP(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!n&&a.current.y+l>0,c=!r&&a.current.y+l<a.max.y,d=!i&&a.current.x+s>0,p=!o&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}YD=new WeakMap,KD=new WeakMap,XD=new WeakMap,JD=new WeakMap;var sP=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))}},lP=new sP(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),uP=new sP(e=>setTimeout(e,50)),cP=new Map,dP=cP.clear.bind(cP);function pP(e,t=!1){if(!t)return fP(e);let n=cP.get(e);return n||(n=fP(e),cP.set(e,n),uP.schedule(dP),n)}function fP(e){return cD(e).getComputedStyle(e)}var hP={excludeElement:!0,escapeShadowDOM:!0};function mP(e,t=hP){const{limit:n,excludeElement:r,escapeShadowDOM:i}=t,o=new Set;return e?function t(a){if(null!=n&&o.size>=n)return o;if(!a)return o;if(dD(a)&&null!=a.scrollingElement&&!o.has(a.scrollingElement))return o.add(a.scrollingElement),o;if(i&&wD(a))return t(a.host);if(!pD(a))return fD(a)?t(a.parentElement):o;if(o.has(a))return o;const s=pP(a,!0);if(r&&a===e||function(e,t=pP(e,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,s)&&o.add(a),function(e,t=pP(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&o.add(e),o}return t(a.parentNode)}(e):o}function gP(e,t=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=kD(e);for(;r;){if(r===t)return n;const e=sD(r),{x:i,y:o}=vP(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*i,n.scaleY=n.scaleY*o,r=kD(r)}return n}function vP(e,t=sD(e)){const n=Math.round(t.width),r=Math.round(t.height);if(pD(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};const i=pP(e,!0);return{x:(parseFloat(i.width)||n)/n,y:(parseFloat(i.height)||r)/r}}function yP(e){if("none"===e)return null;const[t,n,r="0"]=e.split(" "),i={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(i.x)&&isNaN(i.y)?null:{x:isNaN(i.x)?0:i.x,y:isNaN(i.y)?0:i.y,z:isNaN(i.z)?0:i.z}}function bP(e){var t,n,r,i,o,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(c),h=yP(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!=(n=null==f?void 0:f.y)?n:1,y=null!=(r=null==h?void 0:h.x)?r:0,b=null!=(i=null==h?void 0:h.y)?i:0,x=null!=(o=null==m?void 0:m.x)?o: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 xP=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(xP||{}),SP={x:.2,y:.2},wP={x:10,y:10};function CP(e,t,n,r=25,i=SP,o=wP){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=oP(e),f=gP(e),h=bP(pP(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new MC(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*i.y,S=v.width*i.x;return(!u||g&&!c)&&s<=v.top+x&&1!==(null==n?void 0:n.y)&&a>=v.left-o.x&&a<=v.right+o.x?(y.y=g?1:-1,b.y=r*Math.abs((v.top+x-s)/x)):(!c||g&&!u)&&s>=v.bottom-x&&-1!==(null==n?void 0:n.y)&&a>=v.left-o.x&&a<=v.right+o.x&&(y.y=g?-1:1,b.y=r*Math.abs((v.bottom-x-s)/x)),(!p||m&&!d)&&a>=v.right-S&&-1!==(null==n?void 0:n.x)&&s>=v.top-o.y&&s<=v.bottom+o.y?(y.x=m?-1:1,b.x=r*Math.abs((v.right-S-a)/S)):(!d||m&&!p)&&a<=v.left+S&&1!==(null==n?void 0:n.x)&&s>=v.top-o.y&&s<=v.bottom+o.y&&(y.x=m?1:-1,b.x=r*Math.abs((v.left+S-a)/S)),{direction:y,speed:b}}function EP(e,t=!1){if("scrollIntoViewIfNeeded"in(n=e)&&"function"==typeof n.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var n;if(!pD(e))return e.scrollIntoView();var r=function(e){const[t]=mP(e,{limit:1});return null!=t?t:null}(e);if(!pD(r))return;const i=pP(r,!0),o=parseInt(i.getPropertyValue("border-top-width")),a=parseInt(i.getPropertyValue("border-left-width")),s=e.offsetTop-r.offsetTop<r.scrollTop,l=e.offsetTop-r.offsetTop+e.clientHeight-o>r.scrollTop+r.clientHeight,u=e.offsetLeft-r.offsetLeft<r.scrollLeft,c=e.offsetLeft-r.offsetLeft+e.clientWidth-a>r.scrollLeft+r.clientWidth,d=s&&!l;(s||l)&&t&&(r.scrollTop=e.offsetTop-r.offsetTop-r.clientHeight/2-o+e.clientHeight/2),(u||c)&&t&&(r.scrollLeft=e.offsetLeft-r.offsetLeft-r.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function IP({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function DP(e,t=pP(e).translate,n=!0){if(n){const t=aD(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=yP(e);if(t)return t}}}if(t){const e=yP(t);if(e)return e}return{x:0,y:0,z:0}}var PP=new sP(e=>setTimeout(e,0)),MP=new Map,RP=MP.clear.bind(MP);function kP(e,t){const n=function(e){const t=e.ownerDocument;let n=MP.get(t);if(n)return n;n=t.getAnimations(),MP.set(t,n),PP.schedule(RP);const r=n.filter(t=>oD(t.effect)&&t.effect.target===e);return MP.set(e,r),n}(e).filter(e=>{var n,r;if(oD(e.effect)){const{target:i}=e.effect;if(null==(r=i&&(null==(n=t.isValidTarget)?void 0:n.call(t,i)))||r)return e.effect.getKeyframes().some(e=>{for(const n of t.properties)if(e[n])return!0})}}).map(e=>{const{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(e.currentTime=r,()=>{e.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}var LP=class extends MC{constructor(e,t={}){var n,r,i,o;const{frameTransform:a=gP(e),ignoreTransforms:s,getBoundingClientRect:l=sD}=t,u=kP(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||xD())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=pP(e),v=bP(g),y={x:null!=(n=null==v?void 0:v.scaleX)?n:1,y:null!=(r=null==v?void 0:v.scaleY)?r:1},b=function(e,t){var n;const r=e.getAnimations();let i=null;if(!r.length)return null;for(const e of r){if("running"!==e.playState)continue;const r=oD(e.effect)?e.effect.getKeyframes():[],o=r[r.length-1];if(!o)continue;const{transform:a,translate:s,scale:l}=o;if(a||s||l){const e=bP({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&&(i=i?{x:i.x+e.x,y:i.y+e.y,z:null!=(n=i.z)?n:e.z,scaleX:i.scaleX*e.scaleX,scaleY:i.scaleY*e.scaleY}:e)}}return i}(e,g);null==u||u(),v&&(d=function(e,t,n){const{scaleX:r,scaleY:i,x:o,y:a}=t,s=e.left-o-(1-r)*parseFloat(n),l=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width/r:e.width,c=i?e.height/i: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!=(i=null==d?void 0:d.width)?i:h,height:null!=(o=null==d?void 0:d.height)?o:m};if(b&&!s&&d){const e=function(e,t,n){const{scaleX:r,scaleY:i,x:o,y:a}=t,s=e.left+o+(1-r)*parseFloat(n),l=e.top+a+(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width*r:e.width,c=i?e.height*i: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 AP(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 OP=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:n}=this;if(AP(n))for(const[r,i]of Object.entries(e)){const e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof i?i:`${i}px`)}}remove(e,t=""){const{element:n}=this;if(AP(n))for(const r of e){const e=`${t}${r}`;n.style.removeProperty(e)}}reset(){const{element:e}=this;if(AP(e)){for(const[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function TP(e){return!!e&&(e instanceof cD(e).Element||uD(e)&&e.nodeType===Node.ELEMENT_NODE)}function qP(e){if(!e)return!1;const{KeyboardEvent:t}=cD(e.target);return e instanceof t}var _P={};function NP(e){const t=null==_P[e]?0:_P[e]+1;return _P[e]=t,`${e}-${t}`}var jP=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/PC.distance(t.shape.center,n),type:jE.PointerIntersection,priority:NE.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:i}=e,o=PC.distance(t.shape.center,i.current),a=r/(n.current.area+t.shape.area-r)/o;return{id:t.id,value:a,type:jE.ShapeIntersection,priority:NE.Normal}}return null})(e)},FP=e=>{const{dragOperation:t,droppable:n}=e,{shape:r,position:i}=t;if(!n.shape)return null;const o=r?MC.from(r.current.boundingRectangle).corners:void 0,a=MC.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+PC.distance(PC.from(t),null!=(r=null==o?void 0:o[n])?r:i.current)},0),s=a/4;return{id:n.id,value:1/s,type:jE.Collision,priority:NE.Normal}},zP=Object.create,WP=Object.defineProperty,$P=Object.defineProperties,HP=Object.getOwnPropertyDescriptor,VP=Object.getOwnPropertyDescriptors,BP=Object.getOwnPropertySymbols,GP=Object.prototype.hasOwnProperty,UP=Object.prototype.propertyIsEnumerable,YP=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),KP=e=>{throw TypeError(e)},XP=(e,t,n)=>t in e?WP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,JP=(e,t)=>{for(var n in t||(t={}))GP.call(t,n)&&XP(e,n,t[n]);if(BP)for(var n of BP(t))UP.call(t,n)&&XP(e,n,t[n]);return e},ZP=(e,t)=>$P(e,VP(t)),QP=(e,t)=>WP(e,"name",{value:t,configurable:!0}),eM=(e,t)=>{var n={};for(var r in e)GP.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&BP)for(var r of BP(e))t.indexOf(r)<0&&UP.call(e,r)&&(n[r]=e[r]);return n},tM=e=>{var t;return[,,,zP(null!=(t=null==e?void 0:e[YP("metadata")])?t:null)]},nM=["class","method","getter","setter","accessor","field","value","get","set"],rM=e=>void 0!==e&&"function"!=typeof e?KP("Function expected"):e,iM=(e,t,n,r,i)=>({kind:nM[e],name:t,metadata:r,addInitializer:e=>n._?KP("Already initialized"):i.push(rM(e||null))}),oM=(e,t)=>XP(t,YP("metadata"),e[3]),aM=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},sM=(e,t,n,r,i,o)=>{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=nM[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),y=d&&(!f&&!p&&(i=i.prototype),d<5&&(d>3||!f)&&HP(d<4?i:{get[n](){return cM(this,o)},set[n](e){return pM(this,o,e)}},n));d?f&&d<4&&QP(o,(d>2?"set ":d>1?"get ":"")+n):QP(i,n);for(var b=r.length-1;b>=0;b--)u=iM(d,n,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>uM(i,e):e=>n in e},3^d&&(c.get=f?e=>(1^d?cM:fM)(e,i,4^d?o:y.get):e=>e[n]),d>2&&(c.set=f?(e,t)=>pM(e,i,t,4^d?o:y.set):(e,t)=>e[n]=t)),s=(0,r[b])(d?d<4?f?o:y[m]:d>4?void 0:{get:y.get,set:y.set}:i,u),l._=1,4^d||void 0===s?rM(s)&&(d>4?g.unshift(s):d?f?o=s:y[m]=s:i=s):"object"!=typeof s||null===s?KP("Object expected"):(rM(a=s.get)&&(y.get=a),rM(a=s.set)&&(y.set=a),rM(a=s.init)&&g.unshift(a));return d||oM(e,i),y&&WP(i,n,y),f?4^d?o:y:i},lM=(e,t,n)=>t.has(e)||KP("Cannot "+n),uM=(e,t)=>Object(t)!==t?KP('Cannot use the "in" operator on this value'):e.has(t),cM=(e,t,n)=>(lM(e,t,"read from private field"),n?n.call(e):t.get(e)),dM=(e,t,n)=>t.has(e)?KP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),pM=(e,t,n,r)=>(lM(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),fM=(e,t,n)=>(lM(e,t,"access private method"),n),hM="button",mM="draggable",gM="dnd-kit-description",vM="dnd-kit-announcement",yM={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."},bM={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:n}){if(e)return n?`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 xM(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var SM=["dragover","dragmove"];var wM,CM,EM,IM,DM,PM,MM,RM,kM,LM,AM,OM,TM,qM=new Map,_M=class extends(DM=vE,IM=[eC],EM=[tC],CM=[tC],wM=[tC],DM){constructor(e){super(e),aM(MM,5,this),dM(this,kM),dM(this,PM,new Set),dM(this,RM,aM(MM,8,this,new Set)),aM(MM,11,this),this.registerEffect(fM(this,kM,LM))}register(e){return cM(this,PM).add(e),()=>{cM(this,PM).delete(e)}}addRoot(e){return $S(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{$S(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return CD(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return CD(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}};MM=tM(DM),PM=new WeakMap,RM=new WeakMap,kM=new WeakSet,LM=function(){const{roots:e}=this,t=[];for(const n of e)for(const e of cM(this,PM))t.push(fM(this,kM,AM).call(this,n,e));return()=>{for(const e of t)e()}},AM=function(e,t){let n=qM.get(e);n||(n=new Map,qM.set(e,n));let r=n.get(t);if(!r){const i=dD(e)?fM(this,kM,OM).call(this,e,n,t):fM(this,kM,TM).call(this,e,n,t);if(!i)return()=>{};r=i,n.set(t,r)}r.refCount++;let i=!1;return()=>{i||(i=!0,r.refCount--,0===r.refCount&&r.cleanup())}},OM=function(e,t,n){const r=e.createElement("style");r.textContent=n,e.head.prepend(r);const i=new MutationObserver(t=>{for(const n of t)for(const t of Array.from(n.removedNodes))if(t===r)return void e.head.prepend(r)});return i.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{i.disconnect(),r.remove(),t.delete(n),0===t.size&&qM.delete(e)}}},TM=function(e,t,n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const r=e.ownerDocument.defaultView,{CSSStyleSheet:i}=null!=r?r:{};if(!i)return null;const o=new i;return o.replaceSync(n),e.adoptedStyleSheets.push(o),{refCount:0,cleanup:()=>{var r;if(wD(e)&&(null==(r=e.host)?void 0:r.isConnected)){const t=e.adoptedStyleSheets.indexOf(o);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),0===t.size&&qM.delete(e)}}},sM(MM,4,"additionalRoots",IM,_M,RM),sM(MM,2,"sourceRoot",EM,_M),sM(MM,2,"targetRoot",CM,_M),sM(MM,2,"roots",wM,_M),oM(MM,_M);var NM="data-dnd-",jM=`${NM}dropping`,FM="--dnd-",zM=`${NM}dragging`,WM=`${NM}placeholder`,$M=[zM,WM,"popover","aria-pressed","aria-grabbing"],HM=["view-transition-name"],VM=`\n :is(:root,:host) [${zM}] {\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(${FM}top, 0px) !important;\n left: var(${FM}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${FM}width, auto);\n max-width: var(${FM}width, auto);\n height: var(${FM}height, auto);\n max-height: var(${FM}height, auto);\n transition: var(${FM}transition) !important;\n }\n\n :is(:root,:host) [${WM}] {\n transition: none;\n }\n\n :is(:root,:host) [${WM}='hidden'] {\n visibility: hidden;\n }\n\n [${zM}] * {\n pointer-events: none !important;\n }\n\n [${zM}]:not([${jM}]) {\n translate: var(${FM}translate) !important;\n }\n\n [${zM}][style*='${FM}scale'] {\n scale: var(${FM}scale) !important;\n transform-origin: var(${FM}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${zM}][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 [${zM}]::backdrop, [${NM}overlay]:not([${zM}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function BM(e,t="hidden"){return $S(()=>{const{element:n,manager:r}=e;if(!n||!r)return;const i=function(e,t){const n=new Map;for(const r of t)if(r.element&&(e===r.element||e.contains(r.element))){const e=`${NM}${NP("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),o=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{const n=r[t];if(ID(e)&&ID(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),DD(e)&&DD(n)&&n.width>0&&n.height>0){const t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n}(n),{remove:s}=a;return function(e,t,n){for(const[r,i]of e){if(!r.element)continue;const e=`[${i}]`,o=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(i),!o)continue;const a=r.element;r.proxy=o,o.removeAttribute(i),MD.set(a,o),n.push(()=>{MD.delete(a),r.proxy=void 0})}}(i,a,o),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(WM,t)}(a,t),a.remove=()=>{o.forEach(e=>e()),s.call(a)},a})}function GM(e,t){return e===t||kD(e)===kD(t)}function UM(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&TP(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>rP(t))}function YM(e){return"TR"===e.tagName}var KM,XM,JM,ZM,QM,eR,tR,nR=250,rR="ease";var iR=class extends(XM=mE,KM=[eC],XM){constructor(e,t){super(e,t),dM(this,QM),dM(this,ZM,aM(JM,8,this)),aM(JM,11,this),this.state={initial:{},current:{}};const n=e.registry.plugins.get(_M),r=null==n?void 0:n.register(VM);if(r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(fM(this,QM,eR).bind(this,n)),this.registerEffect(fM(this,QM,tR))}};JM=tM(XM),ZM=new WeakMap,QM=new WeakSet,eR=function(e){const{overlay:t}=this;if(!t||!e)return;const n=CD(t);return n?e.addRoot(n):void 0},tR=function(){var e,t,n;const{state:r,manager:i,options:o}=this,{dragOperation:a}=i,{position:s,source:l,status:u}=a;if(u.idle)return r.current={},void(r.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=r,f=null!=(e=this.overlay)?e:c,h=gP(f),m=gP(c),g=!GM(c,f),v=new LP(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 OP(f),{transition:I,translate:D,boxSizing:P,paddingBlockStart:M,paddingBlockEnd:R,paddingInlineStart:k,paddingInlineEnd:L,borderInlineStartWidth:A,borderInlineEndWidth:O,borderBlockStartWidth:T,borderBlockEndWidth:q}=pP(c),_="clone"===d,N="content-box"===P,j=N?parseInt(k)+parseInt(L)+parseInt(A)+parseInt(O):0,F=N?parseInt(M)+parseInt(R)+parseInt(T)+parseInt(q):0,z="move"===d||this.overlay?null:BM(l,_?"clone":"hidden"),W=$S(()=>qP(i.dragOperation.activatorEvent));if("none"!==D){const e=yP(D);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=$S(()=>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:n,y:r}=$;p.coordinates.x+=(x*e-x)*n,p.coordinates.y+=(S*t-S)*r}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=C+K.x,J=w+K.y;f.setAttribute(zM,"true");const Z=$S(()=>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,ne=SD();if(E.set({width:x-j,height:S-F,top:J+ne.y,left:X+ne.x,translate:`${ee}px ${te}px 0`,transition:I?`${I}, translate 0ms linear`:"",scale:g?`${y} ${b}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},FM),z&&(c.insertAdjacentElement("afterend",z),null==o?void 0:o.rootElement)){("function"==typeof o.rootElement?o.rootElement(l):o.rootElement).appendChild(c)}let re,ie,oe;nP(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),rP(f),f.addEventListener("beforetoggle",UM));const ae=(se={placeholder:z,element:c,feedbackElement:f,frameTransform:h,transformOrigin:$,width:x,height:S,top:w,left:C,widthOffset:j,heightOffset:F,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>re,getSavedCellWidths:()=>oe,setSavedCellWidths:e=>{oe=e}},new ResizeObserver(()=>{var e,t;const n=new LP(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),r=null!=(e=se.transformOrigin)?e:{x:1,y:1},i=(se.width-n.width)*r.x+se.delta.x,o=(se.height-n.height)*r.y+se.delta.y,a=SD();if(se.styles.set({width:n.width-se.widthOffset,height:n.height-se.heightOffset,top:se.top+o+a.y,left:se.left+i+a.x},FM),null==(t=se.getElementMutationObserver())||t.takeRecords(),YM(se.element)&&YM(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[n,r]of e.entries()){const e=t[n];r.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new LP(se.feedbackElement)}));var se;const le=new LP(f);$S(()=>a.shape=le);const ue=cD(f),ce=e=>{this.manager.actions.stop({event:e})},de=ED(ue);W&&ue.addEventListener("resize",ce),"idle"===$S(()=>l.status)&&requestAnimationFrame(()=>l.status="dragging"),z&&(ae.observe(z),re=function(e,t,n){const r=new MutationObserver(r=>{let i=!1;for(const n of r){if(n.target!==e){i=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||$M.includes(r))continue;const o=e.getAttribute(r);if("style"===r){if(AP(e)&&AP(t)){const n=e.style;for(const e of Array.from(t.style))""===n.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(n)){if(HM.includes(e)||e.startsWith(FM))continue;const r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else null!==o?t.setAttribute(r,o):t.removeAttribute(r)}i&&n&&(t.innerHTML=e.innerHTML)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}(c,z,_),ie=function(e,t,n){const r=new MutationObserver(r=>{for(const i of r)if(0!==i.addedNodes.length)for(const r of Array.from(i.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void rP(n);if(r.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void rP(n)}});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}(c,z,f));const pe=null==(n=i.dragOperation.source)?void 0:n.id,fe=()=>{var e;if(!W||null==pe)return;const t=i.registry.draggables.get(pe),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;pD(n)&&n.focus()},he=()=>{var e;if(null==re||re.disconnect(),null==ie||ie.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),nP(f)&&(f.removeEventListener("beforetoggle",UM),f.removeAttribute("popover")),f.removeAttribute(zM),E.reset(),oe&&YM(c)){const t=Array.from(c.cells);for(const[n,r]of t.entries())r.style.width=null!=(e=oe[n])?e:""}l.status="idle";const t=null!=r.current.translate;z&&(t||z.parentElement!==f.parentElement)&&f.isConnected&&z.replaceWith(f),null==z||z.remove()},me=null==o?void 0:o.dropAnimation,ge=this,ve=rC(()=>{var e;const{transform:t,status:n}=a;if((t.x||t.y||r.current.translate)&&n.dragging){const n=null!=(e=p.translate)?e:{x:0,y:0},i={x:t.x/h.scaleX+n.x,y:t.y/h.scaleY+n.y},o=r.current.translate,s=$S(()=>a.modifiers),l=$S(()=>{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:`${i.x}px ${i.y}px 0`},FM),null==re||re.takeRecords(),l&&l!==le&&o&&!s.length){const e=PC.delta(i,o);a.shape=MC.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new LP(f);r.current.translate=i}},function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=r.current.translate;const n=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();i.renderer.rendering.then(()=>{!function(e){var t,n,r,i;const{animation:o}=e;if("function"==typeof o){const t=o({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=nR,easing:s=rR}=null!=o?o:{};rP(e.feedbackElement);const[,l]=null!=(t=aD(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(n=e.placeholder)?n:e.element,c={frameTransform:GM(e.feedbackElement,u)?null:void 0},d=new LP(e.feedbackElement,c),p=null!=(r=yP(pP(e.feedbackElement).translate))?r:e.translate,f=new LP(u,c),h=MC.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},FM),e.feedbackElement.setAttribute(jM,""),null==(i=e.getElementMutationObserver())||i.takeRecords(),IP({element:e.feedbackElement,keyframes:ZP(JP(JP({},v),y),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:ED(cD(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(jM),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({element:c,feedbackElement:f,placeholder:z,translate:t,moved:n,transition:I,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>re,cleanup:he,restoreFocus:fe})})}});return()=>{he(),ve()}},sM(JM,4,"overlay",KM,iR,ZM),oM(JM,iR),iR.configure=fE(iR);var oR,aR,sR,lR,uR,cR,dR,pR=iR,fR=!0;sR=[eC],lR=xP.Forward,oR=[eC],aR=xP.Reverse;var hR=class{constructor(){dM(this,cR,aM(uR,8,this,fR)),aM(uR,11,this),dM(this,dR,aM(uR,12,this,fR)),aM(uR,15,this)}isLocked(e){return e!==xP.Idle&&(null==e?this[xP.Forward]===fR&&this[xP.Reverse]===fR:this[e]===fR)}unlock(e){e!==xP.Idle&&(this[e]=false)}};uR=tM(null),cR=new WeakMap,dR=new WeakMap,sM(uR,4,lR,sR,hR,cR),sM(uR,4,aR,oR,hR,dR),oM(uR,hR);var mR,gR,vR,yR,bR,xR,SR=[xP.Forward,xP.Reverse],wR=class{constructor(){this.x=new hR,this.y=new hR}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},CR=class extends mE{constructor(e){super(e);const t=ZS(new wR);let n=null;this.signal=t,lw(()=>{const{status:r}=e.dragOperation;if(!r.initialized)return n=null,void(t.value=new wR);const{delta:i}=e.dragOperation.position;if(n){const e={x:ER(i.x,n.x),y:ER(i.y,n.y)},r=t.peek();zS(()=>{for(const t of NC)for(const n of SR)e[t]===n&&r[t].unlock(n);t.value=r})}n=i})}get current(){return this.signal.peek()}};function ER(e,t){return Math.sign(e-t)}var IR=class extends(gR=vE,mR=[eC],gR){constructor(e){super(e),dM(this,yR,aM(vR,8,this,!1)),aM(vR,11,this),dM(this,bR),dM(this,xR,()=>{if(!cM(this,bR))return;const{element:e,by:t}=cM(this,bR);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=e=>{var t;if(this.disabled)return!1;const n=this.getScrollableElements();if(!n)return pM(this,bR,void 0),!1;const{position:r}=this.manager.dragOperation,i=null==r?void 0:r.current;if(i){const{by:r}=null!=e?e:{},o=r?{x:DR(r.x),y:DR(r.y)}:void 0,a=o?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of n){const n=aP(e,r);if(n.x||n.y){const{speed:n,direction:s}=CP(e,i,o);if(a)for(const e of NC)a[e].isLocked(s[e])&&(n[e]=0,s[e]=0);if(s.x||s.y){const{x:i,y:o}=null!=r?r:s,a=i*n.x,l=o*n.y;if(a||l){const n=null==(t=cM(this,bR))?void 0:t.by;if(this.autoScrolling&&n){if(n.x&&!a||n.y&&!l)continue}return pM(this,bR,{element:e,by:{x:a,y:l}}),lP.schedule(cM(this,xR)),!0}}}}}return pM(this,bR,void 0),!1};let t=null,n=null;const r=Zw(()=>{const{position:n,source:r}=e.dragOperation;if(!n)return null;const i=PD(CD(null==r?void 0:r.element),n.current);return i&&(t=i),null!=i?i:t}),i=Zw(()=>{const t=r.value,{documentElement:i}=hD(t);if(!t||t===i){const{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){const e=mP(r,{excludeElement:!1});return n=e,e}}if(t){const e=mP(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},Qw);this.getScrollableElements=()=>i.value,this.scrollIntentTracker=new CR(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&qP(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function DR(e){return e>0?xP.Forward:e<0?xP.Reverse:xP.Idle}vR=tM(gR),yR=new WeakMap,bR=new WeakMap,xR=new WeakMap,sM(vR,4,"autoScrolling",mR,IR,yR),oM(vR,IR);var PR,MR=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()}),RR=class extends mE{constructor(e,t){super(e);const n=e.registry.plugins.get(IR);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=lw(()=>{if(this.disabled)return;const{position:t,status:r}=e.dragOperation;if(r.dragging){if(n.scroll()){n.autoScrolling=!0;const e=setInterval(()=>MR.schedule(n.scroll),10);return()=>{clearInterval(e)}}n.autoScrolling=!1}})}},kR={capture:!0,passive:!0},LR=class extends vE{constructor(e){super(e),dM(this,PR),this.handleScroll=()=>{null==cM(this,PR)&&pM(this,PR,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),pM(this,PR,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=lw(()=>{var e,n,r;if(t.status.dragging){const i=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return i.addEventListener("scroll",this.handleScroll,kR),()=>{i.removeEventListener("scroll",this.handleScroll,kR)}}})}};PR=new WeakMap;function AR(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var OR,TR=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 n;const r=null!=(n=t.handle)?n:t.element;return e.target!==r}}),qR=class extends II{constructor(e,t){super(e),this.manager=e,this.options=t,dM(this,OR,[]),this.listeners=new RD,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented)return;if(!TP(e.target))return;if(t.disabled)return;const{keyboardCodes:r=TR.keyboardCodes,preventActivation:i=TR.preventActivation}=null!=n?n:{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==i?void 0:i(e,t))||this.handleStart(e,t,n))}}bind(e,t=this.options){const n=lw(()=>{var n;const r=null!=(n=e.handle)?n:e.element,i=n=>{qP(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}});return n}handleStart(e,t,n){const{element:r}=t;if(!r)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),EP(r);const{center:i}=new LP(r);if(this.manager.actions.start({event:e,coordinates:{x:i.x,y:i.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const o=hD(r),a=[this.listeners.bind(o,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];cM(this,OR).push(...a)}handleKeyDown(e,t,n){const{keyboardCodes:r=TR.keyboardCodes}=null!=n?n:{};if(jR(e,[...r.end,...r.cancel])){e.preventDefault();const t=jR(e,r.cancel);return void this.handleEnd(e,t)}jR(e,r.up)?this.handleMove("up",e):jR(e,r.down)&&this.handleMove("down",e),jR(e,r.left)?this.handleMove("left",e):jR(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;const{shape:i}=this.manager.dragOperation,o=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(r=null==(n=this.options)?void 0:n.offset)?r:TR.offset;if("number"==typeof s&&(s={x:s,y:s}),i){switch(e){case"up":a={x:0,y:-s.y*o};break;case"down":a={x:0,y:s.y*o};break;case"left":a={x:-s.x*o,y:0};break;case"right":a={x:s.x*o,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(RR);!1===(null==e?void 0:e.disabled)&&(e.disable(),cM(this,OR).push(()=>{e.enable()}))}cleanup(){cM(this,OR).forEach(e=>e()),pM(this,OR,[])}destroy(){this.cleanup(),this.listeners.clear()}};OR=new WeakMap,qR.configure=fE(qR),qR.defaults=TR;var _R,NR=qR;function jR(e,t){return t.includes(e.code)}var FR,zR;_R=new WeakMap;FR=new WeakMap,zR=new WeakMap;var WR=class{};WR.Delay=class extends PI{constructor(){super(...arguments),dM(this,FR),dM(this,zR)}onEvent(e){switch(e.type){case"pointerdown":pM(this,zR,vD(e)),pM(this,FR,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!cM(this,zR))return;const{x:t,y:n}=vD(e);LC({x:t-cM(this,zR).x,y:n-cM(this,zR).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){cM(this,FR)&&(clearTimeout(cM(this,FR)),pM(this,zR,void 0),pM(this,FR,void 0))}},WR.Distance=class extends PI{constructor(){super(...arguments),dM(this,_R)}onEvent(e){switch(e.type){case"pointerdown":pM(this,_R,vD(e));break;case"pointermove":if(!cM(this,_R))return;const{x:t,y:n}=vD(e),r={x:t-cM(this,_R).x,y:n-cM(this,_R).y},{tolerance:i}=this.options;if(i&&LC(r,i))return void this.abort();LC(r,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){pM(this,_R,void 0)}};var $R,HR=Object.freeze({activationConstraints(e,t){var n;const{pointerType:r,target:i}=e;if("mouse"!==r||!TP(i)||t.handle!==i&&!(null==(n=t.handle)?void 0:n.contains(i)))return"touch"===r?[new WR.Delay({value:250,tolerance:5})]:function(e){if(!TP(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(n=e).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n}(i)&&!e.defaultPrevented?[new WR.Delay({value:200,tolerance:0})]:[new WR.Delay({value:200,tolerance:10}),new WR.Distance({value:5})]},preventActivation(e,t){var n;const{target:r}=e;return r!==t.element&&(r!==t.handle&&(!!TP(r)&&(!(null==(n=t.handle)?void 0:n.contains(r))&&Boolean(r.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 ')))))}}),VR=class extends II{constructor(e,t){super(e),this.manager=e,this.options=t,dM(this,$R,new Set),this.listeners=new RD,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,n=this.options){const{activationConstraints:r=HR.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){const n=lw(()=>{var n;const r=new AbortController,{signal:i}=r,o=n=>{(function(e){if(!e)return!1;const{PointerEvent:t}=cD(e.target);return e instanceof t})(n)&&this.handlePointerDown(n,e,t)};let a=[null!=(n=e.handle)?n:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(KR(e.ownerDocument.defaultView),e.addEventListener("pointerdown",o,{signal:i}));return()=>r.abort()});return n}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||0!==e.button||!TP(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:r=HR.preventActivation}=null!=n?n:{};if(null==r?void 0:r(e,t))return;const{target:i}=e,o=pD(i)&&i.draggable&&"true"===i.getAttribute("draggable"),a=gP(t.element),{x:s,y:l}=vD(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,n);e.sensor=this;const c=new DI(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=bD(),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:o?this.handleCancel:GR,options:{capture:!0}}]);cM(this,$R).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n,r;if(!1!==(null==(n=this.controller)?void 0:n.activated)){if(this.manager.dragOperation.status.dragging){const n=vD(e),r=gP(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,lP.schedule(this.handleMove)}}else null==(r=this.controller)||r.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:r,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const i=hD(t.target).body;i.setPointerCapture(t.pointerId);const o=TP(t.target)?[t.target,i]:i,a=this.listeners.bind(o,[{type:"touchmove",listener:GR,options:{passive:!1}},{type:"click",listener:GR},{type:"contextmenu",listener:GR},{type:"keydown",listener:this.handleKeyDown}]);cM(this,$R).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},cM(this,$R).forEach(e=>e()),cM(this,$R).clear()}destroy(){this.cleanup(),this.listeners.clear()}};$R=new WeakMap,VR.configure=fE(VR),VR.defaults=HR;var BR=VR;function GR(e){e.preventDefault()}function UR(){}var YR=new WeakSet;function KR(e){e&&!YR.has(e)&&(e.addEventListener("touchmove",UR,{capture:!1,passive:!1}),YR.add(e))}var XR,JR,ZR,QR,ek,tk,nk,rk,ik,ok,ak,sk,lk,uk,ck,dk,pk,fk,hk={modifiers:[],plugins:[class extends mE{constructor(e,t){super(e);const{id:n,idPrefix:{description:r=gM,announcement:i=vM}={},announcements:o=bM,screenReaderInstructions:a=yM,debounce:s=500}=null!=t?t:{},l=n?`${r}-${n}`:NP(r),u=n?`${i}-${n}`:NP(i);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>lP.schedule(h),g=function(e,t){let n;const r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(m,s),v=Object.entries(o).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{const i=p;if(!i)return;const o=null==t?void 0:t(n,r);o&&i.nodeValue!==o&&(f=o,SM.includes(e)?g():(m(),g.cancel()))})),y=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(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 n=null!=(e=t.handle)?e:t.element;if(n){c&&d||b.add(y),xM(n)&&!xD()||n.hasAttribute("tabindex")||b.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||b.add(()=>n.setAttribute("role",hM)),n.hasAttribute("aria-roledescription")||b.add(()=>n.setAttribute("aria-roledescription",mM)),n.hasAttribute("aria-describedby")||b.add(()=>n.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const r=String(t.isDragging);n.getAttribute(e)!==r&&b.add(()=>n.setAttribute(e,r))}const e=String(t.disabled);n.getAttribute("aria-disabled")!==e&&b.add(()=>n.setAttribute("aria-disabled",e))}}b.size>0&&lP.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach(e=>e())}}},RR,class extends mE{constructor(e,t){super(e,t),this.manager=e;const n=Zw(()=>{var e;return hD(null==(e=this.manager.dragOperation.source)?void 0:e.element)});this.destroy=lw(()=>{var e;const{dragOperation:t}=this.manager,{cursor:r="grabbing",nonce:i}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=n.value,t=e.createElement("style");return i&&t.setAttribute("nonce",i),t.textContent=`* { cursor: ${r} !important; }`,e.head.appendChild(t),()=>t.remove()}})}},pR,class extends mE{constructor(e,t){super(e,t),this.manager=e,this.destroy=lw(()=>{var e;const{dragOperation:t}=this.manager,{nonce:n}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return n&&e.setAttribute("nonce",n),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),AR(),document.addEventListener("selectionchange",AR,{capture:!0}),()=>{document.removeEventListener("selectionchange",AR,{capture:!0}),e.remove()}}})}}],sensors:[BR,NR]},mk=class extends ZI{constructor(e={}){const t=JI(e.plugins,hk.plugins),n=JI(e.sensors,hk.sensors),r=JI(e.modifiers,hk.modifiers);super(ZP(JP({},e),{plugins:[LR,IR,_M,...t],sensors:n,modifiers:r}))}},gk=class extends(QR=wI,ZR=[eC],JR=[eC],XR=[eC],QR){constructor(e,t){var n=e,{element:r,effects:i=()=>[],handle:o,feedback:a="default"}=n,s=eM(n,["element","effects","handle","feedback"]);super(JP({effects:()=>[...i(),()=>{var e,t;const{manager:n}=this;if(!n)return;const r=(null!=(t=null==(e=this.sensors)?void 0:e.map(hE))?t:[...n.sensors]).map(e=>{const t=e instanceof II?e:n.registry.register(e.plugin),r=e instanceof II?void 0:e.options;return t.bind(this,r)});return function(){r.forEach(e=>e())}}]},s),t),dM(this,tk,aM(ek,8,this)),aM(ek,11,this),dM(this,nk,aM(ek,12,this)),aM(ek,15,this),dM(this,rk,aM(ek,16,this)),aM(ek,19,this),this.element=r,this.handle=o,this.feedback=a}};ek=tM(QR),tk=new WeakMap,nk=new WeakMap,rk=new WeakMap,sM(ek,4,"handle",ZR,gk,tk),sM(ek,4,"element",JR,gk,nk),sM(ek,4,"feedback",XR,gk,rk),oM(ek,gk);var vk=class extends(ak=CI,ok=[eC],ik=[eC],ak){constructor(e,t){var n=e,{element:r,effects:i=()=>[]}=n,o=eM(n,["element","effects"]);const{collisionDetector:a=jP}=o,s=e=>{const{manager:t,element:n}=this;if(!n||null===e)return void(this.shape=void 0);if(!t)return;const r=new LP(n),i=$S(()=>this.shape);return r&&(null==i?void 0:i.equals(r))?i:(this.shape=r,r)},l=ZS(!1);super(ZP(JP({},o),{collisionDetector:a,effects:()=>[...i(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:n}=t,{source:r}=n;l.value=Boolean(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{const{element:e}=this;if(l.value&&e){const t=new tP(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),dM(this,pk),dM(this,lk,aM(sk,8,this)),aM(sk,11,this),dM(this,fk,aM(sk,12,this)),aM(sk,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){pM(this,pk,e,dk)}get element(){var e;return null!=(e=this.proxy)?e:cM(this,pk,ck)}};function yk(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}sk=tM(ak),lk=new WeakMap,pk=new WeakSet,fk=new WeakMap,uk=sM(sk,20,"#element",ok,pk,lk),ck=uk.get,dk=uk.set,sM(sk,4,"proxy",ik,vk,fk),oM(sk,vk);var bk="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?v:f;function xk(){const e=g(0)[1];return m(()=>{e(e=>e+1)},[e])}function Sk(e,t=[],n=!1){const r=u(e);return r.current=e,function(e,t=!1){const n=u(e.peek()),r=u(!1),i=xk();return bk(()=>lw(()=>{const o=n.current,a=e.value;if(o!==a){if(n.current=a,!r.current)return;t?D(i):i()}}),[e,t,i]),{get value(){return r.current=!0,e.peek()}}}(y(()=>Zw(()=>r.current()),t),n)}function wk(e,t){const n=u(new Map),r=xk();return bk(()=>{if(e)return lw(()=>{var i;let o=!1,a=!1;for(const r of n.current){const[s]=r,l=$S(()=>r[1]),u=e[s];l!==u&&(o=!0,n.current.set(s,u),a=null!=(i=null==t?void 0:t(s,l,u))&&i)}o&&(a?D(r):r())});n.current.clear()},[e]),y(()=>e?new Proxy(e,{get(e,t){const r=e[t];return n.current.set(t,r),r}}):e,[e])}function Ck(e,t){e()}function Ek(e){const t=u(e);return bk(()=>{t.current=e},[e]),t}function Ik(e,t,n=f,r=Object.is){const i=u(e);n(()=>{const n=i.current;r(e,n)||(i.current=e,t(e,n))},[t,e])}function Dk(e,t){const n=u(yk(e));bk(()=>{const r=yk(e);r!==n.current&&(n.current=r,t(r))})}var Pk=Object.defineProperty,Mk=Object.defineProperties,Rk=Object.getOwnPropertyDescriptors,kk=Object.getOwnPropertySymbols,Lk=Object.prototype.hasOwnProperty,Ak=Object.prototype.propertyIsEnumerable,Ok=(e,t,n)=>t in e?Pk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tk=new mk,qk=d(Tk),_k=x(r(({children:e},t)=>{const[n,r]=g(0),i=u(null),o=u(null),a=y(()=>({renderer:{get rendering(){var e;return null!=(e=i.current)?e:Promise.resolve()}},trackRendering(e){i.current||(i.current=new Promise(e=>{o.current=e})),S(()=>{e(),r(e=>e+1)})}}),[]);return bk(()=>{var e;null==(e=o.current)||e.call(o),i.current=null},[e,n]),w(t,()=>a),null})),Nk=[void 0,Qw];function jk(e){var t=e,{children:n,onCollision:r,onBeforeDragStart:i,onDragStart:o,onDragMove:a,onDragOver:s,onDragEnd:l}=t,c=((e,t)=>{var n={};for(var r in e)Lk.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&kk)for(var r of kk(e))t.indexOf(r)<0&&Ak.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const d=u(null),{plugins:p,modifiers:h,sensors:m}=c,g=JI(p,hk.plugins),v=JI(m,hk.sensors),y=JI(h,hk.modifiers),x=Ek(i),S=Ek(o),w=Ek(s),C=Ek(a),E=Ek(l),I=Ek(r),D=function(e){const t=u(null);t.current||(t.current=e());return b(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=c.manager)?e:new mk(c)});return f(()=>{if(!d.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=d.current,{monitor:n}=D;D.renderer=e;const r=[n.addEventListener("beforedragstart",e=>{const n=x.current;n&&t(()=>n(e,D))}),n.addEventListener("dragstart",e=>{var t;return null==(t=S.current)?void 0:t.call(S,e,D)}),n.addEventListener("dragover",e=>{const n=w.current;n&&t(()=>n(e,D))}),n.addEventListener("dragmove",e=>{const n=C.current;n&&t(()=>n(e,D))}),n.addEventListener("dragend",e=>{const n=E.current;n&&t(()=>n(e,D))}),n.addEventListener("collision",e=>{var t;return null==(t=I.current)?void 0:t.call(I,e,D)})];return()=>r.forEach(e=>e())},[D]),Ik(g,()=>D&&(D.plugins=g),...Nk),Ik(v,()=>D&&(D.sensors=v),...Nk),Ik(y,()=>D&&(D.modifiers=y),...Nk),Yn.jsxs(qk.Provider,{value:D,children:[Yn.jsx(_k,{ref:d,children:n}),n]})}function Fk(){return i(qk)}function zk(e){var t;const n=null!=(t=Fk())?t:void 0,[r]=g(()=>e(n));return r.manager!==n&&(r.manager=n),bk(r.register,[n,r]),r}function Wk({children:e,className:t,dropAnimation:n,style:r,tag:i,disabled:o}){var a;const s=u(null),l=Fk(),d=null!=(a=Sk(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,p="function"==typeof o?o(d):o;f(()=>{if(!s.current||!l||p)return;const e=l.plugins.find(e=>e instanceof pR);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,p]),f(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof pR);return e?(e.dropAnimation=n,()=>{e.dropAnimation=void 0}):void 0},[l,n]);const h=y(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?$k:e[t]});return new Proxy(l,{get:(t,n)=>"registry"===n?e:t[n]})},[l]);return Yn.jsx(qk.Provider,{value:h,children:c(i||"div",{ref:s,className:t,style:r,"data-dnd-overlay":!0},function(){if(!d||p)return null;if("function"==typeof e)return Yn.jsx(Hk,{source:d,children:e});return e}())})}function $k(){return()=>{}}function Hk({children:e,source:t}){return e(wk(t))}var Vk,Bk,Gk,Uk,Yk,Kk=Object.create,Xk=Object.defineProperty,Jk=Object.getOwnPropertyDescriptor,Zk=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Qk=e=>{throw TypeError(e)},eL=["class","method","getter","setter","accessor","field","value","get","set"],tL=e=>void 0!==e&&"function"!=typeof e?Qk("Function expected"):e,nL=(e,t,n,r,i)=>({kind:eL[e],name:t,metadata:r,addInitializer:e=>n._?Qk("Already initialized"):i.push(tL(e||null))}),rL=(e,t,n,r,i,o)=>{for(var a,s,l,u,c=7&t,d=eL[c+5],p=e[2]||(e[2]=[]),f=(i=i.prototype,Jk(i,n)),h=r.length-1;h>=0;h--)(l=nL(c,n,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>n in e},u.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,tL(a)&&(f[d]=a);return f&&Xk(i,n,f),i},iL=(e,t,n)=>t.has(e)||Qk("Cannot "+n),oL=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.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:n}){return new e(t,n)}},aL=class extends(Gk=oC,Bk=[tC],Vk=[tC],Gk){constructor(e){var t,n,r;super(oL.from(e),(e,t)=>oL.equals(e,t)),((e,t,n)=>{for(var r=0,i=e[t>>1],o=i&&i.length;r<o;r++)i[r].call(n)})(Yk,5,this),t=this,r=0,(n=Uk).has(t)?Qk("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return oL.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=oL.from(e),r={x:n.x-t.x,y:n.y-t.y},i=Date.now(),o=i-(iL(a=this,s=Uk,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/o*100);zS(()=>{((e,t,n)=>{iL(e,t,"write to private field"),t.set(e,n)})(this,Uk,i),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(oL.from(e)),this.velocity={x:0,y:0}}};Yk=(e=>{var t;return[,,,Kk(null!=(t=null==e?void 0:e[Zk("metadata")])?t:null)]})(Gk),Uk=new WeakMap,rL(Yk,2,"delta",Bk,aL),rL(Yk,2,"direction",Vk,aL),((e,t)=>{((e,t,n)=>{t in e?Xk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(t,Zk("metadata"),e[3])})(Yk,aL);var sL=(e=>(e.Horizontal="x",e.Vertical="y",e))(sL||{});Object.values(sL);var lL=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/oL.distance(t.shape.center,n),type:jE.PointerIntersection,priority:NE.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:i}=e,o=oL.distance(t.shape.center,i.current),a=r/(n.current.area+t.shape.area-r)/o;return{id:t.id,value:a,type:jE.ShapeIntersection,priority:NE.Normal}}return null})(e)};function uL(e){const{collisionDetector:t,data:n,disabled:r,element:i,id:o,accept:a,type:s}=e,l=zk(t=>new vk(((e,t)=>Mk(e,Rk(t)))(((e,t)=>{for(var n in t||(t={}))Lk.call(t,n)&&Ok(e,n,t[n]);if(kk)for(var n of kk(t))Ak.call(t,n)&&Ok(e,n,t[n]);return e})({},e),{register:!1,element:yk(i)}),t)),u=wk(l);return Ik(o,()=>l.id=o),Dk(i,e=>l.element=e),Ik(a,()=>l.accept=a,void 0,Qw),Ik(t,()=>l.collisionDetector=null!=t?t:lL),Ik(n,()=>n&&(l.data=n)),Ik(r,()=>l.disabled=!0===r),Ik(s,()=>l.type=s),{droppable:u,get isDropTarget(){return u.isDropTarget},ref:m(e=>{var t,n;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}const cL=e=>Array.from({length:e},(e,t)=>t),dL=({id:e,sectionIndex:t,itemIndex:n})=>Yn.jsx("span",{children:`${e}-${t}-${n}`}),pL=o.memo(()=>{const e=nx(RS)??dL,{startSectionIndex:t,startIndex:n,id:r}=nx(OS)??{};return"number"!=typeof t||"number"!=typeof n||void 0===r?null:Yn.jsx(Wk,{dropAnimation:null,children:Yn.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:Yn.jsx(e,{id:r,sectionIndex:t,itemIndex:n})})})}),fL=({sectionIndex:e,itemIndex:t,isDragging:n})=>{const r=nx(OS),i=r?.toSectionIndex===e&&r.toIndex===t;return Yn.jsx("div",{"data-key":"drop-target-indicator","data-testid":"drop-target-indicator",style:{visibility:i&&!n?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},hL=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,mL=o.memo(({sectionIndex:e})=>{const t=nx(wS)[e],n=nx(CS),r=nx(ES),i=null!==nx(OS),o=r(e),a=n({sectionIndex:e}),{ref:s,isDropTarget:l}=uL({id:a,type:"section",accept:"item",collisionPriority:NE.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:Yn.jsxs(xl,{ref:s,sx:{margin:"4px",outline:hL(l,i),borderRadius:"4px",boxSizing:"border-box"},children:[Yn.jsx(xl,{sx:{position:"relative",top:"4px"},children:Yn.jsx(fL,{sectionIndex:e,itemIndex:0,isDragging:!1})}),Yn.jsxs(xl,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[Yn.jsx(_s,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:o.title}),Yn.jsx(_s,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:o.message})]})]})}),gL=o.memo(({id:e,sectionIndex:t})=>{const n=nx(MS);return void 0===n?null:Yn.jsx(n,{id:e,sectionIndex:t})});var vL=Object.defineProperty,yL=Object.defineProperties,bL=Object.getOwnPropertyDescriptors,xL=Object.getOwnPropertySymbols,SL=Object.prototype.hasOwnProperty,wL=Object.prototype.propertyIsEnumerable,CL=(e,t,n)=>t in e?vL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,EL=(e,t)=>{for(var n in t||(t={}))SL.call(t,n)&&CL(e,n,t[n]);if(xL)for(var n of xL(t))wL.call(t,n)&&CL(e,n,t[n]);return e},IL=(e,t)=>yL(e,bL(t)),DL=class extends UI{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return IL(EL({},e),{[t]:n})}};DL.configure=fE(DL);var PL=DL,ML=PL.configure({axis:"x",value:0});PL.configure({axis:"y",value:0});var RL=class extends UI{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,i="number"==typeof n?n:n.y;return IL(EL({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/i)*i})}};RL.configure=fE(RL);var kL=Object.create,LL=Object.defineProperty,AL=Object.defineProperties,OL=Object.getOwnPropertyDescriptor,TL=Object.getOwnPropertyDescriptors,qL=Object.getOwnPropertySymbols,_L=Object.prototype.hasOwnProperty,NL=Object.prototype.propertyIsEnumerable,jL=e=>{throw TypeError(e)},FL=(e,t,n)=>t in e?LL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zL=(e,t)=>{for(var n in t||(t={}))_L.call(t,n)&&FL(e,n,t[n]);if(qL)for(var n of qL(t))NL.call(t,n)&&FL(e,n,t[n]);return e},WL=(e,t)=>AL(e,TL(t)),$L=["class","method","getter","setter","accessor","field","value","get","set"],HL=e=>void 0!==e&&"function"!=typeof e?jL("Function expected"):e,VL=(e,t,n,r,i)=>({kind:$L[e],name:t,metadata:r,addInitializer:e=>n._?jL("Already initialized"):i.push(HL(e||null))}),BL=(e,t,n,r)=>{for(var i=0,o=e[t>>1],a=o&&o.length;i<a;i++)1&t?o[i].call(n):r=o[i].call(n,r);return r},GL=(e,t,n,r,i,o)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=$L[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(i=i.prototype,OL({get[n](){return YL(this,o)},set[n](e){return XL(this,o,e)}},n)),v=r.length-1;v>=0;v--)(u=VL(d,n,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>n in e},c.get=e=>e[n],c.set=(e,t)=>e[n]=t,s=(0,r[v])({get:g.get,set:g.set},u),l._=1,void 0===s?HL(s)&&(g[f]=s):"object"!=typeof s||null===s?jL("Object expected"):(HL(a=s.get)&&(g.get=a),HL(a=s.set)&&(g.set=a),HL(a=s.init)&&h.unshift(a));return g&&LL(i,n,g),i},UL=(e,t,n)=>t.has(e)||jL("Cannot "+n),YL=(e,t,n)=>(UL(e,t,"read from private field"),t.get(e)),KL=(e,t,n)=>t.has(e)?jL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),XL=(e,t,n,r)=>(UL(e,t,"write to private field"),t.set(e,n),n);function JL(e){return e instanceof MA||e instanceof PA}var ZL=class extends mE{constructor(e){super(e);const t=lw(()=>{const{dragOperation:t}=e;if(qP(t.activatorEvent)&&JL(t.source)&&t.status.initialized){const t=e.registry.plugins.get(IR);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:n}=t;if(!qP(e.nativeEvent))return;if(!JL(n.source))return;if(!n.shape)return;const{actions:r,collisionObserver:i,registry:o}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:n}=e;if(t>0)return"right";if(t<0)return"left";if(n>0)return"down";if(n<0)return"up"}(a),{source:l,target:u}=n,{center:c}=n.shape.current,d=[],p=[];zS(()=>{for(const e of o.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&JL(e)||!e.element)continue;let n=e.shape;const r=new LP(e.element,{getBoundingClientRect:e=>gD(e,void 0,.2)});r.height&&r.width&&(("down"==s&&c.y+10<r.center.y||"up"==s&&c.y-10>r.center.y||"left"==s&&c.x-10>r.center.x||"right"==s&&c.x+10<r.center.x)&&(d.push(e),e.shape=r,p.push(()=>e.shape=n)))}}),e.preventDefault(),i.disable();const f=i.computeCollisions(d,FP);zS(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:v}=l.sortable;r.setDropTarget(m).then(()=>{const{source:e,target:t,shape:o}=n;if(!e||!JL(e)||!o)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;EP(c);const d=new LP(c);if(!d)return;const p=MC.delta(d,MC.from(o.current.boundingRectangle),e.alignment);r.move({by:p}),u?r.setDropTarget(e.id).then(()=>i.enable()):i.enable()})})});this.destroy=()=>{n(),t()}}};var QL=Object.defineProperty,eA=Object.defineProperties,tA=Object.getOwnPropertyDescriptors,nA=Object.getOwnPropertySymbols,rA=Object.prototype.hasOwnProperty,iA=Object.prototype.propertyIsEnumerable,oA=(e,t,n)=>t in e?QL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,aA=(e,t)=>{for(var n in t||(t={}))rA.call(t,n)&&oA(e,n,t[n]);if(nA)for(var n of nA(t))iA.call(t,n)&&oA(e,n,t[n]);return e},sA=(e,t)=>eA(e,tA(t));function lA(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function uA(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function cA(e,t){return function(e,t,n){var r,i,o;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 r=e.findIndex(e=>u(e,a.id)),i=e.findIndex(e=>u(e,s.id));if(-1===r||-1===i){if(uA(a)){const r=a.initialIndex,i=a.index;return r===i||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,i)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==r)return n(e,r,t)}return n(e,r,i)}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&&uA(a)){const r=a.initialGroup,i=a.initialIndex,o=a.group,s=a.index;if(null==r||null==o||!(r in e)||!(o in e))return"preventDefault"in t&&t.preventDefault(),e;if(r===o&&i===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===o)return sA(aA({},e),{[r]:n(e[r],i,s)});const l=e[r][i];return sA(aA({},e),{[r]:[...e[r].slice(0,i),...e[r].slice(i+1)],[o]:[...e[o].slice(0,s),l,...e[o].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(i=null==(r=m.shape)?void 0:r.current.center)?i: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&&uA(a)){const t=null!=a.group&&a.group!==d,r=a.index!==f;if(t||r){const t=null!=(o=a.group)?o:d;if(t in e){if(d===t)return sA(aA({},e),{[d]:n(e[d],f,a.index)});const r=e[d][f];return sA(aA({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),r,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return sA(aA({},e),{[d]:n(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 sA(aA({},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,lA)}var dA="__default__";function pA(e,t,n,r){const i=r<t?"afterend":"beforebegin";n.insertAdjacentElement(i,e)}function fA(e,t){return e.index-t.index}function hA(e){return Array.from(e).sort(fA)}var mA,gA,vA,yA,bA,xA,SA,wA,CA=[ZL,class extends mE{constructor(e){super(e);const t=()=>{const t=new Map;for(const n of e.registry.droppables)if(n instanceof MA){const{sortable:e}=n,{group:r}=e;let i=t.get(r);i||(i=new Set,t.set(r,i)),i.add(e)}for(const[e,n]of t)t.set(e,new Set(hA(n)));return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;const{dragOperation:r}=n,{source:i,target:o}=r;if(!JL(i)||!JL(o))return;if(i.sortable===o.sortable)return;const a=t(),s=i.sortable.group===o.sortable.group,l=a.get(i.sortable.group),u=s?l:a.get(o.sortable.group);l&&u&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var r,c,d;const p=t();for(const[e,t]of a.entries()){const n=Array.from(t).entries();for(const[t,i]of n)if(i.index!==t||i.group!==e||!(null==(r=p.get(e))?void 0:r.has(i)))return}const f=i.sortable.element,h=o.sortable.element;if(!h||!f)return;if(!s&&o.id===i.sortable.group)return;const m=hA(l),g=s?m:hA(u),v=null!=(c=i.sortable.group)?c:dA,y=null!=(d=o.sortable.group)?d:dA,b={[v]:m,[y]:g},x=cA(b,e);if(b===x)return;const S=x[y].indexOf(i.sortable),w=x[y].indexOf(o.sortable);n.collisionObserver.disable(),pA(f,S,h,w),zS(()=>{for(const[e,t]of x[v].entries())t.index=e;if(!s)for(const[e,t]of x[y].entries())t.group=o.sortable.group,t.index=e}),n.actions.setDropTarget(i.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;const{dragOperation:r}=n,{source:i}=r;JL(i)&&(i.sortable.initialIndex===i.sortable.index&&i.sortable.initialGroup===i.sortable.group||queueMicrotask(()=>{const e=t(),r=e.get(i.sortable.initialGroup);r&&n.renderer.rendering.then(()=>{for(const[t,n]of e.entries()){const e=Array.from(n).entries();for(const[n,r]of e)if(r.index!==n||r.group!==t)return}const t=hA(r),n=i.sortable.element,o=t[i.sortable.initialIndex],a=null==o?void 0:o.element;o&&a&&n&&(pA(n,o.index,a,i.index),zS(()=>{for(const[t,n]of e.entries()){const e=Array.from(n).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of n)e()}}}],EA={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},IA=new class{constructor(){Kw(this,iC,new WeakMap)}get(e,t){var n;return e?null==(n=Yw(this,iC).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return Yw(this,iC).has(e)||Yw(this,iC).set(e,new Map),null==(r=Yw(this,iC).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=Yw(this,iC).get(e))?void 0:t.clear():void 0}};gA=[eC],mA=[eC];var DA=class{constructor(e,t){KL(this,yA,BL(vA,8,this)),BL(vA,11,this),KL(this,bA),KL(this,xA),KL(this,SA,BL(vA,12,this)),BL(vA,15,this),KL(this,wA),this.register=()=>(zS(()=>{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=()=>{zS(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{zS(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=e,{effects:r=()=>[],group:i,index:o,sensors:a,type:s,transition:l=EA,plugins:u=CA}=n,c=((e,t)=>{var n={};for(var r in e)_L.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&qL)for(var r of qL(e))t.indexOf(r)<0&&NL.call(e,r)&&(n[r]=e[r]);return n})(n,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new MA(c,t,this),this.draggable=new PA(WL(zL({},c),{effects:()=>[()=>{var e,t,n;const r=null==(e=this.manager)?void 0:e.dragOperation.status;(null==r?void 0:r.initializing)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&IA.clear(this.manager),(null==r?void 0:r.dragging)&&IA.set(this.manager,this.id,$S(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:n}=this,r=YL(this,xA),i=YL(this,bA);e===r&&t===i||(XL(this,xA,e),XL(this,bA,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:n}=this.draggable;"move"==t&&n&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...r()],type:s,sensors:a}),t,this),XL(this,wA,c.element),this.manager=t,this.index=o,XL(this,xA,o),this.group=i,XL(this,bA,i),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=IA.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=IA.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){$S(()=>{const{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;const{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;const i=this.refreshShape();if(!i)return;const o=n.boundingRectangle.left-i.boundingRectangle.left,a=n.boundingRectangle.top-i.boundingRectangle.top,{translate:s}=pP(r),l=DP(r,s,!1),u=DP(r,s);if(o||a){const n=ED(cD(r))?WL(zL({},t),{duration:0}):t;IP({element:r,keyframes:{translate:[`${l.x+o}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:n}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){zS(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){zS(()=>{const t=YL(this,wA),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),XL(this,wA,e)})}get element(){var e,t;const n=YL(this,wA);if(n)return null!=(t=null!=(e=MD.get(n))?e:n)?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){zS(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){zS(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){zS(()=>{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:jP}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){zS(()=>{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)}};vA=[,,,kL(null)],yA=new WeakMap,bA=new WeakMap,xA=new WeakMap,SA=new WeakMap,wA=new WeakMap,GL(vA,4,"index",gA,DA,yA),GL(vA,4,"group",mA,DA,SA),((e,t)=>{return FL(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r})(vA,DA);var PA=class extends gk{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},MA=class extends vk{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}},RA=Object.defineProperty,kA=Object.defineProperties,LA=Object.getOwnPropertyDescriptors,AA=Object.getOwnPropertySymbols,OA=Object.prototype.hasOwnProperty,TA=Object.prototype.propertyIsEnumerable,qA=(e,t,n)=>t in e?RA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_A=(e,t)=>{for(var n in t||(t={}))OA.call(t,n)&&qA(e,n,t[n]);if(AA)for(var n of AA(t))TA.call(t,n)&&qA(e,n,t[n]);return e};function NA(e){const{accept:t,collisionDetector:n,collisionPriority:r,id:i,data:o,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:g}=e,v=_A(_A({},EA),e.transition),y=zk(t=>new DA(((e,t)=>kA(e,LA(t)))(_A({},e),{transition:v,register:!1,handle:yk(s),element:yk(a),target:yk(h),feedback:d}),t)),b=wk(y,jA);return Ik(i,()=>y.id=i),bk(()=>{zS(()=>{y.group=u,y.index=l})},[y,u,l]),Ik(g,()=>y.type=g),Ik(t,()=>y.accept=t,void 0,Qw),Ik(o,()=>o&&(y.data=o)),Ik(l,()=>{var e;(null==(e=y.manager)?void 0:e.dragOperation.status.idle)&&(null==v?void 0:v.idle)&&y.refreshShape()},Ck),Dk(s,e=>y.handle=e),Dk(a,e=>y.element=e),Dk(h,e=>y.target=e),Ik(c,()=>y.disabled=!0===c),Ik(f,()=>y.sensors=f),Ik(n,()=>y.collisionDetector=n),Ik(r,()=>y.collisionPriority=r),Ik(d,()=>y.feedback=null!=d?d:"default"),Ik(v,()=>y.transition=v,void 0,Qw),Ik(p,()=>y.modifiers=p,void 0,Qw),Ik(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:m(e=>{y.handle=null!=e?e:void 0},[y]),ref:m(e=>{var t,n;(e||!(null==(t=y.element)?void 0:t.isConnected)||(null==(n=y.manager)?void 0:n.dragOperation.status.idle))&&(y.element=null!=e?e:void 0)},[y]),sourceRef:m(e=>{var t,n;(e||!(null==(t=y.source)?void 0:t.isConnected)||(null==(n=y.manager)?void 0:n.dragOperation.status.idle))&&(y.source=null!=e?e:void 0)},[y]),targetRef:m(e=>{var t,n;(e||!(null==(t=y.target)?void 0:t.isConnected)||(null==(n=y.manager)?void 0:n.dragOperation.status.idle))&&(y.target=null!=e?e:void 0)},[y])}}function jA(e,t,n){return!("isDragSource"!==e||n||!t)}const FA=({id:e,itemIndex:t,sectionIndex:n})=>Yn.jsx("div",{children:`${n}:${t} - ${e}`}),zA=({id:e,itemIndex:t,sectionIndex:n})=>{const r=nx(kS),i=nx(PS),o=nx(wS).at(n)??0,a=nx(CS)({sectionIndex:n}),{ref:s,isDragging:l,handleRef:u}=NA({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[ML],plugins:[ZL],data:{id:e,sectionIndex:n,sectionKey:a,itemIndex:t}}),c=void 0!==r?()=>{r({id:e,itemIndex:t,sectionIndex:n})}:void 0,d=i??FA;return Yn.jsx(rc,{className:"section-item-container","data-testid":"section-item",onClick:c,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:Yn.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[Yn.jsx(fL,{isDragging:l,itemIndex:t,sectionIndex:n}),Yn.jsx(d,{id:e,itemIndex:t,sectionIndex:n,dragHandleRef:u}),t===o-1&&Yn.jsx(fL,{isDragging:!1,itemIndex:t+1,sectionIndex:n})]})})},WA=o.memo(zA),$A=o.memo(({sectionIndex:e})=>{const t=nx(CS),n=nx(wS).at(e)??0,r=t({sectionIndex:e});return Yn.jsxs(xl,{className:"exploration-list",style:{overflow:"auto"},children:[Yn.jsx(hu,{}),Yn.jsx(gL,{id:r,sectionIndex:e}),Yn.jsx(hu,{}),Yn.jsx(mL,{sectionIndex:e}),Yn.jsx(Bu,{sx:{padding:"2px 8px"},children:cL(n).map(n=>{const r=t({sectionIndex:e,itemIndex:n});return Yn.jsx(WA,{id:r,itemIndex:n,sectionIndex:e},r)})})]},r)}),HA=[BR.configure({activationConstraints:[new WR.Distance({value:5})]}),NR],VA=o.memo(()=>{const e=nx(SS),t=nx(CS),n=rx(TS("start")),r=rx(TS("over")),i=rx(TS("end"));return Yn.jsxs(jk,{sensors:HA,onDragEnd:i,onDragOver:r,onDragStart:n,children:[Yn.jsx(xl,{style:{display:"flex",flexDirection:"column"},children:cL(e).map(e=>Yn.jsx($A,{sectionIndex:e},t({sectionIndex:e})))}),Yn.jsx(pL,{})]})}),BA=o.memo(e=>Yn.jsx(oS,{atoms:qS,atomFamilies:_S,children:Yn.jsx(NS,{props:e,children:Yn.jsx(VA,{})})})),GA="12px",UA="nebula-table-utils-head-menu-button",YA="sn-copy-cell";let KA=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 XA="nebula-table-utils-column-adjuster";let JA=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}({}),ZA=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const QA={darker:.15,brighter:.3,opacity:.03},eO={darker:.3,brighter:.5,opacity:.05};let tO=function(e){return e.Cyclic="C",e}({});const nO=(e,t)=>{const n=new Map;for(const t of e)n.set(t.id,t);return t.reduce((e,t)=>{const r=n.get(t);return r&&e.push(r),e},[])},rO=yS(e=>Vb(t=>{const n=t(Ox),r=t(Mx)?.[e];return r||n?.qHyperCubeDef.rankedList?.[e]})),iO=yS(e=>Vb(t=>{const n=t(Cx),r=t(yx),i=t(Lx),o=t(Mx)?.[e],a=n("SUPPORT-9810-MISSING-MEASURES",!1)?r?.properties.qHyperCubeDef.rankedList?.[e]:i?.qHyperCube.rankedList?.[e];return o||(r?.isRankedListCorrupt(e)||void 0===a?r?.createRankedList(e):a)})),oO=(e,t=new Set)=>Vb(n=>{const r=n(e),i=n(Bx);if(!r||0===r.length)return"disabled";const o=r.filter(e=>!t.has(e.id));if(0===o.length)return"disabled";const a=o.filter(e=>i.has(e.id)).length;return 0===a?"none":a===o.length?"all":"some"}),aO=(e,t=new Set)=>Vb(null,(n,r,i)=>{const o=n(e);o&&0!==o.length&&(e=>{const{items:t,shouldCheckAll:n,get:r,set:i,excludedIds:o}=e,a=t.filter(e=>!o?.has(e.id));if(0===a.length)return;const s=r(Bx),l=new Set,u=new Set;if(a.forEach(e=>{const t=s.has(e.id);t&&!n&&u.add(e.id),!t&&n&&l.add(e.id)}),0===l.size&&0===u.size)return;const c=new Set(r(Wx)),d=new Set(r($x));l.forEach(e=>c.add(e)),l.forEach(e=>d.delete(e)),u.forEach(e=>d.add(e)),u.forEach(e=>c.delete(e)),i(Wx,c),i($x,d),gx({type:"apply",localChecked:l,localUnchecked:u,handler:r(yx),model:r(vx),fieldInfo:r(_x),handlerQueue:r(jx)})})({items:o,shouldCheckAll:i,get:n,set:r,excludedIds:t})}),sO=Vb(e=>{const t=e(Ax);return t?.qHyperCube.qDimensionInfo.filter(Ex).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??"",alternative:!0}))}),lO=Vb(e=>{const t=e(Lx),n=e(xx),r=t?.qHyperCube.qEffectiveInterColumnSortOrder.map(e=>{if(-1===e)return{id:-1,title:n("Common.Values")};const{cId:r,qFallbackTitle:i}=t.qHyperCube.qDimensionInfo[e];return{id:r,title:i??""}});return r}),uO=Vb(e=>{const t=e(xx),n=e(sO),r=e(wx),i=e(Cx)("SUPPORT-9810-MIGRATE-RANKED-LISTS",!1),o=e(i?rO("columns"):iO("columns")),a=e(i?rO("rows"):iO("rows")),s=e(lO);if(void 0===n||void 0===o||void 0===a||void 0===s)return[];const l=[...s,...n].filter(r);return[{id:"rows",title:t("Common.Rows"),items:nO(l,a)},{id:"columns",title:t("Common.Columns"),items:nO(l,o)}]}),cO=yS(e=>Vb(t=>t(uO).at(e))),dO=yS(({sectionIndex:e,itemIndex:t})=>Vb(n=>n(cO(e))?.items.at(t)?.title),(e,t)=>e.sectionIndex===t.sectionIndex&&e.itemIndex===t.itemIndex),pO=yS(e=>Vb(t=>t(cO(e))?.title)),fO=Vb(e=>({sectionIndex:t,itemIndex:n})=>{const r=e(cO(t));return void 0===r?0===t?"rows":"columns":void 0===n?r.id:r.items.at(n)?.id??`missing-item-${t}-${n}`}),hO=Vb(e=>e(uO).map(e=>e.items.length)),mO=yS(e=>oO(Vb(t=>t(cO(e))?.items),new Set([-1]))),gO=yS(e=>aO(Vb(t=>t(cO(e))?.items),new Set([-1]))),vO=Vb(null,(e,t,{event:n,id:r,toIndex:i,toSection:o,startSection:a})=>{const s=e(yx),l=e(vx),u=e(jx),c=e(rO("rows")),d=e(rO("columns")),p=o;if(void 0===s||void 0===l||void 0===c||void 0===d||null===u)return;if(n.operation.canceled)return void t(Mx,null);if("section"===n.operation.target?.type&&a===o)return void t(Mx,null);const f=vS({rows:c,columns:d},n);t(Mx,f),u.add(async()=>{"number"==typeof r?await s.movePseudoDimension({toIndex:i,toSection:p}):await s.moveDimension({cId:r,toIndex:i,toSection:p})})}),yO={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"}},bO="ChartExploration.PivotTable.DimensionSectionEmpty.Message",xO="ChartExploration.PivotTable.MeasureSectionEmpty.Message",SO="#177fe6",wO=(e,t,n,r)=>{if("measure"===t)return e(r?yO.noSearchFound.measure:yO.noItems.measure);const i=r?yO.noSearchFound:yO.noItems;return e(n?i.row:i.column)},CO=(e,t,n)=>n?"":e("measure"===t?xO:bO),EO=yS(e=>Vb(t=>{const n=t(xx),r=t(Sx).length>0;return t=>({title:wO(n,e,0===t,r),message:CO(n,e,r)})})),IO=EO("measure"),DO=EO("dimensions"),PO=({children:e})=>Yn.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),MO=e=>{const t=nx(dO(e));return Yn.jsx(PO,{children:t})},RO=Vb(e=>{const t=e(Ax);return t?.qHyperCube.qMeasureInfo.filter(Ex).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??""}))}),kO=Vb(e=>{const t=e(Cx)("SUPPORT-9810-MIGRATE-RANKED-LISTS",!1),n=e(Lx),r=e(RO),i=e(wx),o=e(t?rO("measures"):iO("measures"));if(void 0===n||void 0===r||void 0===o)return[];const a=n.qHyperCube.qMeasureInfo.filter(Ex).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??""}));a.push(...r);const s=a.filter(i);return nO(s,o)}),LO=yS(e=>Vb(t=>t(kO).at(e)?.title??"")),AO=Vb(e=>({itemIndex:t})=>{const n=e(kO);return void 0===t?"measures":n.at(t)?.id??`missing-item-${t}`}),OO=Vb(e=>[e(kO).length]),TO=oO(kO),qO=aO(kO),_O=Vb(null,(e,t,{id:n,toIndex:r,event:i})=>{const o=e(yx),a=e(vx),s=e(jx),l=e(rO("measures"));if(void 0===o||void 0===a||void 0===l||"string"!=typeof n||null===s)return;const u=vS({measures:l},i);t(Mx,u),s.add(async()=>{await o.moveMeasure({cId:n,toIndex:r})})}),NO=lb().palette,jO={TEXT:NO.text.primary,DISABLED:NO.text.disabled,HOVER:NO.action.hover,WHITE:Bd.GREYSCALE_100,BORDER_MEDIUM:Bd.GREYSCALE_85,DARK_MODE_TEXT:Bd.GREYSCALE_95,DARK_MODE_BORDER:Bd.GREYSCALE_95,DARK_MODE_DISABLED:Bd.GREYSCALE_70,TRANSPARENT:"transparent",SELECTED:NO.primary.main,LINK:NO.info.main,ERROR:NO.error.main};function FO(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 zO(e){if("object"==typeof e&&FO(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let i;(i=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(i[1],10),n=parseInt(i[2],10),r=parseInt(i[3],10)):(i=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(i[1],16),n=parseInt(i[2],16),r=parseInt(i[3],16)):(i=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(i[1]+i[1],16),n=parseInt(i[2]+i[2],16),r=parseInt(i[3]+i[3],16))}return(t<<16)+(n<<8)+r}const WO={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}},$O="qcm-color";function HO(...e){const t={type:$O,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,i=0,o=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===$O)({r:n,g:r,b:i,a:o}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(FO(e[0]))({r:n,g:r,b:i}=e[0]),"a"in e[0]&&({a:o}=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))n=parseInt(s[1],10),r=parseInt(s[2],10),i=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))n=parseInt(s[1],10),r=parseInt(s[2],10),i=parseInt(s[3],10),o=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))o=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),i=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))n=parseInt(s[1],16),r=parseInt(s[2],16),i=parseInt(s[3],16),o=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),i=parseInt(s[3]+s[3],16),o=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;n=d[0]+p,r=d[1]+p,i=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),i=Math.round(255*i),o=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]);o=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;n=d[0]+p,r=d[1]+p,i=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),i=Math.round(255*i)}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;n=d[0]+p,r=d[1]+p,i=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),i=Math.round(255*i),o=1}else{const e=a.toLowerCase();if(function(e){return e in WO}(e)){const t=WO[e];({r:n,g:r,b:i}=t),o="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(o=(4278190080&e[0])>>>24,o/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,i=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,i=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],i=e[2],o=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+i+o)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(i),t.a=o,t}function VO(e){let t,n,r;if(FO(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const i="string"==typeof e?zO(e):e;return t=((16711680&i)>>16).toString(16),n=((65280&i)>>8).toString(16),r=(255&i).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function BO(e){let t,n,r=0;const i="string"==typeof e?HO(e):e,o=i.r/255,a=i.g/255,s=i.b/255,{a:l}=i,u=Math.max(o,a,s),c=Math.min(o,a,s),d=(u+c)/2;if(u===c)t=0,r=0;else{switch(n=u-c,t=d>.5?n/(2-u-c):n/(u+c),u){case o:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-o)/n+2;break;case s:r=(o-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function GO(e){let t,n,r=0;const i="string"==typeof e?HO(e):e,o=i.r/255,a=i.g/255,s=i.b/255,l=Math.max(o,a,s),u=Math.min(o,a,s),c=l;if(l===u)t=0,r=0;else{switch(n=l-u,t=0===n?0:n/c,l){case o:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-o)/n+2;break;case s:r=(o-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}function UO(e){if(FO(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?zO(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function YO(e,t){return FO(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:YO(HO(e))}function KO(e){return FO(e)?1===e.a?UO(e):YO(e):KO(HO(e))}const XO=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function JO(e){return.2126*XO(e.r)+.7152*XO(e.g)+.0722*XO(e.b)}function ZO(...e){const t=HO(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=BO(n)),n.spaces.hslaObject),i=e=>{const t=r(),{h:n,s:i,l:o,a:a}=t;return`hsla(${n}, ${i}, ${Math.max(0,Math.min(o+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=HO(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=HO(...e);return t.invalid||JO(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=UO(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=YO(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=KO(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=VO(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const i="string"==typeof e?HO(e):e,o=i.r/255,a=i.g/255,s=i.b/255,l=Math.max(o,a,s),u=Math.min(o,a,s),c=(l+u)/2;if(l===u)t=0,r=0;else{switch(n=l-u,t=c>.5?n/(2-l-u):n/(l+u),l){case o:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-o)/n+2;break;case s:r=(o-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*c})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:i}=BO(e);return`hsla(${t}, ${n}, ${r}, ${i})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:i,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=GO(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=GO(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>ZO(i(18*e)),getDarkenedColor:(e=1)=>ZO(i(18*-e))}}function QO(e,t){if(!e||!t)return;const n=JO(e),r=JO(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const eT="#FFFFFF";function tT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;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:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nT,rT="top",iT="top-right",oT="right",aT="bottom-right",sT="bottom",lT="bottom-left",uT="left",cT="top-left";tT(tT(tT(tT(tT(tT(tT(tT(tT(tT(nT={},"equal-equal",[rT,sT]),"equal-higher",[sT,aT]),"equal-lower",[rT,iT]),"equal-void",[rT,sT]),"higher-equal",[uT,lT,rT,iT]),"higher-higher-acute",[sT,lT,uT,iT]),"higher-higher-obtuse",[sT,rT]),"higher-lower-negative",[rT,iT,oT]),"higher-lower-positive",[sT,lT,uT]),"higher-void",[rT]),tT(tT(tT(tT(tT(tT(tT(tT(tT(tT(nT,"lower-equal",[rT]),"lower-higher-negative",[rT,cT]),"lower-higher-positive",[aT]),"lower-lower-acute",[rT,cT,uT,iT,oT]),"lower-lower-obtuse",[rT,sT]),"lower-void",[rT]),"void-equal",[rT]),"void-higher",[rT,sT]),"void-lower",[rT,sT,uT]),"void-void",[rT]),tT(nT,"unclassified",[rT,sT,oT,uT,iT,aT,lT,cT]);var dT,pT,fT=["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"],hT=["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 mT(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?hT:fT}var gT=function(){if(pT)return dT;pT=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},a=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},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return dT=function e(){var t,n,r,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(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(o(l)||(u=i(l)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&o(r)?r:{},a(d,{name:n,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},dT}();function vT(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function yT(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bT(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(gT);var xT=.7,ST=1/xT,wT="\\s*([+-]?\\d+)\\s*",CT="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ET="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",IT=/^#([0-9a-f]{3,8})$/,DT=new RegExp(`^rgb\\(${wT},${wT},${wT}\\)$`),PT=new RegExp(`^rgb\\(${ET},${ET},${ET}\\)$`),MT=new RegExp(`^rgba\\(${wT},${wT},${wT},${CT}\\)$`),RT=new RegExp(`^rgba\\(${ET},${ET},${ET},${CT}\\)$`),kT=new RegExp(`^hsl\\(${CT},${ET},${ET}\\)$`),LT=new RegExp(`^hsla\\(${CT},${ET},${ET},${CT}\\)$`),AT={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 OT(){return this.rgb().formatHex()}function TT(){return this.rgb().formatRgb()}function qT(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=IT.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_T(t):3===n?new zT(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?NT(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?NT(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=DT.exec(e))?new zT(t[1],t[2],t[3],1):(t=PT.exec(e))?new zT(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=MT.exec(e))?NT(t[1],t[2],t[3],t[4]):(t=RT.exec(e))?NT(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=kT.exec(e))?GT(t[1],t[2]/100,t[3]/100,1):(t=LT.exec(e))?GT(t[1],t[2]/100,t[3]/100,t[4]):AT.hasOwnProperty(e)?_T(AT[e]):"transparent"===e?new zT(NaN,NaN,NaN,0):null}function _T(e){return new zT(e>>16&255,e>>8&255,255&e,1)}function NT(e,t,n,r){return r<=0&&(e=t=n=NaN),new zT(e,t,n,r)}function jT(e){return e instanceof bT||(e=qT(e)),e?new zT((e=e.rgb()).r,e.g,e.b,e.opacity):new zT}function FT(e,t,n,r){return 1===arguments.length?jT(e):new zT(e,t,n,null==r?1:r)}function zT(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function WT(){return`#${BT(this.r)}${BT(this.g)}${BT(this.b)}`}function $T(){const e=HT(this.opacity);return`${1===e?"rgb(":"rgba("}${VT(this.r)}, ${VT(this.g)}, ${VT(this.b)}${1===e?")":`, ${e})`}`}function HT(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function VT(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function BT(e){return((e=VT(e))<16?"0":"")+e.toString(16)}function GT(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new YT(e,t,n,r)}function UT(e){if(e instanceof YT)return new YT(e.h,e.s,e.l,e.opacity);if(e instanceof bT||(e=qT(e)),!e)return new YT;if(e instanceof YT)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new YT(a,s,l,e.opacity)}function YT(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function KT(e){return(e=(e||0)%360)<0?e+360:e}function XT(e){return Math.max(0,Math.min(1,e||0))}function JT(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}vT(bT,qT,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:OT,formatHex:OT,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return UT(this).formatHsl()},formatRgb:TT,toString:TT}),vT(zT,FT,yT(bT,{brighter(e){return e=null==e?ST:Math.pow(ST,e),new zT(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?xT:Math.pow(xT,e),new zT(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zT(VT(this.r),VT(this.g),VT(this.b),HT(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:WT,formatHex:WT,formatHex8:function(){return`#${BT(this.r)}${BT(this.g)}${BT(this.b)}${BT(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$T,toString:$T})),vT(YT,function(e,t,n,r){return 1===arguments.length?UT(e):new YT(e,t,n,null==r?1:r)},yT(bT,{brighter(e){return e=null==e?ST:Math.pow(ST,e),new YT(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?xT:Math.pow(xT,e),new YT(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new zT(JT(e>=240?e-240:e+120,i,r),JT(e,i,r),JT(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new YT(KT(this.h),XT(this.s),XT(this.l),HT(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=HT(this.opacity);return`${1===e?"hsl(":"hsla("}${KT(this.h)}, ${100*XT(this.s)}%, ${100*XT(this.l)}%${1===e?")":`, ${e})`}`}}));const ZT=Math.PI/180,QT=180/Math.PI,eq=.96422,tq=.82521,nq=4/29,rq=6/29,iq=3*rq*rq,oq=rq*rq*rq;function aq(e){if(e instanceof sq)return new sq(e.l,e.a,e.b,e.opacity);if(e instanceof pq)return fq(e);e instanceof zT||(e=jT(e));var t,n,r=dq(e.r),i=dq(e.g),o=dq(e.b),a=lq((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=lq((.4360747*r+.3850649*i+.1430804*o)/eq),n=lq((.0139322*r+.0971045*i+.7141733*o)/tq)),new sq(116*a-16,500*(t-a),200*(a-n),e.opacity)}function sq(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function lq(e){return e>oq?Math.pow(e,1/3):e/iq+nq}function uq(e){return e>rq?e*e*e:iq*(e-nq)}function cq(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dq(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pq(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function fq(e){if(isNaN(e.h))return new sq(e.l,0,0,e.opacity);var t=e.h*ZT;return new sq(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}vT(sq,function(e,t,n,r){return 1===arguments.length?aq(e):new sq(e,t,n,null==r?1:r)},yT(bT,{brighter(e){return new sq(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new sq(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,n=isNaN(this.b)?e:e-this.b/200;return new zT(cq(3.1338561*(t=eq*uq(t))-1.6168667*(e=1*uq(e))-.4906146*(n=tq*uq(n))),cq(-.9787684*t+1.9161415*e+.033454*n),cq(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),vT(pq,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof pq)return new pq(e.h,e.c,e.l,e.opacity);if(e instanceof sq||(e=aq(e)),0===e.a&&0===e.b)return new pq(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*QT;return new pq(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pq(e,t,n,null==r?1:r)},yT(bT,{brighter(e){return new pq(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pq(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return fq(this).rgb()}}));var hq=e=>()=>e;function mq(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):hq(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?mq:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):hq(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=FT(e)).r,(t=FT(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=mq(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var gq="center",vq="bottom";[{key:"NoDataExist",alignment:gq,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:gq,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:gq,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:gq},{key:"DataRangeIncludingZero",alignment:vq},{key:"LimitedData",alignment:vq},{key:"NegativeOrZeroValues",alignment:vq}].reduce(function(e,t){return e[t.key]=t,e},{});var yq,bq=["__proto__","constructor"];function xq(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),i=r[r.length-1];if(!bq.some(function(e){return r.includes(e)})){for(var o=e,a=0;a<r.length-1;++a){var s=r[a];void 0===o[s]&&(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}}}function Sq(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var i=t(r);return n.has(i)?n.get(i):n.set(i,e(r))}}function wq(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout(function(){return e.apply(r,o)},n)}}function Cq(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Eq(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Dq)):void 0===t&&(t=Iq);for(var n,r,i,o,a,s=new Rq(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new Rq(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Mq)}function Iq(e){return e.children}function Dq(e){return Array.isArray(e)?e[1]:null}function Pq(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Mq(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Rq(e){this.data=e,this.depth=this.height=0,this.parent=null}Rq.prototype=Eq.prototype={constructor:Rq,count:function(){return this.eachAfter(Cq)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return Eq(this).eachBefore(Pq)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}},yq=function(e){
|
|
88
|
+
`),sl.rippleVisible,hl,550,({theme:e})=>e.transitions.easing.easeInOut,sl.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,sl.child,sl.childLeaving,ml,550,({theme:e})=>e.transitions.easing.easeInOut,sl.childPulsate,gl,({theme:e})=>e.transitions.easing.easeInOut),yl=o.forwardRef(function(e,t){const n=qs({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a}=n,s=ke(n,ll),[l,c]=o.useState([]),u=o.useRef(0),d=o.useRef(null);o.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=o.useRef(!1),f=ia(),h=o.useRef(null),m=o.useRef(null),g=o.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;c(e=>[...e,fi.jsx(bl,{classes:{ripple:wi(i.ripple,sl.ripple),rippleVisible:wi(i.rippleVisible,sl.rippleVisible),ripplePulsate:wi(i.ripplePulsate,sl.ripplePulsate),child:wi(i.child,sl.child),childLeaving:wi(i.childLeaving,sl.childLeaving),childPulsate:wi(i.childPulsate,sl.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)]),u.current+=1,d.current=a},[i]),v=o.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||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 c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-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)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},f.start(80,()=>{h.current&&(h.current(),h.current=null)})):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},[r,g,f]),b=o.useCallback(()=>{v({},{pulsate:!0})},[v]),y=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,()=>{y(e,t)});h.current=null,c(e=>e.length>0?e.slice(1):e),d.current=t},[f]);return o.useImperativeHandle(t,()=>({pulsate:b,start:v,stop:y}),[b,v,y]),fi.jsx(vl,qe({className:wi(sl.root,i.root,a),ref:m},s,{children:fi.jsx(el,{component:null,exit:!0,children:l})}))});function xl(e){return Ii("MuiButtonBase",e)}const Sl=Di("MuiButtonBase",["root","disabled","focusVisible"]),wl=["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"],Cl=Ls("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"},[`&.${Sl.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),El=o.forwardRef(function(e,t){const n=qs({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:b,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:I,onTouchMove:D,onTouchStart:R,tabIndex:L=0,TouchRippleProps:M,touchRippleRef:A,type:P}=n,q=ke(n,wl),k=o.useRef(null),T=o.useRef(null),O=ta(T,A),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:F}=ha(),[z,W]=o.useState(!1);c&&z&&W(!1),o.useImperativeHandle(r,()=>({focusVisible:()=>{W(!0),k.current.focus()}}),[]);const[$,H]=o.useState(!1);o.useEffect(()=>{H(!0)},[]);const V=$&&!u&&!c;function B(e,t,n=d){return ea(r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0})}o.useEffect(()=>{z&&p&&!u&&$&&T.current.pulsate()},[u,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",R),Z=B("stop",I),Q=B("stop",D),ee=B("stop",e=>{_(e),!1===N.current&&W(!1),h&&h(e)},!1),te=ea(e=>{k.current||(k.current=e.currentTarget),j(e),!0===N.current&&(W(!0),y&&y(e)),b&&b(e)}),ne=()=>{const e=k.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=o.useRef(!1),oe=ea(e=>{p&&!re.current&&z&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,()=>{T.current.start(e)})),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!c&&(e.preventDefault(),m&&m(e))}),ie=ea(e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,()=>{T.current.pulsate(e)})),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)});let ae=l;"button"===ae&&(q.href||q.to)&&(ae=f);const se={};"button"===ae?(se.type=void 0===P?"button":P,se.disabled=c):(q.href||q.to||(se.role="button"),c&&(se["aria-disabled"]=c));const le=ta(t,F,k),ce=qe({},n,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:L,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=ga({root:["root",t&&"disabled",n&&"focusVisible"]},xl,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return fi.jsxs(Cl,qe({as:ae,className:wi(ue.root,s),ownerState:ce,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:c?-1:L,type:P},se,q,{children:[a,V?fi.jsx(yl,qe({ref:O,center:i},M)):null]}))});function Il(e){return Ii("MuiTypography",e)}Di("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Dl=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Rl=Ls("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${so(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>qe({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})),Ll={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ml={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Al=o.forwardRef(function(e,t){const n=qs({props:e,name:"MuiTypography"}),r=(e=>Ml[e]||e)(n.color),o=vi(qe({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Ll}=o,f=ke(o,Dl),h=qe({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||Ll[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return ga({root:["root",i,"inherit"!==e.align&&`align${so(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Il,a)})(h);return fi.jsx(Rl,qe({as:m,ref:t,ownerState:h,className:wi(g.root,a)},f))});const Pl=o.forwardRef(function(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[a,s]=o.useState(null),l=ta(o.isValidElement(n)?wa(n):null,t);if(zi(()=>{i||s(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,i]),zi(()=>{if(a&&!i)return Ki(t,a),()=>{Ki(t,null)}},[t,a,i]),i){if(o.isValidElement(n)){const e={ref:l};return o.cloneElement(n,e)}return fi.jsx(o.Fragment,{children:n})}return fi.jsx(o.Fragment,{children:a?I.createPortal(n,a):a})}),ql=["onChange","maxRows","minRows","style","value"];function kl(e){return parseInt(e,10)||0}const Tl={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ol(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Nl=o.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:i=1,style:a,value:s}=e,l=ke(e,ql),{current:c}=o.useRef(null!=s),u=o.useRef(null),d=ta(t,u),p=o.useRef(null),f=o.useRef(null),h=o.useCallback(()=>{const t=u.current,n=f.current;if(!t||!n)return;const o=Yi(t).getComputedStyle(t);if("0px"===o.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=o.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=o.boxSizing,s=kl(o.paddingBottom)+kl(o.paddingTop),l=kl(o.borderBottomWidth)+kl(o.borderTopWidth),c=n.scrollHeight;n.value="x";const d=n.scrollHeight;let p=c;i&&(p=Math.max(Number(i)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===a?s+l:0),overflowing:Math.abs(p-c)<=1}},[r,i,e.placeholder]),m=ea(()=>{const e=u.current,t=h();if(!e||!t||Ol(t))return!1;const n=t.outerHeightStyle;return null!=p.current&&p.current!==n}),g=o.useCallback(()=>{const e=u.current,t=h();if(!e||!t||Ol(t))return;const n=t.outerHeightStyle;p.current!==n&&(p.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[h]),v=o.useRef(-1);zi(()=>{const e=Gi(g),t=null==u?void 0:u.current;if(!t)return;const n=Yi(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(v.current),g(),v.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(v.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[h,g,m]),zi(()=>{g()});return fi.jsxs(o.Fragment,{children:[fi.jsx("textarea",qe({value:s,onChange:e=>{c||g(),n&&n(e)},ref:d,rows:i,style:a},l)),fi.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:qe({},Tl,a,{paddingTop:0,paddingBottom:0})})]})});function jl({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const _l=o.createContext(void 0);function Fl(){return o.useContext(_l)}function zl(e){return fi.jsx(mi,qe({},e,{defaultTheme:ds,themeId:Pe}))}function Wl(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function $l(e,t=!1){return e&&(Wl(e.value)&&""!==e.value||t&&Wl(e.defaultValue)&&""!==e.defaultValue)}function Hl(e){return Ii("MuiInputBase",e)}const Vl=Di("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Bl=["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"],Gl=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${so(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ul=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Yl=Ls("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Gl})(({theme:e,ownerState:t})=>qe({},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",[`&.${Vl.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&qe({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Kl=Ls("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ul})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=qe({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.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:n?.42:.5};return qe({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Vl.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},[`&.${Vl.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"})}),Xl=fi.jsx(zl,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Jl=o.forwardRef(function(e,t){var n;const r=qs({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:v="input",inputProps:b={},inputRef:y,maxRows:x,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:I,onClick:D,onFocus:R,onKeyDown:L,onKeyUp:M,placeholder:A,readOnly:P,renderSuffix:q,rows:k,slotProps:T={},slots:O={},startAdornment:N,type:j="text",value:_}=r,F=ke(r,Bl),z=null!=b.value?b.value:_,{current:W}=o.useRef(null!=z),$=o.useRef(),H=o.useCallback(e=>{},[]),V=ta($,y,b.ref,H),[B,G]=o.useState(!1),U=Fl(),Y=jl({props:r,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=>{$l(e)?K&&K():X&&X()},[K,X]);zi(()=>{W&&J({value:z})},[z,J,W]);o.useEffect(()=>{J($.current)},[]);let Z=v,Q=b;w&&"input"===Z&&(Q=qe(k?{type:void 0,minRows:k,maxRows:k}:{type:void 0,maxRows:x,minRows:S},Q),Z=Nl);o.useEffect(()=>{U&&U.setAdornedStart(Boolean(N))},[U,N]);const ee=qe({},r,{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:N,type:j}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return ga({root:["root",`color${so(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${so(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Hl,t)})(ee),ne=O.root||c.Root||Yl,re=T.root||u.root||{},oe=O.input||c.Input||Kl;return Q=qe({},Q,null!=(n=T.input)?n:u.input),fi.jsxs(o.Fragment,{children:[!f&&Xl,fi.jsxs(ne,qe({},re,!va(ne)&&{ownerState:qe({},ee,re.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),D&&D(e)}},F,{className:wi(te.root,re.className,l,P&&"MuiInputBase-readOnly"),children:[N,fi.jsx(_l.Provider,{value:null,children:fi.jsx(oe,qe({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:A,readOnly:P,required:Y.required,rows:k,value:z,onKeyDown:L,onKeyUp:M,type:j},Q,!va(oe)&&{as:Z,ownerState:qe({},ee,Q.ownerState)},{ref:V,className:wi(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),b.onBlur&&b.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(Me(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),I&&I(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(R&&R(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),h,q?q(qe({},Y,{startAdornment:N})):null]}))]})});function Zl(e){return Ii("MuiInput",e)}const Ql=qe({},Vl,Di("MuiInput",["root","underline","input"]));function ec(e){return Ii("MuiOutlinedInput",e)}const tc=qe({},Vl,Di("MuiOutlinedInput",["root","notchedOutline","input"]));function nc(e){return Ii("MuiFilledInput",e)}const rc=qe({},Vl,Di("MuiFilledInput",["root","underline","input"]));var oc=js(fi.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const ic=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ac={entering:{opacity:1},entered:{opacity:1}},sc=o.forwardRef(function(e,t){const n=ps(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:v=r,TransitionComponent:b=Us}=e,y=ke(e,ic),x=o.useRef(null),S=ta(x,wa(s),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=w(p),E=w((e,t)=>{tl(e);const r=nl({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)}),I=w(d),D=w(m),R=w(e=>{const t=nl({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)}),L=w(h);return fi.jsx(b,qe({appear:a,in:c,nodeRef:x,onEnter:E,onEntered:I,onEntering:C,onExit:R,onExited:L,onExiting:D,addEndListener:e=>{i&&i(x.current,e)},timeout:v},y,{children:(e,t)=>o.cloneElement(s,qe({style:qe({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},ac[e],g,s.props.style),ref:S},t))}))});function lc(e){return Ii("MuiBackdrop",e)}Di("MuiBackdrop",["root","invisible"]);const cc=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],uc=Ls("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>qe({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"})),dc=o.forwardRef(function(e,t){var n,r,o;const i=qs({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=sc,transitionDuration:g}=i,v=ke(i,cc),b=qe({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return ga({root:["root",n&&"invisible"]},lc,t)})(b),x=null!=(n=f.root)?n:u.root;return fi.jsx(m,qe({in:p,timeout:g},v,{children:fi.jsx(uc,qe({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:l,className:wi(y.root,s,null==x?void 0:x.className),ownerState:qe({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),pc=Di("MuiBox",["root"]),fc=us(),hc=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=Br("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ti);return o.forwardRef(function(e,o){const s=li(n),l=vi(e),{className:c,component:u="div"}=l,d=ke(l,Ci);return fi.jsx(a,qe({as:u,ref:o,className:wi(c,i?i(r):r),theme:t&&s[t]||s},d))})}({themeId:Pe,defaultTheme:fc,defaultClassName:pc.root,generateClassName:xi.generate});function mc(e){return Ii("MuiButton",e)}const gc=Di("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"]),vc=o.createContext({}),bc=o.createContext(void 0),yc=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],xc=e=>qe({},"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}}),Sc=Ls(El,{shouldForwardProp:e=>Rs(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${so(n.color)}`],t[`size${so(n.size)}`],t[`${n.variant}Size${so(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;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 qe({},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":qe({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Va.alpha(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})`:Va.alpha(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})`:Va.alpha(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":qe({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${gc.focusVisible}`]:qe({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${gc.disabled}`]:qe({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 ${Va.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,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"},[`&.${gc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${gc.disabled}`]:{boxShadow:"none"}}),wc=Ls("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${so(n.size)}`]]}})(({ownerState:e})=>qe({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},xc(e))),Cc=Ls("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${so(n.size)}`]]}})(({ownerState:e})=>qe({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},xc(e))),Ec=o.forwardRef(function(e,t){const n=o.useContext(vc),r=o.useContext(bc),i=qs({props:Fi(n,e),name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:c,disabled:u=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:f,focusVisibleClassName:h,fullWidth:m=!1,size:g="medium",startIcon:v,type:b,variant:y="text"}=i,x=ke(i,yc),S=qe({},i,{color:s,component:l,disabled:u,disableElevation:d,disableFocusRipple:p,fullWidth:m,size:g,type:b,variant:y}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return qe({},a,ga({root:["root",i,`${i}${so(t)}`,`size${so(o)}`,`${i}Size${so(o)}`,`color${so(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${so(o)}`],endIcon:["icon","endIcon",`iconSize${so(o)}`]},mc,a))})(S),C=v&&fi.jsx(wc,{className:w.startIcon,ownerState:S,children:v}),E=f&&fi.jsx(Cc,{className:w.endIcon,ownerState:S,children:f}),I=r||"";return fi.jsxs(Sc,qe({ownerState:S,className:wi(n.className,w.root,c,I),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:wi(w.focusVisible,h),ref:t,type:b},x,{classes:w,children:[C,a,E]}))});function Ic(e){return Ii("PrivateSwitchBase",e)}Di("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"],Rc=Ls(El,{name:"MuiSwitchBase"})(({ownerState:e})=>qe({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),Lc=Ls("input",{name:"MuiSwitchBase",shouldForwardProp:Rs})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Mc=o.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:w}=e,C=ke(e,Dc),[E,I]=Qi({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),D=Fl();let R=s;D&&void 0===R&&(R=D.disabled);const L="checkbox"===S||"radio"===S,M=qe({},e,{checked:E,disabled:R,disableFocusRipple:l,edge:c}),A=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return ga({root:["root",n&&"checked",r&&"disabled",o&&`edge${so(o)}`],input:["input"]},Ic,t)})(M);return fi.jsxs(Rc,qe({component:"span",className:wi(A.root,i),centerRipple:!0,focusRipple:!l,disabled:R,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:M,ref:t},C,{children:[fi.jsx(Lc,qe({autoFocus:n,checked:r,defaultChecked:a,className:A.input,disabled:R,id:L?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;I(t),g&&g(e,t)},readOnly:b,ref:f,required:y,ownerState:M,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?o:u]}))});var Ac=js(fi.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"),Pc=js(fi.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"),qc=js(fi.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 kc(e){return Ii("MuiCheckbox",e)}const Tc=Di("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Oc=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Nc=Ls(Mc,{shouldForwardProp:e=>Rs(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${so(n.size)}`],"default"!==n.color&&t[`color${so(n.color)}`]]}})(({theme:e,ownerState:t})=>qe({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})`:Va.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Tc.checked}, &.${Tc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Tc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),jc=fi.jsx(Pc,{}),_c=fi.jsx(Ac,{}),Fc=fi.jsx(qc,{}),zc=o.forwardRef(function(e,t){var n,r;const i=qs({props:e,name:"MuiCheckbox"}),{checkedIcon:a=jc,color:s="primary",icon:l=_c,indeterminate:c=!1,indeterminateIcon:u=Fc,inputProps:d,size:p="medium",className:f}=i,h=ke(i,Oc),m=c?u:l,g=c?u:a,v=qe({},i,{color:s,indeterminate:c,size:p}),b=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return qe({},t,ga({root:["root",n&&"indeterminate",`color${so(r)}`,`size${so(o)}`]},kc,t))})(v);return fi.jsx(Nc,qe({type:"checkbox",inputProps:qe({"data-indeterminate":c},d),icon:o.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:p}),checkedIcon:o.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:p}),ownerState:v,ref:t,className:wi(b.root,f)},h,{classes:b}))});function Wc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function $c(e){return parseInt(Yi(e).getComputedStyle(e).paddingRight,10)||0}function Hc(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Wc(e,o)})}function Vc(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function Bc(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Ui(e);return t.body===e?Yi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=ma(Ui(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${$c(r)+e}px`;const t=Ui(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${$c(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Ui(r).body;else{const t=r.parentElement,n=Yi(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.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()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}const Gc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Uc(e){const t=[],n=[];return Array.from(e.querySelectorAll(Gc)).forEach((e,r)=>{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 n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Yc(){return!0}function Kc(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Uc,isEnabled:s=Yc,open:l}=e,c=o.useRef(!1),u=o.useRef(null),d=o.useRef(null),p=o.useRef(null),f=o.useRef(null),h=o.useRef(!1),m=o.useRef(null),g=ta(wa(t),m),v=o.useRef(null);o.useEffect(()=>{l&&m.current&&(h.current=!n)},[n,l]),o.useEffect(()=>{if(!l||!m.current)return;const e=Ui(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&&(c.current=!0,p.current.focus()),p.current=null)}},[l]),o.useEffect(()=>{if(!l||!m.current)return;const e=Ui(m.current),t=t=>{v.current=t,!r&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.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 n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=a(m.current)),n.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=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}},[n,r,i,s,l,a]);const b=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return fi.jsxs(o.Fragment,{children:[fi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"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 n=t.props.onFocus;n&&n(e)}}),fi.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:d,"data-testid":"sentinelEnd"})]})}const Xc=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Wc(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Hc(t,e.mount,e.modalRef,r,!0);const o=Vc(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Vc(this.containers,t=>-1!==t.modals.indexOf(e)),r=this.containers[n];r.restore||(r.restore=Bc(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Vc(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Wc(e.modalRef,t),Hc(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Wc(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Jc(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=Xc,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:p}=e,f=o.useRef({}),h=o.useRef(null),m=o.useRef(null),g=ta(m,p),[v,b]=o.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);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:r}),m.current&&(m.current.scrollTop=0)},C=ea(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ui(h.current).body;i.add(S(),e),m.current&&w()}),E=o.useCallback(()=>i.isTopModal(S()),[i]),I=ea(e=>{h.current=e,e&&(d&&E()?w():m.current&&Wc(m.current,x))}),D=o.useCallback(()=>{i.remove(S(),x)},[x,i]);o.useEffect(()=>()=>{D()},[D]),o.useEffect(()=>{d?C():y&&a||D()},[d,D,y,a,C]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=ba(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=qe({},n,t);return qe({role:"presentation"},r,{onKeyDown:R(r),ref:g})},getBackdropProps:(e={})=>qe({"aria-hidden":!0},e,{onClick:L(e),open:d}),getTransitionProps:()=>({onEnter:Bi(()=>{b(!1),s&&s()},null==c?void 0:c.props.onEnter),onExited:Bi(()=>{b(!0),l&&l(),a&&D()},null==c?void 0:c.props.onExited)}),rootRef:g,portalRef:I,isTopModal:E,exited:v,hasTransition:y}}function Zc(e){return Ii("MuiModal",e)}Di("MuiModal",["root","hidden","backdrop"]);const Qc=["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"],eu=Ls("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>qe({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),tu=Ls(dc,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),nu=o.forwardRef(function(e,t){var n,r,i,a,s,l;const c=qs({name:"MuiModal",props:e}),{BackdropComponent:u=tu,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:v={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:I=!1,keepMounted:D=!1,onBackdropClick:R,open:L,slotProps:M,slots:A}=c,P=ke(c,Qc),q=qe({},c,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:I,keepMounted:D}),{getRootProps:k,getBackdropProps:T,getTransitionProps:O,portalRef:N,isTopModal:j,exited:_,hasTransition:F}=Jc(qe({},q,{rootRef:t})),z=qe({},q,{exited:_}),W=(e=>{const{open:t,exited:n,classes:r}=e;return ga({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Zc,r)})(z),$={};if(void 0===h.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==A?void 0:A.root)?r:v.Root)?n:eu,V=null!=(i=null!=(a=null==A?void 0:A.backdrop)?a:v.Backdrop)?i:u,B=null!=(s=null==M?void 0:M.root)?s:b.root,G=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,U=Sa({elementType:H,externalSlotProps:B,externalForwardedProps:P,getSlotProps:k,additionalProps:{ref:t,as:g},ownerState:z,className:wi(p,null==B?void 0:B.className,null==W?void 0:W.root,!z.open&&z.exited&&(null==W?void 0:W.hidden))}),Y=Sa({elementType:V,externalSlotProps:G,additionalProps:d,getSlotProps:e=>T(qe({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:wi(null==G?void 0:G.className,null==d?void 0:d.className,null==W?void 0:W.backdrop),ownerState:z});return D||L||F&&!_?fi.jsx(Pl,{ref:N,container:m,disablePortal:w,children:fi.jsxs(H,qe({},U,{children:[!I&&u?fi.jsx(V,qe({},Y)):null,fi.jsx(Kc,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:j,open:L,children:o.cloneElement(h,$)})]}))}):null});function ru(e){return Ii("MuiDivider",e)}const ou=Di("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),iu=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],au=Ls("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>qe({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)`:Va.alpha(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})=>qe({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>qe({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>qe({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>qe({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),su=Ls("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>qe({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)`})),lu=o.forwardRef(function(e,t){const n=qs({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=ke(n,iu),h=qe({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return ga({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},ru,r)})(h);return fi.jsx(au,qe({as:a,className:wi(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?fi.jsx(su,{className:m.wrapper,ownerState:h,children:o}):null}))});lu.muiSkipListHighlight=!0;const cu=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],uu=Ls(Yl,{shouldForwardProp:e=>Rs(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Gl(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return qe({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}},[`&.${rc.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${rc.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.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"},[`&.${rc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${rc.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(.${rc.disabled}, .${rc.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${rc.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&qe({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}))}),du=Ls(Kl,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ul})(({theme:e,ownerState:t})=>qe({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})),pu=o.forwardRef(function(e,t){var n,r,o,i;const a=qs({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=ke(a,cu),g=qe({},a,{fullWidth:c,inputComponent:u,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:n}=e;return qe({},t,ga({root:["root",!n&&"underline"],input:["input"]},nc,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Jr(b,null!=p?p:l):b,x=null!=(n=null!=(r=f.root)?r:s.Root)?n:uu,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:du;return fi.jsx(Jl,qe({slots:{root:x,input:S},componentsProps:y,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:h},m,{classes:v}))});pu.muiName="Input";const fu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function hu(e){return`scale(${e}, ${e**2})`}const mu={entering:{opacity:1,transform:hu(1)},entered:{opacity:1,transform:"none"}},gu="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vu=o.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:i,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Us}=e,v=ke(e,fu),b=ia(),y=o.useRef(),x=ps(),S=o.useRef(null),w=ta(S,wa(i),t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},E=C(u),I=C((e,t)=>{tl(e);const{duration:n,delay:r,easing:o}=nl({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=n,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:r}),x.transitions.create("transform",{duration:gu?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)}),D=C(c),R=C(f),L=C(e=>{const{duration:t,delay:n,easing:r}=nl({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:gu?o:.666*o,delay:gu?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=hu(.75),d&&d(e)}),M=C(p);return fi.jsx(g,qe({appear:r,in:s,nodeRef:S,onEnter:I,onEntered:D,onEntering:E,onExit:L,onExited:M,onExiting:R,addEndListener:e=>{"auto"===m&&b.start(y.current||0,e),n&&n(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>o.cloneElement(i,qe({style:qe({opacity:0,transform:hu(.75),visibility:"exited"!==e||s?void 0:"hidden"},mu[e],h,i.props.style),ref:w},t))}))});vu.muiSupportAuto=!0;const bu=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],yu=Ls(Yl,{shouldForwardProp:e=>Rs(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Gl(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),qe({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"},[`&.${Ql.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ql.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${Ql.disabled}, .${Ql.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ql.disabled}:before`]:{borderBottomStyle:"dotted"}})}),xu=Ls(Kl,{name:"MuiInput",slot:"Input",overridesResolver:Ul})({}),Su=o.forwardRef(function(e,t){var n,r,o,i;const a=qs({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=ke(a,bu),v=(e=>{const{classes:t,disableUnderline:n}=e;return qe({},t,ga({root:["root",!n&&"underline"],input:["input"]},Zl,t))})(a),b={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:c)?Jr(null!=f?f:c,b):b,x=null!=(n=null!=(r=h.root)?r:l.Root)?n:yu,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:xu;return fi.jsx(Jl,qe({slots:{root:x,input:S},slotProps:y,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))});function wu(e){return Ii("MuiInputAdornment",e)}Su.muiName="Input";const Cu=Di("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Eu;const Iu=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Du=Ls("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${so(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(({theme:e,ownerState:t})=>qe({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${Cu.positionStart}&:not(.${Cu.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),Ru=o.forwardRef(function(e,t){const n=qs({props:e,name:"MuiInputAdornment"}),{children:r,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=n,d=ke(n,Iu),p=Fl()||{};let f=u;u&&p.variant,p&&!f&&(f=p.variant);const h=qe({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:c,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return ga({root:["root",n&&"disablePointerEvents",o&&`position${so(o)}`,a,r&&"hiddenLabel",i&&`size${so(i)}`]},wu,t)})(h);return fi.jsx(_l.Provider,{value:null,children:fi.jsx(Du,qe({as:a,ownerState:h,className:wi(m.root,i),ref:t},d,{children:"string"!=typeof r||l?fi.jsxs(o.Fragment,{children:["start"===c?Eu||(Eu=fi.jsx("span",{className:"notranslate",children:""})):null,r]}):fi.jsx(Al,{color:"text.secondary",children:r})}))})});function Lu(e){return Ii("MuiLink",e)}const Mu=Di("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Au={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Pu=({theme:e,ownerState:t})=>{const n=(e=>Au[e]||e)(t.color),r=co(e,`palette.${n}`,!1)||t.color,o=co(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Va.alpha(r,.4)},qu=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],ku=Ls(Al,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${so(n.underline)}`],"button"===n.component&&t.button]}})(({theme:e,ownerState:t})=>qe({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&qe({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Pu({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"},[`&.${Mu.focusVisible}`]:{outline:"auto"}})),Tu=o.forwardRef(function(e,t){const n=qs({props:e,name:"MuiLink"}),{className:r,color:i="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:c,underline:u="always",variant:d="inherit",sx:p}=n,f=ke(n,qu),{isFocusVisibleRef:h,onBlur:m,onFocus:g,ref:v}=ha(),[b,y]=o.useState(!1),x=ta(t,v),S=qe({},n,{color:i,component:a,focusVisible:b,underline:u,variant:d}),w=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return ga({root:["root",`underline${so(o)}`,"button"===n&&"button",r&&"focusVisible"]},Lu,t)})(S);return fi.jsx(ku,qe({color:i,className:wi(w.root,r),classes:c,component:a,onBlur:e=>{m(e),!1===h.current&&y(!1),s&&s(e)},onFocus:e=>{g(e),!0===h.current&&y(!0),l&&l(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(Au).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))}),Ou=o.createContext({});function Nu(e){return Ii("MuiList",e)}Di("MuiList",["root","padding","dense","subheader"]);const ju=["children","className","component","dense","disablePadding","subheader"],_u=Ls("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>qe({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Fu=o.forwardRef(function(e,t){const n=qs({props:e,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=n,u=ke(n,ju),d=o.useMemo(()=>({dense:s}),[s]),p=qe({},n,{component:a,dense:s,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ga({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Nu,t)})(p);return fi.jsx(Ou.Provider,{value:d,children:fi.jsxs(_u,qe({as:a,className:wi(f.root,i),ref:t,ownerState:p},u,{children:[c,r]}))})});function zu(e){return Ii("MuiListItem",e)}const Wu=Di("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),$u=Di("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Hu(e){return Ii("MuiListItemSecondaryAction",e)}Di("MuiListItemSecondaryAction",["root","disableGutters"]);const Vu=["className"],Bu=Ls("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>qe({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),Gu=o.forwardRef(function(e,t){const n=qs({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,i=ke(n,Vu),a=qe({},n,{disableGutters:o.useContext(Ou).disableGutters}),s=(e=>{const{disableGutters:t,classes:n}=e;return ga({root:["root",t&&"disableGutters"]},Hu,n)})(a);return fi.jsx(Bu,qe({className:wi(s.root,r),ownerState:a,ref:t},i))});Gu.muiName="ListItemSecondaryAction";const Uu=["className"],Yu=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Ku=Ls("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>qe({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&qe({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${$u.root}`]:{paddingRight:48}},{[`&.${Wu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Wu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Va.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Wu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Va.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Wu.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"}},[`&.${Wu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Va.alpha(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})`:Va.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Xu=Ls("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Ju=o.forwardRef(function(e,t){const n=qs({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:f}={},dense:h=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:v=!1,divider:b=!1,focusVisibleClassName:y,secondaryAction:x,selected:S=!1,slotProps:w={},slots:C={}}=n,E=ke(n.ContainerProps,Uu),I=ke(n,Yu),D=o.useContext(Ou),R=o.useMemo(()=>({dense:h||D.dense||!1,alignItems:r,disableGutters:g}),[r,D.dense,h,g]),L=o.useRef(null);zi(()=>{i&&L.current&&L.current.focus()},[i]);const M=o.Children.toArray(s),A=M.length&&(P=M[M.length-1],q=["ListItemSecondaryAction"],o.isValidElement(P)&&-1!==q.indexOf(null!=(k=P.type.muiName)?k:null==(T=P.type)||null==(T=T._payload)||null==(T=T.value)?void 0:T.muiName));var P,q,k,T;const O=qe({},n,{alignItems:r,autoFocus:i,button:a,dense:R.dense,disabled:m,disableGutters:g,disablePadding:v,divider:b,hasSecondaryAction:A,selected:S}),N=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return ga({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},zu,r)})(O),j=ta(L,t),_=C.root||u.Root||Ku,F=w.root||d.root||{},z=qe({className:wi(N.root,F.className,l),disabled:m},I);let W=c||"li";return a&&(z.component=c||"div",z.focusVisibleClassName=wi(Wu.focusVisible,y),W=El),A?(W=z.component||c?W:"div","li"===p&&("li"===W?W="div":"li"===z.component&&(z.component="div")),fi.jsx(Ou.Provider,{value:R,children:fi.jsxs(Xu,qe({as:p,className:wi(N.container,f),ref:j,ownerState:O},E,{children:[fi.jsx(_,qe({},F,!va(_)&&{as:W,ownerState:qe({},O,F.ownerState)},z,{children:M})),M.pop()]}))})):fi.jsx(Ou.Provider,{value:R,children:fi.jsxs(_,qe({},F,{as:W,ref:j},!va(_)&&{ownerState:qe({},O,F.ownerState)},z,{children:[M,x&&fi.jsx(Gu,{children:x})]}))})});function Zu(e){return Ii("MuiListItemIcon",e)}const Qu=Di("MuiListItemIcon",["root","alignItemsFlexStart"]),ed=["className"],td=Ls("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>qe({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),nd=o.forwardRef(function(e,t){const n=qs({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=ke(n,ed),a=qe({},n,{alignItems:o.useContext(Ou).alignItems}),s=(e=>{const{alignItems:t,classes:n}=e;return ga({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Zu,n)})(a);return fi.jsx(td,qe({className:wi(s.root,r),ownerState:a,ref:t},i))}),rd=Di("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),od=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function id(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ad(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function sd(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function ld(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&sd(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const cd=o.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=e,p=ke(e,od),f=o.useRef(null),h=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});zi(()=>{r&&f.current.focus()},[r]),o.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${ma(Ui(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);const m=ta(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 fi.jsx(Fu,qe({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=f.current,n=e.key,r=Ui(t).activeElement;if("ArrowDown"===n)e.preventDefault(),ld(t,r,c,l,id);else if("ArrowUp"===n)e.preventDefault(),ld(t,r,c,l,ad);else if("Home"===n)e.preventDefault(),ld(t,null,c,l,id);else if("End"===n)e.preventDefault(),ld(t,null,c,l,ad);else if(1===n.length){const o=h.current,i=n.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=r&&!o.repeating&&sd(r,o);o.previousKeyMatched&&(s||ld(t,r,!1,l,id,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},p,{children:v}))});function ud(e){return Ii("MuiPopover",e)}Di("MuiPopover",["root","paper"]);const dd=["onEntering"],pd=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],fd=["slotProps"];function hd(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function md(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function gd(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function vd(e){return"function"==typeof e?e():e}const bd=Ls(nu,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yd=Ls(al,{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}),xd=o.forwardRef(function(e,t){var n,r,i;const a=qs({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:p,className:f,container:h,elevation:m=8,marginThreshold:g=16,open:v,PaperProps:b={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=vu,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:I=!1}=a,D=ke(a.TransitionProps,dd),R=ke(a,pd),L=null!=(n=null==x?void 0:x.paper)?n:b,M=o.useRef(),A=ta(M,L.ref),P=qe({},a,{anchorOrigin:c,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:L,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:D}),q=(e=>{const{classes:t}=e;return ga({root:["root"],paper:["paper"]},ud,t)})(P),k=o.useCallback(()=>{if("anchorPosition"===d)return u;const e=vd(l),t=(e&&1===e.nodeType?e:Ui(M.current).body).getBoundingClientRect();return{top:t.top+hd(t,c.vertical),left:t.left+md(t,c.horizontal)}},[l,c.horizontal,c.vertical,u,d]),T=o.useCallback(e=>({vertical:hd(e,S.vertical),horizontal:md(e,S.horizontal)}),[S.horizontal,S.vertical]),O=o.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===d)return{top:null,left:null,transformOrigin:gd(n)};const r=k();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,c=Yi(vd(l)),u=c.innerHeight-g,p=c.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,n.vertical+=e}else if(null!==g&&a>u){const e=a-u;o-=e,n.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:gd(n)}},[l,d,k,T,g]),[N,j]=o.useState(v),_=o.useCallback(()=>{const e=M.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)},[O]);o.useEffect(()=>(I&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[l,I,_]);o.useEffect(()=>{v&&_()}),o.useImperativeHandle(s,()=>v?{updatePosition:()=>{_()}}:null,[v,_]),o.useEffect(()=>{if(!v)return;const e=Gi(()=>{_()}),t=Yi(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[l,v,_]);let F=C;"auto"!==C||w.muiSupportAuto||(F=void 0);const z=h||(l?Ui(vd(l)).body:void 0),W=null!=(r=null==y?void 0:y.root)?r:bd,$=null!=(i=null==y?void 0:y.paper)?i:yd,H=Sa({elementType:$,externalSlotProps:qe({},L,{style:N?L.style:qe({},L.style,{opacity:0})}),additionalProps:{elevation:m,ref:A},ownerState:P,className:wi(q.paper,null==L?void 0:L.className)}),V=Sa({elementType:W,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:v},ownerState:P,className:wi(q.root,f)}),{slotProps:B}=V,G=ke(V,fd);return fi.jsx(W,qe({},G,!va(W)&&{slotProps:B,disableScrollLock:I},{children:fi.jsx(w,qe({appear:!0,in:v,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:F},D,{children:fi.jsx($,qe({},H,{children:p}))}))}))});function Sd(e){return Ii("MuiMenu",e)}Di("MuiMenu",["root","paper","list"]);const wd=["onEntering"],Cd=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ed={vertical:"top",horizontal:"right"},Id={vertical:"top",horizontal:"left"},Dd=Ls(xd,{shouldForwardProp:e=>Rs(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rd=Ls(yd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ld=Ls(cd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Md=o.forwardRef(function(e,t){var n,r;const i=qs({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:p,PaperProps:f={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:v="selectedMenu",slots:b={},slotProps:y={}}=i,x=ke(i.TransitionProps,wd),S=ke(i,Cd),w=(()=>{const e=o.useContext(La);return null!=e&&e})(),C=qe({},i,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:u,onEntering:g,PaperProps:f,transitionDuration:m,TransitionProps:x,variant:v}),E=(e=>{const{classes:t}=e;return ga({root:["root"],paper:["paper"],list:["list"]},Sd,t)})(C),I=a&&!c&&p,D=o.useRef(null);let R=-1;o.Children.map(s,(e,t)=>{o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===R)&&(R=t))});const L=null!=(n=b.paper)?n:Rd,M=null!=(r=y.paper)?r:f,A=Sa({elementType:b.root,externalSlotProps:y.root,ownerState:C,className:[E.root,l]}),P=Sa({elementType:L,externalSlotProps:M,ownerState:C,className:E.paper});return fi.jsx(Dd,qe({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Ed:Id,slots:{paper:L,root:b.root},slotProps:{root:A,paper:P},open:p,ref:t,transitionDuration:m,TransitionProps:qe({onEntering:(e,t)=>{D.current&&D.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:h,children:fi.jsx(Ld,qe({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:D,autoFocus:a&&(-1===R||c),autoFocusItem:I,variant:v},u,{className:wi(E.list,u.className),children:s}))}))});function Ad(e){return Ii("MuiMenuItem",e)}const Pd=Di("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),qd=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],kd=Ls(El,{shouldForwardProp:e=>Rs(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>qe({},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"}},[`&.${Pd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Va.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Pd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Va.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Pd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Va.alpha(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})`:Va.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Pd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Pd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ou.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ou.inset}`]:{marginLeft:52},[`& .${rd.root}`]:{marginTop:0,marginBottom:0},[`& .${rd.inset}`]:{paddingLeft:36},[`& .${Qu.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&qe({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Qu.root} svg`]:{fontSize:"1.25rem"}}))),Td=o.forwardRef(function(e,t){const n=qs({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:p}=n,f=ke(n,qd),h=o.useContext(Ou),m=o.useMemo(()=>({dense:a||h.dense||!1,disableGutters:l}),[h.dense,a,l]),g=o.useRef(null);zi(()=>{r&&g.current&&g.current.focus()},[r]);const v=qe({},n,{dense:m.dense,divider:s,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return qe({},a,ga({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Ad,a))})(n),y=ta(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),fi.jsx(Ou.Provider,{value:m,children:fi.jsx(kd,qe({ref:y,role:u,tabIndex:x,component:i,focusVisibleClassName:wi(b.focusVisible,c),className:wi(b.root,p)},f,{ownerState:v,classes:b}))})});function Od(e){return Ii("MuiNativeSelect",e)}const Nd=Di("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),jd=["className","disabled","error","IconComponent","inputRef","variant"],_d=({ownerState:e,theme:t})=>qe({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":qe({},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"},[`&.${Nd.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}}),Fd=Ls("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Rs,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Nd.multiple}`]:t.multiple}]}})(_d),zd=({ownerState:e,theme:t})=>qe({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Nd.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Wd=Ls("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${so(n.variant)}`],n.open&&t.iconOpen]}})(zd),$d=o.forwardRef(function(e,t){const{className:n,disabled:r,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=e,c=ke(e,jd),u=qe({},e,{disabled:r,variant:l,error:i}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return ga({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${so(n)}`,i&&"iconOpen",r&&"disabled"]},Od,t)})(u);return fi.jsxs(o.Fragment,{children:[fi.jsx(Fd,qe({ownerState:u,className:wi(d.select,n),disabled:r,ref:s||t},c)),e.multiple?null:fi.jsx(Wd,{as:a,ownerState:u,className:d.icon})]})});var Hd;const Vd=["children","classes","className","label","notched"],Bd=Ls("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Rs})({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%"}),Gd=Ls("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Rs})(({ownerState:e,theme:t})=>qe({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&&qe({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 Ud=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Yd=Ls(Yl,{shouldForwardProp:e=>Rs(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Gl})(({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return qe({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${tc.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${tc.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${tc.focused} .${tc.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${tc.error} .${tc.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${tc.disabled} .${tc.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&qe({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),Kd=Ls(function(e){const{className:t,label:n,notched:r}=e,o=ke(e,Vd),i=null!=n&&""!==n,a=qe({},e,{notched:r,withLabel:i});return fi.jsx(Bd,qe({"aria-hidden":!0,className:t,ownerState:a},o,{children:fi.jsx(Gd,{ownerState:a,children:i?fi.jsx("span",{children:n}):Hd||(Hd=fi.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}}),Xd=Ls(Kl,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ul})(({theme:e,ownerState:t})=>qe({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})),Jd=o.forwardRef(function(e,t){var n,r,i,a,s;const l=qs({props:e,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:f=!1,notched:h,slots:m={},type:g="text"}=l,v=ke(l,Ud),b=(e=>{const{classes:t}=e;return qe({},t,ga({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ec,t))})(l),y=Fl(),x=jl({props:l,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=qe({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),w=null!=(n=null!=(r=m.root)?r:c.Root)?n:Yd,C=null!=(i=null!=(a=m.input)?a:c.Input)?i:Xd;return fi.jsx(Jl,qe({slots:{root:w,input:C},renderSuffix:e=>fi.jsx(Kd,{ownerState:S,className:b.notchedOutline,label:null!=p&&""!==p&&x.required?s||(s=fi.jsxs(o.Fragment,{children:[p," ","*"]})):p,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:d,multiline:f,ref:t,type:g},v,{classes:qe({},b,{notchedOutline:null})}))});function Zd(e){return Ii("MuiSelect",e)}Jd.muiName="Input";const Qd=Di("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ep;const tp=["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"],np=Ls("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Qd.select}`]:t.select},{[`&.${Qd.select}`]:t[n.variant]},{[`&.${Qd.error}`]:t.error},{[`&.${Qd.multiple}`]:t.multiple}]}})(_d,{[`&.${Qd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),rp=Ls("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${so(n.variant)}`],n.open&&t.iconOpen]}})(zd),op=Ls("input",{shouldForwardProp:e=>Ds(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 ip(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function ap(e){return null==e||"string"==typeof e&&!e.trim()}const sp=o.forwardRef(function(e,t){var n;const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:p,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:g,labelId:v,MenuProps:b={},multiple:y,name:x,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:I,open:D,readOnly:R,renderValue:L,SelectDisplayProps:M={},tabIndex:A,value:P,variant:q="standard"}=e,k=ke(e,tp),[T,O]=Qi({controlled:P,default:d,name:"Select"}),[N,j]=Qi({controlled:D,default:u,name:"Select"}),_=o.useRef(null),F=o.useRef(null),[z,W]=o.useState(null),{current:$}=o.useRef(null!=D),[H,V]=o.useState(),B=ta(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:_.current,value:T}),[T]),o.useEffect(()=>{u&&N&&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=Ui(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 n;if(t.currentTarget.hasAttribute("tabindex")){if(y){n=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==n&&(O(n),w)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:x}}),w(o,e)}y||Y(!1,t)}},J=null!==z&&N;let Z,Q;delete k["aria-invalid"];const ee=[];let te=!1;($l({value:T})||f)&&(L?Z=L(T):te=!0);const ne=K.map(e=>{if(!o.isValidElement(e))return null;let t;if(y){if(!Array.isArray(T))throw new Error(Me(2));t=T.some(t=>ip(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=ip(T,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=y?0===ee.length?null:ee.reduce((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e),[]):Q);let re,oe=H;!s&&$&&z&&(oe=U.clientWidth),re=void 0!==A?A:p?null:0;const ie=M.id||(x?`mui-component-select-${x}`:void 0),ae=qe({},e,{variant:q,value:T,open:J,error:h}),se=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return ga({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${so(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},Zd,t)})(ae),le=qe({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ce=Zi();return fi.jsxs(o.Fragment,{children:[fi.jsx(np,qe({ref:G,tabIndex:re,role:"combobox","aria-controls":ce,"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":r,onKeyDown:e=>{if(!R){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:p||R?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:T,name:x}}),S(e))},onFocus:E},M,{ownerState:ae,className:wi(M.className,se.select,c),id:ie,children:ap(Z)?ep||(ep=fi.jsx("span",{className:"notranslate",children:""})):Z})),fi.jsx(op,qe({"aria-invalid":h,value:Array.isArray(T)?T.join(","):T,name:x,ref:_,"aria-hidden":!0,onChange:e=>{const t=K.find(t=>t.props.value===e.target.value);void 0!==t&&(O(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:p,className:se.nativeInput,autoFocus:a,ownerState:ae},k)),fi.jsx(rp,{as:m,className:se.icon,ownerState:ae}),fi.jsx(Md,qe({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:qe({"aria-labelledby":v,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:ce},b.MenuListProps),slotProps:qe({},b.slotProps,{paper:qe({},le,{style:qe({minWidth:oe},null!=le?le.style:null)})}),children:ne}))]})}),lp=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],cp=["root"],up={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Rs(e)&&"variant"!==e,slot:"Root"},dp=Ls(Su,up)(""),pp=Ls(Jd,up)(""),fp=Ls(pu,up)(""),hp=o.forwardRef(function(e,t){const n=qs({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=oc,id:d,input:p,inputProps:f,label:h,labelId:m,MenuProps:g,multiple:v=!1,native:b=!1,onClose:y,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=n,I=ke(n,lp),D=b?$d:sp,R=jl({props:n,muiFormControl:Fl(),states:["variant","error"]}),L=R.variant||E,M=qe({},n,{variant:L,classes:a}),A=(e=>{const{classes:t}=e;return t})(M),P=ke(A,cp),q=p||{standard:fi.jsx(dp,{ownerState:M}),outlined:fi.jsx(pp,{label:h,ownerState:M}),filled:fi.jsx(fp,{ownerState:M})}[L],k=ta(t,wa(q));return fi.jsx(o.Fragment,{children:o.cloneElement(q,qe({inputComponent:D,inputProps:qe({children:i,error:R.error,IconComponent:u,variant:L,type:void 0,multiple:v},b?{id:d}:{autoWidth:r,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:g,onClose:y,onOpen:x,open:S,renderValue:w,SelectDisplayProps:qe({id:d},C)},f,{classes:f?Jr(P,f.classes):P},p?p.props.inputProps:{})},(v&&b||c)&&"outlined"===L?{notched:!0}:{},{ref:k,className:wi(q.props.className,s,A.root)},!p&&{variant:L},I))})});hp.muiName="Select";const mp={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"},gp={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",...mp,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)"},vp=12,bp=14,yp=16,xp=24,Sp=3,wp=300,Cp=400,Ep=600,Ip=700,Dp={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Rp(e){return fi.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:fi.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function Lp({fontSize:e="medium",children:t=null,className:n=""}={}){return fi.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:n,children:t})}function Mp(e={}){return fi.jsx(Lp,{...e,children:fi.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[fi.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),fi.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 Ap(e={}){return fi.jsx(Lp,{fontSize:"medium",...e,children:fi.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[fi.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),fi.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 Pp(e){return fi.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:fi.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 qp(e={}){return fi.jsx(Lp,{...e,children:fi.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:fi.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[fi.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),fi.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function kp(e={}){return fi.jsx(Lp,{fontSize:"medium",...e,children:fi.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:fi.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:fi.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Tp({className:e}){return fi.jsx(Lp,{fontSize:"small",className:e,children:fi.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:fi.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:fi.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:fi.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[fi.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"}),fi.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 Op(e={}){return fi.jsx(Lp,{...e,children:fi.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:fi.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:fi.jsx("rect",{stroke:gp.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var Np=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:gp.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:gp.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:fi.jsx(Rp,{"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 ${gp.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:gp.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${gp.MISC_FOCUS_BORDER}`,borderRadius:Sp,backgroundColor:gp.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 ${gp.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:gp.WHITE,color:gp.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:Sp},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${gp.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:gp.GREYSCALE_0_15,backgroundColor:gp.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:gp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${gp.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:gp.GREEN_PALE},"&:active":{backgroundColor:gp.GREEN_DARK},"&.Mui-focusVisible":{borderColor:gp.GREEN_PALE,boxShadow:`0 0 0 3px ${Vi(gp.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:gp.BLUE_PALE},"&:active":{backgroundColor:gp.BLUE_DARK},"&.Mui-focusVisible":{borderColor:gp.BLUE_PALE,boxShadow:`0 0 0 3px ${Vi(gp.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:Sp,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:gp.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${gp.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:gp.GREYSCALE_0_42,backgroundColor:gp.GREYSCALE_100_60,"&:active":{backgroundColor:gp.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:gp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${gp.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:gp.PURPLE,"&.Mui-focusVisible":{borderColor:gp.PURPLE,boxShadow:`0 0 0 3px ${Vi(gp.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:gp.GREEN,"&.Mui-focusVisible":{borderColor:gp.GREEN,boxShadow:`0 0 0 3px ${Vi(gp.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:gp.BLUE,"&.Mui-focusVisible":{borderColor:gp.BLUE,boxShadow:`0 0 0 3px ${Vi(gp.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:gp.ORANGE,"&.Mui-focusVisible":{borderColor:gp.ORANGE,boxShadow:`0 0 0 3px ${Vi(gp.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:gp.RED,"&.Mui-focusVisible":{borderColor:gp.RED,boxShadow:`0 0 0 3px ${Vi(gp.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:gp.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:gp.PURPLE_PALE},"&:active":{backgroundColor:gp.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:gp.PURPLE_PALE,boxShadow:`0 0 0 3px ${Vi(gp.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:gp.GREEN_PALE},"&:active":{backgroundColor:gp.GREEN_DARK},"&.Mui-focusVisible":{borderColor:gp.GREEN_PALE,boxShadow:`0 0 0 3px ${Vi(gp.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:gp.BLUE_PALE},"&:active":{backgroundColor:gp.BLUE_DARK},"&.Mui-focusVisible":{borderColor:gp.BLUE_PALE,boxShadow:`0 0 0 3px ${Vi(gp.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:gp.ORANGE_PALE},"&:active":{backgroundColor:gp.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:gp.ORANGE_PALE,boxShadow:`0 0 0 3px ${Vi(gp.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:gp.RED_PALE},"&:active":{backgroundColor:gp.RED_DARK},"&.Mui-focusVisible":{borderColor:gp.RED_PALE,boxShadow:`0 0 0 3px ${Vi(gp.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:gp.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:gp.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Sp,boxShadow:`inset 0 0 0 2px ${gp.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:fi.jsx(Pp,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:vp,borderRadius:Sp,color:gp.TEXT_PRIMARY,backgroundColor:gp.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:gp.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${gp.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:gp.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:gp.GREYSCALE_0_05,color:gp.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:gp.GREEN,borderColor:gp.GREEN},"&.MuiChip-outlinedInfo":{color:gp.BLUE,borderColor:gp.BLUE},"&.MuiChip-outlinedWarning":{color:gp.ORANGE,borderColor:gp.ORANGE},"&.MuiChip-outlinedError":{color:gp.RED,borderColor:gp.RED}},outlined:{border:`solid 1px ${gp.GREYSCALE_0_15}`,backgroundColor:gp.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Sp,boxShadow:"none",backgroundColor:gp.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:gp.GREEN,borderColor:gp.GREEN},outlinedSecondary:{color:gp.BLUE,borderColor:gp.BLUE},label:{fontFamily:Dp.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:fi.jsx(Pp,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:fi.jsx(Rp,{"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:Sp},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Sp,fontSize:bp,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:gp.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${gp.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:gp.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:gp.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:gp.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Sp,border:`solid 1px ${gp.GREYSCALE_0_15}`,color:gp.GREYSCALE_0_60,marginRight:0,width:xp,height:xp},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${gp.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Sp,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:gp.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:bp}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:vp,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:gp.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:gp.GREYSCALE_25,fontSize:vp,fontFamily:Dp.FONT_FAMILY,fontWeight:Ep,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:gp.TEXT_PRIMARY},"&.Mui-error":{color:gp.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:gp.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Cp,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:gp.TEXT_SECONDARY,content:"'(required)'",fontWeight:Cp,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:bp,lineHeight:"16px",backgroundColor:gp.WHITE,borderRadius:Sp,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gp.GREYSCALE_0_05}`,borderColor:gp.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gp.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${gp.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${gp.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gp.RED}`,boxShadow:`0px 0px 0px 1px ${gp.RED}, inset 0 2px 0 0 ${gp.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gp.GREYSCALE_0_10}`,borderColor:gp.GREYSCALE_0_10,backgroundColor:gp.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:gp.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:gp.GREYSCALE_0_15,borderRadius:Sp,boxShadow:`inset 0 2px 0 0 ${gp.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>fi.jsx(Rp,{...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:gp.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:gp.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:gp.GREYSCALE_0_03},"&:active":{backgroundColor:gp.GREYSCALE_0_10},"&:focus":{backgroundColor:gp.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${gp.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${gp.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:gp.GREYSCALE_0_30,"&:hover":{backgroundColor:gp.GREYSCALE_0_0,borderColor:gp.GREYSCALE_0_15},"& ~svg":{color:gp.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${gp.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Sp}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:gp.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${gp.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:gp.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:bp,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:vp,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:vp,fontWeight:Ep,color:gp.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ep}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${gp.GREYSCALE_0_15}, 0px 0px 0px 1px ${gp.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:fi.jsx(kp,{}),checkedIcon:fi.jsx(Ap,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:gp.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${gp.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:gp.GREEN_PALE,boxShadow:`0 0 0 3px ${Vi(gp.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:gp.BLUE_PALE,boxShadow:`0 0 0 3px ${Vi(gp.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:gp.GREYSCALE_0_20}},"&.Mui-disabled":{fill:gp.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:fi.jsx(Op,{}),checkedIcon:fi.jsx(Mp,{}),indeterminateIcon:fi.jsx(qp,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Sp,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:gp.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:gp.GREYSCALE_0_55,color:gp.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:gp.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:gp.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:gp.GREYSCALE_0_55,"&:hover":{color:gp.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:gp.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:gp.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:bp,color:gp.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ep},secondary:{fontSize:vp,color:gp.GREYSCALE_45,fontWeight:Cp,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:bp,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:bp,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:gp.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:vp,borderBottom:`solid 1px ${gp.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:bp,color:gp.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:gp.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:gp.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:gp.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:gp.RED}}},"&.Mui-focusVisible":{backgroundColor:gp.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:gp.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:gp.GREEN,height:"24px","&.Mui-disabled":{color:gp.GREYSCALE_0_15}},rail:{backgroundColor:gp.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${gp.GREYSCALE_0_05}`,borderRadius:Sp,boxShadow:`inset 0px 0px 0px 1px ${gp.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${gp.GREYSCALE_0_05}`,borderRadius:Sp},thumb:{height:"16px",width:"16px",borderRadius:Sp,backgroundColor:gp.WHITE,boxShadow:`0px 1px 2px 0px ${gp.GREYSCALE_0_15}, 0px 0px 0px 1px ${gp.GREYSCALE_0_05}`,"&:hover":{borderRadius:Sp,boxShadow:`0 2px 4px 0 ${gp.GREYSCALE_0_30}, 0 0 0 1px ${gp.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${gp.GREYSCALE_0_15}, 0 0 0 1px ${gp.GREYSCALE_0_06}, 0 0 0 2px ${gp.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${gp.GREYSCALE_0_15}, 0 0 0 1px ${gp.GREYSCALE_0_06}, 0 0 0 2px ${gp.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:gp.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:gp.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:gp.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:gp.GREYSCALE_0_15},markLabel:{color:gp.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:gp.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:gp.WHITE,color:gp.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:gp.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:gp.GREEN_PALE,boxShadow:`0 0 0 3px ${Vi(gp.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:gp.BLUE_PALE,boxShadow:`0 0 0 3px ${Vi(gp.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:gp.GREYSCALE_0_15,borderRadius:Sp},thumb:{height:"16px",width:"16px",borderRadius:Sp,backgroundColor:gp.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:bp,fontWeight:Ep,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${gp.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${gp.MISC_FOCUS_BORDER}`,backgroundColor:gp.GREYSCALE_0_03,borderRadius:Sp},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:gp.GREYSCALE_25,"&.Mui-selected":{color:gp.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:bp,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Sp,"&:hover":{backgroundColor:gp.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 ${gp.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${gp.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Sp,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:gp.GREYSCALE_0_05},"&:hover":{backgroundColor:gp.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${gp.GREYSCALE_85}`,borderRight:`1px solid ${gp.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ep,backgroundColor:gp.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:gp.GREYSCALE_98,borderBottom:`1px solid ${gp.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${gp.GREYSCALE_85}`,borderTop:`1px solid ${gp.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:gp.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:gp.GREYSCALE_0_05,"&:hover":{backgroundColor:gp.GREYSCALE_0_03}},"&&:hover":{backgroundColor:gp.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>fi.jsx(Tp,{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 ${gp.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:bp,borderRadius:Sp,padding:"7px 16px",border:`1px solid ${gp.GREYSCALE_0_15}`,backgroundColor:gp.GREYSCALE_100_60,color:gp.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:gp.GREYSCALE_0_10,border:`1px solid ${gp.GREYSCALE_0_30}`},"&:hover":{backgroundColor:gp.GREYSCALE_0_03,border:`1px solid ${gp.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:gp.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${gp.MISC_FOCUS_BORDER}`,border:`1px solid ${gp.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:gp.GREYSCALE_25,backgroundColor:gp.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:gp.GREYSCALE_0_10,border:`1px solid ${gp.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:vp,height:24,width:24,padding:7},sizeLarge:{fontSize:yp,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:bp,borderRadius:Sp}}},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:gp.GREYSCALE_20},tooltip:{backgroundColor:gp.GREYSCALE_20,fontSize:vp,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const jp=e=>({mode:"light",primary:{ultraLight:gp.GREEN_ULTRA_LIGHT,light:gp.GREEN_PALE,main:gp.GREEN,dark:gp.GREEN_DARK,extraDark:gp.GREEN_EXTRA_DARK,contrastText:gp.WHITE},secondary:{ultraLight:gp.BLUE_ULTRA_LIGHT,light:gp.BLUE_PALE,main:gp.BLUE,dark:gp.BLUE_DARK,extraDark:gp.BLUE_EXTRA_DARK,contrastText:gp.WHITE},error:{ultraLight:gp.RED_ULTRA_LIGHT,light:gp.RED_PALE,main:gp.RED,dark:gp.RED_DARK,extraDark:gp.RED_EXTRA_DARK,contrastText:gp.WHITE},warning:{ultraLight:gp.ORANGE_ULTRA_LIGHT,light:gp.ORANGE_PALE,main:gp.ORANGE,dark:gp.ORANGE_DARK,extraDark:gp.ORANGE_EXTRA_DARK,contrastText:gp.WHITE},success:{ultraLight:gp.GREEN_ULTRA_LIGHT,light:gp.GREEN_PALE,main:gp.GREEN,dark:gp.GREEN_DARK,extraDark:gp.GREEN_EXTRA_DARK,contrastText:gp.WHITE},info:{ultraLight:gp.BLUE_ULTRA_LIGHT,light:gp.BLUE_PALE,main:gp.BLUE,dark:gp.BLUE_DARK,extraDark:gp.BLUE_EXTRA_DARK,contrastText:gp.WHITE},text:{primary:gp.TEXT_PRIMARY,secondary:gp.TEXT_SECONDARY,disabled:gp.GREYSCALE_0_30},action:{hover:gp.GREYSCALE_0_03,hoverOpacity:.03,selected:gp.GREYSCALE_0_05,selectedOpacity:.05,focus:gp.MISC_FOCUS_BORDER},amethyst:{ultraLight:gp.WHITE,main:gp.PURPLE,light:gp.PURPLE_PALE,dark:gp.PURPLE_DARK,extraDark:gp.GREYSCALE_0_0,contrastText:gp.WHITE},background:{paper:gp.WHITE,default:gp.GREYSCALE_95},divider:gp.GREYSCALE_0_15}),_p=(e="light")=>us({components:Np(),palette:jp(),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:bp,fontWeightLight:wp,fontWeightRegular:Cp,fontWeightMedium:Ep,fontWeightBold:Ip,htmlFontSize:bp,fontFamily:Dp.FONT_FAMILY,button:{fontWeight:Ep,fontSize:bp,textTransform:"none"},body1:{fontSize:yp,lineHeight:"24px"},body2:{fontSize:bp,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:xp,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:yp,fontWeight:Ep,lineHeight:"16px"},h6:{fontSize:bp,fontWeight:Ep,lineHeight:"16px"},caption:{color:gp.TEXT_SECONDARY},subtitle1:{fontSize:bp,color:gp.TEXT_SECONDARY},subtitle2:{fontSize:vp,color:gp.TEXT_SECONDARY}},shape:{borderRadius:Sp}});function Fp(e){return"init"in e}function zp(e){return"function"==typeof e.write}function Wp(e){return"v"in e||"e"in e}function $p(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}function Hp(e){return"function"==typeof(null==e?void 0:e.then)}function Vp(e,t,n){if(!n.p.has(e)){n.p.add(e);const r=()=>n.p.delete(e);t.then(r,r)}}function Bp(e,t,n){const r=n.get(e),o=null==r?void 0:r.t,i=t.p;if(!(null==o?void 0:o.size))return i;if(!i.size)return o;const a=new Set(o);for(const e of i)a.add(e);return a}const Gp=()=>{const e={},t=new WeakMap,n=n=>{var r,o;null==(r=t.get(e))||r.forEach(e=>e(n)),null==(o=t.get(n))||o.forEach(e=>e())};return n.add=(n,r)=>{const o=n||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(r),()=>{i.delete(r),i.size||t.delete(o)}},n};function Up(e){return e.i||(e.i=Gp()),e.r||(e.r=Gp()),e.c||(e.c=Gp()),e.m||(e.m=Gp()),e.u||(e.u=Gp()),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 Yp=(e,t,n,...r)=>n.read(...r),Kp=(e,t,n,...r)=>n.write(...r),Xp=(e,t,n)=>n.INTERNAL_onInit(t),Jp=(e,t,n,r)=>{var o;return null==(o=n.onMount)?void 0:o.call(n,r)},Zp=(e,t,n)=>{var r;const o=e[0];let i=o.get(n);if(!i){const a=e[6],s=e[9];i={d:new Map,p:new Set,n:0},o.set(n,i),null==(r=a.i)||r.call(a,n),function(e){return!!e.INTERNAL_onInit}(n)&&s(e,t,n)}return i},Qp=(e,t)=>{var n;const r=e[1],o=e[3],i=e[4],a=e[5],s=e[6],l=e[13];if(!(s.f||o.size||i.size||a.size))return;const c=[],u=e=>{try{e()}catch(e){c.push(e)}};do{s.f&&u(s.f);const c=new Set;for(const e of o){const t=null==(n=r.get(e))?void 0:n.l;if(t)for(const e of t)c.add(e)}o.clear();for(const e of a)c.add(e);a.clear();for(const e of i)c.add(e);i.clear();for(const e of c)u(e);o.size&&l(e,t)}while(o.size||a.size||i.size);if(c.length)throw new AggregateError(c)},ef=(e,n)=>{const r=e[1],o=e[2],i=e[3],a=e[11],s=e[14],l=e[17];if(!i.size)return;const c=[],u=[],d=new WeakSet,p=new WeakSet,f=[],h=[];for(const t of i)f.push(t),h.push(a(e,n,t));for(;f.length;){const i=f.length-1,s=f[i],l=h[i];if(p.has(s))f.pop(),h.pop();else if(d.has(s)){if(o.get(s)===l.n)c.push(s),u.push(l);else if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&o.has(s))throw new Error("[Bug] invalidated atom exists");p.add(s),f.pop(),h.pop()}else{d.add(s);for(const t of Bp(s,l,r))d.has(t)||(f.push(t),h.push(a(e,n,t)))}}for(let t=c.length-1;t>=0;--t){const r=c[t],a=u[t];let d=!1;for(const e of a.d.keys())if(e!==r&&i.has(e)){d=!0;break}d&&(o.set(r,a.n),s(e,n,r),l(e,n,r)),o.delete(r)}},tf=new WeakSet,nf=(e,n,r)=>{var o,i;const a=e[1],s=e[2],l=e[3],c=e[6],u=e[7],d=e[11],p=e[12],f=e[13],h=e[14],m=e[16],g=e[17],v=e[20],b=e[26],y=e[28],x=d(e,n,r),S=y[0];if(Wp(x)){if(a.has(r)&&s.get(r)!==x.n||x.m===S)return x.m=S,x;let t=!1;for(const[r,o]of x.d)if(h(e,n,r).n!==o){t=!0;break}if(!t)return x.m=S,x}let w=!0;const C=new Set(x.d.keys()),E=()=>{for(const e of C)x.d.delete(e)},I=()=>{if(a.has(r)){const t=!l.size;g(e,n,r),t&&(f(e,n),p(e,n))}},D=t=>{var o;if(t===r){const r=d(e,n,t);if(!Wp(r)){if(!Fp(t))throw new Error("no atom init");v(e,n,t,t.init)}return $p(r)}const i=h(e,n,t);try{return $p(i)}finally{C.delete(t),x.d.set(t,i.n),Hp(x.v)&&Vp(r,x.v,i),a.has(r)&&(null==(o=a.get(t))||o.t.add(r)),w||I()}};let R,L;const M={get signal(){return R||(R=new AbortController),R.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)||zp(r)||console.warn("setSelf function cannot be used with read-only atom"),!L&&zp(r)&&(L=(...o)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&w&&console.warn("setSelf function cannot be called in sync"),!w)try{return m(e,n,r,o)}finally{f(e,n),p(e,n)}}),L}},A=x.n,P=s.get(r)===A;try{"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&tf.delete(n);const i=u(e,n,r,D,M);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&tf.has(n)&&console.warn("Detected store mutation during atom read. This is not supported."),v(e,n,r,i),Hp(i)){b(e,n,i,()=>null==R?void 0:R.abort());const t=()=>{E(),I()};i.then(t,t)}else E();return null==(o=c.r)||o.call(c,r),x.m=S,x}catch(e){return delete x.v,x.e=e,++x.n,x.m=S,x}finally{w=!1,x.n!==A&&P&&(s.set(r,x.n),l.add(r),null==(i=c.c)||i.call(c,r))}},rf=(e,t,n)=>{const r=e[1],o=e[2],i=e[11],a=[n];for(;a.length;){const n=a.pop(),s=i(e,t,n);for(const l of Bp(n,s,r)){const n=i(e,t,l);o.get(l)!==n.n&&(o.set(l,n.n),a.push(l))}}},of=(e,n,r,o)=>{const i=e[3],a=e[6],s=e[8],l=e[11],c=e[12],u=e[13],d=e[14],p=e[15],f=e[16],h=e[17],m=e[20],g=e[28];let v=!0;const b=t=>$p(d(e,n,t)),y=(o,...s)=>{var d;const b=l(e,n,o);try{if(o===r){if(!Fp(o))throw new Error("atom not writable");"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&tf.add(n);const r=b.n,l=s[0];return m(e,n,o,l),h(e,n,o),void(r!==b.n&&(++g[0],i.add(o),p(e,n,o),null==(d=a.c)||d.call(a,o)))}return f(e,n,o,s)}finally{v||(u(e,n),c(e,n))}};try{return s(e,n,r,b,y,...o)}finally{v=!1}},af=(e,t,n)=>{var r;const o=e[1],i=e[3],a=e[6],s=e[11],l=e[15],c=e[18],u=e[19],d=s(e,t,n),p=o.get(n);if(p&&d.d.size>0){for(const[o,u]of d.d)if(!p.d.has(o)){const d=s(e,t,o);c(e,t,o).t.add(n),p.d.add(o),u!==d.n&&(i.add(o),l(e,t,o),null==(r=a.c)||r.call(a,o))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const o=u(e,t,r);null==o||o.t.delete(n)}}},sf=(e,t,n)=>{var r;const o=e[1],i=e[4],a=e[6],s=e[10],l=e[11],c=e[12],u=e[13],d=e[14],p=e[16],f=e[18],h=l(e,t,n);let m=o.get(n);if(!m){d(e,t,n);for(const r of h.d.keys()){f(e,t,r).t.add(n)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(n,m),zp(n)&&function(e){return!!e.onMount}(n)){const r=()=>{let r=!0;const o=(...o)=>{try{return p(e,t,n,o)}finally{r||(u(e,t),c(e,t))}};try{const i=s(e,t,n,o);i&&(m.u=()=>{r=!0;try{i()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,n)}return m},lf=(e,t,n)=>{var r,o;const i=e[1],a=e[5],s=e[6],l=e[11],c=e[19],u=l(e,t,n);let d=i.get(n);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(n)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(n);for(const r of u.d.keys()){const o=c(e,t,r);null==o||o.t.delete(n)}null==(o=s.u)||o.call(s,n)},cf=(e,t,n,r)=>{const o=e[11],i=e[27],a=o(e,t,n),s="v"in a,l=a.v;if(Hp(r))for(const i of a.d.keys())Vp(n,r,o(e,t,i));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,Hp(l)&&i(e,t,l))},uf=(e,t,n)=>$p((0,e[14])(e,t,n)),df=(e,t,n,...r)=>{const o=e[3],i=e[12],a=e[13],s=e[16],l=o.size;try{return s(e,t,n,r)}finally{o.size!==l&&(a(e,t),i(e,t))}},pf=(e,t,n,r)=>{const o=e[12],i=e[18],a=e[19],s=i(e,t,n).l;return s.add(r),o(e,t),()=>{s.delete(r),a(e,t,n),o(e,t)}},ff=(e,t,n,r)=>{const o=e[25];let i=o.get(n);if(!i){i=new Set,o.set(n,i);const e=()=>o.delete(n);n.then(e,e)}i.add(r)},hf=(e,t,n)=>{const r=e[25].get(n);null==r||r.forEach(e=>e())},mf=new WeakMap;function gf(e){const n=mf.get(e);if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!n)throw new Error("Store must be created by buildStore to read its building blocks");const r=n[24];return r?r(n,e):n}function vf(...e){const t={get:e=>r(n,t,e),set:(e,...r)=>o(n,t,e,...r),sub:(e,r)=>i(n,t,e,r)},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},Yp,Kp,Xp,Jp,Zp,Qp,ef,nf,rf,of,af,sf,lf,cf,uf,df,pf,void 0,new WeakMap,ff,hf,[0]].map((t,n)=>e[n]||t);mf.set(t,Object.freeze(n));const r=n[21],o=n[22],i=n[23];return t}let bf,yf=0;function xf(e,n){const r="atom"+ ++yf,o={toString(){return"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?o.read=e:(o.init=e,o.read=Sf,o.write=wf),n&&(o.write=n),o}function Sf(e){return e(this)}function wf(e,t,n){return t(this,"function"==typeof n?n(e(this)):n)}function Cf(){return vf()}const Ef=c(void 0);function If(e){const n=h(Ef);return(null==e?void 0:e.store)||n||(bf||(bf=Cf(),"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=bf),globalThis.__JOTAI_DEFAULT_STORE__!==bf&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),bf)}function Df({children:e,store:t}){const n=l(null);return t?r(Ef.Provider,{value:t},e):(null===n.current&&(n.current=Cf()),r(Ef.Provider,{value:n.current},e))}const Rf=e=>"function"==typeof(null==e?void 0:e.then),Lf=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},Mf=n.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Lf(e),e)}),Af=new WeakMap,Pf=(e,t,n)=>{const r=gf(e),o=r[26];let i=Af.get(t);return i||(i=new Promise((a,s)=>{let l=t;const c=e=>t=>{l===e&&a(t)},u=e=>t=>{l===e&&s(t)},d=()=>{try{const t=n();Rf(t)?(Af.set(t,i),l=t,t.then(c(t),u(t)),o(r,e,t,d)):a(t)}catch(e){s(e)}};t.then(c(t),u(t)),o(r,e,t,d)}),Af.set(t,i)),i};function qf(e,t){const{delay:r,unstable_promiseStatus:o=!n.use}={},i=If(t),[[a,s,l],c]=u(t=>{const n=i.get(e);return Object.is(t[0],n)&&t[1]===i&&t[2]===e?t:[n,i,e]},void 0,()=>[i.get(e),i,e]);let f=a;if(s===i&&l===e||(c(),f=i.get(e)),d(()=>{const t=i.sub(e,()=>{if(o)try{const t=i.get(e);Rf(t)&&Lf(Pf(i,t,()=>i.get(e)))}catch(e){}if("number"==typeof r)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(c,r);c()});return c(),t},[i,e,r,o]),p(f),Rf(f)){const t=Pf(i,f,()=>i.get(e));return o&&Lf(t),Mf(t)}return f}function kf(e,n){const r=If(n);return f((...n)=>{if("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...n)},[r,e])}function Tf(e,t){return[qf(e,t),kf(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))}},n){var r;let o,i;const a={getItem:(t,r)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==n?void 0:n.reviver)}catch(e){return r}o=e}return i},c=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(c)?c.then(l):l(c)},setItem:(t,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n,void 0))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let s;try{s=null==(r=e())?void 0:r.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),s&&(a.subscribe=(l=s,(e,t,n)=>l(e,e=>{let r;try{r=JSON.parse(e||"")}catch(e){r=n}t(r)})))}();const Of=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),Nf=new WeakMap,jf=()=>{};const _f=new WeakMap;function Ff(e,t){const n=If(t),r=zf(n);for(const[o,...i]of e)r.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(o),n.set(o,...i))}const zf=e=>{let t=_f.get(e);return t||(t=new WeakSet,_f.set(e,t)),t};function Wf(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function $f(e){const t=xf(()=>[]),n=xf(function(e){const[r,o,i]=e(t);i.has(n)&&(r.forEach(e),++o.n)});return n.effect=e,n.INTERNAL_onInit=e=>{const r=gf(e),o=r[1],i=r[3],a=Up(r[6]),s=r[11],l=r[12],c=r[13],u=r[14],d=r[15],p=r[16],f=r[17],h=r[20],m=new Set;let g,v=0,b=!1,y=!1,x=!1;function S(){if(v)return;m.clear();let t=!0;const w=i=>{if(x)return e.get(i);if(i===n){const t=s(r,e,i);if(!Wp(t)){if(!Fp(i))throw new Error("no atom init");h(r,e,i,i.init)}return $p(t)}const a=u(r,e,i);try{return $p(a)}finally{C.d.set(i,a.n),o.get(i)?.t.add(n),t?m.add(i):o.has(i)&&(f(r,e,n),c(r,e),l(r,e))}};w.peek=e.get;const E=(o,...u)=>{const m=s(r,e,o);try{if(++v,o===n){if(!Fp(o))throw new Error("atom not writable");const t=m.n,n=u[0];return h(r,e,o,n),f(r,e,o),void(t!==m.n&&(i.add(o),a.c?.(o),d(r,e,o)))}return p(r,e,o,u)}finally{t||(c(r,e),l(r,e)),--v}};E.recurse=(t,...o)=>{if(x){if(Wf())throw new Error("set.recurse is not allowed in cleanup")}else try{return b=!0,f(r,e,n),E(t,...o)}finally{c(r,e),b=!1,y&&(y=!1,S())}};try{g?.();const e=n.effect(w,E);if("function"!=typeof e)return;g=()=>{if(!v)try{return t=!0,x=!0,e()}finally{t=!1,x=!1,g=void 0}}}finally{t=!1,m.forEach(t=>{C.d.set(t,s(r,e,t).n)}),f(r,e,n),c(r,e)}}const w=function(e,t){let n=Hf.get(e);n||(n=new Set,Hf.set(e,n),t.f.add(function(){for(const e of n)n.delete(e),e()}));return n}(e,a),C=s(r,e,n);C.v=void 0,Object.assign(e.get(t),[m,C,o]),a.c.add(n,function(){i.delete(n)}),a.m.add(n,function(){w.add(S),g&&w.delete(g)}),a.u.add(n,function(){w.delete(S),g&&w.add(g)}),a.c.add(n,function(){b?y=!0:w.add(S)})},Wf()&&(Object.defineProperty(t,"debugLabel",{get:()=>n.debugLabel?`${n.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),n}const Hf=new WeakMap;const Vf=async(e,t,n)=>{const r=e.get(n);void 0!==r&&("dimension"===r?await t.moveDimensionToAlternative(n):await t.moveMeasureToAlternative(n))},Bf=async(e,t,n)=>{const r=e.get(n);void 0!==r&&("dimension"===r?await t.moveDimensionFromAlternative(n):await t.moveMeasureFromAlternative(n))},Gf=e=>{const{type:t,handler:n,model:r,fieldTypeById:o,handlerQueue:i}=e;void 0!==n&&void 0!==r&&i&&i.add(async()=>{switch(t){case"apply":for(const t of e.localChecked)await Bf(o,n,t);for(const t of e.localUnchecked)await Vf(o,n,t);break;case"checked":await Bf(o,n,e.cId);break;case"unchecked":await Vf(o,n,e.cId)}})},Uf=xf(),Yf=xf(),Kf=xf(),Xf=xf(e=>e(Kf)?.translate??(e=>e)),Jf=xf(""),Zf=xf(e=>{const t=e(Jf).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)}),Qf=xf(e=>e(Kf)?.getBooleanFlag??(()=>!1)),eh=e=>7005!==e.qError?.qErrorCode,th=new WeakMap,nh={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},rh=function(e,n=jf){return((e,t,n)=>{const r=Of(()=>new WeakMap,Nf,t);return Of(e,r,n)})(()=>{const r=new WeakMap,o=new WeakMap,i=xf(0),a=xf([]);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=xf(t=>{let l;t(i);try{l=t(s)}catch(e){}const c=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(c))return{v:c};if(c!==(null==l?void 0:l.p)&&c.then(e=>{o.set(c,e);const[n]=t(a);n()},e=>{r.set(c,e);const[n]=t(a);n()}),r.has(c))throw r.get(c);return o.has(c)?{p:c,v:o.get(c)}:l&&"v"in l?{p:c,f:n(l.v),v:l.v}:{p:c,f:n()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),xf(e=>{const t=e(s);return"f"in t?t.f:t.v},(t,n,...r)=>n(e,...r))},e,n)}(xf(async e=>{const t=e(Uf);if(t){if(th.has(t))return th.get(t);try{const e=await t.app.createSessionObject(nh);return th.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}})),oh=xf(null),ih=xf(),ah=$f((e,t)=>{const n=e(Uf),r=e(rh);if(!n||!r)return;const o=async()=>{const e=await n.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=await n.getEffectiveProperties();await r.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 r.getLayout();t(ih,{layout:structuredClone(e),properties:structuredClone(o),altLayout:structuredClone(i)}),t(oh,null)};return o(),n.Invalidated?.bind(o),()=>{n.Invalidated?.unbind(o)}}),sh=xf(e=>e(ih)?.layout),lh=xf(e=>e(ih)?.altLayout),ch=xf(e=>e(ih)?.properties),uh=xf(e=>{const t=e(ih)?.layout;return t?.qHyperCube.qDimensionInfo.filter(eh)??[]}),dh=xf(e=>{const t=e(ih)?.layout;return t?.qHyperCube.qMeasureInfo.filter(eh)??[]}),ph=xf(e=>{const t=e(ch),n=new Map;return t?(t.qHyperCubeDef.qDimensions.forEach(e=>{n.set(e.qDef.cId,"dimension")}),t.qHyperCubeDef.qMeasures.forEach(e=>{n.set(e.qDef.cId,"measure")}),t.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef.qDimensions?.forEach(e=>{n.set(e.qDef.cId,"dimension")}),t.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef.qMeasures?.forEach(e=>{n.set(e.qDef.cId,"measure")}),n):n});class fh{#e=[];#t=!1;#n=!1;#r;#o;#i;#a;constructor({onQueueCompleted:e}){this.#r=e}#s(){this.#o=void 0,this.#i=void 0,this.#a=void 0}pause(){this.#o&&(clearTimeout(this.#a),this.#i?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#o=e,this.#i=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#i;var n;await(n=e,new Promise(e=>{setTimeout(e,n)})),t===this.#i&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#n=!0,this.#e=[],this.#i?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#n=!1;this.#e.length>0;)if(this.#o)await this.#o;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#n||await(this.#r?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const hh=xf(null),mh=$f((e,t)=>{const n=e(Uf),r=e(Yf),o=new fh({onQueueCompleted:async()=>{n&&r&&await n.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef)}],!0)}});t(hh,o);const i=()=>{o.pause()},a=()=>{o.continue(500)},s=()=>{o.abort()};return n?.Invalidated?.bind(i),n?.Validated?.bind(a),n?.Cancelled?.bind(s),n?.Closing?.bind(s),()=>{o.abort(),n?.Invalidated?.unbind(i),n?.Validated?.unbind(a),n?.Cancelled?.unbind(s),n?.Closing?.unbind(s)}}),gh=xf(e=>{const t=[...e(uh),...e(dh)].map(e=>e.cId);return new Set(t)}),vh=xf(new Set),bh=xf(new Set),yh=xf(e=>{const t=e(vh),n=e(bh);return e(gh).difference(n).union(t)}),xh=$f((e,t)=>{e(gh),t(vh,new Set),t(bh,new Set)}),Sh=xf(e=>e(yh),(e,t,n)=>{if("string"!=typeof n)return;const r=e(yh).has(n),o=new Set(e(bh)),i=new Set(e(vh));r?(o.add(n),i.delete(n)):(i.add(n),o.delete(n)),t(bh,o),t(vh,i),Gf({type:r?"unchecked":"checked",cId:n,handler:e(Yf),model:e(Uf),fieldTypeById:e(ph),handlerQueue:e(hh)})}),wh=({props:e,children:t})=>(Ff([[Uf,e.args.model],[Kf,e.args.apis],[Yf,e.args.handler]]),qf(xh),qf(ah),qf(mh),t);function Ch(e,t){const n=new Set(e),r=new Set(t);return e===t||n.size===r.size&&Array.from(n).every(r.has.bind(r))}function Eh(e){return"write"in e}const Ih=new WeakMap,Dh={},{read:Rh,write:Lh}=xf(null);function Mh(e,t,n){const[r,o,i,,a]=e,s=r.get(t);if(s)return s;if(n===e){let r=o.get(t);return r||(r=[kh(e,t,n),n],o.set(t,r)),r}const l=n??Dh;let c=i.get(l);c||(c=new WeakMap,i.set(l,c));let u=c.get(t);if(!u){const[r,o]=a?Mh(a,t,n):[t];u=[t.read===Rh?r:kh(e,t,o),o],c.set(t,u)}return u}function Ah(e){for(const t of e[5])t()}function Ph(e,t,n,r,o){if(n.read===Rh&&Eh(n)&&Eh(t)&&n.write!==Lh&&e!==r){const{write:i}=n;return t.write=qh(e,n.write.bind(n),r,o),()=>{t.write=i}}}function qh(e,t,n,r=n){return function(o,i,...a){return t(function(t){const[r]=Mh(e,t,n);return o(r)},function(t,...o){const[a]=Mh(e,t,n),s=Ph(e,a,t,n,r);try{return i(a,...o)}finally{null==s||s()}},...a)}}function kh(e,t,n){const r=Object.getOwnPropertyDescriptors(t);Object.keys(r).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>r[e].configurable=!0);const o=Object.getPrototypeOf(t),i=Object.create(o,r);return i.read!==Rh&&(i.read=function(e,t,n){return function(r,o){return t(function(t){const[o]=Mh(e,t,n);return r(o)},o)}}(e,t.read.bind(t),n)),Eh(i)&&Eh(t)&&i.write!==Lh&&(i.write=qh(e,t.write.bind(t),n)),i}function Th({atoms:e=[],atomFamilies:t=[],parentStore:n,name:r}){const o=new WeakSet(e),i=Ih.get(n),a=(null==i?void 0:i[3])??n,s=[new WeakMap,new WeakMap,new WeakMap,a,i,new Set,void 0],l=s[0],c=s[5],u=function(e){const t=e[3],n=[...gf(t)],r=n[21],o=n[22],i=n[23],a={};let s,l;return n[21]=h(r),n[22]=p,n[23]=h(i),n[24]=function(e){return s??(s=m(e[0],c)),l??(l=[s,m(e[1],u),m(e[2]),g(e[3]),e[4],e[5],b(e[6]),h(e[7]),h(e[8]),h(e[9]),h(e[10]),d(s,e[11]),(t,...r)=>e[12](n,...r),(t,...r)=>e[13](n,...r),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,e[25],(t,...r)=>e[26](n,...r),(t,...r)=>e[27](n,...r),e[28],...e.slice(25)]),l},vf(...n);function c(t){const n=new WeakMap;return function(r){let o=n.get(r);if(o)return o;const i=t(r);if(!i)return;let a,s;return o=new Proxy(i,{get:(t,n)=>"d"===n?a??(a=m(i.d,function(t){return n=>t(Mh(e,n)[0])})):"p"===n?s??(s=g(i.p)):Reflect.get(i,n)}),n.set(r,o),o}}function u(e){const t=new WeakMap;return function(n){let r=t.get(n);if(r)return r;const o=e(n);return o?(r={...o,d:g(o.d),t:g(o.t),get u(){return o.u},set u(e){o.u=e}},t.set(n,r),r):void 0}}function d(e,t){const n=h(t);return function(t,r,o){const i=e.get(o);if(i)return i;const a=n(t,r,o);return e.set(o,a),e.get(o)}}function p(t,n,r,...i){const[a,s]=Mh(e,r),l=Ph(e,a,r,s,e);try{return o(t,n,a,...i)}finally{null==l||l()}}function f(t,n){return function(r,...o){const[i]=Mh(e,r);return(n?n(t):t)(i,...o)}}function h(t){return function(r,o,i,...a){const[s]=Mh(e,i);return t(n,o,s,...a)}}function m(e,t){const n={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))};if("function"==typeof e.keys){const t=e,r=n;r.keys=t.keys.bind(t),r[Symbol.iterator]=t[Symbol.iterator].bind(t),Object.defineProperty(n,"size",{enumerable:!1,configurable:!0,get:()=>t.size})}return n}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 n of t)yield Mh(e,n)[0]}}}function v(t){if(!t)return;const n=f(t);return n.add=function(n,r){if(void 0===n)return t.add(void 0,r);const[o]=Mh(e,n);return t.add(o,r)},n}function b(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:()=>a[t]??(a[t]=v(e[t])),set(n){delete a[t],e[t]=n},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=u,Object.assign(u,{name:r}),Ih.set(u,s);for(const t of new Set(e))l.set(t,[kh(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const n=e(t);l.has(n)||l.set(n,[kh(s,n,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,[kh(s,t,s),s])});c.add(t)}return u}const Oh=function(e,t){return function(n){const{atoms:o=[],atomFamilies:i=[],children:a,scope:s,name:l}=n,c=t(),u=Array.from(o,e=>Array.isArray(e)?e[0]:e);function p(){return[s??Th({atoms:u,atomFamilies:i,parentStore:c,name:l}),function(e){return c!==e.parentStore||!Ch(u,e.atoms)||!Ch(i,e.atomFamilies)||s!==e.providedScope}]}const[[f,h],g]=m(p);if(h({atoms:u,atomFamilies:i,parentStore:c,providedScope:s})){const e=Ih.get(f);e&&Ah(e),g(p)}return Ff(Array.from(o).filter(Array.isArray),{store:f}),d(()=>{const e=Ih.get(f);return()=>{e&&Ah(e)}},[f]),r(e,{store:f,children:a})}}(Df,If);var Nh=Object.defineProperty,jh=Object.defineProperties,_h=Object.getOwnPropertyDescriptors,Fh=Object.getOwnPropertySymbols,zh=Object.prototype.hasOwnProperty,Wh=Object.prototype.propertyIsEnumerable,$h=(e,t,n)=>t in e?Nh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hh=(e,t)=>{for(var n in t||(t={}))zh.call(t,n)&&$h(e,n,t[n]);if(Fh)for(var n of Fh(t))Wh.call(t,n)&&$h(e,n,t[n]);return e},Vh=(e,t)=>jh(e,_h(t));function Bh(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function Gh(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function Uh(e,t){return function(e,t,n){var r,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const c=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>c(e,a.id)),o=e.findIndex(e=>c(e,s.id));if(-1===r||-1===o){if(Gh(a)){const r=a.initialIndex,o=a.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const u=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of u)if(-1===f&&(f=t.findIndex(e=>c(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>c(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&Gh(a)){const r=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==r||null==i||!(r in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(r===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===i)return Vh(Hh({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return Vh(Hh({},e),{[r]:[...e[r].slice(0,o),...e[r].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==(r=m.shape)?void 0:r.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&&Gh(a)){const t=null!=a.group&&a.group!==d,r=a.index!==f;if(t||r){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return Vh(Hh({},e),{[d]:n(e[d],f,a.index)});const r=e[d][f];return Vh(Hh({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),r,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return Vh(Hh({},e),{[d]:n(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,b=e[d][f];return Vh(Hh({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),b,...e[p].slice(h+v)]})}(e,t,Bh)}function Yh(e,t){let n=null;const r=new Map,o=new Set;function i(o){let s;if(void 0===t)s=r.get(o);else for(const[e,n]of r)if(t(e,o)){s=n;break}if(void 0!==s){if(!n?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return r.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,n){for(const r of o)r({type:e,param:t,atom:n})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>r.keys(),i.remove=e=>{if(void 0===t){if(!r.has(e))return;const[t]=r.get(e);r.delete(e),a("REMOVE",e,t)}else for(const[n,[o]]of r)if(t(n,e)){r.delete(n),a("REMOVE",n,o);break}},i.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,o]]of r)n(o,e)&&(r.delete(e),a("REMOVE",e,t))},i}const Kh=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,Xh=xf(),Jh=xf(e=>e(Xh)?.numberOfSections??0),Zh=xf(e=>e(Xh)?.numberOfItemsInSection??[]),Qh=xf(e=>e(Xh)?.keyExtractor??Kh),em=xf(e=>e(Xh)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),tm=xf(e=>e(Xh)?.onDragEnd),nm=xf(e=>e(Xh)?.onDragOver),rm=xf(e=>e(Xh)?.itemRenderer),om=xf(e=>e(Xh)?.headerRenderer),im=xf(e=>e(Xh)?.dragOverlayRenderer),am=xf(e=>e(Xh)?.onClick),sm=xf(e=>{const t=e(Jh),n=e(Zh),r=e(Qh),o={};for(let e=0;e<t;e++)o[e]=Array.from({length:n[e]},(t,n)=>r({sectionIndex:e,itemIndex:n}));return o}),lm=xf(null),cm=xf(e=>e(lm),(e,t,n)=>{if(null===n)return void t(lm,null);const r=e(lm);t(lm,{...r,...n})}),um=Yh(e=>xf(null,(t,n,r)=>{let o;"over"===e?o=t(nm):"end"===e&&(o=t(tm),n(cm,null));const{source:i,target:a}=r.operation;if("start"===e)return void n(cm,{id:i.id,startSection:i.data.sectionKey,startIndex:i.data.itemIndex,startSectionIndex:i.data.sectionIndex});if(null===a)return void n(cm,{toIndex:void 0,toSectionIndex:void 0});const s=i.data.sectionIndex!==a.data.sectionIndex;let l;if(s){const e=Uh(t(sm),r)[a.data.sectionIndex].indexOf(i.id);l=-1!==e?e:a.sortable?.index??0}else l=a.sortable?.index??0;if("over"===e){const e=t(cm)?.startIndex;n(cm,{toIndex:!s&&void 0!==e&&l>e?l+1:l,toSectionIndex:a.data.sectionIndex})}o?.({id:i.id,toIndex:l,toSection:a.data.sectionKey,fromSection:i.data.sectionKey,startSection:t(cm)?.startSection??i.data.sectionKey,event:r})})),dm=[Xh,Jh,Zh,Qh,em,tm,rm,om,am,cm],pm=[um],fm=({props:e,children:t})=>{const n=kf(Xh);return g(()=>{n(e)},[e,n]),t};var hm=Symbol.for("preact-signals");function mm(){if(xm>1)xm--;else{var e,t=!1;for(!function(){var e=Em;for(Em=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==ym;){var n=ym;for(ym=void 0,Sm++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&Mm(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(Sm=0,xm--,t)throw e}}function gm(e){if(xm>0)return e();Cm=++wm,xm++;try{return e()}finally{mm()}}var vm=void 0;function bm(e){var t=vm;vm=void 0;try{return e()}finally{vm=t}}var ym=void 0,xm=0,Sm=0,wm=0,Cm=0,Em=void 0,Im=0;function Dm(e){if(void 0!==vm){var t=e.n;if(void 0===t||t.t!==vm)return t={i:0,S:e,p:vm.s,n:void 0,t:vm,e:void 0,x:void 0,r:t},void 0!==vm.s&&(vm.s.n=t),vm.s=t,e.n=t,32&vm.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=vm.s,t.n=void 0,vm.s.n=t,vm.s=t),t}}function Rm(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=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 Lm(e,t){return new Rm(e,t)}function Mm(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 Am(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Pm(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function qm(e,t){Rm.call(this,void 0),this.x=e,this.s=void 0,this.g=Im-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 km(e,t){return new qm(e,t)}function Tm(e){var t=e.m;if(e.m=void 0,"function"==typeof t){xm++;var n=vm;vm=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Om(e),t}finally{vm=n,mm()}}}function Om(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Tm(e)}function Nm(e){if(vm!==this)throw new Error("Out-of-order effect");Pm(this),vm=e,this.f&=-2,8&this.f&&Om(this),mm()}function jm(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function _m(e,t){var n=new jm(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}Rm.prototype.brand=hm,Rm.prototype.h=function(){return!0},Rm.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:bm(function(){var e;null==(e=t.W)||e.call(t)}))},Rm.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&bm(function(){var e;null==(e=t.Z)||e.call(t)}))}},Rm.prototype.subscribe=function(e){var t=this;return _m(function(){var n=t.value,r=vm;vm=void 0;try{e(n)}finally{vm=r}},{name:"sub"})},Rm.prototype.valueOf=function(){return this.value},Rm.prototype.toString=function(){return this.value+""},Rm.prototype.toJSON=function(){return this.value},Rm.prototype.peek=function(){var e=this;return bm(function(){return e.value})},Object.defineProperty(Rm.prototype,"value",{get:function(){var e=Dm(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Sm>100)throw new Error("Cycle detected");!function(e){0!==xm&&0===Sm&&e.l!==Cm&&(e.l=Cm,Em={S:e,v:e.v,i:e.i,o:Em})}(this),this.v=e,this.i++,Im++,xm++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{mm()}}}}),qm.prototype=new Rm,qm.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===Im)return!0;if(this.g=Im,this.f|=1,this.i>0&&!Mm(this))return this.f&=-2,!0;var e=vm;try{Am(this),vm=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 vm=e,Pm(this),this.f&=-2,!0},qm.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)}Rm.prototype.S.call(this,e)},qm.prototype.U=function(e){if(void 0!==this.t&&(Rm.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)}},qm.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(qm.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Dm(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),jm.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.m=t)}finally{e()}},jm.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Tm(this),Am(this),xm++;var e=vm;return vm=this,Nm.bind(this,e)},jm.prototype.N=function(){2&this.f||(this.f|=2,this.u=ym,ym=this)},jm.prototype.d=function(){this.f|=8,1&this.f||Om(this)},jm.prototype.dispose=function(){this.d()};var Fm,zm,Wm,$m,Hm,Vm,Bm,Gm,Um,Ym,Km,Xm,Jm,Zm,Qm,eg,tg,ng,rg,og,ig=Object.create,ag=Object.defineProperty,sg=Object.defineProperties,lg=Object.getOwnPropertyDescriptor,cg=Object.getOwnPropertyDescriptors,ug=Object.getOwnPropertySymbols,dg=Object.prototype.hasOwnProperty,pg=Object.prototype.propertyIsEnumerable,fg=e=>{throw TypeError(e)},hg=(e,t,n)=>t in e?ag(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mg=(e,t)=>ag(e,"name",{value:t,configurable:!0}),gg=["class","method","getter","setter","accessor","field","value","get","set"],vg=e=>void 0!==e&&"function"!=typeof e?fg("Function expected"):e,bg=(e,t,n,r,o)=>({kind:gg[e],name:t,metadata:r,addInitializer:e=>n._?fg("Already initialized"):o.push(vg(e||null))}),yg=(e,t)=>{return hg(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r},xg=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},Sg=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=gg[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&lg(d<4?o:{get[n](){return Eg(this,i)},set[n](e){return Dg(this,i,e)}},n));d?f&&d<4&&mg(i,(d>2?"set ":d>1?"get ":"")+n):mg(o,n);for(var y=r.length-1;y>=0;y--)c=bg(d,n,l={},e[3],v),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>Cg(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?Eg:Rg)(e,o,4^d?i:b.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>Dg(e,o,t,4^d?i:b.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,c),l._=1,4^d||void 0===s?vg(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?fg("Object expected"):(vg(a=s.get)&&(b.get=a),vg(a=s.set)&&(b.set=a),vg(a=s.init)&&g.unshift(a));return d||yg(e,o),b&&ag(o,n,b),f?4^d?i:b:o},wg=(e,t,n)=>t.has(e)||fg("Cannot "+n),Cg=(e,t)=>Object(t)!==t?fg('Cannot use the "in" operator on this value'):e.has(t),Eg=(e,t,n)=>(wg(e,t,"read from private field"),n?n.call(e):t.get(e)),Ig=(e,t,n)=>t.has(e)?fg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Dg=(e,t,n,r)=>(wg(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Rg=(e,t,n)=>(wg(e,t,"access private method"),n);function Lg(e,t){if(t){let n;return km(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return km(e)}function Mg(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 n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,n)=>!Mg(e,t[n]))}if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;return!n.some(n=>!Mg(e[n],t[n]))}return!1}function Ag({get:e},t){return{init:e=>Lm(e),get(){return e.call(this).value},set(t){const n=e.call(this);n.peek()!==t&&(n.value=t)}}}function Pg(e,t){const n=new WeakMap;return function(){let t=n.get(this);return t||(t=Lg(e.bind(this)),n.set(this,t)),t.value}}function qg(e=!0){return function(t,n){n.addInitializer(function(){const t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,((e,t)=>sg(e,cg(t)))(((e,t)=>{for(var n in t||(t={}))dg.call(t,n)&&hg(e,n,t[n]);if(ug)for(var n of ug(t))pg.call(t,n)&&hg(e,n,t[n]);return e})({},r),{enumerable:e}))})}}function kg(...e){const t=e.map(e=>_m(e));return()=>t.forEach(e=>e())}Vm=[Ag],Hm=[Ag],$m=[Ag],Wm=[qg()],zm=[qg()],Fm=[qg()];var Tg,Og=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,xg(Bm,5,this),Ig(this,Xm),Ig(this,Gm,xg(Bm,8,this)),xg(Bm,11,this),Ig(this,Jm,xg(Bm,12,this)),xg(Bm,15,this),Ig(this,tg,xg(Bm,16,this)),xg(Bm,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return Eg(this,Xm,rg)}get initial(){return Eg(this,Xm,Ym)}get previous(){return Eg(this,Xm,Qm)}set current(e){const t=bm(()=>Eg(this,Xm,rg));e&&t&&this.equals(t,e)||gm(()=>{Eg(this,Xm,Ym)||Dg(this,Xm,e,Km),Dg(this,Xm,t,eg),Dg(this,Xm,e,og)})}reset(e=this.defaultValue){gm(()=>{Dg(this,Xm,void 0,eg),Dg(this,Xm,e,Km),Dg(this,Xm,e,og)})}};function Ng(e){return bm(()=>{const t={};for(const n in e)t[n]=e[n];return t})}Bm=[,,,ig(null)],Gm=new WeakMap,Xm=new WeakSet,Jm=new WeakMap,tg=new WeakMap,Um=Sg(Bm,20,"#initial",Vm,Xm,Gm),Ym=Um.get,Km=Um.set,Zm=Sg(Bm,20,"#previous",Hm,Xm,Jm),Qm=Zm.get,eg=Zm.set,ng=Sg(Bm,20,"#current",$m,Xm,tg),rg=ng.get,og=ng.set,Sg(Bm,2,"current",Wm,Og),Sg(Bm,2,"initial",zm,Og),Sg(Bm,2,"previous",Fm,Og),yg(Bm,Og);Tg=new WeakMap;var jg,_g,Fg,zg,Wg,$g=Object.create,Hg=Object.defineProperty,Vg=Object.getOwnPropertyDescriptor,Bg=Object.getOwnPropertySymbols,Gg=Object.prototype.hasOwnProperty,Ug=Object.prototype.propertyIsEnumerable,Yg=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Kg=e=>{throw TypeError(e)},Xg=Math.pow,Jg=(e,t,n)=>t in e?Hg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zg=["class","method","getter","setter","accessor","field","value","get","set"],Qg=e=>void 0!==e&&"function"!=typeof e?Kg("Function expected"):e,ev=(e,t,n,r,o)=>({kind:Zg[e],name:t,metadata:r,addInitializer:e=>n._?Kg("Already initialized"):o.push(Qg(e||null))}),tv=(e,t,n,r,o,i)=>{for(var a,s,l,c,u=7&t,d=Zg[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,Vg(o,n)),h=r.length-1;h>=0;h--)(l=ev(u,n,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>n in e},c.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,Qg(a)&&(f[d]=a);return f&&Hg(o,n,f),o},nv=(e,t,n)=>t.has(e)||Kg("Cannot "+n),rv=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.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:n}){return new e(t,n)}},ov=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,r+n,i,a);return l.scale=((e,t)=>{for(var n in t||(t={}))Gg.call(t,n)&&Jg(e,n,t[n]);if(Bg)for(var n of Bg(t))Ug.call(t,n)&&Jg(e,n,t[n]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:n,top:r,right:o,bottom:i}=this;return{width:e,height:t,left:n,top:r,right:o,bottom:i}}get center(){const{left:e,top:t,right:n,bottom:r}=this;return new rv((e+n)/2,(t+r)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:n,top:r,width:o,height:i}=this;return n===t.left&&r===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:n,bottom:r,right:o}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const n=Math.max(t.top,e.top),r=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-r,s=i-n;if(r<o&&n<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}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:n,width:r,height:o}){return new e(n,t,r,o)}static delta(e,t,n={x:"center",y:"center"}){const r=(e,t)=>{const r=n[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==r?o:"end"==r?o+i:o+i/2};return rv.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};var iv,av=class extends(Fg=Og,_g=[Pg],jg=[Pg],Fg){constructor(e){var t,n,r;super(rv.from(e),(e,t)=>rv.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(Wg,5,this),t=this,r=0,(n=zg).has(t)?Kg("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return rv.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=rv.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(nv(a=this,s=zg,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);gm(()=>{((e,t,n)=>{nv(e,t,"write to private field"),t.set(e,n)})(this,zg,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(rv.from(e)),this.velocity={x:0,y:0}}};function sv({x:e,y:t},n){const r=Math.abs(e),o=Math.abs(t);return"number"==typeof n?Math.sqrt(Xg(r,2)+Xg(o,2))>n:"x"in n&&"y"in n?r>n.x&&o>n.y:"x"in n?r>n.x:"y"in n&&o>n.y}Wg=(e=>{var t;return[,,,$g(null!=(t=null==e?void 0:e[Yg("metadata")])?t:null)]})(Fg),zg=new WeakMap,tv(Wg,2,"delta",_g,av),tv(Wg,2,"direction",jg,av),iv=Wg,Jg(av,Yg("metadata"),iv[3]);var lv,cv,uv,dv,pv=(e=>(e.Horizontal="x",e.Vertical="y",e))(pv||{}),fv=Object.values(pv),hv=Object.create,mv=Object.defineProperty,gv=Object.defineProperties,vv=Object.getOwnPropertyDescriptor,bv=Object.getOwnPropertyDescriptors,yv=Object.getOwnPropertySymbols,xv=Object.prototype.hasOwnProperty,Sv=Object.prototype.propertyIsEnumerable,wv=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Cv=e=>{throw TypeError(e)},Ev=(e,t,n)=>t in e?mv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Iv=(e,t)=>{for(var n in t||(t={}))xv.call(t,n)&&Ev(e,n,t[n]);if(yv)for(var n of yv(t))Sv.call(t,n)&&Ev(e,n,t[n]);return e},Dv=(e,t)=>gv(e,bv(t)),Rv=(e,t)=>mv(e,"name",{value:t,configurable:!0}),Lv=(e,t)=>{var n={};for(var r in e)xv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&yv)for(var r of yv(e))t.indexOf(r)<0&&Sv.call(e,r)&&(n[r]=e[r]);return n},Mv=e=>{var t;return[,,,hv(null!=(t=null==e?void 0:e[wv("metadata")])?t:null)]},Av=["class","method","getter","setter","accessor","field","value","get","set"],Pv=e=>void 0!==e&&"function"!=typeof e?Cv("Function expected"):e,qv=(e,t,n,r,o)=>({kind:Av[e],name:t,metadata:r,addInitializer:e=>n._?Cv("Already initialized"):o.push(Pv(e||null))}),kv=(e,t)=>Ev(t,wv("metadata"),e[3]),Tv=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},Ov=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=Av[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&vv(d<4?o:{get[n](){return _v(this,i)},set[n](e){return zv(this,i,e)}},n));d?f&&d<4&&Rv(i,(d>2?"set ":d>1?"get ":"")+n):Rv(o,n);for(var y=r.length-1;y>=0;y--)c=qv(d,n,l={},e[3],v),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>jv(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?_v:Wv)(e,o,4^d?i:b.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>zv(e,o,t,4^d?i:b.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,c),l._=1,4^d||void 0===s?Pv(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?Cv("Object expected"):(Pv(a=s.get)&&(b.get=a),Pv(a=s.set)&&(b.set=a),Pv(a=s.init)&&g.unshift(a));return d||kv(e,o),b&&mv(o,n,b),f?4^d?i:b:o},Nv=(e,t,n)=>t.has(e)||Cv("Cannot "+n),jv=(e,t)=>Object(t)!==t?Cv('Cannot use the "in" operator on this value'):e.has(t),_v=(e,t,n)=>(Nv(e,t,"read from private field"),n?n.call(e):t.get(e)),Fv=(e,t,n)=>t.has(e)?Cv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),zv=(e,t,n,r)=>(Nv(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Wv=(e,t,n)=>(Nv(e,t,"access private method"),n);function $v(e,t){return{plugin:e,options:t}}function Hv(e){return t=>$v(e,t)}function Vv(e){return"function"==typeof e?{plugin:e,options:void 0}:e}lv=[Ag];var Bv=class{constructor(e,t){this.manager=e,this.options=t,Fv(this,uv,Tv(cv,8,this,!1)),Tv(cv,11,this),Fv(this,dv,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return bm(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=_m(e.bind(this));return _v(this,dv).add(t),t}destroy(){_v(this,dv).forEach(e=>e())}static configure(e){return $v(this,e)}};cv=Mv(null),uv=new WeakMap,dv=new WeakMap,Ov(cv,4,"disabled",lv,Bv,uv),kv(cv,Bv);var Gv,Uv=class extends Bv{},Yv=class{constructor(e){this.manager=e,this.instances=new Map,Fv(this,Gv,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(Vv).reduce((e,t)=>{const n=e.find(({plugin:e})=>e===t.plugin);return n?(n.options=t.options,e):[...e,t]},[]),n=t.map(({plugin:e})=>e);for(const e of _v(this,Gv))if(!n.includes(e)){if(e.prototype instanceof Uv)continue;this.unregister(e)}for(const{plugin:e,options:n}of t)this.register(e,n);zv(this,Gv,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}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 Kv(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}Gv=new WeakMap;var Xv,Jv,Zv,Qv,eb,tb,nb,rb,ob,ib,ab,sb,lb=[],cb=class extends Bv{constructor(e){super(e),Fv(this,Xv),Fv(this,Jv),this.computeCollisions=this.computeCollisions.bind(this),zv(this,Jv,Lm(lb)),this.destroy=kg(()=>{const e=this.computeCollisions(),t=bm(()=>this.manager.dragOperation.position.current);if(e!==lb){const e=_v(this,Xv);if(zv(this,Xv,t),e&&t.x==e.x&&t.y==e.y)return}else zv(this,Xv,void 0);_v(this,Jv).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){bm(()=>{e?_v(this,Jv).value=this.computeCollisions():zv(this,Xv,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:o,shape:i,status:a}=r;if(!a.initialized||!i)return lb;const s=[],l=[];for(const i of null!=e?e:n.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 n=bm(()=>e({droppable:i,dragOperation:r}));n&&(null!=i.collisionPriority&&(n.priority=i.collisionPriority),s.push(n))}return 0===l.length?lb:(s.sort(Kv),s)}get collisions(){return _v(this,Jv).value}};Xv=new WeakMap,Jv=new WeakMap,eb=[Ag],Qv=[Ag],Zv=[Ag];var ub=class e{constructor(e,t){Fv(this,ob,Tv(rb,8,this)),Tv(rb,11,this),Fv(this,ib),Fv(this,ab,Tv(rb,12,this)),Tv(rb,15,this),Fv(this,sb,Tv(rb,16,this)),Tv(rb,19,this);const{effects:n,id:r,data:o={},disabled:i=!1,register:a=!0}=e;let s=r;zv(this,ib,Lm(r)),this.manager=t,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return s=e,null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==n?void 0:n())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}get id(){var t,n;const r=_v(this,ib).value;return null!=(n=null==(t=e.pendingIdChanges)?void 0:t.get(this))?n:r}set id(t){var n,r;t!==(null!=(r=null==(n=e.pendingIdChanges)?void 0:n.get(this))?r:_v(this,ib).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return Wv(t=e,tb,nb).call(t)})),e.pendingIdChanges.set(this,t))}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)}};rb=Mv(null),tb=new WeakSet,nb=function(){const e=ub.pendingIdChanges;ub.pendingIdChanges=null,e&&gm(()=>{for(const[t,n]of e)_v(t,ib).value=n})},ob=new WeakMap,ib=new WeakMap,ab=new WeakMap,sb=new WeakMap,Ov(rb,4,"manager",eb,ub,ob),Ov(rb,4,"data",Qv,ub,ab),Ov(rb,4,"disabled",Zv,ub,sb),Fv(ub,tb),kv(rb,ub),ub.pendingIdChanges=null;var db,pb,fb,hb,mb,gb,vb,bb,yb,xb,Sb,wb,Cb,Eb,Ib,Db,Rb,Lb,Mb,Ab,Pb,qb,kb,Tb,Ob=ub,Nb=class{constructor(){this.map=Lm(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),o=()=>this.unregister(e,t);if(r===t)return o;if(r&&r.id===e){const e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}const i=new Map(n);for(const[r,o]of n)if(o===t&&r!==e){i.delete(r);break}i.set(e,t),this.map.value=i;const a=kg(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);const o=new Map(n);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}},jb=class extends(vb=Ob,gb=[Ag],mb=[Ag],hb=[Ag],fb=[Pg],pb=[Pg],db=[Pg],vb){constructor(e,t){var n=e,{modifiers:r,type:o,sensors:i,plugins:a,effects:s}=n,l=Lv(n,["modifiers","type","sensors","plugins","effects"]);super(Dv(Iv({},l),{effects:()=>{var e;return[...null!=(e=null==s?void 0:s())?e:[],()=>{const{manager:e,plugins:t}=this;if(e&&t)for(const n of t){const{plugin:t}=Vv(n);e.registry.plugins.register(t)}}]}}),t),Tv(bb,5,this),Fv(this,yb,Tv(bb,8,this)),Tv(bb,11,this),Fv(this,xb,Tv(bb,12,this)),Tv(bb,15,this),Fv(this,Sb,Tv(bb,16,this,this.isDragSource?"dragging":"idle")),Tv(bb,19,this),this.type=o,this.sensors=i,this.modifiers=r,this.alignment=l.alignment,this.plugins=a}pluginConfig(e){if(this.plugins)for(const t of this.plugins){const n=Vv(t);if(n.plugin===e)return n.options}}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}};bb=Mv(vb),yb=new WeakMap,xb=new WeakMap,Sb=new WeakMap,Ov(bb,4,"type",gb,jb,yb),Ov(bb,4,"modifiers",mb,jb,xb),Ov(bb,4,"status",hb,jb,Sb),Ov(bb,2,"isDropping",fb,jb),Ov(bb,2,"isDragging",pb,jb),Ov(bb,2,"isDragSource",db,jb),kv(bb,jb);var _b=class extends(Lb=Ob,Rb=[Ag],Db=[Ag],Ib=[Ag],Eb=[Ag],Cb=[Ag],wb=[Pg],Lb){constructor(e,t){var n=e,{accept:r,collisionDetector:o,collisionPriority:i,type:a}=n;super(Lv(n,["accept","collisionDetector","collisionPriority","type"]),t),Tv(Mb,5,this),Fv(this,Ab,Tv(Mb,8,this)),Tv(Mb,11,this),Fv(this,Pb,Tv(Mb,12,this)),Tv(Mb,15,this),Fv(this,qb,Tv(Mb,16,this)),Tv(Mb,19,this),Fv(this,kb,Tv(Mb,20,this)),Tv(Mb,23,this),Fv(this,Tb,Tv(Mb,24,this)),Tv(Mb,27,this),this.accept=r,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}};Mb=Mv(Lb),Ab=new WeakMap,Pb=new WeakMap,qb=new WeakMap,kb=new WeakMap,Tb=new WeakMap,Ov(Mb,4,"accept",Rb,_b,Ab),Ov(Mb,4,"type",Db,_b,Pb),Ov(Mb,4,"collisionDetector",Ib,_b,qb),Ov(Mb,4,"collisionPriority",Eb,_b,kb),Ov(Mb,4,"shape",Cb,_b,Tb),Ov(Mb,2,"isDropTarget",wb,_b),kv(Mb,_b);var Fb=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const e of r)e(...t)}},zb=class extends Fb{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function Wb(e,t=!0){let n=!1;return Dv(Iv({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var $b,Hb,Vb,Bb,Gb,Ub,Yb,Kb,Xb,Jb=class extends Uv{constructor(e){super(e);let t=[];this.destroy=kg(()=>{const{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=e,{collisions:o}=n;if(n.isDisabled())return;if(Ob.pendingIdChanges)return;const i=Wb({collisions:o});if(r.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;bm(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(n.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{n.enable()}))})})}},Zb=(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))(Zb||{}),Qb=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(Qb||{});Yb=[Ag],Ub=[Pg],Gb=[Pg],Bb=[Pg],Vb=[Pg],Hb=[Pg],$b=[Pg];var ey=class{constructor(){Tv(Kb,5,this),Fv(this,Xb,Tv(Kb,8,this,"idle")),Tv(Kb,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}};Kb=Mv(null),Xb=new WeakMap,Ov(Kb,4,"value",Yb,ey,Xb),Ov(Kb,2,"current",Ub,ey),Ov(Kb,2,"idle",Gb,ey),Ov(Kb,2,"initializing",Bb,ey),Ov(Kb,2,"initialized",Vb,ey),Ov(Kb,2,"dragging",Hb,ey),Ov(Kb,2,"dropped",$b,ey),kv(Kb,ey);var ty,ny=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 bm(()=>{const{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=Wb({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return bm(()=>{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 n=new AbortController,{event:r,coordinates:o}=e;gm(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(o)});const i=Wb({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&gm(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1})})}),n)})}move(e){return bm(()=>{var t,n;const{dragOperation:r}=this.manager,{status:o,controller:i}=r;if(!o.dragging||!i||i.signal.aborted)return;const a=Wb({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,n,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};r.position.current=l})})}stop(e={}){return bm(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:o}=r;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const e=bm(()=>{var e;return"dropping"===(null==(e=r.source)?void 0:e.status)}),t=()=>{r.controller===o&&(r.controller=void 0),r.reset()};if(e){const{source:e}=r,n=_m(()=>{"idle"===(null==e?void 0:e.status)&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};r.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),i?i.then(a).catch(()=>r.reset()):a()})}},ry=class extends Bv{constructor(e,t){super(e,t),this.manager=e,this.options=t}},oy=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)}},iy=class{constructor(e){this.options=e,Fv(this,ty)}set controller(e){zv(this,ty,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=_v(this,ty))||t.activate(e)}};ty=new WeakMap;var ay,sy,ly,cy,uy,dy,py,fy,hy,my,gy,vy,by,yy,xy,Sy,wy,Cy,Ey,Iy=class extends Bv{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},Dy=class{constructor(e){this.draggables=new Nb,this.droppables=new Nb,this.plugins=new Yv(e),this.sensors=new Yv(e),this.modifiers=new Yv(e)}register(e,t){if(e instanceof jb)return this.draggables.register(e.id,e);if(e instanceof _b)return this.droppables.register(e.id,e);if(e.prototype instanceof Iy)return this.modifiers.register(e,t);if(e.prototype instanceof ry)return this.sensors.register(e,t);if(e.prototype instanceof Bv)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof Ob)return e instanceof jb?this.draggables.unregister(e.id,e):e instanceof _b?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof Iy)return this.modifiers.unregister(e);if(e.prototype instanceof ry)return this.sensors.unregister(e);if(e.prototype instanceof Bv)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()}};hy=[Pg],fy=[Ag],py=[Ag],dy=[Ag],uy=[Ag],cy=[Ag],ly=[Pg],sy=[Pg],ay=[Pg];var Ry=class{constructor(e){Tv(by,5,this),Fv(this,my),Fv(this,gy),Fv(this,vy,new Og(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new ey,Fv(this,yy,Tv(by,8,this,!1)),Tv(by,11,this),Fv(this,xy,Tv(by,12,this,null)),Tv(by,15,this),Fv(this,Sy,Tv(by,16,this,null)),Tv(by,19,this),Fv(this,wy,Tv(by,20,this,null)),Tv(by,23,this),Fv(this,Cy,Tv(by,24,this,[])),Tv(by,27,this),this.position=new av({x:0,y:0}),Fv(this,Ey,{x:0,y:0}),zv(this,my,e)}get shape(){const{current:e,initial:t,previous:n}=_v(this,vy);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?_v(this,vy).current=e:_v(this,vy).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const n=_v(this,my).registry.draggables.get(t);return n&&zv(this,gy,n),null!=(e=null!=n?n:_v(this,gy))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=_v(this,my).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const e of this.modifiers)n=e.apply(Dv(Iv({},this.snapshot()),{transform:n}));return zv(this,Ey,n),n}snapshot(){return bm(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:_v(this,Ey),shape:this.shape?Ng(this.shape):null,position:Ng(this.position),status:Ng(this.status),canceled:this.canceled}))}reset(){gm(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,_v(this,vy).reset(),this.position.reset({x:0,y:0}),zv(this,Ey,{x:0,y:0}),this.modifiers=[]})}};by=Mv(null),my=new WeakMap,gy=new WeakMap,vy=new WeakMap,yy=new WeakMap,xy=new WeakMap,Sy=new WeakMap,wy=new WeakMap,Cy=new WeakMap,Ey=new WeakMap,Ov(by,2,"shape",hy,Ry),Ov(by,4,"canceled",fy,Ry,yy),Ov(by,4,"activatorEvent",py,Ry,xy),Ov(by,4,"sourceIdentifier",dy,Ry,Sy),Ov(by,4,"targetIdentifier",uy,Ry,wy),Ov(by,4,"modifiers",cy,Ry,Cy),Ov(by,2,"source",ly,Ry),Ov(by,2,"target",sy,Ry),Ov(by,2,"transform",ay,Ry),kv(by,Ry);var Ly={get rendering(){return Promise.resolve()}};function My(e,t){return"function"==typeof e?e(t):null!=e?e:t}var Ay=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 n=null!=e?e:{},r=My(n.plugins,[]),o=My(n.sensors,[]),i=My(n.modifiers,[]),a=null!=(t=n.renderer)?t:Ly,s=new zb(this),l=new Dy(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new ny(this),this.dragOperation=new Ry(this),this.collisionObserver=new cb(this),this.plugins=[Jb,...r],this.modifiers=i,this.sensors=o;const{destroy:c}=this,u=kg(()=>{var e,t,n;const r=bm(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of r)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:n}=Vv(e);return new t(this,n)}))?n:o});this.destroy=()=>{u(),c()}}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}},Py=e=>{throw TypeError(e)},qy=(e,t,n)=>t.has(e)||Py("Cannot "+n),ky=(e,t,n)=>(qy(e,t,"read from private field"),t.get(e)),Ty=(e,t,n)=>t.has(e)?Py("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Oy=(e,t,n,r)=>(qy(e,t,"write to private field"),t.set(e,n),n),Ny=(e,t,n)=>(qy(e,t,"access private method"),n);function jy(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function _y(e,t){const n=e.getAnimations();let r=null;for(const e of n){if("running"!==e.playState)continue;const{effect:n}=e,o=(jy(n)?n.getKeyframes():[]).filter(t);o.length>0&&(r=[o[o.length-1],e])}return r}function Fy(e){const{width:t,height:n,top:r,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:o,bottom:i,right:a}}function zy(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function Wy(e){return"nodeType"in e}function $y(e){var t,n,r;return e?zy(e)?e:Wy(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function Hy(e){const{Document:t}=$y(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function Vy(e){return!(!e||zy(e))&&(e instanceof $y(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function By(e){return e instanceof $y(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function Gy(e){return e?zy(e)?e.document:Wy(e)?Hy(e)?e:Vy(e)||By(e)?e.ownerDocument:document:document:document}function Uy(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===o}function Yy(e,t=e.getBoundingClientRect(),n=0){var r,o,i,a,s;let l=t;const{ownerDocument:c}=e,u=null!=(r=c.defaultView)?r:window;let d=e.parentElement;for(;d&&d!==c.documentElement;){if(!Uy(d)){const e=d.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),o=n*(e.bottom-e.top),i=n*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+r),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=u.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:u.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:u.innerHeight,v=n*g,b=n*m;return l={top:Math.max(l.top,f-v),right:Math.min(l.right,h+m+b),bottom:Math.min(l.bottom,f+g+v),left:Math.max(l.left,h-b),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 Ky(e){return{x:e.clientX,y:e.clientY}}var Xy="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Jy(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const e=r.contentDocument;e&&!t.has(e)&&n.push(...Jy(e,t))}catch(e){}try{const r=e.defaultView;if(r&&r!==window.top){const o=r.parent;o&&o.document&&o.document!==e&&n.push(...Jy(o.document,t))}}catch(e){}return n}function Zy(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Qy(){var e,t;const n=Zy()?window.visualViewport:null;return{x:null!=(e=null==n?void 0:n.offsetLeft)?e:0,y:null!=(t=null==n?void 0:n.offsetTop)?t:0}}function ex(e){return!(!e||!Wy(e))&&e instanceof $y(e).ShadowRoot}function tx(e){if(e&&Wy(e)){let t=e.getRootNode();if(ex(t))return t;if(t instanceof Document)return t}return Gy(e)}function nx(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function rx(e){return"value"in e}function ox(e){return"CANVAS"===e.tagName}function ix(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(r)){const{contentDocument:e}=r;if(e){const{left:o,top:i}=r.getBoundingClientRect();return ix(e,{x:t-o,y:n-i})}}return r}var ax=new WeakMap;var sx=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o)}this.entries.clear()}}bind(e,t){const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],o=[];for(const e of n)for(const t of r){const{type:n,listener:r,options:i}=t,a=[e,t];e.addEventListener(n,r,i),this.entries.add(a),o.push(a)}const i=this.entries;return function(){for(const e of o){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o),i.delete(e)}}}};function lx(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function cx(e,t){const n=()=>performance.now();let r,o;return function(...i){const a=this;o?(null==r||r(),r=function(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}(()=>{e.apply(a,i),o=n()},t-(n()-o))):(e.apply(a,i),o=n())}}var ux,dx=Xy?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},px=class extends dx{constructor(e){super(t=>{ky(this,ux)?e(t,this):Oy(this,ux,!0)}),Ty(this,ux,!1)}};ux=new WeakMap;var fx,hx,mx,gx,vx,bx,yx,xx,Sx,wx,Cx,Ex=Array.from({length:100},(e,t)=>t/100),Ix=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,Ty(this,Sx),this.disconnect=()=>{var e,t,n;Oy(this,yx,!0),null==(e=ky(this,mx))||e.disconnect(),null==(t=ky(this,gx))||t.disconnect(),ky(this,vx).disconnect(),null==(n=ky(this,bx))||n.remove()},Ty(this,fx,!0),Ty(this,hx),Ty(this,mx),Ty(this,gx),Ty(this,vx),Ty(this,bx),Ty(this,yx,!1),Ty(this,xx,cx(()=>{var e,t,n;const{element:r}=this;if(null==(e=ky(this,gx))||e.disconnect(),ky(this,yx)||!ky(this,fx)||!r.isConnected)return;const o=null!=(t=r.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(n=o.defaultView)?n:window,s=r.getBoundingClientRect(),l=Yy(r,s),{top:c,left:u,bottom:d,right:p}=l,f=-Math.floor(c),h=-Math.floor(u),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,Oy(this,gx,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:ov.intersectionRatio(n,Yy(r)))&&ky(this,xx).call(this)},{threshold:Ex,rootMargin:m,root:o})),ky(this,gx).observe(r),Ny(this,Sx,wx).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),Oy(this,fx,function(e,t=e.getBoundingClientRect()){const{width:n,height:r}=Yy(e,t);return n>0&&r>0}(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};const o=e.ownerDocument;(null==n?void 0:n.debug)&&(Oy(this,bx,document.createElement("div")),ky(this,bx).style.background="rgba(0,0,0,0.15)",ky(this,bx).style.position="fixed",ky(this,bx).style.pointerEvents="none",o.body.appendChild(ky(this,bx))),Oy(this,vx,new IntersectionObserver(t=>{var n,r;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,c=ky(this,fx);Oy(this,fx,a),(s||l)&&(c&&!a?(null==(n=ky(this,gx))||n.disconnect(),this.callback(null),null==(r=ky(this,mx))||r.disconnect(),Oy(this,mx,void 0),ky(this,bx)&&(ky(this,bx).style.visibility="hidden")):ky(this,xx).call(this),a&&!ky(this,mx)&&(Oy(this,mx,new px(ky(this,xx))),ky(this,mx).observe(e)))},{threshold:Ex,root:o})),ky(this,fx)&&!n.skipInitial&&this.callback(this.boundingClientRect),ky(this,vx).observe(e)}};fx=new WeakMap,hx=new WeakMap,mx=new WeakMap,gx=new WeakMap,vx=new WeakMap,bx=new WeakMap,yx=new WeakMap,xx=new WeakMap,Sx=new WeakSet,wx=function(){ky(this,yx)||(Ny(this,Sx,Cx).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,ky(this,hx))||(this.callback(this.boundingClientRect),Oy(this,hx,this.boundingClientRect)))},Cx=function(){if(ky(this,bx)){const{top:e,left:t,width:n,height:r}=Yy(this.element);ky(this,bx).style.overflow="hidden",ky(this,bx).style.visibility="visible",ky(this,bx).style.top=`${Math.floor(e)}px`,ky(this,bx).style.left=`${Math.floor(t)}px`,ky(this,bx).style.width=`${Math.floor(n)}px`,ky(this,bx).style.height=`${Math.floor(r)}px`}};var Dx,Rx,Lx,Mx,Ax=new WeakMap,Px=new WeakMap;function qx(e,t){let n=Ax.get(e);if(!n){const t=new Ix(e,t=>{const n=Ax.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0});n={disconnect:t.disconnect,callbacks:new Set}}return n.callbacks.add(t),Ax.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(Ax.delete(e),n.disconnect())}}var kx=class{constructor(e,t,n){this.callback=t,Ty(this,Dx),Ty(this,Rx,!1),Ty(this,Lx),Ty(this,Mx,cx(e=>{if(!ky(this,Rx)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of ky(this,Lx))if(e.target.contains(t)){this.callback(ky(this,Dx).boundingClientRect);break}},75));const r=function(e){const t=new Set;let n=lx(e);for(;n;)t.add(n),n=lx(n);return t}(e),o=function(e,t){const n=new Set;for(const r of e){const e=qx(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),i=function(e,t){var n;const r=e.ownerDocument;if(!Px.has(r)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),Px.set(r,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(n=Px.get(r))?n:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),Px.delete(r))}):()=>{}}(e,ky(this,Mx));Oy(this,Lx,r),Oy(this,Dx,new Ix(e,t,n)),this.disconnect=()=>{ky(this,Rx)||(Oy(this,Rx,!0),o(),i(),ky(this,Dx).disconnect())}}};function Tx(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function Ox(e){try{Tx(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function Nx(e){return!(!Xy||!e)&&e===Gy(e).scrollingElement}function jx(e){var t,n;const r=$y(e),o=Nx(e)?function(e){var t,n,r,o;const{documentElement:i}=Gy(e),a=$y(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(n=null==a?void 0:a.height)?n:i.clientHeight,c=null!=(r=null==a?void 0:a.offsetTop)?r:0,u=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:c,left:u,right:u+s,bottom:c+l,width:s,height:l}}(e):Fy(e),i=r.visualViewport,a=Nx(e)?{height:null!=(t=null==i?void 0:i.height)?t:r.innerHeight,width:null!=(n=null==i?void 0:i.width)?n:r.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 _x(e,t){const{isTop:n,isBottom:r,isLeft:o,isRight:i,position:a}=jx(e),{x:s,y:l}=null!=t?t:{x:0,y:0},c=!n&&a.current.y+l>0,u=!r&&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:c,bottom:u,left:d,right:p,x:d||p,y:c||u}}Dx=new WeakMap,Rx=new WeakMap,Lx=new WeakMap,Mx=new WeakMap;var Fx=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))}},zx=new Fx(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),Wx=new Fx(e=>setTimeout(e,50)),$x=new Map,Hx=$x.clear.bind($x);function Vx(e,t=!1){if(!t)return Bx(e);let n=$x.get(e);return n||(n=Bx(e),$x.set(e,n),Wx.schedule(Hx),n)}function Bx(e){return $y(e).getComputedStyle(e)}var Gx={excludeElement:!0,escapeShadowDOM:!0};function Ux(e,t=Gx){const{limit:n,excludeElement:r,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=n&&i.size>=n)return i;if(!a)return i;if(Hy(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&ex(a))return t(a.host);if(!Vy(a))return By(a)?t(a.parentElement):i;if(i.has(a))return i;const s=Vx(a,!0);if(r&&a===e||function(e,t=Vx(e,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,s)&&i.add(a),function(e,t=Vx(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 Yx(e,t=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=lx(e);for(;r;){if(r===t)return n;const e=Fy(r),{x:o,y:i}=Kx(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*o,n.scaleY=n.scaleY*i,r=lx(r)}return n}function Kx(e,t=Fy(e)){const n=Math.round(t.width),r=Math.round(t.height);if(Vy(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};const o=Vx(e,!0);return{x:(parseFloat(o.width)||n)/n,y:(parseFloat(o.height)||r)/r}}function Xx(e){if("none"===e)return null;const[t,n,r="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,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 Jx(e){var t,n,r,o,i,a,s,l,c;const{scale:u,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(u),h=Xx(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!=(n=null==f?void 0:f.y)?n:1,b=null!=(r=null==h?void 0:h.x)?r:0,y=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:b+x,y:y+S,z:null!=(c=null==h?void 0:h.z)?c:0,scaleX:g*w,scaleY:v*C}}var Zx=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(Zx||{}),Qx={x:.2,y:.2},eS={x:10,y:10};function tS(e,t,n,r=25,o=Qx,i=eS){const{x:a,y:s}=t,{rect:l,isTop:c,isBottom:u,isLeft:d,isRight:p}=jx(e),f=Yx(e),h=Jx(Vx(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new ov(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),b={x:0,y:0},y={x:0,y:0},x=v.height*o.y,S=v.width*o.x;return x>0&&(!c||g&&!u)&&s<=v.top+x&&1!==(null==n?void 0:n.y)&&a>=v.left-i.x&&a<=v.right+i.x?(b.y=g?1:-1,y.y=r*Math.abs((v.top+x-s)/x)):x>0&&(!u||g&&!c)&&s>=v.bottom-x&&-1!==(null==n?void 0:n.y)&&a>=v.left-i.x&&a<=v.right+i.x&&(b.y=g?-1:1,y.y=r*Math.abs((v.bottom-x-s)/x)),S>0&&(!p||m&&!d)&&a>=v.right-S&&-1!==(null==n?void 0:n.x)&&s>=v.top-i.y&&s<=v.bottom+i.y?(b.x=m?-1:1,y.x=r*Math.abs((v.right-S-a)/S)):S>0&&(!d||m&&!p)&&a<=v.left+S&&1!==(null==n?void 0:n.x)&&s>=v.top-i.y&&s<=v.bottom+i.y&&(b.x=m?1:-1,y.x=r*Math.abs((v.left+S-a)/S)),{direction:b,speed:y}}function nS(e,{block:t="nearest",inline:n="nearest"}={}){if(!Vy(e))return;const r=Ux(e),o=[];for(const i of r){if(!Vy(i))continue;const{top:r,left:a}=oS(e,i);let s=r,l=a;for(const e of o)s-=e.scrollTop,l-=e.scrollLeft;if("none"!==t){const n=s<i.scrollTop;n!==s+e.offsetHeight>i.scrollTop+i.clientHeight&&(i.scrollTop="center"===t?s-i.clientHeight/2+e.offsetHeight/2:n?s:s+e.offsetHeight-i.clientHeight)}if("none"!==n){const t=l<i.scrollLeft;t!==l+e.offsetWidth>i.scrollLeft+i.clientWidth&&(i.scrollLeft="center"===n?l-i.clientWidth/2+e.offsetWidth/2:t?l:l+e.offsetWidth-i.clientWidth)}o.push(i)}}function rS(e){let t=0,n=0,r=e;for(;r;){t+=r.offsetTop,n+=r.offsetLeft;const e=r.offsetParent;if(!Vy(e))break;t+=e.clientTop,n+=e.clientLeft,r=e}return{top:t,left:n}}function oS(e,t){const n=rS(e),r=rS(t);return{top:n.top-r.top-t.clientTop,left:n.left-r.left-t.clientLeft}}function iS({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function aS(e,t=Vx(e).translate,n=!0){if(n){const t=_y(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=Xx(e);if(t)return t}}}if(t){const e=Xx(t);if(e)return e}return{x:0,y:0,z:0}}var sS=new Fx(e=>setTimeout(e,0)),lS=new Map,cS=lS.clear.bind(lS);function uS(e,t){const n=function(e){const t=e.ownerDocument;let n=lS.get(t);if(n)return n;n=t.getAnimations(),lS.set(t,n),sS.schedule(cS);const r=n.filter(t=>jy(t.effect)&&t.effect.target===e);return lS.set(e,r),n}(e).filter(e=>{var n,r;if(jy(e.effect)){const{target:o}=e.effect;if(null==(r=o&&(null==(n=t.isValidTarget)?void 0:n.call(t,o)))||r)return e.effect.getKeyframes().some(e=>{for(const n of t.properties)if(e[n])return!0})}}).map(e=>{const{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(e.currentTime=r,()=>{e.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}var dS=class extends ov{constructor(e,t={}){var n,r,o,i;const{frameTransform:a=Yx(e),ignoreTransforms:s,getBoundingClientRect:l=Fy}=t,c=uS(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||Zy())&&t.contains(e)}),u=l(e);let d,{top:p,left:f,width:h,height:m}=u;const g=Vx(e),v=Jx(g),b={x:null!=(n=null==v?void 0:v.scaleX)?n:1,y:null!=(r=null==v?void 0:v.scaleY)?r:1},y=function(e,t){const n=e.getAnimations();if(!n.length)return null;let r,o,i,a=!1;for(const e of n){if("running"!==e.playState)continue;const t=jy(e.effect)?e.effect.getKeyframes():[],n=t[t.length-1];if(!n)continue;const{transform:s,translate:l,scale:c}=n;"string"==typeof s&&s&&(r=s,a=!0),"string"==typeof l&&l&&(o=l,a=!0),"string"==typeof c&&c&&(i=c,a=!0)}return a?Jx({transform:null!=r?r:t.transform,translate:null!=o?o:t.translate,scale:null!=i?i:t.scale}):null}(e,g);null==c||c(),v&&(d=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-r)*parseFloat(n),l=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width/r:e.width,u=o?e.height/o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(u,v,g.transformOrigin),(s||y)&&(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(y&&!s&&d){const e=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-r)*parseFloat(n),l=e.top+a+(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width*r:e.width,u=o?e.height*o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,b.x=y.scaleX,b.y=y.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=b,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function pS(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 fS=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:n}=this;if(pS(n))for(const[r,o]of Object.entries(e)){const e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:n}=this;if(pS(n))for(const r of e){const e=`${t}${r}`;n.style.removeProperty(e)}}reset(){const{element:e}=this;if(pS(e)){for(const[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function hS(e){return!!e&&(e instanceof $y(e).Element||Wy(e)&&e.nodeType===Node.ELEMENT_NODE)}function mS(e){if(!e)return!1;const{KeyboardEvent:t}=$y(e.target);return e instanceof t}var gS={};function vS(e){const t=null==gS[e]?0:gS[e]+1;return gS[e]=t,`${e}-${t}`}var bS=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/rv.distance(t.shape.center,n),type:Qb.PointerIntersection,priority:Zb.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=rv.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:Qb.ShapeIntersection,priority:Zb.Normal}}return null})(e)},yS=e=>{const{dragOperation:t,droppable:n}=e,{shape:r,position:o}=t;if(!n.shape)return null;const i=r?ov.from(r.current.boundingRectangle).corners:void 0,a=ov.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+rv.distance(rv.from(t),null!=(r=null==i?void 0:i[n])?r:o.current)},0),s=a/4;return{id:n.id,value:1/s,type:Qb.Collision,priority:Zb.Normal}},xS=Object.create,SS=Object.defineProperty,wS=Object.defineProperties,CS=Object.getOwnPropertyDescriptor,ES=Object.getOwnPropertyDescriptors,IS=Object.getOwnPropertySymbols,DS=Object.prototype.hasOwnProperty,RS=Object.prototype.propertyIsEnumerable,LS=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),MS=e=>{throw TypeError(e)},AS=(e,t,n)=>t in e?SS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,PS=(e,t)=>{for(var n in t||(t={}))DS.call(t,n)&&AS(e,n,t[n]);if(IS)for(var n of IS(t))RS.call(t,n)&&AS(e,n,t[n]);return e},qS=(e,t)=>wS(e,ES(t)),kS=(e,t)=>SS(e,"name",{value:t,configurable:!0}),TS=(e,t)=>{var n={};for(var r in e)DS.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&IS)for(var r of IS(e))t.indexOf(r)<0&&RS.call(e,r)&&(n[r]=e[r]);return n},OS=e=>{var t;return[,,,xS(null!=(t=null==e?void 0:e[LS("metadata")])?t:null)]},NS=["class","method","getter","setter","accessor","field","value","get","set"],jS=e=>void 0!==e&&"function"!=typeof e?MS("Function expected"):e,_S=(e,t,n,r,o)=>({kind:NS[e],name:t,metadata:r,addInitializer:e=>n._?MS("Already initialized"):o.push(jS(e||null))}),FS=(e,t)=>AS(t,LS("metadata"),e[3]),zS=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},WS=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=NS[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&CS(d<4?o:{get[n](){return VS(this,i)},set[n](e){return GS(this,i,e)}},n));d?f&&d<4&&kS(i,(d>2?"set ":d>1?"get ":"")+n):kS(o,n);for(var y=r.length-1;y>=0;y--)c=_S(d,n,l={},e[3],v),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>HS(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?VS:US)(e,o,4^d?i:b.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>GS(e,o,t,4^d?i:b.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,c),l._=1,4^d||void 0===s?jS(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?MS("Object expected"):(jS(a=s.get)&&(b.get=a),jS(a=s.set)&&(b.set=a),jS(a=s.init)&&g.unshift(a));return d||FS(e,o),b&&SS(o,n,b),f?4^d?i:b:o},$S=(e,t,n)=>t.has(e)||MS("Cannot "+n),HS=(e,t)=>Object(t)!==t?MS('Cannot use the "in" operator on this value'):e.has(t),VS=(e,t,n)=>($S(e,t,"read from private field"),n?n.call(e):t.get(e)),BS=(e,t,n)=>t.has(e)?MS("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),GS=(e,t,n,r)=>($S(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),US=(e,t,n)=>($S(e,t,"access private method"),n),YS="button",KS="draggable",XS="dnd-kit-description",JS="dnd-kit-announcement",ZS={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."},QS={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:n}){if(e)return n?`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 ew(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var tw=["dragover","dragmove"];var nw,rw,ow,iw,aw,sw,lw,cw,uw,dw,pw,fw,hw,mw=new Map,gw=class extends(aw=Uv,iw=[Ag],ow=[Pg],rw=[Pg],nw=[Pg],aw){constructor(e,t){super(e,t),zS(lw,5,this),BS(this,uw),BS(this,sw,new Set),BS(this,cw,zS(lw,8,this,new Set)),zS(lw,11,this),this.registerEffect(US(this,uw,dw))}register(e){return VS(this,sw).add(e),()=>{VS(this,sw).delete(e)}}addRoot(e){return bm(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{bm(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return tx(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return tx(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}};lw=OS(aw),sw=new WeakMap,cw=new WeakMap,uw=new WeakSet,dw=function(){const{roots:e}=this,t=[];for(const n of e)for(const e of VS(this,sw))t.push(US(this,uw,pw).call(this,n,e));return()=>{for(const e of t)e()}},pw=function(e,t){let n=mw.get(e);n||(n=new Map,mw.set(e,n));let r=n.get(t);if(!r){const o=Hy(e)?US(this,uw,fw).call(this,e,n,t):US(this,uw,hw).call(this,e,n,t);if(!o)return()=>{};r=o,n.set(t,r)}r.refCount++;let o=!1;return()=>{o||(o=!0,r.refCount--,0===r.refCount&&r.cleanup())}},fw=function(e,t,n){var r;const o=e.createElement("style"),{nonce:i}=null!=(r=this.options)?r:{};i&&o.setAttribute("nonce",i),o.textContent=n,e.head.prepend(o);const a=new MutationObserver(t=>{for(const n of t)for(const t of Array.from(n.removedNodes))if(t===o)return void e.head.prepend(o)});return a.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{a.disconnect(),o.remove(),t.delete(n),0===t.size&&mw.delete(e)}}},hw=function(e,t,n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const r=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=r?r:{};if(!o)return null;const i=new o;return i.replaceSync(n),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var r;if(ex(e)&&(null==(r=e.host)?void 0:r.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),0===t.size&&mw.delete(e)}}},WS(lw,4,"additionalRoots",iw,gw,cw),WS(lw,2,"sourceRoot",ow,gw),WS(lw,2,"targetRoot",rw,gw),WS(lw,2,"roots",nw,gw),FS(lw,gw),gw.configure=Hv(gw);var vw=gw,bw="data-dnd-",yw=`${bw}dropping`,xw="--dnd-",Sw=`${bw}dragging`,ww=`${bw}placeholder`,Cw=[Sw,ww,"popover","aria-pressed","aria-grabbing"],Ew=["view-transition-name"],Iw=`\n :is(:root,:host) [${Sw}] {\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(${xw}top, 0px) !important;\n left: var(${xw}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${xw}width, auto);\n max-width: var(${xw}width, auto);\n height: var(${xw}height, auto);\n max-height: var(${xw}height, auto);\n transform: var(${xw}transform, none) !important;\n transition: var(${xw}transition) !important;\n }\n\n :is(:root,:host) [${ww}] {\n transition: none;\n }\n\n :is(:root,:host) [${ww}='hidden'] {\n visibility: hidden;\n }\n\n [${Sw}] * {\n pointer-events: none !important;\n }\n\n [${Sw}]:not([${yw}]) {\n translate: var(${xw}translate) !important;\n }\n\n [${Sw}][style*='${xw}scale'] {\n scale: var(${xw}scale) !important;\n transform-origin: var(${xw}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${Sw}][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 [${Sw}]::backdrop, [${bw}overlay]:not([${Sw}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function Dw(e,t="hidden"){return bm(()=>{const{element:n,manager:r}=e;if(!n||!r)return;const o=function(e,t){const n=new Map;for(const r of t)if(r.element&&(e===r.element||e.contains(r.element))){const e=`${bw}${vS("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{const n=r[t];if(rx(e)&&rx(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),ox(e)&&ox(n)&&n.width>0&&n.height>0){const t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n}(n),{remove:s}=a;return function(e,t,n){for(const[r,o]of e){if(!r.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(o),!i)continue;const a=r.element;r.proxy=i,i.removeAttribute(o),ax.set(a,i),n.push(()=>{ax.delete(a),r.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(ww,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function Rw(e,t){return e===t||lx(e)===lx(t)}function Lw(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&hS(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>Ox(t))}function Mw(e){return"TR"===e.tagName}var Aw,Pw,qw,kw,Tw,Ow,Nw,jw=250,_w="ease";var Fw=class extends(Pw=Bv,Aw=[Ag],Pw){constructor(e,t){super(e,t),BS(this,Tw),BS(this,kw,zS(qw,8,this)),zS(qw,11,this),this.state={initial:{},current:{}};const n=e.registry.plugins.get(vw),r=null==n?void 0:n.register(Iw);if(r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(US(this,Tw,Ow).bind(this,n)),this.registerEffect(US(this,Tw,Nw))}};qw=OS(Pw),kw=new WeakMap,Tw=new WeakSet,Ow=function(e){const{overlay:t}=this;if(!t||!e)return;const n=tx(t);return n?e.addRoot(n):void 0},Nw=function(){var e,t,n,r,o,i,a;const{state:s,manager:l,options:c}=this,{dragOperation:u}=l,{position:d,source:p,status:f}=u;if(f.idle)return s.current={},void(s.initial={});if(!p)return;const{element:h}=p,m=p.pluginConfig(Fw),g=null!=(t=null!=(e=null==m?void 0:m.feedback)?e:null==c?void 0:c.feedback)?t:"default",v="function"==typeof g?g(p,l):g;if(!h||"none"===v||!f.initialized||f.initializing)return;const{initial:b}=s,y=null!=(n=this.overlay)?n:h,x=Yx(y),S=Yx(h),w=!Rw(h,y),C=new dS(h,{frameTransform:w?S:null,ignoreTransforms:!w}),E=S.scaleX/x.scaleX,I=S.scaleY/x.scaleY;let{width:D,height:R,top:L,left:M}=C;w&&(D/=E,R/=I);const A=new fS(y),P=Vx(h),{transition:q,translate:k,boxSizing:T,paddingBlockStart:O,paddingBlockEnd:N,paddingInlineStart:j,paddingInlineEnd:_,borderInlineStartWidth:F,borderInlineEndWidth:z,borderBlockStartWidth:W,borderBlockEndWidth:$}=P,H=q.split(",").filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(","),V=Jx(P),B=P.transform,G="clone"===v,U="content-box"===T,Y=U?parseInt(j)+parseInt(_)+parseInt(F)+parseInt(z):0,K=U?parseInt(O)+parseInt(N)+parseInt(W)+parseInt($):0,X="move"===v||this.overlay?null:Dw(p,G?"clone":"hidden"),J=bm(()=>mS(l.dragOperation.activatorEvent));if(!b.translate)if(this.overlay&&V)b.translate={x:V.x,y:V.y};else if("none"!==k){const e=Xx(k);e&&(b.translate=e)}if(!b.transformOrigin){const e=bm(()=>d.current),t=M+(null!=(r=null==V?void 0:V.x)?r:0),n=L+(null!=(o=null==V?void 0:V.y)?o:0);b.transformOrigin={x:(e.x-t*x.scaleX-x.x)/(D*x.scaleX),y:(e.y-n*x.scaleY-x.y)/(R*x.scaleY)}}const{transformOrigin:Z}=b,Q=L*x.scaleY+x.y,ee=M*x.scaleX+x.x;if(!b.coordinates&&(b.coordinates={x:ee,y:Q},1!==E||1!==I)){const{scaleX:e,scaleY:t}=S,{x:n,y:r}=Z;b.coordinates.x+=(D*e-D)*n,b.coordinates.y+=(R*t-R)*r}b.dimensions||(b.dimensions={width:D,height:R}),b.frameTransform||(b.frameTransform=x);const te=b.coordinates.x-ee,ne=b.coordinates.y-Q,re=(b.dimensions.width*b.frameTransform.scaleX-D*x.scaleX)*Z.x,oe=(b.dimensions.height*b.frameTransform.scaleY-R*x.scaleY)*Z.y,ie={x:te/x.scaleX+re,y:ne/x.scaleY+oe},ae=M+ie.x,se=L+ie.y;y.setAttribute(Sw,"true");const le=bm(()=>u.transform),ce=null!=(i=b.translate)?i:{x:0,y:0},ue=le.x*x.scaleX+ce.x,de=le.y*x.scaleY+ce.y,pe=Qy();if(A.set({width:D-Y,height:R-K,top:se+pe.y,left:ae+pe.x,translate:`${ue}px ${de}px 0`,transform:this.overlay?"none":B,transition:H?`${H}, translate 0ms linear`:"translate 0ms linear",scale:w?`${E} ${I}`:"","transform-origin":`${100*Z.x}% ${100*Z.y}%`},xw),X&&(h.insertAdjacentElement("afterend",X),null==c?void 0:c.rootElement)){("function"==typeof c.rootElement?c.rootElement(p):c.rootElement).appendChild(h)}let fe,he,me;Tx(y)&&(y.hasAttribute("popover")||y.setAttribute("popover","manual"),Ox(y),y.addEventListener("beforetoggle",Lw));const ge=(ve={placeholder:X,element:h,feedbackElement:y,frameTransform:x,transformOrigin:Z,width:D,height:R,top:L,left:M,widthOffset:Y,heightOffset:K,delta:ie,styles:A,dragOperation:u,getTranslate:()=>s.current.translate,getElementMutationObserver:()=>fe,getSavedCellWidths:()=>me,setSavedCellWidths:e=>{me=e}},new ResizeObserver(()=>{var e,t,n;const r=new dS(ve.placeholder,{frameTransform:ve.frameTransform,ignoreTransforms:!0}),o=null!=(e=ve.transformOrigin)?e:{x:1,y:1},i=(ve.width-r.width)*o.x+ve.delta.x,a=(ve.height-r.height)*o.y+ve.delta.y,s=Qy();if(ve.styles.set({width:r.width-ve.widthOffset,height:r.height-ve.heightOffset,top:ve.top+a+s.y,left:ve.left+i+s.x},xw),null==(t=ve.getElementMutationObserver())||t.takeRecords(),Mw(ve.element)&&Mw(ve.placeholder)){const e=Array.from(ve.element.cells),t=Array.from(ve.placeholder.cells);ve.getSavedCellWidths()||ve.setSavedCellWidths(e.map(e=>e.style.width));for(const[n,r]of e.entries()){const e=t[n];r.style.width=`${e.getBoundingClientRect().width}px`}}const l=null!=(n=ve.getTranslate())?n:{x:0,y:0},c=ve.left+i+s.x+l.x,u=ve.top+a+s.y+l.y,d=r.width-ve.widthOffset,p=r.height-ve.heightOffset,f=ve.frameTransform;ve.dragOperation.shape=new ov(c*f.scaleX+f.x,u*f.scaleY+f.y,d*f.scaleX,p*f.scaleY)}));var ve;const be=new dS(y);bm(()=>u.shape=be);const ye=$y(y),xe=e=>{this.manager.actions.stop({event:e})},Se=nx(ye);J&&ye.addEventListener("resize",xe),"idle"===bm(()=>p.status)&&requestAnimationFrame(()=>p.status="dragging"),X&&(ge.observe(X),fe=function(e,t,n){const r=new MutationObserver(r=>{let o=!1;for(const n of r){if(n.target!==e){o=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||Cw.includes(r))continue;const i=e.getAttribute(r);if("style"===r){if(pS(e)&&pS(t)){const n=e.style;for(const e of Array.from(t.style))""===n.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(n)){if(Ew.includes(e)||e.startsWith(xw))continue;const r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else null!==i?t.setAttribute(r,i):t.removeAttribute(r)}o&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}(h,X,G),he=function(e,t,n){const r=new MutationObserver(r=>{for(const o of r)if(0!==o.addedNodes.length)for(const r of Array.from(o.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void Ox(n);if(r.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void Ox(n)}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement("afterend",t),Ox(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}(h,X,y));const we=null==(a=l.dragOperation.source)?void 0:a.id,Ce=()=>{var e;if(!J||null==we)return;const t=l.registry.draggables.get(we),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;Vy(n)&&n.focus()},Ee=()=>{var e;if(null==fe||fe.disconnect(),null==he||he.disconnect(),ge.disconnect(),ye.removeEventListener("resize",xe),Tx(y)&&(y.removeEventListener("beforetoggle",Lw),y.removeAttribute("popover")),y.removeAttribute(Sw),A.reset(),me&&Mw(h)){const t=Array.from(h.cells);for(const[n,r]of t.entries())r.style.width=null!=(e=me[n])?e:""}p.status="idle";const t=null!=s.current.translate,n=u.status.dragging;X&&(!n&&t||X.parentElement!==y.parentElement)&&y.isConnected&&X.replaceWith(y),null==X||X.remove()},Ie=null==c?void 0:c.dropAnimation,De=this,Re=kg(()=>{var e,t,n;const{transform:r,status:o}=u;if((r.x||r.y||s.current.translate)&&o.dragging){const o=null!=(e=b.translate)?e:{x:0,y:0},i={x:r.x/x.scaleX+o.x,y:r.y/x.scaleY+o.y},a=s.current.translate,l=bm(()=>u.modifiers),d=bm(()=>{var e;return null==(e=u.shape)?void 0:e.current}),p=null==c?void 0:c.keyboardTransition,f=J&&!Se&&null!==p?`${null!=(t=null==p?void 0:p.duration)?t:250}ms ${null!=(n=null==p?void 0:p.easing)?n:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(A.set({transition:H?`${H}, translate ${f}`:`translate ${f}`,translate:`${i.x}px ${i.y}px 0`},xw),null==fe||fe.takeRecords(),d&&d!==be&&a&&!l.length){const e=rv.delta(i,a);u.shape=ov.from(d.boundingRectangle).translate(e.x*x.scaleX,e.y*x.scaleY)}else u.shape=new dS(y);s.current.translate=i}},function(){if(u.status.dropped){this.dispose(),p.status="dropping";const e=void 0!==(null==m?void 0:m.dropAnimation)?m.dropAnimation:void 0!==De.dropAnimation?De.dropAnimation:Ie;let t=s.current.translate;const n=null!=t;if(t||h===y||(t={x:0,y:0}),!t||null===e)return void Ee();l.renderer.rendering.then(()=>{!function(e){var t,n,r,o;const{animation:i}=e;if("function"==typeof i){const t=i({source:e.source,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=jw,easing:s=_w}=null!=i?i:{};Ox(e.feedbackElement);const[,l]=null!=(t=_y(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const c=null!=(n=e.placeholder)?n:e.element,u={frameTransform:Rw(e.feedbackElement,c)?null:void 0},d=new dS(e.feedbackElement,u),p=null!=(r=Xx(Vx(e.feedbackElement).translate))?r:e.translate,f=new dS(c,u),h=ov.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`]}:{},b=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},xw),e.feedbackElement.setAttribute(yw,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),iS({element:e.feedbackElement,keyframes:qS(PS(PS({},v),b),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:nx($y(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(yw),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({source:p,element:h,feedbackElement:y,placeholder:X,translate:t,moved:n,transition:q,alignment:p.alignment,styles:A,animation:null!=e?e:void 0,getElementMutationObserver:()=>fe,cleanup:Ee,restoreFocus:Ce})})}});return()=>{Ee(),Re()}},WS(qw,4,"overlay",Aw,Fw,kw),FS(qw,Fw),Fw.configure=Hv(Fw);var zw,Ww,$w,Hw,Vw,Bw,Gw,Uw=Fw,Yw=!0;$w=[Ag],Hw=Zx.Forward,zw=[Ag],Ww=Zx.Reverse;var Kw=class{constructor(){BS(this,Bw,zS(Vw,8,this,Yw)),zS(Vw,11,this),BS(this,Gw,zS(Vw,12,this,Yw)),zS(Vw,15,this)}isLocked(e){return e!==Zx.Idle&&(null==e?this[Zx.Forward]===Yw&&this[Zx.Reverse]===Yw:this[e]===Yw)}unlock(e){e!==Zx.Idle&&(this[e]=false)}};Vw=OS(null),Bw=new WeakMap,Gw=new WeakMap,WS(Vw,4,Hw,$w,Kw,Bw),WS(Vw,4,Ww,zw,Kw,Gw),FS(Vw,Kw);var Xw,Jw,Zw,Qw,eC,tC,nC=[Zx.Forward,Zx.Reverse],rC=class{constructor(){this.x=new Kw,this.y=new Kw}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},oC=class extends Bv{constructor(e){super(e);const t=Lm(new rC);let n=null;this.signal=t,_m(()=>{const{status:r}=e.dragOperation;if(!r.initialized)return n=null,void(t.value=new rC);const{delta:o}=e.dragOperation.position;if(n){const e={x:iC(o.x,n.x),y:iC(o.y,n.y)},r=t.peek();gm(()=>{for(const t of fv)for(const n of nC)e[t]===n&&r[t].unlock(n);t.value=r})}n=o})}get current(){return this.signal.peek()}};function iC(e,t){return Math.sign(e-t)}var aC=class extends(Jw=Uv,Xw=[Ag],Jw){constructor(e){super(e),BS(this,Qw,zS(Zw,8,this,!1)),zS(Zw,11,this),BS(this,eC),BS(this,tC,()=>{if(!VS(this,eC))return;const{element:e,by:t}=VS(this,eC);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{var n;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return GS(this,eC,void 0),!1;const{position:o}=this.manager.dragOperation,i=null==o?void 0:o.current;if(i){const{by:o}=null!=e?e:{},a=o?{x:sC(o.x),y:sC(o.y)}:void 0,s=a?void 0:this.scrollIntentTracker.current;if(null==s?void 0:s.isLocked())return!1;for(const e of r){const r=_x(e,o);if(r.x||r.y){const{speed:r,direction:l}=tS(e,i,a,null==t?void 0:t.acceleration,null==t?void 0:t.threshold);if(s)for(const e of fv)s[e].isLocked(l[e])&&(r[e]=0,l[e]=0);if(l.x||l.y){const{x:t,y:i}=null!=o?o:l,a=t*r.x,s=i*r.y;if(a||s){const t=null==(n=VS(this,eC))?void 0:n.by;if(this.autoScrolling&&t){if(t.x&&!a||t.y&&!s)continue}return GS(this,eC,{element:e,by:{x:a,y:s}}),zx.schedule(VS(this,tC)),!0}}}}}return GS(this,eC,void 0),!1};let t=null,n=null;const r=Lg(()=>{const{position:n,source:r}=e.dragOperation;if(!n)return null;const o=ix(tx(null==r?void 0:r.element),n.current);return o&&(t=o),null!=o?o:t}),o=Lg(()=>{const t=r.value,{documentElement:o}=Gy(t);if(!t||t===o){const{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){const e=Ux(r,{excludeElement:!1});return n=e,e}}if(t){const e=Ux(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},Mg);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new oC(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&mS(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function sC(e){return e>0?Zx.Forward:e<0?Zx.Reverse:Zx.Idle}Zw=OS(Jw),Qw=new WeakMap,eC=new WeakMap,tC=new WeakMap,WS(Zw,4,"autoScrolling",Xw,aC,Qw),FS(Zw,aC);var lC=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()}),cC=class extends Bv{constructor(e,t){super(e,t);const n=e.registry.plugins.get(aC);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=_m(()=>{var t,r,o;if(this.disabled)return;const{position:i,status:a}=e.dragOperation;if(a.dragging){const e={acceleration:null==(t=this.options)?void 0:t.acceleration,threshold:"number"==typeof(null==(r=this.options)?void 0:r.threshold)?{x:this.options.threshold,y:this.options.threshold}:null==(o=this.options)?void 0:o.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;const t=setInterval(()=>lC.schedule(()=>n.scroll(void 0,e)),10);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};cC.configure=Hv(cC);var uC,dC=cC,pC={capture:!0,passive:!0},fC=class extends Uv{constructor(e){super(e),BS(this,uC),this.handleScroll=()=>{null==VS(this,uC)&&GS(this,uC,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),GS(this,uC,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=_m(()=>{var e,n,r;if(t.status.dragging){const o=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return o.addEventListener("scroll",this.handleScroll,pC),()=>{o.removeEventListener("scroll",this.handleScroll,pC)}}})}};uC=new WeakMap;function hC(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var mC,gC=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 n;const r=null!=(n=t.handle)?n:t.element;return e.target!==r}}),vC=class extends ry{constructor(e,t){super(e),this.manager=e,this.options=t,BS(this,mC,[]),this.listeners=new sx,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented)return;if(!hS(e.target))return;if(t.disabled)return;const{keyboardCodes:r=gC.keyboardCodes,preventActivation:o=gC.preventActivation}=null!=n?n:{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,n))}}bind(e,t=this.options){const n=_m(()=>{var n;const r=null!=(n=e.handle)?n:e.element,o=n=>{mS(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",o),()=>{r.removeEventListener("keydown",o)}});return n}handleStart(e,t,n){const{element:r}=t;if(!r)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),nS(r);const{center:o}=new dS(r);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=Gy(r),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];VS(this,mC).push(...a)}handleKeyDown(e,t,n){const{keyboardCodes:r=gC.keyboardCodes}=null!=n?n:{};if(xC(e,[...r.end,...r.cancel])){e.preventDefault();const t=xC(e,r.cancel);return void this.handleEnd(e,t)}xC(e,r.up)?this.handleMove("up",e):xC(e,r.down)&&this.handleMove("down",e),xC(e,r.left)?this.handleMove("left",e):xC(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(r=null==(n=this.options)?void 0:n.offset)?r:gC.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(dC);!1===(null==e?void 0:e.disabled)&&(e.disable(),VS(this,mC).push(()=>{e.enable()}))}cleanup(){VS(this,mC).forEach(e=>e()),GS(this,mC,[])}destroy(){this.cleanup(),this.listeners.clear()}};mC=new WeakMap,vC.configure=Hv(vC),vC.defaults=gC;var bC,yC=vC;function xC(e,t){return t.includes(e.code)}var SC,wC;bC=new WeakMap;SC=new WeakMap,wC=new WeakMap;var CC=class{};CC.Delay=class extends iy{constructor(){super(...arguments),BS(this,SC),BS(this,wC)}onEvent(e){switch(e.type){case"pointerdown":GS(this,wC,Ky(e)),GS(this,SC,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!VS(this,wC))return;const{x:t,y:n}=Ky(e);sv({x:t-VS(this,wC).x,y:n-VS(this,wC).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){VS(this,SC)&&(clearTimeout(VS(this,SC)),GS(this,wC,void 0),GS(this,SC,void 0))}},CC.Distance=class extends iy{constructor(){super(...arguments),BS(this,bC)}onEvent(e){switch(e.type){case"pointerdown":GS(this,bC,Ky(e));break;case"pointermove":if(!VS(this,bC))return;const{x:t,y:n}=Ky(e),r={x:t-VS(this,bC).x,y:n-VS(this,bC).y},{tolerance:o}=this.options;if(o&&sv(r,o))return void this.abort();sv(r,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){GS(this,bC,void 0)}};var EC,IC=Object.freeze({activationConstraints(e,t){var n;const{pointerType:r,target:o}=e;if("mouse"!==r||!hS(o)||t.handle!==o&&!(null==(n=t.handle)?void 0:n.contains(o)))return"touch"===r?[new CC.Delay({value:250,tolerance:5})]:function(e){if(!hS(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(n=e).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n}(o)&&!e.defaultPrevented?[new CC.Delay({value:200,tolerance:0})]:[new CC.Delay({value:200,tolerance:10}),new CC.Distance({value:5})]},preventActivation(e,t){var n;const{target:r}=e;return r!==t.element&&(r!==t.handle&&(!!hS(r)&&(!(null==(n=t.handle)?void 0:n.contains(r))&&Boolean(r.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 ')))))}}),DC=class extends ry{constructor(e,t){super(e),this.manager=e,this.options=t,BS(this,EC,new Set),this.listeners=new sx,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,n=this.options){const{activationConstraints:r=IC.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){const n=_m(()=>{var n;const r=new AbortController,{signal:o}=r,i=n=>{(function(e){if(!e)return!1;const{PointerEvent:t}=$y(e.target);return e instanceof t})(n)&&this.handlePointerDown(n,e,t)};let a=[null!=(n=e.handle)?n:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(PC(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>r.abort()});return n}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||0!==e.button||!hS(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:r=IC.preventActivation}=null!=n?n:{};if(null==r?void 0:r(e,t))return;const{target:o}=e,i=Vy(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=Yx(t.element),{x:s,y:l}=Ky(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const c=this.activationConstraints(e,t,n);e.sensor=this;const u=new oy(c,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;const d=Jy(),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:LC,options:{capture:!0}}]);VS(this,EC).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n,r;if(!1!==(null==(n=this.controller)?void 0:n.activated)){if(this.manager.dragOperation.status.dragging){const n=Ky(e),r=Yx(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,zx.schedule(this.handleMove)}}else null==(r=this.controller)||r.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:r,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=Gy(t.target).body;try{o.setPointerCapture(t.pointerId)}catch(e){return void this.handleCancel(t)}const i=hS(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:LC,options:{passive:!1}},{type:"click",listener:LC},{type:"contextmenu",listener:LC},{type:"keydown",listener:this.handleKeyDown}]);VS(this,EC).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){const{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},VS(this,EC).forEach(e=>e()),VS(this,EC).clear()}destroy(){this.cleanup(),this.listeners.clear()}};EC=new WeakMap,DC.configure=Hv(DC),DC.defaults=IC;var RC=DC;function LC(e){e.preventDefault()}function MC(){}var AC=new WeakSet;function PC(e){e&&!AC.has(e)&&(e.addEventListener("touchmove",MC,{capture:!1,passive:!1}),AC.add(e))}var qC,kC,TC,OC,NC,jC,_C,FC,zC,WC,$C,HC,VC,BC,GC,UC,YC={modifiers:[],plugins:[class extends Bv{constructor(e,t){super(e);const{id:n,idPrefix:{description:r=XS,announcement:o=JS}={},announcements:i=QS,screenReaderInstructions:a=ZS,debounce:s=500}=null!=t?t:{},l=n?`${r}-${n}`:vS(r),c=n?`${o}-${n}`:vS(o);let u,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>zx.schedule(h),g=function(e,t){let n;const r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(m,s),v=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{const o=p;if(!o)return;const i=null==t?void 0:t(n,r);i&&o.nodeValue!==i&&(f=i,tw.includes(e)?g():(m(),g.cancel()))})),b=()=>{let e=[];(null==u?void 0:u.isConnected)||(u=function(e,t){const n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(l,a.draggable),e.push(u)),(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}(c),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const n=null!=(e=t.handle)?e:t.element;if(n){u&&d||y.add(b),ew(n)&&!Zy()||n.hasAttribute("tabindex")||y.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||y.add(()=>n.setAttribute("role",YS)),n.hasAttribute("aria-roledescription")||y.add(()=>n.setAttribute("aria-roledescription",KS)),n.hasAttribute("aria-describedby")||y.add(()=>n.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const r=String(t.isDragging);n.getAttribute(e)!==r&&y.add(()=>n.setAttribute(e,r))}const e=String(t.disabled);n.getAttribute("aria-disabled")!==e&&y.add(()=>n.setAttribute("aria-disabled",e))}}y.size>0&&zx.schedule(x)}),this.destroy=()=>{super.destroy(),null==u||u.remove(),null==d||d.remove(),v.forEach(e=>e())}}},dC,class extends Bv{constructor(e,t){super(e,t),this.manager=e;const{cursor:n="grabbing"}=null!=t?t:{},r=e.registry.plugins.get(vw),o=null==r?void 0:r.register(`* { cursor: ${n} !important; }`);if(o){const e=this.destroy.bind(this);this.destroy=()=>{o(),e()}}}},Uw,class extends Bv{constructor(e){super(e),this.manager=e;const t=e.registry.plugins.get(vw),n=null==t?void 0:t.register("* { user-select: none !important; -webkit-user-select: none !important; }");if(this.destroy=_m(()=>{const{dragOperation:e}=this.manager;if(e.status.initialized)return hC(),document.addEventListener("selectionchange",hC,{capture:!0}),()=>{document.removeEventListener("selectionchange",hC,{capture:!0})}}),n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}}}],sensors:[RC,yC]},KC=class extends Ay{constructor(e={}){const t=My(e.plugins,YC.plugins),n=My(e.sensors,YC.sensors),r=My(e.modifiers,YC.modifiers);super(qS(PS({},e),{plugins:[fC,aC,vw,...t],sensors:n,modifiers:r}))}},XC=class extends(TC=jb,kC=[Ag],qC=[Ag],TC){constructor(e,t){var n=e,{element:r,effects:o=()=>[],handle:i}=n,a=TS(n,["element","effects","handle"]);super(PS({effects:()=>[...o(),()=>{var e,t;const{manager:n}=this;if(!n)return;const r=(null!=(t=null==(e=this.sensors)?void 0:e.map(Vv))?t:[...n.sensors]).map(e=>{const t=e instanceof ry?e:n.registry.register(e.plugin),r=e instanceof ry?void 0:e.options;return t.bind(this,r)});return function(){r.forEach(e=>e())}}]},a),t),BS(this,NC,zS(OC,8,this)),zS(OC,11,this),BS(this,jC,zS(OC,12,this)),zS(OC,15,this),this.element=r,this.handle=i}};OC=OS(TC),NC=new WeakMap,jC=new WeakMap,WS(OC,4,"handle",kC,XC,NC),WS(OC,4,"element",qC,XC,jC),FS(OC,XC);var JC=class extends(zC=_b,FC=[Ag],_C=[Ag],zC){constructor(e,t){var n=e,{element:r,effects:o=()=>[]}=n,i=TS(n,["element","effects"]);const{collisionDetector:a=bS}=i,s=e=>{const{manager:t,element:n}=this;if(!n||null===e)return void(this.shape=void 0);if(!t)return;const r=new dS(n),o=bm(()=>this.shape);return r&&(null==o?void 0:o.equals(r))?o:(this.shape=r,r)},l=Lm(!1);super(qS(PS({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:n}=t,{source:r}=n;l.value=Boolean(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{const{element:e}=this;if(l.value&&e){const t=new kx(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),BS(this,GC),BS(this,$C,zS(WC,8,this)),zS(WC,11,this),BS(this,UC,zS(WC,12,this)),zS(WC,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){GS(this,GC,e,BC)}get element(){var e;return null!=(e=this.proxy)?e:VS(this,GC,VC)}};function ZC(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}WC=OS(zC),$C=new WeakMap,GC=new WeakSet,UC=new WeakMap,HC=WS(WC,20,"#element",FC,GC,$C),VC=HC.get,BC=HC.set,WS(WC,4,"proxy",_C,JC,UC),FS(WC,JC);var QC="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?g:d;function eE(){const e=m(0)[1];return f(()=>{e(e=>e+1)},[e])}function tE(e,t=[],n=!1){const r=l(e);return r.current=e,function(e,t=!1){const n=l(e.peek()),r=l(!1),o=eE();return QC(()=>_m(()=>{const i=n.current,a=e.value;if(i!==a){if(n.current=a,!r.current)return;t?D(o):o()}}),[e,t,o]),{get value(){return r.current=!0,e.peek()}}}(v(()=>Lg(()=>r.current()),t),n)}function nE(e,t){const n=l(new Map),r=eE();return QC(()=>{if(e)return _m(()=>{var o;let i=!1,a=!1;for(const r of n.current){const[s]=r,l=bm(()=>r[1]),c=e[s];l!==c&&(i=!0,n.current.set(s,c),a=null!=(o=null==t?void 0:t(s,l,c))&&o)}i&&(a?queueMicrotask(()=>D(r)):r())});n.current.clear()},[e]),v(()=>e?new Proxy(e,{get(e,t){const r=e[t];return n.current.set(t,r),r}}):e,[e])}function rE(e,t){e()}function oE(e){const t=l(e);return QC(()=>{t.current=e},[e]),t}function iE(e,t,n=d,r=Object.is){const o=l(e);n(()=>{const n=o.current;r(e,n)||(o.current=e,t(e,n))},[t,e])}function aE(e,t){const n=l(ZC(e));QC(()=>{const r=ZC(e);r!==n.current&&(n.current=r,t(r))})}var sE=Object.defineProperty,lE=Object.defineProperties,cE=Object.getOwnPropertyDescriptors,uE=Object.getOwnPropertySymbols,dE=Object.prototype.hasOwnProperty,pE=Object.prototype.propertyIsEnumerable,fE=(e,t,n)=>t in e?sE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hE=new KC,mE=c(hE),gE=y(x(({children:e},t)=>{const[n,r]=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(),r(e=>e+1)})}}),[]);return QC(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,n]),w(t,()=>a),null})),vE=[void 0,Mg];function bE(e){var t=e,{children:n,onCollision:r,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:c}=t,u=((e,t)=>{var n={};for(var r in e)dE.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&uE)for(var r of uE(e))t.indexOf(r)<0&&pE.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const p=l(null),{plugins:f,modifiers:h,sensors:m}=u,g=My(f,YC.plugins),v=My(m,YC.sensors),y=My(h,YC.modifiers),x=oE(o),S=oE(i),w=oE(s),C=oE(a),E=oE(c),I=oE(r),D=function(e){const t=l(null);t.current||(t.current=e());return b(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=u.manager)?e:new KC(u)});return d(()=>{if(!p.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=p.current,{monitor:n}=D;D.renderer=e;const r=[n.addEventListener("beforedragstart",e=>{const n=x.current;n&&t(()=>n(e,D))}),n.addEventListener("dragstart",e=>{var t;return null==(t=S.current)?void 0:t.call(S,e,D)}),n.addEventListener("dragover",e=>{const n=w.current;n&&t(()=>n(e,D))}),n.addEventListener("dragmove",e=>{const n=C.current;n&&t(()=>n(e,D))}),n.addEventListener("dragend",e=>{const n=E.current;n&&t(()=>n(e,D))}),n.addEventListener("collision",e=>{var t;return null==(t=I.current)?void 0:t.call(I,e,D)})];return()=>r.forEach(e=>e())},[D]),iE(g,()=>D&&(D.plugins=g),...vE),iE(v,()=>D&&(D.sensors=v),...vE),iE(y,()=>D&&(D.modifiers=y),...vE),fi.jsxs(mE.Provider,{value:D,children:[fi.jsx(gE,{ref:p,children:n}),n]})}function yE(){return h(mE)}function xE(e){var t;const n=null!=(t=yE())?t:void 0,[r]=m(()=>e(n));return r.manager!==n&&(r.manager=n),QC(r.register,[n,r]),r}function SE({children:e,className:t,dropAnimation:n,style:o,tag:i,disabled:a}){var s;const c=l(null),u=yE(),p=null!=(s=tE(()=>null==u?void 0:u.dragOperation.source,[u]).value)?s:null,f="function"==typeof a?a(p):a;d(()=>{if(!c.current||!u||f)return;const e=u.plugins.find(e=>e instanceof Uw);return e?(e.overlay=c.current,()=>{e.overlay=void 0}):void 0},[u,f]),d(()=>{if(!u)return;const e=u.plugins.find(e=>e instanceof Uw);return e?(e.dropAnimation=n,()=>{e.dropAnimation=void 0}):void 0},[u,n]);const h=v(()=>{if(!u)return null;const e=new Proxy(u.registry,{get:(e,t)=>"register"===t||"unregister"===t?wE:e[t]});return new Proxy(u,{get:(t,n)=>"registry"===n?e:t[n]})},[u]);return fi.jsx(mE.Provider,{value:h,children:r(i||"div",{ref:c,className:t,style:o,"data-dnd-overlay":!0},function(){if(!p||f)return null;if("function"==typeof e)return fi.jsx(CE,{source:p,children:e});return e}())})}function wE(){return()=>{}}function CE({children:e,source:t}){return e(nE(t))}var EE,IE,DE,RE,LE,ME=Object.create,AE=Object.defineProperty,PE=Object.getOwnPropertyDescriptor,qE=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),kE=e=>{throw TypeError(e)},TE=["class","method","getter","setter","accessor","field","value","get","set"],OE=e=>void 0!==e&&"function"!=typeof e?kE("Function expected"):e,NE=(e,t,n,r,o)=>({kind:TE[e],name:t,metadata:r,addInitializer:e=>n._?kE("Already initialized"):o.push(OE(e||null))}),jE=(e,t,n,r,o,i)=>{for(var a,s,l,c,u=7&t,d=TE[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,PE(o,n)),h=r.length-1;h>=0;h--)(l=NE(u,n,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>n in e},c.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,OE(a)&&(f[d]=a);return f&&AE(o,n,f),o},_E=(e,t,n)=>t.has(e)||kE("Cannot "+n),FE=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.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:n}){return new e(t,n)}},zE=class extends(DE=Og,IE=[Pg],EE=[Pg],DE){constructor(e){var t,n,r;super(FE.from(e),(e,t)=>FE.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(LE,5,this),t=this,r=0,(n=RE).has(t)?kE("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return FE.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=FE.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(_E(a=this,s=RE,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);gm(()=>{((e,t,n)=>{_E(e,t,"write to private field"),t.set(e,n)})(this,RE,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(FE.from(e)),this.velocity={x:0,y:0}}};LE=(e=>{var t;return[,,,ME(null!=(t=null==e?void 0:e[qE("metadata")])?t:null)]})(DE),RE=new WeakMap,jE(LE,2,"delta",IE,zE),jE(LE,2,"direction",EE,zE),((e,t)=>{return n=t,r=qE("metadata"),o=e[3],r in n?AE(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o;var n,r,o})(LE,zE);var WE=(e=>(e.Horizontal="x",e.Vertical="y",e))(WE||{});Object.values(WE);var $E=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/FE.distance(t.shape.center,n),type:Qb.PointerIntersection,priority:Zb.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=FE.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:Qb.ShapeIntersection,priority:Zb.Normal}}return null})(e)};function HE(e){const{collisionDetector:t,data:n,disabled:r,element:o,id:i,accept:a,type:s}=e,l=xE(t=>new JC(((e,t)=>lE(e,cE(t)))(((e,t)=>{for(var n in t||(t={}))dE.call(t,n)&&fE(e,n,t[n]);if(uE)for(var n of uE(t))pE.call(t,n)&&fE(e,n,t[n]);return e})({},e),{register:!1,element:ZC(o)}),t)),c=nE(l);return iE(i,()=>l.id=i),aE(o,e=>l.element=e),iE(a,()=>l.accept=a,void 0,Mg),iE(t,()=>l.collisionDetector=null!=t?t:$E),iE(n,()=>n&&(l.data=n)),iE(r,()=>l.disabled=!0===r),iE(s,()=>l.type=s),{droppable:c,get isDropTarget(){return c.isDropTarget},ref:f(e=>{var t,n;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}const VE=e=>Array.from({length:e},(e,t)=>t),BE=({id:e,sectionIndex:t,itemIndex:n})=>fi.jsx("span",{children:`${e}-${t}-${n}`}),GE=n.memo(()=>{const e=qf(im)??BE,{startSectionIndex:t,startIndex:n,id:r}=qf(cm)??{};return"number"!=typeof t||"number"!=typeof n||void 0===r?null:fi.jsx(SE,{dropAnimation:null,children:fi.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:fi.jsx(e,{id:r,sectionIndex:t,itemIndex:n})})})}),UE=({sectionIndex:e,itemIndex:t,isDragging:n})=>{const r=qf(cm),o=r?.toSectionIndex===e&&r.toIndex===t;return fi.jsx("div",{"data-key":"drop-target-indicator","data-testid":"drop-target-indicator",style:{visibility:o&&!n?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},YE=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,KE=n.memo(({sectionIndex:e})=>{const t=qf(Zh)[e],n=qf(Qh),r=qf(em),o=null!==qf(cm),i=r(e),a=n({sectionIndex:e}),{ref:s,isDropTarget:l}=HE({id:a,type:"section",accept:"item",collisionPriority:Zb.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:fi.jsxs(hc,{ref:s,sx:{margin:"4px",outline:YE(l,o),borderRadius:"4px",boxSizing:"border-box"},children:[fi.jsx(hc,{sx:{position:"relative",top:"4px"},children:fi.jsx(UE,{sectionIndex:e,itemIndex:0,isDragging:!1})}),fi.jsxs(hc,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[fi.jsx(Al,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:i.title}),fi.jsx(Al,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:i.message})]})]})}),XE=n.memo(({id:e,sectionIndex:t})=>{const n=qf(om);return void 0===n?null:fi.jsx(n,{id:e,sectionIndex:t})});var JE=Object.defineProperty,ZE=Object.defineProperties,QE=Object.getOwnPropertyDescriptors,eI=Object.getOwnPropertySymbols,tI=Object.prototype.hasOwnProperty,nI=Object.prototype.propertyIsEnumerable,rI=(e,t,n)=>t in e?JE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oI=(e,t)=>{for(var n in t||(t={}))tI.call(t,n)&&rI(e,n,t[n]);if(eI)for(var n of eI(t))nI.call(t,n)&&rI(e,n,t[n]);return e},iI=(e,t)=>ZE(e,QE(t)),aI=class extends Iy{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return iI(oI({},e),{[t]:n})}};aI.configure=Hv(aI);var sI=aI,lI=sI.configure({axis:"x",value:0});sI.configure({axis:"y",value:0});var cI=class extends Iy{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,o="number"==typeof n?n:n.y;return iI(oI({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/o)*o})}};cI.configure=Hv(cI);var uI=Object.create,dI=Object.defineProperty,pI=Object.defineProperties,fI=Object.getOwnPropertyDescriptor,hI=Object.getOwnPropertyDescriptors,mI=Object.getOwnPropertySymbols,gI=Object.prototype.hasOwnProperty,vI=Object.prototype.propertyIsEnumerable,bI=e=>{throw TypeError(e)},yI=(e,t,n)=>t in e?dI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xI=(e,t)=>{for(var n in t||(t={}))gI.call(t,n)&&yI(e,n,t[n]);if(mI)for(var n of mI(t))vI.call(t,n)&&yI(e,n,t[n]);return e},SI=(e,t)=>pI(e,hI(t)),wI=["class","method","getter","setter","accessor","field","value","get","set"],CI=e=>void 0!==e&&"function"!=typeof e?bI("Function expected"):e,EI=(e,t,n,r,o)=>({kind:wI[e],name:t,metadata:r,addInitializer:e=>n._?bI("Already initialized"):o.push(CI(e||null))}),II=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},DI=(e,t,n,r,o,i)=>{for(var a,s,l,c,u,d=7&t,p=e.length+1,f=wI[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,fI({get[n](){return LI(this,i)},set[n](e){return AI(this,i,e)}},n)),v=r.length-1;v>=0;v--)(c=EI(d,n,l={},e[3],m)).static=false,c.private=false,u=c.access={has:e=>n in e},u.get=e=>e[n],u.set=(e,t)=>e[n]=t,s=(0,r[v])({get:g.get,set:g.set},c),l._=1,void 0===s?CI(s)&&(g[f]=s):"object"!=typeof s||null===s?bI("Object expected"):(CI(a=s.get)&&(g.get=a),CI(a=s.set)&&(g.set=a),CI(a=s.init)&&h.unshift(a));return g&&dI(o,n,g),o},RI=(e,t,n)=>t.has(e)||bI("Cannot "+n),LI=(e,t,n)=>(RI(e,t,"read from private field"),t.get(e)),MI=(e,t,n)=>t.has(e)?bI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),AI=(e,t,n,r)=>(RI(e,t,"write to private field"),t.set(e,n),n);function PI(e){return e instanceof lD||e instanceof sD}var qI=class extends Bv{constructor(e){super(e);const t=_m(()=>{const{dragOperation:t}=e;if(mS(t.activatorEvent)&&PI(t.source)&&t.status.initialized){const t=e.registry.plugins.get(aC);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:n}=t;if(!mS(e.nativeEvent))return;if(!PI(n.source))return;if(!n.shape)return;const{actions:r,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:n}=e;if(t>0)return"right";if(t<0)return"left";if(n>0)return"down";if(n<0)return"up"}(a),{source:l,target:c}=n,{center:u}=n.shape.current,d=[],p=[];gm(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==c?void 0:c.id)&&PI(e)||!e.element)continue;let n=e.shape;const r=new dS(e.element,{getBoundingClientRect:e=>Yy(e,void 0,.2)});r.height&&r.width&&(("down"==s&&u.y+10<r.center.y||"up"==s&&u.y-10>r.center.y||"left"==s&&u.x-10>r.center.x||"right"==s&&u.x+10<r.center.x)&&(d.push(e),e.shape=r,p.push(()=>e.shape=n)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,yS);gm(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:v}=l.sortable;r.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=n;if(!e||!PI(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,c=g!==a||v!==s,u=c?l:null==t?void 0:t.element;if(!u)return;nS(u);const d=new dS(u);if(!d)return;const p=ov.delta(d,ov.from(i.current.boundingRectangle),e.alignment);r.move({by:p}),c?r.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{n(),t()}}};var kI=Object.defineProperty,TI=Object.defineProperties,OI=Object.getOwnPropertyDescriptors,NI=Object.getOwnPropertySymbols,jI=Object.prototype.hasOwnProperty,_I=Object.prototype.propertyIsEnumerable,FI=(e,t,n)=>t in e?kI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zI=(e,t)=>{for(var n in t||(t={}))jI.call(t,n)&&FI(e,n,t[n]);if(NI)for(var n of NI(t))_I.call(t,n)&&FI(e,n,t[n]);return e},WI=(e,t)=>TI(e,OI(t));function $I(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function HI(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function VI(e,t){return function(e,t,n){var r,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const c=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>c(e,a.id)),o=e.findIndex(e=>c(e,s.id));if(-1===r||-1===o){if(HI(a)){const r=a.initialIndex,o=a.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const u=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of u)if(-1===f&&(f=t.findIndex(e=>c(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>c(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&HI(a)){const r=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==r||null==i||!(r in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(r===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===i)return WI(zI({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return WI(zI({},e),{[r]:[...e[r].slice(0,o),...e[r].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==(r=m.shape)?void 0:r.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&&HI(a)){const t=null!=a.group&&a.group!==d,r=a.index!==f;if(t||r){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return WI(zI({},e),{[d]:n(e[d],f,a.index)});const r=e[d][f];return WI(zI({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),r,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return WI(zI({},e),{[d]:n(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,b=e[d][f];return WI(zI({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),b,...e[p].slice(h+v)]})}(e,t,$I)}var BI="__default__";function GI(e,t,n,r){const o=r<t?"afterend":"beforebegin";n.insertAdjacentElement(o,e)}function UI(e,t){return e.index-t.index}function YI(e){return Array.from(e).sort(UI)}var KI,XI,JI,ZI,QI,eD,tD,nD,rD=[qI,class extends Bv{constructor(e){super(e);const t=()=>{const t=new Map;for(const n of e.registry.droppables)if(n instanceof lD){const{sortable:e}=n,{group:r}=e;let o=t.get(r);o||(o=new Set,t.set(r,o)),o.add(e)}for(const[e,n]of t)t.set(e,new Set(YI(n)));return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;const{dragOperation:r}=n,{source:o,target:i}=r;if(!PI(o)||!PI(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),c=s?l:a.get(i.sortable.group);l&&c&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var r,u,d;const p=t();for(const[e,t]of a.entries()){const n=Array.from(t).entries();for(const[t,o]of n)if(o.index!==t||o.group!==e||!(null==(r=p.get(e))?void 0:r.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=YI(l),g=s?m:YI(c),v=null!=(u=o.sortable.group)?u:BI,b=null!=(d=i.sortable.group)?d:BI,y={[v]:m,[b]:g},x=VI(y,e);if(y===x)return;const S=x[b].indexOf(o.sortable),w=x[b].indexOf(i.sortable);n.collisionObserver.disable(),GI(f,S,h,w),gm(()=>{for(const[e,t]of x[v].entries())t.index=e;if(!s)for(const[e,t]of x[b].entries())t.group=i.sortable.group,t.index=e}),n.actions.setDropTarget(o.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;const{dragOperation:r}=n,{source:o}=r;PI(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),r=e.get(o.sortable.initialGroup);r&&n.renderer.rendering.then(()=>{for(const[t,n]of e.entries()){const e=Array.from(n).entries();for(const[n,r]of e)if(r.index!==n||r.group!==t)return}const t=YI(r),n=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&n&&(GI(n,i.index,a,o.index),gm(()=>{for(const[t,n]of e.entries()){const e=Array.from(n).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of n)e()}}}],oD={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},iD=new class{constructor(){Ig(this,Tg,new WeakMap)}get(e,t){var n;return e?null==(n=Eg(this,Tg).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return Eg(this,Tg).has(e)||Eg(this,Tg).set(e,new Map),null==(r=Eg(this,Tg).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=Eg(this,Tg).get(e))?void 0:t.clear():void 0}};XI=[Ag],KI=[Ag];var aD=class{constructor(e,t){MI(this,ZI,II(JI,8,this)),II(JI,11,this),MI(this,QI),MI(this,eD),MI(this,tD,II(JI,12,this)),II(JI,15,this),MI(this,nD),this.register=()=>(gm(()=>{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=()=>{gm(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{gm(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=e,{effects:r=()=>[],group:o,index:i,sensors:a,type:s,transition:l=oD,plugins:c}=n,u=((e,t)=>{var n={};for(var r in e)gI.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&mI)for(var r of mI(e))t.indexOf(r)<0&&vI.call(e,r)&&(n[r]=e[r]);return n})(n,["effects","group","index","sensors","type","transition","plugins"]);const d=My(c,rD);this.droppable=new lD(u,t,this),this.draggable=new sD(SI(xI({},u),{plugins:d,effects:()=>[()=>{var e,t,n;const r=null==(e=this.manager)?void 0:e.dragOperation.status;(null==r?void 0:r.initializing)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&iD.clear(this.manager),(null==r?void 0:r.dragging)&&iD.set(this.manager,this.id,bm(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:n}=this,r=LI(this,eD),o=LI(this,QI);e===r&&t===o||(AI(this,eD,e),AI(this,QI,t),this.animate())},()=>{var e,t;const{target:n}=this,{isDragSource:r}=this.draggable;"move"===(null!=(t=null==(e=this.draggable.pluginConfig(Uw))?void 0:e.feedback)?t:"default")&&r&&(this.droppable.disabled=!n)},...r()],type:s,sensors:a}),t,this),AI(this,nD,u.element),this.manager=t,this.index=i,AI(this,eD,i),this.group=o,AI(this,QI,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=iD.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=iD.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){bm(()=>{const{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;const{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;for(const e of r.getAnimations())!("transitionProperty"in e)||"transform"!==e.transitionProperty&&"translate"!==e.transitionProperty&&"scale"!==e.transitionProperty||e.cancel();const o=this.refreshShape();if(!o)return;const i=n.boundingRectangle.left-o.boundingRectangle.left,a=n.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=Vx(r),l=aS(r,s,!1),c=aS(r,s);if(i||a){const n=nx($y(r))?SI(xI({},t),{duration:0}):t;iS({element:r,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${c.x}px ${c.y}px ${c.z}`]},options:n}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){gm(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){gm(()=>{const t=LI(this,nD),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),AI(this,nD,e)})}get element(){var e,t;const n=LI(this,nD);if(n)return null!=(t=null!=(e=ax.get(n))?e:n)?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 plugins(e){this.draggable.plugins=My(e,rD)}set disabled(e){gm(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){gm(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){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:bS}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){gm(()=>{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)}};JI=[,,,uI(null)],ZI=new WeakMap,QI=new WeakMap,eD=new WeakMap,tD=new WeakMap,nD=new WeakMap,DI(JI,4,"index",XI,aD,ZI),DI(JI,4,"group",KI,aD,tD),((e,t)=>{return yI(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r})(JI,aD);var sD=class extends XC{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},lD=class extends JC{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}},cD=Object.defineProperty,uD=Object.defineProperties,dD=Object.getOwnPropertyDescriptors,pD=Object.getOwnPropertySymbols,fD=Object.prototype.hasOwnProperty,hD=Object.prototype.propertyIsEnumerable,mD=(e,t,n)=>t in e?cD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gD=(e,t)=>{for(var n in t||(t={}))fD.call(t,n)&&mD(e,n,t[n]);if(pD)for(var n of pD(t))hD.call(t,n)&&mD(e,n,t[n]);return e};function vD(e){const{accept:t,collisionDetector:n,collisionPriority:r,id:o,data:i,element:a,handle:s,index:l,group:c,disabled:u,modifiers:d,sensors:p,target:h,type:m,plugins:g}=e,v=gD(gD({},oD),e.transition),b=xE(t=>new aD(((e,t)=>uD(e,dD(t)))(gD({},e),{transition:v,register:!1,handle:ZC(s),element:ZC(a),target:ZC(h)}),t)),y=nE(b,bD);return iE(o,()=>b.id=o),QC(()=>{gm(()=>{b.group=c,b.index=l})},[b,c,l]),iE(m,()=>b.type=m),iE(t,()=>b.accept=t,void 0,Mg),iE(i,()=>i&&(b.data=i)),iE(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==v?void 0:v.idle)&&b.refreshShape()},rE),aE(s,e=>b.handle=e),aE(a,e=>b.element=e),aE(h,e=>b.target=e),iE(u,()=>b.disabled=!0===u),iE(p,()=>b.sensors=p),iE(n,()=>b.collisionDetector=n),iE(r,()=>b.collisionPriority=r),iE(g,()=>b.plugins=g,void 0,Mg),iE(v,()=>b.transition=v,void 0,Mg),iE(d,()=>b.modifiers=d,void 0,Mg),iE(e.alignment,()=>b.alignment=e.alignment),{sortable:y,get isDragging(){return y.isDragging},get isDropping(){return y.isDropping},get isDragSource(){return y.isDragSource},get isDropTarget(){return y.isDropTarget},handleRef:f(e=>{b.handle=null!=e?e:void 0},[b]),ref:f(e=>{var t,n;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:f(e=>{var t,n;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:f(e=>{var t,n;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function bD(e,t,n){return!("isDragSource"!==e||n||!t)}const yD=({id:e,itemIndex:t,sectionIndex:n})=>fi.jsx("div",{children:`${n}:${t} - ${e}`}),xD=({id:e,itemIndex:t,sectionIndex:n})=>{const r=qf(am),o=qf(rm),i=qf(Zh).at(n)??0,a=qf(Qh)({sectionIndex:n}),{ref:s,isDragging:l,handleRef:c}=vD({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[lI],plugins:[qI],data:{id:e,sectionIndex:n,sectionKey:a,itemIndex:t}}),u=void 0!==r?()=>{r({id:e,itemIndex:t,sectionIndex:n})}:void 0,d=o??yD;return fi.jsx(Ju,{className:"section-item-container","data-testid":"section-item",onClick:u,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:fi.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[fi.jsx(UE,{isDragging:l,itemIndex:t,sectionIndex:n}),fi.jsx(d,{id:e,itemIndex:t,sectionIndex:n,dragHandleRef:c}),t===i-1&&fi.jsx(UE,{isDragging:!1,itemIndex:t+1,sectionIndex:n})]})})},SD=n.memo(xD),wD=n.memo(({sectionIndex:e})=>{const t=qf(Qh),n=qf(Zh).at(e)??0,r=t({sectionIndex:e});return fi.jsxs(hc,{className:"exploration-list",style:{overflow:"auto"},children:[fi.jsx(lu,{}),fi.jsx(XE,{id:r,sectionIndex:e}),fi.jsx(lu,{}),fi.jsx(KE,{sectionIndex:e}),fi.jsx(Fu,{sx:{padding:"2px 8px"},children:VE(n).map(n=>{const r=t({sectionIndex:e,itemIndex:n});return fi.jsx(SD,{id:r,itemIndex:n,sectionIndex:e},r)})})]},r)}),CD=[RC.configure({activationConstraints:[new CC.Distance({value:5})]}),yC],ED=n.memo(()=>{const e=qf(Jh),t=qf(Qh),n=kf(um("start")),r=kf(um("over")),o=kf(um("end"));return fi.jsxs(bE,{sensors:CD,onDragEnd:e=>{o(e)},onDragOver:e=>{r(e)},onDragStart:e=>{n(e)},children:[fi.jsx(hc,{style:{display:"flex",flexDirection:"column"},children:VE(e).map(e=>fi.jsx(wD,{sectionIndex:e},t({sectionIndex:e})))}),fi.jsx(GE,{})]})}),ID=n.memo(e=>fi.jsx(Oh,{atoms:dm,atomFamilies:pm,children:fi.jsx(fm,{props:e,children:fi.jsx(ED,{})})})),DD="12px",RD="nebula-table-utils-head-menu-button",LD="sn-copy-cell";let MD=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 AD="nebula-table-utils-column-adjuster";let PD=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}({}),qD=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const kD={darker:.15,brighter:.3,opacity:.03},TD={darker:.3,brighter:.5,opacity:.05};let OD=function(e){return e.Cyclic="C",e}({});const ND=(e,t)=>{const n=new Map;for(const t of e)n.set(t.id,t);return t.reduce((e,t)=>{const r=n.get(t);return r&&e.push(r),e},[])},jD=Yh(e=>xf(t=>{const n=t(ch),r=t(oh)?.[e];return r||n?.qHyperCubeDef.rankedList?.[e]})),_D=Yh(e=>xf(t=>{const n=t(Qf),r=t(Yf),o=t(sh),i=t(oh)?.[e],a=n("SUPPORT-9810-MISSING-MEASURES",!1)?r?.properties.qHyperCubeDef.rankedList?.[e]:o?.qHyperCube.rankedList?.[e];return i||(r?.isRankedListCorrupt(e)||void 0===a?r?.createRankedList(e):a)})),FD=e=>"string"==typeof e.id,zD=e=>xf(t=>{const n=t(e),r=t(Sh);if(!n||0===n.length)return"disabled";const o=n.filter(FD);if(0===o.length)return"disabled";const i=o.filter(e=>r.has(e.id)).length;return 0===i?"none":i===o.length?"all":"some"}),WD=e=>xf(null,(t,n,r)=>{const o=t(e),i=o?.filter(FD);i&&0!==i.length&&(e=>{const{items:t,shouldCheckAll:n,get:r,set:o}=e,i=r(Sh),a=new Set,s=new Set;if(t.forEach(e=>{const t=i.has(e.id);t&&!n&&s.add(e.id),!t&&n&&a.add(e.id)}),0===a.size&&0===s.size)return;const l=new Set(r(vh)),c=new Set(r(bh));a.forEach(e=>l.add(e)),a.forEach(e=>c.delete(e)),s.forEach(e=>c.add(e)),s.forEach(e=>l.delete(e)),o(vh,l),o(bh,c),Gf({type:"apply",localChecked:a,localUnchecked:s,handler:r(Yf),model:r(Uf),fieldTypeById:r(ph),handlerQueue:r(hh)})})({items:i,shouldCheckAll:r,get:t,set:n})}),$D=xf(e=>{const t=e(lh);return t?.qHyperCube.qDimensionInfo.filter(eh).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??"",alternative:!0}))}),HD=xf(e=>{const t=e(sh),n=e(Xf),r=t?.qHyperCube.qEffectiveInterColumnSortOrder.map(e=>{if(-1===e)return{id:-1,title:n("Common.Values")};const{cId:r,qFallbackTitle:o}=t.qHyperCube.qDimensionInfo[e];return{id:r,title:o??""}});return r}),VD=xf(e=>{const t=e(Xf),n=e($D),r=e(Zf),o=e(Qf)("SUPPORT-9810-MIGRATE-RANKED-LISTS",!1),i=e(o?jD("columns"):_D("columns")),a=e(o?jD("rows"):_D("rows")),s=e(HD);if(void 0===n||void 0===i||void 0===a||void 0===s)return[];const l=[...s,...n].filter(r);return[{id:"rows",title:t("Common.Rows"),items:ND(l,a)},{id:"columns",title:t("Common.Columns"),items:ND(l,i)}]}),BD=Yh(e=>xf(t=>t(VD).at(e))),GD=Yh(({sectionIndex:e,itemIndex:t})=>xf(n=>n(BD(e))?.items.at(t)?.title),(e,t)=>e.sectionIndex===t.sectionIndex&&e.itemIndex===t.itemIndex),UD=Yh(e=>xf(t=>t(BD(e))?.title)),YD=xf(e=>({sectionIndex:t,itemIndex:n})=>{const r=e(BD(t));return void 0===r?0===t?"rows":"columns":void 0===n?r.id:r.items.at(n)?.id??`missing-item-${t}-${n}`}),KD=xf(e=>e(VD).map(e=>e.items.length)),XD=Yh(e=>zD(xf(t=>t(BD(e))?.items))),JD=Yh(e=>WD(xf(t=>t(BD(e))?.items))),ZD=xf(null,(e,t,{event:n,id:r,toIndex:o,toSection:i,startSection:a})=>{const s=e(Yf),l=e(Uf),c=e(hh),u=e(jD("rows")),d=e(jD("columns")),p=i;if(void 0===s||void 0===l||void 0===u||void 0===d||null===c)return;if(n.operation.canceled)return void t(oh,null);if("section"===n.operation.target?.type&&a===i)return void t(oh,null);const f=Uh({rows:u,columns:d},n);t(oh,f),c.add(async()=>{"number"==typeof r?await s.movePseudoDimension({toIndex:o,toSection:p}):await s.moveDimension({cId:r,toIndex:o,toSection:p})})}),QD={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"}},eR="ChartExploration.PivotTable.DimensionSectionEmpty.Message",tR="ChartExploration.PivotTable.MeasureSectionEmpty.Message",nR="#177fe6",rR=(e,t,n,r)=>{if("measure"===t)return e(r?QD.noSearchFound.measure:QD.noItems.measure);const o=r?QD.noSearchFound:QD.noItems;return e(n?o.row:o.column)},oR=(e,t,n)=>n?"":e("measure"===t?tR:eR),iR=Yh(e=>xf(t=>{const n=t(Xf),r=t(Jf).length>0;return t=>({title:rR(n,e,0===t,r),message:oR(n,e,r)})})),aR=iR("measure"),sR=iR("dimensions"),lR=({children:e})=>fi.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e}),cR=e=>{const t=qf(GD(e));return fi.jsx(lR,{children:t})},uR=xf(e=>{const t=e(lh);return t?.qHyperCube.qMeasureInfo.filter(eh).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??""}))}),dR=xf(e=>{const t=e(Qf)("SUPPORT-9810-MIGRATE-RANKED-LISTS",!1),n=e(sh),r=e(uR),o=e(Zf),i=e(t?jD("measures"):_D("measures"));if(void 0===n||void 0===r||void 0===i)return[];const a=n.qHyperCube.qMeasureInfo.filter(eh).map(({cId:e,qFallbackTitle:t})=>({id:e,title:t??""}));a.push(...r);const s=a.filter(o);return ND(s,i)}),pR=Yh(e=>xf(t=>t(dR).at(e)?.title??"")),fR=xf(e=>({itemIndex:t})=>{const n=e(dR);return void 0===t?"measures":n.at(t)?.id??`missing-item-${t}`}),hR=xf(e=>[e(dR).length]),mR=zD(dR),gR=WD(dR),vR=xf(null,(e,t,{id:n,toIndex:r,event:o})=>{const i=e(Yf),a=e(Uf),s=e(hh),l=e(jD("measures"));if(void 0===i||void 0===a||void 0===l||"string"!=typeof n||null===s)return;const c=Uh({measures:l},o);t(oh,c),s.add(async()=>{await i.moveMeasure({cId:n,toIndex:r})})}),bR={...mp},yR=_p().palette,xR={TEXT:yR.text.primary,DISABLED:yR.text.disabled,HOVER:yR.action.hover,WHITE:bR.GREYSCALE_100,BORDER_MEDIUM:bR.GREYSCALE_85,DARK_MODE_TEXT:bR.GREYSCALE_95,DARK_MODE_BORDER:bR.GREYSCALE_95,DARK_MODE_DISABLED:bR.GREYSCALE_70,TRANSPARENT:"transparent",SELECTED:yR.primary.main,LINK:yR.info.main,ERROR:yR.error.main};function SR(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 wR(e){if("object"==typeof e&&SR(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=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),n=parseInt(o[2],10),r=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),n=parseInt(o[2],16),r=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),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const CR={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}},ER="qcm-color";function IR(...e){const t={type:ER,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===ER)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(SR(e[0]))({r:n,g:r,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))n=parseInt(s[1],10),r=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))n=parseInt(s[1],10),r=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,n=parseInt(s[2],10),r=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))n=parseInt(s[1],16),r=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))n=parseInt(s[1]+s[1],16),r=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 c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),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 c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),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 c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in CR}(e)){const t=CR[e];({r:n,g:r,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,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function DR(e){let t,n,r;if(SR(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?wR(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function RR(e){let t,n,r=0;const o="string"==typeof e?IR(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,c=Math.max(i,a,s),u=Math.min(i,a,s),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function LR(e){let t,n,r=0;const o="string"==typeof e?IR(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=l;if(l===c)t=0,r=0;else{switch(n=l-c,t=0===n?0:n/u,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function MR(e){if(SR(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?wR(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function AR(e,t){return SR(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:AR(IR(e))}function PR(e){return SR(e)?1===e.a?MR(e):AR(e):PR(IR(e))}const qR=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function kR(e){return.2126*qR(e.r)+.7152*qR(e.g)+.0722*qR(e.b)}function TR(...e){const t=IR(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=RR(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=IR(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=IR(...e);return t.invalid||kR(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=MR(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=AR(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=PR(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=DR(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?IR(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=(l+c)/2;if(l===c)t=0,r=0;else{switch(n=l-c,t=u>.5?n/(2-l-c):n/(l+c),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=RR(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=LR(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=LR(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>TR(o(18*e)),getDarkenedColor:(e=1)=>TR(o(18*-e))}}function OR(e,t){if(!e||!t)return;const n=kR(e),r=kR(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const NR="#FFFFFF";function jR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;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:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _R,FR="top",zR="top-right",WR="right",$R="bottom-right",HR="bottom",VR="bottom-left",BR="left",GR="top-left";jR(jR(jR(jR(jR(jR(jR(jR(jR(jR(_R={},"equal-equal",[FR,HR]),"equal-higher",[HR,$R]),"equal-lower",[FR,zR]),"equal-void",[FR,HR]),"higher-equal",[BR,VR,FR,zR]),"higher-higher-acute",[HR,VR,BR,zR]),"higher-higher-obtuse",[HR,FR]),"higher-lower-negative",[FR,zR,WR]),"higher-lower-positive",[HR,VR,BR]),"higher-void",[FR]),jR(jR(jR(jR(jR(jR(jR(jR(jR(jR(_R,"lower-equal",[FR]),"lower-higher-negative",[FR,GR]),"lower-higher-positive",[$R]),"lower-lower-acute",[FR,GR,BR,zR,WR]),"lower-lower-obtuse",[FR,HR]),"lower-void",[FR]),"void-equal",[FR]),"void-higher",[FR,HR]),"void-lower",[FR,HR,BR]),"void-void",[FR]),jR(_R,"unclassified",[FR,HR,WR,BR,zR,$R,VR,GR]);var UR,YR,KR=["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"],XR=["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 JR(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?XR:KR}var ZR=function(){if(YR)return UR;YR=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=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},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return UR=function e(){var t,n,r,l,c,u,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(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},UR}();function QR(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function eL(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function tL(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(ZR);var nL=.7,rL=1/nL,oL="\\s*([+-]?\\d+)\\s*",iL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",aL="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sL=/^#([0-9a-f]{3,8})$/,lL=new RegExp(`^rgb\\(${oL},${oL},${oL}\\)$`),cL=new RegExp(`^rgb\\(${aL},${aL},${aL}\\)$`),uL=new RegExp(`^rgba\\(${oL},${oL},${oL},${iL}\\)$`),dL=new RegExp(`^rgba\\(${aL},${aL},${aL},${iL}\\)$`),pL=new RegExp(`^hsl\\(${iL},${aL},${aL}\\)$`),fL=new RegExp(`^hsla\\(${iL},${aL},${aL},${iL}\\)$`),hL={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 mL(){return this.rgb().formatHex()}function gL(){return this.rgb().formatRgb()}function vL(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sL.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?bL(t):3===n?new wL(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?yL(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?yL(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=lL.exec(e))?new wL(t[1],t[2],t[3],1):(t=cL.exec(e))?new wL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=uL.exec(e))?yL(t[1],t[2],t[3],t[4]):(t=dL.exec(e))?yL(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=pL.exec(e))?LL(t[1],t[2]/100,t[3]/100,1):(t=fL.exec(e))?LL(t[1],t[2]/100,t[3]/100,t[4]):hL.hasOwnProperty(e)?bL(hL[e]):"transparent"===e?new wL(NaN,NaN,NaN,0):null}function bL(e){return new wL(e>>16&255,e>>8&255,255&e,1)}function yL(e,t,n,r){return r<=0&&(e=t=n=NaN),new wL(e,t,n,r)}function xL(e){return e instanceof tL||(e=vL(e)),e?new wL((e=e.rgb()).r,e.g,e.b,e.opacity):new wL}function SL(e,t,n,r){return 1===arguments.length?xL(e):new wL(e,t,n,null==r?1:r)}function wL(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function CL(){return`#${RL(this.r)}${RL(this.g)}${RL(this.b)}`}function EL(){const e=IL(this.opacity);return`${1===e?"rgb(":"rgba("}${DL(this.r)}, ${DL(this.g)}, ${DL(this.b)}${1===e?")":`, ${e})`}`}function IL(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function DL(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function RL(e){return((e=DL(e))<16?"0":"")+e.toString(16)}function LL(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new AL(e,t,n,r)}function ML(e){if(e instanceof AL)return new AL(e.h,e.s,e.l,e.opacity);if(e instanceof tL||(e=vL(e)),!e)return new AL;if(e instanceof AL)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new AL(a,s,l,e.opacity)}function AL(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function PL(e){return(e=(e||0)%360)<0?e+360:e}function qL(e){return Math.max(0,Math.min(1,e||0))}function kL(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}QR(tL,vL,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:mL,formatHex:mL,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ML(this).formatHsl()},formatRgb:gL,toString:gL}),QR(wL,SL,eL(tL,{brighter(e){return e=null==e?rL:Math.pow(rL,e),new wL(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?nL:Math.pow(nL,e),new wL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wL(DL(this.r),DL(this.g),DL(this.b),IL(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:CL,formatHex:CL,formatHex8:function(){return`#${RL(this.r)}${RL(this.g)}${RL(this.b)}${RL(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:EL,toString:EL})),QR(AL,function(e,t,n,r){return 1===arguments.length?ML(e):new AL(e,t,n,null==r?1:r)},eL(tL,{brighter(e){return e=null==e?rL:Math.pow(rL,e),new AL(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?nL:Math.pow(nL,e),new AL(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new wL(kL(e>=240?e-240:e+120,o,r),kL(e,o,r),kL(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new AL(PL(this.h),qL(this.s),qL(this.l),IL(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=IL(this.opacity);return`${1===e?"hsl(":"hsla("}${PL(this.h)}, ${100*qL(this.s)}%, ${100*qL(this.l)}%${1===e?")":`, ${e})`}`}}));const TL=Math.PI/180,OL=180/Math.PI,NL=.96422,jL=.82521,_L=4/29,FL=6/29,zL=3*FL*FL,WL=FL*FL*FL;function $L(e){if(e instanceof HL)return new HL(e.l,e.a,e.b,e.opacity);if(e instanceof YL)return KL(e);e instanceof wL||(e=xL(e));var t,n,r=UL(e.r),o=UL(e.g),i=UL(e.b),a=VL((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=VL((.4360747*r+.3850649*o+.1430804*i)/NL),n=VL((.0139322*r+.0971045*o+.7141733*i)/jL)),new HL(116*a-16,500*(t-a),200*(a-n),e.opacity)}function HL(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function VL(e){return e>WL?Math.pow(e,1/3):e/zL+_L}function BL(e){return e>FL?e*e*e:zL*(e-_L)}function GL(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function UL(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function YL(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function KL(e){if(isNaN(e.h))return new HL(e.l,0,0,e.opacity);var t=e.h*TL;return new HL(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}QR(HL,function(e,t,n,r){return 1===arguments.length?$L(e):new HL(e,t,n,null==r?1:r)},eL(tL,{brighter(e){return new HL(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new HL(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,n=isNaN(this.b)?e:e-this.b/200;return new wL(GL(3.1338561*(t=NL*BL(t))-1.6168667*(e=1*BL(e))-.4906146*(n=jL*BL(n))),GL(-.9787684*t+1.9161415*e+.033454*n),GL(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),QR(YL,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof YL)return new YL(e.h,e.c,e.l,e.opacity);if(e instanceof HL||(e=$L(e)),0===e.a&&0===e.b)return new YL(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*OL;return new YL(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new YL(e,t,n,null==r?1:r)},eL(tL,{brighter(e){return new YL(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new YL(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return KL(this).rgb()}}));var XL=e=>()=>e;function JL(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):XL(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?JL:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):XL(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=SL(e)).r,(t=SL(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=JL(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var ZL="center",QL="bottom";[{key:"NoDataExist",alignment:ZL,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:ZL,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:ZL,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:ZL},{key:"DataRangeIncludingZero",alignment:QL},{key:"LimitedData",alignment:QL},{key:"NegativeOrZeroValues",alignment:QL}].reduce(function(e,t){return e[t.key]=t,e},{});var eM,tM=["__proto__","constructor"];function nM(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!tM.some(function(e){return r.includes(e)})){for(var i=e,a=0;a<r.length-1;++a){var s=r[a];void 0===i[s]&&(i[s]=Number.isNaN(+r[a+1])?{}:[]),i=i[s]}void 0!==n?i[o]=n:delete i[o]}}}function rM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function oM(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=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(r,i)},n)}}function iM(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function aM(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=lM)):void 0===t&&(t=sM);for(var n,r,o,i,a,s=new dM(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new dM(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(uM)}function sM(e){return e.children}function lM(e){return Array.isArray(e)?e[1]:null}function cM(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function uM(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function dM(e){this.data=e,this.depth=this.height=0,this.parent=null}dM.prototype=aM.prototype={constructor:dM,count:function(){return this.eachAfter(iM)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return aM(this).eachBefore(cM)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},eM=function(e){
|
|
100
89
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
101
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,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(n=(t="-"===(e=e.substring(f,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),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(o),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+=o);t[0]=m}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},yq({exports:{}});const kq=(e,t=jO.TEXT,n=jO.WHITE)=>{const r=ZO(e??""),i=ZO(t),o=ZO(n);return r.isInvalid()?t:function(e,t,n){const r=QO(e,t),i=QO(e,n);if(void 0!==r&&void 0!==i)return r>i?t:n}(r,o,i).getRGB()},Lq=e=>{const t=e.getStyle("","","dataColors.selected")||jO.SELECTED,n=function(e,t){const n=ZO(eT),r=ZO(e),i=ZO(t);if(r.isInvalid()||i.isInvalid()||r.getAlpha()<1||i.getAlpha()<1)return t;const o=QO(n,r),a=QO(i,r),s=o>a||o>4.5;return!s&&a>3?i.getHex():s?eT:"#000000"}(t,jO.TEXT);return{background:t,color:n}},Aq=(e,t)=>{const n=ZO(e);return 0===n.a?(n.setAlpha(t.opacity),n.getString()):n.isDark()?n.getBrightenedColor(t.brighter).getString():n.getDarkenedColor(t.darker).getString()},Oq=e=>{const t=ZO(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Tq=e=>{e.stopPropagation(),e.preventDefault()},qq=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},_q=e=>{const{currentTarget:t}=e;if("true"===t.getAttribute("data-dragging"))return!0;const n=t.closest(".exploration-panel");if(!n)return!1;const r=n.getElementsByClassName("section-item-container");return Array.from(r).some(e=>"true"===e.getAttribute("data-dragging"))},Nq=(e,t)=>{const{key:n,currentTarget:r}=e;if(r===t.current&&n===KA.Tab)if(e.preventDefault(),e.shiftKey)((e,t)=>{const{currentTarget:n}=e;if(n!==t.current)return;const r=n.closest('[role="region"]')?.getElementsByTagName("button")[0];r&&qq(r)})(e,t);else{const e=r.parentElement?.getElementsByClassName("exploration-section-header")[0];e&&qq(e)}},jq=(e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=t.sectionIndex??2;if(0===r)return void((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel")?.getElementsByTagName("input")[0];r&&qq(r)})(e,t);const i=n.closest(".exploration-panel")?.getElementsByClassName("exploration-list")[r-1],o=i?.getElementsByClassName("exploration-item-focus").length??0;if(o>0){const e=i?.getElementsByClassName("exploration-draggable-icon")[o-1];e&&qq(e)}},Fq=(e,t)=>{const{key:n}=e;switch(n){case KA.Tab:Tq(e),e.shiftKey?jq(e,t):((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-list"),i=r?.getElementsByClassName("exploration-item-focus")[0];if(!i){const e=n.closest(".exploration-panel")?.getElementsByClassName("exploration-list")[2].getElementsByClassName("exploration-section-header")[0];return void(e&&qq(e))}qq(i)})(e,t);break;case KA.Down:if(_q(e))break;e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel"),i=r?.getElementsByClassName("exploration-section-header").length??0;let o;if(0===i)return;const a=t.sectionIndex??2;o=a+1<i?r?.getElementsByClassName("exploration-section-header")[a+1]:r?.getElementsByClassName("exploration-section-header")[0],o&&qq(o)})(e,t);break;case KA.Up:if(_q(e))break;e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel"),i=r?.getElementsByClassName("exploration-section-header").length??0;let o;if(0===i)return;const a=t.sectionIndex??2;o=a-1>=0?r?.getElementsByClassName("exploration-section-header")[a-1]:r?.getElementsByClassName("exploration-section-header")[i-1],o&&qq(o)})(e,t);break;case KA.Enter:case KA.Space:e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(e.preventDefault(),n!==t.ref.current)return;const r="all"!==t.checkState;t.toggleAllCheckboxes(r)})(e,t)}},zq=({children:e})=>Yn.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),Wq=({children:e,sectionIndex:t})=>{const n=nx(void 0!==t?mO(t):TO),r=rx(void 0!==t?gO(t):qO),i=o.useRef(null),a={ref:i,toggleAllCheckboxes:r,checkState:n,sectionIndex:t};return Yn.jsxs(xl,{ref:i,className:"exploration-section-header",tabIndex:0,onKeyDown:e=>{Fq(e,a)},sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"14px","&:focus-visible":{boxShadow:`0 0 0 2px ${SO} inset`}},children:[Yn.jsx(Gl,{disabled:"disabled"===n,checked:"all"===n,indeterminate:"some"===n,onChange:e=>{r(e.target.checked)},size:"small",style:{flexShrink:0,padding:9}}),Yn.jsx(zq,{children:e})]})},$q=({sectionIndex:e})=>{const t=nx(pO(e));return Yn.jsx(Wq,{sectionIndex:e,children:t})},Hq=r((e,t)=>Yn.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:Yn.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"})})),Vq=Ta("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),Bq=Ta(Hq)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${SO} inset`}})),Gq=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,Uq=(e,t)=>{const n=e.closest(".exploration-list"),r=n?.nextElementSibling||n?.parentElement?.nextElementSibling;if(null===r||!r){if(t===KA.Tab)return;return n?.closest(".exploration-panel")?.getElementsByClassName("exploration-section-header")[0]}return r.getElementsByClassName("exploration-section-header")[0]},Yq=e=>{const{currentTarget:t}=e,n=Gq(t);let r=t.closest("li")?.previousElementSibling?.getElementsByClassName(n)[0];if(!r){const e=t.closest(".exploration-list"),i=e?.querySelector(".exploration-section-header");if(i)return i;if(r=((e,t)=>{const n=e.closest(".exploration-list"),r=n?.previousElementSibling;if(null===r||!r)return e.closest(".exploration-panel")?.getElementsByClassName(t)[1];const i=r.getElementsByClassName(t);return i.length>0?i[i.length-1]:void 0})(t,n),!r){const e=t.closest(".exploration-panel")?.getElementsByClassName(n)[1];return e??null}}return r},Kq=(e,t)=>{const{currentTarget:n}=e;if(n===t.items.draggableIconRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-item")[0];return void(e&&qq(e))}if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return void qq(e)}n===t.items.explorationItemFocusRef.current&&t.toggleCheckedById(t.id)},Xq=e=>{const t=e.key===KA.Down?(e=>{const{currentTarget:t,key:n}=e,r=Gq(t),i=t.closest("li");let o=i?.nextElementSibling?.getElementsByClassName(r)[0];return o||(o=Uq(t,n),o)?o:t.closest(".exploration-panel")?.getElementsByClassName(r)[0]})(e):Yq(e);t&&qq(t)},Jq=(e,t)=>{const{key:n}=e;switch(n){case KA.Tab:if(e.shiftKey)e.preventDefault(),((e,t)=>{const{currentTarget:n}=e,r=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if(n===t.items.draggableIconRef.current){if(t.itemIndex>=0){const e=r&&r[t.itemIndex];return void(e&&qq(e))}const n=Yq(e);n&&qq(n)}if(n===t.items.explorationItemFocusRef.current){const t=n.closest("li")?.previousElementSibling?.getElementsByClassName("exploration-draggable-icon")[0];if(t)return void qq(t);const r=Yq(e);r&&qq(r)}})(e,t);else{const n=((e,t)=>{const{currentTarget:n,key:r}=e;if(e.shiftKey)return!0;if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return qq(e),!0}if(n===t.items.explorationItemFocusRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];return e&&qq(e),!0}if(n===t.items.draggableIconRef.current){const e=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const n=e&&e[t.itemIndex+1];return n&&qq(n),!0}const i=Uq(n,r);if(!i)return!1;qq(i)}return!0})(e,t);n?Tq(e):e.stopPropagation()}break;case KA.Down:case KA.Up:if(_q(e))break;Tq(e),Xq(e);break;case KA.Enter:if(e.currentTarget===t.items.explorationItemRef.current&&t.dragHandleRef){t.dragHandleRef(e.currentTarget);break}Tq(e),Kq(e,t);break;case KA.Space:Tq(e),Kq(e,t)}},Zq=({children:e})=>Yn.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1},children:e}),Qq=({title:e,dragHandleRef:t,...n})=>{const[r,i]=ix(Bx),a=nx(xx),s=o.useRef(null),l=o.useRef(null),u=o.useRef(null),c={id:n.id,itemIndex:n.itemIndex,toggleCheckedById:i,items:{explorationItemRef:s,explorationItemFocusRef:l,draggableIconRef:u},dragHandleRef:t};return o.useEffect(()=>{t&&s.current&&t(s.current)},[t]),Yn.jsxs(xl,{ref:s,className:"exploration-item",onClick:e=>{e.stopPropagation(),i(n.id)},onKeyDown:e=>{Jq(e,c)},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"14px"},title:e,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${SO} inset`}},children:[Yn.jsxs(xl,{ref:l,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDownCapture:e=>{Jq(e,c)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${SO} inset`}},children:[Yn.jsx(Gl,{checked:r.has(n.id),"aria-label":a("ChartExploration.ListItem.Label",e),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0,visibility:-1===n.id?"hidden":"visible"}}),Yn.jsx(Zq,{children:e})]}),Yn.jsx(Bq,{ref:u,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDownCapture:e=>{Jq(e,c)}})]})},e_=e=>{const t=nx(dO(e))??"";return Yn.jsx(Qq,{title:t,...e})},t_=()=>{const e=nx(fO),t=nx(hO),n=nx(DO),r=rx(vO);return Yn.jsx(BA,{numberOfSections:2,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:n,onDragEnd:r,dragOverlayRenderer:MO,headerRenderer:$q,itemRenderer:e_})},n_=({itemIndex:e})=>{const t=nx(LO(e));return Yn.jsx(PO,{children:t})},r_=()=>{const e=nx(xx);return Yn.jsx(Wq,{children:e("Common.Values")})},i_=e=>{const{itemIndex:t}=e,n=nx(LO(t));return Yn.jsx(Qq,{title:n,...e})},o_=()=>{const e=nx(AO),t=nx(OO),n=nx(IO),r=rx(_O);return Yn.jsx(xl,{className:"exploration-header-section",style:{height:"100%",display:"flex",flexDirection:"column-reverse"},children:Yn.jsx(BA,{numberOfSections:1,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:n,onDragEnd:r,dragOverlayRenderer:n_,headerRenderer:r_,itemRenderer:i_})})},a_=r((e,t)=>Yn.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:Yn.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"})})),s_=()=>{const[e,t]=ix(Sx),n=nx(xx),r=o.useRef(null),[i]=nx(OO),[a=0,s=0]=nx(hO),l=m(e=>{t(e.target.value)},[t]),u=0===e.length||0===a&&0===s&&0===i?n("Common.Search.NoResultsAvailable"):n("ChartExploration.Pivot.Search.ResultsFound",a.toString(),s.toString(),i.toString());return Yn.jsxs(xl,{ref:r,onKeyDown:e=>{Nq(e,r)},style:{position:"sticky",top:0,zIndex:10,width:"calc(100% - 24px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:0,paddingRight:12,paddingLeft:12,paddingBottom:12},children:[Yn.jsx(Vq,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:u}),Yn.jsx(rd,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":n("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:n("Common.Search"),onChange:l,startAdornment:Yn.jsx(Ou,{position:"start",children:Yn.jsx(a_,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},l_=e=>{const t=ha(Vd());return Yn.jsx(_a,{theme:t,children:Yn.jsx(Xb,{children:Yn.jsx(Gx,{props:e,children:Yn.jsxs(xl,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[Yn.jsx(s_,{}),Yn.jsx(t_,{}),Yn.jsx(o_,{})]})})})})},u_=e=>{if(e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{component:l_,classification:{tags:["exploration"],exclusive:!0}}};var c_=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}(c_||{}),d_=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(d_||{}),p_=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(p_||{}),f_=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(f_||{});const h_=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,m_=e=>{if(!Array.isArray(e))return"";let t="{<";const n=[];if(e.forEach(e=>{let t,r=`[${e.field}]${e.exclude?"-":""}={`,i="}";switch(e.type){case p_.SEARCH:t=(e=>{let t="",n="";const r=e.options?.mode;if(!r)return"";switch(r){case c_.BEGINNING_OF_WORD:t="*^",n="*";break;case c_.ENDS_WITH:t="*";break;case c_.STARTS_WITH:n="*";break;case c_.MATCHES_EXACTLY:break;case c_.CONTAINS:default:t="*",n="*"}const i=e.options.values?.[0]??"";return""!==i?`"${t}${i}${n}"`:""})(e);break;case p_.CONDITION:t=(e=>{const{options:t}=e,n=t?.mode===d_.GENERAL,r=t?.modifier?.type===f_.FIXED_VALUE,i=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===i.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let o,a,s="=";n&&r?(o=`${t.conditionField?.aggregator}(${h_(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(o="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(o=`${t.conditionField?.aggregator}(${h_(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${h_(t.firstValue?.field)})`):(o=`${h_(e.field)}`,a=`${t.firstValue?.aggregator}(total ${h_(t.firstValue?.field)})`);const l=`${s}${o}${i[0]}${a}`;let u="";if(i.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${o}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${h_(t.secondValue?.field)})`,a=` and ${o}`):(e=`${t.secondValue?.aggregator}(total ${h_(t.secondValue?.field)})`,a=` and ${o}`),u=`${a}${i[1]}${e}`}return`"${l}${u}"`})(e);break;case p_.CLEAR_SELECTION:t=`[${e.field}]=`,r="",i="";break;case p_.VALUES:default:t=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==t&&n.push(`${r}${t}${i}`)}),0===n.length)return;return t+=`${n.join(",")}>}`,t},g_=[];for(let e=0;e<256;++e)g_.push((e+256).toString(16).slice(1));const v_=new Uint8Array(16);function y_(e,t,n){return crypto.randomUUID?crypto.randomUUID():function(e){e=e||{};const t=e.random??e.rng?.()??crypto.getRandomValues(v_);if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(g_[e[t+0]]+g_[e[t+1]]+g_[e[t+2]]+g_[e[t+3]]+"-"+g_[e[t+4]]+g_[e[t+5]]+"-"+g_[e[t+6]]+g_[e[t+7]]+"-"+g_[e[t+8]]+g_[e[t+9]]+"-"+g_[e[t+10]]+g_[e[t+11]]+g_[e[t+12]]+g_[e[t+13]]+g_[e[t+14]]+g_[e[t+15]]).toLowerCase()}(t)}(e)}const b_=()=>crypto?.randomUUID?.()??y_(),x_=1e3,S_=1e3,w_=e=>{if(0===e.qInterColumnSortOrder.length)return;const t=e.qDimensions,n=((e,t)=>{const n=new Set;for(const t of e){if(n.has(t))return!0;n.add(t)}const r=e.includes(-1),i=e.filter(e=>-1!==e);if(t){const n=r?t.length+1:t.length;if(e.length!==n)return!0}const o=[...i].sort((e,t)=>e-t);for(let e=0;e<o.length;e++)if(o[e]!==e)return!0;return!1})(e.qInterColumnSortOrder,t);n&&(e.qInterColumnSortOrder=((e,t)=>{const n=[];if(t)for(let e=0;e<t.length;e++)n.push(e);return e.qMeasures.length>=2&&n.push(-1),n})(e,t))},C_=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},E_=e=>{if(!e)return;w_(e);const t=e.qDimensions,{qInterColumnSortOrder:n}=e;((e,t=[])=>{const n=t.filter(e=>-1!==e);for(let r=0;r<n.length;r++)if(-1!==n[r]&&n[r]!==r){const i=n[r],o=n.indexOf(r),a=n[o];C_(n,r,o),C_(e,r,o),C_(t,t.indexOf(i),t.indexOf(a))}})(t,n)},I_=P;class D_ extends I_{#u;#c;constructor(e,t){super(e),this.path=e.path,this.#u=t.translator,this.#c=t.flags.isEnabled}async addDimension(e,t,n,r){if(!e||this.#d(e))return;const i=t??!1;if(e.qDef.cId||(e.qDef.cId=b_()),r)return this.addAlternativeDimension(e,i,n);if(this.getDimensions().length<this.maxDimensions()){const t=await(async(e,t,n,r)=>{const i=e.getDimensions(),o=e.hcProperties.qNoOfLeftDims;return await e.autoSortDimension(t),E_(e.hcProperties),(-1===o||Number.isNaN(+o))&&(e.hcProperties.qNoOfLeftDims=i.length),n?((e,t,n,r)=>{if(!e)return;const{qInterColumnSortOrder:i,qNoOfLeftDims:o}=e,a=t.length,s=i.indexOf(-1),l=-1!==s,u=void 0!==r?r+(o||0):void 0;if(l&&void 0!==u&&s>=u?((e,t,n)=>{t.splice(n,1),t.push(e),t.splice(n+1,0,-1)})(a,i,s):i.push(a),void 0===r)t.push(n);else if(void 0!==u){const e=l&&u>s?u-1:u;t.splice(e,0,n)}})(e.hcProperties,i,t,r):((e,t,n,r)=>{if(!e||"number"!=typeof e.qNoOfLeftDims)return;const i=e.qNoOfLeftDims,{qInterColumnSortOrder:o}=e,a=t.length,s=o.indexOf(-1),l=-1!==s&&i>0&&s<i;if(o.push(a),l)void 0===r?t.splice(i-1,0,n):s<r?t.splice(r-1,0,n):(t.splice(r,0,n),o.splice(s,1),o.splice(s+1,0,-1));else{const e=r??i;t.splice(e,0,n),-1!==s&&(o.splice(s,1),o.splice(s+1,0,-1))}e.qNoOfLeftDims++})(e.hcProperties,i,t,r),t})(this,e,i,n);return this.#p({section:i?"columns":"rows",cId:e.qDef.cId,addLast:void 0===n}),t}}async addDimensions(e,t,n){const r=[];for await(const i of e){const e=await this.addDimension(i,n,void 0,t);e&&r.push(e)}return r}addAlternativeDimension(e,t,n){if(!e||this.#d(e))return;const r=this.getAlternativeDimensions();void 0===this.hcProperties.excludedNoOfLeftDims&&(this.hcProperties.excludedNoOfLeftDims=r.length);let i=n;return i=void 0===i?t?r.length:this.hcProperties.excludedNoOfLeftDims:t?this.hcProperties.excludedNoOfLeftDims+i:Math.min(i,this.hcProperties.excludedNoOfLeftDims),r.splice(i,0,e),t||this.hcProperties.excludedNoOfLeftDims++,this.#p({section:t?"columns":"rows",cId:e.qDef.cId,alternative:!0,addLast:void 0===n}),e}async addFieldDimension(e,t,n,r={}){const i=this.createFieldDimension(e,t,n);return this.addDimension(i,r.asColumn,void 0,!1)}async addFieldDimensions(e,t={}){const n=e.map(e=>this.createFieldDimension(e.field,e.label,e.defaults));return this.addDimensions(n,void 0,t.asColumn)}async addLibraryDimensions(e,t={}){const n=e.map(e=>this.createLibraryDimension(e.id,e.defaults));return this.addDimensions(n,void 0,t.asColumn)}reinsertDimension(e,t,n){e.qDef.cId||(e.qDef.cId=b_());if(this.getDimensions().length<this.maxDimensions())return this.addDimension(e,t,n);return this.reinsertAlternativeDimension(e,n,t)}reinsertAlternativeDimension(e,t,n){const r=this.getDimensions(),i=this.getAlternativeDimensions();if(r.length>=x_)return Promise.resolve();const o="number"==typeof t?t:i.length;return i.splice(o,0,e),this.#p({section:n?"columns":"rows",cId:e.qDef.cId,alternative:!0}),Promise.resolve(e)}async removeDimensions(e,t,n){return Promise.all([...e].reverse().map(e=>this.removeDimension(e,t,n)))}async removeDimension(e,t,n){if(t){const t=this.getAlternativeDimensions().splice(e,1)[0];return!n&&this.hcProperties.excludedNoOfLeftDims&&this.hcProperties.excludedNoOfLeftDims--,this.#f({cId:t.qDef.cId,section:n?"columns":"rows"}),t}const r=this.getDimensions(),i=this.properties.qHyperCubeDef.qNoOfLeftDims,o=this.hcProperties.qInterColumnSortOrder.indexOf(e);"number"==typeof this.properties.qHyperCubeDef.qNoOfLeftDims&&"number"==typeof o&&"number"==typeof i&&o+1<=i&&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=r.splice(e,1).at(0);if(s)return((e,t)=>{if(!e)return-1;const n=e.indexOf(t);if(-1===n)return-1;for(let n=0;n<e.length;++n)e[n]>t&&e[n]--;e.splice(n,1)})(this.hcProperties.qInterColumnSortOrder,e),E_(this.hcProperties),this.#f({cId:s.qDef.cId,section:n?"columns":"rows"}),s}#d(e){return!(!e||void 0===e.qDef.cId)&&[...this.getDimensions(),...this.getAlternativeDimensions()].some(t=>t.qDef.cId===e.qDef.cId)}async addMeasures(e,t=!1){const n=[];for await(const r of e){const e=await this.addMeasure(r,t,void 0,!0);e&&n.push(e)}return n}addAlternativeMeasures(e,t){if(this.#h(e))return;const n=this.getAlternativeMeasures(),r=void 0===t?n.length:t,i=n.splice(r,0,e);return this.#m({cId:e.qDef.cId,alternative:!0,addLast:void 0===t}),i}async addMeasure(e,t,n,r){if(this.#h(e))return;if(e.qDef.cId||(e.qDef.cId=b_()),t)return this.addAlternativeMeasures(e,n);r||delete e.qDef.qNumFormat;const i=this.getMeasures();if(i.length<this.maxMeasures()){const t=1===i.length;return void 0!==n&&n>=0?i.splice(n,0,e):i.push(e),this.autoSortMeasure(e).then(()=>(t&&(this.hcProperties.qInterColumnSortOrder.push(-1),0===this.getDimensions().length&&(this.hcProperties.qNoOfLeftDims=0)),this.#m({cId:e.qDef.cId,addLast:void 0===n}),e))}return i.length<S_?(this.getAlternativeMeasures().push(e),this.#m({cId:e.qDef.cId,alternative:!0,addLast:void 0===n}),Promise.resolve(e)):Promise.resolve()}reinsertMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures(),i=this.hcProperties.qInterColumnSortOrder;if(e.qDef.cId||(e.qDef.cId=b_()),t=void 0!==t?t:n.length,n.length<this.maxMeasures()){if(n.splice(t,0,e),2===n.length){-1===i.indexOf(-1)&&i.push(-1)}this.#m({cId:e.qDef.cId})}else n.length<S_&&(t=r.length,r.splice(t,0,e),this.#m({cId: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.#f({cId:t.qDef.cId,section:"measures"}),t}const n=this.getMeasures();let r,i,o;if("number"==typeof e&&e<n.length){r=2===n.length,i=this.getMeasures().splice(e,1)[0];const t=this.hcProperties.qInterColumnSortOrder;r&&(o=t.indexOf(-1),t.splice(o,1),this.hcProperties.qNoOfLeftDims&&o+1<=this.hcProperties.qNoOfLeftDims&&this.hcProperties.qNoOfLeftDims--)}else"number"==typeof e&&(i=this.getAlternativeMeasures().splice(e-n.length,1)[0]);if(i)return this.#f({cId:i.qDef.cId,section:"measures"}),i}async removeMeasures(e,t){return await Promise.all([...e].reverse().map(e=>this.removeMeasure(e,t))),e}#h(e){return!(!e||void 0===e.qDef.cId)&&[...this.getMeasures(),...this.getAlternativeMeasures()].some(t=>t.qDef.cId===e.qDef.cId)}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.#g("rows"),t=this.getDimensions();return e.filter(e=>e>=0).map(e=>t[e])}getColumnDimensions(){const e=this.#g("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)}#v(e){const t=this.hcProperties.rankedList?.[e];return t||this.createRankedList(e)}#y(e){return[...this.#v(e)]}#b(e,t){return void 0===this.hcProperties.rankedList&&(this.hcProperties.rankedList={}),this.hcProperties.rankedList[e]=t,t}#x(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}#S(e){const t=({qDef:t})=>t.cId===e;return!(!this.getAlternativeDimensions().some(t)&&!this.getAlternativeMeasures().some(t))}#g(e){const{qInterColumnSortOrder:t,qNoOfLeftDims:n}=this.hcProperties;if(this.#w())return"columns"===e?t:[];switch(e){case"rows":return-1===n?t:t.slice(0,n);case"columns":return-1===n?[]:t.slice(n);default:throw new Error(`Unknown section in #getInterColumnSortOrderBySection: ${e}`)}}#w(){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.#w())return"columns"===e;if(void 0===this.hcProperties.qNoOfLeftDims)return"rows"===e;switch(e){case"rows":return t+1<=this.hcProperties.qNoOfLeftDims;case"columns":return t+1>this.hcProperties.qNoOfLeftDims;default:return!1}}#E(e,t=!0){const n=e=>-1===e?-1:e.qDef.cId;if("measures"===e)return this.getMeasures().concat(t?this.getAlternativeMeasures():[]).map(n);const r=this.#g(e),i=this.getDimensions(),o=r.map(e=>-1===e?-1:i[e]);switch(e){case"rows":return o.concat(t?this.getAlternativeRowDimensions():[]).map(n);case"columns":return o.concat(t?this.getAlternativeColumnDimensions():[]).map(n);default:throw new Error(`Unknown section in #isCorruptRankedList: ${e}`)}}isRankedListCorrupt(e){const t=this.hcProperties.rankedList?.[e],n=this.properties.qInfo?.qId;if(!t)return!0;if(new Set(t).size!==t.length){const r=t.filter((e,n)=>t.indexOf(e)!==n);return console.warn("Corrupt ranked list detected: duplicate ids",{duplicates:r,section:e,chartId:n}),!0}const r=this.#E(e);if(t.length!==r.length)return console.warn("Corrupt ranked list detected: length mismatch",{section:e,chartId:n,fieldIds:r,rankedList:t,diff:new Set(r).symmetricDifference(new Set(t))}),!0;const i=r.filter(e=>!t.includes(e));if(i.length>0)return console.warn("Corrupt ranked list detected: missing ids",{missingIds:i,section:e,chartId:n}),!0;const o=this.#E(e,!1),a=t.filter(e=>o.includes(e)),s=o.filter((e,t)=>e!==a[t]);return s.length>0&&(console.warn("Corrupt ranked list detected: main field order mismatch",{section:e,chartId:n,orderMismatchIds:s}),!0)}createRankedList(e){switch(e){case"rows":case"columns":return this.#I({section:e});case"measures":return this.#D();default:throw new Error(`Unknown section in getRankedList: ${e}`)}}#I({section:e}){const t=this.getDimensions(),n=this.#g(e),r="columns"===e?this.getAlternativeColumnDimensions():this.getAlternativeRowDimensions(),i=n.map(e=>-1===e?-1:t[e].qDef.cId);return i.push(...r.map(e=>e.qDef.cId)),this.#b(e,i)}#D(){if(void 0!==this.hcProperties.rankedList?.measures&&!this.#c("SUPPORT-9810-MISSING-MEASURES")&&!this.#c("SUPPORT-9810-MIGRATE-RANKED-LISTS"))return this.hcProperties.rankedList.measures;const e=[...this.getMeasures(),...this.getAlternativeMeasures()].map(e=>e.qDef.cId);return this.#b("measures",e)}#P({section:e,cId:t,fields:n,addLast:r}){const i=this.#v(e),o=n.findIndex(e=>e.qDef.cId===t),a=n[o+1]?.qDef.cId,s=n[o-1]?.qDef.cId;if(r)i.push(t);else if(o>=0)if(a){const e=i.indexOf(a);i.splice(e,0,t)}else if(s){const e=i.indexOf(s);i.splice(e+1,0,t)}else i.push(t);return void 0===this.hcProperties.rankedList&&(this.hcProperties.rankedList={}),this.hcProperties.rankedList[e]}#p({section:e,cId:t,alternative:n=!1,addLast:r=!1}){if(void 0===this.hcProperties.rankedList?.[e])return this.#I({section:e});let i;return i="columns"===e?n?this.getAlternativeColumnDimensions():this.getColumnDimensions():n?this.getAlternativeRowDimensions():this.getRowDimensions(),this.#P({section:e,cId:t,fields:i,addLast:r})}#m({cId:e,alternative:t=!1,addLast:n=!1}){if(void 0===this.hcProperties.rankedList?.measures)return this.#D();const r=t?this.getAlternativeMeasures():this.getMeasures();return this.#M(),this.#P({section:"measures",cId:e,fields:r,addLast:n})}#M(){const e=this.#v("rows"),t=this.#v("columns");this.#C("rows")&&!e.includes(-1)?e.push(-1):this.#C("columns")&&!t.includes(-1)&&t.push(-1)}#R(){if(this.hcProperties.qInterColumnSortOrder.includes(-1))return;const e=this.#v("rows"),t=this.#v("columns"),n=e.indexOf(-1),r=t.indexOf(-1);-1!==n&&e.splice(n,1),-1!==r&&t.splice(r,1)}#f({cId:e,section:t}){const n=this.#v(t),r=n.indexOf(e);-1!==r&&(n.splice(r,1),this.#R())}async moveMeasureToAlternative(e){const t=this.getMeasures().findIndex(t=>t.qDef.cId===e),n=this.#y("measures"),r=n.indexOf(e);if(-1===t)return;const i=await this.removeMeasure(t);if(void 0===i)return;const o=n.slice(r+1).find(e=>this.getAlternativeMeasures().some(t=>t.qDef.cId===e)),a=this.getAlternativeMeasures().findIndex(e=>e.qDef.cId===o);await this.addAlternativeMeasures(i,-1===a?void 0:a),this.#b("measures",n)}async moveMeasureFromAlternative(e){const t=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e),n=this.#y("measures"),r=n.indexOf(e);if(-1===t)return;const i=await this.removeMeasure(t,!0);if(void 0===i)return;const o=this.getMeasures().map(e=>e.qDef.cId),a=n.slice(r+1).find(e=>o.includes(e)),s=o.findIndex(e=>e===a);await this.addMeasure(i,!1,-1===s?void 0:s),this.#b("measures",n)}async moveDimensionToAlternative(e){const t=this.#x(e),n=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n||null===t)return;const r=this.#y(t),i=r.indexOf(e),o="columns"===t,a=await this.removeDimension(n,!1,o);if(void 0===a)return;const s=r.slice(i+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;void 0!==this.addAlternativeDimension(a,o,l)&&this.#b(t,r)}async moveDimensionFromAlternative(e){const t=this.#x(e),n=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n||null===t)return;const r=this.#y(t),i=r.indexOf(e),o="columns"===t,a=await this.removeDimension(n,!0,o);if(void 0===a)return;const s=this.#E(t,!1),l=r.slice(i+1).find(e=>s.includes(e));let u=s.findIndex(e=>e===l);u=-1===u?void 0:u;void 0!==await this.addDimension(a,o,u)&&this.#b(t,r)}movePseudoDimension({toIndex:e,toSection:t}){const n=this.#x(-1);if(null===n)return void console.error("Cannot move pseudo dimension, unable to find it in any section",{toIndex:e,toSection:t});const r="columns"===t,i=n===t,o=this.#y(t);if(i){const e=o.indexOf(-1);o.splice(e,1)}else{const i=this.#v(n),o=i.indexOf(-1);if(-1===o)return void console.error("Couldn't delete pseudo dimension from current section",{toIndex:e,toSection:t,fromSection:n});i.splice(o,1),this.hcProperties.qNoOfLeftDims=r?Math.max(0,this.hcProperties.qNoOfLeftDims-1):this.hcProperties.qNoOfLeftDims+1}const a=e-o.slice(0,e).filter(e=>this.#S(e)).length,s=r?this.hcProperties.qNoOfLeftDims+a:a,l=this.hcProperties.qInterColumnSortOrder.indexOf(-1);this.hcProperties.qInterColumnSortOrder.splice(l,1),this.hcProperties.qInterColumnSortOrder.splice(s,0,-1),o.splice(e,0,-1),this.#b(t,o)}async moveDimension({cId:e,toIndex:t,toSection:n}){const r=this.#x(e),i=this.#S(e);if(null===r)return void console.error("Cannot move dimension, unable to find it in any section",{cId:e});const o=(i?this.getAlternativeDimensions():this.getDimensions()).findIndex(({qDef:t})=>t.cId===e);if(-1===o)return void console.error("Couldn't find dimension to move",{cId:e,toIndex:t,toSection:n});const a=this.#y(n),s=a.indexOf(e);-1!==s&&a.splice(s,1);const l=Math.max(0,Math.min(t,a.length));l!==t&&console.warn("[moveDimension] toIndex is out of bounds, clamping it",{toIndex:t,clampedToIndex:l});const u=l-a.slice(0,l).filter(e=>this.#S(e)!==i).length,c="columns"===n,d="columns"===r,p=await this.removeDimension(o,i,d);if(void 0===p)return;void 0!==await this.addDimension(p,c,u,i)&&(a.splice(l,0,e),this.#b(n,a))}async moveMeasure({cId:e,toIndex:t}){const n=this.#S(e),r=(n?this.getAlternativeMeasures():this.getMeasures()).findIndex(t=>t.qDef.cId===e);if(-1===r)return void console.error("Cannot move measure, unable to find it in any section",{cId:e});const i=this.#y("measures"),o=i.indexOf(e);-1!==o&&i.splice(o,1);const a=Math.max(0,Math.min(t,i.length));a!==t&&console.warn("[moveMeasure] toIndex is out of bounds, clamping it",{toIndex:t,clampedToIndex:a});const s=await this.removeMeasure(r,n);if(void 0===s)return;const l=a-i.slice(0,a).filter(e=>this.#S(e)!==n).length;void 0!==await this.addMeasure(s,n,l)&&(i.splice(a,0,e),this.#b("measures",i))}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,n=Array.isArray(t)&&t.includes("$numeric"),r=e.isDerived,i=Array.isArray(this.properties.filters)?this.properties.filters:[],o={type:"values",field:r?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:b_(),qTags:Array.isArray(t)?t:[],isNumeric:n};return i.push(o),this.properties.filters=i,this.properties.qHyperCubeDef.qContextSetExpression=m_(i),o}addFilters(e){const t=[];for(const n of e)t.push(this.addFilterField(n));return t}#k(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=m_(t),t}removeFilters(e){if(0===e.length)return[];const t=[...e].sort((e,t)=>t-e),n=this.getFilters().filter((t,n)=>e.includes(n));for(const e of t)this.#k(e);return n}getAddDimensionLabel(){return this.#u.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}var P_,M_={exports:{}};var R_=(P_||(P_=1,function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=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},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,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(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=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},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,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(n in t)r=l(d,n),d!==(i=l(t,n))&&(h&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.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),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Le});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},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 n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=y(c(r[0],i),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(r&&2===r.length){var d=c(r[0],i),p=c(r[1],i),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,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.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 n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=h(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])})},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=S({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.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});i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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 k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function L(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach(function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=R(e[n||t])?o:e[t],e=e[n||t]}}),e}function A(e,t){var n=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(r){A(e[r],t[r])||(n=!1)}),n);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!A(e[r],t[r]))return!1;return!0}return e===t}D.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach(function(i){var o=function(e){return e?I({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);A(o,a)||k(t,i)||(R(a)?r.push({op:"add",path:s,value:o}):M(o)&&M(a)?r=r.concat(D.generate(a,o,s)):P(o)&&P(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&R(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(A(t,i))return r;if(!R(t[0])&&R(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(D.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))}),Object.keys(e).forEach(function(i){R(t[i])&&!k(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})}),r},D.apply=function(e,t){t.forEach(function(t){var n,r,i=L(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(P(i))"-"===o&&(o=i.length),i.splice(+o,"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)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||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))n=a,Object.keys(n).forEach(function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!k(n,e)&&delete n[e]}),I(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var c=L(e,t.from);P(i)?i.splice(+o,0,c.splice(+s,1)[0]):(i[o]=c[s],delete c[s])}else"remove"===t.op&&(P(i)?i.splice(+o,1):delete i[o])})},D.clone=function(e){return I({},e)},D.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},D.updateObject=function(e,t){Object.keys(e).length?D.apply(e,D.generate(e,t)):I(e,t)};const O=D,T=function(e,n,r){if(!e)return Promise.resolve();var i=O.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(i,!0)):Promise.resolve()};var q="accumulation";function _(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===q)return n[r]}function N(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===q)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var j={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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(n,l),p=w.getAboveComp(n,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:n,properties:r,layout:i})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,j)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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(N(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(N(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(N(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(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=_(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=_(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(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,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(q))return!1;var o=_(t,e);return o&&!o.disabled}};return n}};var z="movingAverage";function W(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===z)return n[r]}function $(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var u=s;void 0===u&&(u=w.getNumDimensions({properties:i,layout:a}));var c=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=w.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(r,u),h=w.getAboveComp(r,u,p,f);if(r.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var n=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var v=t;if(w.needDimension({modifier:r,properties:i,layout:a})){var y=w.getDimComp(c,1),b=w.getDimComp(c,0),x=w.getAggrComp(v,y,b);v=r.showExcludedValues?w.getExcludedComp({modifier:r,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]:{},n={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 n=W(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=W(t,e);return n&&!n.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,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(z))return!1;var o=W(t,e);return o&&!o.disabled}};return n}};var B="timeSeriesDecomposition";function G(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===B)return n[r]}function U(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===B)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?w.generateTSDExpression(n,t,r):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]:{},n={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,n){var r=G(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e}),e})}},show:function(t){var n=G(t,e);return n&&!n.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(B))return!1;var o=G(t,e);return o&&!o.disabled}};return n}};var X="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(n,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:n,properties:r,layout:i})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=n.showExcludedValues?w.getExcludedComp({modifier:n,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]:{},n={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,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),u=""===s&&""===l?"":s||l,c=le(i,o),d=ue(i,o,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=w.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach(function(t){void 0===e[t]&&(e[t]=oe[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]:{},n={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(re(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(n){return function(e,t,n){var r=[{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 r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(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(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(i,o),o=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(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,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},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=o(e,fe);return void 0!==t?t:o(e,pe)},getExpressionRef:function(e){return void 0!==o(e,fe)?fe:pe},getLibraryIdRef:function(e){return o(e,me)?me:he},getLibraryId:function(e){return o(e,me)||o(e,he)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(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))&&(n(e,ye,o(e,ve)),n(e,xe,o(e,be)),n(e,Ce,o(e,Se)),n(e,Ee,o(e,we)))},restoreBase:function(e){Pe.isValid(e)&&(n(e,ve,o(e,ye)),n(e,be,o(e,xe)),n(e,Se,o(e,Ce)),n(e,we,o(e,Ee)),o(e,Ie)&&o(e,De)&&n(e,Ie,o(e,De)),delete e.qDef.base)},isValid:function(e){var t=o(e,ye),n=o(e,xe);return void 0!==t||void 0!==n}};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 ke={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Le={modifiers:ke,apply:Oe,applyModifiers:Te,cleanUpMeasure:qe,destroy:function(e){e&&Ae[e.id]&&Ae[e.id].masterItemSubscriber&&(Ae[e.id].masterItemSubscriber&&Ae[e.id].masterItemSubscriber.unsubscribe(),delete Ae[e.id])},hasActiveModifiers:_e,getActiveModifier:Ne,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return ke[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return ke[e]&&ke[e].isApplicable({properties:n,layout:r})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach(function(e){var t=ze(e);Ue({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Ze({modifiers:t,properties:n,layout:r}))}),i&&!o},ifEnableTotalsFunction:je};var Ae={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;Ae[n.id]=Ae[n.id]||{isFirstTime:!0};var u=Ae[n.id].isFirstTime;if(Ae[n.id].isFirstTime=!1,r&&"object"===Re(r))return Te({model:n,properties:r});var c=n?n.layout:void 0,d=o(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=o(c,"qHyperCube.qMeasureInfo"),f=Ae[n.id].lastReloadTime;if(Ae[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),_e({measures:p,layout:c})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({measure:e,properties:n,layout:r})})}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some(function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:ze(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})}))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?n.getEffectiveProperties().then(function(e){var r=t()(!0,{},e);$e(r);var i=Qe(r);return Ye({model:n}).then(function(t){return Ke({libraryIds:i,model:n}).then(function(i){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 n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach(function(e){if("object"===Re(e)&&!e.disabled){if(n++,"object"!==Re(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(r)&&(t.qDef.base.qDef=r)}})}}({measure:e,properties:t})})}({properties:r}),Te({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Re(e.base)})}(p)?n.getEffectiveProperties().then(function(e){return function(e){var n=e.model,r=e.properties,i=Qe(r);return et({model:n,libraryIds:i}).then(function(){var e=t()(!0,{},r);return Fe(r).forEach(function(e){return qe(e)}),Je({oldProperties:e,newProperties:r,model:n})})}({model:n,properties:e})}):Promise.resolve(l)}function Te(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),$e(i);var p=Qe(i);return et({model:n,libraryIds:p,masterItem:u}).then(function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!_e({measures:n,properties:r}))return n.forEach(function(e){return qe(e)}),Promise.resolve();var l=a?void 0:Qe(r);return Ye({model:i,dimensionAndFieldList:s}).then(function(e){return Ke({libraryIds:l,model:i,libraryItemsProps:a}).then(function(i){n.forEach(function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Me.isValid(n)||Me.initBase(n,!0);var l=n.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Re(e)&&!e.disabled){if(s++,"object"!==Re(ke[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)");ke[e.type].initModifier(e,n);var l=n.qLibraryId||c&&c.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:ke[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof ke[r.type].updateModifier&&ke[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:ke[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||je(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&je(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}})}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),He(n)):qe(n)})})})}({measures:a,properties:i,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)})})}function qe(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some(function(e){return"object"===Re(e)&&!e.disabled&&!ke[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,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({modifiers:ze(e),properties:n,layout:r})})}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(ke[r.type]&&!r.disabled)return r}}function je(e){var t=Ne(e);return!t||ke[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function We(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function $e(e){Fe(e).forEach(function(e){return function(e){var n=Ne(e);n&&(void 0!==n.outputExpression&&We(n)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)})}function He(e){var t=ze(e);Array.isArray(t)&&t.forEach(function(t){"object"===Re(t)&&(t.disabled||!ke[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,n=e.properties,r=e.layout;return!Be(t)&&Ue({modifiers:ze(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Re(e)||e.disabled||!ke[e.type])&&(void 0===i[e.type]&&(i[e.type]=ke[e.type].isApplicable({properties:n,layout:r})),i[e.type])})}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then(function(e){i.dimensionList=e});r.push(o);var a=t.app.getFieldList().then(function(e){i.fieldList=e});return r.push(a),Promise.all(r).then(function(){return i})}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach(function(e){var t=n.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),o.forEach(function(e){var t=n.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,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then(function(){return i}):Promise.resolve(i)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Re(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:n,layout:r})})}function Qe(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach(function(t){var r=ze(t);if(Ue({modifiers:r,properties:e})){var o=Be(t);o&&n.push(o),i=i||Ze({modifiers:r,properties:e})}}),o(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Ae[t.id].masterItemSubscriber=Ae[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach(function(n){t[n]=o(e,n)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then(function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach(function(e){i[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach(function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])}),t.app&&(Object.keys(i).forEach(function(e){i[e]&&!r[e]&&s.push(c(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!r[e]&&s.push(c(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach(function(e){r[e].listener.dispose()}),r={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Ae[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.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);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="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},i(e)}n.d(r,{default:()=>$e});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var p=n(8),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach(function(e){t.properties[e]=n[e]})},y=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])}),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.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,n){var r,i,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=o.getValue(e,t);if(!o.isAtomicValue(s))try{if((i=(i=(r=JSON.stringify(s)).match(/:\{/g))?i.length:0)>2&&!a)return;s=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var l=o.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=s}var S=n(909),w=n.n(S);function C(e,t){var n=w()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function E(e,t){return w()(!0,{},t,e)}function I(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var D=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const R=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},k=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},L=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},A=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:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(u):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},q=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(u):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},_=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=I(a.max,i.dimensions.length,D),l=I(a.min,i.dimensions.length,0);return{maxDimensions:I(o.max,s,D),minDimensions:I(o.min,l,0),maxMeasures:s,minMeasures:l}},N=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},j=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.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)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]}),null===(i=w()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},W=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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),r.dimensions.added(e,n)})}},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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),r.measures.added(e,n)})}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach(function(t){o.setValue(e,t,n[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const B={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,v({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),y({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters",!0),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,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=j({exportFormat:t,initialProperties:r,hypercubePath:u}),v=o.getValue(r,u||"").qHyperCubeDef,y=o.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?A():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}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:y,defaultDimension:I}),q({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:y,defaultMeasure:P}),W({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:y}),k("qMaxStackedCells",v,y),k("qNoOfLeftDims",v,y),L("qInitialDataFetch",v,y,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),L("qMode",v,y,"S"),L("qReductionMode",v,y,"N"),L("qSortbyYValue",v,y),L("qIndentMode",v,y),L("qShowTotalsAbove",v,y),R(g,t,r),m.qProperty=g;var M=o.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,n,r){t=t||[];var i=c(e,r,n),o=c(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,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 n={};return t&&Object.keys(t).forEach(function(e){n[e]=t[e]}),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(U(a,t,r,i),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 o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.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,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}),t.forEach(function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var u=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),c=o.getValue(t,"color.formatting.qNumFormat"),p=o.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,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}o.auto=!1,o.mode=a}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,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,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},he=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=B.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.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),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=B.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=o.getValue(d,"visualization"),f=o.getValue(d,"qHyperCubeDef.qDimensions",[]),h=o.getValue(d,"color.mode",""),m=o.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,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(n,"unsupportedAutoMinMax")||w()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||w()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ye.includes(r)&&t[i].type[r]++,t[i].type.total++}}),t}(a);l.length?(o&&(t=l.filter(function(e){return e.type[o]>0}).sort(function(e,t){return t.type[o]-e.type[o]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,n.properties.measureAxes[t[0].axis])):w()(s,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},we={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(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,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach(function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var u=Ce(n,r,l);o.setValue(t,u,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})})}function Ie(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach(function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Ce(n,r,s),u=o.getValue(t,l);void 0!==u&&(o.setValue(i,a,u),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})})}var De="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Me="measures",Re="qDef.conditionalColoring";const ke={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 Le="qHyperCubeDef.qMeasures",Ae="measures",Oe="qHyperCubeDef.qDimensions",Te="dimensions",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",_e="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",je="alternativeDimensions",Fe="qCalcCondition",ze="conditionalShowHide";const We={quarantine:function(e){Ee({properties:e,arrayPath:Le,quarantineName:ze,arrayName:Ae,itemPath:Fe}),Ee({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Te,itemPath:Fe})},unquarantine:function(e){Ie({properties:e,arrayPath:Le,quarantineName:ze,arrayName:Ae,itemPath:Fe}),Ie({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Te,itemPath:Fe})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:qe,quarantineName:ze,arrayName:_e,itemPath:Fe}),Ee({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:je,itemPath:Fe})},unquarantineAlternative:function(e){Ie({properties:e,arrayPath:qe,quarantineName:ze,arrayName:_e,itemPath:Fe}),Ie({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:je,itemPath:Fe})}},$e={hypercube:B,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Ie,conditionalColoring:ke,conditionalShow:We}})(),r.default})()}(M_)),M_.exports),k_=Nt(R_);const L_="qHyperCubeDef.qMeasures",A_="measures",O_="qHyperCubeDef.qDimensions",T_="dimensions",q_="qDef.representation",__="tableRepresentation",N_="qDef.conditionalColoring",j_="conditionalColoring",F_="qMiniChartDef",z_="miniChartDef",W_=e=>{k_.unquarantineArrayProp({properties:e,arrayPath:O_,itemPath:q_,arrayName:T_,quarantineName:__}),k_.unquarantineArrayProp({properties:e,arrayPath:L_,itemPath:q_,arrayName:A_,quarantineName:__}),k_.unquarantineArrayProp({properties:e,arrayPath:L_,itemPath:N_,arrayName:A_,quarantineName:j_}),k_.unquarantineArrayProp({properties:e,arrayPath:L_,itemPath:F_,arrayName:A_,quarantineName:z_})},$_=e=>{k_.quarantineArrayProp({properties:e,arrayPath:O_,itemPath:q_,arrayName:T_,quarantineName:__}),k_.quarantineArrayProp({properties:e,arrayPath:L_,itemPath:q_,arrayName:A_,quarantineName:__}),k_.quarantineArrayProp({properties:e,arrayPath:L_,itemPath:N_,arrayName:A_,quarantineName:j_}),k_.quarantineArrayProp({properties:e,arrayPath:L_,itemPath:F_,arrayName:A_,quarantineName:z_})};function H_(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const i="rows"===r?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return t.get(i)}},measures:{min:1,max:1e3,description:()=>t.get("Visualizations.Descriptions.Values")},filters:{description:()=>t.get("SimpleProperties.Filters.Filter")}}]}}const V_="qHyperCubeDef.qDimensions",B_="dimensions",G_="qOtherTotalSpec.qTotalMode",U_="totalMode",Y_={quarantine(e){k_.quarantineArrayProp({properties:e,arrayPath:V_,quarantineName:U_,arrayName:B_,itemPath:G_})},unquarantine(e){k_.unquarantineArrayProp({properties:e,arrayPath:V_,quarantineName:U_,arrayName:B_,itemPath:G_})}};function K_(e){const t=H_(e);return(e,n,r,i)=>{const o=k_.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:i}),a=o.qProperty.qHyperCubeDef.qDimensions.length,s=o.qProperty.qHyperCubeDef.qMeasures.length;let l,u=o.qProperty.qHyperCubeDef.qInterColumnSortOrder,c=!0;a+s===u.length&&xq(o,"qProperty.qLayoutExclude.quarantine.interColSortOrder",u.concat());const d=o.qProperty.qLayoutExclude.quarantine?.pivotInterColSortOrder;d?(u=d,l=[...d],xq(o,"qProperty.qHyperCubeDef.qInterColumnSortOrder",u),o.qProperty.qLayoutExclude.quarantine&&delete o.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=o.qProperty.qHyperCubeDef.qNoOfLeftDims??-1;if(a>0&&-1===h&&xq(o,"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&&(k_.unquarantineProperty(o.qProperty,"noOfLeftDims"),k_.unquarantineProperty(o.qProperty,"excludedNoOfLeftDims "))}return k_.unquarantineProperty(o.qProperty,"rankedList"),k_.conditionalShow.unquarantine(o.qProperty),Y_.unquarantine(o.qProperty),W_(o.qProperty),k_.unquarantineProperty(o.qProperty,"pivotTableIndentMode"),o}}function X_(e,t){const n=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,r=n.slice(),i=n.indexOf(-1);i>-1&&n.splice(i,1);const o=k_.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),a=o.properties.qHyperCubeDef,s=a.qDimensions.length,l=a.qMeasures.length;let u=a.qInterColumnSortOrder;xq(o,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",r),k_.quarantineProperty(o.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete o.properties.qHyperCubeDef.qNoOfLeftDims,k_.quarantineProperty(o.properties,"qHyperCubeDef.rankedList","rankedList"),delete o.properties.qHyperCubeDef.rankedList;const c=o.properties.qLayoutExclude.quarantine?.interColSortOrder;c&&(u=c,xq(o,"properties.qHyperCubeDef.qInterColumnSortOrder",u),xq(o,"data.0.interColumnSortOrder",u),o.properties.qLayoutExclude.quarantine&&delete o.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=u.length;e<s+l;e++)u.length<=e&&u.push(e);return k_.quarantineProperty(o.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),k_.quarantineProperty(o.properties,"qHyperCubeDef.excludedNoOfLeftDims ","excludedNoOfLeftDims "),k_.conditionalShow.quarantine(o.properties),Y_.quarantine(o.properties),$_(o.properties),o}const J_=e=>({dimensions:{min:1,max:1e3,description(t,n,r){const i="rows"===r?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return e.translator.get(i)}},measures:{min:1,max:1e3,description:()=>e.translator.get("Visualizations.Descriptions.Values")}}),Z_=["rows","columns","measures"],Q_=e=>{if(!e.flags.isEnabled("SUPPORT-9810-MIGRATE-RANKED-LISTS"))return;const t=new D_({},e);return{properties:e=>(t.setProperties(e),Z_.forEach(e=>{t.isRankedListCorrupt(e)&&t.createRankedList(e)}),e)}},eN={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let tN=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}({}),nN=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const rN=e=>{switch(e?.type){case"url":return tN.Link;case"image":return tN.Image;case"indicator":return tN.Indicator;case"miniChart":return tN.MiniChart;default:return tN.Text}},iN=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,n,r){const{qIndentMode:i}=r.properties.qHyperCubeDef,o=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!i&&e||i)&&o.push({value:"image",translation:"Object.Table.Representation.Image"}),o}}),oN=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>rN(e.qDef.representation)===tN.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,n)=>{if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:r,qNoOfLeftDims:i,qDimensions:o,qIndentMode:a}=n.properties.qHyperCubeDef;let s=!1;const l=o?.indexOf(e)??1/0;return(r?.slice(0,i)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},aN=e=>{const{anything:t}=e,n=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:iN({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>rN(e.qDef.representation)===tN.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>rN(e.qDef.representation)===tN.Link&&e.qDef.representation?.urlPosition===nN.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>rN(e.qDef.representation)===tN.Link&&e.qDef.representation?.urlPosition===nN.Attribute},...oN(n)}},sN=(e,t)=>{const{anything:n}=e,r=n.sense?.isUnsupportedFeature,i=!r?.("tableImages")&&t[tN.Image],o=!r?.("qMiniChartDef")&&t[tN.MiniChart],a=!r?.("tableIndicators")&&t[tN.Indicator],s=i&&t[tN.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&i||t&&s)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),o&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(n)},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:e=>rN(e.qDef.representation)===tN.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:o?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};let lN=function(e){return e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot",e}({}),uN=function(e){return e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel",e}({}),cN=function(e){return e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid",e}({}),dN=function(e){return e.Forward="forward",e.Backward="backward",e.None="none",e}({});const pN="image",fN=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder?.indexOf(-1)??-1;let i=n.properties.qHyperCubeDef.qNoOfLeftDims??-1;r>-1&&r<i&&(i-=1);const o=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===o||o>=i},hN=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:ZA.Auto,translation:"Common.Auto"},{value:ZA.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:ZA.Pixels,translation:"Object.Table.Column.Pixels"},{value:ZA.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:ZA.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:JA.PixelsDefault,show:e=>e.qDef.columnWidth?.type===ZA.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:JA.PercentageDefault,show:e=>e.qDef.columnWidth?.type===ZA.Percentage}}),mN=({key:e,translation:t,env:n})=>{const r=!n.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=>!r||"labelTextAlign"===e||t.qDef.representation?.type!==pN},[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&&(!r||"labelTextAlign"===e||t.qDef.representation?.type!==pN)}}},gN="TOTAL_OFF",vN={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:uN.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:uN.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:uN.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:uN.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:uN.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:uN.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},yN="TOTAL_OFF",bN={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:uN.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:uN.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:uN.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:uN.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:uN.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:uN.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},xN=e=>{const{translator:t,anything:n,flags:r}=e,i=(e=>{const{translator:t,anything:n}=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:gN,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:gN,translation:"properties.off"},show:!n.sense?.isUnsupportedFeature?.("totals")&&fN},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,r)=>!n.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==gN&&fN(e,0,r)},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:vN,...mN({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...mN({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...aN(e),...hN()}}}},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:vN,...mN({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...mN({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...sN(e,{[tN.Image]:!0,[tN.Indicator]:!0}),...hN()}}}},filter:{type:"object",component:"filter-item-react",ref:"filter",tabName:"SimpleProperties.Filters.Filters"}}}})(e);return r.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?i:{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:yN,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:yN,translation:"properties.off"},show:!n.sense?.isUnsupportedFeature?.("totals")&&fN},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,r)=>!n.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==yN&&fN(e,0,r)},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:bN,...mN({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...mN({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...aN(e),...hN()}},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:bN,...mN({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...mN({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...sN(e,{[tN.Image]:!0,[tN.ImagesInIndentMode]:!0,[tN.Indicator]:!0}),...hN()}},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"}}}}}},SN=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:r??!1,defaultValue(e,t,i){const o=r?.(e,t,i)??!1,a=i.theme.current(),s=n(a,o);return{color:"transparent"===s?"none":s}}}),wN=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},CN=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,i,o)=>{const a=o.theme.current();return((e,t,n,r)=>{const i=t.fontFamily??"Source Sans Pro, sans-serif",o=t.fontFamilies??[],a=Array.from(new Set([e,i,...o])),s=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>wN(e,!0))],l=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...mT(r).filter(e=>!a.includes(e)).map(e=>wN(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),EN=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],IN=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,i)=>{const o=i.theme.current();return((e,t,n)=>{const r=t.fontSize,i=t.fontSizes??[],o=Array.from(new Set([e,r,...i])),a=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...o.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>wN(e,!1))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...EN.filter(e=>!o.includes(e)).map(e=>wN(e,!1))];return[...a,...s.length>1?s:[]]})(t(o),o,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),DN=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:i,translation:o,disableNoneCallback:a})=>({component:"panel-section",translation:o??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:CN({ref:`${e}.fontFamily`,themeAccessor:t=>i(t,e,"fontFamily")??t.fontFamily,translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:IN({ref:`${e}.fontSize`,themeAccessor:t=>i(t,e,"fontSize")??t.fontSize,translator:n}),fontColor:SN(`${e}.fontColor`,void 0,t=>i(t,e,"color")??t.color)}},background:SN(`${e}.background`,"properties.background",(t,n)=>{const r=n?jO.WHITE:jO.TRANSPARENT;return i(t,e,"backgroundColor")??r},a)}}}}),PN=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({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:SN(`${e}.fontColor`,void 0,t=>r(t,e,"color")??t.color)}},background:SN(`${e}.background`,"properties.background",t=>r(t,e,"backgroundColor")??n??"transparent")}}}}),MN=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map(e=>({value:e+1,translation:e+1})),defaultValue:1}),RN="12px",kN="Source Sans Pro, sans-serif",LN="600",AN=15e3,ON=4/3;let TN=function(e){return e.Transparent="transparent",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2",e}({}),qN=function(e){return e.Solid="solid",e.None="none",e}({});const _N={display:"flex",justifyContent:"center",alignItems:"center"},NN={borderStyle:"solid"},jN={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},FN={lineHeight:ON,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},zN=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),WN=(e,t)=>e>0?`${e}px ${qN.Solid} ${t}`:qN.None,$N=(e,t,n,r,i)=>{const o=Number(!t||i?.right),a=Number(!e||i?.bottom);return{borderRight:"rtl"!==r?WN(o,n):qN.None,borderBottom:WN(a,n),borderLeft:"rtl"===r?WN(o,n):qN.None,borderTop:qN.None}},HN=(e,t,n,r,i,o,a)=>{const s=$N(t,r,i,o,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=WN(2,i)),n||(s.borderLeft="rtl"!==o?WN(1,i):"none",s.borderRight="rtl"===o?WN(1,i):"none")),s},VN=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=WN(1,n)),t&&(r.borderRight=WN(1,n)),r},BN=(e,t,n)=>{switch(t){case"header":return e.object?.pivotTableV2?.dimension?.label?.name?.[n];case"dimensionValues":return e.object?.pivotTableV2?.dimension?.label?.value?.[n];case"measureLabels":return e.object?.pivotTableV2?.measure?.label?.name?.[n];case"measureValues":return e.object?.pivotTableV2?.measure?.label?.value?.[n];case"totalValues":return e.object?.pivotTableV2?.total?.label?.value?.[n];case"nullValues":return e.object?.pivotTableV2?.null?.label?.value?.[n];default:return}},GN=(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:DN({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:BN}),dimensionValueSection:DN({section:"dimensionValues",translator:e,flags:t,getThemeValue:BN}),measureValueSection:DN({section:"measureValues",translator:e,flags:t,getThemeValue:BN}),measureLabelSection:PN({section:"measureLabels",getThemeValue:BN}),totalValuesSection:PN({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:BN}),nullValuesSection:PN({section:"nullValues",fallbackBackground:TN.NullValueBackground,getThemeValue:BN}),gridSection:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:MN("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:MN("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"),border:SN("grid.border","properties.border",e=>e.object?.pivotTableV2?.grid?.borderColor??TN.DividerLight),divider:SN("grid.divider","properties.pivot.divider",e=>e.object?.pivotTableV2?.grid?.divider?.borderColor??TN.DividerDark),background:SN("grid.background","properties.background",e=>e.object?.pivotTableV2?.grid?.backgroundColor??TN.Transparent)}}}}}}]}),UN=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}}},YN=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[GN(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:ZA.Auto,translation:"Common.Auto"},{value:ZA.Pixels,translation:"Object.Table.Column.Pixels"},{value:ZA.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:ZA.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:JA.PixelsDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===ZA.Pixels}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:JA.PercentageDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===ZA.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,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}]},...UN(t)}}),KN="auto",XN={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:KN,translation:"Object.Table.SortingInSearch",options:[{value:KN,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function JN(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:xN(e),sorting:XN,addons:eN,settings:YN(t,n)}}}function ZN(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:JN(e),importProperties:K_(e),exportProperties:X_,exploration:u_(e),data:J_(e),migrate:Q_(e),propertyHandler:e.flags.isEnabled("VNA-147_NEBULA_PIVOT_DATA_HANDLERS")?t=>new D_(t,e):void 0}}const QN=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function ej(e,t){return M(()=>e,t)}const tj={},nj=e=>{const t=M(()=>({current:tj}),[]);return t.current=t.current===tj?e:t.current,t},rj=e=>!!e&&0===ZO(e).a,ij="#grid",oj=(e,t)=>{const n=t?.closest(e);return n&&window.getComputedStyle(n).backgroundColor},aj=(e,t,n,r,i)=>{const o=oj(".qv-object .qv-inner-object",n),a=oj(".qv-panel-sheet",n),s=oj(ij,n)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),n=t?.bgColor?.colorExpression,r=t?.bgColor?.color?.color,i=t?.bgColor?.useColorExpression;if(i&&n)return Oq(n);if("none"===r)return"transparent";if(void 0===r)return;const o=ZO(r);return o.setAlpha(t?.bgColor?.color?.alpha??o.a),o.getRGBA()})(e),u=r?.(t),c=i?.(t),d=l||u||o||c,p=rj(d),f=!rj(h=p?s:d)&&kq(h,jO.TEXT,jO.DARK_MODE_TEXT)===UO(jO.DARK_MODE_TEXT);var h;const m=((e,t,n,r=jO.WHITE)=>e&&!rj(e)?e:rj(t)?n&&!rj(n)?n:r:t)(l,d,s);return{color:d,headerColor:m,isDark:f}},sj=(e,t,n,r)=>{const i=O(),o=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[n,r]=L([]);return A(()=>{let n;return e&&(n=new MutationObserver(e=>{r(e)}),n.observe(e,t)),()=>{n?.disconnect()}},[e,t]),n})(t.closest(ij),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return M(()=>({...i,background:aj(e,i,t,n,r)}),[i.name(),t,n,r,e,o])};function lj(e,t){const n=M(()=>({isLoading:!0}),t),[r,i]=k(async()=>{try{return await e()}finally{n.isLoading=!1}},t);return[r,n.isLoading,i]}const uj=3,cj=/\n/g;function dj(e,t,n){let r=0,i=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=i;){const o=Math.floor((r+i)/2),a=e.slice(0,o),s=e.slice(0,o-1),l=n(a),u=n(s);if(l>t&&u<=t)return e.slice(o-1)||null;if(l===t)return e.slice(o)||null;l<t?r=o+1:i=o}return null}function pj({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},i){const{maxNbrLinesOfText:o=uj,allowLineBreaks:a=!0}=i??{},{estimateWidth:s,measureText:l,estimateLineCount:u}=y(()=>(({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},i)=>{const{maxNbrLinesOfText:o=uj,allowLineBreaks:a=!0}=i??{};return()=>{const i=document.createElement("canvas").getContext("2d");i.font=`${n} ${r} ${e} ${t}`;const s=i.measureText.bind(i),l=Sq(e=>{if(void 0===e)return 0;if(a){const t=e.split(cj).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(cj," ");return s(t).width}),u=e=>+l(e).toFixed(2),c=Sq(({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;const r=a?e.split(cj):[e];let i=0;for(const e of r){let n=e;do{i+=1,n=dj(n,t,u)}while(null!==n&&i<o);if(i>=o)break}return i},({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}})({fontStyle:n,fontWeight:r,fontSize:e,fontFamily:t},{maxNbrLinesOfText:o,allowLineBreaks:a})(),[n,r,e,t,o,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var fj,hj={};var mj=function(){if(fj)return hj;fj=1;var e=E;return hj.createRoot=e.createRoot,hj.hydrateRoot=e.hydrateRoot,hj}();const gj="Source Sans Pro, sans-serif";function vj(e,t){const[n,r]=g(t);n.some((e,n)=>e!==t[n])&&(r(t),e())}var yj={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 bj=({translator:e})=>(y(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(yj).forEach(t=>{e.add(yj[t])})}}(e)},[e]),e),xj={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},Sj={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},wj=Ta("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-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":{...xj},"&::-moz-range-track":{...xj},"&::-ms-track":{...xj},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...Sj},"&::-moz-range-thumb":{...Sj},"&::-ms-thumb":{...Sj},"&: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"}})),Cj=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:i,updateWidthCallback:o,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:d,direction:p="ltr"})=>{const f=bj({translator:d.translator}),h=u({initWidth:e,columnWidth:e,initX:0}),m=n?0:1,g=r&&!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}};vj(()=>{g&&b()},[e]);const x=e=>{const t=Math.max(e,JA.PixelsMin);h.current.columnWidth=t,o(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:ZA.Pixels,pixels:h.current.columnWidth};a(e)}l?.(!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=>{Tq(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=>{Tq(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",I),S()},D=!r&&s?e=>{if(e.key===KA.Left||e.key===KA.Right){Tq(e);const t=5,n=e.key===KA.Left?t:-t,r="rtl"===p?n:-n;l?.(!0),x(h.current.columnWidth+r)}else e.key===KA.Space||e.key===KA.Enter?(Tq(e),s(e),l?.(!1),S()):e.key===KA.Esc&&(Tq(e),s(e),l?.(!1),x(h.current.initWidth))}:void 0,P=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return Yn.jsx(wj,{style:y,hoverColor:i,isLastColumn:n,className:XA,"data-testid":XA,onMouseDown:e=>{Tq(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),l?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:ZA.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Tq(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",I),l?.(!0),b(e.touches[0].clientX))},onKeyDown:D,onBlur:s,onFocus:()=>{b()},type:"range",tabIndex:-1,"aria-label":P,"aria-valuemin":JA.PixelsMin,"aria-valuemax":JA.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p},t)},Ej=r((e,t)=>Yn.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:Yn.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),Ij=Ta(xl,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:n})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:n?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:n?"100%":void 0,alignItems:"center",justifyContent:"center"})),Dj=Ta(Ej,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),Pj=Ta(qc)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),Mj=Ta(hu)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),Rj=Ta(zc)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),kj=Ta(zc,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:n})=>({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:n?"rgba(0, 0, 0, 0.05)":"transparent"})),Lj=Ta("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),Aj=Ta("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),Oj=Ta(_s)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),Tj=Ta(lc,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),qj=r((e,t)=>Yn.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:Yn.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),_j=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?_j(t):t:e.parentElement?.children?.[0]},Nj=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?Nj(t):t},jj=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===KA.Down||t===KA.Up){const n=e=>t===KA.Down?_j(e):Nj(e);e.preventDefault(),e.stopPropagation();let i=n(r);for(;i;){if("true"!==i.ariaDisabled){i.focus();break}i=n(i)}}},Fj=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(n)}}:{}}))})));let zj={};const Wj=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:i,enabled:a,subMenus:s,isSubMenu:l,isActive:u,direction:c,isPagination:d})=>{const[p,f]=g(!1),h=o.useRef(null),v=m(e=>{e.stopPropagation(),f(!1)},[f]);return Yn.jsxs(Yn.Fragment,{children:[Yn.jsxs(kj,{ref:s?h:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),zj={}),s?.length&&(f(!0),zj[r]=f,e.stopPropagation()))},disabled:!a,autoFocus:e,isSubMenu:!!l,isActive:!!u,onKeyDown:jj,children:[u?Yn.jsx(Lj,{direction:c,isPagination:d}):null,Yn.jsxs(Aj,{children:[Yn.jsx(Tj,{direction:c,isPagination:d,children:Yn.jsx(i,{})}),Yn.jsx(Oj,{variant:"body2",children:r})]}),s?.length?Yn.jsx(qj,{}):null]},t),s?.length?Yn.jsx(Bj,{isSubMenu:!0,open:p,anchorEl:h.current,onClose:v,menuGroups:Fj(s,zj),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null]})},$j=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&Yn.jsx(Rj,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>Yn.jsx(Wj,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),Hj=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((i,o)=>[$j({menuGroup:i,isSubMenu:t,direction:n,isPagination:r}),o<e.length-1?Yn.jsx(Mj,{"data-testid":"group-divider",variant:"middle"}):void 0]),Vj={appear:0,enter:0,exit:0},Bj=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:i,anchorOrigin:o,isSubMenu:a,direction:s,isPagination:l})=>r.length?Yn.jsx(Pj,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:Vj,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"},...o?{anchorOrigin:o}:{},...i?{transformOrigin:i}:{},dir:s,children:Hj({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,Gj=(e,t)=>e.some(e=>t[e]>0),Uj={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Yj=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[i,o]=g(null),[a,s]=g(Uj);return vj(()=>{e||(s(Uj),o(null))},[e]),f(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let i,a=!1;const l=()=>{i&&r.destroySessionObject(i)};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,n),u=await r.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};i=c.qInfo?.qId,a?l():(o(u),d&&s((e=>({canSelectAll:Gj(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:Gj(["qSelected"],e),canSelectPossible:Gj(["qOption"],e),canSelectAlternative:Gj(["qAlternative"],e),canSelectExcluded:Gj(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:i,selectionActionsEnabledStatus:a}},Kj=r((e,t)=>Yn.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:Yn.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"})})),Xj=r((e,t)=>Yn.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:Yn.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"})})),Jj=r((e,t)=>Yn.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:Yn.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"})})),Zj=r((e,t)=>Yn.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:Yn.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"})})),Qj=r((e,t)=>Yn.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:Yn.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"})})),eF=r((e,t)=>Yn.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:Yn.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"})})),tF=r((e,t)=>Yn.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:Yn.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"})})),nF=r((e,t)=>Yn.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:Yn.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"})})),rF=r((e,t)=>Yn.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:Yn.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"})})),iF=r((e,t)=>Yn.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:Yn.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"})})),oF=r((e,t)=>Yn.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:Yn.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"})})),aF=r((e,t)=>Yn.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:Yn.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"})})),sF=r((e,t)=>Yn.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:Yn.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"})})),lF=r((e,t)=>Yn.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:Yn.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 uF=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const cF="/qListObjectDef",dF=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:i,interactions:o,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[uF.Sorting]){const{isActivelySorted:n,sortDirection:o}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let i=!n&&!e||"D"===t,o=!n&&!e||"A"===t;return r&&(i=!1,o=!1),{ascendingEnabled:i,descendingEnabled:o}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(i?.(e,"A")),r(!1)},icon:Kj,enabled:a,isActive:!!n&&"A"===o,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(i?.(e,"D")),r(!1)},icon:Zj,enabled:s,isActive:!!n&&"D"===o,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:nF,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:Qj,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&o?.select){const i=[];n[uF.Searching]&&i.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:rF,enabled:!0}]}]),!e.isLocked&&n[uF.Selections]&&i.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:lF,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(cF))},icon:iF,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(cF))},icon:sF,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(cF))},icon:oF,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(cF))},icon:aF,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(cF))},icon:Xj,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:tF,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:eF,enabled:!0}]}]),i.length>0&&f.push(...i)}return n[uF.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),c?.(u)},icon:Jj,enabled:!0}]}]),f},pF=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:i,interactions:o,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:f,model:h,direction:g="ltr",isPagination:v,isAccessibleHeader:y,iconSize:b=GA})=>{const x=u(null),S=bj({translator:i}),{qLibraryId:w,fieldId:C,headTextAlign:E}=r,I=d?.app,{fieldInstance:D,selectionActionsEnabledStatus:P}=Yj({open:e,headerData:r,app:I,qStateName:d?.qStateName}),M=(({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const n=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",n,t)}catch(e){console.error(e)}}}return null})({model:h,headerData:r}),R=(({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:i,onPopoverClose:o})=>m(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(n?.embed){const{embed:e,listboxRef:t}=n;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===i?"right":"left"},sortCriteria:n.sortCriteria,stateName:r?.qStateName,direction:i,onPopoverClose:o})}},[e,t,n,r?.qStateName,i,o]))({qLibraryId:w,fieldId:C,searchRelatedArgs:c,selectionRelatedArgs:d,direction:g}),k=m(e=>{e.stopPropagation(),t(!1)},[t]),L=m(e=>{e.stopPropagation(),t(e=>!e)},[t]);return o.active?Yn.jsxs(Ij,{rightAligned:"right"===E,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper",onClick:!1===y?L:void 0,ref:x,isAccessibleHeader:y,children:[s?Yn.jsx(Dj,{height:b,className:UA,"data-testid":UA,isInteractionsActive:o.active??!1,children:Yn.jsx(Ej,{})}):null,Yn.jsx(Bj,{open:e,anchorEl:!1===y?x.current:n.current,onClose:k,menuGroups:dF({headerData:r,translator:S,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:R,interactions:o,fieldInstance:D,selectionActionsEnabledStatus:P,anchorRef:n,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:M,expandOrCollapseArgs:f}),direction:g,isPagination:v})]}):null},fF=e=>e.isDark?{background:e.color,borderColor:jO.DARK_MODE_BORDER,color:jO.DARK_MODE_TEXT,disabledColor:jO.DARK_MODE_DISABLED,iconColor:jO.DARK_MODE_TEXT}:{background:e.color,borderColor:jO.BORDER_MEDIUM,color:jO.TEXT,disabledColor:jO.DISABLED},hF=Ta(xl,{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}`})),mF=Ta(xd,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),gF=Ta(kl,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)})),vF=Ta(_s)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),yF=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:i=!0})=>{const o=y(()=>fF(r.background),[r]);if(!n.active)return null;const a=i?Yn.jsx(hF,{footerStyle:o,children:e}):null;return t?E.createPortal(e,t):a},bF=d({}),xF=()=>i(bF),SF=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:i,isSelectionMode:o,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const v=(e=>!e.enabled||e.active)(c)?0:-1,b=y(()=>fF(p.background),[p]),x=i?i.getBoundingClientRect().width:h.width,S=bj({translator:d}),w=y(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:i,isSelectionMode:o,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:S,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:v,width:x,visibilityThreshold:g}),[t,n,r,i,o,a,s,l,u,c,S,p,f,h,m,b,v,x,g]);return Yn.jsx(bF.Provider,{value:w,children:e})};let wF=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),CF=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 EF=r((e,t)=>Yn.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:Yn.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),IF=r((e,t)=>Yn.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:Yn.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),DF=r((e,t)=>Yn.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:Yn.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),PF={FirstPage:IF,PreviousPage:EF,NextPage:qj,LastPage:DF,FirstPageRTL:DF,PreviousPageRTL:qj,NextPageRTL:EF,LastPageRTL:IF},MF=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:i,handleChangePage:o,translator:a,interactions:s,tabIndex:l}=xF(),u=n.concat("rtl"===r?"RTL":""),c=PF[u];return{styledProps:{footerStyle:i,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:l,onClick:e?void 0:()=>{o(t)}},IconComponent:c}},RF=()=>{const{pageInfo:e,width:t,interactions:n,visibilityThreshold:r}=xF(),i=0===e.page,{IconComponent:o,styledProps:a}=MF({type:wF.FirstPage,disabledCondition:i,pageNumber:0});return t<=(r?.firstPage||CF.FirstPage)?null:Yn.jsx(gF,{...a,disabled:!n.active,children:Yn.jsx(o,{height:GA})})},kF=(e,t,n=!1)=>{n&&e.key===KA.Tab&&!e.shiftKey&&(Tq(e),((e,t,n)=>{const r=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;r?r.focus():t.focusSelection?.(n)})(e.target,t,!1))},LF=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:i,interactions:o,visibilityThreshold:a}=xF(),s=e.page>=n-1,{IconComponent:l,styledProps:u}=MF({type:wF.LastPage,disabledCondition:s,pageNumber:n-1}),c=t.enabled?e=>{kF(e,t,r)}:void 0;return i<=(a?.lastPage||CF.LastPage)?null:Yn.jsx(gF,{...u,onKeyDown:c,disabled:!o.active,children:Yn.jsx(l,{height:GA})})},AF=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:i,interactions:o}=xF(),a=e.page>=n-1,{IconComponent:s,styledProps:l}=MF({type:wF.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(i>CF.FirstPage&&i>CF.LastPage)&&t.enabled?e=>{kF(e,t,r)}:void 0;return Yn.jsx(gF,{...l,onKeyDown:u,disabled:!o.active,children:Yn.jsx(s,{height:GA})})},OF=()=>{const{pageInfo:e,interactions:t}=xF(),n=0===e.page,{IconComponent:r,styledProps:i}=MF({type:wF.PreviousPage,disabledCondition:n,pageNumber:e.page-1});return Yn.jsx(gF,{...i,disabled:!t.active,children:Yn.jsx(r,{height:GA})})},TF=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:i}=xF(),{page:o,rowsPerPage:a}=n;if(t<=(i?.displayedRowsLabel||CF.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*a+1} - ${Math.min((o+1)*a,r)}`,r.toString()]);return Yn.jsx(vF,{variant:"caption",dir:"ltr",children:s})},qF=({name:e,value:t,options:n,handleChange:r})=>{const{layout:i,footerStyle:o,translator:a,tabIndex:s,interactions:l}=xF(),u=i.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 Yn.jsxs(Yn.Fragment,{children:[Yn.jsxs(vF,{variant:"caption",id:p,children:[c,":"]}),Yn.jsx(mF,{footerStyle:o,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},_F=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:i,visibilityThreshold:o}=xF();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(o?.rowsPerPage||CF.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=Yn.jsx(Yn.Fragment,{children:e.rowsPerPageOptions.map(e=>Yn.jsx("option",{value:e,children:e},e))});return Yn.jsx(qF,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{i?.(+e.target.value)}})},NF=1e3,jF="…",FF=({totalPages:e,page:t})=>{const n=Math.min(e,NF),r=n<e&&t>500,i=r?Math.min(500+t,e):n,o=r?Math.max(0,i-NF):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+o;return Yn.jsx("option",{value:t,children:t+1},t)});return o>0&&a.unshift(Yn.jsx("option",{value:jF,disabled:!0,children:jF},"startMoreOptions")),i<e-1&&a.push(Yn.jsx("option",{value:jF,disabled:!0,children:jF},"endMoreOptions")),Yn.jsx(Yn.Fragment,{children:a})},zF=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:i}=xF(),{page:o}=e;if(t<=(i?.selectPage||CF.SelectPage))return null;const a=Yn.jsx(FF,{totalPages:n,page:o});return Yn.jsx(qF,{name:"SelectPage",value:o,options:a,handleChange:e=>{r(+e.target.value)}})};var WF=x(e=>Yn.jsxs(SF,{...e,children:[Yn.jsx(_F,{}),Yn.jsx(zF,{}),Yn.jsx(TF,{}),Yn.jsx(RF,{}),Yn.jsx(OF,{}),Yn.jsx(AF,{}),Yn.jsx(LF,{})]}));const $F=e=>Yn.jsx(yF,{...e,children:Yn.jsx(WF,{...e})}),HF=d({}),VF=()=>i(HF),BF=({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:i,children:o})=>{const a=y(()=>({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:i}),[e,t,n,r,i]);return Yn.jsx(HF.Provider,{value:a,children:o})},GF=d({}),UF=()=>i(GF),YF=({app:e,model:t,theme:n,embed:r,keyboard:i,translator:o,interactions:a,env:s,children:l})=>{const u=y(()=>({model:t,app:e,interactions:a,embed:r,theme:n,keyboard:i,env:s,translator:o}),[e,a,t,r,n,i,s,o]);return Yn.jsx(GF.Provider,{value:u,children:l})},KF=d({}),XF=()=>i(KF),JF=({children:e,...t})=>Yn.jsx(KF.Provider,{value:t,children:e}),ZF=()=>{const{text:e,fontFamily:t,fontSize:n,justifyContent:r,alignItems:i,height:o}=(()=>{const{theme:e,translator:t}=UF(),{layoutService:n}=XF(),r=e.getStyle("","","fontFamily")??kN;return n.hasData?n.hasLimitedData?{text:t.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:r,alignItems:"center",height:"22px"}:{}:{text:t.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:r,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:Yn.jsx("div",{style:{display:"flex",justifyContent:r,alignItems:i,width:"100%",height:o},children:Yn.jsx("span",{style:{...FN,fontFamily:t,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:e})})},QF="/qHyperCubeDef",ez=-1,tz="PSEUDO-DIM",nz=e=>e===ez?tz:(({cId:e})=>e??b_())(e),rz=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===ez?n.columnWidthLocation=lN.Measures:n.isLeftDimension?n.columnWidthLocation=lN.Dimension:t.at(-1)===ez?n.columnWidthLocation=lN.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=lN.Pivot))},iz=(e,t,n,r)=>{const i=nz(n),o=e.getDimensionInfoIndex(n),a=e.isLeftDimension(o);return n===ez?{id:i,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:o,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:lN.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:i,colIdx:0,label:n.qFallbackTitle??"",qReverseSort:n.qReverseSort,sortDirection:n.qSortIndicator&&"N"!==n.qSortIndicator?n.qSortIndicator:"A",qLibraryId:n.qLibraryId,fieldId:n.qGroupFieldDefs[n.qGroupPos],isLocked:n.qLocked??!1,columnWidth:n.columnWidth,qApprMaxGlyphCount:n.qApprMaxGlyphCount,isDim:!0,isCyclic:n.qGrouping===tO.Cyclic,groupDimensionPos:n.qGroupPos,groupDimensionLabels:n.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:o,canBeResized:!1,isLeftDimension:a,isLastDimension:r,columnWidthLocation:lN.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:n.qEffectiveDimensionName}},oz=({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})=>{let i=r;var o;n.length>0&&(i=(o=r).at(-1)===ez?o.slice(0,-1):o);const a=i.length+(n.length?1:0),s=Math.max(1,n.length),l=((e,t)=>Array(e).fill(null).map(()=>Array.from({length:t},()=>null)))(a,s);return n.forEach((n,r,i)=>{const o=r===i.length-1;l[a-1][r]=iz(e,t,n,o)}),i.forEach((n,r,i)=>{const o=r===i.length-1;l[r][s-1]=iz(e,t,n,o)}),l},az=(e,t,n,r)=>{const i=((e,t,n,r)=>{let i;return i=0===n.length||n.includes(ez)?oz({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n}):(e=>e[0].map((t,n)=>e.map(e=>e[n])))(oz({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r})),e.isIndentModeEnabled&&i[i.length-1].length>1&&(i[i.length-1]=[i.at(-1),...new Array(i[0]?i[0].length-1:0).fill(null)]),i.length&&i.at(-1)?.forEach((t,n)=>{Array.isArray(t)?t.forEach((t,n)=>{rz({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}):rz({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}),i})(e,t,n,r);return{data:i,size:{x:i[0]?.length??0,y:i.length}}};var sz={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,i="",o=!1;-1===n?r=e:(r=e.slice(0,n),i=e.slice(n+1),o=!0),t.push(function(e,t,n){return{key:uz(e),value:uz(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,i,o))}),t}},lz=sz;function uz(e){try{return decodeURIComponent(e)}catch{return e}}function cz(e){if(!(this instanceof cz))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 n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>lz.fromSearchString(t.search)}})}function dz(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}cz.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},cz.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=dz(t.key),t.value?n+=`=${dz(t.value)}`:n+=t.useEqualSign?"=":"";return n};var pz=cz;var fz,hz=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}},mz=class{decode(e){let t="";const n=new hz(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}},gz=e=>e>=0&&e<=1114111,vz=e=>e.match(/[\s]/),yz=class extends mz{decodeCharacter(e){e.mark();const t=e.next();let n,r,i;if(null==t||"\\"!==t)return e.reset(),null;const o=e.next();if(null==o)return e.reset(),null;switch(o){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(o,16))return o;for(n=o,r=0;r<5&&(i=e.next(),null!=i&&!vz(i));r++){if("NaN"===parseInt(i,16)){e.pushback(i);break}n+=i}const a=parseInt(n,16);return gz(a)?String.fromCharCode(a):"�"}},bz=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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},xz=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let i,o;if(t.length===n)return o=this._value,this.setValue(r),o;const a=t.charAt(n);return this._nextMap?(i=this._nextMap[a],i||(i=new e,this._nextMap[a]=i)):(this._nextMap={},i=new e,this._nextMap[a]=i),i.put(t,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return bz.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return bz.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||bz.newInstanceIfNeeded(e,t,this._value)}},Sz=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 xz);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},wz=(()=>{const e=[],t=[],n=new Sz;let r,i,o;for(r 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[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(i in t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(o=t[i].toLowerCase().substr(1),n.put(o,String.fromCharCode(i)));return n})(),Cz=class extends mz{decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,i="";for(t=Math.min(e.remainder().length,wz.getMaxKeyLength()),r=0;r<t;r++)i+=e.next().toLowerCase();const o=wz.getLongestMatch(i);if(null==o)return null;for(e.reset(),e.next(),t=o.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),o.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,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&gz(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&gz(r)?String.fromCharCode(r):null}},Ez=class extends mz{decodeCharacter(e){e.mark();const t=e.next();let n,r,i,o;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)i=e.nextHex(),null!=i&&(n+=i);return 2===n.length&&(o=parseInt(n,16),gz(o))?String.fromCharCode(o):(e.reset(),null)}},Iz=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,Dz=5e6,Pz=5e5,Mz=(e,t)=>{const{maxByteSizeSvg:n=Pz,maxByteSizeImage:r=Dz}=t??{},{mimeType:i,encoding:o,data:a}=(e=>{const[,t,n,r]=Iz.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(i,o,a);return"image/svg+xml"===i?s<=n:s<=r};"undefined"!=typeof document&&(fz=document.createElement("div"));var Rz=Array.prototype.indexOf,kz=[",",".","_"," "],Lz=[",",".","-","_"," "],Az={width:["%"],height:["%"]},Oz={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Tz={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Oz.image,"background-color":Oz.color,"border-color":Oz.color,"border-image":Oz.image,color:Oz.color,icon:Oz.image,"list-style-image":Oz.image,"outline-color":Oz.color},qz={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function _z(e,t,n){let r;if(t){if(Rz)return Rz.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function Nz(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return fz.appendChild(n),t=fz.innerHTML,fz.removeChild(n),t}function jz(e,t,n){let r,i,o,a,s,l,u,c,d;for(e=zz(e).toLowerCase(),t=zz(t),o=0;o<qz.attr_name.length;o++)if(e.match(qz.attr_name[o]))throw new Error(`Unsafe attribute name used: ${e}`);for(o=0;o<qz.attr_val.length;o++)if(t.toLowerCase().match(qz.attr_val[o]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=Az[e],r||(r=Lz),i="",!n){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");i+=s}i+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&_z(u,r)<0?(d=c.toString(16),i+=`&#x${d};`):i+=u;return n||(i+='"'),i}function Fz(e,t,n){let r,i,o,a,s,l,u,c,d,p;if(e=zz(e).toLowerCase(),t=zz(t),_z(e,qz.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<qz.css_val.length;r++)if(t.toLowerCase().indexOf(qz.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(i=Tz[e],i||(i=Oz.default),o="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property 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]/)&&_z(u,i)<0?(d=c.toString(16),p="000000".substr(d.length),o+=`\\${p}${d}`):o+=u;return o}function zz(e,t){let n,r,i,o,a=!1;if(null===e)return null;n=e,r=e,i=0;const s=[new Cz,new Ez,new yz];for(;!a;){r=n;for(let e=0;e<s.length;e++)o=s[e].decode(n),o!==n&&(i++,n=o);r!==n||(a=!0)}if(t&&i>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}var Wz=[];for(let e=0;e<255;e++)Wz[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var $z={html:e=>Nz(e.unsafe),css(e){let t,n=[];const r=[],i={};let o="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=Fz(t,n[t],!0),o+=Fz(t,n[t],!0),i[t]=r[t]);return e.map?i:o},attr(e){let t=[];const n=[],r={};let i="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=jz(e,t[e],!0),i+=jz(e,t[e],!0),r[e]=n[e]);return e.map?r:i}};function Hz(e,t){throw new Error(t)}var Vz={canonicalize:zz,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,n;const r=arguments[0]||{};let i=1;const o=arguments.length;for(;i<o;i++)if(null!=(e=arguments[i]))for(t in e)if(e.hasOwnProperty(t)){if(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(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&&Hz(this,"Invalid parameter type"),$z.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&Hz(this,"Invalid parameter type"),$z.attr(e)):void Hz(this,"Invalid parameter type")},encodeForAttr:jz,encodeForAttr2:function(e){return jz("nonsens",e,!0)},encodeForCSS:Fz,encodeForHref:function(e){zz(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new pz(e),n=pz.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+pz.encodeSearchParams(r)+t.hash;const i=decodeURI(e).toLowerCase();if(-1!==i.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==i.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let n,r,i,o,a,s;for(t||(t=kz),s="",n=0;n<e.length;n++)i=e.charAt(n),o=e.charCodeAt(n),_z(i,t)>=0||null==Wz[o]?s+=i:(r=o.toString(16),o<256?(a="00".substr(r.length),s+=`\\x${a}${r.toUpperCase()}`):(a="0000".substr(r.length),s+=`\\u${a}${r.toUpperCase()}`));return s},encodeForHTML:Nz,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=zz(t).toLowerCase():Hz(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:Mz,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 n=function(e){let t=e,n="";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=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const Bz=(e,t)=>t.qAttrExps?.qValues?.[e],Gz=(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"}}},Uz=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:i,imageBox:o,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!Vz.isSafeDataURL(t))?{type:tN.Text,url:void 0,text:e,labelStructure:i}:{type:tN.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:Gz(r,a),labelStructure:i,imageBox:o},Yz=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:tN.Text,text:r};const{minY:i,maxY:o}=((e,t,n)=>{const r="global"===t.yAxis?.scale,i="zeroCenter"===t.yAxis?.position,o=r?n.qYMin:e.qMiniChart.qMin,a=r?n.qYMax:e.qMiniChart.qMax;if(i){const e=Math.max(Math.abs(o),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,o),maxY:Math.max(0,a)}:{minY:o,maxY:a}})(e,t.miniChart,n),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:i,maxY:o,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:tN.MiniChart,text:r,miniChart:a}},Kz=(e,t,n)=>{const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=r?.qValues?.[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return n?.urlPosition===nN.Attribute?void 0:n?.urlLabel},Xz=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:tN.Link,url:Vz.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:tN.Text,url:void 0,text:t,labelStructure:e}}},Jz=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:i,miniChartOnMeasure:o,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=rN(t),d=s(e);return c===tN.Image&&u[tN.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,i,o)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=Bz(n.imageUrl??-1,e)?.qText;return o&&(o.maskedValue=t??""),Uz({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i})}if("label"===l){const t=o?o.originalValue:r;if(-1===n.imageLabel)return Uz({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i});const l=Bz(n.imageLabel??-1,e)?.qText??r;return Uz({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:o,imageBox:c,direction:i})}return{type:tN.Text,url:void 0,labelStructure:o,text:r}})(e,t,n,d,l,a):c===tN.Link?((e,t,n,r,i)=>{const{urlPosition:o}=t??{};if(o===nN.Attribute){const o=Kz(n.url??-1,e,t);return Xz({labelStructure:r,text:i||o||"",url:o})}if(o===nN.Dimension){const o=Kz(n.urlLabel??-1,e,t)||i;return r&&(r.maskedValue=o),Xz({text:o,labelStructure:r,url:r?.originalValue??i})}return{type:tN.Text,url:void 0,text:i,labelStructure:r}})(e,t,n,a,d):c===tN.Indicator&&u[tN.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:tN.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,i,d):c===tN.MiniChart&&u[tN.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?Yz(e,t,o,d):{type:tN.Text,url:void 0,text:d,labelStructure:a}},Zz=(e,t)=>{const n=t.qAttrExps,r=n?.qValues?.[e?.cellForegroundColor??-1]?.qText,i=n?.qValues?.[e?.cellBackgroundColor??-1]?.qText,o=i?Oq(i):null,a=r?Oq(r):null,s=((e,t)=>e||!t?null:kq(t))(a,o);return{color:s??a,background:o}},Qz=(e,t)=>t.qSubNodes.reduce((e,t)=>0===t.qSubNodes.length?e+1:Qz(e,t),e),eW=(e,t,n,r,i,o)=>{const a=i?o.rowsPerPage-n:AN-r;let s=e.qUp+e.qDown;if(i&&0===n){const n=(t+e.qUp)%o.rowsPerPage;s=e.qDown+n}return Math.min(a,Qz(s,e))},tW=({node:e,parent:t,root:n,x:r,y:i,pageY:o,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!==ez){if(t){const t=rN(e.representation);return t===tN.Link||t===tN.Image?e.representation:{type:tN.Text}}return e.representation}})(s,c),y=(({node:e,isLeftColumn:t,isIndentModeEnabled:n,labelStructure:r,representationType:i,parentOrRootOriginalValue:o})=>{let a=e.qText;if(t&&n&&r){const{originalValue:t,delimeter:n,suffix:s}=r;a=i===tN.Link?"P"===e.qType?o:t:`${t} ${!s||!t&&s?"":n} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:p,representationType:rN(v),parentOrRootOriginalValue:(t||n)?.representation?.labelStructure?.originalValue??""}),b=Jz({cell:{...e,qText:y},representationProperties:v,attrExprInfoIndex:l,env:f,labelStructure:p,direction:m,enabledFeatures:{[tN.Image]:!0,[tN.Indicator]:!0}}),x={id:b_(),ref:e,x:r,y:i,pageX:r,pageY:o,mainAxisPageCoord:u?o:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:eW(e,i,o,r,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:Zz(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},nW=(e,t,n,r,i,o,a,s,l)=>{const{isIndentModeEnabled:u}=i;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=i.leftDimensionInfoIndexes.indexOf(ez);f.forEach((f,v)=>{const y={originalValue:f.qText??"",maskedValue:"",delimeter:"-",suffix:""};c+=0===v?0:1;const b=n.qTop-r.page*r.rowsPerPage,x=Math.max(0,b+c-f.qUp),S=n.qTop+c-f.qUp;if(u){if(i.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=i.getNullValueText()),m<g&&(y.suffix=i.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=i.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?tW({node:f,parent:p,root:d,x:w,y:S,pageY:x,layoutService:i,dimensionInfo:o[w],attrExprInfoIndex:a[w],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentLevel:m},env:s,pageInfo:r,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},rW=(e,t)=>{e.slice(0,-1).forEach(e=>{Object.values(e).forEach((e,n,r)=>{const i=r.at(n+1);e.distanceToNextCell=i?i.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)})})},iW=(e,t)=>{const n=e[0],r=n?Object.values(n):[],i=t?.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,o=n?.[i],a=r.at(-1);return o?.isTotal?o.isLeafNode?o.mainAxisPageCoord:o.mainAxisPageCoord+o.leafCount-1:a?.isTotal?a.mainAxisPageCoord-1:-1},oW=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:i,attrExprInfoIndexes:o,env:a,direction:s})=>{const{qLeft:l,qArea:u}=t;if(!l.length)return e;const c=nW(e.grid,l,u,n,r,i,o,a,s);rW(c,n.rowsOnCurrentPage);const d=iW(c,r);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},aW=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const i=[...t];return n.forEach((t,n)=>{t.forEach((t,o)=>{const a=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+o;Array.isArray(i[a])||(i[a]=[]);const l="U"===t.qType;i[a][s]=i[a][s]??{id:b_(),ref:t,isNull:l}})}),i},sW=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:i}=t;return r?.length?aW({qArea:i,prevData:e,pivotValuePoints:r,pageInfo:n}):e},lW=(e,t,n,r,i,o,a,s,l,u)=>{const{isIndentModeEnabled:c}=r;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=n.qLeft+d-f.qUp,v=e[h][g]??tW({node:f,parent:p,root:a,x:g,y:h,pageY:h,layoutService:r,dimensionInfo:i[h],attrExprInfoIndex:o[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},uW=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:i,headerRows:o,env:a,pageInfo:s,direction:l})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=lW(e.grid,u,c,n,r,i,o,a,s,l);rW(d,n.size.x);const p=iW(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},cW=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),dW=(e,t)=>{const{env:n}=UF(),{direction:r}=VF(),{layoutService:i,effectivePropertiesService:o}=XF(),{qPivotDataPages:a,pageInfo:s}=VF(),[l,u]=g(null),c=((e,t,n)=>y(()=>({left:e.map(cW),top:t.map(cW),measures:n.map(cW)}),[n,e,t]))(e,t,i.visibleMeasureInfo),d=y(()=>az(i,o,t,e),[i,o,t,e]),p=m(()=>a.slice(1).reduce((e,t)=>sW({prevData:e,dataPage:t,pageInfo:s}),((e,t)=>{const{qData:n,qArea:r}=e;return aW({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(a[0],s)),[a,s]),f=m(()=>a.slice(1).reduce((e,o)=>uW({prevData:e,nextDataPage:o,layoutService:i,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:n,pageInfo:s,direction:r}),((e,t,n,r,i,o,a,s)=>{const{qArea:l,qTop:u}=e,c=lW([],u,l,t,n,r,i,o,a,s);rW(c,t.size.x);const d=iW(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(a[0],i,t,c.top,d.size.y,n,s,r)),[a,i,t,c.top,d.size.y,n,s,r]),h=m(()=>a.slice(1).reduce((t,o)=>oW({prevData:t,nextDataPage:o,pageInfo:s,layoutService:i,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:n,direction:r}),((e,t,n,r,i,o,a)=>{const{qArea:s,qLeft:l}=e,u=nW([],l,s,n,t,r,i,o,a);rW(u,n.rowsOnCurrentPage);const c=iW(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(a[0],i,s,e,c.left,n,r)),[a,i,s,e,c,n,r]),[v,b]=g(()=>p()),[x,S]=g(()=>f()),[w,C]=g(()=>h());vj(()=>{b(p())},[p]),vj(()=>{S(f())},[f]),vj(()=>{C(h())},[h]),vj(()=>{l&&l.forEach(o=>{b(e=>sW({prevData:e,dataPage:o,pageInfo:s})),S(e=>uW({prevData:e,nextDataPage:o,layoutService:i,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:n,pageInfo:s,direction:r})),C(t=>oW({prevData:t,nextDataPage:o,pageInfo:s,layoutService:i,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:n,direction:r}))})},[l]);const E=m(e=>{u(e)},[]);return{headersData:d,measureData:v,topDimensionData:x,leftDimensionData:w,attrExprInfoIndexes:c,nextPageHandler:E}},pW=Math.sqrt(1e4),fW=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/JA.PixelsMin)}),hW=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/pW),r=Math.ceil(e.qHeight/pW);for(let i=0;i<n;i++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+i*pW,qTop:e.qTop+n*pW,qWidth:Math.min(pW,e.qWidth-i*pW),qHeight:Math.min(pW,e.qHeight-n*pW)});return t};function mW({nextPageHandler:e}){const{model:t}=UF(),{pageInfo:n}=VF(),{layoutService:r}=XF(),i=(e=>{const t=u(e);return t.current=e,t})(n.page),o=t,a=m(async(e,t)=>{await(o?.collapseLeft(QF,e,t,!1))},[o]),s=m(async(e,t)=>{await(o?.collapseTop(QF,e,t,!1))},[o]),l=m(async(e,t)=>{await(o?.expandLeft(QF,e,t,!1))},[o]),c=m(async(e,t)=>{await(o?.expandTop(QF,e,t,!1))},[o]),d=m(async t=>{if(o?.getHyperCubePivotData&&0!==t.length)try{const r=await o.getHyperCubePivotData(QF,t.reduce((e,t)=>[...e,...hW(t)],[]));i.current===n.page&&e(r)}catch(e){console.error(e)}},[o,e,n,i]),p=m((e,{dimensionInfoIndex:n,isLeftColumn:i,x:o=0,columnWidthLocation:a})=>{const{qMeasureInfo:s,qDimensionInfo:l,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case lN.Dimension:c=[{qPath:`${QF}/qDimensions/${n}/qDef/columnWidth`,oldValue:l[n].columnWidth}];break;case lN.Measures:if(i)c=s.map((e,t)=>({qPath:`${QF}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth}));else{const e=r.getMeasureInfoIndexFromCellIndex(o);c=[{qPath:`${QF}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case lN.Pivot:c=[{qPath:`${QF}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map(t=>{const{qPath:n,oldValue:r}=t;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...e})}});t?.applyPatches(d,!0)},[t,r]),f=m(async e=>{await(o?.applyPatches([{qPath:`${QF}/indentModeColumnWidth`,qOp:r.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))},[o,r]);return y(()=>({collapseLeft:a,collapseTop:s,expandLeft:l,expandTop:c,applyColumnWidth:p,applyIndentModeColumnWidth:f,fetchPages:d}),[a,s,l,c,p,f,d])}const gW=(e,t,n)=>(r,i)=>{if("P"===r)return ez;const o=t[n+i];return e[o]},vW=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach(e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)})};return n(e),t},yW=d({}),bW=()=>i(yW),xW=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:n}}}}=XF(),{qPivotDataPages:r}=VF();return y(()=>{const i=vW(r[0]?.qLeft??[]),o=vW(r[0]?.qTop??[]);return{visibleLeftDimensionInfo:i.map(gW(n,t,0)),visibleTopDimensionInfo:o.map(gW(n,t,e))}},[n,t,e,r])})(),{headersData:r,measureData:i,topDimensionData:o,leftDimensionData:a,attrExprInfoIndexes:s,nextPageHandler:l}=dW(t,n),u=mW({nextPageHandler:l}),c=y(()=>({gridSectionsData:{headersData:r,topDimensionData:o,leftDimensionData:a,measureData:i},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n},attrExprInfoIndexes:s,dataModel:u}),[t,n,r,i,o,a,s,u]);return Yn.jsx(yW.Provider,{value:c,children:e})},SW=20,wW=18,CW=.75,EW=e=>-1!==e&&e?.representation?.type===tN.Image,IW=({isLeftColumn:e,layoutService:t,representation:n})=>Boolean(e)&&t.isIndentModeEnabled&&n.type===tN.Image,DW=e=>void 0===e?LN:e,PW=(e,t)=>{if(void 0!==e&&!Number.isNaN(+e)){const n=+e;return n>=0?n:t}return t},MW=e=>PW(e,JA.PixelsDefault),RW=(e,t)=>PW(e,JA.PercentageDefault)*t/100,kW=(e,t,n)=>{switch(t?.type){case ZA.Pixels:return MW(t.pixels);case ZA.Percentage:return RW(t.percentage,e);case ZA.FitToContent:case ZA.Auto:default:return n}},LW=({headers:e,layoutService:t,effectivePropertiesService:n,estimateWidthForDimensionValue:r,shouldConsiderCombinatedLength:i,measureTextForHeader:o,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===tz)return e+0;const v=IW({isLeftColumn:h,layoutService:t,representation:m?.representation||{type:tN.Text}})?g.width+8+4:r(f),y=!n.qAlwaysFullyExpanded&&p<u-1?21:0;let b=0;if(i&&o&&a){b=o("- ")+a}return Math.max(e,24*l+wW+y+v+b)},0),AW=(e,t,n)=>e.reduce((e,r)=>{const i=(n?0:1)*wW;return Math.max(e,i+t(r.qFallbackTitle??""))},0),OW=(e,t,n,r)=>{const i=100*e/t,o=r*CW*(i/100),a=i/100*+n;return Math.min(a,o)},TW=(e,t,n,r)=>r*(+n/100)*(100*e/t/100),qW=(e,t)=>e.some(e=>e>=t*CW),_W=({layoutService:e,effectivePropertiesService:t,headersData:n,columnWidths:r,tableWidth:i,widthOverride:o,measureTextForHeader:a,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:u})=>{let c;const d=i*CW,p=n.data[n.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,r.at(-1)),h=Math.min(d,LW({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,AW(e.visibleMeasureInfo,a));let g;const v=p.findIndex(e=>e.id===tz),y=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:i}=e.indentModeColumnWidth;return i===ZA.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+wW+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:n});if(e.hasPseudoDimOnLeft)if(0===v){const e=Math.max(f,h,m);c=[Math.max(y,e-f),f]}else{const n=Math.min(d,AW(e.visibleMeasureInfo,l,!0));g=Math.min(d,LW({headers:p.slice(0,v),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:n}));const r=Math.max(f,h,g);c=[Math.max(y,r-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;o&&o<=d&&(x.type=ZA.Pixels,x.pixels=o);return[ZA.Pixels,ZA.Percentage].includes(x.type)||qW(c,i)?((e,t,n,r)=>{let i=e[0],o=e[1];const a=e.reduce((e,t)=>e+t,0),{type:s,pixels:l,percentage:u}=t,c=PW(l,JA.PixelsDefault),d=PW(u,JA.PercentageDefault),p=qW(e,n);let f;s===ZA.Auto&&p&&(i>o?i-=o:o-=i),s===ZA.Pixels&&c&&(i=OW(e[0],a,c,n),o=OW(e[1],a,c,n)),s===ZA.Percentage&&d&&(i=TW(e[0],a,d,n),o=TW(e[1],a,d,n)),o<=r&&(f=i-5,f>0&&(i-=f,o+=f)),f=o-r,f>0&&(i+=f,o-=f);const h=[i,o],m=h.reduce((e,t)=>e+t,0);return{leftGridColumnWidths:h,leftGridWidth:m,leftGridFullWidth:m}})(c,x,i,f):{leftGridWidth:b,leftGridColumnWidths:c,leftGridFullWidth:b}};function NW({tableWidth:e}){const t=e*CW,{styleService:n,layoutService:r,effectivePropertiesService:i}=XF(),{translator:o}=UF(),{gridSectionsData:{headersData:a}}=bW(),{measureText:s}=pj(n.header,{allowLineBreaks:!1}),{estimateWidth:l,measureText:u}=pj({...n.dimensionValues,fontWeight:DW(n.dimensionValues.fontWeight)}),{measureText:c}=pj({...n.dimensionValues,...n.measureLabels}),d=m((n,d)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=r,v=(t=0)=>h.reduce((n,{qFallbackTitle:r,columnWidth:i})=>{const o=c(r)+wW,a=Math.max(o,t);return Math.max(n,m?a:kW(e,i,a))},0),y=e=>a.data.reduce((t,n)=>{const r=n.at(e);if(!r||Array.isArray(r))return t;if(r.id===tz)return t;const i=(e=>{const{label:t,isLocked:n}=e,r=n?SW:0;return wW+s(t)+SW+r})(r);return Math.max(i,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((o,s)=>{let u;if(m&&1!==a.size.x||!n||void 0===d||d!==o.colIdx){let t,n;if(o.columnWidthLocation===lN.Pivot?t=m?void 0:f:o.columnWidthLocation===lN.Dimension&&({columnWidth:t}=o),o.isLeftDimension)if(o.id===tz)n=v();else{const e=y(s),t=((e,t)=>{const{qApprMaxGlyphCount:n,isLeftDimension:o,dimensionInfoIndex:a}=e,s=r.getDimensionInfo(a);if(EW(s))return JA.PixelsDefault;const u=!i.qAlwaysFullyExpanded&&o&&t<p-1?21:0;return wW+l(n)+u})(o,s);n=Math.max(e,t),m&&!g&&s+1===p&&o.columnWidthLocation===lN.Dimension&&a.size.x>1&&(n=e)}else n=y(s),o.columnWidthLocation===lN.Measures&&(n=v(n));m&&1===a.size.x&&(t=r.indentModeColumnWidth),u=m&&!g&&a.size.x>1?n:kW(e,t,n)}else u=m?Math.min(t,n):n;return b+=u,u});return m&&a.size.x>1?_W({layoutService:r,effectivePropertiesService:i,headersData:a,columnWidths:S,tableWidth:e,widthOverride:n,measureTextForHeader:s,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:u,translator:o}):{leftGridWidth:Math.min(t,b),leftGridColumnWidths:S,leftGridFullWidth:b}},[e,a,r,t,s,c,l,u,o,i]),[p,f]=g(d);vj(()=>{f(d())},[d]);const h=m((e,t)=>{f(d(e,t))},[d]);return{...p,overrideLeftGridWidth:h}}function jW({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:n}){const{styleService:r,layoutService:i}=XF(),{visibleDimensionsInfo:{visibleTopDimensionInfo:o}}=bW(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:s}},size:l,visibleMeasureInfo:u}=i,{estimateWidth:c,measureText:d}=pj(r.measureValues,{allowLineBreaks:!1}),{estimateWidth:p}=pj({...r.dimensionValues,fontWeight:DW(r.dimensionValues.fontWeight)},{allowLineBreaks:!1}),f=e-n-1,h=o.at(-1),g=h===ez,v=s.length-a>o.length?21:0,b=y(()=>{const e=g?u:[h],t=l.x/e.length,n=[],r=[];let i=f;const o=(e,r)=>{n[e]=Math.min(JA.PixelsMax,Math.max(JA.PixelsMin,r)),i-=n[e]*t};if(e.forEach((e,t)=>{if(e?.columnWidth){const{columnWidth:{type:n,pixels:i,percentage:a},qApprMaxGlyphCount:s,qFallbackTitle:l}=e;switch(n){case ZA.Pixels:o(t,MW(i));break;case ZA.Percentage:o(t,RW(a,f));break;case ZA.FitToContent:o(t,((e,t,n)=>n?JA.PixelsDefault:wW+(g?Math.max(c(e),d(t)):Math.max(Math.max(...u.map(e=>c(e.qApprMaxGlyphCount))),p(e)+v)))(s,l??"",EW(e)));break;case ZA.Auto:default:r.push(t)}}else r.push(t)}),r.length){const e=r.length*t,o=i/e;r.forEach(e=>{n[e]=Math.max(JA.AutoMinPivot,o)})}return n},[g,u,h,l.x,f,c,d,p,v]),x=y(()=>{if(g){return u.reduce((e,t,n)=>e+b[n],0)/u.length}return b[0]},[g,b,u]),S=parseFloat((t/i.size.x).toFixed(12)),w=m(e=>(g&&void 0!==e?b[i.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S,[g,b,i,x,S]),C=l.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,f),getRightGridColumnWidth:w}}const FW=`scrollable-container--${cN.TopGrid}`,zW=`scrollable-container--${cN.LeftGrid}`,WW=`scrollable-container--${cN.DataGrid}`,$W=e=>{if(!(e&&e instanceof HTMLDivElement))return{width:0,height:0};const t=e.offsetWidth-e.clientWidth,n=e.offsetHeight-e.clientHeight;return{width:t>=2?t:0,height:n>=2?n:0}},HW=(e,t)=>e>t?dN.Forward:e<t?dN.Backward:dN.None,VW=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:r,updateViewService:i,trackScrollDirection:o,interactions:a})=>{const{direction:s}=VF();f(()=>{const{headerGridWrapperElement:l,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=r(),p=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,o(e),i?.(e)},f=e=>{const t=e.target;l.scrollTop=t.scrollTop,o(e),i?.(e)},h=r=>{const a=r.target,l=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:i}=e,o=n-r;if("rtl"===t){if(i>o)return o;if(i<0)return Math.abs(i)}return i})(a,s);n.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)}),o(r),i?.(r)};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)}},[o,i,a,e,t,n,r,s])},BW=Vb(!1),GW=(e,t)=>Math.abs(e.width-t.width)>2||Math.abs(e.height-t.height)>2,UW=({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:n})=>{const{top:r,left:i,data:o,resetHorizontalScrollbarHeight:a}=((e,t,n)=>{const[r,i]=g({width:0,height:0}),[o,a]=g({width:0,height:0}),[s,l]=g({width:0,height:0}),[c,d]=g(!1),p=nx(BW),h=u(p),v=u(p);h.current=p;const y=m(()=>{d(e=>!e&&e);const r=$W(e.current),o=$W(t.current),s=$W(n.current);i(e=>GW(e,r)?r:e),a(e=>GW(e,o)?o:e),l(e=>GW(e,s)?s:e)},[e,t,n]);f(()=>{const r=new ResizeObserver(()=>{h.current||y()}),i=[e.current,t.current,n.current].filter(e=>Boolean(e));return i.forEach(e=>{r.observe(e)}),()=>{r.disconnect()}},[y,e,t,n]),f(()=>{const e=v.current;if(v.current=p,e&&!p){const e=setTimeout(y,0);return()=>{clearTimeout(e)}}},[p,y]);const b=m(()=>{d(!0)},[]);return{top:r,left:c?{...o,height:0}:o,data:c?{...s,height:0}:s,resetHorizontalScrollbarHeight:b}})(e,t,n);return{scrollbarsDimensions:{verticalScrollbarWidth:Math.max(r.width,o.width),horizontalScrollbarHeight:Math.max(i.height,o.height)},resetHorizontalScrollbarHeight:a}},YW=()=>{const{interactions:e}=UF(),t=u(null),n=u(null),r=u(null),i=u(null),o=u([]),a=u([]),s=u(null),{scrollbarsDimensions:{verticalScrollbarWidth:l,horizontalScrollbarHeight:c},resetHorizontalScrollbarHeight:d}=UW({topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:i});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:n,dataGridWrapperRef:r},gridRefs:{topGridRef:i,leftGridRef:o,dataGridRef:a}})=>{const{pageInfo:s}=VF(),{downloadService:l,viewService:u,layoutService:c}=XF(),d=m(()=>{const i={left:0,top:0};e.current?.scrollTo(i),t.current?.scrollTo(i),n.current?.scrollTo(i),r.current?.scrollTo(i)},[e,t,n,r]);v(()=>{d()},[s.page,d]),v(()=>{c.triggerdByExpandOrCollapse||d()},[c,d]),v(()=>{if(c.triggerdByExpandOrCollapse){const e=r.current?.scrollLeft??0,t=r.current?.scrollTop??0;o.current?.forEach(e=>{e?.scrollTo(t)}),i.current?.forEach(t=>{t?.scrollTo(e)}),a.current?.scrollTo({scrollTop:t,scrollLeft:e})}},[c,r,a,o,i]),v(()=>{(l.isDownloadedAsPDForImage||c.isSnapshot)&&r.current&&n.current&&t.current&&(r.current.scrollTop=u.scrollTop,r.current.scrollLeft=u.scrollLeft,n.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)},[u,l,c,r,n,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:i},gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s}});const{trackScrollDirection:p,scrollDirectionRefs:{verticalScrollDirection:h,horizontalScrollDirection:g}}=(()=>{const e=u(dN.None),t=u(dN.None),n=u({prevScrollTop:0,prevScrollLeft:0}),r=m(r=>{if(r instanceof WheelEvent&&(e.current=HW(r.deltaY,0),t.current=HW(r.deltaX,0)),r instanceof Event&&!(r instanceof WheelEvent)){const i=r.target;e.current=HW(i.scrollTop,n.current.prevScrollTop),n.current.prevScrollTop=i.scrollTop,t.current=HW(i.scrollLeft,n.current.prevScrollLeft),n.current.prevScrollLeft=i.scrollLeft}},[e,t,n]);return{trackScrollDirection:r,scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=XF();return m(t=>{const n=t.target,r=t.currentTarget,i=n.dataset.key;i===zW&&(e.leftGridScrollLeft=r.scrollLeft),i===WW&&(e.scrollLeft=r.scrollLeft),i===FW&&(e.topGridScrollTop=r.scrollTop),i!==zW&&i!==WW||(e.scrollTop=r.scrollTop)},[e])})(),b={gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s},getWrapperElements:m(()=>({headerGridWrapperElement:t.current,topGridWrapperElement:n.current,leftGridWrapperElement:r.current,dataGridWrapperElement:i.current}),[t,n,r,i]),updateViewService:y,trackScrollDirection:p,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:r,updateViewService:i,trackScrollDirection:o,interactions:a})=>{f(()=>{const{headerGridWrapperElement:i,topGridWrapperElement:s,leftGridWrapperElement:l,dataGridWrapperElement:u}=r(),c=e=>{e.ctrlKey||(e.preventDefault(),i.scrollLeft+=e.deltaX,i.scrollTop+=e.deltaY,l.scrollLeft=i.scrollLeft,s.scrollTop=i.scrollTop,o(e))},d=e=>{e.ctrlKey||(e.preventDefault(),l.scrollTop+=e.deltaY,t.current?.forEach(e=>{e?.scrollTo(l.scrollTop)}),i.scrollLeft+=e.deltaX,l.scrollLeft=i.scrollLeft,u.scrollTop=l.scrollTop,n.current?.scrollTo({scrollTop:l.scrollTop}),o(e))},p=t=>{t.ctrlKey||(t.preventDefault(),s.scrollLeft+=t.deltaX,e.current?.forEach(e=>{e?.scrollTo(s.scrollLeft)}),i.scrollTop+=t.deltaY,s.scrollTop=i.scrollTop,u.scrollLeft=s.scrollLeft,n.current?.scrollTo({scrollLeft:s.scrollLeft}),o(t))},f=r=>{r.ctrlKey||(r.preventDefault(),u.scrollLeft+=r.deltaX,u.scrollTop+=r.deltaY,n.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)}),o(r))};return i.addEventListener("wheel",c),l.addEventListener("wheel",d),s.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout(()=>{i.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)},0),()=>{i.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}},[o,i,a,e,t,n,r])})(b),VW(b),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:i},gridRefs:{topGridRef:o,leftGridRef:a,dataGridRef:s},scrollDirectionRefs:{verticalScrollDirection:h,horizontalScrollDirection:g},scrollbarsDimensions:{verticalScrollbarWidth:l,horizontalScrollbarHeight:c,resetHorizontalScrollbarHeight:d}}},KW=()=>{const{layoutService:e}=XF(),{rect:t,pageInfo:n}=VF();return y(()=>{let{height:r}=t;return e.hasLimitedData&&(r-=22),n.shouldShowPagination&&(r-=41),{...t,height:r}},[t,e,n.shouldShowPagination])},XW=({children:e,style:t})=>Yn.jsx("div",{"data-testid":"fullSize",style:t,children:e}),JW=({children:e,style:t})=>{const{direction:n}=VF();return Yn.jsx("div",{"data-section-id":"GRID",style:{direction:n,display:"grid",...t},children:e})},ZW=e=>e&&`scrollable-container--${e}`,QW=({children:e,style:t,origin:n},r)=>{const{interactions:i}=UF(),o=i.scroll?t:{overflow:"hidden"};return Yn.jsx("div",{"data-testid":"scrollable","data-key":ZW(n),style:o,ref:r,children:e})};var e$=o.forwardRef(QW);const t$=({children:e,style:t})=>{const{direction:n}=VF();return Yn.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===n?"right":"left"]:0,...t},children:e})};var n$=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function r$(e,t){return e===t||!(!n$(e)||!n$(t))}function i$(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r$(e[n],t[n]))return!1;return!0}function o$(e,t){var n;void 0===t&&(t=i$);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)||(r=e.apply(this,a),o=!0,n=this,i=a),r}}var a$="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function s$(e){cancelAnimationFrame(e.id)}function l$(e,t){var n=a$();var r={id:requestAnimationFrame(function i(){a$()-n>=t?e.call(null):r.id=requestAnimationFrame(i)})};return r}var u$=-1;function c$(e){if(void 0===e&&(e=!1),-1===u$||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),u$=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return u$}var d$=null;function p$(e){if(void 0===e&&(e=!1),null===d$||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?d$="positive-descending":(t.scrollLeft=1,d$=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),d$}return d$}var f$=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function h$(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,o=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=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 r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,ts(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:ts(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=o$(function(e,t,n,i,o,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:i,visibleColumnStartIndex:o,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=o$(function(e,t,n,i,o){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:i,scrollUpdateWasRequested:o})}),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var i,a=r.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,c=r._getItemStyleCache(g&&s,g&&l,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))i=c[f];else{var h=n(r.props,t,r._instanceProps),m="rtl"===l;c[f]=i={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:o(r.props,t,r._instanceProps)}}return i},r._getItemStyleCache=void 0,r._getItemStyleCache=o$(function(e,t,n){return{}}),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.clientWidth,o=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState(function(e){if(e.scrollLeft===o&&e.scrollTop===a)return null;var t=r.props.direction,u=o;if("rtl"===t)switch(p$()){case"negative":u=-o;break;case"positive-descending":u=l-i-o}u=Math.max(0,Math.min(u,l-i));var c=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<o?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&s$(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=l$(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}Ba(t,e),t.getDerivedStateFromProps=function(e,t){return m$(e,t),v(e),null};var y=t.prototype;return y.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},y.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,i=e.rowIndex,o=this.props,c=o.columnCount,d=o.height,p=o.rowCount,f=o.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=c$();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==i&&(i=Math.max(0,Math.min(i,p-1)));var y=a(this.props,this._instanceProps),b=s(this.props,this._instanceProps)>f?v:0,x=y>d?v:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==i?u(this.props,i,n,g,this._instanceProps,b):g})},y.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},y.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("rtl"===e)switch(p$()){case"negative":i.scrollLeft=-n;break;case"positive-ascending":i.scrollLeft=n;break;default:var o=i.clientWidth,a=i.scrollWidth;i.scrollLeft=a-o-n}else i.scrollLeft=Math.max(0,n);i.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&s$(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,i=e.direction,o=e.height,l=e.innerRef,u=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?f$: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(r>0&&v)for(var R=D;R<=P;R++)for(var k=C;k<=E;k++)M.push(c(t,{columnIndex:k,data:p,isScrolling:b?S:void 0,key:h({columnIndex:k,data:p,rowIndex:R}),rowIndex:R,style:this._getItemStyle(R,k)}));var L=a(this.props,this._instanceProps),A=s(this.props,this._instanceProps);return c(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Ae({position:"relative",height:o,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},y)},c(u||d||"div",{children:M,ref:l,style:{height:L,pointerEvents:S?"none":void 0,width:A}}))},y._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,i=e.rowCount;if("function"==typeof n&&t>0&&i>0){var o=this._getHorizontalRangeToRender(),a=o[0],s=o[1],l=o[2],u=o[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 r){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,n=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=n||o||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(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,n=e.overscanCount,r=e.overscanRowCount,i=e.overscanRowsCount,o=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=r||i||n||1;if(0===t||0===o)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(o-1,p+g)),d,p]},t}(C),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var m$=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},g$=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,i=t.estimatedRowHeight,o=t.lastMeasuredRowIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},v$=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,i=t.estimatedColumnWidth,o=t.lastMeasuredColumnIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},y$=function(e,t,n,r){var i,o,a;if("column"===e?(i=r.columnMetadataMap,o=t.columnWidth,a=r.lastMeasuredColumnIndex):(i=r.rowMetadataMap,o=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=i[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=o(u);i[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return i[n]},b$=function(e,t,n,r){var i,o;return"column"===e?(i=n.columnMetadataMap,o=n.lastMeasuredColumnIndex):(i=n.rowMetadataMap,o=n.lastMeasuredRowIndex),(o>0?i[o].offset:0)>=r?x$(e,t,n,o,0,r):S$(e,t,n,Math.max(0,o),r)},x$=function(e,t,n,r,i,o){for(;i<=r;){var a=i+Math.floor((r-i)/2),s=y$(e,t,a,n).offset;if(s===o)return a;s<o?i=a+1:s>o&&(r=a-1)}return i>0?i-1:0},S$=function(e,t,n,r,i){for(var o="column"===e?t.columnCount:t.rowCount,a=1;r<o&&y$(e,t,r,n).offset<i;)r+=a,a*=2;return x$(e,t,n,Math.min(r,o-1),Math.floor(r/2),i)},w$=function(e,t,n,r,i,o,a){var s="column"===e?t.width:t.height,l=y$(e,t,n,o),u="column"===e?v$(t,o):g$(t,o),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=i>=d-s&&i<=c+s?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return i>=d&&i<=c?i:d>c||i<d?d:c}},C$=h$({getColumnOffset:function(e,t,n){return y$("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return b$("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var i=e.columnCount,o=e.width,a=y$("column",e,t,r),s=n+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=y$("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:g$,getEstimatedTotalWidth:v$,getOffsetForColumnAndAlignment:function(e,t,n,r,i,o){return w$("column",e,t,n,r,i,o)},getOffsetForRowAndAlignment:function(e,t,n,r,i,o){return w$("row",e,t,n,r,i,o)},getRowOffset:function(e,t,n){return y$("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return b$("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var i=e.rowCount,o=e.height,a=y$("row",e,t,r),s=n+o,l=a.offset+a.size,u=t;u<i-1&&l<s;)u++,l+=y$("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,i=e.rowIndex,o=e.shouldForceUpdate,a=void 0===o||o;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof i&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,i-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),E$=function(e,t){return e};function I$(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,ts(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:ts(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=o$(function(e,t,n,i){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:i})}),r._callOnScroll=void 0,r._callOnScroll=o$(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,o=r.props,a=o.direction,s=o.itemSize,l=o.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=i(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[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},r._getItemStyleCache=void 0,r._getItemStyleCache=o$(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,i=t.scrollLeft,o=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===i)return null;var t=r.props.direction,a=i;if("rtl"===t)switch(p$()){case"negative":a=-i;break;case"positive-descending":a=o-n-i}return a=Math.max(0,Math.min(a,o-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,i=t.scrollHeight,o=t.scrollTop;r.setState(function(e){if(e.scrollOffset===o)return null;var t=Math.max(0,Math.min(o,i-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&s$(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=l$(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}Ba(t,e),t.getDerivedStateFromProps=function(e,t){return D$(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 n=this.props,r=n.itemCount,i=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===i?l.scrollWidth>l.clientWidth?c$():0:l.scrollHeight>l.clientHeight?c$():0}this.scrollTo(o(this.props,e,t,a,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var i=this._outerRef;"horizontal"===t||"horizontal"===r?i.scrollLeft=n:i.scrollTop=n}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,i=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(p$()){case"negative":o.scrollLeft=-i;break;case"positive-ascending":o.scrollLeft=i;break;default:var a=o.clientWidth,s=o.scrollWidth;o.scrollLeft=s-a-i}else o.scrollLeft=i;else o.scrollTop=i}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&s$(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,o=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?E$: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(u>0)for(var P=E;P<=I;P++)D.push(c(t,{data:d,key:f(P,d),index:P,isScrolling:y?x:void 0,style:this._getItemStyle(P)}));var M=r(this.props,this._instanceProps);return c(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:Ae({position:"relative",height:o,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},c(s||l||"div",{children:D,ref:a,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],n=e[1],r=e[2],i=e[3];this._callOnItemsRendered(t,n,r,i)}if("function"==typeof this.props.onScroll){var o=this.state,a=o.scrollDirection,s=o.scrollOffset,l=o.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,i=r.isScrolling,o=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=i&&"backward"!==o?1:Math.max(1,n),p=i&&"forward"!==o?1:Math.max(1,n);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 D$=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},P$=function(e,t,n){var r=e.itemSize,i=n.itemMetadataMap,o=n.lastMeasuredIndex;if(t>o){var a=0;if(o>=0){var s=i[o];a=s.offset+s.size}for(var l=o+1;l<=t;l++){var u=r(l);i[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return i[t]},M$=function(e,t,n,r,i){for(;r<=n;){var o=r+Math.floor((n-r)/2),a=P$(e,o,t).offset;if(a===i)return o;a<i?r=o+1:a>i&&(n=o-1)}return r>0?r-1:0},R$=function(e,t,n,r){for(var i=e.itemCount,o=1;n<i&&P$(e,n,t).offset<r;)n+=o,o*=2;return M$(e,t,Math.min(n,i-1),Math.floor(n/2),r)},k$=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,i=t.estimatedItemSize,o=t.lastMeasuredIndex,a=0;if(o>=n&&(o=n-1),o>=0){var s=r[o];a=s.offset+s.size}return a+(n-o-1)*i},L$=I$({getItemOffset:function(e,t,n){return P$(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:k$,getOffsetForIndexAndAlignment:function(e,t,n,r,i,o){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=P$(e,t,i),p=k$(e,i),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+o);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,i=t.lastMeasuredIndex;return(i>0?r[i].offset:0)>=n?M$(e,t,i,0,n):R$(e,t,Math.max(0,i),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var i=e.direction,o=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===i||"horizontal"===s?l:o,c=P$(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=P$(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function A$(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var O$=["style"],T$=["style"];function q$(e,t){var n=e.style,r=Oe(e,O$),i=t.style,o=Oe(t,T$);return!A$(n,i)&&!A$(r,o)}const _$=10,N$=(e,t)=>e.current===dN.Backward?t:0,j$=(e,t,n,r)=>{for(let i=n;i<n+r;i++){const n=e.at(i);if(void 0===n||void 0===n.at(t))return!0}return!1},F$=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,z$=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:i,endLeft:o})=>{const a=[],s=e.page*e.rowsPerPage;for(let e=i;e<o;e++)if(j$(t,e,n,r)){const t=a[a.length-1],i={qLeft:e,qTop:n+s,qWidth:1,qHeight:r};void 0!==t&&F$(t,i)?t.qWidth+=i.qWidth:a.push(i)}return a},W$=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:i,minBufferEndLeft:o,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=r,u=n.current===dN.Backward?Math.max(0,i-25):o,c=Math.min(u+25,a);return z$({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},$$=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:i})=>{const{startLeft:o,endLeft:a,pageTop:s,qHeight:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=t,s=e.size.x,l=N$(n,_$),u=Math.max(r-l,0);return{startLeft:u,endLeft:u+Math.min(o+_$,s-u),pageTop:i,qHeight:a}})(r,i,n),u=z$({pageInfo:e,measureData:t,startLeft:o,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,...W$({pageInfo:e,measureData:t,scrollDirection:n,viewService:i,minBufferStartLeft:o,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},H$=(e,t,n,r)=>{const i=e[n];if(void 0===i)return!0;for(let e=t;e<t+r;e++){if(void 0===i[e])return!0}return!1},V$=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,B$=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:i,pageInfo:o})=>{const a=[],s=o.page*o.rowsPerPage;for(let o=e;o<t;o++)if(H$(i,n,o,r)){const e=a.at(-1),t={qLeft:n,qTop:o+s,qWidth:r,qHeight:1};void 0!==e&&V$(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},G$=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:i,endTop:o,qLeft:a,qWidth:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=t,s=N$(n,_$),l=Math.max(i-s,0);return{startTop:l,endTop:l+Math.min(a+_$,e.rowsOnCurrentPage-l),qLeft:r,qWidth:o}})(e,r,n),l=B$({startTop:i,endTop:o,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const r=n.current===dN.Backward?Math.max(0,i-25):o,u=Math.min(r+25,e.rowsOnCurrentPage),c=B$({startTop:r,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},U$=(e,t,n,r,i,o,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=i;let p=[],f=[];o.current!==dN.None&&(p=G$({pageInfo:r,measureData:n,scrollDirection:o,viewService:i})),a.current!==dN.None&&(f=$$({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:i})),o.current===dN.None&&a.current===dN.None&&(p=B$({measureData:n,pageInfo:r,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},Y$=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,o=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s;var u=Date.now()-o,c=function(){o=Date.now(),r=0,e.apply(t,n)};r||(u>=i?c():r=setTimeout(c,i-u))}}(U$,100),K$=wq(U$,75),X$=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),J$=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:i,isLeftColumn:o,showTotalCellDivider:a})=>{const{direction:s}=VF(),{styleService:{grid:{border:l,divider:u}}}=XF();return Yn.jsx("div",{style:{...e,...jN,...$N(n,r,l,s,i),...VN({bottomDivider:a&&o,rightDivider:a&&!o,borderColor:u})},"data-testid":"empty-cell","data-index":t})},Z$=({children:e,verticalAlign:t,width:n,right:r,isLeftColumn:i})=>{const{layoutService:{isIndentModeEnabled:o}}=XF(),a=i&&o;return Yn.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,...!a&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},Q$=e=>{const{type:t,imageSize:n}=e;return t!==tN.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},eH=e=>"number"==typeof e&&!Number.isNaN(+e),tH=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,nH=r((e,t)=>Yn.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:Yn.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),rH=r((e,t)=>Yn.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:Yn.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"})})),iH=r((e,t)=>Yn.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:[Yn.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"}),Yn.jsx("use",{fillRule:"evenodd"})]})),oH=r((e,t)=>Yn.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:Yn.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"})})),aH=r((e,t)=>Yn.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:Yn.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"})})),sH=r((e,t)=>Yn.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:Yn.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"})})),lH=r((e,t)=>Yn.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:Yn.jsx("path",{d:"M2 7.5h12v1H2z"})})),uH=r((e,t)=>Yn.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:Yn.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"})})),cH=r((e,t)=>Yn.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:Yn.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"})})),dH=r((e,t)=>Yn.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:Yn.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"})})),pH=r((e,t)=>Yn.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:Yn.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"})})),fH=r((e,t)=>Yn.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:Yn.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),hH=r((e,t)=>Yn.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:Yn.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"})})),mH=r((e,t)=>Yn.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:Yn.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"})})),gH=r((e,t)=>Yn.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:Yn.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"})})),vH={m:fH,"ï":dH,R:r((e,t)=>Yn.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:Yn.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:hH,T:mH,U:gH,P:cH,Q:sH,"è":r((e,t)=>Yn.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:Yn.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"})})),"¢":oH,"©":iH,"23F4":aH,2013:pH,"&":uH,add:nH,"minus-2":lH,dot:rH},yH=({size:e,iconKey:t,color:n,pvStyle:r})=>{const i=t&&vH[t];return i&&Yn.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:Yn.jsx(i,{style:{height:e}})})},bH=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),xH=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},SH=(e,t,n)=>{const r={previousColor:(i=e.localPaletteColors)[(o=t)-(o>0?1:0)],nextColor:i[o+(o<i.length-1?1:0)]};var i,o;const a=((e,t)=>{const n=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,n,r,i)=>{const{upperLimit:o,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=r===o.value?1:(r-a.value)/(o.value-a.value);return a.gradient&&o.gradient?r-a.value<o.value-r?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:o.gradient?{color:l.color,t:u/2}:{color:i.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return ZO(e.localPaletteColors[t].color??"").blend(ZO(s.color??""),s.t)},wH=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort((e,t)=>e.value-t.value),e.limits=n.map(e=>({...e,value:bH(t,e.value)}))),e})({...e},t),i=r.paletteColors||r.localPaletteColors;return i&&(r.localPaletteColors=i.concat().map((e,t)=>({color:xH(r,t,n)}))),r},CH=(e,t,n,r)=>{const i=wH(e,n,r),{localPaletteColors:o}=i;if(t<=0)return o[0].color;if(t>=1)return o[o.length-1].color;const a=((e,t)=>{let n="",r=0;const{limits:i,localPaletteColors:o}=e;for(let a=0;a<o.length;a++){const o=i&&i[a]?i[a].value:1;if(t>=r&&t<o){n=SH(e,a,t);break}r=o}return n})(i,t);return a},EH=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!eH(e));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!eH(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},IH=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=EH(e,t),i=Math.abs(t);return{min:n??t-i,max:r??t+i}})(n,t),i=((e,t,n)=>{const{limits:r,paletteColors:i,localPaletteColors:o}=e.segments;if(!r||!eH(t))return 0;let a=n&&eH(n)?Math.min(n,t):0;const s=r.sort((e,t)=>e.value-t.value),l=i||o;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,r.min);return{limitRange:r,limitPaletteColorIndex:i}},DH=e=>"flex-start"===e?"flex-end":"flex-start",PH=(e,t,n,r)=>{const i=e.indicatorConditionalColoring;if(!i)return;const o=IH(i,t),a=((e,t,n,r)=>{const{segments:i}=e;if(!i||!n)return;const{limits:o}=i;if(!o?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(o,n.limitPaletteColorIndex))return xH(i,n.limitPaletteColorIndex,r);const a=bH(n.limitRange,t);return CH(i,a,n.limitRange,r)})(i,t,o,r),s=i.segments.paletteColors[o?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===n&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},MH=({representation:e,cellValue:t,textStyle:n})=>{const{styleService:r}=XF(),{theme:i}=UF(),{direction:o}=VF(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=PH(e,t,o,i),{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m}=r.measureValues,g={fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m},v=parseInt(d||RN,10),{iconKey:y,color:b,position:x}=c||{},S={display:"flex",paddingTop:2};return l?Yn.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:n?.overflow,color:u?b:n?.color},children:["left"===x&&yH({size:v,iconKey:y,color:b,pvStyle:S}),Yn.jsx("span",{style:{paddingTop:4,overflow:n?.overflow,textOverflow:n?.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===x&&yH({size:v,iconKey:y,color:b,pvStyle:S})]}):(S.paddingTop=5,yH({size:v,iconKey:y,color:b,pvStyle:S}))},RH=e=>!!e.target?.getAttribute("class")?.includes(XA),kH=(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:n}=t.payload,r=Math.min(n,e.activeSelection.startIndex),i=Math.max(n,e.activeSelection.endIndex);if(r===e.activeSelection.startIndex&&i===e.activeSelection.endIndex)return e;const o={...e.activeSelection,startIndex:r,endIndex:i};return o.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:n,endIndex:r,clientSelectedCells:i}=e,o=new Map(i);for(let e=n;e<=r;e++){const n=t(e);"N"===n?.ref.qType&&o.set(n.ref.qElemNo,n)}return o})(o),{...e,activeSelection:o}}default:return e}},LH=e=>null!==e.target?.closest("[data-prevent-selection]"),AH=e=>"A"===e.target?.tagName,OH=({startIndex:e,getCellFromIndex:t,cell:n})=>({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(n.ref.qElemNo,n)},selectedField:{selectionCellType:n.selectionCellType,index:"L"===n.selectionCellType?n.x:n.y}}});const TH=d({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),qH=()=>i(TH),_H=({children:e,selections:t})=>{const n=function(e){const{updatePageInfo:t}=VF(),n=e.isActive(),[r,i]=p(kH,{engineSelectedCells:null,selectedField:null,activeSelection:null});f(()=>{const n=()=>{i({type:"clearSelections"})},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}},[e,t]);const o=m(async()=>{if(!r.activeSelection)return;var t,n;1===r.activeSelection.clientSelectedCells.size&&(t=r.engineSelectedCells,(n=r.activeSelection).clientSelectedCells.forEach((e,r)=>{t?.has(r)&&(n.clientSelectedCells.delete(r),t.delete(r))}));const o=new Map([...r.engineSelectedCells??new Map,...r.activeSelection.clientSelectedCells]);try{i({type:"mouseup",payload:{engineSelectedCells:o}}),await e.select({method:"selectPivotCells",params:[QF,Array.from(o,([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x}))]})}catch(e){console.error(e),i({type:"mouseup",payload:{engineSelectedCells:r.engineSelectedCells}})}},[r,e]);f(()=>{if(r.activeSelection)return document.addEventListener("mouseup",o),()=>{document.removeEventListener("mouseup",o)}},[o,r.activeSelection]);const a=m((e,t)=>n=>{const r=t(e);RH(n)||LH(n)||AH(n)||!(e=>1===e.buttons)(n)||!r||i(OH({startIndex:e,getCellFromIndex:t,cell:r}))},[]),s=m(t=>async()=>{r.activeSelection&&(e.isActive()||await e.begin([QF]),i({type:"mouseover",payload:{index:t}}))},[r.activeSelection,e]),l=m((e,t)=>n=>{if("touch"!==n.pointerType)return;const r=t(e);RH(n)||LH(n)||AH(n)||!r||(i(OH({startIndex:e,getCellFromIndex:t,cell:r})),o())},[o]),u=m(e=>!(!r.engineSelectedCells?.size&&!r.activeSelection?.clientSelectedCells.size||!r.selectedField||e.selectionCellType===r.selectedField.selectionCellType&&("L"===e.selectionCellType?r.selectedField.index===e.x:r.selectedField.index===e.y)),[r.activeSelection?.clientSelectedCells.size,r.engineSelectedCells?.size,r.selectedField]),c=m(e=>!u(e)&&(r.engineSelectedCells?.has(e.ref.qElemNo)||!!r.activeSelection?.clientSelectedCells.has(e.ref.qElemNo)),[u,r.activeSelection?.clientSelectedCells,r.engineSelectedCells]);return y(()=>({isSelected:c,isActive:n,isLocked:u,createMouseDownHandler:a,createMouseOverHandler:s,createPointerUpHandler:l}),[c,n,u,a,s,l])}(t);return Yn.jsx(TH.Provider,{value:n,children:e})},NH=e=>"fill"===e.representation.imageSize,jH=(e,t)=>{let n=e.isLeftColumn?"flex-start":"center";return e.isLeftColumn&&NH(e)&&t&&(n="center"),e.representation.type!==tN.Image||NH(e)?n:e.representation.resolvedImagePosition?.vertical};var FH=function(e){return e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration",e}(FH||{});const zH={brighter:.5,darker:.3,opacity:.03},WH=(e,{cell:t,styleService:n})=>{if(e===FH.Background||e===FH.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},$H=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return e.selectedColors.background;const i=WH(FH.Background,{cell:n,styleService:e});return!r||!i||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?WH(FH.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Aq(o=i,zH)} 0px 2px,\n ${o} 0px 4px\n ) border-box`;var o},HH=({cell:e,styleService:t,isCellSelected:n})=>n?t.selectedColors.color:WH(FH.Color,{cell:e,styleService:t}),VH=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,i=WH(FH.FontWeight,{cell:e,styleService:t});return void 0===i&&(r||n)?LN:i},BH=({cell:e,styleService:t})=>WH(FH.FontStyle,{cell:e,styleService:t}),GH=({cell:e,styleService:t})=>WH(FH.TextDecoration,{cell:e,styleService:t}),UH=e=>e?"pointer":"default",YH=({expandOrCollapse:e,cell:t})=>n=>{e?.(t.y,t.x),n.stopPropagation()},KH=(e,t)=>{if(!e.isLeftColumn||e.representation.type===tN.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},XH=({cell:e,isLeftColumn:t,isCellSelected:n})=>{const{styleService:r,layoutService:i}=XF(),{interactions:o}=UF(),{isActive:a}=qH(),{dataModel:s}=bW();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!o.active||a||!s,u=HH({cell:e,styleService:r,isCellSelected:n}),c=a?.4:1,d=e.ref.qCanExpand?tF:eF;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=IW({isLeftColumn:t,layoutService:i,representation:e.representation});return Yn.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,...KH(e,r),...f&&{alignSelf:jH(e)}},onClick:l?void 0:YH({cell:e,expandOrCollapse:p})})},JH=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},ZH=(e,t,n)=>{if("alwaysFit"===e&&t&&!n)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return n?"unset":"100%";default:return"100%"}},QH=(e,t)=>{if("alwaysFit"===e)switch(t?.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},eV=({representation:e,canExpandOrCollapse:t,leafCount:n,isLeftColumn:r,styleService:i,layoutService:o,isMeasureCell:a})=>{const{isIndentModeEnabled:s}=o,l=IW({isLeftColumn:r,layoutService:o,representation:e}),u=t?21:0,c=e.imageBox?.width??24;let d=`calc(100% - ${u}px)`,p=i.headerCellHeight;r&&l&&(d=c),(a||r)&&(p=i.contentCellHeight);let f=p;switch(r&&void 0!==n&&!s&&(f=p*Math.max(n,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}}},tV=e=>{if("alwaysFit"===e)return"contain"},nV=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),rV=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:n,isMeasureCell:r})=>({width:ZH(e,n,r),height:JH(e),objectFit:tV(e),objectPosition:QH(e,t),...n&&"alwaysFit"===e?{"max-width":"100%"}:{}}),iV=({representation:e,textStyle:t,isMeasureCell:n})=>{const{imageRef:r,onLoad:i}=(()=>{const{downloadService:e}=XF(),t=u(null),{promise:n,resolve:r}=y(()=>QN(),[]);return f(()=>(e.isDownloadedAsPDForImage&&(e.waitForPromise(n),t.current?.complete&&r()),()=>{r()}),[t,e,n,r]),{onLoad:m(()=>{r()},[r]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:o}}=XF(),{url:a,text:s,imageSize:l,resolvedImagePosition:c}=e,{overflow:d,...p}=t;return Yn.jsx("img",{src:a,alt:s,style:{...rV({imageSize:l,resolvedImagePosition:c,isImagesInIndentModeEnabled:o,isMeasureCell:n}),...p},onLoad:i,ref:r})},oV=({representation:e,textStyle:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:i=!1,imageContainerHorizontalAlignment:o,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=XF(),{resolvedImagePosition:u}=e;return Yn.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:u?.vertical,alignItems:o,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...eV({representation:e,canExpandOrCollapse:n,leafCount:r,styleService:s,layoutService:l,isLeftColumn:i,isMeasureCell:a})},children:Yn.jsx(iV,{representation:e,textStyle:t,isMeasureCell:!0})})},aV=(e,t,n)=>{if(e?.auto)return t;switch(e?.align){case"center":return"center";case"left":return"rtl"===n?"flex-end":"flex-start";case"right":return"rtl"===n?"flex-start":"flex-end";default:return t}},sV=(e,t)=>{let{textAlign:n}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:n}=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex)??{}),n?.auto||void 0===n?"left":n.align},lV={display:"flex",flexDirection:"row",alignItems:"center"},uV={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},cV=(e,t,n,r)=>t?{...uV,...e.nullValues}:n?{...lV,color:e.totalValues.color,background:r??e.totalValues.background}:{...lV,color:e.measureValues.color,background:r??e.measureValues.background},dV=(e,t,n,r,i)=>{const{fontFamily:o,fontSize:a}=e.measureValues,s={...FN,...!n&&zN(e.grid.lineClamp),...t&&{color:t},fontFamily:o,fontSize:a};if(i){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...s,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...s,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:l,fontStyle:u,textDecoration:c}=e.measureValues;return{...s,fontWeight:void 0===l?LN:l,fontStyle:u,textDecoration:c}},pV=({cell:e,representation:t,color:n,isTotalValueCell:r,cellHorizontalAlignment:i})=>{const{layoutService:o,styleService:a}=XF(),{isIndentModeEnabled:s}=o,l=e.isNull?o.getNullValueText():t.text,u=t.type===tN.Image,c=t.type===tN.Indicator,d=eH(tH(l)),p=dV(a,n,d,r,e.isNull);if(!s&&u&&!e.isNull||s&&u&&!e.isNull)return Yn.jsx(oV,{isMeasureCell:!0,textStyle:p,representation:t,imageContainerHorizontalAlignment:i});const f=tH(e.isNull?t.text:e.ref.qNum);return c&&eH(f)?Yn.jsx(MH,{representation:t,cellValue:f,textStyle:p}):Yn.jsx("span",{style:{padding:4,direction:d?"ltr":void 0,...p},children:l})},fV=(e,t)=>e?.[t]?.visibleMeasureInfoIndex??0,hV="flex-start",mV=(e,t)=>e.isNull?hV:t.type===tN.Image&&"fill"!==t.imageSize?t.resolvedImagePosition?.vertical:hV,gV=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{env:i}=UF(),{pageInfo:o,direction:a}=VF(),{styleService:s,layoutService:l}=XF(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleLeftDimensionInfo:f,visibleTopDimensionInfo:h}}=bW(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=XF(),{gridSectionsData:{leftDimensionData:t,topDimensionData:n},visibleDimensionsInfo:{visibleLeftDimensionInfo:r,visibleTopDimensionInfo:i}}=bW(),o=r.length,a=i.length;return m((r,i)=>!(!n.grid.at(a-1)?.[r]?.isTotal&&!t.grid.at(e?0:o-1)?.[i]?.isTotal),[n,t,o,a,e])})(),v=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=bW(),n=t.length;return m(t=>{const r=e.grid.at(n-1)?.[t];return X$(r,e.totalDividerIndex)},[e,n])})(),y=(()=>{const{layoutService:{isIndentModeEnabled:e}}=XF(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:n}}=bW(),r=n.length;return m(n=>{const i=e?0:r-1,o=t.grid.at(i)?.[n];return X$(o,t.totalDividerIndex,e)},[t,e,r])})(),{showLastBorder:b}=r,x=p.grid.at(h.length-1),S=d.grid.at(f.length-1),{background:w}=s.measureValues,C=c[t]?.[e],E=t===o.rowsOnCurrentPage-1,I=e===l.size.x-1;if(!C)return Yn.jsx(J$,{style:{...n,background:w},isLastRow:E,isLastColumn:I,showLastBorder:b,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const D=l.hasPseudoDimOnLeft?fV(S,t):fV(x,e),P=l.visibleMeasureInfo[D],M=Jz({cell:C.ref,representationProperties:P.representation,attrExprInfoIndex:u.measures[D],env:i,direction:a,conditionalColoring:P.conditionalColoring,enabledFeatures:{[tN.Image]:!0,[tN.Indicator]:!0}}),R=!C.isNull&&g(e,t),k=C.isNull?l.getNullValueText():M.text,L=!C.isNull||!Number.isNaN(+k),A=Zz(u.measures[D],C.ref),O=((e,t,n,r,i)=>{const{textAlign:o}=t,a=r?"flex-end":"center";return e.isNull||n.type!==tN.Image?aV(o,a,i):n.resolvedImagePosition?.horizontal??"center"})(C,P,M,L,a),T={...cV(s,C.isNull,R,A.background),...$N(E,I,s.grid.border,a,b),...VN({bottomDivider:y(t),rightDivider:v(e),borderColor:s.grid.divider}),...jN,padding:"0px 4px",display:"flex",justifyContent:O};return Yn.jsx("div",{className:YA,title:k,style:{...T,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Yn.jsx(Z$,{width:Q$(M),verticalAlign:mV(C,M),children:Yn.jsx(pV,{cell:C,representation:M,isTotalValueCell:R,color:A.color,cellHorizontalAlignment:O})})})};var vV=o.memo(gV,q$);const yV=(e,t)=>t.list[e]?.id??e.toString(),bV=({columnIndex:e,rowIndex:t,data:n})=>n.grid[t]?.[e]?.id??`${t}-${e}`,xV=e=>({...NN,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),SV=({dataGridRef:e,height:t,rowHightCallback:n,width:r,showLastBorder:i,getRightGridColumnWidth:o,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:u}=VF(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:p}}=XF(),{dataModel:f,gridSectionsData:{measureData:h}}=bW(),g={...xV(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},y=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:n}=VF(),{downloadService:r,viewService:i,layoutService:o}=XF(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=bW(),c=s.columnCount,d=l.rowCount;return m(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{i.gridColumnStartIndex=s,i.gridRowStartIndex=p,i.gridWidth=l-s+1,i.gridHeight=f-p+1;const h=i.gridWidth+c+(t.current===dN.None?0:_$),m=i.gridHeight+d+(e.current===dN.None?0:_$);let g=Y$;m*h>1500&&(g=K$),g(a,o,u,n,i,e,t,r)},[i,o,a,u,e,t,n,c,d,r])})({verticalScrollDirection:a,horizontalScrollDirection:s});return vj(()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)},[e,f,h]),v(()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})},[r,t,e,p,u]),0===c.size.x?null:Yn.jsx(C$,{"data-section-id":"DATA_GRID",ref:e,style:g,columnCount:c.size.x,columnWidth:o,height:t,rowCount:l.rowsOnCurrentPage,rowHeight:n,width:r,itemData:{showLastBorder:i,grid:h},onItemsRendered:y,estimatedRowHeight:n(),estimatedColumnWidth:o(),itemKey:bV,direction:u,children:vV})};var wV=x(SV);const CV=r((e,t)=>Yn.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:[Yn.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"}),Yn.jsx("use",{fillRule:"evenodd"})]})),EV=e=>{const[t,n]=ix(BW);return vj(()=>{n(!1)},e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},IV=()=>{const[e,t]=g(!1),{dataModel:n}=bW(),{interactions:r}=UF(),{isAdjustingWidth:i,setIsAdjustingWidth:o}=EV([n]);return{open:e,setOpen:t,handleOpenMenu:e=>{!r.active||RH(e)||i||t(!0)},isAdjustingWidth:i,setIsAdjustingWidth:o}};function DV(e,t){const n=t.expressionColor?.background??e.dimensionValues.background,r=t.isLeftColumn?e.header.background:n,i=r===TN.Transparent?jO.WHITE:r,o=ZO(e.grid.border),a=ZO(i);return a.isInvalid()||o.isInvalid()||1===o.a?e.grid.border:function(e,t,n){return ZO(e.r+(t.r-e.r)*n,e.g+(t.g-e.g)*n,e.b+(t.b-e.b)*n,e.a+(t.a-e.a)*n)}(a,o,o.a).getRGB()}const PV=({cellInfo:e,columnWidth:t,isLastColumn:n,overrideLeftGridWidth:r,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:o,tableWidth:a})=>{const{direction:s}=VF(),{interactions:l,translator:u}=UF(),{isActive:c}=qH(),{dataModel:d}=bW(),{styleService:p}=XF(),[,f]=g({});if(!(e.canBeResized&&!!l.active&&!c))return null;const h=DV(p,e);return Yn.jsx(Cj,{isPivot:!0,columnWidth:t,isLastColumn:n,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{f({}),r&&void 0!==e.colIdx&&r(t,e.colIdx)},confirmWidthCallback:t=>{o?d.applyIndentModeColumnWidth({...t,pixels:Math.min((a??0)*CW,t.pixels??0)}):d.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:u,columnLabel:e.label??""},direction:s})},MV=Ta(xl,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})(({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:i})=>({pointerEvents:i?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&i?n:t}})),RV=Ta("div",{shouldForwardProp:e=>!["direction"].includes(e)})(({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0})),kV=Ta("div",{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({..._N,justifyContent:e??_N.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8})),LV=Ta("div")(()=>({..._N})),AV=Ta("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})(({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:i,justifyContent:o})=>({display:"flex",justifyContent:o,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:i})),OV=Ta(qc)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),TV=Ta(zc,{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}}})),qV=Ta("span")({textOverflow:"ellipsis",overflow:"hidden"}),_V=Ta("div",{shouldForwardProp:e=>"visible"!==e})(({visible:e})=>({opacity:e?1:0,width:SW,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})),NV=Ta("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})(({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0}));let jV=function(e){return e.Expand="Expand",e.Collapse="Collapse",e}({});const FV=(e,t)=>({qExcludeList:t===jV.Expand,qPos:{qDimName:e,qElemNo:[]}}),zV=`${QF}/qExpansionState`,WV=({model:e,qExpansionState:t,qEffectiveDimensionName:n,action:r})=>async()=>{const i=(({qEffectiveDimensionName:e,oldExpansionState:t,action:n})=>{const r=t?.findIndex(t=>t.qPos?.qDimName===e);return{expansionData:FV(e,n),index:r}})({qEffectiveDimensionName:n,oldExpansionState:t,action:r});await(async({model:e,newExpansionState:t,errorMsg:n})=>{const{index:r,expansionData:i}=t;try{let t,n=zV,o="Add";void 0===r?t=JSON.stringify([i]):-1===r?(n=`${zV}/-`,t=JSON.stringify(i)):(n=`${zV}/${r}`,o="Replace",t=JSON.stringify(i)),await e.applyPatches([{qPath:n,qOp:o,qValue:t}],!0)}catch(e){console.error(n,e)}})({model:e,newExpansionState:i,errorMsg:`Failed to ${r} dimension`})},$V=({model:e,effectivePropertiesService:t,cell:n})=>{if(void 0===n.qEffectiveDimensionName)return;const r={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n.qEffectiveDimensionName};return{expandCallback:WV({...r,action:jV.Expand}),collapseCallback:WV({...r,action:jV.Collapse}),alwaysFullyExpanded:t.qAlwaysFullyExpanded}},HV={[uF.Sorting]:!0,[uF.Selections]:!0,[uF.Searching]:!0},VV=({cell:e,style:t,isFirstColumn:n,isLastColumn:r,isLastRow:i,changeSortOrder:o,iconsVisibilityStatus:a,columnWidth:s,overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:c,tableWidth:d})=>{const p=u(null),{styleService:f,layoutService:h,effectivePropertiesService:m}=XF(),{app:g,interactions:v,embed:y,translator:b,model:x,env:S}=UF(),{fontSize:w,fontFamily:C,fontStyle:E,fontWeight:I,textDecoration:D,color:P,background:M,hoverBackground:R,activeBackground:k}=f.header,L=u(null),{shouldShowLockIcon:A,shouldShowMenuIcon:O}=a,{open:T,setOpen:q,handleOpenMenu:_,setIsAdjustingWidth:N}=IV(),{direction:j}=VF(),F={sortFromMenu:async(t,n)=>{t.stopPropagation(),await o(e,n)}},z={embed:y,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?m.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},W={app:g,qStateName:h.layout.qStateName},{labelTextAlign:$}=h.getDimensionInfo(e.dimensionInfoIndex)??{},H=aV($,"flex-start",j);return Yn.jsxs(MV,{className:YA,title:e.label,interactions:v,background:T?k:M,hoverBackground:R,shouldShowMenuIcon:O,isDimension:e.isDim,style:{...t,...jN,...HN(e,i,n,r,f.grid.border,j),color:P},"data-testid":"title-cell",onClick:_,children:[Yn.jsxs(kV,{children:[A?Yn.jsx(LV,{children:Yn.jsx(CV,{height:12})}):null,Yn.jsx(AV,{fontFamily:C,fontSize:w,fontStyle:E,fontWeight:I,textDecoration:D,justifyContent:H,children:Yn.jsx("span",{style:S.flags.isEnabled("VNA-135-WRAP_HEADER_TEXT")?{...FN,...zN(f.grid.columnLineClamp)}:FN,children:e.label})})]}),e.isDim?Yn.jsxs(Yn.Fragment,{children:[Yn.jsx(pF,{headerData:e,translator:b,anchorRef:L,open:T,setOpen:q,interactions:v,menuAvailabilityFlags:HV,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:W,expandOrCollapseArgs:$V({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:O,model:x&&"setActiveField"in x?x:void 0,direction:j,isAccessibleHeader:!0}),Yn.jsx(RV,{ref:p,direction:j}),Yn.jsx(RV,{ref:L,direction:j})]}):null,Yn.jsx(PV,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:r,overrideLeftGridWidth:l,setIsAdjustingWidth:N,shouldApplyIndentModeColumnWidth:c,tableWidth:d})]})},BV=({rowSpan:e,columnSpan:t})=>{const{styleService:n}=XF(),{direction:r}=VF();return e>0&&t>0?Yn.jsx("div",{style:{...NN,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===r?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null},GV=r((e,t)=>Yn.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:Yn.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})})),UV=r((e,t)=>Yn.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:[Yn.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Yn.jsx("use",{fillRule:"evenodd"})]})),YV=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:n})=>{const{direction:r}=VF(),{styleService:i}=XF(),{interactions:o,translator:a}=UF(),{isActive:s}=qH(),{dataModel:l}=bW(),{setIsAdjustingWidth:u}=EV([l]);if(!(!!o.active&&!s))return null;const c=DV(i,{isLeftColumn:!0});return Yn.jsx(Cj,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{n(Math.min(t,e*CW))},confirmWidthCallback:r=>{if(r.type===ZA.FitToContent)return void l.applyIndentModeColumnWidth({type:ZA.Auto});const i=Math.min(r.pixels??t,e*CW);n(i),l.applyIndentModeColumnWidth({type:ZA.Pixels,pixels:i})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:r})},KV=r((e,t)=>Yn.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:Yn.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"})})),XV=({cell:e,changeSortOrder:t})=>{const n=u(null),r=u(null),{app:i,interactions:o,embed:a,translator:s,model:l}=UF(),{layoutService:c,effectivePropertiesService:d}=XF(),{open:p,setOpen:f,handleOpenMenu:h}=IV();return Yn.jsxs(TV,{onClick:h,isActive:p,children:[Yn.jsx(qV,{children:e.label}),Yn.jsxs(_V,{className:"indent-mode-dropdown-more",visible:p,children:[Yn.jsx(KV,{}),e.isDim?Yn.jsxs(Yn.Fragment,{children:[Yn.jsx(pF,{headerData:e,translator:s,anchorRef:n,open:p,setOpen:f,interactions:o,menuAvailabilityFlags:HV,sortRelatedArgs:{sortFromMenu:async(n,r)=>{n.stopPropagation(),await t(e,r)}},searchRelatedArgs:{embed:a,listboxRef:r},selectionRelatedArgs:{app:i,qStateName:c.layout.qStateName},expandOrCollapseArgs:$V({model:l,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:l&&"setActiveField"in l?l:void 0}),Yn.jsx(RV,{ref:r}),Yn.jsx(RV,{ref:n})]}):null]})]})},JV=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{const i=n.at(-1)?.id===tz,o=e+1<n.length&&n[e+1]?.id===tz;return!(r&&i&&o)&&(t?.id!==tz&&e<n.length-1)},ZV=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:n,leftGridWidth:r,tableWidth:i})=>{const{styleService:o}=XF(),{interactions:a,translator:s}=UF(),{dataModel:l,gridSectionsData:{headersData:c}}=bW(),[d,p]=g(!1),f=u(null),{headerCellHeight:h}=o,{color:m,background:v,hoverBackground:y,activeBackground:b,fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E}=o.header,{isAdjustingWidth:I}=EV([l]),D=e=>{e.stopPropagation()},P={height:h,gridColumn:`1 / span ${c.size.x}`,gridRow:c.size.y,zIndex:c.size.x-0};return Yn.jsxs(MV,{isDimension:!0,background:d?b:v,interactions:a,hoverBackground:y,style:{...P,...jN,color:m},onClick:e=>{!a.active||RH(e)||I||p(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[Yn.jsxs(kV,{justifyContent:"flex-start",children:[Yn.jsx(AV,{fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E,justifyContent:"flex-start",children:Yn.jsx("span",{style:FN,children:s.get("SNPivotTable.IndentMode.Rows")})}),d?Yn.jsx(UV,{}):Yn.jsx(GV,{}),Yn.jsx(RV,{ref:f})]}),Yn.jsx(OV,{open:d,anchorEl:f.current,disableEnforceFocus:!0,children:e.map((n,r)=>[n&&n.id!==tz&&Yn.jsx("li",{role:"presentation",onClick:D,onKeyDown:D,children:Yn.jsx(XV,{cell:n,changeSortOrder:t})}),JV({idx:r,menu:n,menuItems:e,isOnlyOneRow:1===c.size.y})&&Yn.jsx(Mj,{"data-testid":"group-divider",variant:"middle"})])}),Yn.jsx(YV,{tableWidth:i,leftGridWidth:r,overrideLeftGridWidth:n})]})},QV=({layoutService:e,headersData:t,topRowIndex:n})=>e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y,eB={display:"grid",width:"fit-content"},tB=({tableWidth:e,leftGridWidth:t,columnWidths:n,rowHight:r,changeSortOrder:i,getHeaderCellsIconsVisibilityStatus:o,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=XF(),{gridSectionsData:{headersData:u}}=bW();return Yn.jsxs("div",{"data-testid":"HEADER_GRID",style:{...eB,gridTemplateColumns:n.map(e=>`${e}px`).join(" "),gridTemplateRows:u.data.map(()=>`${r}px`).join(" "),height:a},children:[u.size.y>1&&Yn.jsx(BV,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map((a,c)=>{let d=[];if(QV({layoutService:l,headersData:u,topRowIndex:c})){const n=a.at(0);return Array.isArray(n)&&d.push(Yn.jsx(ZV,{menuItems:n,changeSortOrder:i,overrideLeftGridWidth:s,leftGridWidth:t,tableWidth:e},n.at(0)?.id)),d}return d=a.reduce((t,a,d)=>{if(a&&!Array.isArray(a)){const p=o(d,a.isLocked,a.label),f=l.isIndentModeEnabled&&1===u.size.x;t.push(Yn.jsx(VV,{style:{width:n[d],height:r,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:i,cell:a,iconsVisibilityStatus:p,columnWidth:n[d],overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t},[]),d})]})};var nB=x(tB);const rB=(e,t,n,r)=>{const{layoutService:i}=XF();v(()=>{e.current?.forEach(e=>e?.resetAfterIndex(0,!0))},[e,t,n,r,i])},iB=(e,t)=>{vj(()=>{e.current?.forEach(e=>e?.resetAfterIndex(0,!1))},[e,t])},oB=(e,t)=>{const{isLast:n,list:r,listValues:i}=t;return n?r[e]:i[e]},aB=(e,t,n,r,i)=>{if(i)return;const o=e.representation,a=IW({isLeftColumn:n,layoutService:t,representation:o}),s=n?"flex-start":"center",l=e.representation.resolvedImagePosition?.horizontal;if(e.representation.type===tN.Image)return a&&l&&"center"!==l&&"rtl"===r?DH(l):l??s;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){const{labelTextAlign:n}=t.visibleMeasureInfo[e.visibleMeasureInfoIndex]??{};return aV(n,s,r)}const{textAlign:u}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return aV(u,s,r)},sB=()=>{},lB=({children:e,reactWindowStyle:t,cell:n,data:r,showTotalCellDivider:i,isLastRow:o,isLastColumn:a,isLeftColumn:s,isCellSelected:l,isAdjustingWidth:u,index:c})=>{const{styleService:d,layoutService:p}=XF(),{interactions:f}=UF(),{direction:h}=VF(),{isLocked:m,createMouseDownHandler:g,createMouseOverHandler:v,createPointerUpHandler:y}=qH(),{showLastBorder:b}=r,x=m(n)||n.isLockedByDimension,S=!(x||!f.active||!f.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||u),w=S?g(c,e=>oB(e,r)):void 0,C=S?v(c):void 0,E=S?y(c,e=>oB(e,r)):void 0,I=IW({isLeftColumn:s,layoutService:p,representation:n.representation});return Yn.jsx("div",{className:YA,title:f.passive?n.representation.text:void 0,style:{...t,...$N(o,a,d.grid.border,h,b),...VN({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:d.grid.divider}),...jN,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:UH(S),background:$H({styleService:d,isCellSelected:l,cell:n,isCellLocked:x}),zIndex:s?void 0:p.size.x-n.x,justifyContent:aB(n,p,s,h,I),display:"flex",...p.isIndentModeEnabled&&s&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(n.indentLevel??0))},textAlign:sV(n,p)},"aria-hidden":"true",onMouseDown:w,onMouseOver:C,onPointerUp:E,onKeyUp:sB,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,"data-dimension-info-index":n.dimensionInfoIndex,children:e})},uB=e=>{e.stopPropagation()},cB=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:uB,color:jO.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),dB=({href:e,text:t,interactions:n,color:r})=>Yn.jsx(zu,{...cB({href:e,text:t,interactions:n,color:r}),children:t}),pB=Y();pB.use(U),pB.renderer.prio(["canvas"]);const fB=(e,t)=>e&&"center"!==e&&"rtl"===t?DH(e):e,hB=({cell:e,representation:t,textStyle:n,imageContainerHorizontalAlignment:r})=>{const{imageBox:i}=t,{styleService:{grid:{lineClamp:o}}}=XF(),{direction:a}=VF();return Yn.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${i?.width??24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[Yn.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:jH(e),alignItems:fB(r,a),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:i?.width??24,height:"100%"},children:Yn.jsx(iV,{representation:t,textStyle:n})}),Yn.jsx(NV,{padding:4/(o<=2?2:1),alignSelf:jH(e,!0),children:!!t.labelStructure&&nV(t.labelStructure)})]})},mB=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,gB=({href:e,text:t,labelStructure:n,interactions:r,color:i})=>Yn.jsxs("span",{children:[Yn.jsx(zu,{...cB({href:e,text:t,interactions:r,color:i}),children:n?.maskedValue?n.maskedValue:n?.originalValue}),!!n&&mB(n)]}),vB=({children:e,textStyle:t,shouldEnableStickyText:n})=>Yn.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...n&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),yB=({isLeftColumn:e,styleService:t,cell:n,isIndentModeEnabled:r})=>e?r?t.grid.lineClamp:Math.max(t.grid.lineClamp,n.leafCount*t.grid.lineClamp):t.grid.columnLineClamp,bB=({cell:e,isCellSelected:t,isLeftColumn:n})=>{const{direction:r}=VF(),{isActive:i}=qH(),{layoutService:o,styleService:a}=XF(),{interactions:s}=UF(),l=n&&o.isIndentModeEnabled;let u=n&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:n}}=e;if(!n||!n.originalValue)return t;const{originalValue:r,maskedValue:i,suffix:o,delimeter:a}=n;return`${0!==i.length?i:r} ${o?a:""} ${o}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const c=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r,isIndentModeEnabled:i})=>({...FN,...zN(yB({cell:e,isLeftColumn:r,styleService:t,isIndentModeEnabled:i})),color:HH({cell:e,styleService:t,isCellSelected:n}),fontWeight:VH({cell:e,styleService:t}),fontStyle:BH({cell:e,styleService:t}),textDecoration:GH({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:n,isIndentModeEnabled:o.isIndentModeEnabled});if(e.representation.type===tN.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,i=n&&t&&t.suffix?hB:oV;return Yn.jsx(i,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:n,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:aB(e,o,n,r)})}if(e.representation.type===tN.Link&&!i&&!e.isTotal){const t=n&&e.representation.labelStructure?gB:dB;u=Yn.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return Yn.jsx(vB,{shouldEnableStickyText:l,textStyle:{...c,...e.representation.type===tN.Image&&e.isNull?{alignSelf:jH(e)}:{}},children:u})},xB=({index:e,style:t,data:n})=>{const{styleService:r,layoutService:i}=XF(),{isSelected:o}=qH(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=n,{isAdjustingWidth:d,setIsAdjustingWidth:p}=EV([n]),f=oB(e,n),h=a?e===l-1:u,m=a?u:e===l-1,g=X$(f,c,i.isIndentModeEnabled);if(void 0===f){const{background:n}=r.dimensionValues;return Yn.jsx(J$,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const v=o(f);return Yn.jsxs(lB,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:v,showTotalCellDivider:g,cell:f,data:n,isAdjustingWidth:d,index:e,children:[Yn.jsxs(Z$,{verticalAlign:jH(f),width:Q$(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[Yn.jsx(XH,{isLeftColumn:a,isCellSelected:v,cell:f}),Yn.jsx(bB,{isLeftColumn:a,isCellSelected:v,cell:f})]}),Yn.jsx(PV,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?lN.Measures:lN.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var SB=o.memo(xB,q$);const wB=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>i=>{const o=n?e[i]:t.at(i);return o&&0===i&&o.x>0?(o.leafCount+o.x+o.distanceToNextCell)*r():!n&&o?(o.leafCount+o.distanceToNextCell)*r():r(o?.x??i)},CB=(e,t,n,r)=>{const i=Object.values(e);let o,a=i.length;return r&&(a=n,o=t/a),{itemCount:a,estimatedItemSize:o,listValues:i}},EB=(e,t)=>n=>{e.current&&(e.current[t]=n)},IB={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...NN},DB={overflow:"hidden",willChange:"auto",flexShrink:0},PB=({leftGridRef:e,width:t,height:n,columnWidths:r,showLastBorder:i})=>{const{pageInfo:o,direction:a}=VF(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=XF(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=bW();iB(e,d),rB(e,t,n,l);const f=o.rowsOnCurrentPage*l,h={...IB,borderColor:u,width:r.reduce((e,t)=>e+t,0)};return Yn.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map((t,u)=>{const h=u===d.columnCount-1,m=nz(p[u]),{itemCount:g,estimatedItemSize:v,listValues:y}=CB(t,f,o.rowsOnCurrentPage,h),b=s.isIndentModeEnabled?()=>l:((e,t,n,r,i)=>o=>{const a=r?e[o]:t.at(o);if(a&&0===o&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if(a&&a.leafCount>0){const e=a.y===i-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(t,y,l,h,c.qcy);return Yn.jsx(L$,{ref:EB(e,u),style:{...DB,flexGrow:h?1:0,direction:a},height:n,width:r[u],itemCount:g,itemSize:b,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:i,listValues:y,totalDividerIndex:d.totalDividerIndex},itemKey:yV,estimatedItemSize:v,children:SB},m)})})};var MB=x(PB);const RB={overflow:"hidden",willChange:"auto"},kB=e=>({...NN,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),LB=({topGridRef:e,rowHightCallback:t,width:n,height:r,showLastBorder:i,getRightGridColumnWidth:o})=>{const{direction:a}=VF(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=XF(),{gridSectionsData:{headersData:c,topDimensionData:d}}=bW(),p={...kB(a),borderColor:l,height:r};iB(e,d),rB(e,n,r,u);const f=s.size.x*o();return 0===d.rowCount?Yn.jsx("div",{style:{width:n,height:r,...kB(a)}}):Yn.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map((r,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=CB(r,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{const r=t.data.at(n);if(void 0===r)return;const i=t.size.x-1,o=QV({layoutService:e,headersData:t,topRowIndex:n})?0:i,a=r.at(o),s=Array.isArray(a)?a.at(i):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),v=g?nz(g):`empty ${l}`;return Yn.jsx(L$,{ref:EB(e,l),style:RB,height:t(),width:n,itemCount:p,itemSize:wB({list:r,listValues:m,isLastRow:u,getRightGridColumnWidth:o}),layout:"horizontal",itemData:{list:r,isLast:u,itemCount:p,showLastBorder:i,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:yV,estimatedItemSize:h,direction:a,children:SB},v)})})};var AB=x(LB);const OB=()=>Yn.jsx(TB,{}),TB=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=XF(),n=KW(),r=(()=>{const{model:e}=UF(),t=m(async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:i,sortDirection:o}=t,a=[];if(n===o)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${i}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).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:i,topGridWrapperRef:o,leftGridWrapperRef:a,dataGridWrapperRef:s},gridRefs:{topGridRef:l,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:p},scrollbarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:v}}=YW(),{leftGridWidth:y,leftGridFullWidth:b,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:w,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:E,overrideLeftGridWidth:I}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:n}){const{layoutService:r,styleService:i}=XF(),{gridSectionsData:{headersData:o}}=bW(),{measureText:a}=pj(i.header,{allowLineBreaks:!1}),s=NW({tableWidth:e}),l=jW({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),u=s.leftGridWidth+l.rightGridFullWidth+1<e,c=m((e,t,n="")=>{let i=e;r.isIndentModeEnabled&&(i=1,1===o.size.x&&(i=0));const l=s.leftGridColumnWidths[i];let u=!1,c=!1,d=a(n)+wW;return t&&d+SW<=l&&(c=!0,d+=SW),d+SW<=l&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}},[s.leftGridColumnWidths,a,r.isIndentModeEnabled,o.size.x]);return f(()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=l.rightGridWidth===l.rightGridFullWidth;e&&t&&n()},[n,s.leftGridWidth,s.leftGridFullWidth,l.rightGridWidth,l.rightGridFullWidth]),{...s,...l,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:n.width,verticalScrollbarWidth:h,resetHorizontalScrollbarHeight:v}),{gridScaffoldDimensions:D,headerGridDims:P,topGridDims:M,leftGridDims:R,dataGridDims:k,metadata:{everyThingFitsInTableRectHeight:L,scrollbarsVisibilityStatus:A}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:n,leftGridOriginalWidth:r,rightGridOriginalWidth:i},scrollBarsDimensions:{verticalScrollbarWidth:o,horizontalScrollbarHeight:a}})=>{const s=KW(),{pageInfo:l}=VF(),{gridSectionsData:{headersData:u,topDimensionData:c}}=bW(),d=Math.min(s.height*CW,Math.max(s.height*CW-25,s.height-t-a)),p=s.width*CW,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,v=Math.min(p,n),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,n)=>{const r=t+1+n+o<=s.width,i=e+1+f+a,l=i-s.height<a||i<=s.height;return{availableHeight:l?i:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:r}})(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:k,hasDataGridOverflowX:L}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:n},Y_AXIS:{topSectionHeight:r,bottomSectionHeight:i}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:o,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>r,c=o>t,d=a>n,p=l>i;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:r,rightSectionFullWidth:i},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:i-o+(L?o:0),height:g},stickyWrapper:{width:b-1-o,height:-1},self:{width:Math.min(i,b)-(C?1:0)-o,height:g}},leftGridDims:{fullSizeWrapper:{width:v,height:M-g+(!k&&L?a:0)},stickyWrapper:{width:v,height:I-1-a},self:{width:v,height:Math.max(t,D-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:i-o+(L?o:0),height:M-g+(!L&&k?a:0)},stickyWrapper:{width:b-1-o,height:I-1-a},self:{width:Math.min(i,b)-(C?1:0)-o,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:h,horizontalScrollbarHeight:g}}),O=m(()=>e,[e]),T=m(()=>t,[t]);return(()=>{const{downloadService:e}=XF();f(()=>{e.notifyIsDoneRendering()})})(),Yn.jsxs(JW,{style:D,children:[Yn.jsx("div",{style:{overflow:"hidden"},ref:i,children:Yn.jsx(nB,{tableWidth:n.width,leftGridWidth:y,columnWidths:x,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:P.height,changeSortOrder:r,overrideLeftGridWidth:I})}),Yn.jsx(e$,{style:A.topGrid,origin:cN.TopGrid,ref:o,children:Yn.jsx(XW,{style:M.fullSizeWrapper,children:Yn.jsx(t$,{style:M.stickyWrapper,children:Yn.jsx(AB,{topGridRef:l,rowHightCallback:O,...M.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:C})})})}),Yn.jsx(e$,{style:A.leftGrid,origin:cN.LeftGrid,ref:a,children:Yn.jsx(XW,{style:R.fullSizeWrapper,children:Yn.jsx(t$,{style:R.stickyWrapper,children:Yn.jsx(MB,{leftGridRef:u,...R.self,columnWidths:x,showLastBorder:{right:!1,bottom:L}})})})}),Yn.jsx(e$,{style:A.dataGrid,origin:cN.DataGrid,ref:s,children:Yn.jsx(XW,{style:k.fullSizeWrapper,children:Yn.jsx(t$,{style:k.stickyWrapper,children:Yn.jsx(wV,{dataGridRef:c,rowHightCallback:T,...k.self,showLastBorder:{right:w,bottom:L},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:p})})})})]})},qB=()=>{const{keyboard:e,theme:t,interactions:n,translator:r}=UF(),{pageInfo:i,updatePageInfo:o,rect:a}=VF(),{layoutService:s}=XF(),{layout:l,hasData:u}=s;return Yn.jsxs(Yn.Fragment,{children:[u?Yn.jsx(OB,{}):null,Yn.jsx(ZF,{}),Yn.jsx($F,{paginationNeeded:i.shouldShowPagination,handleChangePage:e=>{o({page:e})},pageInfo:i,totalRowCount:i.totalRowCount,totalColumnCount:0,totalPages:i.totalPages,keyboard:e,translator:r,theme:t,interactions:n,rect:a,layout:l})]})};const _B=(e,{selections:t,baseObjects:n,coreServices:r,nebulaObjects:i},a)=>{const s=function(e){const t=lb();return t?.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),ha({...t,direction:e})}(n.direction);e.render(Yn.jsx(o.StrictMode,{children:Yn.jsx(Xb,{store:a,children:Yn.jsx(_a,{theme:s,children:Yn.jsx(YF,{...i,children:Yn.jsx(BF,{...n,children:Yn.jsx(_H,{selections:t,children:Yn.jsx(JF,{...r,children:Yn.jsx(xW,{children:Yn.jsx(qB,{})})})})})})})})}))};var NB=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}(NB||{}),jB=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}(jB||{}),FB=function(e){return e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value",e}(FB||{}),zB=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}(zB||{});const WB=e=>e?`${parseInt(e,10)}px`:void 0,$B=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?TN.Transparent:n}},HB=(e,t)=>+(parseInt(e,10)*ON*t+8).toFixed(2),VB=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?LN:"normal",BB=e=>e?.some(e=>"italic"===e)?"italic":"normal",GB=e=>e?.some(e=>"underline"===e)?"underline":"none",UB=document.createElement("textarea");function YB(e){UB.value=e,document.body.appendChild(UB),UB.select(),UB.setSelectionRange(0,UB.value.length),document.execCommand("copy"),document.body.removeChild(UB)}UB.style.position="absolute",UB.style.left="-9999px",UB.setAttribute("readonly","");function KB(e){q?.((t,n)=>{const r=n.target,i=r?.closest(`.${YA}`);i?.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{(e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{YB(t)}):YB(t))})(i)}}),e?.forEach(e=>{e(t,n,i)})})}const XB=({model:e,layoutService:t,effectivePropertiesService:n,translator:r})=>ej((i,o,a)=>{if(!e||n.qAlwaysFullyExpanded)return;const s=e,l=i.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group",id:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const n=((e,t)=>{const n=e?.getAttribute("data-dimension-info-index");if("string"==typeof n)return t.getDimensionInfo(+n)})(e,t);return"object"==typeof n?{qEffectiveDimensionName:n.qEffectiveDimensionName,label:n.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(QF,0,0,!0),await e.expandLeft(QF,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:i})=>({icon:"lui-icon lui-icon--plus",translation:i.get("SNPivotTable.ContextMenu.ExpandDimension",[r??""]),tid:"expand-dimension",id:"expand-dimension",select:WV({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:jV.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(QF,0,0,!0),await e.collapseLeft(QF,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:i})=>({icon:"lui-icon lui-icon--minus",translation:i.get("SNPivotTable.ContextMenu.CollapseDimension",[r??""]),tid:"collapse-dimension",id:"collapse-dimension",select:WV({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:jV.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:u,label:c,translator:r}))},[e,t,n]),JB=(e,t)=>M(()=>(({layout:e})=>{const{qHyperCube:t,nullValueRepresentation:n,snapshotData:r}=e,{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:o,qMeasureInfo:a,qDimensionInfo:s}=t,l=!!r,u=r?.content?.rowsPerPage??15e3,c={x:Math.min(e.qHyperCube.qSize.qcx,AN),y:Math.min(e.qHyperCube.qSize.qcy,u)},d=o.slice(0,i),p=e=>d.some(t=>t===e),f=p(ez),h=new Map(o.map(e=>[s[e]??ez,e])),m=a.filter(e=>7005!==e.qError?.qErrorCode);return{layout:e,getNullValueText:()=>n?.text??"-",getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(f)return 0;const n=e%m.length;return t?n:a.findIndex(e=>e===m[n])},getDimensionInfo:e=>e===ez?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:ZA.Auto,pixels:JA.PixelsDefault,percentage:JA.PercentageDefault},searchSortFromDimension:"inherit"===e.search?.sorting}})({layout:e}),[e,t]),ZB=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:i})=>{const{layout:o,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=nj(e);return t.current=e,t})(fW(i));return lj(async()=>{const{qHyperCube:t}=o,{maxNumberOfVisibleRows:i,maxNumberOfVisibleColumns:u}=l.current;if(a)return o.snapshotData?.content?.qPivotDataPages??[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(s,n,i,u)||((e,t,n,r)=>{const{qHyperCube:{qPivotDataPages:i,qSize:o}}=e,{qTop:a,qWidth:s,qHeight:l}=i[0]?.qArea??{qTop:0,qWidth:0,qHeight:0};return a<t.page*t.rowsPerPage||s<Math.min(r,o.qcx)||l<Math.min(n,o.qcy)})(o,r,i,u))){const t=((e,t,n,r,i,o)=>{const a=r.page*r.rowsPerPage,s=Math.min(a+r.rowsPerPage,n.qcy),l=Math.min(AN,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-i)),n>l&&(u=Math.max(0,l-o))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,o),qHeight:Math.min(s-c,i)}})(s,n,o.qHyperCube.qSize,r,i,u);return t?e.getHyperCubePivotData(QF,hW(t)):[]}return t.qPivotDataPages},[o,a,e,n,r.page,r.rowsPerPage,l,s])},QB=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),eG=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:QB({rowsPerPage:n,totalRowCount:e,page:t})}),tG=15,nG=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:i})=>{const{freeResize:o}=R();return _(async e=>{const o=e;if(!o.snapshotData||!r||o.snapshotData.content)return o;if("getHyperCubePivotData"in r){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=t,u=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:i,gridWidth:o,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(r-tG,0),u=Math.max(s+i-tG,s,0),c=AN-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=fW(n);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,o+30),qHeight:Math.min(d,a+30)}})(t,i,n),c=hW(u),d={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};o.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData(QF,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:i.page,rowsPerPage:i.rowsPerPage},o.snapshotData.object.size.w=n.width,o.snapshotData.object.size.h=n.height}return o}),N(()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,i)}),[t]),e.layout.snapshotData?.content&&!o?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var rG={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 iG=()=>{const e=j(),t=e.language();return M(()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(rG).forEach(t=>{e.add(rG[t])})}(e)},[e]),{translator:e,language:t}},oG=e=>{const t=M(()=>Ub(),[]),{flags:n}=e,r=F(),i=(e=>{const t=M(()=>mj.createRoot(e),[e]);return A(()=>()=>{t.unmount()},[t]),t})(r),o=z(),a=W(),s=$(),l=H(),u=V(),c=(()=>{const{viewState:e}=R(),t=nj(new Set),n=void 0!==window.qlikprinting,{promise:r,resolve:i}=M(()=>QN(),[]),o=ej(e=>{t.current.add(e)},[t]),a=ej(wq(async()=>{await Promise.all(t.current),t.current.clear(),i()},1e3),[i,t]);return k(async()=>{await r},[r]),M(()=>({viewState:e,isDownloadedAsPDForImage:n,notifyIsDoneRendering:a,waitForPromise:o}),[a,n,e,o])})(),d=((e,t)=>{const[n]=lj(async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}},[e,t]);return M(()=>{const e=void 0!==n?.qHyperCubeDef.qSortbyYValue&&1===Math.abs(n.qHyperCubeDef.qSortbyYValue),t=n?.qHyperCubeDef.qDimensions.map(e=>e.qDef?.qSortCriterias)??[];return{qAlwaysFullyExpanded:n?.qHyperCubeDef.qAlwaysFullyExpanded??!1,qExpansionState:n?.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:e,getSortCriteriaForDimension:e=>t[e]}},[n])})(a,o),p=JB(o,n),f=(e=>{const t=T();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(p.isSnapshot),h=B(),m=sj(o,r),{translator:g,language:v}=iG(),{pageInfo:y,updatePageInfo:b}=((e,t)=>{const{size:n,layout:{qHyperCube:{qSize:r}}}=e,i=t.isDownloadedAsPDForImage||e.isSnapshot,o=(e=>e.layout.snapshotData?.content?.rowsPerPage)(e),[a,s]=L(()=>{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:r.qcy>n.y&&!i,...eG(r.qcy,a,o)}}),l=e.layout.qHyperCube.qSize.qcy;return A(()=>{s(t=>({...t,...eG(l,t.page,o),shouldShowPagination:l>e.size.y&&!i}))},[l,e.size.y,s,i,o]),A(()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,n=QB({...a,page:e});s({...a,page:e,rowsOnCurrentPage:n})}},[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:QB({...a,...e})})}}})(p,c),x=((e,t,n)=>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}})(n,t.snapshotData),[n,e.page,t.snapshotData]))(y,o,c),S=nG({rect:G(),layoutService:p,viewService:x,model:a,pageInfo:y}),[w,C]=ZB({model:a,layoutService:p,viewService:x,pageInfo:y,rect:S}),E=M(()=>((e,t)=>{const n=t.layout.components?.find(e=>"theme"===e.key),r=n?.header,i=n?.dimensionValues,o=n?.measureValues,a=n?.measureLabels,s=n?.totalValues,l=n?.nullValues,u=n?.grid,c=(t,n,r)=>e.getStyle(t,n,r),d=+(u?.[NB.LineClamp]??c(jB.Grid,FB.Grid,zB.LineClamp)??1),p=+(u?.[NB.ColumnLineClamp]??c(jB.Grid,FB.Grid,zB.ColumnLineClamp)??1),f=$B(e,r?.[NB.Background])??c(jB.Dimension,FB.LabelName,zB.BackgroundColor)??TN.Transparent,h={header:{fontSize:WB(r?.[NB.FontSize])??c(jB.Dimension,FB.LabelName,zB.FontSize)??RN,fontFamily:r?.[NB.FontFamily]??c(jB.Dimension,FB.LabelName,zB.FontFamily)??kN,fontWeight:VB(r?.[NB.FontStyle],LN),fontStyle:BB(r?.[NB.FontStyle]),textDecoration:GB(r?.[NB.FontStyle]),color:$B(e,r?.[NB.FontColor])??c(jB.Dimension,FB.LabelName,zB.FontColor)??jO.TEXT,background:f,hoverBackground:Aq(f,QA),activeBackground:Aq(f,eO)},dimensionValues:{fontSize:WB(i?.[NB.FontSize])??c(jB.Dimension,FB.LabelValue,zB.FontSize)??RN,fontFamily:i?.[NB.FontFamily]??c(jB.Dimension,FB.LabelValue,zB.FontFamily)??kN,fontWeight:VB(i?.[NB.FontStyle],void 0),fontStyle:BB(i?.[NB.FontStyle]),textDecoration:GB(i?.[NB.FontStyle]),color:$B(e,i?.[NB.FontColor])??c(jB.Dimension,FB.LabelValue,zB.FontColor)??jO.TEXT,background:$B(e,i?.[NB.Background])??c(jB.Dimension,FB.LabelValue,zB.BackgroundColor)??TN.Transparent},measureValues:{fontSize:WB(o?.[NB.FontSize])??c(jB.Measure,FB.LabelValue,zB.FontSize)??RN,fontFamily:o?.[NB.FontFamily]??c(jB.Measure,FB.LabelValue,zB.FontFamily)??kN,fontWeight:VB(o?.[NB.FontStyle],"normal"),fontStyle:BB(o?.[NB.FontStyle]),textDecoration:GB(o?.[NB.FontStyle]),color:$B(e,o?.[NB.FontColor])??c(jB.Measure,FB.LabelValue,zB.FontColor)??TN.FontSecondary,background:$B(e,o?.[NB.Background])??c(jB.Measure,FB.LabelValue,zB.BackgroundColor)??TN.Transparent},measureLabels:{fontWeight:VB(a?.[NB.FontStyle],"normal"),fontStyle:BB(a?.[NB.FontStyle]),textDecoration:GB(a?.[NB.FontStyle]),color:$B(e,a?.[NB.FontColor])??c(jB.Measure,FB.LabelName,zB.FontColor)??TN.FontSecondary,background:$B(e,a?.[NB.Background])??c(jB.Measure,FB.LabelName,zB.BackgroundColor)??TN.Transparent},totalValues:{fontWeight:VB(s?.[NB.FontStyle],LN),fontStyle:BB(s?.[NB.FontStyle]),textDecoration:GB(s?.[NB.FontStyle]),color:$B(e,s?.[NB.FontColor])??c(jB.Total,FB.LabelValue,zB.FontColor)??jO.TEXT,background:$B(e,s?.[NB.Background])??c(jB.Total,FB.LabelValue,zB.BackgroundColor)??TN.Transparent},nullValues:{fontWeight:VB(l?.[NB.FontStyle],"normal"),fontStyle:BB(l?.[NB.FontStyle]),textDecoration:GB(l?.[NB.FontStyle]),color:$B(e,l?.[NB.FontColor])??c(jB.Null,FB.LabelValue,zB.FontColor)??jO.TEXT,background:$B(e,l?.[NB.Background])??c(jB.Null,FB.LabelValue,zB.BackgroundColor)??TN.NullValueBackground},grid:{columnLineClamp:p,lineClamp:d,border:$B(e,u?.[NB.Border])??c(jB.Grid,FB.Grid,zB.BorderColor)??TN.DividerLight,divider:$B(e,u?.[NB.Divider])??c(jB.Grid,FB.Divider,zB.BorderColor)??TN.DividerDark,background:$B(e,u?.[NB.Background])??c(jB.Grid,FB.Grid,zB.BackgroundColor)??TN.Transparent},selectedColors:Lq(e)};return h.headerCellHeight=Math.max(HB(h.header.fontSize,p),HB(h.dimensionValues.fontSize,p),32),h.contentCellHeight=Math.max(HB(h.measureValues.fontSize,d),HB(h.dimensionValues.fontSize,d),24),h.dimensionValueTextHeight=HB(h.dimensionValues.fontSize,1),h})(m,p),[m,p]),I=((e,t,n)=>{const[,r,i]=lj(async()=>{const t=mT(n.flags),r=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),o=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,r,i,o,gj].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[t,e,n]);return i?(console.warn("Failed to load fonts:",i),!0):!r})(m,o,e),{direction:D}=R();KB([XB({model:a,layoutService:p,effectivePropertiesService:d,translator:g})]),A(()=>{!C&&a&&!!w&&I&&_B(i,{selections:h,baseObjects:{rect:S,pageInfo:y,qPivotDataPages:w,updatePageInfo:b,direction:D},nebulaObjects:{env:e,app:s,model:a,embed:l,theme:m,keyboard:u,translator:g,interactions:f},coreServices:{styleService:E,viewService:x,layoutService:p,downloadService:c,effectivePropertiesService:d}},t)},[a,s,S,f,h,x,p,c,C,w,E,i,I,g,v,y,b,d,l,u,m,e,D,t])},aG={version:"7.26.0",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:[]},sG=()=>({...aG,qHyperCubeDef:{...aG.qHyperCubeDef,qIndentMode:!1}})}}});
|
|
90
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,u,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,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",v=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-v+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},eM({exports:{}});const pM=(e,t=xR.TEXT,n=xR.WHITE)=>{const r=TR(e??""),o=TR(t),i=TR(n);return r.isInvalid()?t:function(e,t,n){const r=OR(e,t),o=OR(e,n);if(void 0!==r&&void 0!==o)return r>o?t:n}(r,i,o).getRGB()},fM=e=>{const t=e.getStyle("","","dataColors.selected")||xR.SELECTED,n=function(e,t){const n=TR(NR),r=TR(e),o=TR(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=OR(n,r),a=OR(o,r),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?NR:"#000000"}(t,xR.TEXT);return{background:t,color:n}},hM=(e,t)=>{const n=TR(e);return 0===n.a?(n.setAlpha(t.opacity),n.getString()):n.isDark()?n.getBrightenedColor(t.brighter).getString():n.getDarkenedColor(t.darker).getString()},mM=e=>{const t=TR(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},gM=e=>{e.stopPropagation(),e.preventDefault()},vM=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},bM=e=>{const{currentTarget:t}=e;if("true"===t.getAttribute("data-dragging"))return!0;const n=t.closest(".exploration-panel");if(!n)return!1;const r=n.getElementsByClassName("section-item-container");return Array.from(r).some(e=>"true"===e.getAttribute("data-dragging"))},yM=(e,t)=>{const{key:n,currentTarget:r}=e;if(r===t.current&&n===MD.Tab)if(e.preventDefault(),e.shiftKey)((e,t)=>{const{currentTarget:n}=e;if(n!==t.current)return;const r=n.closest('[role="region"]')?.getElementsByTagName("button")[0];r&&vM(r)})(e,t);else{const e=r.parentElement?.getElementsByClassName("exploration-section-header")[0];e&&vM(e)}},xM=(e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=t.sectionIndex??2;if(0===r)return void((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel")?.getElementsByTagName("input")[0];r&&vM(r)})(e,t);const o=n.closest(".exploration-panel")?.getElementsByClassName("exploration-list")[r-1],i=o?.getElementsByClassName("exploration-item-focus").length??0;if(i>0){const e=o?.getElementsByClassName("exploration-draggable-icon")[i-1];e&&vM(e)}},SM=(e,t)=>{const{key:n}=e;switch(n){case MD.Tab:gM(e),e.shiftKey?xM(e,t):((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-list"),o=r?.getElementsByClassName("exploration-item-focus")[0];if(!o){const e=n.closest(".exploration-panel")?.getElementsByClassName("exploration-list")[2].getElementsByClassName("exploration-section-header")[0];return void(e&&vM(e))}vM(o)})(e,t);break;case MD.Down:if(bM(e))break;e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel"),o=r?.getElementsByClassName("exploration-section-header").length??0;let i;if(0===o)return;const a=t.sectionIndex??2;i=a+1<o?r?.getElementsByClassName("exploration-section-header")[a+1]:r?.getElementsByClassName("exploration-section-header")[0],i&&vM(i)})(e,t);break;case MD.Up:if(bM(e))break;e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-panel"),o=r?.getElementsByClassName("exploration-section-header").length??0;let i;if(0===o)return;const a=t.sectionIndex??2;i=a-1>=0?r?.getElementsByClassName("exploration-section-header")[a-1]:r?.getElementsByClassName("exploration-section-header")[o-1],i&&vM(i)})(e,t);break;case MD.Enter:case MD.Space:e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(e.preventDefault(),n!==t.ref.current)return;const r="all"!==t.checkState;t.toggleAllCheckboxes(r)})(e,t)}},wM=({children:e})=>fi.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),CM=({children:e,sectionIndex:t})=>{const r=qf(void 0!==t?XD(t):mR),o=kf(void 0!==t?JD(t):gR),i=n.useRef(null),a={ref:i,toggleAllCheckboxes:o,checkState:r,sectionIndex:t};return fi.jsxs(hc,{ref:i,className:"exploration-section-header",tabIndex:0,onKeyDown:e=>{SM(e,a)},sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"14px","&:focus-visible":{boxShadow:`0 0 0 2px ${nR} inset`}},children:[fi.jsx(zc,{disabled:"disabled"===r,checked:"all"===r,indeterminate:"some"===r,onChange:e=>{o(e.target.checked)},size:"small",style:{flexShrink:0,padding:9}}),fi.jsx(wM,{children:e})]})},EM=({sectionIndex:e})=>{const t=qf(UD(e));return fi.jsx(CM,{sectionIndex:e,children:t})},IM=x((e,t)=>fi.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:fi.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"})})),DM=Ls("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),RM=Ls(IM)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${nR} inset`}})),LM=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,MM=(e,t)=>{const n=e.closest(".exploration-list"),r=n?.nextElementSibling||n?.parentElement?.nextElementSibling;if(null===r||!r){if(t===MD.Tab)return;return n?.closest(".exploration-panel")?.getElementsByClassName("exploration-section-header")[0]}return r.getElementsByClassName("exploration-section-header")[0]},AM=e=>{const{currentTarget:t}=e,n=LM(t);let r=t.closest("li")?.previousElementSibling?.getElementsByClassName(n)[0];if(!r){const e=t.closest(".exploration-list"),o=e?.querySelector(".exploration-section-header");if(o)return o;if(r=((e,t)=>{const n=e.closest(".exploration-list"),r=n?.previousElementSibling;if(null===r||!r)return e.closest(".exploration-panel")?.getElementsByClassName(t)[1];const o=r.getElementsByClassName(t);return o.length>0?o[o.length-1]:void 0})(t,n),!r){const e=t.closest(".exploration-panel")?.getElementsByClassName(n)[1];return e??null}}return r},PM=(e,t)=>{const{currentTarget:n}=e;if(n===t.items.draggableIconRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-item")[0];return void(e&&vM(e))}if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return void vM(e)}n===t.items.explorationItemFocusRef.current&&t.toggleCheckedById(t.id)},qM=e=>{const t=e.key===MD.Down?(e=>{const{currentTarget:t,key:n}=e,r=LM(t),o=t.closest("li");let i=o?.nextElementSibling?.getElementsByClassName(r)[0];return i||(i=MM(t,n),i)?i:t.closest(".exploration-panel")?.getElementsByClassName(r)[0]})(e):AM(e);t&&vM(t)},kM=(e,t)=>{const{key:n}=e;switch(n){case MD.Tab:if(e.shiftKey)e.preventDefault(),((e,t)=>{const{currentTarget:n}=e,r=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if(n===t.items.draggableIconRef.current){if(t.itemIndex>=0){const e=r&&r[t.itemIndex];return void(e&&vM(e))}const n=AM(e);n&&vM(n)}if(n===t.items.explorationItemFocusRef.current){const t=n.closest("li")?.previousElementSibling?.getElementsByClassName("exploration-draggable-icon")[0];if(t)return void vM(t);const r=AM(e);r&&vM(r)}})(e,t);else{const n=((e,t)=>{const{currentTarget:n,key:r}=e;if(e.shiftKey)return!0;if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return vM(e),!0}if(n===t.items.explorationItemFocusRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];return e&&vM(e),!0}if(n===t.items.draggableIconRef.current){const e=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const n=e&&e[t.itemIndex+1];return n&&vM(n),!0}const o=MM(n,r);if(!o)return!1;vM(o)}return!0})(e,t);n?gM(e):e.stopPropagation()}break;case MD.Down:case MD.Up:if(bM(e))break;gM(e),qM(e);break;case MD.Enter:if(e.currentTarget===t.items.explorationItemRef.current&&t.dragHandleRef){t.dragHandleRef(e.currentTarget);break}gM(e),PM(e,t);break;case MD.Space:gM(e),PM(e,t)}},TM=({children:e})=>fi.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1},children:e}),OM=({title:e,dragHandleRef:t,...r})=>{const[o,i]=Tf(Sh),a=qf(Xf),s=n.useRef(null),l=n.useRef(null),c=n.useRef(null),u={id:r.id,itemIndex:r.itemIndex,toggleCheckedById:i,items:{explorationItemRef:s,explorationItemFocusRef:l,draggableIconRef:c},dragHandleRef:t};return n.useEffect(()=>{t&&s.current&&t(s.current)},[t]),fi.jsxs(hc,{ref:s,className:"exploration-item",onClick:e=>{e.stopPropagation(),i(r.id)},onKeyDown:e=>{kM(e,u)},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"14px"},title:e,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${nR} inset`}},children:[fi.jsxs(hc,{ref:l,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDownCapture:e=>{kM(e,u)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${nR} inset`}},children:[fi.jsx(zc,{checked:-1!==r.id&&o.has(r.id),"aria-label":a("ChartExploration.ListItem.Label",e),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0,visibility:-1===r.id?"hidden":"visible"}}),fi.jsx(TM,{children:e})]}),fi.jsx(RM,{ref:c,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDownCapture:e=>{kM(e,u)}})]})},NM=e=>{const t=qf(GD(e))??"";return fi.jsx(OM,{title:t,...e})},jM=()=>{const e=qf(YD),t=qf(KD),n=qf(sR),r=kf(ZD);return fi.jsx(ID,{numberOfSections:2,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:n,onDragEnd:r,dragOverlayRenderer:cR,headerRenderer:EM,itemRenderer:NM})},_M=({itemIndex:e})=>{const t=qf(pR(e));return fi.jsx(lR,{children:t})},FM=()=>{const e=qf(Xf);return fi.jsx(CM,{children:e("Common.Values")})},zM=e=>{const{itemIndex:t}=e,n=qf(pR(t));return fi.jsx(OM,{title:n,...e})},WM=()=>{const e=qf(fR),t=qf(hR),n=qf(aR),r=kf(vR);return fi.jsx(hc,{className:"exploration-header-section",style:{height:"100%",display:"flex",flexDirection:"column-reverse"},children:fi.jsx(ID,{numberOfSections:1,numberOfItemsInSection:t,keyExtractor:e,emptyTexts:n,onDragEnd:r,dragOverlayRenderer:_M,headerRenderer:FM,itemRenderer:zM})})},$M=x((e,t)=>fi.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:fi.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"})})),HM=()=>{const[e,t]=Tf(Jf),r=qf(Xf),o=n.useRef(null),[i]=qf(hR),[a=0,s=0]=qf(KD),l=f(e=>{t(e.target.value)},[t]),c=0===e.length||0===a&&0===s&&0===i?r("Common.Search.NoResultsAvailable"):r("ChartExploration.Pivot.Search.ResultsFound",a.toString(),s.toString(),i.toString());return fi.jsxs(hc,{ref:o,onKeyDown:e=>{yM(e,o)},style:{position:"sticky",top:0,zIndex:10,width:"calc(100% - 24px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:0,paddingRight:12,paddingLeft:12,paddingBottom:12},children:[fi.jsx(DM,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:c}),fi.jsx(Jd,{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:l,startAdornment:fi.jsx(Ru,{position:"start",children:fi.jsx($M,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},VM=e=>{const t=_p();return fi.jsx(As,{theme:t,children:fi.jsx(Df,{children:fi.jsx(wh,{props:e,children:fi.jsxs(hc,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[fi.jsx(HM,{}),fi.jsx(jM,{}),fi.jsx(WM,{})]})})})})},BM=e=>{if(e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{component:VM,classification:{tags:["exploration"],exclusive:!0}}};var GM=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}(GM||{}),UM=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(UM||{}),YM=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(YM||{}),KM=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(KM||{});const XM=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,JM=e=>{if(!Array.isArray(e))return"";let t="{<";const n=[];if(e.forEach(e=>{let t,r=`[${e.field}]${e.exclude?"-":""}={`,o="}";switch(e.type){case YM.SEARCH:t=(e=>{let t="",n="";const r=e.options?.mode;if(!r)return"";switch(r){case GM.BEGINNING_OF_WORD:t="*^",n="*";break;case GM.ENDS_WITH:t="*";break;case GM.STARTS_WITH:n="*";break;case GM.MATCHES_EXACTLY:break;case GM.CONTAINS:default:t="*",n="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${n}"`:""})(e);break;case YM.CONDITION:t=(e=>{const{options:t}=e,n=t?.mode===UM.GENERAL,r=t?.modifier?.type===KM.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";n&&r?(i=`${t.conditionField?.aggregator}(${XM(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(i="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(i=`${t.conditionField?.aggregator}(${XM(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${XM(t.firstValue?.field)})`):(i=`${XM(e.field)}`,a=`${t.firstValue?.aggregator}(total ${XM(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let c="";if(o.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${XM(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${XM(t.secondValue?.field)})`,a=` and ${i}`),c=`${a}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case YM.CLEAR_SELECTION:t=`[${e.field}]=`,r="",o="";break;case YM.VALUES:default:t=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==t&&n.push(`${r}${t}${o}`)}),0===n.length)return;return t+=`${n.join(",")}>}`,t},ZM=[];for(let e=0;e<256;++e)ZM.push((e+256).toString(16).slice(1));const QM=new Uint8Array(16);function eA(e,t,n){return crypto.randomUUID?crypto.randomUUID():function(e){e=e||{};const t=e.random??e.rng?.()??crypto.getRandomValues(QM);if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(ZM[e[t+0]]+ZM[e[t+1]]+ZM[e[t+2]]+ZM[e[t+3]]+"-"+ZM[e[t+4]]+ZM[e[t+5]]+"-"+ZM[e[t+6]]+ZM[e[t+7]]+"-"+ZM[e[t+8]]+ZM[e[t+9]]+"-"+ZM[e[t+10]]+ZM[e[t+11]]+ZM[e[t+12]]+ZM[e[t+13]]+ZM[e[t+14]]+ZM[e[t+15]]).toLowerCase()}(t)}(e)}const tA=()=>crypto?.randomUUID?.()??eA(),nA=1e3,rA=1e3,oA=e=>{if(0===e.qInterColumnSortOrder.length)return;const t=e.qDimensions,n=((e,t)=>{const n=new Set;for(const t of e){if(n.has(t))return!0;n.add(t)}const r=e.includes(-1),o=e.filter(e=>-1!==e);if(t){const n=r?t.length+1:t.length;if(e.length!==n)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);n&&(e.qInterColumnSortOrder=((e,t)=>{const n=[];if(t)for(let e=0;e<t.length;e++)n.push(e);return e.qMeasures.length>=2&&n.push(-1),n})(e,t))},iA=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},aA=e=>{if(!e)return;oA(e);const t=e.qDimensions,{qInterColumnSortOrder:n}=e;((e,t=[])=>{const n=t.filter(e=>-1!==e);for(let r=0;r<n.length;r++)if(-1!==n[r]&&n[r]!==r){const o=n[r],i=n.indexOf(r),a=n[i];iA(n,r,i),iA(e,r,i),iA(t,t.indexOf(o),t.indexOf(a))}})(t,n)},sA=R;class lA extends sA{#c;#u;constructor(e,t){super(e),this.path=e.path,this.#c=t.translator,this.#u=t.flags.isEnabled}async#d(e,t,n,r,o=!1){if(!e||this.#p(e))return;const i=t??!1;if(e.qDef.cId||(e.qDef.cId=tA()),r)return this.addAlternativeDimension(e,i,n);if(this.getDimensions().length<this.maxDimensions()){const t=await(async(e,t,n,r,o=!1)=>{const i=e.getDimensions(),a=e.hcProperties.qNoOfLeftDims;return o||await e.autoSortDimension(t),aA(e.hcProperties),(-1===a||Number.isNaN(+a))&&(e.hcProperties.qNoOfLeftDims=i.length),n?((e,t,n,r)=>{if(!e)return;const{qInterColumnSortOrder:o,qNoOfLeftDims:i}=e,a=t.length,s=o.indexOf(-1),l=-1!==s,c=void 0!==r?r+(i||0):void 0;if(l&&void 0!==c&&s>=c?((e,t,n)=>{t.splice(n,1),t.push(e),t.splice(n+1,0,-1)})(a,o,s):o.push(a),void 0===r)t.push(n);else if(void 0!==c){const e=l&&c>s?c-1:c;t.splice(e,0,n)}})(e.hcProperties,i,t,r):((e,t,n,r)=>{if(!e||"number"!=typeof e.qNoOfLeftDims)return;const o=e.qNoOfLeftDims,{qInterColumnSortOrder:i}=e,a=t.length,s=i.indexOf(-1),l=-1!==s&&o>0&&s<o;if(i.push(a),l)void 0===r?t.splice(o-1,0,n):s<r?t.splice(r-1,0,n):(t.splice(r,0,n),i.splice(s,1),i.splice(s+1,0,-1));else{const e=r??o;t.splice(e,0,n),-1!==s&&(i.splice(s,1),i.splice(s+1,0,-1))}e.qNoOfLeftDims++})(e.hcProperties,i,t,r),t})(this,e,i,n,o);return this.#f({section:i?"columns":"rows",cId:e.qDef.cId,addLast:void 0===n}),t}}async addDimension(e,t,n,r){return this.#d(e,t,n,r)}async addDimensions(e,t,n){const r=[];for(const o of e){const e=await this.addDimension(o,n,void 0,t);e&&r.push(e)}return r}addAlternativeDimension(e,t,n){if(!e||this.#p(e))return;const r=this.getAlternativeDimensions();void 0===this.hcProperties.excludedNoOfLeftDims&&(this.hcProperties.excludedNoOfLeftDims=r.length);let o=n;return o=void 0===o?t?r.length:this.hcProperties.excludedNoOfLeftDims:t?this.hcProperties.excludedNoOfLeftDims+o:Math.min(o,this.hcProperties.excludedNoOfLeftDims),r.splice(o,0,e),t||this.hcProperties.excludedNoOfLeftDims++,this.#f({section:t?"columns":"rows",cId:e.qDef.cId,alternative:!0,addLast:void 0===n}),e}async addFieldDimension(e,t,n,r={}){const o=this.createFieldDimension(e,t,n);return this.addDimension(o,r.asColumn,void 0,!1)}async addFieldDimensions(e,t={}){const n=e.map(e=>this.createFieldDimension(e.field,e.label,e.defaults));return this.addDimensions(n,void 0,t.asColumn)}async addLibraryDimensions(e,t={}){const n=e.map(e=>this.createLibraryDimension(e.id,e.defaults));return this.addDimensions(n,void 0,t.asColumn)}reinsertDimension(e,t,n){e.qDef.cId||(e.qDef.cId=tA());if(this.getDimensions().length<this.maxDimensions())return this.addDimension(e,t,n);return this.reinsertAlternativeDimension(e,n,t)}reinsertAlternativeDimension(e,t,n){const r=this.getDimensions(),o=this.getAlternativeDimensions();if(r.length>=nA)return Promise.resolve();const i="number"==typeof t?t:o.length;return o.splice(i,0,e),this.#f({section:n?"columns":"rows",cId:e.qDef.cId,alternative:!0}),Promise.resolve(e)}async removeDimensions(e,t,n){return Promise.all([...e].reverse().map(e=>this.removeDimension(e,t,n)))}async removeDimension(e,t,n){if(t){const t=this.getAlternativeDimensions().splice(e,1)[0];return!n&&this.hcProperties.excludedNoOfLeftDims&&this.hcProperties.excludedNoOfLeftDims--,this.#h({cId:t.qDef.cId,section:n?"columns":"rows"}),t}const r=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=r.splice(e,1).at(0);if(s)return((e,t)=>{if(!e)return-1;const n=e.indexOf(t);if(-1===n)return-1;for(let n=0;n<e.length;++n)e[n]>t&&e[n]--;e.splice(n,1)})(this.hcProperties.qInterColumnSortOrder,e),aA(this.hcProperties),this.#h({cId:s.qDef.cId,section:n?"columns":"rows"}),s}#p(e){return!(!e||void 0===e.qDef.cId)&&[...this.getDimensions(),...this.getAlternativeDimensions()].some(t=>t.qDef.cId===e.qDef.cId)}async addMeasures(e,t=!1){const n=[];for(const r of e){const e=await this.addMeasure(r,t,void 0,!0);e&&n.push(e)}return n}addAlternativeMeasures(e,t){if(this.#m(e))return;const n=this.getAlternativeMeasures(),r=void 0===t?n.length:t,o=n.splice(r,0,e);return this.#g({cId:e.qDef.cId,alternative:!0,addLast:void 0===t}),o}async addMeasure(e,t,n,r){if(this.#m(e))return;if(e.qDef.cId||(e.qDef.cId=tA()),t)return this.addAlternativeMeasures(e,n);r||delete e.qDef.qNumFormat;const o=this.getMeasures();if(o.length<this.maxMeasures()){const t=1===o.length;return void 0!==n&&n>=0?o.splice(n,0,e):o.push(e),this.autoSortMeasure(e).then(()=>(t&&(this.hcProperties.qInterColumnSortOrder.push(-1),0===this.getDimensions().length&&(this.hcProperties.qNoOfLeftDims=0)),this.#g({cId:e.qDef.cId,addLast:void 0===n}),e))}return o.length<rA?(this.getAlternativeMeasures().push(e),this.#g({cId:e.qDef.cId,alternative:!0,addLast:void 0===n}),Promise.resolve(e)):Promise.resolve()}reinsertMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures(),o=this.hcProperties.qInterColumnSortOrder;if(e.qDef.cId||(e.qDef.cId=tA()),t=void 0!==t?t:n.length,n.length<this.maxMeasures()){if(n.splice(t,0,e),2===n.length){-1===o.indexOf(-1)&&o.push(-1)}this.#g({cId:e.qDef.cId})}else n.length<rA&&(t=r.length,r.splice(t,0,e),this.#g({cId: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.#h({cId:t.qDef.cId,section:"measures"}),t}const n=this.getMeasures();let r,o,i;if("number"==typeof e&&e<n.length){r=2===n.length,o=this.getMeasures().splice(e,1)[0];const t=this.hcProperties.qInterColumnSortOrder;r&&(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-n.length,1)[0]);if(o)return this.#h({cId:o.qDef.cId,section:"measures"}),o}async removeMeasures(e,t){return await Promise.all([...e].reverse().map(e=>this.removeMeasure(e,t))),e}#m(e){return!(!e||void 0===e.qDef.cId)&&[...this.getMeasures(),...this.getAlternativeMeasures()].some(t=>t.qDef.cId===e.qDef.cId)}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.#v("rows"),t=this.getDimensions();return e.filter(e=>e>=0).map(e=>t[e])}getColumnDimensions(){const e=this.#v("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)}#b(e){const t=this.hcProperties.rankedList?.[e];return t||this.createRankedList(e)}#y(e){return[...this.#b(e)]}#x(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}#w(e){const t=({qDef:t})=>t.cId===e;return!(!this.getAlternativeDimensions().some(t)&&!this.getAlternativeMeasures().some(t))}#v(e){const{qInterColumnSortOrder:t,qNoOfLeftDims:n}=this.hcProperties;if(this.#C())return"columns"===e?t:[];switch(e){case"rows":return-1===n?t:t.slice(0,n);case"columns":return-1===n?[]:t.slice(n);default:throw new Error(`Unknown section in #getInterColumnSortOrderBySection: ${e}`)}}#C(){const{qNoOfLeftDims:e}=this.hcProperties,t=-1===e||Number.isNaN(+e);return 0===this.getDimensions().length&&this.getMeasures().length>0&&t}#E(e){const t=this.hcProperties.qInterColumnSortOrder.indexOf(-1);if(-1===t)return!1;if(this.#C())return"columns"===e;if(void 0===this.hcProperties.qNoOfLeftDims)return"rows"===e;switch(e){case"rows":return t+1<=this.hcProperties.qNoOfLeftDims;case"columns":return t+1>this.hcProperties.qNoOfLeftDims;default:return!1}}#I(e,t=!0){const n=e=>-1===e?-1:e.qDef.cId;if("measures"===e)return this.getMeasures().concat(t?this.getAlternativeMeasures():[]).map(n);const r=this.#v(e),o=this.getDimensions(),i=r.map(e=>-1===e?-1:o[e]);switch(e){case"rows":return i.concat(t?this.getAlternativeRowDimensions():[]).map(n);case"columns":return i.concat(t?this.getAlternativeColumnDimensions():[]).map(n);default:throw new Error(`Unknown section in #isCorruptRankedList: ${e}`)}}isRankedListCorrupt(e){const t=this.hcProperties.rankedList?.[e],n=this.properties.qInfo?.qId;if(!t)return!0;if(new Set(t).size!==t.length){const r=t.filter((e,n)=>t.indexOf(e)!==n);return console.warn("Corrupt ranked list detected: duplicate ids",{duplicates:r,section:e,chartId:n}),!0}const r=this.#I(e);if(t.length!==r.length)return console.warn("Corrupt ranked list detected: length mismatch",{section:e,chartId:n,fieldIds:r,rankedList:t,diff:new Set(r).symmetricDifference(new Set(t))}),!0;const o=r.filter(e=>!t.includes(e));if(o.length>0)return console.warn("Corrupt ranked list detected: missing ids",{missingIds:o,section:e,chartId:n}),!0;const i=this.#I(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:n,orderMismatchIds:s}),!0)}createRankedList(e){switch(e){case"rows":case"columns":return this.#D({section:e});case"measures":return this.#R();default:throw new Error(`Unknown section in getRankedList: ${e}`)}}#D({section:e}){const t=this.getDimensions(),n=this.#v(e),r="columns"===e?this.getAlternativeColumnDimensions():this.getAlternativeRowDimensions(),o=n.map(e=>-1===e?-1:t[e].qDef.cId);return o.push(...r.map(e=>e.qDef.cId)),this.#x(e,o)}#R(){if(void 0!==this.hcProperties.rankedList?.measures&&!this.#u("SUPPORT-9810-MISSING-MEASURES")&&!this.#u("SUPPORT-9810-MIGRATE-RANKED-LISTS"))return this.hcProperties.rankedList.measures;const e=[...this.getMeasures(),...this.getAlternativeMeasures()].map(e=>e.qDef.cId);return this.#x("measures",e)}#L({section:e,cId:t,fields:n,addLast:r}){const o=this.#b(e),i=n.findIndex(e=>e.qDef.cId===t),a=n[i+1]?.qDef.cId,s=n[i-1]?.qDef.cId;if(r)o.push(t);else if(i>=0)if(a){const e=o.indexOf(a);o.splice(e,0,t)}else if(s){const e=o.indexOf(s);o.splice(e+1,0,t)}else o.push(t);return void 0===this.hcProperties.rankedList&&(this.hcProperties.rankedList={}),this.hcProperties.rankedList[e]}#f({section:e,cId:t,alternative:n=!1,addLast:r=!1}){if(void 0===this.hcProperties.rankedList?.[e])return this.#D({section:e});let o;return o="columns"===e?n?this.getAlternativeColumnDimensions():this.getColumnDimensions():n?this.getAlternativeRowDimensions():this.getRowDimensions(),this.#L({section:e,cId:t,fields:o,addLast:r})}#g({cId:e,alternative:t=!1,addLast:n=!1}){if(void 0===this.hcProperties.rankedList?.measures)return this.#R();const r=t?this.getAlternativeMeasures():this.getMeasures();return this.#M(),this.#L({section:"measures",cId:e,fields:r,addLast:n})}#M(){const e=this.#b("rows"),t=this.#b("columns");this.#E("rows")&&!e.includes(-1)?e.push(-1):this.#E("columns")&&!t.includes(-1)&&t.push(-1)}#A(){if(this.hcProperties.qInterColumnSortOrder.includes(-1))return;const e=this.#b("rows"),t=this.#b("columns"),n=e.indexOf(-1),r=t.indexOf(-1);-1!==n&&e.splice(n,1),-1!==r&&t.splice(r,1)}#h({cId:e,section:t}){const n=this.#b(t),r=n.indexOf(e);-1!==r&&(n.splice(r,1),this.#A())}async moveMeasureToAlternative(e){const t=this.getMeasures().findIndex(t=>t.qDef.cId===e),n=this.#y("measures"),r=n.indexOf(e);if(-1===t)return;const o=await this.removeMeasure(t);if(void 0===o)return;const i=n.slice(r+1).find(e=>this.getAlternativeMeasures().some(t=>t.qDef.cId===e)),a=this.getAlternativeMeasures().findIndex(e=>e.qDef.cId===i);this.addAlternativeMeasures(o,-1===a?void 0:a),this.#x("measures",n)}async moveMeasureFromAlternative(e){const t=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e),n=this.#y("measures"),r=n.indexOf(e);if(-1===t)return;const o=await this.removeMeasure(t,!0);if(void 0===o)return;const i=this.getMeasures().map(e=>e.qDef.cId),a=n.slice(r+1).find(e=>i.includes(e)),s=i.findIndex(e=>e===a);await this.addMeasure(o,!1,-1===s?void 0:s),this.#x("measures",n)}async moveDimensionToAlternative(e){const t=this.#S(e),n=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n||null===t)return;const r=this.#y(t),o=r.indexOf(e),i="columns"===t,a=await this.removeDimension(n,!1,i);if(void 0===a)return;const s=r.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;void 0!==this.addAlternativeDimension(a,i,l)&&this.#x(t,r)}async moveDimensionFromAlternative(e){const t=this.#S(e),n=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n||null===t)return;const r=this.#y(t),o=r.indexOf(e),i="columns"===t,a=await this.removeDimension(n,!0,i);if(void 0===a)return;const s=this.#I(t,!1),l=r.slice(o+1).find(e=>s.includes(e));let c=s.findIndex(e=>e===l);c=-1===c?void 0:c;void 0!==await this.#d(a,i,c,!1,!0)&&this.#x(t,r)}movePseudoDimension({toIndex:e,toSection:t}){const n=this.#S(-1);if(null===n)return void console.error("Cannot move pseudo dimension, unable to find it in any section",{toIndex:e,toSection:t});const r="columns"===t,o=n===t,i=this.#y(t);if(o){const e=i.indexOf(-1);i.splice(e,1)}else{const o=this.#b(n),i=o.indexOf(-1);if(-1===i)return void console.error("Couldn't delete pseudo dimension from current section",{toIndex:e,toSection:t,fromSection:n});o.splice(i,1),this.hcProperties.qNoOfLeftDims=r?Math.max(0,this.hcProperties.qNoOfLeftDims-1):this.hcProperties.qNoOfLeftDims+1}const a=e-i.slice(0,e).filter(e=>this.#w(e)).length,s=r?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.#x(t,i)}async moveDimension({cId:e,toIndex:t,toSection:n}){const r=this.#S(e),o=this.#w(e);if(null===r)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:n});const a=this.#y(n),s=a.indexOf(e);-1!==s&&a.splice(s,1);const l=Math.max(0,Math.min(t,a.length));l!==t&&console.warn("[moveDimension] toIndex is out of bounds, clamping it",{toIndex:t,clampedToIndex:l});const c=l-a.slice(0,l).filter(e=>this.#w(e)!==o).length,u="columns"===n,d="columns"===r,p=await this.removeDimension(i,o,d);if(void 0===p)return;void 0!==await this.addDimension(p,u,c,o)&&(a.splice(l,0,e),this.#x(n,a))}async moveMeasure({cId:e,toIndex:t}){const n=this.#w(e),r=(n?this.getAlternativeMeasures():this.getMeasures()).findIndex(t=>t.qDef.cId===e);if(-1===r)return void console.error("Cannot move measure, unable to find it in any section",{cId:e});const o=this.#y("measures"),i=o.indexOf(e);-1!==i&&o.splice(i,1);const a=Math.max(0,Math.min(t,o.length));a!==t&&console.warn("[moveMeasure] toIndex is out of bounds, clamping it",{toIndex:t,clampedToIndex:a});const s=await this.removeMeasure(r,n);if(void 0===s)return;const l=a-o.slice(0,a).filter(e=>this.#w(e)!==n).length;void 0!==await this.addMeasure(s,n,l)&&(o.splice(a,0,e),this.#x("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,n=Array.isArray(t)&&t.includes("$numeric"),r=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:r?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:tA(),qTags:Array.isArray(t)?t:[],isNumeric:n};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=JM(o),i}addFilters(e){const t=[];for(const n of e)t.push(this.addFilterField(n));return t}#P(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=JM(t),t}removeFilters(e){if(0===e.length)return[];const t=[...e].sort((e,t)=>t-e),n=this.getFilters().filter((t,n)=>e.includes(n));for(const e of t)this.#P(e);return n}getAddDimensionLabel(){return this.#c.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}var cA,uA={exports:{}};var dA=(cA||(cA=1,function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,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(r in e);return void 0===r||t.call(e,r)},s=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},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,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(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,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(r in e);return void 0===r||t.call(e,r)},s=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},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,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(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](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),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{r.r(o),r.d(o,{default:()=>Pe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var s=a[i];return a[i]=n,{updated:n,previous:s}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}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 c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.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 r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var n=e.crossAllDimensions;return 2===t&&n?"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),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(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 y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=b(u(r[0],o),h(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],o),p=u(r[1],o),f=h(0),m=h(1),g=b(d,f),v=b(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,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=c(f(t));if(!n.showExcludedValues)return a;var s=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),l=i?"":", 0";if(r&&1===r.length){var u=h(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.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 n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=h(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])})},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var s=S({properties:t,layout:n});return s>=o&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.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&&(r=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);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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={},R=Array.isArray;function L(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function M(e){return void 0===e}function A(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach(function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=M(e[n||t])?i:e[t],e=e[n||t]}}),e}function q(e,t){var n=!0;if(L(e)&&L(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(r){q(e[r],t[r])||(n=!1)}),n);if(R(e)&&R(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!q(e[r],t[r]))return!1;return!0}return e===t}D.generate=function(e,t,n){n=n||"";var r=[];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(n,"/").concat(o);q(i,a)||A(t,o)||(M(a)?r.push({op:"add",path:s,value:i}):L(i)&&L(a)?r=r.concat(D.generate(a,i,s)):R(i)&&R(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&M(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(q(t,o))return r;if(!M(t[0])&&M(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),o.splice(s,1)):r=r.concat(D.generate(o[s],t[i],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){M(t[o])&&!A(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})}),r},D.apply=function(e,t){t.forEach(function(t){var n,r,o=P(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(R(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(R(a)&&R(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(r)||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(L(a)&&L(t.value))n=a,Object.keys(n).forEach(function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!A(n,e)&&delete n[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 u=P(e,t.from);R(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(R(o)?o.splice(+i,1):delete o[i])})},D.clone=function(e){return I({},e)},D.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},D.updateObject=function(e,t){Object.keys(e).length?D.apply(e,D.generate(e,t)):I(e,t)};const k=D,T=function(e,n,r){if(!e)return Promise.resolve();var o=k.generate(n,r);return t()(!0,n,r),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 O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function j(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var _={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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=w.getNumStepComp(n,l),p=w.getAboveComp(n,l,u,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:n,properties:r,layout:o})){var h=w.getDimComp(c,1),m=w.getDimComp(c,0),g=w.getAggrComp(f,h,m);f=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={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 n=N(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=N(t,e);return n&&!n.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,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var z="movingAverage";function W(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===z)return n[r]}function $(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=w.getNumDimensions({properties:o,layout:a}));var u=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=w.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(r,c),h=w.getAboveComp(r,c,p,f);if(r.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var n=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var v=t;if(w.needDimension({modifier:r,properties:o,layout:a})){var b=w.getDimComp(u,1),y=w.getDimComp(u,0),x=w.getAggrComp(v,b,y);v=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,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]:{},n={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 n=W(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=W(t,e);return n&&!n.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,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=W(t,e);return i&&!i.disabled}};return n}};var B="timeSeriesDecomposition";function G(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===B)return n[r]}function U(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===B)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?w.generateTSDExpression(n,t,r):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]:{},n={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,n){var r=G(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.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 n=G(t,e);return n&&!n.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(B))return!1;var i=G(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Z(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):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,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=w.getAboveComp(n,l,u),p="".concat(u," - ").concat(d);if(w.needDimension({modifier:n,properties:r,layout:o})){var f=w.getDimComp(c,1),h=w.getDimComp(c,0),m=w.getAggrComp(p,f,h);p=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,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]:{},n={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,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;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,n){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return w.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:r,layout:o}));var c=i(r,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(o,i),d=ce(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=w.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(p,"))")}(u,d,n.field,n.value,p,l,n.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]:{},n={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(re(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(n){return function(e,t,n){var r=[{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 r=function(e,t){if(1===e){var n=oe(t,0);t.splice(n,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(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(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=oe(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=oe(t,1);t.splice(n,1)}return t}(ne(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(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,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};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",be="qDef.base.qDef",ye="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",Re={initBase:function(e,t){(t||Re.isValid(e))&&(n(e,be,i(e,ve)),n(e,xe,i(e,ye)),n(e,Ce,i(e,Se)),n(e,Ee,i(e,we)))},restoreBase:function(e){Re.isValid(e)&&(n(e,ve,i(e,be)),n(e,ye,i(e,xe)),n(e,Se,i(e,Ce)),n(e,we,i(e,Ee)),i(e,Ie)&&i(e,De)&&n(e,Ie,i(e,De)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),n=i(e,xe);return void 0!==t||void 0!==n}};const Le=Re;function Me(e){return Me="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},Me(e)}var Ae={accumulation:F,movingAverage:V,difference:ee,normalization:ue,timeSeriesDecomposition:K};const Pe={modifiers:Ae,apply:ke,applyModifiers:Te,cleanUpMeasure:Oe,destroy:function(e){e&&qe[e.id]&&qe[e.id].masterItemSubscriber&&(qe[e.id].masterItemSubscriber&&qe[e.id].masterItemSubscriber.unsubscribe(),delete qe[e.id])},hasActiveModifiers:Ne,getActiveModifier:je,initBase:Le.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Ae[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return Ae[e]&&Ae[e].isApplicable({properties:n,layout:r})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=ze(e);Ue({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Ze({modifiers:t,properties:n,layout:r}))}),o&&!i},ifEnableTotalsFunction:_e};var qe={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;qe[n.id]=qe[n.id]||{isFirstTime:!0};var c=qe[n.id].isFirstTime;if(qe[n.id].isFirstTime=!1,r&&"object"===Me(r))return Te({model:n,properties:r});var u=n?n.layout:void 0,d=i(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(u,"qHyperCube.qMeasureInfo"),f=qe[n.id].lastReloadTime;if(qe[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:u})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({measure:e,properties:n,layout:r})})}({measures:t,layout:n})}({measures:p,layout:u,model:n,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some(function(e){return function(e){var t=e.measure,n=e.layout;return Ue({modifiers:ze(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})}))}({measures:p,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then(function(e){var r=t()(!0,{},e);$e(r);var o=Qe(r);return Ye({model:n}).then(function(t){return Ke({libraryIds:o,model:n}).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 n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach(function(e){if("object"===Me(e)&&!e.disabled){if(n++,"object"!==Me(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(r)&&(t.qDef.base.qDef=r)}})}}({measure:e,properties:t})})}({properties:r}),Te({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Me(e.base)})}(p)?n.getEffectiveProperties().then(function(e){return function(e){var n=e.model,r=e.properties,o=Qe(r);return et({model:n,libraryIds:o}).then(function(){var e=t()(!0,{},r);return Fe(r).forEach(function(e){return Oe(e)}),Je({oldProperties:e,newProperties:r,model:n})})}({model:n,properties:e})}):Promise.resolve(l)}function Te(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},o):o),$e(o);var p=Qe(o);return et({model:n,libraryIds:p,masterItem:c}).then(function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach(function(e){return Oe(e)}),Promise.resolve();var l=a?void 0:Qe(r);return Ye({model:o,dimensionAndFieldList:s}).then(function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then(function(o){n.forEach(function(n){Ue({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Le.isValid(n)||Le.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach(function(e){if("object"===Me(e)&&!e.disabled){if(s++,"object"!==Me(Ae[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)");Ae[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ae[r.type].generateExpression({expression:s,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ae[r.type].updateModifier&&Ae[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Ae[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}})}({measure:n,properties:r,libraryItemsProps:o,dimensionAndFieldList:e}),He(n)):Oe(n)})})})}({measures:a,properties:o,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)})})}function Oe(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some(function(e){return"object"===Me(e)&&!e.disabled&&!Ae[e.type]})}(e)?Le.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({modifiers:ze(e),properties:n,layout:r})})}function je(e){var t=ze(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ae[r.type]&&!r.disabled)return r}}function _e(e){var t=je(e);return!t||Ae[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 n=je(e);n&&(void 0!==n.outputExpression&&We(n)!==e.qDef.qDef?delete e.qDef.base:!Le.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)})}function He(e){var t=ze(e);Array.isArray(t)&&t.forEach(function(t){"object"===Me(t)&&(t.disabled||!Ae[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,n=e.properties,r=e.layout;return!Be(t)&&Ue({modifiers:ze(t),properties:n,layout:r})}function Ue(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Me(e)||e.disabled||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[e.type].isApplicable({properties:n,layout:r})),o[e.type])})}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});r.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return r.push(a),Promise.all(r).then(function(){return o})}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=n.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=n.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,n=e.newProperties,r=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):T(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Me(e)&&!e.disabled&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:n,layout:r})})}function Qe(e){var t=Fe(e),n=[],r=[],o=!1;return t.forEach(function(t){var r=ze(t);if(Ue({modifiers:r,properties:e})){var i=Be(t);i&&n.push(i),o=o||Ze({modifiers:r,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(qe[t.id].masterItemSubscriber=qe[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=i(e,"qInfo.qType");return n&&s[n]&&s[n].forEach(function(n){t[n]=i(e,n)}),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var o=l(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then(function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var n=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:n,dimensionLibraryIds:i}),Object.keys(r).forEach(function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])}),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!r[e]&&s.push(u(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach(function(e){r[e].listener.dispose()}),r={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),qe[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](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);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),o=Math.floor(n/62);return o>0?t(o)+r:r}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)}n.d(r,{default:()=>$e});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+r[a+1])?{}:[]),i=i[s]}void 0!==n?i[o]=n: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 n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(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 c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var p=n(8),f=n.n(p);const h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var s,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,l(r.qMeasures));var a,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach(function(e){t.properties[e]=n[e]})},b=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])}),delete n.qLayoutExclude.disabled),n.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)})}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=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,n){var r,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(r=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=s}var S=n(909),w=n.n(S);function C(e,t){var n=w()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function E(e,t){return w()(!0,{},t,e)}function I(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var D=Math.pow(2,53)-1;function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const M=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},A=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},P=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},q=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}}},k=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(c):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(c):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.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,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},_=function(e){var t=e.exportFormat,n=e.initialProperties,r=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&&r?i.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.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,{},n,o)).components&&(o.components=[]),o},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,n=e.maxDimensions,r=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>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(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=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},W=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return R(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 R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(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),r.dimensions.added(e,n)})}},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return L(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 L(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(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),r.measures.added(e,n)})}},H=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&f().isSupportedModifiers(n)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach(function(t){i.setValue(e,t,n[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const B={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,n||""),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}),n&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),b({exportFormat:o,properties:a}),r||y(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,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=_({exportFormat:t,initialProperties:r,hypercubePath:c}),v=i.getValue(r,c||"").qHyperCubeDef,b=i.getValue(g,c||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,I=void 0===E?q():E,D=l.defaultMeasure,R=void 0===D?k():D;b.qDimensions.length=0,b.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:b}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:I}),O({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:b,defaultMeasure:R}),W({newProperties:g,dataDefinition:a,hypercubePath:c}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),j({exportFormat:t,newHyperCubeDef:b}),A("qMaxStackedCells",v,b),A("qNoOfLeftDims",v,b),P("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",v,b,"S"),P("qReductionMode",v,b,"N"),P("qSortbyYValue",v,b),P("qIndentMode",v,b),P("qShowTotalsAbove",v,b),M(g,t,r),m.qProperty=g;var L=i.getValue(u||{},"support.modifiers");return H({measures:b.qMeasures,modifierTypes:L}),p&&V(m.qProperty,"storedFilters"),"S"===b.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,n,r){t=t||[];var o=u(e,r,n),i=u(t,r,n);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 n={};return t&&Object.keys(t).forEach(function(e){n[e]=t[e]}),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],s=t.length;if(U(a,t,r,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,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}),t.forEach(function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(r,o);var l=r[r.length-1];if(l){var c=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),u=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(c){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:f,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:p})}n?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.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)}(n,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}(n,r),i&&(s.expression=i)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));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,n,r){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(ne(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 n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=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):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.setValue(e,"color.mode","primary"),te(r,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,n=e.properties,r=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,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",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},ve={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=B.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",c),K.moveByIdFromGroup(a,[],"qAttributeExpressions",c),K.moveByIdFromGroup(s,[],"qAttributeExpressions",u),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=B.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.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=ce(d,p),v=ue({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),u}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(n,"unsupportedAutoMinMax")||w()(n.measureAxis,t.measureAxis):V(n,"supportedAutoMinMax")||w()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=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:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(r)&&t[o].type[r]++,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,n.properties.measureAxes[t[0].axis])):w()(s,n.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},we={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),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,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=ve.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Ce(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ee(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach(function(e){return function(e){var t=e.properties,n=e.quarantineName,r=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 c=Ce(n,r,l);i.setValue(t,c,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})})}function Ie(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach(function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(n,r,s),c=i.getValue(t,l);void 0!==c&&(i.setValue(o,a,c),i.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})})}var De="qHyperCubeDef.qMeasures",Re="conditionalColoring",Le="measures",Me="qDef.conditionalColoring";const Ae={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Re,arrayName:Le,itemPath:Me})},unquarantine:function(e){Ie({properties:e,arrayPath:De,itemPath:Me,arrayName:Le,quarantineName:Re})}};var Pe="qHyperCubeDef.qMeasures",qe="measures",ke="qHyperCubeDef.qDimensions",Te="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",Fe="qCalcCondition",ze="conditionalShowHide";const We={quarantine:function(e){Ee({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:qe,itemPath:Fe}),Ee({properties:e,arrayPath:ke,quarantineName:ze,arrayName:Te,itemPath:Fe})},unquarantine:function(e){Ie({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:qe,itemPath:Fe}),Ie({properties:e,arrayPath:ke,quarantineName:ze,arrayName:Te,itemPath:Fe})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Ne,itemPath:Fe}),Ee({properties:e,arrayPath:je,quarantineName:ze,arrayName:_e,itemPath:Fe})},unquarantineAlternative:function(e){Ie({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Ne,itemPath:Fe}),Ie({properties:e,arrayPath:je,quarantineName:ze,arrayName:_e,itemPath:Fe})}},$e={hypercube:B,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Ie,conditionalColoring:Ae,conditionalShow:We}})(),r.default})()}(uA)),uA.exports),pA=Pr(dA);const fA="qHyperCubeDef.qMeasures",hA="measures",mA="qHyperCubeDef.qDimensions",gA="dimensions",vA="qDef.representation",bA="tableRepresentation",yA="qDef.conditionalColoring",xA="conditionalColoring",SA="qMiniChartDef",wA="miniChartDef",CA=e=>{pA.unquarantineArrayProp({properties:e,arrayPath:mA,itemPath:vA,arrayName:gA,quarantineName:bA}),pA.unquarantineArrayProp({properties:e,arrayPath:fA,itemPath:vA,arrayName:hA,quarantineName:bA}),pA.unquarantineArrayProp({properties:e,arrayPath:fA,itemPath:yA,arrayName:hA,quarantineName:xA}),pA.unquarantineArrayProp({properties:e,arrayPath:fA,itemPath:SA,arrayName:hA,quarantineName:wA})},EA=e=>{pA.quarantineArrayProp({properties:e,arrayPath:mA,itemPath:vA,arrayName:gA,quarantineName:bA}),pA.quarantineArrayProp({properties:e,arrayPath:fA,itemPath:vA,arrayName:hA,quarantineName:bA}),pA.quarantineArrayProp({properties:e,arrayPath:fA,itemPath:yA,arrayName:hA,quarantineName:xA}),pA.quarantineArrayProp({properties:e,arrayPath:fA,itemPath:SA,arrayName:hA,quarantineName:wA})};function IA(e){const{translator:t}=e;return{targets:[{path:"/qHyperCubeDef",dimensions:{min:1,max:1e3,description(e,n,r){const o="rows"===r?.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")}}]}}const DA="qHyperCubeDef.qDimensions",RA="dimensions",LA="qOtherTotalSpec.qTotalMode",MA="totalMode",AA={quarantine(e){pA.quarantineArrayProp({properties:e,arrayPath:DA,quarantineName:MA,arrayName:RA,itemPath:LA})},unquarantine(e){pA.unquarantineArrayProp({properties:e,arrayPath:DA,quarantineName:MA,arrayName:RA,itemPath:LA})}};function PA(e){const t=IA(e);return(e,n,r,o)=>{const i=pA.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),a=i.qProperty.qHyperCubeDef.qDimensions.length,s=i.qProperty.qHyperCubeDef.qMeasures.length;let l,c=i.qProperty.qHyperCubeDef.qInterColumnSortOrder,u=!0;a+s===c.length&&nM(i,"qProperty.qLayoutExclude.quarantine.interColSortOrder",c.concat());const d=i.qProperty.qLayoutExclude.quarantine?.pivotInterColSortOrder;d?(c=d,l=[...d],nM(i,"qProperty.qHyperCubeDef.qInterColumnSortOrder",c),i.qProperty.qLayoutExclude.quarantine&&delete i.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):c.length=0;const p=+(c.indexOf(-1)>-1),f=a+p;if(f>c.length)for(let e=c.length;e<f;e++)c.indexOf(e)<0&&c.push(e-p);for(let e=c.length-1;e>=0;e--)c[e]>=a&&c.splice(e,1);s>1&&c.indexOf(-1)<0?c.push(-1):s<2&&c.indexOf(-1)>-1&&c.splice(c.indexOf(-1),1);const h=i.qProperty.qHyperCubeDef.qNoOfLeftDims??-1;if(a>0&&-1===h&&nM(i,"qProperty.qHyperCubeDef.qNoOfLeftDims",a),l?.length===c.length){for(let e=0;e<l.length;e++)if(l[e]!==c[e]){u=!1;break}u&&(pA.unquarantineProperty(i.qProperty,"noOfLeftDims"),pA.unquarantineProperty(i.qProperty,"excludedNoOfLeftDims "))}return pA.unquarantineProperty(i.qProperty,"rankedList"),pA.conditionalShow.unquarantine(i.qProperty),AA.unquarantine(i.qProperty),CA(i.qProperty),pA.unquarantineProperty(i.qProperty,"pivotTableIndentMode"),i}}function qA(e,t){const n=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,r=n.slice(),o=n.indexOf(-1);o>-1&&n.splice(o,1);const i=pA.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),a=i.properties.qHyperCubeDef,s=a.qDimensions.length,l=a.qMeasures.length;let c=a.qInterColumnSortOrder;nM(i,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",r),pA.quarantineProperty(i.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete i.properties.qHyperCubeDef.qNoOfLeftDims,pA.quarantineProperty(i.properties,"qHyperCubeDef.rankedList","rankedList"),delete i.properties.qHyperCubeDef.rankedList;const u=i.properties.qLayoutExclude.quarantine?.interColSortOrder;u&&(c=u,nM(i,"properties.qHyperCubeDef.qInterColumnSortOrder",c),nM(i,"data.0.interColumnSortOrder",c),i.properties.qLayoutExclude.quarantine&&delete i.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=c.length;e<s+l;e++)c.length<=e&&c.push(e);return pA.quarantineProperty(i.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),pA.quarantineProperty(i.properties,"qHyperCubeDef.excludedNoOfLeftDims ","excludedNoOfLeftDims "),pA.conditionalShow.quarantine(i.properties),AA.quarantine(i.properties),EA(i.properties),i}const kA=e=>({dimensions:{min:1,max:1e3,description(t,n,r){const o="rows"===r?.type?"Visualizations.Descriptions.Row":"Visualizations.Descriptions.Column";return e.translator.get(o)}},measures:{min:1,max:1e3,description:()=>e.translator.get("Visualizations.Descriptions.Values")}}),TA=["rows","columns","measures"],OA=e=>{if(!e.flags.isEnabled("SUPPORT-9810-MIGRATE-RANKED-LISTS"))return;const t=new lA({},e);return{properties:e=>(t.setProperties(e),TA.forEach(e=>{t.isRankedListCorrupt(e)&&t.createRankedList(e)}),e)}},NA={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let jA=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}({}),_A=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const FA=e=>{switch(e?.type){case"url":return jA.Link;case"image":return jA.Image;case"indicator":return jA.Indicator;case"miniChart":return jA.MiniChart;default:return jA.Text}},zA=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,n,r){const{qIndentMode:o}=r.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}}),WA=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>FA(e.qDef.representation)===jA.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,n)=>{if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:r,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=n.properties.qHyperCubeDef;let s=!1;const l=i?.indexOf(e)??1/0;return(r?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},$A=e=>{const{anything:t}=e,n=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:zA({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>FA(e.qDef.representation)===jA.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>FA(e.qDef.representation)===jA.Link&&e.qDef.representation?.urlPosition===_A.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>FA(e.qDef.representation)===jA.Link&&e.qDef.representation?.urlPosition===_A.Attribute},...WA(n)}},HA=(e,t)=>{const{anything:n}=e,r=n.sense?.isUnsupportedFeature,o=!r?.("tableImages")&&t[jA.Image],i=!r?.("qMiniChartDef")&&t[jA.MiniChart],a=!r?.("tableIndicators")&&t[jA.Indicator],s=o&&t[jA.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(n)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>FA(e.qDef.representation)===jA.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 VA=function(e){return e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot",e}({}),BA=function(e){return e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel",e}({}),GA=function(e){return e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid",e}({}),UA=function(e){return e.Forward="forward",e.Backward="backward",e.None="none",e}({});const YA="image",KA=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder?.indexOf(-1)??-1;let o=n.properties.qHyperCubeDef.qNoOfLeftDims??-1;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},XA=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:qD.Auto,translation:"Common.Auto"},{value:qD.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:qD.Pixels,translation:"Object.Table.Column.Pixels"},{value:qD.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:qD.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:PD.PixelsDefault,show:e=>e.qDef.columnWidth?.type===qD.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:PD.PercentageDefault,show:e=>e.qDef.columnWidth?.type===qD.Percentage}}),JA=({key:e,translation:t,env:n})=>{const r=!n.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=>!r||"labelTextAlign"===e||t.qDef.representation?.type!==YA},[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&&(!r||"labelTextAlign"===e||t.qDef.representation?.type!==YA)}}},ZA="TOTAL_OFF",QA={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:BA.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:BA.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:BA.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:BA.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:BA.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:BA.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},eP="TOTAL_OFF",tP={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:BA.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:BA.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:BA.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:BA.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:BA.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:BA.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},nP=e=>{const{translator:t,anything:n,flags:r}=e,o=(e=>{const{translator:t,anything:n,flags: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:ZA,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:ZA,translation:"properties.off"},show:!n.sense?.isUnsupportedFeature?.("totals")&&KA},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,r)=>!n.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==ZA&&KA(e,0,r)},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",grouped:e.flags.isEnabled("VNA-727-HEADER-COLOR-EXPRESSION-PIVOT"),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},...r.isEnabled("VNA-727-HEADER-COLOR-EXPRESSION-PIVOT")?{headerColoring:{type:"items",items:{headerText:{component:"text",translation:"properties.Header",style:"sHeader"},headerBackground:{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},headerForeground:{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}}},contentColoring:{type:"items",items:{contentText:{component:"text",translation:"properties.Content",style:"sHeader"},cellColoring:QA}},alignmentAndRepresentationAndResize:{type:"items",items:{...JA({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...JA({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...$A(e),...XA()}}}:{cellColoring:QA,...JA({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...JA({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...$A(e),...XA()}}}}},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",grouped:e.flags.isEnabled("VNA-727-HEADER-COLOR-EXPRESSION-PIVOT"),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},...r.isEnabled("VNA-727-HEADER-COLOR-EXPRESSION-PIVOT")?{headerColoring:{type:"items",items:{headerText:{component:"text",translation:"properties.Header",style:"sHeader"},headerBackground:{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},headerForeground:{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}}},contentColoring:{type:"items",items:{contentText:{component:"text",translation:"properties.Content",style:"sHeader"},cellColoring:QA}},alignmentAndRepresentationAndResize:{type:"items",items:{...JA({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...JA({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...HA(e,{[jA.Image]:!0,[jA.Indicator]:!0}),...XA()}}}:{cellColoring:QA,...JA({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...JA({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...HA(e,{[jA.Image]:!0,[jA.Indicator]:!0}),...XA()}}}}},filter:{type:"object",component:"filter-item-react",ref:"filter",tabName:"SimpleProperties.Filters.Filters"}}}})(e);return r.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:eP,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:eP,translation:"properties.off"},show:!n.sense?.isUnsupportedFeature?.("totals")&&KA},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,r)=>!n.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==eP&&KA(e,0,r)},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:tP,...JA({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...JA({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...$A(e),...XA()}},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:tP,...JA({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...JA({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...HA(e,{[jA.Image]:!0,[jA.ImagesInIndentMode]:!0,[jA.Indicator]:!0}),...XA()}},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"}}}}}},rP=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:r??!1,defaultValue(e,t,o){const i=r?.(e,t,o)??!1,a=o.theme.current(),s=n(a,i);return{color:"transparent"===s?"none":s}}}),oP=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},iP=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>oP(e,!0))],l=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...JR(r).filter(e=>!a.includes(e)).map(e=>oP(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),aP=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],sP=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{const r=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,r,...o])),a=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>oP(e,!1))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...aP.filter(e=>!i.includes(e)).map(e=>oP(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),lP=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:iP({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:sP({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:n}),fontColor:rP(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:rP(`${e}.background`,"properties.background",(t,n)=>{const r=n?xR.WHITE:xR.TRANSPARENT;return o(t,e,"backgroundColor")??r},a)}}}}),cP=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({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:rP(`${e}.fontColor`,void 0,t=>r(t,e,"color")??t.color)}},background:rP(`${e}.background`,"properties.background",t=>r(t,e,"backgroundColor")??n??"transparent")}}}}),uP=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map(e=>({value:e+1,translation:e+1})),defaultValue:1}),dP="12px",pP="Source Sans Pro, sans-serif",fP="600",hP=15e3,mP=4/3;let gP=function(e){return e.Transparent="transparent",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2",e}({}),vP=function(e){return e.Solid="solid",e.None="none",e}({});const bP={display:"flex",justifyContent:"center",alignItems:"center"},yP={borderStyle:"solid"},xP={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},SP={lineHeight:mP,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},wP=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),CP=(e,t)=>e>0?`${e}px ${vP.Solid} ${t}`:vP.None,EP=(e,t,n,r,o)=>{const i=Number(!t||o?.right),a=Number(!e||o?.bottom);return{borderRight:"rtl"!==r?CP(i,n):vP.None,borderBottom:CP(a,n),borderLeft:"rtl"===r?CP(i,n):vP.None,borderTop:vP.None}},IP=(e,t,n,r,o,i,a)=>{const s=EP(t,r,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=CP(2,o)),n||(s.borderLeft="rtl"!==i?CP(1,o):"none",s.borderRight="rtl"===i?CP(1,o):"none")),s},DP=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=CP(1,n)),t&&(r.borderRight=CP(1,n)),r},RP=(e,t,n)=>{switch(t){case"header":return e.object?.pivotTableV2?.dimension?.label?.name?.[n];case"dimensionValues":return e.object?.pivotTableV2?.dimension?.label?.value?.[n];case"measureLabels":return e.object?.pivotTableV2?.measure?.label?.name?.[n];case"measureValues":return e.object?.pivotTableV2?.measure?.label?.value?.[n];case"totalValues":return e.object?.pivotTableV2?.total?.label?.value?.[n];case"nullValues":return e.object?.pivotTableV2?.null?.label?.value?.[n];default:return}},LP=(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:lP({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:RP}),dimensionValueSection:lP({section:"dimensionValues",translator:e,flags:t,getThemeValue:RP}),measureValueSection:lP({section:"measureValues",translator:e,flags:t,getThemeValue:RP}),measureLabelSection:cP({section:"measureLabels",getThemeValue:RP}),totalValuesSection:cP({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:RP}),nullValuesSection:cP({section:"nullValues",fallbackBackground:gP.NullValueBackground,getThemeValue:RP}),gridSection:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:uP("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:uP("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"),border:rP("grid.border","properties.border",e=>e.object?.pivotTableV2?.grid?.borderColor??gP.DividerLight),divider:rP("grid.divider","properties.pivot.divider",e=>e.object?.pivotTableV2?.grid?.divider?.borderColor??gP.DividerDark),background:rP("grid.background","properties.background",e=>e.object?.pivotTableV2?.grid?.backgroundColor??gP.Transparent)}}}}}}]}),MP=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}}},AP=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[LP(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:qD.Auto,translation:"Common.Auto"},{value:qD.Pixels,translation:"Object.Table.Column.Pixels"},{value:qD.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:qD.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:PD.PixelsDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===qD.Pixels}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:PD.PercentageDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===qD.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,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}]},...MP(t)}}),PP="auto",qP={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:PP,translation:"Object.Table.SortingInSearch",options:[{value:PP,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function kP(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:nP(e),sorting:qP,addons:NA,settings:AP(t,n)}}}function TP(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:kP(e),importProperties:PA(e),exportProperties:qA,exploration:BM(e),data:kA(e),migrate:OA(e),propertyHandler:e.flags.isEnabled("VNA-147_NEBULA_PIVOT_DATA_HANDLERS")?t=>new lA(t,e):void 0}}const OP=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function NP(e,t){return L(()=>e,t)}const jP={},_P=e=>{const t=L(()=>({current:jP}),[]);return t.current=t.current===jP?e:t.current,t},FP=e=>!!e&&0===TR(e).a,zP="#grid",WP=(e,t)=>{const n=t?.closest(e);return n&&window.getComputedStyle(n).backgroundColor},$P=(e,t,n,r,o)=>{const i=WP(".qv-object .qv-inner-object",n),a=WP(".qv-panel-sheet",n),s=WP(zP,n)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),n=t?.bgColor?.colorExpression,r=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&n)return mM(n);if("none"===r)return"transparent";if(void 0===r)return;const i=TR(r);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),c=r?.(t),u=o?.(t),d=l||c||i||u,p=FP(d),f=!FP(h=p?s:d)&&pM(h,xR.TEXT,xR.DARK_MODE_TEXT)===MR(xR.DARK_MODE_TEXT);var h;const m=((e,t,n,r=xR.WHITE)=>e&&!FP(e)?e:FP(t)?n&&!FP(n)?n:r:t)(l,d,s);return{color:d,headerColor:m,isDark:f}},HP=(e,t,n,r)=>{const o=k(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[n,r]=P([]);return q(()=>{let n;return e&&(n=new MutationObserver(e=>{r(e)}),n.observe(e,t)),()=>{n?.disconnect()}},[e,t]),n})(t.closest(zP),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return L(()=>({...o,background:$P(e,o,t,n,r)}),[o.name(),t,n,r,e,i])};function VP(e,t){const n=L(()=>({isLoading:!0}),t),[r,o]=A(async()=>{try{return await e()}finally{n.isLoading=!1}},t);return[r,n.isLoading,o]}const BP=3,GP=/\n/g;function UP(e,t,n){let r=0,o=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=n(a),c=n(s);if(l>t&&c<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?r=i+1:o=i}return null}function YP({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=BP,allowLineBreaks:a=!0}=o??{},{estimateWidth:s,measureText:l,estimateLineCount:c}=v(()=>(({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o)=>{const{maxNbrLinesOfText:i=BP,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const s=o.measureText.bind(o),l=rM(e=>{if(void 0===e)return 0;if(a){const t=e.split(GP).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(GP," ");return s(t).width}),c=e=>+l(e).toFixed(2),u=rM(({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;const r=a?e.split(GP):[e];let o=0;for(const e of r){let n=e;do{o+=1,n=UP(n,t,c)}while(null!==n&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:u}}})({fontStyle:n,fontWeight:r,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[n,r,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:c}}var KP,XP={};var JP=function(){if(KP)return XP;KP=1;var e=E;return XP.createRoot=e.createRoot,XP.hydrateRoot=e.hydrateRoot,XP}();const ZP="Source Sans Pro, sans-serif";function QP(e,t){const[n,r]=m(t);n.some((e,n)=>e!==t[n])&&(r(t),e())}var eq={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 tq=({translator:e})=>(v(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(eq).forEach(t=>{e.add(eq[t])})}}(e)},[e]),e),nq={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},rq={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},oq=Ls("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-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":{...nq},"&::-moz-range-track":{...nq},"&::-ms-track":{...nq},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...rq},"&::-moz-range-thumb":{...rq},"&::-ms-thumb":{...rq},"&: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"}})),iq=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:c,isLeftColumn:u,accessibilityRelatedArgs:d,direction:p="ltr"})=>{const f=tq({translator:d.translator}),h=l({initWidth:e,columnWidth:e,initX:0}),m=n?0:1,g=r&&!u,v=()=>g?h.current.columnWidth-m:"100%",b={left:"rtl"!==p?v():void 0,right:"rtl"===p?v():void 0},y=t=>{h.current={initWidth:e,columnWidth:e,initX:t??h.current.initX}};QP(()=>{g&&y()},[e]);const x=e=>{const t=Math.max(e,PD.PixelsMin);h.current.columnWidth=t,i(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:qD.Pixels,pixels:h.current.columnWidth};a(e)}c?.(!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=>{gM(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=>{gM(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",I),S()},D=!r&&s?e=>{if(e.key===MD.Left||e.key===MD.Right){gM(e);const t=5,n=e.key===MD.Left?t:-t,r="rtl"===p?n:-n;c?.(!0),x(h.current.columnWidth+r)}else e.key===MD.Space||e.key===MD.Enter?(gM(e),s(e),c?.(!1),S()):e.key===MD.Esc&&(gM(e),s(e),c?.(!1),x(h.current.initWidth))}:void 0,R=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return fi.jsx(oq,{style:b,hoverColor:o,isLastColumn:n,className:AD,"data-testid":AD,onMouseDown:e=>{gM(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),c?.(!0),y(e.clientX)},onDoubleClick:()=>{a({type:qD.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(gM(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",I),c?.(!0),y(e.touches[0].clientX))},onKeyDown:D,onBlur:s,onFocus:()=>{y()},type:"range",tabIndex:-1,"aria-label":R,"aria-valuemin":PD.PixelsMin,"aria-valuemax":PD.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p},t)},aq=x((e,t)=>fi.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:fi.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),sq=Ls(hc,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:n})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:n?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:n?"100%":void 0,alignItems:"center",justifyContent:"center"})),lq=Ls(aq,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),cq=Ls(Md)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),uq=Ls(lu)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),dq=Ls(Td)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),pq=Ls(Td,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:n})=>({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:n?"rgba(0, 0, 0, 0.05)":"transparent"})),fq=Ls("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),hq=Ls("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),mq=Ls(Al)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),gq=Ls(nd,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),vq=x((e,t)=>fi.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:fi.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),bq=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?bq(t):t:e.parentElement?.children?.[0]},yq=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?yq(t):t},xq=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===MD.Down||t===MD.Up){const n=e=>t===MD.Down?bq(e):yq(e);e.preventDefault(),e.stopPropagation();let o=n(r);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=n(o)}}},Sq=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(n)}}:{}}))})));let wq={};const Cq=({autoFocus:e,id:t,onClick:r,itemTitle:o,icon:i,enabled:a,subMenus:s,isSubMenu:l,isActive:c,direction:u,isPagination:d})=>{const[p,h]=m(!1),g=n.useRef(null),v=f(e=>{e.stopPropagation(),h(!1)},[h]);return fi.jsxs(fi.Fragment,{children:[fi.jsxs(pq,{ref:s?g:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),wq={}),s?.length&&(h(!0),wq[o]=h,e.stopPropagation()))},disabled:!a,autoFocus:e,isSubMenu:!!l,isActive:!!c,onKeyDown:xq,children:[c?fi.jsx(fq,{direction:u,isPagination:d}):null,fi.jsxs(hq,{children:[fi.jsx(gq,{direction:u,isPagination:d,children:fi.jsx(i,{})}),fi.jsx(mq,{variant:"body2",children:o})]}),s?.length?fi.jsx(vq,{}):null]},t),s?.length?fi.jsx(Rq,{isSubMenu:!0,open:p,anchorEl:g.current,onClose:v,menuGroups:Sq(s,wq),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:d}):null]})},Eq=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&fi.jsx(dq,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>fi.jsx(Cq,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),Iq=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((o,i)=>[Eq({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),i<e.length-1?fi.jsx(uq,{"data-testid":"group-divider",variant:"middle"}):void 0]),Dq={appear:0,enter:0,exit:0},Rq=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>r.length?fi.jsx(cq,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:Dq,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:Iq({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,Lq=(e,t)=>e.some(e=>t[e]>0),Mq={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Aq=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=m(null),[a,s]=m(Mq);return QP(()=>{e||(s(Mq),i(null))},[e]),d(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&r.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,n),c=await r.createSessionObject(e),u=await c.getLayout(),{qStateCounts:d}=u.qListObject?.qDimensionInfo??{};o=u.qInfo?.qId,a?l():(i(c),d&&s((e=>({canSelectAll:Lq(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:Lq(["qSelected"],e),canSelectPossible:Lq(["qOption"],e),canSelectAlternative:Lq(["qAlternative"],e),canSelectExcluded:Lq(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},Pq=x((e,t)=>fi.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:fi.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"})})),qq=x((e,t)=>fi.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:fi.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"})})),kq=x((e,t)=>fi.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:fi.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"})})),Tq=x((e,t)=>fi.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:fi.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"})})),Oq=x((e,t)=>fi.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:fi.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"})})),Nq=x((e,t)=>fi.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:fi.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"})})),jq=x((e,t)=>fi.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:fi.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"})})),_q=x((e,t)=>fi.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:fi.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"})})),Fq=x((e,t)=>fi.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:fi.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"})})),zq=x((e,t)=>fi.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:fi.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"})})),Wq=x((e,t)=>fi.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:fi.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"})})),$q=x((e,t)=>fi.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:fi.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"})})),Hq=x((e,t)=>fi.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:fi.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"})})),Vq=x((e,t)=>fi.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:fi.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 Bq=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const Gq="/qListObjectDef",Uq=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:c,focusColumnAdjuster:u,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[Bq.Sorting]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(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")),r(!1)},icon:Pq,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),r(!1)},icon:Tq,enabled:s,isActive:!!n&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:_q,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:Oq,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];n[Bq.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:Fq,enabled:!0}]}]),!e.isLocked&&n[Bq.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Vq,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(Gq))},icon:zq,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(Gq))},icon:Hq,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(Gq))},icon:Wq,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(Gq))},icon:$q,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(Gq))},icon:qq,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:jq,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:Nq,enabled:!0}]}]),o.length>0&&f.push(...o)}return n[Bq.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),u?.(c)},icon:kq,enabled:!0}]}]),f},Yq=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:c,searchRelatedArgs:u,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:h,model:m,direction:g="ltr",isPagination:v,isAccessibleHeader:b,iconSize:y=DD})=>{const x=l(null),S=tq({translator:o}),{qLibraryId:w,fieldId:C,headTextAlign:E}=r,I=d?.app,{fieldInstance:D,selectionActionsEnabledStatus:R}=Aq({open:e,headerData:r,app:I,qStateName:d?.qStateName}),L=(({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const n=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",n,t)}catch(e){console.error(e)}}}return null})({model:m,headerData:r}),M=(({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:o,onPopoverClose:i})=>f(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(n?.embed){const{embed:e,listboxRef:t}=n;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:n.sortCriteria,stateName:r?.qStateName,direction:o,onPopoverClose:i})}},[e,t,n,r?.qStateName,o,i]))({qLibraryId:w,fieldId:C,searchRelatedArgs:u,selectionRelatedArgs:d,direction:g}),A=f(e=>{e.stopPropagation(),t(!1)},[t]),P=f(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?fi.jsxs(sq,{rightAligned:"right"===E,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper",onClick:!1===b?P:void 0,ref:x,isAccessibleHeader:b,children:[s?fi.jsx(lq,{height:y,className:RD,"data-testid":RD,isInteractionsActive:i.active??!1,children:fi.jsx(aq,{})}):null,fi.jsx(Rq,{open:e,anchorEl:!1===b?x.current:n.current,onClose:A,menuGroups:Uq({headerData:r,translator:S,menuAvailabilityFlags:a,setOpen:t,...c,embedListbox:M,interactions:i,fieldInstance:D,selectionActionsEnabledStatus:R,anchorRef:n,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:L,expandOrCollapseArgs:h}),direction:g,isPagination:v})]}):null},Kq=e=>e.isDark?{background:e.color,borderColor:xR.DARK_MODE_BORDER,color:xR.DARK_MODE_TEXT,disabledColor:xR.DARK_MODE_DISABLED,iconColor:xR.DARK_MODE_TEXT}:{background:e.color,borderColor:xR.BORDER_MEDIUM,color:xR.TEXT,disabledColor:xR.DISABLED},Xq=Ls(hc,{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}`})),Jq=Ls(hp,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),Zq=Ls(Ec,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)})),Qq=Ls(Al)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),ek=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=v(()=>Kq(r.background),[r]);if(!n.active)return null;const a=o?fi.jsx(Xq,{footerStyle:i,children:e}):null;return t?E.createPortal(e,t):a},tk=c({}),nk=()=>h(tk),rk=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(u)?0:-1,y=v(()=>Kq(p.background),[p]),x=o?o.getBoundingClientRect().width:h.width,S=tq({translator:d}),w=v(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:S,theme:p,interactions:f,rect:h,layout:m,footerStyle:y,tabIndex:b,width:x,visibilityThreshold:g}),[t,n,r,o,i,a,s,l,c,u,S,p,f,h,m,y,b,x,g]);return fi.jsx(tk.Provider,{value:w,children:e})};let ok=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),ik=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 ak=x((e,t)=>fi.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:fi.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),sk=x((e,t)=>fi.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:fi.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),lk=x((e,t)=>fi.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:fi.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),ck={FirstPage:sk,PreviousPage:ak,NextPage:vq,LastPage:lk,FirstPageRTL:lk,PreviousPageRTL:vq,NextPageRTL:ak,LastPageRTL:sk},uk=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=nk(),c=n.concat("rtl"===r?"RTL":""),u=ck[c];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:u}},dk=()=>{const{pageInfo:e,width:t,interactions:n,visibilityThreshold:r}=nk(),o=0===e.page,{IconComponent:i,styledProps:a}=uk({type:ok.FirstPage,disabledCondition:o,pageNumber:0});return t<=(r?.firstPage||ik.FirstPage)?null:fi.jsx(Zq,{...a,disabled:!n.active,children:fi.jsx(i,{height:DD})})},pk=(e,t,n=!1)=>{n&&e.key===MD.Tab&&!e.shiftKey&&(gM(e),((e,t,n)=>{const r=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;r?r.focus():t.focusSelection?.(n)})(e.target,t,!1))},fk=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o,interactions:i,visibilityThreshold:a}=nk(),s=e.page>=n-1,{IconComponent:l,styledProps:c}=uk({type:ok.LastPage,disabledCondition:s,pageNumber:n-1}),u=t.enabled?e=>{pk(e,t,r)}:void 0;return o<=(a?.lastPage||ik.LastPage)?null:fi.jsx(Zq,{...c,onKeyDown:u,disabled:!i.active,children:fi.jsx(l,{height:DD})})},hk=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o,interactions:i}=nk(),a=e.page>=n-1,{IconComponent:s,styledProps:l}=uk({type:ok.NextPage,disabledCondition:a,pageNumber:e.page+1}),c=!(o>ik.FirstPage&&o>ik.LastPage)&&t.enabled?e=>{pk(e,t,r)}:void 0;return fi.jsx(Zq,{...l,onKeyDown:c,disabled:!i.active,children:fi.jsx(s,{height:DD})})},mk=()=>{const{pageInfo:e,interactions:t}=nk(),n=0===e.page,{IconComponent:r,styledProps:o}=uk({type:ok.PreviousPage,disabledCondition:n,pageNumber:e.page-1});return fi.jsx(Zq,{...o,disabled:!t.active,children:fi.jsx(r,{height:DD})})},gk=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:o}=nk(),{page:i,rowsPerPage:a}=n;if(t<=(o?.displayedRowsLabel||ik.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,r)}`,r.toString()]);return fi.jsx(Qq,{variant:"caption",dir:"ltr",children:s})},vk=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=nk(),c=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${c}`,f={tabIndex:s,id:`${d}-${c}`,"data-testid":d,"aria-labelledby":p};return fi.jsxs(fi.Fragment,{children:[fi.jsxs(Qq,{variant:"caption",id:p,children:[u,":"]}),fi.jsx(Jq,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},bk=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:o,visibilityThreshold:i}=nk();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(i?.rowsPerPage||ik.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=fi.jsx(fi.Fragment,{children:e.rowsPerPageOptions.map(e=>fi.jsx("option",{value:e,children:e},e))});return fi.jsx(vk,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},yk=1e3,xk="…",Sk=({totalPages:e,page:t})=>{const n=Math.min(e,yk),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-yk):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+i;return fi.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(fi.jsx("option",{value:xk,disabled:!0,children:xk},"startMoreOptions")),o<e-1&&a.push(fi.jsx("option",{value:xk,disabled:!0,children:xk},"endMoreOptions")),fi.jsx(fi.Fragment,{children:a})},wk=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:o}=nk(),{page:i}=e;if(t<=(o?.selectPage||ik.SelectPage))return null;const a=fi.jsx(Sk,{totalPages:n,page:i});return fi.jsx(vk,{name:"SelectPage",value:i,options:a,handleChange:e=>{r(+e.target.value)}})};var Ck=y(e=>fi.jsxs(rk,{...e,children:[fi.jsx(bk,{}),fi.jsx(wk,{}),fi.jsx(gk,{}),fi.jsx(dk,{}),fi.jsx(mk,{}),fi.jsx(hk,{}),fi.jsx(fk,{})]}));const Ek=e=>fi.jsx(ek,{...e,children:fi.jsx(Ck,{...e})}),Ik=c({}),Dk=()=>h(Ik),Rk=({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:o,children:i})=>{const a=v(()=>({rect:e,pageInfo:t,qPivotDataPages:n,updatePageInfo:r,direction:o}),[e,t,n,r,o]);return fi.jsx(Ik.Provider,{value:a,children:i})},Lk=c({}),Mk=()=>h(Lk),Ak=({app:e,model:t,theme:n,embed:r,keyboard:o,translator:i,interactions:a,env:s,children:l})=>{const c=v(()=>({model:t,app:e,interactions:a,embed:r,theme:n,keyboard:o,env:s,translator:i}),[e,a,t,r,n,o,s,i]);return fi.jsx(Lk.Provider,{value:c,children:l})},Pk=c({}),qk=()=>h(Pk),kk=({children:e,...t})=>fi.jsx(Pk.Provider,{value:t,children:e}),Tk=()=>{const{text:e,fontFamily:t,fontSize:n,justifyContent:r,alignItems:o,height:i}=(()=>{const{theme:e,translator:t}=Mk(),{layoutService:n}=qk(),r=e.getStyle("","","fontFamily")??pP;return n.hasData?n.hasLimitedData?{text:t.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:r,alignItems:"center",height:"22px"}:{}:{text:t.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:r,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:fi.jsx("div",{style:{display:"flex",justifyContent:r,alignItems:o,width:"100%",height:i},children:fi.jsx("span",{style:{...SP,fontFamily:t,fontSize:n,fontStyle:"italic",color:"#7b7a78"},children:e})})},Ok="/qHyperCubeDef",Nk=-1,jk="PSEUDO-DIM",_k=e=>e===Nk?jk:(({cId:e})=>e??tA())(e),Fk=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===Nk?n.columnWidthLocation=VA.Measures:n.isLeftDimension?n.columnWidthLocation=VA.Dimension:t.at(-1)===Nk?n.columnWidthLocation=VA.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=VA.Pivot))},zk=e=>{if(!e)return;const{background:t,foreground:n}=e,r=TR(t??""),o=TR(n??""),i=r.isInvalid()?void 0:r.getRGBA(),a=i?hM(i,kD):void 0,s=i?hM(i,TD):void 0;return o.isInvalid()&&void 0!==i?{background:i,color:pM(i),headerMenuHoverBackground:a,headerMenuActiveBackground:s}:{background:i,color:o.isInvalid()?void 0:o.getRGBA(),headerMenuHoverBackground:a,headerMenuActiveBackground:s}},Wk=(e,t,n,r,o)=>{const i=_k(n),a=e.getDimensionInfoIndex(n),s=e.isLeftDimension(a);return n===Nk?{id:i,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:a,canBeResized:!1,isLeftDimension:s,isLastDimension:r,columnWidthLocation:VA.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:i,colIdx:0,label:n.qFallbackTitle??"",qReverseSort:n.qReverseSort,sortDirection:n.qSortIndicator&&"N"!==n.qSortIndicator?n.qSortIndicator:"A",qLibraryId:n.qLibraryId,fieldId:n.qGroupFieldDefs[n.qGroupPos],isLocked:n.qLocked??!1,columnWidth:n.columnWidth,qApprMaxGlyphCount:n.qApprMaxGlyphCount,isDim:!0,isCyclic:n.qGrouping===OD.Cyclic,groupDimensionPos:n.qGroupPos,groupDimensionLabels:n.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:a,canBeResized:!1,isLeftDimension:s,isLastDimension:r,columnWidthLocation:VA.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:n.qEffectiveDimensionName,headerColor:o?.("VNA-727-HEADER-COLOR-EXPRESSION-PIVOT")?zk(n.headerColor):void 0}},$k=({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r,isEnabled:o})=>{let i=r;var a;n.length>0&&(i=(a=r).at(-1)===Nk?a.slice(0,-1):a);const s=i.length+(n.length?1:0),l=Math.max(1,n.length),c=((e,t)=>Array(e).fill(null).map(()=>Array.from({length:t},()=>null)))(s,l);return n.forEach((n,r,i)=>{const a=r===i.length-1;c[s-1][r]=Wk(e,t,n,a,o)}),i.forEach((n,r,i)=>{const a=r===i.length-1;c[r][l-1]=Wk(e,t,n,a,o)}),c},Hk=(e,t,n,r,o)=>{const i=((e,t,n,r,o)=>{let i;return i=0===n.length||n.includes(Nk)?$k({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n,isEnabled:o}):(e=>e[0].map((t,n)=>e.map(e=>e[n])))($k({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r,isEnabled:o})),e.isIndentModeEnabled&&i[i.length-1].length>1&&(i[i.length-1]=[i.at(-1),...new Array(i[0]?i[0].length-1:0).fill(null)]),i.length&&i.at(-1)?.forEach((t,n)=>{Array.isArray(t)?t.forEach((t,n)=>{Fk({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}):Fk({layoutService:e,visibleLeftDimensionInfos:r,cell:t,colIdx:n})}),i})(e,t,n,r,o);return{data:i,size:{x:i[0]?.length??0,y:i.length}}},Vk=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,Bk=5e6,Gk=5e5;const Uk={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,n){return{key:Yk(e),value:Yk(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,i))}),t}};function Yk(e){try{return decodeURIComponent(e)}catch{return e}}function Kk(e){if(!(this instanceof Kk))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 n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>Uk.fromSearchString(t.search)}})}function Xk(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}Kk.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},Kk.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=Xk(t.key),t.value?n+=`=${Xk(t.value)}`:n+=t.useEqualSign?"=":"";return n};var Jk=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}},Zk=class{decode(e){let t="";const n=new Jk(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}};const Qk=e=>e>=0&&e<=1114111,eT=e=>e.match(/[\s]/);var tT=class extends Zk{decodeCharacter(e){e.mark();const t=e.next();let n,r,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(n=i,r=0;r<5&&(o=e.next(),null!=o&&!eT(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const a=parseInt(n,16);return Qk(a)?String.fromCharCode(a):"�"}},nT=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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},rT=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let o,i;if(t.length===n)return i=this._value,this.setValue(r),i;const a=t.charAt(n);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,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return nT.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return nT.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||nT.newInstanceIfNeeded(e,t,this._value)}},oT=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 rT);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const iT=(()=>{const e=[],t=[],n=new oT;let r,o,i;for(r 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[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),n.put(i,String.fromCharCode(o)));return n})();var aT=class extends Zk{decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,o="";for(t=Math.min(e.remainder().length,iT.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const i=iT.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)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,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&Qk(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&Qk(r)?String.fromCharCode(r):null}},sT=class extends Zk{decodeCharacter(e){e.mark();const t=e.next();let n,r,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)o=e.nextHex(),null!=o&&(n+=o);return 2===n.length&&(i=parseInt(n,16),Qk(i))?String.fromCharCode(i):(e.reset(),null)}};let lT;"undefined"!=typeof document&&(lT=document.createElement("div"));const cT=Array.prototype.indexOf,uT=[",",".","_"," "],dT=[",",".","-","_"," "],pT={width:["%"],height:["%"]},fT={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},hT={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":fT.image,"background-color":fT.color,"border-color":fT.color,"border-image":fT.image,color:fT.color,icon:fT.image,"list-style-image":fT.image,"outline-color":fT.color},mT={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function gT(e,t,n){let r;if(t){if(cT)return cT.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function vT(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return lT.appendChild(n),t=lT.innerHTML,lT.removeChild(n),t}function bT(e,t,n){let r,o,i,a,s,l,c,u,d;for(e=xT(e).toLowerCase(),t=xT(t),i=0;i<mT.attr_name.length;i++)if(e.match(mT.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<mT.attr_val.length;i++)if(t.toLowerCase().match(mT.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=pT[e],r||(r=dT),o="",!n){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++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&gT(c,r)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return n||(o+='"'),o}function yT(e,t,n){let r,o,i,a,s,l,c,u,d,p;if(e=xT(e).toLowerCase(),t=xT(t),gT(e,mT.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<mT.css_val.length;r++)if(t.toLowerCase().indexOf(mT.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=hT[e],o||(o=fT.default),i="",!n){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++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&gT(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function xT(e,t){let n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new aT,new sT,new tT];for(;!a;){r=n;for(let e=0;e<s.length;e++)i=s[e].decode(n),i!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}const ST=[];for(let e=0;e<255;e++)ST[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const wT={html:e=>vT(e.unsafe),css(e){let t,n=[];const r=[],o={};let i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=yT(t,n[t],!0),i+=yT(t,n[t],!0),o[t]=r[t]);return e.map?o:i},attr(e){let t=[];const n=[],r={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=bT(e,t[e],!0),o+=bT(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function CT(e,t){throw new Error(t)}var ET={canonicalize:xT,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,n;const r=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(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(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?wT.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&CT(this,"Invalid parameter type"),wT.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&CT(this,"Invalid parameter type"),wT.attr(e)):void CT(this,"Invalid parameter type")},encodeForAttr:bT,encodeForAttr2:function(e){return bT("nonsens",e,!0)},encodeForCSS:yT,encodeForHref:function(e){xT(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new Kk(e),n=Kk.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+Kk.encodeSearchParams(r)+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 n,r,o,i,a,s;for(t||(t=uT),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),gT(o,t)>=0||null==ST[i]?s+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),s+=`\\x${a}${r.toUpperCase()}`):(a="0000".substr(r.length),s+=`\\u${a}${r.toUpperCase()}`));return s},encodeForHTML:vT,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=xT(t).toLowerCase():CT(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:n=Gk,maxByteSizeImage:r=Bk}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,n,r]=Vk.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(o,i,a);return"image/svg+xml"===o?s<=n:s<=r},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 n=function(e){let t=e,n="";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=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const IT=(e,t)=>t.qAttrExps?.qValues?.[e],DT=(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"}}},RT=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!ET.isSafeDataURL(t))?{type:jA.Text,url:void 0,text:e,labelStructure:o}:{type:jA.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:DT(r,a),labelStructure:o,imageBox:i},LT=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:jA.Text,text:r};const{minY:o,maxY:i}=((e,t,n)=>{const r="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=r?n.qYMin:e.qMiniChart.qMin,a=r?n.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,n),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:jA.MiniChart,text:r,miniChart:a}},MT=(e,t,n)=>{const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=r?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return n?.urlPosition===_A.Attribute?void 0:n?.urlLabel},AT=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:jA.Link,url:ET.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:jA.Text,url:void 0,text:t,labelStructure:e}}},PT=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:c})=>{const u=FA(t),d=s(e);return u===jA.Image&&c[jA.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:c,imageBox:u}=t??{};if("url"===l){const t=IT(n.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),RT({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}if("label"===l){const t=i?i.originalValue:r;if(-1===n.imageLabel)return RT({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=IT(n.imageLabel??-1,e)?.qText??r;return RT({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:jA.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,d,l,a):u===jA.Link?((e,t,n,r,o)=>{const{urlPosition:i}=t??{};if(i===_A.Attribute){const i=MT(n.url??-1,e,t);return AT({labelStructure:r,text:o||i||"",url:i})}if(i===_A.Dimension){const i=MT(n.urlLabel??-1,e,t)||o;return r&&(r.maskedValue=i),AT({text:i,labelStructure:r,url:r?.originalValue??o})}return{type:jA.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,a,d):u===jA.Indicator&&c[jA.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:jA.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):u===jA.MiniChart&&c[jA.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?LT(e,t,i,d):{type:jA.Text,url:void 0,text:d,labelStructure:a}},qT=(e,t)=>{const n=t.qAttrExps,r=n?.qValues?.[e?.cellForegroundColor??-1]?.qText,o=n?.qValues?.[e?.cellBackgroundColor??-1]?.qText,i=o?mM(o):null,a=r?mM(r):null,s=((e,t)=>e||!t?null:pM(t))(a,i);return{color:s??a,background:i}},kT=(e,t)=>t.qSubNodes.reduce((e,t)=>0===t.qSubNodes.length?e+1:kT(e,t),e),TT=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:hP-r;let s=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;s=e.qDown+n}return Math.min(a,kT(s,e))},OT=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:s,attrExprInfoIndex:l,isLeftColumn:c=!0,isIndentModeEnabled:u=!1,indentLevel:d,labelStructure:p,env:f,pageInfo:h,direction:m="ltr"})=>{const g=(!u||!c)&&"P"===e.qType,v=((e,t)=>{if(e!==Nk){if(t){const t=FA(e.representation);return t===jA.Link||t===jA.Image?e.representation:{type:jA.Text}}return e.representation}})(s,u),b=(({node:e,isLeftColumn:t,isIndentModeEnabled:n,labelStructure:r,representationType:o,parentOrRootOriginalValue:i})=>{let a=e.qText;if(t&&n&&r){const{originalValue:t,delimeter:n,suffix:s}=r;a=o===jA.Link?"P"===e.qType?i:t:`${t} ${!s||!t&&s?"":n} ${s}`.trim()}return a})({node:e,isLeftColumn:c,isIndentModeEnabled:u,labelStructure:p,representationType:FA(v),parentOrRootOriginalValue:(t||n)?.representation?.labelStructure?.originalValue??""}),y=PT({cell:{...e,qText:b},representationProperties:v,attrExprInfoIndex:l,env:f,labelStructure:p,direction:m,enabledFeatures:{[jA.Image]:!0,[jA.Indicator]:!0}}),x={id:tA(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:c?i:r,isLeftColumn:c,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:TT(e,o,i,r,c,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:qT(l,e),selectionCellType:c?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(s),canBeResized:0===e.qSubNodes.length&&!c,visibleMeasureInfoIndex:g?e.qElemNo:t?.visibleMeasureInfoIndex,representation:y,...void 0!==d&&{indentLevel:d},headerColor:g&&f.flags.isEnabled("VNA-727-HEADER-COLOR-EXPRESSION-PIVOT")&&void 0!==e.qElemNo?zk(a.visibleMeasureInfo[e.qElemNo]?.headerColor):void 0};return t&&(t.children[x.mainAxisPageCoord-t.mainAxisPageCoord]=x),x},NT=(e,t,n,r,o,i,a,s,l)=>{const{isIndentModeEnabled:c}=o;if(!t.length)return e;let u=0;return function t(d,p,f,h=0,m=-1){e[h]||(e[h]={}),c&&m++;const g=o.leftDimensionInfoIndexes.indexOf(Nk);f.forEach((f,v)=>{const b={originalValue:f.qText??"",maskedValue:"",delimeter:"-",suffix:""};u+=0===v?0:1;const y=n.qTop-r.page*r.rowsPerPage,x=Math.max(0,y+u-f.qUp),S=n.qTop+u-f.qUp;if(c){if(o.hasPseudoDimOnLeft&&m<=g)if(b.originalValue=f.qText??"",b.maskedValue=f.qText??"","N"===f.qType||"U"===f.qType||"T"===f.qType)"U"===f.qType&&(b.originalValue=o.getNullValueText()),m<g&&(b.suffix=o.visibleMeasureInfo[0].qFallbackTitle??"");else if("P"===f.qType){b.originalValue=(p||d)?.representation.labelStructure?.originalValue??"",b.maskedValue=(p||d)?.representation.labelStructure?.originalValue??"",b.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&&(b.originalValue=o.getNullValueText())}let w=h;c&&(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=c&&void 0===C?.ref.qText||!C?OT({node:f,parent:p,root:d,x:w,y:S,pageY:x,layoutService:o,dimensionInfo:i[w],attrExprInfoIndex:a[w],isLeftColumn:!0,...c&&{isIndentModeEnabled:c,indentLevel:m},env:s,pageInfo:r,labelStructure:b,direction:l}):e[h][x];if(e[h][x]=E,f.qSubNodes.length){const e=c?0:h+1;t(d||E,E,f.qSubNodes,e,m)}})}(null,null,t,0,-1),e},jT=(e,t)=>{e.slice(0,-1).forEach(e=>{Object.values(e).forEach((e,n,r)=>{const o=r.at(n+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)})})},_T=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=t?.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=n?.[o],a=r.at(-1);return i?.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:a?.isTotal?a.mainAxisPageCoord-1:-1},FT=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a,direction:s})=>{const{qLeft:l,qArea:c}=t;if(!l.length)return e;const u=NT(e.grid,l,c,n,r,o,i,a,s);jT(u,n.rowsOnCurrentPage);const d=_T(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:d}},zT=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach((t,n)=>{t.forEach((t,i)=>{const a=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[a])||(o[a]=[]);const l="U"===t.qType;o[a][s]=o[a][s]??{id:tA(),ref:t,isNull:l}})}),o},WT=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r?.length?zT({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},$T=(e,t,n,r,o,i,a,s,l,c)=>{const{isIndentModeEnabled:u}=r;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=n.qLeft+d-f.qUp,v=e[h][g]??OT({node:f,parent:p,root:a,x:g,y:h,pageY:h,layoutService:r,dimensionInfo:o[h],attrExprInfoIndex:i[h],isLeftColumn:!1,...u&&{isIndentModeEnabled:u},env:s,pageInfo:l,direction:c});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},HT=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:s,direction:l})=>{const{qTop:c,qArea:u}=t;if(!c.length)return e;const d=$T(e.grid,c,u,n,r,o,i,a,s,l);jT(d,n.size.x);const p=_T(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},VT=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),BT=(e,t)=>{const{env:n}=Mk(),{direction:r}=Dk(),{layoutService:o,effectivePropertiesService:i}=qk(),{qPivotDataPages:a,pageInfo:s}=Dk(),[l,c]=m(null),u=((e,t,n)=>v(()=>({left:e.map(VT),top:t.map(VT),measures:n.map(VT)}),[n,e,t]))(e,t,o.visibleMeasureInfo),d=n.flags.isEnabled,p=v(()=>Hk(o,i,t,e,d),[o,i,t,e,d]),h=f(()=>a.slice(1).reduce((e,t)=>WT({prevData:e,dataPage:t,pageInfo:s}),((e,t)=>{const{qData:n,qArea:r}=e;return zT({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(a[0],s)),[a,s]),g=f(()=>a.slice(1).reduce((e,i)=>HT({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:u.top,headerRows:p.size.y,env:n,pageInfo:s,direction:r}),((e,t,n,r,o,i,a,s)=>{const{qArea:l,qTop:c}=e,u=$T([],c,l,t,n,r,o,i,a,s);jT(u,t.size.x);const d=_T(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:d}})(a[0],o,t,u.top,p.size.y,n,s,r)),[a,o,t,u.top,p.size.y,n,s,r]),b=f(()=>a.slice(1).reduce((t,i)=>FT({prevData:t,nextDataPage:i,pageInfo:s,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:u.left,env:n,direction:r}),((e,t,n,r,o,i,a)=>{const{qArea:s,qLeft:l}=e,c=NT([],l,s,n,t,r,o,i,a);jT(c,n.rowsOnCurrentPage);const u=_T(c,t);return{grid:c,columnCount:c.length,layoutSize:t.size,totalDividerIndex:u}})(a[0],o,s,e,u.left,n,r)),[a,o,s,e,u,n,r]),[y,x]=m(()=>h()),[S,w]=m(()=>g()),[C,E]=m(()=>b());QP(()=>{x(h())},[h]),QP(()=>{w(g())},[g]),QP(()=>{E(b())},[b]),QP(()=>{l&&l.forEach(i=>{x(e=>WT({prevData:e,dataPage:i,pageInfo:s})),w(e=>HT({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:u.top,headerRows:p.size.y,env:n,pageInfo:s,direction:r})),E(t=>FT({prevData:t,nextDataPage:i,pageInfo:s,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:u.left,env:n,direction:r}))})},[l]);const I=f(e=>{c(e)},[]);return{headersData:p,measureData:y,topDimensionData:S,leftDimensionData:C,attrExprInfoIndexes:u,nextPageHandler:I}},GT=Math.sqrt(1e4),UT=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/PD.PixelsMin)}),YT=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/GT),r=Math.ceil(e.qHeight/GT);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*GT,qTop:e.qTop+n*GT,qWidth:Math.min(GT,e.qWidth-o*GT),qHeight:Math.min(GT,e.qHeight-n*GT)});return t};function KT({nextPageHandler:e}){const{model:t}=Mk(),{pageInfo:n}=Dk(),{layoutService:r}=qk(),o=(e=>{const t=l(e);return t.current=e,t})(n.page),i=t,a=f(async(e,t)=>{await(i?.collapseLeft(Ok,e,t,!1))},[i]),s=f(async(e,t)=>{await(i?.collapseTop(Ok,e,t,!1))},[i]),c=f(async(e,t)=>{await(i?.expandLeft(Ok,e,t,!1))},[i]),u=f(async(e,t)=>{await(i?.expandTop(Ok,e,t,!1))},[i]),d=f(async t=>{if(i?.getHyperCubePivotData&&0!==t.length)try{const r=await i.getHyperCubePivotData(Ok,t.reduce((e,t)=>[...e,...YT(t)],[]));o.current===n.page&&e(r)}catch(e){console.error(e)}},[i,e,n,o]),p=f((e,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:s,qDimensionInfo:l,topHeadersColumnWidth:c}=r.layout.qHyperCube;let u=[];switch(a){case VA.Dimension:u=[{qPath:`${Ok}/qDimensions/${n}/qDef/columnWidth`,oldValue:l[n].columnWidth}];break;case VA.Measures:if(o)u=s.map((e,t)=>({qPath:`${Ok}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth}));else{const e=r.getMeasureInfoIndexFromCellIndex(i);u=[{qPath:`${Ok}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case VA.Pivot:u=[{qPath:`${Ok}/topHeadersColumnWidth`,oldValue:c}]}const d=u.map(t=>{const{qPath:n,oldValue:r}=t;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...e})}});t?.applyPatches(d,!0)},[t,r]),h=f(async e=>{await(i?.applyPatches([{qPath:`${Ok}/indentModeColumnWidth`,qOp:r.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))},[i,r]);return v(()=>({collapseLeft:a,collapseTop:s,expandLeft:c,expandTop:u,applyColumnWidth:p,applyIndentModeColumnWidth:h,fetchPages:d}),[a,s,c,u,p,h,d])}const XT=(e,t,n)=>(r,o)=>{if("P"===r)return Nk;const i=t[n+o];return e[i]},JT=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach(e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)})};return n(e),t},ZT=c({}),QT=()=>h(ZT),eO=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:n}}}}=qk(),{qPivotDataPages:r}=Dk();return v(()=>{const o=JT(r[0]?.qLeft??[]),i=JT(r[0]?.qTop??[]);return{visibleLeftDimensionInfo:o.map(XT(n,t,0)),visibleTopDimensionInfo:i.map(XT(n,t,e))}},[n,t,e,r])})(),{headersData:r,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:s,nextPageHandler:l}=BT(t,n),c=KT({nextPageHandler:l}),u=v(()=>({gridSectionsData:{headersData:r,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:n},attrExprInfoIndexes:s,dataModel:c}),[t,n,r,o,i,a,s,c]);return fi.jsx(ZT.Provider,{value:u,children:e})},tO=20,nO=18,rO=.75,oO=e=>-1!==e&&e?.representation?.type===jA.Image,iO=({isLeftColumn:e,layoutService:t,representation:n})=>Boolean(e)&&t.isIndentModeEnabled&&n.type===jA.Image,aO=e=>void 0===e?fP:e,sO=(e,t)=>{if(void 0!==e&&!Number.isNaN(+e)){const n=+e;return n>=0?n:t}return t},lO=e=>sO(e,PD.PixelsDefault),cO=(e,t)=>sO(e,PD.PercentageDefault)*t/100,uO=(e,t,n)=>{switch(t?.type){case qD.Pixels:return lO(t.pixels);case qD.Percentage:return cO(t.percentage,e);case qD.FitToContent:case qD.Auto:default:return n}},dO=({headers:e,layoutService:t,effectivePropertiesService:n,estimateWidthForDimensionValue:r,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce((e,s,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:c,qDimensionInfo:u}}}=t,{id:d,colIdx:p,qApprMaxGlyphCount:f,isLeftDimension:h}=s,m=u.find(e=>e.cId===d),g={width:24,...m?.representation?.imageBox};if(!h)return e+0;if(d===jk)return e+0;const v=iO({isLeftColumn:h,layoutService:t,representation:m?.representation||{type:jA.Text}})?g.width+8+4:r(f),b=!n.qAlwaysFullyExpanded&&p<c-1?21:0;let y=0;if(o&&i&&a){y=i("- ")+a}return Math.max(e,24*l+nO+b+v+y)},0),pO=(e,t,n)=>e.reduce((e,r)=>{const o=(n?0:1)*nO;return Math.max(e,o+t(r.qFallbackTitle??""))},0),fO=(e,t,n,r)=>{const o=100*e/t,i=r*rO*(o/100),a=o/100*+n;return Math.min(a,i)},hO=(e,t,n,r)=>r*(+n/100)*(100*e/t/100),mO=(e,t)=>e.some(e=>e>=t*rO),gO=({layoutService:e,effectivePropertiesService:t,headersData:n,columnWidths:r,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:c})=>{let u;const d=o*rO,p=n.data[n.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,r.at(-1)),h=Math.min(d,dO({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,pO(e.visibleMeasureInfo,a));let g;const v=p.findIndex(e=>e.id===jk),b=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:o}=e.indentModeColumnWidth;return o===qD.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+nO+16:24})({layoutService:e,measureTextForHeader:a,translator:c,headersData:n});if(e.hasPseudoDimOnLeft)if(0===v){const e=Math.max(f,h,m);u=[Math.max(b,e-f),f]}else{const n=Math.min(d,pO(e.visibleMeasureInfo,l,!0));g=Math.min(d,dO({headers:p.slice(0,v),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:n}));const r=Math.max(f,h,g);u=[Math.max(b,r-f),f]}else u=[Math.max(b,h-f),f];const y=Math.min(d,u.reduce((e,t)=>e+t,0)),{indentModeColumnWidth:x}=e;i&&i<=d&&(x.type=qD.Pixels,x.pixels=i);return[qD.Pixels,qD.Percentage].includes(x.type)||mO(u,o)?((e,t,n,r)=>{let o=e[0],i=e[1];const a=e.reduce((e,t)=>e+t,0),{type:s,pixels:l,percentage:c}=t,u=sO(l,PD.PixelsDefault),d=sO(c,PD.PercentageDefault),p=mO(e,n);let f;s===qD.Auto&&p&&(o>i?o-=i:i-=o),s===qD.Pixels&&u&&(o=fO(e[0],a,u,n),i=fO(e[1],a,u,n)),s===qD.Percentage&&d&&(o=hO(e[0],a,d,n),i=hO(e[1],a,d,n)),i<=r&&(f=o-5,f>0&&(o-=f,i+=f)),f=i-r,f>0&&(o+=f,i-=f);const h=[o,i],m=h.reduce((e,t)=>e+t,0);return{leftGridColumnWidths:h,leftGridWidth:m,leftGridFullWidth:m}})(u,x,o,f):{leftGridWidth:y,leftGridColumnWidths:u,leftGridFullWidth:y}};function vO({tableWidth:e}){const t=e*rO,{styleService:n,layoutService:r,effectivePropertiesService:o}=qk(),{translator:i}=Mk(),{gridSectionsData:{headersData:a}}=QT(),{measureText:s}=YP(n.header,{allowLineBreaks:!1}),{estimateWidth:l,measureText:c}=YP({...n.dimensionValues,fontWeight:aO(n.dimensionValues.fontWeight)}),{measureText:u}=YP({...n.dimensionValues,...n.measureLabels}),d=f((n,d)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=r,v=(t=0)=>h.reduce((n,{qFallbackTitle:r,columnWidth:o})=>{const i=u(r)+nO,a=Math.max(i,t);return Math.max(n,m?a:uO(e,o,a))},0),b=e=>a.data.reduce((t,n)=>{const r=n.at(e);if(!r||Array.isArray(r))return t;if(r.id===jk)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?tO:0;return nO+s(t)+tO+r})(r);return Math.max(o,t)},0);let y=0,x=a.data.at(-1);m&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map((i,s)=>{let c;if(m&&1!==a.size.x||!n||void 0===d||d!==i.colIdx){let t,n;if(i.columnWidthLocation===VA.Pivot?t=m?void 0:f:i.columnWidthLocation===VA.Dimension&&({columnWidth:t}=i),i.isLeftDimension)if(i.id===jk)n=v();else{const e=b(s),t=((e,t)=>{const{qApprMaxGlyphCount:n,isLeftDimension:i,dimensionInfoIndex:a}=e,s=r.getDimensionInfo(a);if(oO(s))return PD.PixelsDefault;const c=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return nO+l(n)+c})(i,s);n=Math.max(e,t),m&&!g&&s+1===p&&i.columnWidthLocation===VA.Dimension&&a.size.x>1&&(n=e)}else n=b(s),i.columnWidthLocation===VA.Measures&&(n=v(n));m&&1===a.size.x&&(t=r.indentModeColumnWidth),c=m&&!g&&a.size.x>1?n:uO(e,t,n)}else c=m?Math.min(t,n):n;return y+=c,c});return m&&a.size.x>1?gO({layoutService:r,effectivePropertiesService:o,headersData:a,columnWidths:S,tableWidth:e,widthOverride:n,measureTextForHeader:s,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:c,translator:i}):{leftGridWidth:Math.min(t,y),leftGridColumnWidths:S,leftGridFullWidth:y}},[e,a,r,t,s,u,l,c,i,o]),[p,h]=m(d);QP(()=>{h(d())},[d]);const g=f((e,t)=>{h(d(e,t))},[d]);return{...p,overrideLeftGridWidth:g}}function bO({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:n}){const{styleService:r,layoutService:o}=qk(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=QT(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:s}},size:l,visibleMeasureInfo:c}=o,{estimateWidth:u,measureText:d}=YP(r.measureValues,{allowLineBreaks:!1}),{estimateWidth:p}=YP({...r.dimensionValues,fontWeight:aO(r.dimensionValues.fontWeight)},{allowLineBreaks:!1}),h=e-n-1,m=i.at(-1),g=m===Nk,b=s.length-a>i.length?21:0,y=v(()=>{const e=g?c:[m],t=l.x/e.length,n=[],r=[];let o=h;const i=(e,r)=>{n[e]=Math.min(PD.PixelsMax,Math.max(PD.PixelsMin,r)),o-=n[e]*t};if(e.forEach((e,t)=>{if(e?.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:s,qFallbackTitle:l}=e;switch(n){case qD.Pixels:i(t,lO(o));break;case qD.Percentage:i(t,cO(a,h));break;case qD.FitToContent:i(t,((e,t,n)=>n?PD.PixelsDefault:nO+(g?Math.max(u(e),d(t)):Math.max(Math.max(...c.map(e=>u(e.qApprMaxGlyphCount))),p(e)+b)))(s,l??"",oO(e)));break;case qD.Auto:default:r.push(t)}}else r.push(t)}),r.length){const e=r.length*t,i=o/e;r.forEach(e=>{n[e]=Math.max(PD.AutoMinPivot,i)})}return n},[g,c,m,l.x,h,u,d,p,b]),x=v(()=>{if(g){return c.reduce((e,t,n)=>e+y[n],0)/c.length}return y[0]},[g,y,c]),S=parseFloat((t/o.size.x).toFixed(12)),w=f(e=>(g&&void 0!==e?y[o.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S,[g,y,o,x,S]),C=l.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,h),getRightGridColumnWidth:w}}const yO=`scrollable-container--${GA.TopGrid}`,xO=`scrollable-container--${GA.LeftGrid}`,SO=`scrollable-container--${GA.DataGrid}`,wO=e=>{if(!(e&&e instanceof HTMLDivElement))return{width:0,height:0};const t=e.offsetWidth-e.clientWidth,n=e.offsetHeight-e.clientHeight;return{width:t>=2?t:0,height:n>=2?n:0}},CO=(e,t)=>e>t?UA.Forward:e<t?UA.Backward:UA.None,EO=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:r,updateViewService:o,trackScrollDirection:i,interactions:a})=>{const{direction:s}=Dk();d(()=>{const{headerGridWrapperElement:l,topGridWrapperElement:c,leftGridWrapperElement:u,dataGridWrapperElement:d}=r(),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=r=>{const a=r.target,l=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:o}=e,i=n-r;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(a,s);n.current?.scrollTo({scrollLeft:l,scrollTop:a.scrollTop}),c.scrollLeft=l,e.current?.forEach(e=>{e?.scrollTo(l)}),u.scrollTop=d.scrollTop,t.current?.forEach(e=>{e?.scrollTo(a.scrollTop)}),i(r),o?.(r)};return u.addEventListener("scroll",p),c.addEventListener("scroll",f),d.addEventListener("scroll",h),a.scroll||setTimeout(()=>{u.removeEventListener("scroll",p),c.removeEventListener("scroll",f),d.removeEventListener("scroll",h)},0),()=>{u.removeEventListener("scroll",p),c.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}},[i,o,a,e,t,n,r,s])},IO=xf(!1),DO=(e,t)=>Math.abs(e.width-t.width)>2||Math.abs(e.height-t.height)>2,RO=({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:n})=>{const{top:r,left:o,data:i,resetHorizontalScrollbarHeight:a}=((e,t,n)=>{const[r,o]=m({width:0,height:0}),[i,a]=m({width:0,height:0}),[s,c]=m({width:0,height:0}),[u,p]=m(!1),h=qf(IO),g=l(h),v=l(h);g.current=h;const b=f(()=>{p(e=>!e&&e);const r=wO(e.current),i=wO(t.current),s=wO(n.current);o(e=>DO(e,r)?r:e),a(e=>DO(e,i)?i:e),c(e=>DO(e,s)?s:e)},[e,t,n]);d(()=>{const r=new ResizeObserver(()=>{g.current||b()});return[e.current,t.current,n.current].filter(e=>Boolean(e)).forEach(e=>{r.observe(e)}),()=>{r.disconnect()}},[b,e,t,n]),d(()=>{const e=v.current;if(v.current=h,e&&!h){const e=setTimeout(b,0);return()=>{clearTimeout(e)}}},[h,b]);const y=f(()=>{p(!0)},[]);return{top:r,left:u?{...i,height:0}:i,data:u?{...s,height:0}:s,resetHorizontalScrollbarHeight:y}})(e,t,n);return{scrollbarsDimensions:{verticalScrollbarWidth:Math.max(r.width,i.width),horizontalScrollbarHeight:Math.max(o.height,i.height)},resetHorizontalScrollbarHeight:a}},LO=()=>{const{interactions:e}=Mk(),t=l(null),n=l(null),r=l(null),o=l(null),i=l([]),a=l([]),s=l(null),{scrollbarsDimensions:{verticalScrollbarWidth:c,horizontalScrollbarHeight:u},resetHorizontalScrollbarHeight:p}=RO({topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:n,dataGridWrapperRef:r},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:s}=Dk(),{downloadService:l,viewService:c,layoutService:u}=qk(),d=f(()=>{const o={left:0,top:0};e.current?.scrollTo(o),t.current?.scrollTo(o),n.current?.scrollTo(o),r.current?.scrollTo(o)},[e,t,n,r]);g(()=>{d()},[s.page,d]),g(()=>{u.triggerdByExpandOrCollapse||d()},[u,d]),g(()=>{if(u.triggerdByExpandOrCollapse){const e=r.current?.scrollLeft??0,t=r.current?.scrollTop??0;i.current?.forEach(e=>{e?.scrollTo(t)}),o.current?.forEach(t=>{t?.scrollTo(e)}),a.current?.scrollTo({scrollTop:t,scrollLeft:e})}},[u,r,a,i,o]),g(()=>{(l.isDownloadedAsPDForImage||u.isSnapshot)&&r.current&&n.current&&t.current&&(r.current.scrollTop=c.scrollTop,r.current.scrollLeft=c.scrollLeft,n.current.scrollLeft=c.leftGridScrollLeft,t.current.scrollTop=c.topGridScrollTop)},[c,l,u,r,n,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s}});const{trackScrollDirection:h,scrollDirectionRefs:{verticalScrollDirection:m,horizontalScrollDirection:v}}=(()=>{const e=l(UA.None),t=l(UA.None),n=l({prevScrollTop:0,prevScrollLeft:0}),r=f(r=>{if(r instanceof WheelEvent&&(e.current=CO(r.deltaY,0),t.current=CO(r.deltaX,0)),r instanceof Event&&!(r instanceof WheelEvent)){const o=r.target;e.current=CO(o.scrollTop,n.current.prevScrollTop),n.current.prevScrollTop=o.scrollTop,t.current=CO(o.scrollLeft,n.current.prevScrollLeft),n.current.prevScrollLeft=o.scrollLeft}},[e,t,n]);return{trackScrollDirection:r,scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),b=(()=>{const{viewService:e}=qk();return f(t=>{const n=t.target,r=t.currentTarget,o=n.dataset.key;o===xO&&(e.leftGridScrollLeft=r.scrollLeft),o===SO&&(e.scrollLeft=r.scrollLeft),o===yO&&(e.topGridScrollTop=r.scrollTop),o!==xO&&o!==SO||(e.scrollTop=r.scrollTop)},[e])})(),y={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s},getWrapperElements:f(()=>({headerGridWrapperElement:t.current,topGridWrapperElement:n.current,leftGridWrapperElement:r.current,dataGridWrapperElement:o.current}),[t,n,r,o]),updateViewService:b,trackScrollDirection:h,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:n},getWrapperElements:r,updateViewService:o,trackScrollDirection:i,interactions:a})=>{d(()=>{const{headerGridWrapperElement:o,topGridWrapperElement:s,leftGridWrapperElement:l,dataGridWrapperElement:c}=r(),u=e=>{e.ctrlKey||(e.preventDefault(),o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,l.scrollLeft=o.scrollLeft,s.scrollTop=o.scrollTop,i(e))},d=e=>{e.ctrlKey||(e.preventDefault(),l.scrollTop+=e.deltaY,t.current?.forEach(e=>{e?.scrollTo(l.scrollTop)}),o.scrollLeft+=e.deltaX,l.scrollLeft=o.scrollLeft,c.scrollTop=l.scrollTop,n.current?.scrollTo({scrollTop:l.scrollTop}),i(e))},p=t=>{t.ctrlKey||(t.preventDefault(),s.scrollLeft+=t.deltaX,e.current?.forEach(e=>{e?.scrollTo(s.scrollLeft)}),o.scrollTop+=t.deltaY,s.scrollTop=o.scrollTop,c.scrollLeft=s.scrollLeft,n.current?.scrollTo({scrollLeft:s.scrollLeft}),i(t))},f=r=>{r.ctrlKey||(r.preventDefault(),c.scrollLeft+=r.deltaX,c.scrollTop+=r.deltaY,n.current?.scrollTo({scrollLeft:c.scrollLeft,scrollTop:c.scrollTop}),s.scrollLeft=c.scrollLeft,e.current?.forEach(e=>{e?.scrollTo(c.scrollLeft)}),l.scrollTop=c.scrollTop,t.current?.forEach(e=>{e?.scrollTo(c.scrollTop)}),i(r))};return o.addEventListener("wheel",u),l.addEventListener("wheel",d),s.addEventListener("wheel",p),c.addEventListener("wheel",f),a.scroll||setTimeout(()=>{o.removeEventListener("wheel",u),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),c.removeEventListener("wheel",f)},0),()=>{o.removeEventListener("wheel",u),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),c.removeEventListener("wheel",f)}},[i,o,a,e,t,n,r])})(y),EO(y),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:n,leftGridWrapperRef:r,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s},scrollDirectionRefs:{verticalScrollDirection:m,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:c,horizontalScrollbarHeight:u,resetHorizontalScrollbarHeight:p}}},MO=()=>{const{layoutService:e}=qk(),{rect:t,pageInfo:n}=Dk();return v(()=>{let{height:r}=t;return e.hasLimitedData&&(r-=22),n.shouldShowPagination&&(r-=41),{...t,height:r}},[t,e,n.shouldShowPagination])},AO=({children:e,style:t})=>fi.jsx("div",{"data-testid":"fullSize",style:t,children:e}),PO=({children:e,style:t})=>{const{direction:n}=Dk();return fi.jsx("div",{"data-section-id":"GRID",style:{direction:n,display:"grid",...t},children:e})},qO=e=>e&&`scrollable-container--${e}`,kO=({children:e,style:t,origin:n},r)=>{const{interactions:o}=Mk(),i=o.scroll?t:{overflow:"hidden"};return fi.jsx("div",{"data-testid":"scrollable","data-key":qO(n),style:i,ref:r,children:e})};var TO=n.forwardRef(kO);const OO=({children:e,style:t})=>{const{direction:n}=Dk();return fi.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===n?"right":"left"]:0,...t},children:e})};var NO=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function jO(e,t){return e===t||!(!NO(e)||!NO(t))}function _O(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!jO(e[n],t[n]))return!1;return!0}function FO(e,t){var n;void 0===t&&(t=_O);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var zO="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function WO(e){cancelAnimationFrame(e.id)}function $O(e,t){var n=zO();var r={id:requestAnimationFrame(function o(){zO()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var HO=-1;function VO(e){if(void 0===e&&(e=!1),-1===HO||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),HO=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return HO}var BO=null;function GO(e){if(void 0===e&&(e=!1),null===BO||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?BO="positive-descending":(t.scrollLeft=1,BO=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),BO}return BO}var UO=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function YO(e){var t,n=e.getColumnOffset,o=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,s=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,c=e.getOffsetForColumnAndAlignment,u=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 r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,Ks(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Ks(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=FO(function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=FO(function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,i=r.props,s=i.columnWidth,l=i.direction,c=i.rowHeight,u=r._getItemStyleCache(g&&s,g&&l,g&&c),f=e+":"+t;if(u.hasOwnProperty(f))o=u[f];else{var h=n(r.props,t,r._instanceProps),m="rtl"===l;u[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:a(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=FO(function(e,t,n){return{}}),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(GO()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&WO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=$O(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}Fs(t,e),t.getDerivedStateFromProps=function(e,t){return KO(e,t),v(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}},this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=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=VO();void 0!==r&&(r=Math.max(0,Math.min(r,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=s(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?c(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(GO()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&WO(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,o=e.columnCount,i=e.direction,a=e.height,c=e.innerRef,u=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?UO:f,m=e.outerElementType,g=e.outerTagName,v=e.rowCount,b=e.style,y=e.useIsScrolling,x=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),C=w[0],E=w[1],I=this._getVerticalRangeToRender(),D=I[0],R=I[1],L=[];if(o>0&&v)for(var M=D;M<=R;M++)for(var A=C;A<=E;A++)L.push(r(t,{columnIndex:A,data:p,isScrolling:y?S:void 0,key:h({columnIndex:A,data:p,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,A)}));var P=s(this.props,this._instanceProps),q=l(this.props,this._instanceProps);return r(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:qe({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},r(u||d||"div",{children:L,ref:c,style:{height:P,pointerEvents:S?"none":void 0,width:q}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,r=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=n||r||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=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,c,this._instanceProps),p=h(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);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 KO=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},XO=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},JO=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},ZO=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var c=a+1;c<=n;c++){var u=i(c);o[c]={offset:s,size:u},s+=u}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},QO=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?eN(e,t,n,i,0,r):tN(e,t,n,Math.max(0,i),r)},eN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=ZO(e,t,a,n).offset;if(s===i)return a;s<i?o=a+1:s>i&&(r=a-1)}return o>0?o-1:0},tN=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&ZO(e,t,r,n).offset<o;)r+=a,a*=2;return eN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},nN=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=ZO(e,t,n,i),c="column"===e?JO(t,i):XO(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=o>=d-s&&o<=u+s?"auto":"center"),r){case"start":return u;case"end":return d;case"center":return Math.round(d+(u-d)/2);default:return o>=d&&o<=u?o:d>u||o<d?d:u}},rN=YO({getColumnOffset:function(e,t,n){return ZO("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return QO("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=ZO("column",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=ZO("column",e,c,r).size;return c},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:XO,getEstimatedTotalWidth:JO,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return nN("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return nN("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return ZO("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return QO("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=ZO("row",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=ZO("row",e,c,r).size;return c},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),oN=function(e,t){return e};function iN(e){var t,n=e.getItemOffset,o=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,c=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=c(r.props,Ks(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Ks(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=FO(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=FO(function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})}),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,o=r.props,a=o.direction,s=o.itemSize,l=o.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=i(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[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},r._getItemStyleCache=void 0,r._getItemStyleCache=FO(function(e,t,n){return{}}),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState(function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(GO()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&WO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=$O(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}Fs(t,e),t.getDerivedStateFromProps=function(e,t){return aN(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 n=this.props,r=n.itemCount,o=n.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?VO():0:l.scrollHeight>l.clientHeight?VO():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,s))},p.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(GO()){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&&WO(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,i=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,c=e.innerTagName,u=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?oN:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,b=e.useIsScrolling,y=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(u>0)for(var R=E;R<=I;R++)D.push(r(t,{data:d,key:f(R,d),index:R,isScrolling:b?x:void 0,style:this._getItemStyle(R)}));var L=o(this.props,this._instanceProps);return r(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:qe({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},r(l||c||"div",{children:D,ref:s,style:{height:S?"100%":L,pointerEvents:x?"none":void 0,width:S?L:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,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,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,a=r.scrollOffset;if(0===t)return[0,0,0,0];var c=s(this.props,a,this._instanceProps),u=l(this.props,c,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(C),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var aN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},sN=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.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 c=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return o[t]},lN=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=sN(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},cN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&sN(e,n,t).offset<r;)n+=i,i*=2;return lN(e,t,Math.min(n,o-1),Math.floor(n/2),r)},uN=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},dN=iN({getItemOffset:function(e,t,n){return sN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:uN,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=sN(e,t,o),p=uN(e,o),f=Math.max(0,Math.min(p-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===n&&(n=r>=h-u&&r<=f+u?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?lN(e,t,o,0,n):cN(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=sN(e,t,r),d=n+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=sN(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function pN(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var fN=["style"],hN=["style"];function mN(e,t){var n=e.style,r=ke(e,fN),o=t.style,i=ke(t,hN);return!pN(n,o)&&!pN(r,i)}const gN=10,vN=(e,t)=>e.current===UA.Backward?t:0,bN=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e.at(o);if(void 0===n||void 0===n.at(t))return!0}return!1},yN=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,xN=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],s=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(bN(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+s,qWidth:1,qHeight:r};void 0!==t&&yN(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},SN=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=r,c=n.current===UA.Backward?Math.max(0,o-25):i,u=Math.min(c+25,a);return xN({pageInfo:e,measureData:t,startLeft:c,endLeft:u,pageTop:s,qHeight:l})},wN=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:s,qHeight:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=e.size.x,l=vN(n,gN),c=Math.max(r-l,0);return{startLeft:c,endLeft:c+Math.min(i+gN,s-c),pageTop:o,qHeight:a}})(r,o,n),c=xN({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:s,qHeight:l});return c.length>0?[...c,...SN({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:c},CN=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},EN=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,IN=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],s=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(CN(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+s,qWidth:r,qHeight:1};void 0!==e&&EN(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},DN=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=vN(n,gN),l=Math.max(o-s,0);return{startTop:l,endTop:l+Math.min(a+gN,e.rowsOnCurrentPage-l),qLeft:r,qWidth:i}})(e,r,n),l=IN({startTop:o,endTop:i,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const r=n.current===UA.Backward?Math.max(0,o-25):i,c=Math.min(r+25,e.rowsOnCurrentPage),u=IN({startTop:r,endTop:c,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...u]}return l},RN=(e,t,n,r,o,i,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:c,gridWidth:u,gridHeight:d}=o;let p=[],f=[];i.current!==UA.None&&(p=DN({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==UA.None&&(f=wN({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===UA.None&&a.current===UA.None&&(p=IN({measureData:n,pageInfo:r,qLeft:l,qWidth:u,startTop:c,endTop:c+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},LN=function(e){var t,n,r,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];n=s;var c=Date.now()-i,u=function(){i=Date.now(),r=0,e.apply(t,n)};r||(c>=o?u():r=setTimeout(u,o-c))}}(RN,100),MN=oM(RN,75),AN=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),PN=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:s}=Dk(),{styleService:{grid:{border:l,divider:c}}}=qk();return fi.jsx("div",{style:{...e,...xP,...EP(n,r,l,s,o),...DP({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:c})},"data-testid":"empty-cell","data-index":t})},qN=({children:e,verticalAlign:t,width:n,right:r,isLeftColumn:o})=>{const{layoutService:{isIndentModeEnabled:i}}=qk(),a=o&&i;return fi.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,...!a&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},kN=e=>{const{type:t,imageSize:n}=e;return t!==jA.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},TN=e=>"number"==typeof e&&!Number.isNaN(+e),ON=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,NN=x((e,t)=>fi.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:fi.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),jN=x((e,t)=>fi.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:fi.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"})})),_N=x((e,t)=>fi.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:[fi.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"}),fi.jsx("use",{fillRule:"evenodd"})]})),FN=x((e,t)=>fi.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:fi.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"})})),zN=x((e,t)=>fi.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:fi.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"})})),WN=x((e,t)=>fi.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:fi.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"})})),$N=x((e,t)=>fi.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:fi.jsx("path",{d:"M2 7.5h12v1H2z"})})),HN=x((e,t)=>fi.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:fi.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"})})),VN=x((e,t)=>fi.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:fi.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"})})),BN=x((e,t)=>fi.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:fi.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"})})),GN=x((e,t)=>fi.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:fi.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"})})),UN=x((e,t)=>fi.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:fi.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),YN=x((e,t)=>fi.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:fi.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"})})),KN=x((e,t)=>fi.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:fi.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"})})),XN=x((e,t)=>fi.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:fi.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"})})),JN={m:UN,"ï":BN,R:x((e,t)=>fi.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:fi.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:YN,T:KN,U:XN,P:VN,Q:WN,"è":x((e,t)=>fi.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:fi.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"})})),"¢":FN,"©":_N,"23F4":zN,2013:GN,"&":HN,add:NN,"minus-2":$N,dot:jN},ZN=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&JN[t];return o&&fi.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:fi.jsx(o,{style:{height:e}})})},QN=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),ej=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},tj=(e,t,n)=>{const r={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 n=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,c=r===i.value?1:(r-a.value)/(i.value-a.value);return a.gradient&&i.gradient?r-a.value<i.value-r?{color:s.color,t:.5-c}:{color:l.color,t:c-.5}:a.gradient?{color:s.color,t:1-(.5+c/2)}:i.gradient?{color:l.color,t:c/2}:{color:o.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return TR(e.localPaletteColors[t].color??"").blend(TR(s.color??""),s.t)},nj=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort((e,t)=>e.value-t.value),e.limits=n.map(e=>({...e,value:QN(t,e.value)}))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map((e,t)=>({color:ej(r,t,n)}))),r},rj=(e,t,n,r)=>{const o=nj(e,n,r),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let n="",r=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>=r&&t<i){n=tj(e,a,t);break}r=i}return n})(o,t);return a},oj=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!TN(e));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!TN(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},ij=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=oj(e,t),o=Math.abs(t);return{min:n??t-o,max:r??t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!TN(t))return 0;let a=n&&TN(n)?Math.min(n,t):0;const s=r.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,r.min);return{limitRange:r,limitPaletteColorIndex:o}},aj=e=>"flex-start"===e?"flex-end":"flex-start",sj=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=ij(o,t),a=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,n.limitPaletteColorIndex))return ej(o,n.limitPaletteColorIndex,r);const a=QN(n.limitRange,t);return rj(o,a,n.limitRange,r)})(o,t,i,r),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let c=l?.position||"right";return"rtl"===n&&(c="right"===c?"left":"right"),{color:a,iconKey:s,position:c}},lj=({representation:e,cellValue:t,textStyle:n})=>{const{styleService:r}=qk(),{theme:o}=Mk(),{direction:i}=Dk(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=sj(e,t,i,o),{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m}=r.measureValues,g={fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m},v=parseInt(d||dP,10),{iconKey:b,color:y,position:x}=u||{},S={display:"flex",paddingTop:2};return l?fi.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:n?.overflow,color:c?y:n?.color},children:["left"===x&&ZN({size:v,iconKey:b,color:y,pvStyle:S}),fi.jsx("span",{style:{paddingTop:4,overflow:n?.overflow,textOverflow:n?.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===x&&ZN({size:v,iconKey:b,color:y,pvStyle:S})]}):(S.paddingTop=5,ZN({size:v,iconKey:b,color:y,pvStyle:S}))},cj=e=>!!e.target?.getAttribute("class")?.includes(AD),uj=(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:n}=t.payload,r=Math.min(n,e.activeSelection.startIndex),o=Math.max(n,e.activeSelection.endIndex);if(r===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:r,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:n,endIndex:r,clientSelectedCells:o}=e,i=new Map(o);for(let e=n;e<=r;e++){const n=t(e);"N"===n?.ref.qType&&i.set(n.ref.qElemNo,n)}return i})(i),{...e,activeSelection:i}}default:return e}},dj=e=>null!==e.target?.closest("[data-prevent-selection]"),pj=e=>"A"===e.target?.tagName,fj=({startIndex:e,getCellFromIndex:t,cell:n})=>({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(n.ref.qElemNo,n)},selectedField:{selectionCellType:n.selectionCellType,index:"L"===n.selectionCellType?n.x:n.y}}});const hj=c({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),mj=()=>h(hj),gj=({children:e,selections:t})=>{const n=function(e){const{updatePageInfo:t}=Dk(),n=e.isActive(),[r,o]=u(uj,{engineSelectedCells:null,selectedField:null,activeSelection:null});d(()=>{const n=()=>{o({type:"clearSelections"})},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}},[e,t]);const i=f(async()=>{if(!r.activeSelection)return;var t,n;1===r.activeSelection.clientSelectedCells.size&&(t=r.engineSelectedCells,(n=r.activeSelection).clientSelectedCells.forEach((e,r)=>{t?.has(r)&&(n.clientSelectedCells.delete(r),t.delete(r))}));const i=new Map([...r.engineSelectedCells??new Map,...r.activeSelection.clientSelectedCells]);try{o({type:"mouseup",payload:{engineSelectedCells:i}}),await e.select({method:"selectPivotCells",params:[Ok,Array.from(i,([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x}))]})}catch(e){console.error(e),o({type:"mouseup",payload:{engineSelectedCells:r.engineSelectedCells}})}},[r,e]);d(()=>{if(r.activeSelection)return document.addEventListener("mouseup",i),()=>{document.removeEventListener("mouseup",i)}},[i,r.activeSelection]);const a=f((e,t)=>n=>{const r=t(e);cj(n)||dj(n)||pj(n)||!(e=>1===e.buttons)(n)||!r||o(fj({startIndex:e,getCellFromIndex:t,cell:r}))},[]),s=f(t=>async()=>{r.activeSelection&&(e.isActive()||await e.begin([Ok]),o({type:"mouseover",payload:{index:t}}))},[r.activeSelection,e]),l=f((e,t)=>n=>{if("touch"!==n.pointerType)return;const r=t(e);cj(n)||dj(n)||pj(n)||!r||(o(fj({startIndex:e,getCellFromIndex:t,cell:r})),i())},[i]),c=f(e=>!(!r.engineSelectedCells?.size&&!r.activeSelection?.clientSelectedCells.size||!r.selectedField||e.selectionCellType===r.selectedField.selectionCellType&&("L"===e.selectionCellType?r.selectedField.index===e.x:r.selectedField.index===e.y)),[r.activeSelection?.clientSelectedCells.size,r.engineSelectedCells?.size,r.selectedField]),p=f(e=>!c(e)&&(r.engineSelectedCells?.has(e.ref.qElemNo)||!!r.activeSelection?.clientSelectedCells.has(e.ref.qElemNo)),[c,r.activeSelection?.clientSelectedCells,r.engineSelectedCells]);return v(()=>({isSelected:p,isActive:n,isLocked:c,createMouseDownHandler:a,createMouseOverHandler:s,createPointerUpHandler:l}),[p,n,c,a,s,l])}(t);return fi.jsx(hj.Provider,{value:n,children:e})},vj=e=>"fill"===e.representation.imageSize,bj=(e,t)=>{let n=e.isLeftColumn?"flex-start":"center";return e.isLeftColumn&&vj(e)&&t&&(n="center"),e.representation.type!==jA.Image||vj(e)?n:e.representation.resolvedImagePosition?.vertical};var yj=function(e){return e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration",e}(yj||{});const xj={brighter:.5,darker:.3,opacity:.03},Sj=(e,{cell:t,styleService:n})=>{if(e===yj.Background||e===yj.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?e===yj.Background&&t.headerColor?.background?t.headerColor.background:e===yj.Color&&t.headerColor?.color?t.headerColor.color:n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},wj=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return e.selectedColors.background;const o=Sj(yj.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?Sj(yj.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${hM(i=o,xj)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},Cj=({cell:e,styleService:t,isCellSelected:n})=>n?t.selectedColors.color:Sj(yj.Color,{cell:e,styleService:t}),Ej=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=Sj(yj.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?fP:o},Ij=({cell:e,styleService:t})=>Sj(yj.FontStyle,{cell:e,styleService:t}),Dj=({cell:e,styleService:t})=>Sj(yj.TextDecoration,{cell:e,styleService:t}),Rj=e=>e?"pointer":"default",Lj=({expandOrCollapse:e,cell:t})=>n=>{e?.(t.y,t.x),n.stopPropagation()},Mj=(e,t)=>{if(!e.isLeftColumn||e.representation.type===jA.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},Aj=({cell:e,isLeftColumn:t,isCellSelected:n})=>{const{styleService:r,layoutService:o}=qk(),{interactions:i}=Mk(),{isActive:a}=mj(),{dataModel:s}=QT();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!s,c=Cj({cell:e,styleService:r,isCellSelected:n}),u=a?.4:1,d=e.ref.qCanExpand?jq:Nq;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=iO({isLeftColumn:t,layoutService:o,representation:e.representation});return fi.jsx(d,{opacity:u,color:c,"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,...Mj(e,r),...f&&{alignSelf:bj(e)}},onClick:l?void 0:Lj({cell:e,expandOrCollapse:p})})},Pj=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},qj=(e,t,n)=>{if("alwaysFit"===e&&t&&!n)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return n?"unset":"100%";default:return"100%"}},kj=(e,t)=>{if("alwaysFit"===e)switch(t?.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},Tj=({representation:e,canExpandOrCollapse:t,leafCount:n,isLeftColumn:r,styleService:o,layoutService:i,isMeasureCell:a})=>{const{isIndentModeEnabled:s}=i,l=iO({isLeftColumn:r,layoutService:i,representation:e}),c=t?21:0,u=e.imageBox?.width??24;let d=`calc(100% - ${c}px)`,p=o.headerCellHeight;r&&l&&(d=u),(a||r)&&(p=o.contentCellHeight);let f=p;switch(r&&void 0!==n&&!s&&(f=p*Math.max(n,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}}},Oj=e=>{if("alwaysFit"===e)return"contain"},Nj=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),jj=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:n,isMeasureCell:r})=>({width:qj(e,n,r),height:Pj(e),objectFit:Oj(e),objectPosition:kj(e,t),...n&&"alwaysFit"===e?{"max-width":"100%"}:{}}),_j=({representation:e,textStyle:t,isMeasureCell:n})=>{const{imageRef:r,onLoad:o}=(()=>{const{downloadService:e}=qk(),t=l(null),{promise:n,resolve:r}=v(()=>OP(),[]);return d(()=>(e.isDownloadedAsPDForImage&&(e.waitForPromise(n),t.current?.complete&&r()),()=>{r()}),[t,e,n,r]),{onLoad:f(()=>{r()},[r]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:i}}=qk(),{url:a,text:s,imageSize:c,resolvedImagePosition:u}=e,{overflow:p,...h}=t;return fi.jsx("img",{src:a,alt:s,style:{...jj({imageSize:c,resolvedImagePosition:u,isImagesInIndentModeEnabled:i,isMeasureCell:n}),...h},onLoad:o,ref:r})},Fj=({representation:e,textStyle:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o=!1,imageContainerHorizontalAlignment:i,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=qk(),{resolvedImagePosition:c}=e;return fi.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:c?.vertical,alignItems:i,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...Tj({representation:e,canExpandOrCollapse:n,leafCount:r,styleService:s,layoutService:l,isLeftColumn:o,isMeasureCell:a})},children:fi.jsx(_j,{representation:e,textStyle:t,isMeasureCell:!0})})},zj=(e,t,n)=>{if(e?.auto)return t;switch(e?.align){case"center":return"center";case"left":return"rtl"===n?"flex-end":"flex-start";case"right":return"rtl"===n?"flex-start":"flex-end";default:return t}},Wj=(e,t)=>{let{textAlign:n}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:n}=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex)??{}),n?.auto||void 0===n?"left":n.align},$j={display:"flex",flexDirection:"row",alignItems:"center"},Hj={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},Vj=(e,t,n,r)=>t?{...Hj,...e.nullValues}:n?{...$j,color:e.totalValues.color,background:r??e.totalValues.background}:{...$j,color:e.measureValues.color,background:r??e.measureValues.background},Bj=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,s={...SP,...!n&&wP(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...s,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...s,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:l,fontStyle:c,textDecoration:u}=e.measureValues;return{...s,fontWeight:void 0===l?fP:l,fontStyle:c,textDecoration:u}},Gj=({cell:e,representation:t,color:n,isTotalValueCell:r,cellHorizontalAlignment:o})=>{const{layoutService:i,styleService:a}=qk(),{isIndentModeEnabled:s}=i,l=e.isNull?i.getNullValueText():t.text,c=t.type===jA.Image,u=t.type===jA.Indicator,d=TN(ON(l)),p=Bj(a,n,d,r,e.isNull);if(!s&&c&&!e.isNull||s&&c&&!e.isNull)return fi.jsx(Fj,{isMeasureCell:!0,textStyle:p,representation:t,imageContainerHorizontalAlignment:o});const f=ON(e.isNull?t.text:e.ref.qNum);return u&&TN(f)?fi.jsx(lj,{representation:t,cellValue:f,textStyle:p}):fi.jsx("span",{style:{padding:4,direction:d?"ltr":void 0,...p},children:l})},Uj=(e,t)=>e?.[t]?.visibleMeasureInfoIndex??0,Yj="flex-start",Kj=(e,t)=>e.isNull?Yj:t.type===jA.Image&&"fill"!==t.imageSize?t.resolvedImagePosition?.vertical:Yj,Xj=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{env:o}=Mk(),{pageInfo:i,direction:a}=Dk(),{styleService:s,layoutService:l}=qk(),{attrExprInfoIndexes:c,gridSectionsData:{measureData:u,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleLeftDimensionInfo:h,visibleTopDimensionInfo:m}}=QT(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=qk(),{gridSectionsData:{leftDimensionData:t,topDimensionData:n},visibleDimensionsInfo:{visibleLeftDimensionInfo:r,visibleTopDimensionInfo:o}}=QT(),i=r.length,a=o.length;return f((r,o)=>!(!n.grid.at(a-1)?.[r]?.isTotal&&!t.grid.at(e?0:i-1)?.[o]?.isTotal),[n,t,i,a,e])})(),v=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=QT(),n=t.length;return f(t=>{const r=e.grid.at(n-1)?.[t];return AN(r,e.totalDividerIndex)},[e,n])})(),b=(()=>{const{layoutService:{isIndentModeEnabled:e}}=qk(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:n}}=QT(),r=n.length;return f(n=>{const o=e?0:r-1,i=t.grid.at(o)?.[n];return AN(i,t.totalDividerIndex,e)},[t,e,r])})(),{showLastBorder:y}=r,x=p.grid.at(m.length-1),S=d.grid.at(h.length-1),{background:w}=s.measureValues,C=u[t]?.[e],E=t===i.rowsOnCurrentPage-1,I=e===l.size.x-1;if(!C)return fi.jsx(PN,{style:{...n,background:w},isLastRow:E,isLastColumn:I,showLastBorder:y,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const D=l.hasPseudoDimOnLeft?Uj(S,t):Uj(x,e),R=l.visibleMeasureInfo[D],L=PT({cell:C.ref,representationProperties:R.representation,attrExprInfoIndex:c.measures[D],env:o,direction:a,conditionalColoring:R.conditionalColoring,enabledFeatures:{[jA.Image]:!0,[jA.Indicator]:!0}}),M=!C.isNull&&g(e,t),A=C.isNull?l.getNullValueText():L.text,P=!C.isNull||!Number.isNaN(+A),q=qT(c.measures[D],C.ref),k=((e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";return e.isNull||n.type!==jA.Image?zj(i,a,o):n.resolvedImagePosition?.horizontal??"center"})(C,R,L,P,a),T={...Vj(s,C.isNull,M,q.background),...EP(E,I,s.grid.border,a,y),...DP({bottomDivider:b(t),rightDivider:v(e),borderColor:s.grid.divider}),...xP,padding:"0px 4px",display:"flex",justifyContent:k};return fi.jsx("div",{className:LD,title:A,style:{...T,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:fi.jsx(qN,{width:kN(L),verticalAlign:Kj(C,L),children:fi.jsx(Gj,{cell:C,representation:L,isTotalValueCell:M,color:q.color,cellHorizontalAlignment:k})})})};var Jj=n.memo(Xj,mN);const Zj=(e,t)=>t.list[e]?.id??e.toString(),Qj=({columnIndex:e,rowIndex:t,data:n})=>n.grid[t]?.[e]?.id??`${t}-${e}`,e_=e=>({...yP,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),t_=({dataGridRef:e,height:t,rowHightCallback:n,width:r,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:c}=Dk(),{layoutService:u,styleService:{grid:{divider:d},contentCellHeight:p}}=qk(),{dataModel:h,gridSectionsData:{measureData:m}}=QT(),v={...e_(c),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},b=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:n}=Dk(),{downloadService:r,viewService:o,layoutService:i}=qk(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:c}}=QT(),u=s.columnCount,d=l.rowCount;return f(({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+u+(t.current===UA.None?0:gN),m=o.gridHeight+d+(e.current===UA.None?0:gN);let g=LN;m*h>1500&&(g=MN),g(a,i,c,n,o,e,t,r)},[o,i,a,c,e,t,n,u,d,r])})({verticalScrollDirection:a,horizontalScrollDirection:s});return QP(()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)},[e,h,m]),g(()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})},[r,t,e,p,c]),0===u.size.x?null:fi.jsx(rN,{"data-section-id":"DATA_GRID",ref:e,style:v,columnCount:u.size.x,columnWidth:i,height:t,rowCount:l.rowsOnCurrentPage,rowHeight:n,width:r,itemData:{showLastBorder:o,grid:m},onItemsRendered:b,estimatedRowHeight:n(),estimatedColumnWidth:i(),itemKey:Qj,direction:c,children:Jj})};var n_=y(t_);const r_=x((e,t)=>fi.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:[fi.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"}),fi.jsx("use",{fillRule:"evenodd"})]})),o_=e=>{const[t,n]=Tf(IO);return QP(()=>{n(!1)},e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},i_=()=>{const[e,t]=m(!1),{dataModel:n}=QT(),{interactions:r}=Mk(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=o_([n]);return{open:e,setOpen:t,handleOpenMenu:e=>{!r.active||cj(e)||o||t(!0)},isAdjustingWidth:o,setIsAdjustingWidth:i}};function a_(e,t){const n=t.expressionColor?.background??e.dimensionValues.background,r=t.isLeftColumn?e.header.background:n,o=r===gP.Transparent?xR.WHITE:r,i=TR(e.grid.border),a=TR(o);return a.isInvalid()||i.isInvalid()||1===i.a?e.grid.border:function(e,t,n){return TR(e.r+(t.r-e.r)*n,e.g+(t.g-e.g)*n,e.b+(t.b-e.b)*n,e.a+(t.a-e.a)*n)}(a,i,i.a).getRGB()}const s_=({cellInfo:e,columnWidth:t,isLastColumn:n,overrideLeftGridWidth:r,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{const{direction:s}=Dk(),{interactions:l,translator:c}=Mk(),{isActive:u}=mj(),{dataModel:d}=QT(),{styleService:p}=qk(),[,f]=m({});if(!(e.canBeResized&&!!l.active&&!u))return null;const h=a_(p,e);return fi.jsx(iq,{isPivot:!0,columnWidth:t,isLastColumn:n,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{f({}),r&&void 0!==e.colIdx&&r(t,e.colIdx)},confirmWidthCallback:t=>{i?d.applyIndentModeColumnWidth({...t,pixels:Math.min((a??0)*rO,t.pixels??0)}):d.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:c,columnLabel:e.label??""},direction:s})},l_=Ls(hc,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})(({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}})),c_=Ls("div",{shouldForwardProp:e=>!["direction"].includes(e)})(({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0})),u_=Ls("div",{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({...bP,justifyContent:e??bP.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8})),d_=Ls("div")(()=>({...bP})),p_=Ls("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})(({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o})),f_=Ls(Md)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),h_=Ls(Td,{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}}})),m_=Ls("span")({textOverflow:"ellipsis",overflow:"hidden"}),g_=Ls("div",{shouldForwardProp:e=>"visible"!==e})(({visible:e})=>({opacity:e?1:0,width:tO,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})),v_=Ls("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})(({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0}));let b_=function(e){return e.Expand="Expand",e.Collapse="Collapse",e}({});const y_=(e,t)=>({qExcludeList:t===b_.Expand,qPos:{qDimName:e,qElemNo:[]}}),x_=`${Ok}/qExpansionState`,S_=({model:e,qExpansionState:t,qEffectiveDimensionName:n,action:r})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:n})=>{const r=t?.findIndex(t=>t.qPos?.qDimName===e);return{expansionData:y_(e,n),index:r}})({qEffectiveDimensionName:n,oldExpansionState:t,action:r});await(async({model:e,newExpansionState:t,errorMsg:n})=>{const{index:r,expansionData:o}=t;try{let t,n=x_,i="Add";void 0===r?t=JSON.stringify([o]):-1===r?(n=`${x_}/-`,t=JSON.stringify(o)):(n=`${x_}/${r}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:n,qOp:i,qValue:t}],!0)}catch(e){console.error(n,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${r} dimension`})},w_=({model:e,effectivePropertiesService:t,cell:n})=>{if(void 0===n.qEffectiveDimensionName)return;const r={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n.qEffectiveDimensionName};return{expandCallback:S_({...r,action:b_.Expand}),collapseCallback:S_({...r,action:b_.Collapse}),alwaysFullyExpanded:t.qAlwaysFullyExpanded}},C_={[Bq.Sorting]:!0,[Bq.Selections]:!0,[Bq.Searching]:!0},E_=({cell:e,style:t,isFirstColumn:n,isLastColumn:r,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:s,overrideLeftGridWidth:c,shouldApplyIndentModeColumnWidth:u,tableWidth:d})=>{const p=l(null),{styleService:f,layoutService:h,effectivePropertiesService:m}=qk(),{app:g,interactions:v,embed:b,translator:y,model:x,env:S}=Mk(),{fontSize:w,fontFamily:C,fontStyle:E,fontWeight:I,textDecoration:D,color:R,background:L,hoverBackground:M,activeBackground:A}=f.header,P=l(null),{shouldShowLockIcon:q,shouldShowMenuIcon:k}=a,{open:T,setOpen:O,handleOpenMenu:N,setIsAdjustingWidth:j}=i_(),{direction:_}=Dk(),F={sortFromMenu:async(t,n)=>{t.stopPropagation(),await i(e,n)}},z={embed:b,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?m.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},W={app:g,qStateName:h.layout.qStateName},{labelTextAlign:$}=h.getDimensionInfo(e.dimensionInfoIndex)??{},H=zj($,"flex-start",_);return fi.jsxs(l_,{className:LD,title:e.label,interactions:v,background:T?e.headerColor?.headerMenuActiveBackground??A:e.headerColor?.background??L,hoverBackground:e.headerColor?.headerMenuHoverBackground??M,shouldShowMenuIcon:k,isDimension:e.isDim,style:{...t,...xP,...IP(e,o,n,r,f.grid.border,_),color:e.headerColor?.color??R},"data-testid":"title-cell",onClick:N,children:[fi.jsxs(u_,{children:[q?fi.jsx(d_,{children:fi.jsx(r_,{height:12})}):null,fi.jsx(p_,{fontFamily:C,fontSize:w,fontStyle:E,fontWeight:I,textDecoration:D,justifyContent:H,children:fi.jsx("span",{style:S.flags.isEnabled("VNA-135-WRAP_HEADER_TEXT")?{...SP,...wP(f.grid.columnLineClamp)}:SP,children:e.label})})]}),e.isDim?fi.jsxs(fi.Fragment,{children:[fi.jsx(Yq,{headerData:e,translator:y,anchorRef:P,open:T,setOpen:O,interactions:v,menuAvailabilityFlags:C_,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:W,expandOrCollapseArgs:w_({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:k,model:x&&"setActiveField"in x?x:void 0,direction:_,isAccessibleHeader:!0}),fi.jsx(c_,{ref:p,direction:_}),fi.jsx(c_,{ref:P,direction:_})]}):null,fi.jsx(s_,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:r,overrideLeftGridWidth:c,setIsAdjustingWidth:j,shouldApplyIndentModeColumnWidth:u,tableWidth:d})]})},I_=({rowSpan:e,columnSpan:t})=>{const{styleService:n}=qk(),{direction:r}=Dk();return e>0&&t>0?fi.jsx("div",{style:{...yP,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===r?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null},D_=x((e,t)=>fi.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:fi.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})})),R_=x((e,t)=>fi.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:[fi.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),fi.jsx("use",{fillRule:"evenodd"})]})),L_=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:n})=>{const{direction:r}=Dk(),{styleService:o}=qk(),{interactions:i,translator:a}=Mk(),{isActive:s}=mj(),{dataModel:l}=QT(),{setIsAdjustingWidth:c}=o_([l]);if(!(!!i.active&&!s))return null;const u=a_(o,{isLeftColumn:!0});return fi.jsx(iq,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:u,columnWidth:t,updateWidthCallback:t=>{n(Math.min(t,e*rO))},confirmWidthCallback:r=>{if(r.type===qD.FitToContent)return void l.applyIndentModeColumnWidth({type:qD.Auto});const o=Math.min(r.pixels??t,e*rO);n(o),l.applyIndentModeColumnWidth({type:qD.Pixels,pixels:o})},setIsAdjustingWidth:c,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:r})},M_=x((e,t)=>fi.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:fi.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"})})),A_=({cell:e,changeSortOrder:t})=>{const n=l(null),r=l(null),{app:o,interactions:i,embed:a,translator:s,model:c}=Mk(),{layoutService:u,effectivePropertiesService:d}=qk(),{open:p,setOpen:f,handleOpenMenu:h}=i_();return fi.jsxs(h_,{onClick:h,isActive:p,children:[fi.jsx(m_,{children:e.label}),fi.jsxs(g_,{className:"indent-mode-dropdown-more",visible:p,children:[fi.jsx(M_,{}),e.isDim?fi.jsxs(fi.Fragment,{children:[fi.jsx(Yq,{headerData:e,translator:s,anchorRef:n,open:p,setOpen:f,interactions:i,menuAvailabilityFlags:C_,sortRelatedArgs:{sortFromMenu:async(n,r)=>{n.stopPropagation(),await t(e,r)}},searchRelatedArgs:{embed:a,listboxRef:r},selectionRelatedArgs:{app:o,qStateName:u.layout.qStateName},expandOrCollapseArgs:w_({model:c,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:c&&"setActiveField"in c?c:void 0}),fi.jsx(c_,{ref:r}),fi.jsx(c_,{ref:n})]}):null]})]})},P_=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{const o=n.at(-1)?.id===jk,i=e+1<n.length&&n[e+1]?.id===jk;return!(r&&o&&i)&&(t?.id!==jk&&e<n.length-1)},q_=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:n,leftGridWidth:r,tableWidth:o})=>{const{styleService:i}=qk(),{interactions:a,translator:s}=Mk(),{dataModel:c,gridSectionsData:{headersData:u}}=QT(),[d,p]=m(!1),f=l(null),{headerCellHeight:h}=i,{color:g,background:v,hoverBackground:b,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E}=i.header,{isAdjustingWidth:I}=o_([c]),D=e=>{e.stopPropagation()},R={height:h,gridColumn:`1 / span ${u.size.x}`,gridRow:u.size.y,zIndex:u.size.x-0};return fi.jsxs(l_,{isDimension:!0,background:d?y:v,interactions:a,hoverBackground:b,style:{...R,...xP,color:g},onClick:e=>{!a.active||cj(e)||I||p(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[fi.jsxs(u_,{justifyContent:"flex-start",children:[fi.jsx(p_,{fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E,justifyContent:"flex-start",children:fi.jsx("span",{style:SP,children:s.get("SNPivotTable.IndentMode.Rows")})}),d?fi.jsx(R_,{}):fi.jsx(D_,{}),fi.jsx(c_,{ref:f})]}),fi.jsx(f_,{open:d,anchorEl:f.current,disableEnforceFocus:!0,children:e.map((n,r)=>[n&&n.id!==jk&&fi.jsx("li",{role:"presentation",onClick:D,onKeyDown:D,children:fi.jsx(A_,{cell:n,changeSortOrder:t})}),P_({idx:r,menu:n,menuItems:e,isOnlyOneRow:1===u.size.y})&&fi.jsx(uq,{"data-testid":"group-divider",variant:"middle"})])}),fi.jsx(L_,{tableWidth:o,leftGridWidth:r,overrideLeftGridWidth:n})]})},k_=({layoutService:e,headersData:t,topRowIndex:n})=>e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y,T_={display:"grid",width:"fit-content"},O_=({tableWidth:e,leftGridWidth:t,columnWidths:n,rowHight:r,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=qk(),{gridSectionsData:{headersData:c}}=QT();return fi.jsxs("div",{"data-testid":"HEADER_GRID",style:{...T_,gridTemplateColumns:n.map(e=>`${e}px`).join(" "),gridTemplateRows:c.data.map(()=>`${r}px`).join(" "),height:a},children:[c.size.y>1&&fi.jsx(I_,{columnSpan:c.size.x-1,rowSpan:c.size.y-1}),c.data.map((a,u)=>{let d=[];if(k_({layoutService:l,headersData:c,topRowIndex:u})){const n=a.at(0);return Array.isArray(n)&&d.push(fi.jsx(q_,{menuItems:n,changeSortOrder:o,overrideLeftGridWidth:s,leftGridWidth:t,tableWidth:e},n.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===c.size.x;t.push(fi.jsx(E_,{style:{width:n[d],height:r,gridColumn:l.isIndentModeEnabled&&c.size.x>1?2:d+1,gridRow:u+1,zIndex:c.size.x-d},isLastRow:u===c.size.y-1,isFirstColumn:0===d,isLastColumn:d===c.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:n[d],overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t},[]),d})]})};var N_=y(O_);const j_=(e,t,n,r)=>{const{layoutService:o}=qk();g(()=>{e.current?.forEach(e=>e?.resetAfterIndex(0,!0))},[e,t,n,r,o])},__=(e,t)=>{QP(()=>{e.current?.forEach(e=>e?.resetAfterIndex(0,!1))},[e,t])},F_=(e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]},z_=(e,t,n,r,o)=>{if(o)return;const i=e.representation,a=iO({isLeftColumn:n,layoutService:t,representation:i}),s=n?"flex-start":"center",l=e.representation.resolvedImagePosition?.horizontal;if(e.representation.type===jA.Image)return a&&l&&"center"!==l&&"rtl"===r?aj(l):l??s;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){const{labelTextAlign:n}=t.visibleMeasureInfo[e.visibleMeasureInfoIndex]??{};return zj(n,s,r)}const{textAlign:c}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return zj(c,s,r)},W_=()=>{},$_=({children:e,reactWindowStyle:t,cell:n,data:r,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:s,isCellSelected:l,isAdjustingWidth:c,index:u})=>{const{styleService:d,layoutService:p}=qk(),{interactions:f}=Mk(),{direction:h}=Dk(),{isLocked:m,createMouseDownHandler:g,createMouseOverHandler:v,createPointerUpHandler:b}=mj(),{showLastBorder:y}=r,x=m(n)||n.isLockedByDimension,S=!(x||!f.active||!f.select||n.isEmpty||n.isNull||n.isPseudoDimension||n.isTotal||c),w=S?g(u,e=>F_(e,r)):void 0,C=S?v(u):void 0,E=S?b(u,e=>F_(e,r)):void 0,I=iO({isLeftColumn:s,layoutService:p,representation:n.representation});return fi.jsx("div",{className:LD,title:f.passive?n.representation.text:void 0,style:{...t,...EP(i,a,d.grid.border,h,y),...DP({bottomDivider:o&&s,rightDivider:o&&!s,borderColor:d.grid.divider}),...xP,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:Rj(S),background:wj({styleService:d,isCellSelected:l,cell:n,isCellLocked:x}),zIndex:s?void 0:p.size.x-n.x,justifyContent:z_(n,p,s,h,I),display:"flex",...p.isIndentModeEnabled&&s&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(n.indentLevel??0))},textAlign:Wj(n,p)},"aria-hidden":"true",onMouseDown:w,onMouseOver:C,onPointerUp:E,onKeyUp:W_,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":n.x,"data-page-x":n.pageX,"data-y":n.y,"data-page-y":n.pageY,"data-cell-type":n.ref.qType,"data-dimension-info-index":n.dimensionInfoIndex,children:e})},H_=e=>{e.stopPropagation()},V_=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:H_,color:xR.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),B_=({href:e,text:t,interactions:n,color:r})=>fi.jsx(Tu,{...V_({href:e,text:t,interactions:n,color:r}),children:t}),G_=Y();G_.use(U),G_.renderer.prio(["canvas"]);const U_=(e,t)=>e&&"center"!==e&&"rtl"===t?aj(e):e,Y_=({cell:e,representation:t,textStyle:n,imageContainerHorizontalAlignment:r})=>{const{imageBox:o}=t,{styleService:{grid:{lineClamp:i}}}=qk(),{direction:a}=Dk();return fi.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${o?.width??24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[fi.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:bj(e),alignItems:U_(r,a),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:o?.width??24,height:"100%"},children:fi.jsx(_j,{representation:t,textStyle:n})}),fi.jsx(v_,{padding:4/(i<=2?2:1),alignSelf:bj(e,!0),children:!!t.labelStructure&&Nj(t.labelStructure)})]})},K_=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,X_=({href:e,text:t,labelStructure:n,interactions:r,color:o})=>fi.jsxs("span",{children:[fi.jsx(Tu,{...V_({href:e,text:t,interactions:r,color:o}),children:n?.maskedValue?n.maskedValue:n?.originalValue}),!!n&&K_(n)]}),J_=({children:e,textStyle:t,shouldEnableStickyText:n})=>fi.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...n&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),Z_=({isLeftColumn:e,styleService:t,cell:n,isIndentModeEnabled:r})=>e?r?t.grid.lineClamp:Math.max(t.grid.lineClamp,n.leafCount*t.grid.lineClamp):t.grid.columnLineClamp,Q_=({cell:e,isCellSelected:t,isLeftColumn:n})=>{const{direction:r}=Dk(),{isActive:o}=mj(),{layoutService:i,styleService:a}=qk(),{interactions:s}=Mk(),l=n&&i.isIndentModeEnabled;let c=n&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:n}}=e;if(!n||!n.originalValue)return t;const{originalValue:r,maskedValue:o,suffix:i,delimeter:a}=n;return`${0!==o.length?o:r} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const u=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r,isIndentModeEnabled:o})=>({...SP,...wP(Z_({cell:e,isLeftColumn:r,styleService:t,isIndentModeEnabled:o})),color:Cj({cell:e,styleService:t,isCellSelected:n}),fontWeight:Ej({cell:e,styleService:t}),fontStyle:Ij({cell:e,styleService:t}),textDecoration:Dj({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:n,isIndentModeEnabled:i.isIndentModeEnabled});if(e.representation.type===jA.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=n&&t&&t.suffix?Y_:Fj;return fi.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:u,isLeftColumn:n,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:z_(e,i,n,r)})}if(e.representation.type===jA.Link&&!o&&!e.isTotal){const t=n&&e.representation.labelStructure?X_:B_;c=fi.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return fi.jsx(J_,{shouldEnableStickyText:l,textStyle:{...u,...e.representation.type===jA.Image&&e.isNull?{alignSelf:bj(e)}:{}},children:c})},eF=({index:e,style:t,data:n})=>{const{styleService:r,layoutService:o}=qk(),{isSelected:i}=mj(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:c,totalDividerIndex:u}=n,{isAdjustingWidth:d,setIsAdjustingWidth:p}=o_([n]),f=F_(e,n),h=a?e===l-1:c,m=a?c:e===l-1,g=AN(f,u,o.isIndentModeEnabled);if(void 0===f){const{background:n}=r.dimensionValues;return fi.jsx(PN,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const v=i(f);return fi.jsxs($_,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:v,showTotalCellDivider:g,cell:f,data:n,isAdjustingWidth:d,index:e,children:[fi.jsxs(qN,{verticalAlign:bj(f),width:kN(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[fi.jsx(Aj,{isLeftColumn:a,isCellSelected:v,cell:f}),fi.jsx(Q_,{isLeftColumn:a,isCellSelected:v,cell:f})]}),fi.jsx(s_,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?VA.Measures:VA.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var tF=n.memo(eF,mN);const nF=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{const i=n?e[o]:t.at(o);return i&&0===o&&i.x>0?(i.leafCount+i.x+i.distanceToNextCell)*r():!n&&i?(i.leafCount+i.distanceToNextCell)*r():r(i?.x??o)},rF=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},oF=(e,t)=>n=>{e.current&&(e.current[t]=n)},iF={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...yP},aF={overflow:"hidden",willChange:"auto",flexShrink:0},sF=({leftGridRef:e,width:t,height:n,columnWidths:r,showLastBorder:o})=>{const{pageInfo:i,direction:a}=Dk(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:c}}}=qk(),{qSize:u}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=QT();__(e,d),j_(e,t,n,l);const f=i.rowsOnCurrentPage*l,h={...iF,borderColor:c,width:r.reduce((e,t)=>e+t,0)};return fi.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map((t,c)=>{const h=c===d.columnCount-1,m=_k(p[c]),{itemCount:g,estimatedItemSize:v,listValues:b}=rF(t,f,i.rowsOnCurrentPage,h),y=s.isIndentModeEnabled?()=>l:((e,t,n,r,o)=>i=>{const a=r?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(t,b,l,h,u.qcy);return fi.jsx(dN,{ref:oF(e,c),style:{...aF,flexGrow:h?1:0,direction:a},height:n,width:r[c],itemCount:g,itemSize:y,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:o,listValues:b,totalDividerIndex:d.totalDividerIndex},itemKey:Zj,estimatedItemSize:v,children:tF},m)})})};var lF=y(sF);const cF={overflow:"hidden",willChange:"auto"},uF=e=>({...yP,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),dF=({topGridRef:e,rowHightCallback:t,width:n,height:r,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=Dk(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:c}}=qk(),{gridSectionsData:{headersData:u,topDimensionData:d}}=QT(),p={...uF(a),borderColor:l,height:r};__(e,d),j_(e,n,r,c);const f=s.size.x*i();return 0===d.rowCount?fi.jsx("div",{style:{width:n,height:r,...uF(a)}}):fi.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map((r,l)=>{const c=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=rF(r,f,s.size.x,c),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{const r=t.data.at(n);if(void 0===r)return;const o=t.size.x-1,i=k_({layoutService:e,headersData:t,topRowIndex:n})?0:o,a=r.at(i),s=Array.isArray(a)?a.at(o):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:u,topRowIndex:l}),v=g?_k(g):`empty ${l}`;return fi.jsx(dN,{ref:oF(e,l),style:cF,height:t(),width:n,itemCount:p,itemSize:nF({list:r,listValues:m,isLastRow:c,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:r,isLast:c,itemCount:p,showLastBorder:o,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:Zj,estimatedItemSize:h,direction:a,children:tF},v)})})};var pF=y(dF);const fF=()=>fi.jsx(hF,{}),hF=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=qk(),n=MO(),r=(()=>{const{model:e}=Mk(),t=f(async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).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:c,dataGridRef:u},scrollDirectionRefs:{verticalScrollDirection:p,horizontalScrollDirection:h},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:v}}=LO(),{leftGridWidth:b,leftGridFullWidth:y,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:w,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:E,overrideLeftGridWidth:I}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:n}){const{layoutService:r,styleService:o}=qk(),{gridSectionsData:{headersData:i}}=QT(),{measureText:a}=YP(o.header,{allowLineBreaks:!1}),s=vO({tableWidth:e}),l=bO({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+l.rightGridFullWidth+1<e,u=f((e,t,n="")=>{let o=e;r.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const l=s.leftGridColumnWidths[o];let c=!1,u=!1,d=a(n)+nO;return t&&d+tO<=l&&(u=!0,d+=tO),d+tO<=l&&(c=!0),{shouldShowMenuIcon:c,shouldShowLockIcon:u}},[s.leftGridColumnWidths,a,r.isIndentModeEnabled,i.size.x]);return d(()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=l.rightGridWidth===l.rightGridFullWidth;e&&t&&n()},[n,s.leftGridWidth,s.leftGridFullWidth,l.rightGridWidth,l.rightGridFullWidth]),{...s,...l,showLastRightBorder:c,getHeaderCellsIconsVisibilityStatus:u}}({tableWidth:n.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:v}),{gridScaffoldDimensions:D,headerGridDims:R,topGridDims:L,leftGridDims:M,dataGridDims:A,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:q}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:n,leftGridOriginalWidth:r,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const s=MO(),{pageInfo:l}=Dk(),{gridSectionsData:{headersData:c,topDimensionData:u}}=QT(),d=Math.min(s.height*rO,Math.max(s.height*rO-25,s.height-t-a)),p=s.width*rO,f=l.rowsOnCurrentPage*t,h=Math.max(c.size.y,u.rowCount,1),m=e*h,g=e*h,v=Math.min(p,n),b=s.width-p,y=Math.max(b,s.width-v),x=Math.min(d,m,g),{availableHeight:S,everyThingFitsInTableRectHeight:w,everyThingFitsInTableRectWidth:C}=((e,t,n)=>{const r=t+1+n+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:r}})(x,v,y),E=S-d,I=Math.max(E,S-x),D=Math.min(I,f),R=Math.min(I,f),L=m+1+f,{visibilityStatus:M,metadata:{hasLeftGridOverflowX:A,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:n},Y_AXIS:{topSectionHeight:r,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,c=s>r,u=i>t,d=a>n,p=l>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:c?"scroll":"hidden"},leftGrid:{overflowX:u?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:c,hasLeftGridOverflowX:u,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:v,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:I}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:r,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:L-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${v}px ${y}px`,gridTemplateRows:`${x}px ${I}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:y-1-i,height:-1},self:{width:Math.min(o,y)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:v,height:L-g+(!A&&P?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+(P?i:0),height:L-g+(!P&&A?a:0)},stickyWrapper:{width:y-1-i,height:I-1-a},self:{width:Math.min(o,y)-(C?1:0)-i,height:Math.max(t,R-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:M}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:b,leftGridOriginalWidth:y,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),k=f(()=>e,[e]),T=f(()=>t,[t]);return(()=>{const{downloadService:e}=qk();d(()=>{e.notifyIsDoneRendering()})})(),fi.jsxs(PO,{style:D,children:[fi.jsx("div",{style:{overflow:"hidden"},ref:o,children:fi.jsx(N_,{tableWidth:n.width,leftGridWidth:b,columnWidths:x,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:R.height,changeSortOrder:r,overrideLeftGridWidth:I})}),fi.jsx(TO,{style:q.topGrid,origin:GA.TopGrid,ref:i,children:fi.jsx(AO,{style:L.fullSizeWrapper,children:fi.jsx(OO,{style:L.stickyWrapper,children:fi.jsx(pF,{topGridRef:l,rowHightCallback:k,...L.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:C})})})}),fi.jsx(TO,{style:q.leftGrid,origin:GA.LeftGrid,ref:a,children:fi.jsx(AO,{style:M.fullSizeWrapper,children:fi.jsx(OO,{style:M.stickyWrapper,children:fi.jsx(lF,{leftGridRef:c,...M.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),fi.jsx(TO,{style:q.dataGrid,origin:GA.DataGrid,ref:s,children:fi.jsx(AO,{style:A.fullSizeWrapper,children:fi.jsx(OO,{style:A.stickyWrapper,children:fi.jsx(n_,{dataGridRef:u,rowHightCallback:T,...A.self,showLastBorder:{right:w,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:p,horizontalScrollDirection:h})})})})]})},mF=()=>{const{keyboard:e,theme:t,interactions:n,translator:r}=Mk(),{pageInfo:o,updatePageInfo:i,rect:a}=Dk(),{layoutService:s}=qk(),{layout:l,hasData:c}=s;return fi.jsxs(fi.Fragment,{children:[c?fi.jsx(fF,{}):null,fi.jsx(Tk,{}),fi.jsx(Ek,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:r,theme:t,interactions:n,rect:a,layout:l})]})};const gF=(e,{selections:t,baseObjects:r,coreServices:o,nebulaObjects:i},a)=>{const s=function(e){const t=_p();return t?.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),us({...t,direction:e})}(r.direction);e.render(fi.jsx(n.StrictMode,{children:fi.jsx(Df,{store:a,children:fi.jsx(As,{theme:s,children:fi.jsx(Ak,{...i,children:fi.jsx(Rk,{...r,children:fi.jsx(gj,{selections:t,children:fi.jsx(kk,{...o,children:fi.jsx(eO,{children:fi.jsx(mF,{})})})})})})})})}))};var vF=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}(vF||{}),bF=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}(bF||{}),yF=function(e){return e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value",e}(yF||{}),xF=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}(xF||{});const SF=e=>e?`${parseInt(e,10)}px`:void 0,wF=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?gP.Transparent:n}},CF=(e,t)=>+(parseInt(e,10)*mP*t+8).toFixed(2),EF=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?fP:"normal",IF=e=>e?.some(e=>"italic"===e)?"italic":"normal",DF=e=>e?.some(e=>"underline"===e)?"underline":"none",RF=document.createElement("textarea");function LF(e){RF.value=e,document.body.appendChild(RF),RF.select(),RF.setSelectionRange(0,RF.value.length),document.execCommand("copy"),document.body.removeChild(RF)}RF.style.position="absolute",RF.style.left="-9999px",RF.setAttribute("readonly","");function MF(e){O?.((t,n)=>{const r=n.target,o=r?.closest(`.${LD}`);o?.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{(e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{LF(t)}):LF(t))})(o)}}),e?.forEach(e=>{e(t,n,o)})})}const AF=({model:e,layoutService:t,effectivePropertiesService:n,translator:r})=>NP((o,i,a)=>{if(!e||n.qAlwaysFullyExpanded)return;const s=e,l=o.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group",id:"expand-collapse-group"}),{qEffectiveDimensionName:c,label:u}=((e,t)=>{const n=((e,t)=>{const n=e?.getAttribute("data-dimension-info-index");if("string"==typeof n)return t.getDimensionInfo(+n)})(e,t);return"object"==typeof n?{qEffectiveDimensionName:n.qEffectiveDimensionName,label:n.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(Ok,0,0,!0),await e.expandLeft(Ok,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof c&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[r??""]),tid:"expand-dimension",id:"expand-dimension",select:S_({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:b_.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:u,translator:r})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(Ok,0,0,!0),await e.collapseLeft(Ok,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof c&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:n,label:r,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[r??""]),tid:"collapse-dimension",id:"collapse-dimension",select:S_({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:n,action:b_.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:u,translator:r}))},[e,t,n]),PF=(e,t)=>L(()=>(({layout:e})=>{const{qHyperCube:t,nullValueRepresentation:n,snapshotData:r}=e,{qNoOfLeftDims:o,qEffectiveInterColumnSortOrder:i,qMeasureInfo:a,qDimensionInfo:s}=t,l=!!r,c=r?.content?.rowsPerPage??15e3,u={x:Math.min(e.qHyperCube.qSize.qcx,hP),y:Math.min(e.qHyperCube.qSize.qcy,c)},d=i.slice(0,o),p=e=>d.some(t=>t===e),f=p(Nk),h=new Map(i.map(e=>[s[e]??Nk,e])),m=a.filter(e=>7005!==e.qError?.qErrorCode);return{layout:e,getNullValueText:()=>n?.text??"-",getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(f)return 0;const n=e%m.length;return t?n:a.findIndex(e=>e===m[n])},getDimensionInfo:e=>e===Nk?void 0:s.at(e),getDimensionInfoIndex:e=>h.get(e)??-1,size:u,isSnapshot:l,hasLimitedData:!l&&u.x<e.qHyperCube.qSize.qcx,hasData:u.x>0&&u.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:qD.Auto,pixels:PD.PixelsDefault,percentage:PD.PercentageDefault},searchSortFromDimension:"inherit"===e.search?.sorting}})({layout:e}),[e,t]),qF=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=_P(e);return t.current=e,t})(UT(o));return VP(async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:c}=l.current;if(a)return i.snapshotData?.content?.qPivotDataPages??[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(s,n,o,c)||((e,t,n,r)=>{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(r,i.qcx)||l<Math.min(n,i.qcy)})(i,r,o,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,s=Math.min(a+r.rowsPerPage,n.qcy),l=Math.min(hP,n.qcx);if(n.qcy<a)return null;let c=0,u=a;if(e){c=t.gridColumnStartIndex,u=a+t.gridRowStartIndex;const e=u+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>s&&(u=Math.max(0,s-o)),n>l&&(c=Math.max(0,l-i))}return{qLeft:c,qTop:u,qWidth:Math.min(l-c,i),qHeight:Math.min(s-u,o)}})(s,n,i.qHyperCube.qSize,r,o,c);return t?e.getHyperCubePivotData(Ok,YT(t)):[]}return t.qPivotDataPages},[i,a,e,n,r.page,r.rowsPerPage,l,s])},kF=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),TF=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:kF({rowsPerPage:n,totalRowCount:e,page:t})}),OF=15,NF=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:o})=>{const{freeResize:i}=M();return N(async e=>{const i=e;if(!i.snapshotData||!r||i.snapshotData.content)return i;if("getHyperCubePivotData"in r){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=t,c=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(r-OF,0),c=Math.max(s+o-OF,s,0),u=hP-l,d=s+t.rowsOnCurrentPage-c;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=UT(n);return{qLeft:l,qTop:c,qWidth:Math.min(u,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:l,qTop:c,qWidth:Math.min(u,i+30),qHeight:Math.min(d,a+30)}})(t,o,n),u=YT(c),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData(Ok,[d,...u]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=n.width,i.snapshotData.object.size.h=n.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:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var jF={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 _F=()=>{const e=_(),t=e.language();return L(()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(jF).forEach(t=>{e.add(jF[t])})}(e)},[e]),{translator:e,language:t}},FF=e=>{const t=L(()=>Cf(),[]),{flags:n}=e,r=F(),o=(e=>{const t=L(()=>JP.createRoot(e),[e]);return q(()=>()=>{t.unmount()},[t]),t})(r),i=z(),a=W(),s=$(),l=H(),c=V(),u=(()=>{const{viewState:e}=M(),t=_P(new Set),n=void 0!==window.qlikprinting,{promise:r,resolve:o}=L(()=>OP(),[]),i=NP(e=>{t.current.add(e)},[t]),a=NP(oM(async()=>{await Promise.all(t.current),t.current.clear(),o()},1e3),[o,t]);return A(async()=>{await r},[r]),L(()=>({viewState:e,isDownloadedAsPDForImage:n,notifyIsDoneRendering:a,waitForPromise:i}),[a,n,e,i])})(),d=((e,t)=>{const[n]=VP(async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}},[e,t]);return L(()=>{const e=void 0!==n?.qHyperCubeDef.qSortbyYValue&&1===Math.abs(n.qHyperCubeDef.qSortbyYValue),t=n?.qHyperCubeDef.qDimensions.map(e=>e.qDef?.qSortCriterias)??[];return{qAlwaysFullyExpanded:n?.qHyperCubeDef.qAlwaysFullyExpanded??!1,qExpansionState:n?.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:e,getSortCriteriaForDimension:e=>t[e]}},[n])})(a,i),p=PF(i,n),f=(e=>{const t=T();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(p.isSnapshot),h=B(),m=HP(i,r),{translator:g,language:v}=_F(),{pageInfo:b,updatePageInfo:y}=((e,t)=>{const{size:n,layout:{qHyperCube:{qSize:r}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>e.layout.snapshotData?.content?.rowsPerPage)(e),[a,s]=P(()=>{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:r.qcy>n.y&&!o,...TF(r.qcy,a,i)}}),l=e.layout.qHyperCube.qSize.qcy;return q(()=>{s(t=>({...t,...TF(l,t.page,i),shouldShowPagination:l>e.size.y&&!o}))},[l,e.size.y,s,o,i]),q(()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,n=kF({...a,page:e});s({...a,page:e,rowsOnCurrentPage:n})}},[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:kF({...a,...e})})}}})(p,u),x=((e,t,n)=>L(()=>((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}})(n,t.snapshotData),[n,e.page,t.snapshotData]))(b,i,u),S=NF({rect:G(),layoutService:p,viewService:x,model:a,pageInfo:b}),[w,C]=qF({model:a,layoutService:p,viewService:x,pageInfo:b,rect:S}),E=L(()=>((e,t)=>{const n=t.layout.components?.find(e=>"theme"===e.key),r=n?.header,o=n?.dimensionValues,i=n?.measureValues,a=n?.measureLabels,s=n?.totalValues,l=n?.nullValues,c=n?.grid,u=(t,n,r)=>e.getStyle(t,n,r),d=+(c?.[vF.LineClamp]??u(bF.Grid,yF.Grid,xF.LineClamp)??1),p=+(c?.[vF.ColumnLineClamp]??u(bF.Grid,yF.Grid,xF.ColumnLineClamp)??1),f=wF(e,r?.[vF.Background])??u(bF.Dimension,yF.LabelName,xF.BackgroundColor)??gP.Transparent,h={header:{fontSize:SF(r?.[vF.FontSize])??u(bF.Dimension,yF.LabelName,xF.FontSize)??dP,fontFamily:r?.[vF.FontFamily]??u(bF.Dimension,yF.LabelName,xF.FontFamily)??pP,fontWeight:EF(r?.[vF.FontStyle],fP),fontStyle:IF(r?.[vF.FontStyle]),textDecoration:DF(r?.[vF.FontStyle]),color:wF(e,r?.[vF.FontColor])??u(bF.Dimension,yF.LabelName,xF.FontColor)??xR.TEXT,background:f,hoverBackground:hM(f,kD),activeBackground:hM(f,TD)},dimensionValues:{fontSize:SF(o?.[vF.FontSize])??u(bF.Dimension,yF.LabelValue,xF.FontSize)??dP,fontFamily:o?.[vF.FontFamily]??u(bF.Dimension,yF.LabelValue,xF.FontFamily)??pP,fontWeight:EF(o?.[vF.FontStyle],void 0),fontStyle:IF(o?.[vF.FontStyle]),textDecoration:DF(o?.[vF.FontStyle]),color:wF(e,o?.[vF.FontColor])??u(bF.Dimension,yF.LabelValue,xF.FontColor)??xR.TEXT,background:wF(e,o?.[vF.Background])??u(bF.Dimension,yF.LabelValue,xF.BackgroundColor)??gP.Transparent},measureValues:{fontSize:SF(i?.[vF.FontSize])??u(bF.Measure,yF.LabelValue,xF.FontSize)??dP,fontFamily:i?.[vF.FontFamily]??u(bF.Measure,yF.LabelValue,xF.FontFamily)??pP,fontWeight:EF(i?.[vF.FontStyle],"normal"),fontStyle:IF(i?.[vF.FontStyle]),textDecoration:DF(i?.[vF.FontStyle]),color:wF(e,i?.[vF.FontColor])??u(bF.Measure,yF.LabelValue,xF.FontColor)??gP.FontSecondary,background:wF(e,i?.[vF.Background])??u(bF.Measure,yF.LabelValue,xF.BackgroundColor)??gP.Transparent},measureLabels:{fontWeight:EF(a?.[vF.FontStyle],"normal"),fontStyle:IF(a?.[vF.FontStyle]),textDecoration:DF(a?.[vF.FontStyle]),color:wF(e,a?.[vF.FontColor])??u(bF.Measure,yF.LabelName,xF.FontColor)??gP.FontSecondary,background:wF(e,a?.[vF.Background])??u(bF.Measure,yF.LabelName,xF.BackgroundColor)??gP.Transparent},totalValues:{fontWeight:EF(s?.[vF.FontStyle],fP),fontStyle:IF(s?.[vF.FontStyle]),textDecoration:DF(s?.[vF.FontStyle]),color:wF(e,s?.[vF.FontColor])??u(bF.Total,yF.LabelValue,xF.FontColor)??xR.TEXT,background:wF(e,s?.[vF.Background])??u(bF.Total,yF.LabelValue,xF.BackgroundColor)??gP.Transparent},nullValues:{fontWeight:EF(l?.[vF.FontStyle],"normal"),fontStyle:IF(l?.[vF.FontStyle]),textDecoration:DF(l?.[vF.FontStyle]),color:wF(e,l?.[vF.FontColor])??u(bF.Null,yF.LabelValue,xF.FontColor)??xR.TEXT,background:wF(e,l?.[vF.Background])??u(bF.Null,yF.LabelValue,xF.BackgroundColor)??gP.NullValueBackground},grid:{columnLineClamp:p,lineClamp:d,border:wF(e,c?.[vF.Border])??u(bF.Grid,yF.Grid,xF.BorderColor)??gP.DividerLight,divider:wF(e,c?.[vF.Divider])??u(bF.Grid,yF.Divider,xF.BorderColor)??gP.DividerDark,background:wF(e,c?.[vF.Background])??u(bF.Grid,yF.Grid,xF.BackgroundColor)??gP.Transparent},selectedColors:fM(e)};return h.headerCellHeight=Math.max(CF(h.header.fontSize,p),CF(h.dimensionValues.fontSize,p),32),h.contentCellHeight=Math.max(CF(h.measureValues.fontSize,d),CF(h.dimensionValues.fontSize,d),24),h.dimensionValueTextHeight=CF(h.dimensionValues.fontSize,1),h})(m,p),[m,p]),I=((e,t,n)=>{const[,r,o]=VP(async()=>{const t=JR(n.flags),r=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,r,o,i,ZP].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[t,e,n]);return o?(console.warn("Failed to load fonts:",o),!0):!r})(m,i,e),{direction:D}=M();MF([AF({model:a,layoutService:p,effectivePropertiesService:d,translator:g})]),q(()=>{!C&&a&&!!w&&I&&gF(o,{selections:h,baseObjects:{rect:S,pageInfo:b,qPivotDataPages:w,updatePageInfo:y,direction:D},nebulaObjects:{env:e,app:s,model:a,embed:l,theme:m,keyboard:c,translator:g,interactions:f},coreServices:{styleService:E,viewService:x,layoutService:p,downloadService:u,effectivePropertiesService:d}},t)},[a,s,S,f,h,x,p,u,C,w,E,o,I,g,v,b,y,d,l,c,m,e,D,t])},zF={version:"7.28.0",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:[]},WF=()=>({...zF,qHyperCubeDef:{...zF.qHyperCubeDef,qIndentMode:!1}})}}});
|