@nebula.js/stardust 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/stardust.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/stardust v2.3.0
2
+ * @nebula.js/stardust v2.3.1
3
3
  * Copyright (c) 2021 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -38,5 +38,5 @@ var at=ye.exports,lt=Se,st=ot.exports;function ut(e){for(var t="https://reactjs.
38
38
  * @website https://github.com/cssinjs/jss
39
39
  * @license MIT
40
40
  */
41
- var pf="object"==typeof CSS&&null!=CSS&&"number"in CSS,ff=function(e){return new df(e)};ff();var hf=Date.now(),mf="fnValues"+hf,gf="fnStyle"+ ++hf,vf=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=sp(e,{},n);return r[gf]=t,r},onProcessStyle:function(e,t){if(mf in t||gf in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[mf]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[gf];i&&(o.style=i(e)||{});var a=o[mf];if(a)for(var l in a)o.prop(l,a[l](e),r)}}};function yf(){return(yf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var bf="@global",xf="@global ",Ef=function(){function e(e,t,n){for(var r in this.type="global",this.at=bf,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Wp(yf({},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.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),wf=function(){function e(e,t,n){this.type="global",this.at=bf,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(xf.length);this.rule=n.jss.createRule(r,t,yf({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Cf=/\s*,\s*/g;function Sf(e,t){for(var n=e.split(Cf),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function kf(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===bf)return new Ef(e,t,n);if("@"===e[0]&&e.substr(0,xf.length)===xf)return new wf(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!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,o=r?r[bf]:null;if(o){for(var i in o)t.addRule(i,o[i],yf({},n,{selector:Sf(i,e.selector)}));delete r[bf]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,bf.length)===bf){var i=Sf(o.substr(bf.length),e.selector);t.addRule(i,r[o],yf({},n,{selector:i})),delete r[o]}}(e,t))}}}function Lf(){return(Lf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Rf=/\s*,\s*/g,Of=/&/g,_f=/\$([\w-]+)/g;function If(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?(o=o).selector:r}}function t(e,t){for(var n=t.split(Rf),r=e.split(Rf),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(Of,a):a+" "+s}return o}function n(e,t,n){if(n)return Lf({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Lf({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,s=o,u=s.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=n(s,u,a),d){var f=t(c,s.selector);l||(l=e(u,i)),f=f.replace(_f,l),u.addRule(f,r[c],Lf({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(s.key,r[c],{selector:s.selector});delete r[c]}}return r}}}var Pf=/[A-Z]/g,Tf=/^ms-/,Nf={};function qf(e){return"-"+e.toLowerCase()}function Mf(e){if(Nf.hasOwnProperty(e))return Nf[e];var t=e.replace(Pf,qf);return Nf[e]=Tf.test(t)?"-"+t:t}function Df(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Mf(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Df):t.fallbacks=Df(e.fallbacks)),t}var Af=pf&&CSS?CSS.px:"px",zf=pf&&CSS?CSS.ms:"ms",jf=pf&&CSS?CSS.percent:"%";function Ff(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var Bf=Ff({"animation-delay":zf,"animation-duration":zf,"background-position":Af,"background-position-x":Af,"background-position-y":Af,"background-size":Af,border:Af,"border-bottom":Af,"border-bottom-left-radius":Af,"border-bottom-right-radius":Af,"border-bottom-width":Af,"border-left":Af,"border-left-width":Af,"border-radius":Af,"border-right":Af,"border-right-width":Af,"border-top":Af,"border-top-left-radius":Af,"border-top-right-radius":Af,"border-top-width":Af,"border-width":Af,"border-block":Af,"border-block-end":Af,"border-block-end-width":Af,"border-block-start":Af,"border-block-start-width":Af,"border-block-width":Af,"border-inline":Af,"border-inline-end":Af,"border-inline-end-width":Af,"border-inline-start":Af,"border-inline-start-width":Af,"border-inline-width":Af,"border-start-start-radius":Af,"border-start-end-radius":Af,"border-end-start-radius":Af,"border-end-end-radius":Af,margin:Af,"margin-bottom":Af,"margin-left":Af,"margin-right":Af,"margin-top":Af,"margin-block":Af,"margin-block-end":Af,"margin-block-start":Af,"margin-inline":Af,"margin-inline-end":Af,"margin-inline-start":Af,padding:Af,"padding-bottom":Af,"padding-left":Af,"padding-right":Af,"padding-top":Af,"padding-block":Af,"padding-block-end":Af,"padding-block-start":Af,"padding-inline":Af,"padding-inline-end":Af,"padding-inline-start":Af,"mask-position-x":Af,"mask-position-y":Af,"mask-size":Af,height:Af,width:Af,"min-height":Af,"max-height":Af,"min-width":Af,"max-width":Af,bottom:Af,left:Af,top:Af,right:Af,inset:Af,"inset-block":Af,"inset-block-end":Af,"inset-block-start":Af,"inset-inline":Af,"inset-inline-end":Af,"inset-inline-start":Af,"box-shadow":Af,"text-shadow":Af,"column-gap":Af,"column-rule":Af,"column-rule-width":Af,"column-width":Af,"font-size":Af,"font-size-delta":Af,"letter-spacing":Af,"text-decoration-thickness":Af,"text-indent":Af,"text-stroke":Af,"text-stroke-width":Af,"word-spacing":Af,motion:Af,"motion-offset":Af,outline:Af,"outline-offset":Af,"outline-width":Af,perspective:Af,"perspective-origin-x":jf,"perspective-origin-y":jf,"transform-origin":jf,"transform-origin-x":jf,"transform-origin-y":jf,"transform-origin-z":jf,"transition-delay":zf,"transition-duration":zf,"vertical-align":Af,"flex-basis":Af,"shape-margin":Af,size:Af,gap:Af,grid:Af,"grid-gap":Af,"row-gap":Af,"grid-row-gap":Af,"grid-column-gap":Af,"grid-template-rows":Af,"grid-template-columns":Af,"grid-auto-rows":Af,"grid-auto-columns":Af,"box-shadow-x":Af,"box-shadow-y":Af,"box-shadow-blur":Af,"box-shadow-spread":Af,"font-line-height":Af,"text-shadow-x":Af,"text-shadow-y":Af,"text-shadow-blur":Af});function Uf(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Uf(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Uf(o,t[o],n);else for(var i in t)t[i]=Uf(e+"-"+i,t[i],n);else if("number"==typeof t&&!Number.isNaN(t)){var a=n[e]||Bf[e];return!a||0===t&&a===Af?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Hf(e){void 0===e&&(e={});var t=Ff(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Uf(r,e[r],t);return e},onChangeValue:function(e,n){return Uf(n,e,t)}}}function Wf(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 Vf(e){return function(e){if(Array.isArray(e))return Wf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Wf(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)?Wf(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.")}()}var $f="",Kf="",Gf="",Zf="",Xf=tp&&"ontouchstart"in document.documentElement;if(tp){var Qf={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Jf=document.createElement("p").style;for(var Yf in Qf)if(Yf+"Transform"in Jf){$f=Yf,Kf=Qf[Yf];break}"Webkit"===$f&&"msHyphens"in Jf&&($f="ms",Kf=Qf.ms,Zf="edge"),"Webkit"===$f&&"-apple-trailing-word"in Jf&&(Gf="apple")}var eh=$f,th=Kf,nh=Gf,rh=Zf,oh=Xf;var ih={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===eh?"-webkit-"+e:th+e)}},ah={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===eh?th+"print-"+e:e)}},lh=/[-\s]+(.)?/g;function sh(e,t){return t?t.toUpperCase():""}function uh(e){return e.replace(lh,sh)}function ch(e){return uh("-"+e)}var dh,ph={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===eh){var n="mask-image";if(uh(n)in t)return e;if(eh+ch(n)in t)return th+e}return e}},fh={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==nh||oh?e:th+e)}},hh={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:th+e)}},mh={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:th+e)}},gh={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===eh||"ms"===eh&&"edge"!==rh?th+e:e)}},vh={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===eh||"ms"===eh||"apple"===nh?th+e:e)}},yh={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===eh?"WebkitColumn"+ch(e)in t&&th+"column-"+e:"Moz"===eh&&("page"+ch(e)in t&&"page-"+e))}},bh={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===eh)return e;var n=e.replace("-inline","");return eh+ch(n)in t&&th+n}},xh={supportedProperty:function(e,t){return uh(e)in t&&e}},Eh={supportedProperty:function(e,t){var n=ch(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:eh+n in t?th+e:"Webkit"!==eh&&"Webkit"+n in t&&"-webkit-"+e}},wh={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===eh?""+th+e:e)}},Ch={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===eh?th+"scroll-chaining":e)}},Sh={"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"},kh={supportedProperty:function(e,t){var n=Sh[e];return!!n&&(eh+ch(n)in t&&th+n)}},Lh={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"},Rh=Object.keys(Lh),Oh=function(e){return th+e},_h=[ih,ah,ph,fh,hh,mh,gh,vh,yh,bh,xh,Eh,wh,Ch,kh,{supportedProperty:function(e,t,n){var r=n.multiple;if(Rh.indexOf(e)>-1){var o=Lh[e];if(!Array.isArray(o))return eh+ch(o)in t&&th+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(eh+ch(o[0])in t))return!1;return o.map(Oh)}return!1}}],Ih=_h.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Ph=_h.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Vf(t.noPrefill)),e}),[]),Th={};if(tp){dh=document.createElement("p");var Nh=window.getComputedStyle(document.documentElement,"");for(var qh in Nh)isNaN(qh)||(Th[Nh[qh]]=Nh[qh]);Ph.forEach((function(e){return delete Th[e]}))}function Mh(e,t){if(void 0===t&&(t={}),!dh)return e;if(null!=Th[e])return Th[e];"transition"!==e&&"transform"!==e||(t[e]=e in dh.style);for(var n=0;n<Ih.length&&(Th[e]=Ih[n](e,dh.style,t),!Th[e]);n++);try{dh.style[e]=""}catch(e){return!1}return Th[e]}var Dh,Ah={},zh={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},jh=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Fh(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Mh(t):", "+Mh(n);return r||(t||n)}function Bh(e,t){var n=t;if(!Dh||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Ah[r])return Ah[r];try{Dh.style[e]=n}catch(e){return Ah[r]=!1,!1}if(zh[e])n=n.replace(jh,Fh);else if(""===Dh.style[e]&&("-ms-flex"===(n=th+n)&&(Dh.style[e]="-ms-flexbox"),Dh.style[e]=n,""===Dh.style[e]))return Ah[r]=!1,!1;return Dh.style[e]="",Ah[r]=n,Ah[r]}function Uh(){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 o=!1,i=Mh(n);i&&i!==n&&(o=!0);var a=!1,l=Bh(i,cp(r));l&&l!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=l||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===eh?e:"@"+th+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Bh(t,cp(e))||e}}}function Hh(){return{plugins:[vf(),kf(),If(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Df(e[t]);return e}return Df(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Mf(t);return t===r?e:(n.prop(r,e),null)}},Hf(),"undefined"==typeof window?null:Uh(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}function Wh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Vh(){return(Vh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function $h(){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=Vh({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}tp&&(Dh=document.createElement("p"));var Kh={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},Gh=tt.createContext(null);function Zh(){return tt.useContext(Gh)}var Xh,Qh=ff(Hh()),Jh={disableGeneration:!1,generateClassName:Qd(),jss:Qh,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Yh=tt.createContext(Jh);function em(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=Wh(e,["children","injectFirst","disableGeneration"]),l=Vh({},tt.useContext(Yh),{disableGeneration:i},a);if(!l.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!Xh){var s=document.head;Xh=document.createComment("mui-inject-first"),s.insertBefore(Xh,s.firstChild)}l.jss=ff({plugins:Hh().plugins,insertionPoint:Xh})}return tt.createElement(Yh.Provider,{value:l},t)}var tm=-1e9;function nm(){return tm+=1}var rm={};function om(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=Vh({},o);return Object.keys(i).forEach((function(e){a[e]=hd(a[e],i[e])})),a},options:{}}}function im(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=$h({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function am(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var l=Kh.get(o.sheetsManager,i,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Kh.set(o.sheetsManager,i,r,l));var s=Vh({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});s.generateId=s.serverGenerateClassName||s.generateClassName;var u=o.sheetsRegistry;if(0===l.refs){var c;o.sheetsCache&&(c=Kh.get(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,Vh({link:!1},s))).attach(),o.sheetsCache&&Kh.set(o.sheetsCache,i,r,c)),u&&u.add(c),l.staticSheet=c,l.dynamicStyles=function e(t){var n=null;for(var r in t){var o=t[r],i=typeof o;if("function"===i)n||(n={}),n[r]=o;else if("object"===i&&null!==o&&!Array.isArray(o)){var a=e(o);a&&(n||(n={}),n[r]=a)}}return n}(d)}if(l.dynamicStyles){var p=o.jss.createStyleSheet(l.dynamicStyles,Vh({link:!0},s));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=$h({baseClasses:l.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else n.classes=l.staticSheet.classes;l.refs+=1}}function lm(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function sm(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Kh.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Kh.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function um(e,t){var n,r=tt.useRef([]),o=tt.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),tt.useEffect((function(){return function(){n&&n()}}),[o])}function cm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?rm:i,l=Wh(t,["name","classNamePrefix","Component","defaultTheme"]),s=om(e),u=n||r||"makeStyles";s.options={index:nm(),name:n,meta:u,classNamePrefix:u};var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Zh()||a,r=Vh({},tt.useContext(Yh),l),i=tt.useRef(),u=tt.useRef();um((function(){var o={name:n,state:{},stylesCreator:s,stylesOptions:r,theme:t};return am(o,e),u.current=!1,i.current=o,function(){sm(o)}}),[t,s]),tt.useEffect((function(){u.current&&lm(i.current,e),u.current=!0}));var c=im(i.current,e.classes,o);return c};return c}function dm(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=dm(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function pm(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=dm(e))&&(r&&(r+=" "),r+=t);return r}var fm=yd.exports,hm={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mm={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},gm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vm={};function ym(e){return fm.isMemo(e)?gm:vm[e.$$typeof]||hm}vm[fm.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vm[fm.Memo]=gm;var bm=Object.defineProperty,xm=Object.getOwnPropertyNames,Em=Object.getOwnPropertySymbols,wm=Object.getOwnPropertyDescriptor,Cm=Object.getPrototypeOf,Sm=Object.prototype;var km=function e(t,n,r){if("string"!=typeof n){if(Sm){var o=Cm(n);o&&o!==Sm&&e(t,o,r)}var i=xm(n);Em&&(i=i.concat(Em(n)));for(var a=ym(t),l=ym(n),s=0;s<i.length;++s){var u=i[s];if(!(mm[u]||r&&r[u]||l&&l[u]||a&&a[u])){var c=wm(n,u);try{bm(t,u,c)}catch(e){}}}}return t};function Lm(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function Rm(e){var t=e.children,n=e.theme,r=Zh(),o=tt.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Vh({},e,t)}(r,n);return null!=e&&(e[Zd]=null!==r),e}),[n,r]);return tt.createElement(Gh.Provider,{value:o},t)}var Om=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,l=Wh(t,["defaultTheme","withTheme","name"]),s=a,u=cm(e,Vh({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:s},l)),c=tt.forwardRef((function(e,t){e.classes;var o,l=e.innerRef,s=Wh(e,["classes","innerRef"]),c=u(Vh({},n.defaultProps,e)),d=s;return("string"==typeof a||i)&&(o=Zh()||r,a&&(d=Jd({theme:o,name:a,props:s})),i&&!d.theme&&(d.theme=o)),tt.createElement(n,Vh({ref:l||t,classes:c},d))}));return km(c,n),c}};function _m(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 Im(e){if(e.type)return e;if("#"===e.charAt(0))return Im(function(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(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(vd(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Pm(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 Tm(e){var t="hsl"===(e=Im(e)).type?Im(function(e){var t=(e=Im(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Pm({type:l,values:s})}(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 Nm(e,t){return e=Im(e),t=_m(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Pm(e)}function qm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mm(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Dm(){return(Dm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Am=["xs","sm","md","lg","xl"];function zm(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,l=Mm(e,["values","unit","step"]);function s(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function u(e,t){var r=Am.indexOf(t);return r===Am.length-1?s(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Am[r+1]]?n[Am[r+1]]:t)-a/100).concat(o,")")}return Dm({keys:Am,values:n,up:s,down:function(e){var t=Am.indexOf(e)+1,r=n[Am[t]];return t===Am.length?s("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:u,only:function(e){return u(e,e)},width:function(e){return n[e]}},l)}function jm(e,t,n){var r;return Dm({gutters:function(){var n=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")),Dm({paddingLeft:t(2),paddingRight:t(2)},n,qm({},e.up("sm"),Dm({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},qm(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),qm(r,e.up("sm"),{minHeight:64}),r)},n)}var Fm={black:"#000",white:"#fff"},Bm={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"},Um={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"},Hm={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"},Wm={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"},Vm={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"},$m={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"},Km={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"},Gm={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:Fm.white,default:Bm[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}},Zm={text:{primary:Fm.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:Bm[800],default:"#303030"},action:{active:Fm.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 Xm(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Im(e),t=_m(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Pm(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Im(e),t=_m(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Pm(e)}(e.main,i)))}function Qm(e){var t=e.primary,n=void 0===t?{light:Um[300],main:Um[500],dark:Um[700]}:t,r=e.secondary,o=void 0===r?{light:Hm.A200,main:Hm.A400,dark:Hm.A700}:r,i=e.error,a=void 0===i?{light:Wm[300],main:Wm[500],dark:Wm[700]}:i,l=e.warning,s=void 0===l?{light:Vm[300],main:Vm[500],dark:Vm[700]}:l,u=e.info,c=void 0===u?{light:$m[300],main:$m[500],dark:$m[700]}:u,d=e.success,p=void 0===d?{light:Km[300],main:Km[500],dark:Km[700]}:d,f=e.type,h=void 0===f?"light":f,m=e.contrastThreshold,g=void 0===m?3:m,v=e.tonalOffset,y=void 0===v?.2:v,b=Mm(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){return function(e,t){var n=Tm(e),r=Tm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Zm.text.primary)>=g?Zm.text.primary:Gm.text.primary}var E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Dm({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(vd(4,t));if("string"!=typeof e.main)throw new Error(vd(5,JSON.stringify(e.main)));return Xm(e,"light",n,y),Xm(e,"dark",r,y),e.contrastText||(e.contrastText=x(e.main)),e},w={dark:Zm,light:Gm};return hd(Dm({common:Fm,type:h,primary:E(n),secondary:E(o,"A400","A200","A700"),error:E(a),warning:E(s),info:E(c),success:E(p),grey:Bm,contrastThreshold:g,getContrastText:x,augmentColor:E,tonalOffset:y},w[h]),b)}function Jm(e){return Math.round(1e5*e)/1e5}function Ym(e){return Jm(e)}var eg={textTransform:"uppercase"},tg='"Roboto", "Helvetica", "Arial", sans-serif';function ng(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?tg:r,i=n.fontSize,a=void 0===i?14:i,l=n.fontWeightLight,s=void 0===l?300:l,u=n.fontWeightRegular,c=void 0===u?400:u,d=n.fontWeightMedium,p=void 0===d?500:d,f=n.fontWeightBold,h=void 0===f?700:f,m=n.htmlFontSize,g=void 0===m?16:m,v=n.allVariants,y=n.pxToRem,b=Mm(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,E=y||function(e){return"".concat(e/g*x,"rem")},w=function(e,t,n,r,i){return Dm({fontFamily:o,fontWeight:e,fontSize:E(t),lineHeight:n},o===tg?{letterSpacing:"".concat(Jm(r/t),"em")}:{},i,v)},C={h1:w(s,96,1.167,-1.5),h2:w(s,60,1.2,-.5),h3:w(c,48,1.167,0),h4:w(c,34,1.235,.25),h5:w(c,24,1.334,0),h6:w(p,20,1.6,.15),subtitle1:w(c,16,1.75,.15),subtitle2:w(p,14,1.57,.1),body1:w(c,16,1.5,.15),body2:w(c,14,1.43,.15),button:w(p,14,1.75,.4,eg),caption:w(c,12,1.66,.4),overline:w(c,12,2.66,1,eg)};return hd(Dm({htmlFontSize:g,pxToRem:E,round:Ym,fontFamily:o,fontSize:a,fontWeightLight:s,fontWeightRegular:c,fontWeightMedium:p,fontWeightBold:h},C),b,{clone:!1})}function rg(){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 og=["none",rg(0,2,1,-1,0,1,1,0,0,1,3,0),rg(0,3,1,-2,0,2,2,0,0,1,5,0),rg(0,3,3,-2,0,3,4,0,0,1,8,0),rg(0,2,4,-1,0,4,5,0,0,1,10,0),rg(0,3,5,-1,0,5,8,0,0,1,14,0),rg(0,3,5,-1,0,6,10,0,0,1,18,0),rg(0,4,5,-2,0,7,10,1,0,2,16,1),rg(0,5,5,-3,0,8,10,1,0,3,14,2),rg(0,5,6,-3,0,9,12,1,0,3,16,2),rg(0,6,6,-3,0,10,14,1,0,4,18,3),rg(0,6,7,-4,0,11,15,1,0,4,20,3),rg(0,7,8,-4,0,12,17,2,0,5,22,4),rg(0,7,8,-4,0,13,19,2,0,5,24,4),rg(0,7,9,-4,0,14,21,2,0,5,26,4),rg(0,8,9,-5,0,15,22,2,0,6,28,5),rg(0,8,10,-5,0,16,24,2,0,6,30,5),rg(0,8,11,-5,0,17,26,2,0,6,32,5),rg(0,9,11,-5,0,18,28,2,0,7,34,6),rg(0,9,12,-6,0,19,29,2,0,7,36,6),rg(0,10,13,-6,0,20,31,3,0,8,38,7),rg(0,10,13,-6,0,21,33,3,0,8,40,7),rg(0,10,14,-6,0,22,35,3,0,8,42,7),rg(0,11,14,-7,0,23,36,3,0,9,44,8),rg(0,11,15,-7,0,24,38,3,0,9,46,8)],ig={borderRadius:4};function ag(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function lg(){return(lg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function sg(e){return(sg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ug(e){return(ug="function"==typeof Symbol&&"symbol"===sg(Symbol.iterator)?function(e){return sg(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":sg(e)})(e)}function cg(e,t){return t?hd(e,t,{clone:!1}):e}var dg={xs:0,sm:600,md:960,lg:1280,xl:1920},pg={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(dg[e],"px)")}};function fg(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||pg;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===ug(t)){var o=e.theme.breakpoints||pg;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}function hg(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function mg(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=hg(e.theme,o)||{};return fg(e,n,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=hg(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return 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 gg(){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?cg(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r}function vg(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var yg=gg(mg({prop:"border",themeKey:"borders",transform:vg}),mg({prop:"borderTop",themeKey:"borders",transform:vg}),mg({prop:"borderRight",themeKey:"borders",transform:vg}),mg({prop:"borderBottom",themeKey:"borders",transform:vg}),mg({prop:"borderLeft",themeKey:"borders",transform:vg}),mg({prop:"borderColor",themeKey:"palette"}),mg({prop:"borderRadius",themeKey:"shape"}));function bg(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var xg=gg(mg({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),mg({prop:"display"}),mg({prop:"overflow"}),mg({prop:"textOverflow"}),mg({prop:"visibility"}),mg({prop:"whiteSpace"})),Eg=gg(mg({prop:"flexBasis"}),mg({prop:"flexDirection"}),mg({prop:"flexWrap"}),mg({prop:"justifyContent"}),mg({prop:"alignItems"}),mg({prop:"alignContent"}),mg({prop:"order"}),mg({prop:"flex"}),mg({prop:"flexGrow"}),mg({prop:"flexShrink"}),mg({prop:"alignSelf"}),mg({prop:"justifyItems"}),mg({prop:"justifySelf"})),wg=gg(mg({prop:"gridGap"}),mg({prop:"gridColumnGap"}),mg({prop:"gridRowGap"}),mg({prop:"gridColumn"}),mg({prop:"gridRow"}),mg({prop:"gridAutoFlow"}),mg({prop:"gridAutoColumns"}),mg({prop:"gridAutoRows"}),mg({prop:"gridTemplateColumns"}),mg({prop:"gridTemplateRows"}),mg({prop:"gridTemplateAreas"}),mg({prop:"gridArea"})),Cg=gg(mg({prop:"color",themeKey:"palette"}),mg({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),Sg=gg(mg({prop:"position"}),mg({prop:"zIndex",themeKey:"zIndex"}),mg({prop:"top"}),mg({prop:"right"}),mg({prop:"bottom"}),mg({prop:"left"})),kg=mg({prop:"boxShadow",themeKey:"shadows"});function Lg(e){return e<=1?"".concat(100*e,"%"):e}var Rg=mg({prop:"width",transform:Lg}),Og=mg({prop:"maxWidth",transform:Lg}),_g=mg({prop:"minWidth",transform:Lg}),Ig=mg({prop:"height",transform:Lg}),Pg=mg({prop:"maxHeight",transform:Lg}),Tg=mg({prop:"minHeight",transform:Lg});mg({prop:"size",cssProperty:"width",transform:Lg}),mg({prop:"size",cssProperty:"height",transform:Lg});var Ng=gg(Rg,Og,_g,Ig,Pg,Tg,mg({prop:"boxSizing"}));function qg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Mg={m:"margin",p:"padding"},Dg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ag={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zg=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(!Ag[e])return[e];e=Ag[e]}var t=qg(e.split(""),2),n=t[0],r=t[1],o=Mg[n],i=Dg[r]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),jg=["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 Fg(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 Bg(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 Ug(e){var t=Fg(e.theme);return Object.keys(e).map((function(n){if(-1===jg.indexOf(n))return null;var r=Bg(zg(n),t),o=e[n];return fg(e,o,r)})).reduce(cg,{})}Ug.propTypes={},Ug.filterProps=jg;var Hg=gg(mg({prop:"fontFamily",themeKey:"typography"}),mg({prop:"fontSize",themeKey:"typography"}),mg({prop:"fontStyle",themeKey:"typography"}),mg({prop:"fontWeight",themeKey:"typography"}),mg({prop:"letterSpacing"}),mg({prop:"lineHeight"}),mg({prop:"textAlign"}));function Wg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Fg({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var Vg={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)"},$g={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Kg(e){return"".concat(Math.round(e),"ms")}var Gg={easing:Vg,duration:$g,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?$g.standard:n,o=t.easing,i=void 0===o?Vg.easeInOut:o,a=t.delay,l=void 0===a?0:a;return Mm(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:Kg(r)," ").concat(i," ").concat("string"==typeof l?l:Kg(l))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},Zg={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Xg(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,l=e.spacing,s=e.typography,u=void 0===s?{}:s,c=Mm(e,["breakpoints","mixins","palette","spacing","typography"]),d=Qm(a),p=zm(n),f=Wg(l),h=hd({breakpoints:p,direction:"ltr",mixins:jm(p,f,o),overrides:{},palette:d,props:{},shadows:og,typography:ng(d,u),spacing:f,shape:ig,transitions:Gg,zIndex:Zg},c),m=arguments.length,g=new Array(m>1?m-1:0),v=1;v<m;v++)g[v-1]=arguments[v];return h=g.reduce((function(e,t){return hd(e,t)}),h)}var Qg=Xg();function Jg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return cm(e,Dm({defaultTheme:Qg},t))}var Yg=function(e){var t=function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=Wh(r,["name"]),a=o,l=cm("function"==typeof t?function(e){return{root:function(n){return t(Vh({theme:e},n))}}}:{root:t},Vh({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&delete t.propTypes;var s=tt.forwardRef((function(t,r){var o=t.children,i=t.className,a=t.clone,s=t.component,u=Wh(t,["children","className","clone","component"]),c=pm(l(t).root,i),d=u;if(n&&(d=Lm(d,n)),a)return tt.cloneElement(o,Vh({className:pm(o.props.className,c)},d));if("function"==typeof o)return o(Vh({className:c},d));var p=s||e;return tt.createElement(p,Vh({ref:r,className:c},d),o)}));return km(s,e),s}}(e);return function(e,n){return t(e,Dm({defaultTheme:Qg},n))}};function ev(){return Zh()||Qg}function tv(e,t){return Om(e,Dm({defaultTheme:Qg},t))}var nv={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},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)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1}}};const rv="#009845",ov="#3F8AB3",iv="#ffffff",av="#404040",lv="#333333",sv="#1A1A1A",uv={type:"light",palette:{primary:{main:av,contrastText:iv},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:av,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:av,hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:iv,default:iv,lightest:iv,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:ov,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:rv,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:iv,alternativeContrastText:av,excludedContrastText:av},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},cv={type:"dark",palette:{primary:{main:lv,contrastText:iv},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:iv,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:iv,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:av,lighter:lv,darker:"#262626",darkest:sv},custom:{focusBorder:ov,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:rv,alternative:lv,excluded:sv,mainContrastText:iv,alternativeContrastText:iv,excludedContrastText:iv},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},dv={},pv=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover $notchedOutline":{borderColor:e.palette.btn.border},"&$focused $notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px","&$focusVisible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none","&$focusVisible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none","&$disabled":{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},"&$disabled":{backgroundColor:e.palette.btn.disabled}}},MuiExpansionPanelSummary:{content:{margin:"8px 0"}}});function fv(e){let t=uv,r="";"string"==typeof e&&(r=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=cv));const o=JSON.stringify(t);if(dv[o])return dv[o];const i={palette:n(n({type:t.type},nv.palette),t.palette),typography:n({},nv.typography),shadows:nv.shadows,props:n({},nv.props),shape:n({},nv.shape)};return dv[o]=Xg(n(n({},i),{},{overrides:pv(i)})),dv[o].name=r,dv[o]}var hv=tt.createContext({language:null,theme:null,translator:null,constraints:{}}),mv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const n=e,r=[],o={get:e=>n[e],set:(e,r)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return n[e]=r,t({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));n[e]=null},dispatch:e=>{r.forEach(t=>t(e?{}:n))}},i=()=>{const[,e]=ye.exports.useState(n);return ye.exports.useEffect(()=>(r.push(e),()=>{const t=r.indexOf(e);r.splice(t,1)}),[e]),[o]};return[i,o]};const[gv,vv]=mv({}),[yv,bv]=mv({}),[xv,Ev]=mv({}),[wv,Cv]=mv({}),[Sv,kv]=mv({}),[,Lv]=mv({}),Rv=e=>{let{type:t,value:n}=e;const r=Lv.get(n.id);Lv.set(n.id,{});const o=()=>{bv.clear(n.id),kv.set(n.id,{}),kv.dispatch(!0)},i=()=>{n.removeListener("changed",o),vv.clear(n.id),bv.clear(n.id),Ev.clear(n.id),Cv.clear(n.id),kv.clear(n.id),Lv.clear(n.id)};switch(t){case"SET":r||(n.on("changed",o),n.once("closed",()=>{i()}))}return i},[Ov,_v]=mv({},Rv),Iv=(e,t)=>{const{rpcResultStore:r,key:o,method:i}=t;let a;switch(t.type){case"INVALID":a=n(n({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:n({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=n(n({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let l=r.get(o);return l||(l={}),l[i]=a,r.set(o,l),a};function Pv(e,t){const n=e?"".concat(e.id):null,[r]=gv(),[o,i]=ye.exports.useReducer(Iv,n?r.get(n):null),[a]=Sv(),[l]=yv();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const u=async o=>{let a=s[t];if(!a||a&&a.rpcRetry){a={rpc:e[t](),rpcRetry:!1},s[t]=a,i({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{const o=await a.rpc;i({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(a.rpcRetry||(a.rpcRetry=!0),u(!0))}},c={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),i({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,u()}};return ye.exports.useEffect(()=>{e&&u()},[e,a.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},c]}function Tv(e){return Pv(e,"getLayout")}function Nv(e){return Pv(e,"getAppLayout")}function qv(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=Ov(),[o]=xv(),[i,a]=ye.exports.useState();let l;n&&(l=o.get(n));for(var s=arguments.length,u=new Array(s>2?s-2:0),c=2;c<s;c++)u[c-2]=arguments[c];return ye.exports.useEffect(()=>{if(!t)return;(async()=>{if(!l){const r=t.createSessionObject(e);l=r,o.set(n,l)}const i=await l;r.set(n,i),a(i)})()},[t,...u]),[i]}const Mv={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Dv(e){return qv(Mv,e)}function Av(e){const[t]=Dv(e),[n]=Tv(t),[r]=Nv(e),[o,i]=ye.exports.useState(null);return ye.exports.useEffect(()=>{r&&t&&n&&((e,t,n)=>{const r=[...n.qStateNames||[]].map(e=>({stateName:e,qSelectionObjectDef:{qStateName:e}}));(t&&t.alternateStates?t.alternateStates.map(e=>e.stateName):[]).join("::")!==(n.qStateNames||[]).map(e=>e).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)})(t,n,r)},[r,t,n]),ye.exports.useEffect(()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach(n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter(e=>!0!==e.qLocked).length>0}),i({canGoBack:e,canGoForward:t,canClear:r})},[n]),[o,t,n]}const[zv,jv]=mv({}),[Fv,Bv]=mv({}),[Uv,Hv]=mv({}),[Wv,Vv]=mv({});function $v(e){if(!e.session)return[];const[t,n,r]=Av(e),[o]=zv(),i=e?e.id:null;let a=o.get(i);return ye.exports.useEffect(()=>{e&&n&&r&&t&&!a&&(a=function(e){let{app:t,currentSelectionsLayout:n,navState:r}=e;const o="".concat(t.id),i=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=Vv.get(o);t&&(await t.endSelections(e),Vv.clear(o),Hv.get(t.id).emit("deactivated"))},a={begin:async function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===Vv.get(o))return;i(r),Vv.set(o,e);const a=Array.isArray(n)?n:[n],l=async n=>{try{await e.beginSelections(a),Vv.set(o,e)}catch(e){6003!==e.code||n?Vv.clear(o):(await t.abortModal(r),l(!0))}};await l()},end:i};return Bv.set(o,a),{model:t,isInModal:()=>!!Vv.get(o),isModal:e=>e?Vv.get(o)===e:!!Vv.get(o),canGoForward:()=>r.canGoForward,canGoBack:()=>r.canGoBack,canClear:()=>r.canClear,layout:()=>n,forward:()=>a.end().then(()=>t.forward()),back:()=>a.end().then(()=>t.back()),clear:()=>a.end().then(()=>t.clearAll()),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return a.end().then(()=>t.getField(e,n).then(e=>e.clear()))}}}({app:e,currentSelectionsLayout:r,navState:t}),o.set(i,a),o.dispatch(!0))},[e,n,r,t]),[a,t]}let Kv=0;const Gv=ye.exports.forwardRef((e,t)=>{let{initialContext:n,app:r}=e;const[o]=$v(r),[i,a]=ye.exports.useState(n),[l,s]=ye.exports.useState(),{theme:u,generator:c}=ye.exports.useMemo(()=>({theme:fv(l),generator:Qd({productionPrefix:"".concat("70e2"),disableGlobal:!0,seed:"njs-".concat(Kv++)})}),[l]),[d,p]=ye.exports.useState([]);return ye.exports.useImperativeHandle(t,()=>({addComponent(e){p([...d,e])},removeComponent(e){const t=d.indexOf(e);-1!==t&&(d.splice(t,1),p([...d]))},setMuiThemeName:s,setContext:a,getAppSelections:()=>o})),tt.createElement(em,{generateClassName:c},tt.createElement(Rm,{theme:u},tt.createElement(hv.Provider,{value:i},tt.createElement(tt.Fragment,null,d))))});function Zv(e){let t,{app:n,context:r}=e;const o=new Promise(e=>{t=e}),i=tt.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","2.3.0"),a.setAttribute("data-app-id",n.id),document.body.appendChild(a),ud.render(tt.createElement(Gv,{ref:i,app:n,initialContext:r}),a,t);const l={};return[{toggleFocusOfCells(e){Object.keys(l).forEach(t=>{l[t].current.toggleFocus(t===e)})},cells:l,addCell(e,t){l[e]=t},add(e){(async()=>{await o,i.current.addComponent(e)})()},remove(e){(async()=>{await o,i.current.removeComponent(e)})()},setMuiThemeName(e){(async()=>{await o,i.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,i.current.setContext(e)})()},getAppSelections:async()=>(await o,i.current.getAppSelections())},i,o]}function Xv(e){if("string"!=typeof e)throw new Error(vd(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Qv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function Jv(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,l=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(l,n)}return r.clear=function(){clearTimeout(t)},r}function Yv(e){return e&&e.ownerDocument||document}function ey(e){return Yv(e).defaultView||window}function ty(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var ny="undefined"!=typeof window?ye.exports.useLayoutEffect:ye.exports.useEffect;function ry(e){var t=ye.exports.useRef(e);return ny((function(){t.current=e})),ye.exports.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function oy(e,t){return ye.exports.useMemo((function(){return null==e&&null==t?null:function(n){ty(e,n),ty(t,n)}}),[e,t])}var iy=!0,ay=!1,ly=null,sy={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 uy(e){e.metaKey||e.altKey||e.ctrlKey||(iy=!0)}function cy(){iy=!1}function dy(){"hidden"===this.visibilityState&&ay&&(iy=!0)}function py(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return iy||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!sy[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function fy(){ay=!0,window.clearTimeout(ly),ly=window.setTimeout((function(){ay=!1}),100)}function hy(){return{isFocusVisible:py,onBlurVisible:fy,ref:ye.exports.useCallback((function(e){var t,n=nt.exports.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",uy,!0),t.addEventListener("mousedown",cy,!0),t.addEventListener("pointerdown",cy,!0),t.addEventListener("touchstart",cy,!0),t.addEventListener("visibilitychange",dy,!0))}),[])}}function my(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function gy(){return(gy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function vy(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function yy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var by=!1,xy=tt.createContext(null),Ey="unmounted",wy="exited",Cy="entering",Sy="entered",ky="exiting",Ly=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=wy,r.appearStatus=Cy):o=Sy:o=t.unmountOnExit||t.mountOnEnter?Ey:wy,r.state={status:o},r.nextCallback=null,r}yy(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ey?{status:wy}: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!==Cy&&n!==Sy&&(t=Cy):n!==Cy&&n!==Sy||(t=ky)}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){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Cy?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===wy&&this.setState({status:Ey})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ud.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||by?this.safeSetState({status:Sy},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Cy},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Sy},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ud.findDOMNode(this);t&&!by?(this.props.onExit(r),this.safeSetState({status:ky},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:wy},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:wy},(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:ud.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)},n.render=function(){var e=this.state.status;if(e===Ey)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=vy(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return tt.createElement(xy.Provider,{value:null},"function"==typeof n?n(e,r):tt.cloneElement(tt.Children.only(n),r))},t}(tt.Component);function Ry(){}Ly.contextType=xy,Ly.propTypes={},Ly.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ry,onEntering:Ry,onEntered:Ry,onExit:Ry,onExiting:Ry,onExited:Ry},Ly.UNMOUNTED=Ey,Ly.EXITED=wy,Ly.ENTERING=Cy,Ly.ENTERED=Sy,Ly.EXITING=ky;var Oy=Ly;function _y(e,t){var n=Object.create(null);return e&&ye.exports.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&ye.exports.isValidElement(e)?t(e):e}(e)})),n}function Iy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Py(e,t,n){var r=_y(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 l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(ye.exports.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=ye.exports.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&ye.exports.isValidElement(u)&&(o[i]=ye.exports.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Iy(a,"exit",e),enter:Iy(a,"enter",e)})):o[i]=ye.exports.cloneElement(a,{in:!1}):o[i]=ye.exports.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Iy(a,"exit",e),enter:Iy(a,"enter",e)})}})),o}var Ty=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Ny=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}yy(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,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,_y(n.children,(function(e){return ye.exports.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Iy(e,"appear",n),enter:Iy(e,"enter",n),exit:Iy(e,"exit",n)})}))):Py(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=_y(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=gy({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=vy(e,["component","childFactory"]),o=this.state.contextValue,i=Ty(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?tt.createElement(xy.Provider,{value:o},i):tt.createElement(xy.Provider,{value:o},tt.createElement(t,r,i))},t}(tt.Component);Ny.propTypes={},Ny.defaultProps={component:"div",childFactory:function(e){return e}};var qy=Ny;function My(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var Dy=ye.exports.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,l=void 0!==a&&a,s=e.elevation,u=void 0===s?1:s,c=e.variant,d=void 0===c?"elevation":c,p=Mm(e,["classes","className","component","square","elevation","variant"]);return ye.exports.createElement(i,Dm({className:pm(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(u)],!l&&n.rounded),ref:t},p))})),Ay=tv((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Dm({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(Dy);function zy(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var jy="undefined"==typeof window?ye.exports.useEffect:ye.exports.useLayoutEffect;function Fy(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,l=e.in,s=e.onExited,u=void 0===s?function(){}:s,c=e.timeout,d=ye.exports.useState(!1),p=d[0],f=d[1],h=pm(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+i,left:-a/2+o},g=pm(t.child,p&&t.childLeaving,r&&t.childPulsate),v=ry(u);return jy((function(){if(!l){f(!0);var e=setTimeout(v,c);return function(){clearTimeout(e)}}}),[v,l,c]),ye.exports.createElement("span",{className:h,style:m},ye.exports.createElement("span",{className:g}))}var By=ye.exports.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=Mm(e,["center","classes","className"]),l=ye.exports.useState([]),s=l[0],u=l[1],c=ye.exports.useRef(0),d=ye.exports.useRef(null);ye.exports.useEffect((function(){d.current&&(d.current(),d.current=null)}),[s]);var p=ye.exports.useRef(!1),f=ye.exports.useRef(null),h=ye.exports.useRef(null),m=ye.exports.useRef(null);ye.exports.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var g=ye.exports.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;u((function(e){return[].concat(zy(e),[ye.exports.createElement(Fy,{key:c.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),c.current+=1,d.current=a}),[o]),v=ye.exports.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,l=void 0===a?r||t.pulsate:a,s=t.fakeElement,u=void 0!==s&&s;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var c,d,v,y=u?null:m.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,E=x.clientX,w=x.clientY;c=Math.round(E-b.left),d=Math.round(w-b.top)}if(l)(v=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(v+=1);else{var C=2*Math.max(Math.abs((y?y.clientWidth:0)-c),c)+2,S=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;v=Math.sqrt(Math.pow(C,2)+Math.pow(S,2))}e.touches?null===h.current&&(h.current=function(){g({pulsate:i,rippleX:c,rippleY:d,rippleSize:v,cb:n})},f.current=setTimeout((function(){h.current&&(h.current(),h.current=null)}),80)):g({pulsate:i,rippleX:c,rippleY:d,rippleSize:v,cb:n})}}),[r,g]),y=ye.exports.useCallback((function(){v({},{pulsate:!0})}),[v]),b=ye.exports.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&h.current)return e.persist(),h.current(),h.current=null,void(f.current=setTimeout((function(){b(e,t)})));h.current=null,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return ye.exports.useImperativeHandle(t,(function(){return{pulsate:y,start:v,stop:b}}),[y,v,b]),ye.exports.createElement("span",Dm({className:pm(o.root,i),ref:m},a),ye.exports.createElement(qy,{component:null,exit:!0},s))})),Uy=tv((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(ye.exports.memo(By)),Hy=ye.exports.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,l=e.classes,s=e.className,u=e.component,c=void 0===u?"button":u,d=e.disabled,p=void 0!==d&&d,f=e.disableRipple,h=void 0!==f&&f,m=e.disableTouchRipple,g=void 0!==m&&m,v=e.focusRipple,y=void 0!==v&&v,b=e.focusVisibleClassName,x=e.onBlur,E=e.onClick,w=e.onFocus,C=e.onFocusVisible,S=e.onKeyDown,k=e.onKeyUp,L=e.onMouseDown,R=e.onMouseLeave,O=e.onMouseUp,_=e.onTouchEnd,I=e.onTouchMove,P=e.onTouchStart,T=e.onDragLeave,N=e.tabIndex,q=void 0===N?0:N,M=e.TouchRippleProps,D=e.type,A=void 0===D?"button":D,z=Mm(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),j=ye.exports.useRef(null);var F=ye.exports.useRef(null),B=ye.exports.useState(!1),U=B[0],H=B[1];p&&U&&H(!1);var W=hy(),V=W.isFocusVisible,$=W.onBlurVisible,K=W.ref;function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return ry((function(r){return t&&t(r),!n&&F.current&&F.current[e](r),!0}))}ye.exports.useImperativeHandle(n,(function(){return{focusVisible:function(){H(!0),j.current.focus()}}}),[]),ye.exports.useEffect((function(){U&&y&&!h&&F.current.pulsate()}),[h,y,U]);var Z=G("start",L),X=G("stop",T),Q=G("stop",O),J=G("stop",(function(e){U&&e.preventDefault(),R&&R(e)})),Y=G("start",P),ee=G("stop",_),te=G("stop",I),ne=G("stop",(function(e){U&&($(e),H(!1)),x&&x(e)}),!1),re=ry((function(e){j.current||(j.current=e.currentTarget),V(e)&&(H(!0),C&&C(e)),w&&w(e)})),oe=function(){var e=nt.exports.findDOMNode(j.current);return c&&"button"!==c&&!("A"===e.tagName&&e.href)},ie=ye.exports.useRef(!1),ae=ry((function(e){y&&!ie.current&&U&&F.current&&" "===e.key&&(ie.current=!0,e.persist(),F.current.stop(e,(function(){F.current.start(e)}))),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!p&&(e.preventDefault(),E&&E(e))})),le=ry((function(e){y&&" "===e.key&&F.current&&U&&!e.defaultPrevented&&(ie.current=!1,e.persist(),F.current.stop(e,(function(){F.current.pulsate(e)}))),k&&k(e),E&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&E(e)})),se=c;"button"===se&&z.href&&(se="a");var ue={};"button"===se?(ue.type=A,ue.disabled=p):("a"===se&&z.href||(ue.role="button"),ue["aria-disabled"]=p);var ce=oy(r,t),de=oy(K,j),pe=oy(ce,de),fe=ye.exports.useState(!1),he=fe[0],me=fe[1];ye.exports.useEffect((function(){me(!0)}),[]);var ge=he&&!h&&!p;return ye.exports.createElement(se,Dm({className:pm(l.root,s,U&&[l.focusVisible,b],p&&l.disabled),onBlur:ne,onClick:E,onFocus:re,onKeyDown:ae,onKeyUp:le,onMouseDown:Z,onMouseLeave:J,onMouseUp:Q,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Y,ref:pe,tabIndex:p?-1:q},ue,z),a,ge?ye.exports.createElement(Uy,Dm({ref:F,center:i},M)):null)})),Wy=tv({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Hy),Vy=ye.exports.forwardRef((function(e,t){var n=e.edge,r=void 0!==n&&n,o=e.children,i=e.classes,a=e.className,l=e.color,s=void 0===l?"default":l,u=e.disabled,c=void 0!==u&&u,d=e.disableFocusRipple,p=void 0!==d&&d,f=e.size,h=void 0===f?"medium":f,m=Mm(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return ye.exports.createElement(Wy,Dm({className:pm(i.root,a,"default"!==s&&i["color".concat(Xv(s))],c&&i.disabled,"small"===h&&i["size".concat(Xv(h))],{start:i.edgeStart,end:i.edgeEnd}[r]),centerRipple:!0,focusRipple:!p,disabled:c,ref:t},m),ye.exports.createElement("span",{className:i.label},o))})),$y=tv((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Nm(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Nm(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Nm(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Vy),Ky=ye.exports.forwardRef((function(e,t){var n=e.anchorOrigin,r=void 0===n?{vertical:"top",horizontal:"right"}:n,o=e.badgeContent,i=e.children,a=e.classes,l=e.className,s=e.color,u=void 0===s?"default":s,c=e.component,d=void 0===c?"span":c,p=e.invisible,f=e.max,h=void 0===f?99:f,m=e.overlap,g=void 0===m?"rectangle":m,v=e.showZero,y=void 0!==v&&v,b=e.variant,x=void 0===b?"standard":b,E=Mm(e,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),w=p;null==p&&(0===o&&!y||null==o&&"dot"!==x)&&(w=!0);var C="";return"dot"!==x&&(C=o>h?"".concat(h,"+"):o),ye.exports.createElement(d,Dm({className:pm(a.root,l),ref:t},E),i,ye.exports.createElement("span",{className:pm(a.badge,a["".concat(r.horizontal).concat(Xv(r.vertical),"}")],a["anchorOrigin".concat(Xv(r.vertical)).concat(Xv(r.horizontal)).concat(Xv(g))],"default"!==u&&a["color".concat(Xv(u))],w&&a.invisible,"dot"===x&&a.dot)},C))})),Gy=tv((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{borderRadius:4,height:8,minWidth:8,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightRectangular:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightRectangular:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftRectangular:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftRectangular:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightCircular:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightCircular:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftCircular:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftCircular:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(Ky),Zy=function(e){var t=function(t){var n=e(t);return t.css?lg({},cg(n,e(lg({theme:t.theme},t.css))),bg(t.css,[e.filterProps])):t.sx?lg({},cg(n,e(lg({theme:t.theme},t.sx))),bg(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(ag(e.filterProps)),t}(gg(yg,xg,Eg,wg,Sg,Cg,kg,Ng,Ug,Hg)),Xy=Yg("div")(Zy,{name:"MuiBox"}),Qy={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Jy=ye.exports.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,l=void 0===a?"initial":a,s=e.component,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,p=void 0!==d&&d,f=e.noWrap,h=void 0!==f&&f,m=e.paragraph,g=void 0!==m&&m,v=e.variant,y=void 0===v?"body1":v,b=e.variantMapping,x=void 0===b?Qy:b,E=Mm(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),w=s||(g?"p":x[y]||Qy[y])||"span";return ye.exports.createElement(w,Dm({className:pm(o.root,i,"inherit"!==y&&o[y],"initial"!==l&&o["color".concat(Xv(l))],h&&o.noWrap,p&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(Xv(r))],"initial"!==c&&o["display".concat(Xv(c))]),ref:t},E))})),Yy=tv((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Jy),eb=ye.exports.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,l=e.component,s=void 0===l?"button":l,u=e.disabled,c=void 0!==u&&u,d=e.disableElevation,p=void 0!==d&&d,f=e.disableFocusRipple,h=void 0!==f&&f,m=e.endIcon,g=e.focusVisibleClassName,v=e.fullWidth,y=void 0!==v&&v,b=e.size,x=void 0===b?"medium":b,E=e.startIcon,w=e.type,C=void 0===w?"button":w,S=e.variant,k=void 0===S?"text":S,L=Mm(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),R=E&&ye.exports.createElement("span",{className:pm(r.startIcon,r["iconSize".concat(Xv(x))])},E),O=m&&ye.exports.createElement("span",{className:pm(r.endIcon,r["iconSize".concat(Xv(x))])},m);return ye.exports.createElement(Wy,Dm({className:pm(r.root,r[k],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(k).concat(Xv(a))],"medium"!==x&&[r["".concat(k,"Size").concat(Xv(x))],r["size".concat(Xv(x))]],p&&r.disableElevation,c&&r.disabled,y&&r.fullWidth),component:s,disabled:c,focusRipple:!h,focusVisibleClassName:pm(r.focusVisible,g),ref:t,type:C},L),ye.exports.createElement("span",{className:r.label},R,n,O))})),tb=tv((function(e){return{root:Dm({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Nm(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Nm(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Nm(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Nm(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Nm(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Nm(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Nm(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(eb),nb=ye.exports.createContext();function rb(){return ye.exports.useContext(nb)}var ob=nb,ib=44,ab=ye.exports.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,a=e.disableShrink,l=void 0!==a&&a,s=e.size,u=void 0===s?40:s,c=e.style,d=e.thickness,p=void 0===d?3.6:d,f=e.value,h=void 0===f?0:f,m=e.variant,g=void 0===m?"indeterminate":m,v=Mm(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),y={},b={},x={};if("determinate"===g||"static"===g){var E=2*Math.PI*((ib-p)/2);y.strokeDasharray=E.toFixed(3),x["aria-valuenow"]=Math.round(h),y.strokeDashoffset="".concat(((100-h)/100*E).toFixed(3),"px"),b.transform="rotate(-90deg)"}return ye.exports.createElement("div",Dm({className:pm(n.root,r,"inherit"!==i&&n["color".concat(Xv(i))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[g]),style:Dm({width:u,height:u},b,c),ref:t,role:"progressbar"},x,v),ye.exports.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(ib," ").concat(ib)},ye.exports.createElement("circle",{className:pm(n.circle,l&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[g]),style:y,cx:ib,cy:ib,r:(ib-p)/2,fill:"none",strokeWidth:p})))})),lb=tv((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(ab);var sb="undefined"!=typeof window?ye.exports.useLayoutEffect:ye.exports.useEffect,ub=ye.exports.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,l=ye.exports.useState(null),s=l[0],u=l[1],c=oy(ye.exports.isValidElement(n)?n.ref:null,t);return sb((function(){i||u(function(e){return e="function"==typeof e?e():e,nt.exports.findDOMNode(e)}(r)||document.body)}),[r,i]),sb((function(){if(s&&!i)return ty(t,s),function(){ty(t,null)}}),[t,s,i]),sb((function(){a&&(s||i)&&a()}),[a,s,i]),i?ye.exports.isValidElement(n)?ye.exports.cloneElement(n,{ref:c}):n:s?nt.exports.createPortal(n,s):s}));function cb(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,r.key,r)}}function db(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function pb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fb(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function hb(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(zy(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&pb(e,o)}))}function mb(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function gb(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Yv(e);return t.body===e?ey(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=db();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(fb(i)+a,"px"),n=Yv(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(fb(e)+a,"px")}))}var l=i.parentElement,s="HTML"===l.nodeName&&"scroll"===window.getComputedStyle(l)["overflow-y"]?l:i;r.push({value:s.style.overflow,key:"overflow",el:s}),s.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var vb=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}var t,n,r;return t=e,(n=[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&pb(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);hb(t,e.mountNode,e.modalRef,r,!0);var o=mb(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=mb(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=gb(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=mb(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&pb(e.modalRef,!0),hb(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&pb(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}])&&cb(t.prototype,n),r&&cb(t,r),e}();function yb(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,l=void 0!==a&&a,s=e.getDoc,u=e.isEnabled,c=e.open,d=ye.exports.useRef(),p=ye.exports.useRef(null),f=ye.exports.useRef(null),h=ye.exports.useRef(),m=ye.exports.useRef(null),g=ye.exports.useCallback((function(e){m.current=nt.exports.findDOMNode(e)}),[]),v=oy(t.ref,g),y=ye.exports.useRef();return ye.exports.useEffect((function(){y.current=c}),[c]),!y.current&&c&&"undefined"!=typeof window&&(h.current=s().activeElement),ye.exports.useEffect((function(){if(c){var e=Yv(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!i&&u()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!i&&u()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?f.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(h.current&&h.current.focus&&h.current.focus(),h.current=null)}}}),[r,i,l,u,c]),ye.exports.createElement(ye.exports.Fragment,null,ye.exports.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),ye.exports.cloneElement(t,{ref:v}),ye.exports.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var bb={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},xb=ye.exports.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=Mm(e,["invisible","open"]);return o?ye.exports.createElement("div",Dm({"aria-hidden":!0,ref:t},i,{style:Dm({},bb.root,r?bb.invisible:{},i.style)})):null}));var Eb=new vb,wb=ye.exports.forwardRef((function(e,t){var n=Zh(),r=Jd({name:"MuiModal",props:Dm({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?xb:o,a=r.BackdropProps,l=r.children,s=r.closeAfterTransition,u=void 0!==s&&s,c=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,f=r.disableBackdropClick,h=void 0!==f&&f,m=r.disableEnforceFocus,g=void 0!==m&&m,v=r.disableEscapeKeyDown,y=void 0!==v&&v,b=r.disablePortal,x=void 0!==b&&b,E=r.disableRestoreFocus,w=void 0!==E&&E,C=r.disableScrollLock,S=void 0!==C&&C,k=r.hideBackdrop,L=void 0!==k&&k,R=r.keepMounted,O=void 0!==R&&R,_=r.manager,I=void 0===_?Eb:_,P=r.onBackdropClick,T=r.onClose,N=r.onEscapeKeyDown,q=r.onRendered,M=r.open,D=Mm(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),A=ye.exports.useState(!0),z=A[0],j=A[1],F=ye.exports.useRef({}),B=ye.exports.useRef(null),U=ye.exports.useRef(null),H=oy(U,t),W=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),V=function(){return Yv(B.current)},$=function(){return F.current.modalRef=U.current,F.current.mountNode=B.current,F.current},K=function(){I.mount($(),{disableScrollLock:S}),U.current.scrollTop=0},G=ry((function(){var e=function(e){return e="function"==typeof e?e():e,nt.exports.findDOMNode(e)}(c)||V().body;I.add($(),e),U.current&&K()})),Z=ye.exports.useCallback((function(){return I.isTopModal($())}),[I]),X=ry((function(e){B.current=e,e&&(q&&q(),M&&Z()?K():pb(U.current,!0))})),Q=ye.exports.useCallback((function(){I.remove($())}),[I]);if(ye.exports.useEffect((function(){return function(){Q()}}),[Q]),ye.exports.useEffect((function(){M?G():W&&u||Q()}),[M,Q,W,u,G]),!O&&!M&&(!W||z))return null;var J=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Zg}),Y={};return void 0===l.props.tabIndex&&(Y.tabIndex=l.props.tabIndex||"-1"),W&&(Y.onEnter=Qv((function(){j(!1)}),l.props.onEnter),Y.onExited=Qv((function(){j(!0),u&&Q()}),l.props.onExited)),ye.exports.createElement(ub,{ref:X,container:c,disablePortal:x},ye.exports.createElement("div",Dm({ref:H,onKeyDown:function(e){"Escape"===e.key&&Z()&&(N&&N(e),y||(e.stopPropagation(),T&&T(e,"escapeKeyDown")))},role:"presentation"},D,{style:Dm({},J.root,!M&&z?J.hidden:{},D.style)}),L?null:ye.exports.createElement(i,Dm({open:M,onClick:function(e){e.target===e.currentTarget&&(P&&P(e),!h&&T&&T(e,"backdropClick"))}},a)),ye.exports.createElement(yb,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:w,getDoc:V,isEnabled:Z,open:M},ye.exports.cloneElement(l,Y))))})),Cb=ye.exports.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,a=e.component,l=void 0===a?"hr":a,s=e.flexItem,u=void 0!==s&&s,c=e.light,d=void 0!==c&&c,p=e.orientation,f=void 0===p?"horizontal":p,h=e.role,m=void 0===h?"hr"!==l?"separator":void 0:h,g=e.variant,v=void 0===g?"fullWidth":g,y=Mm(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return ye.exports.createElement(l,Dm({className:pm(o.root,i,"fullWidth"!==v&&o[v],r&&o.absolute,u&&o.flexItem,d&&o.light,"vertical"===f&&o.vertical),role:m,ref:t},y))})),Sb=tv((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Nm(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(Cb);function kb(e,t){return parseInt(e[t],10)||0}var Lb="undefined"!=typeof window?ye.exports.useLayoutEffect:ye.exports.useEffect,Rb={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Ob=ye.exports.forwardRef((function(e,t){var n=e.onChange,r=e.rows,o=e.rowsMax,i=e.rowsMin,a=e.maxRows,l=e.minRows,s=void 0===l?1:l,u=e.style,c=e.value,d=Mm(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),p=a||o,f=r||i||s,h=ye.exports.useRef(null!=c).current,m=ye.exports.useRef(null),g=oy(t,m),v=ye.exports.useRef(null),y=ye.exports.useRef(0),b=ye.exports.useState({}),x=b[0],E=b[1],w=ye.exports.useCallback((function(){var t=m.current,n=window.getComputedStyle(t),r=v.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=kb(n,"padding-bottom")+kb(n,"padding-top"),a=kb(n,"border-bottom-width")+kb(n,"border-top-width"),l=r.scrollHeight-i;r.value="x";var s=r.scrollHeight-i,u=l;f&&(u=Math.max(Number(f)*s,u)),p&&(u=Math.min(Number(p)*s,u));var c=(u=Math.max(u,s))+("border-box"===o?i+a:0),d=Math.abs(u-l)<=1;E((function(e){return y.current<20&&(c>0&&Math.abs((e.outerHeightStyle||0)-c)>1||e.overflow!==d)?(y.current+=1,{overflow:d,outerHeightStyle:c}):e}))}),[p,f,e.placeholder]);ye.exports.useEffect((function(){var e=Jv((function(){y.current=0,w()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[w]),Lb((function(){w()})),ye.exports.useEffect((function(){y.current=0}),[c]);return ye.exports.createElement(ye.exports.Fragment,null,ye.exports.createElement("textarea",Dm({value:c,onChange:function(e){y.current=0,h||w(),n&&n(e)},ref:g,rows:f,style:Dm({height:x.outerHeightStyle,overflow:x.overflow?"hidden":null},u)},d)),ye.exports.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:v,tabIndex:-1,style:Dm({},Rb,u)}))}));function _b(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}var Ib="undefined"==typeof window?ye.exports.useEffect:ye.exports.useLayoutEffect,Pb=ye.exports.forwardRef((function(e,t){var n=e["aria-describedby"],r=e.autoComplete,o=e.autoFocus,i=e.classes,a=e.className;e.color;var l=e.defaultValue,s=e.disabled,u=e.endAdornment;e.error;var c=e.fullWidth,d=void 0!==c&&c,p=e.id,f=e.inputComponent,h=void 0===f?"input":f,m=e.inputProps,g=void 0===m?{}:m,v=e.inputRef;e.margin;var y=e.multiline,b=void 0!==y&&y,x=e.name,E=e.onBlur,w=e.onChange,C=e.onClick,S=e.onFocus,k=e.onKeyDown,L=e.onKeyUp,R=e.placeholder,O=e.readOnly,_=e.renderSuffix,I=e.rows,P=e.rowsMax,T=e.rowsMin,N=e.maxRows,q=e.minRows,M=e.startAdornment,D=e.type,A=void 0===D?"text":D,z=e.value,j=Mm(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),F=null!=g.value?g.value:z,B=ye.exports.useRef(null!=F).current,U=ye.exports.useRef(),H=ye.exports.useCallback((function(e){}),[]),W=oy(g.ref,H),V=oy(v,W),$=oy(U,V),K=ye.exports.useState(!1),G=K[0],Z=K[1],X=rb(),Q=function(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}({props:e,muiFormControl:X,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});Q.focused=X?X.focused:G,ye.exports.useEffect((function(){!X&&s&&G&&(Z(!1),E&&E())}),[X,s,G,E]);var J=X&&X.onFilled,Y=X&&X.onEmpty,ee=ye.exports.useCallback((function(e){!function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(_b(e.value)&&""!==e.value||t&&_b(e.defaultValue)&&""!==e.defaultValue)}(e)?Y&&Y():J&&J()}),[J,Y]);Ib((function(){B&&ee({value:F})}),[F,ee,B]);ye.exports.useEffect((function(){ee(U.current)}),[]);var te=h,ne=Dm({},g,{ref:$});"string"!=typeof te?ne=Dm({inputRef:$,type:A},ne,{ref:null}):b?!I||N||q||P||T?(ne=Dm({minRows:I||q,rowsMax:P,maxRows:N},ne),te=Ob):te="textarea":ne=Dm({type:A},ne);return ye.exports.useEffect((function(){X&&X.setAdornedStart(Boolean(M))}),[X,M]),ye.exports.createElement("div",Dm({className:pm(i.root,i["color".concat(Xv(Q.color||"primary"))],a,Q.disabled&&i.disabled,Q.error&&i.error,d&&i.fullWidth,Q.focused&&i.focused,X&&i.formControl,b&&i.multiline,M&&i.adornedStart,u&&i.adornedEnd,"dense"===Q.margin&&i.marginDense),onClick:function(e){U.current&&e.currentTarget===e.target&&U.current.focus(),C&&C(e)},ref:t},j),M,ye.exports.createElement(ob.Provider,{value:null},ye.exports.createElement(te,Dm({"aria-invalid":Q.error,"aria-describedby":n,autoComplete:r,autoFocus:o,defaultValue:l,disabled:Q.disabled,id:p,onAnimationStart:function(e){ee("mui-auto-fill-cancel"===e.animationName?U.current:{value:"x"})},name:x,placeholder:R,readOnly:O,required:Q.required,rows:I,value:F,onKeyDown:k,onKeyUp:L},ne,{className:pm(i.input,g.className,Q.disabled&&i.disabled,b&&i.inputMultiline,Q.hiddenLabel&&i.inputHiddenLabel,M&&i.inputAdornedStart,u&&i.inputAdornedEnd,"search"===A&&i.inputTypeSearch,"dense"===Q.margin&&i.inputMarginDense),onBlur:function(e){E&&E(e),g.onBlur&&g.onBlur(e),X&&X.onBlur?X.onBlur(e):Z(!1)},onChange:function(e){if(!B){var t=e.target||U.current;if(null==t)throw new Error(vd(1));ee({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];g.onChange&&g.onChange.apply(g,[e].concat(r)),w&&w.apply(void 0,[e].concat(r))},onFocus:function(e){Q.disabled?e.stopPropagation():(S&&S(e),g.onFocus&&g.onFocus(e),X&&X.onFocus?X.onFocus(e):Z(!0))}}))),u,_?_(Dm({},Q,{startAdornment:M})):null)})),Tb=tv((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:Dm({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(Pb),Nb=[0,1,2,3,4,5,6,7,8,9,10],qb=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function Mb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var Db=ye.exports.forwardRef((function(e,t){var n=e.alignContent,r=void 0===n?"stretch":n,o=e.alignItems,i=void 0===o?"stretch":o,a=e.classes,l=e.className,s=e.component,u=void 0===s?"div":s,c=e.container,d=void 0!==c&&c,p=e.direction,f=void 0===p?"row":p,h=e.item,m=void 0!==h&&h,g=e.justify,v=e.justifyContent,y=void 0===v?"flex-start":v,b=e.lg,x=void 0!==b&&b,E=e.md,w=void 0!==E&&E,C=e.sm,S=void 0!==C&&C,k=e.spacing,L=void 0===k?0:k,R=e.wrap,O=void 0===R?"wrap":R,_=e.xl,I=void 0!==_&&_,P=e.xs,T=void 0!==P&&P,N=e.zeroMinWidth,q=void 0!==N&&N,M=Mm(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),D=pm(a.root,l,d&&[a.container,0!==L&&a["spacing-xs-".concat(String(L))]],m&&a.item,q&&a.zeroMinWidth,"row"!==f&&a["direction-xs-".concat(String(f))],"wrap"!==O&&a["wrap-xs-".concat(String(O))],"stretch"!==i&&a["align-items-xs-".concat(String(i))],"stretch"!==r&&a["align-content-xs-".concat(String(r))],"flex-start"!==(g||y)&&a["justify-content-xs-".concat(String(g||y))],!1!==T&&a["grid-xs-".concat(String(T))],!1!==S&&a["grid-sm-".concat(String(S))],!1!==w&&a["grid-md-".concat(String(w))],!1!==x&&a["grid-lg-".concat(String(x))],!1!==I&&a["grid-xl-".concat(String(I))]);return ye.exports.createElement(u,Dm({className:D,ref:t},M))})),Ab=tv((function(e){return Dm({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return Nb.forEach((function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(Mb(o,2)),width:"calc(100% + ".concat(Mb(o),")"),"& > $item":{padding:Mb(o,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};qb.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Dm(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(Db);function zb(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var jb={entering:{opacity:1,transform:zb(1)},entered:{opacity:1,transform:"none"}},Fb=ye.exports.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,l=e.onEntered,s=e.onEntering,u=e.onExit,c=e.onExited,d=e.onExiting,p=e.style,f=e.timeout,h=void 0===f?"auto":f,m=e.TransitionComponent,g=void 0===m?Oy:m,v=Mm(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),y=ye.exports.useRef(),b=ye.exports.useRef(),x=ev(),E=x.unstable_strictMode&&!o,w=ye.exports.useRef(null),C=oy(n.ref,t),S=oy(E?w:void 0,C),k=function(e){return function(t,n){if(e){var r=my(E?[w.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},L=k(s),R=k((function(e,t){!function(e){e.scrollTop}(e);var n,r=My({style:p,timeout:h},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===h?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=o,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:i}),x.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),O=k(l),_=k(d),I=k((function(e){var t,n=My({style:p,timeout:h},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===h?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:o}),x.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=zb(.75),u&&u(e)})),P=k(c);return ye.exports.useEffect((function(){return function(){clearTimeout(y.current)}}),[]),ye.exports.createElement(g,Dm({appear:!0,in:i,nodeRef:E?w:void 0,onEnter:R,onEntered:O,onEntering:L,onExit:I,onExited:P,onExiting:_,addEndListener:function(e,t){var n=E?e:t;"auto"===h&&(y.current=setTimeout(n,b.current||0))},timeout:"auto"===h?null:h},v),(function(e,t){return ye.exports.cloneElement(n,Dm({style:Dm({opacity:0,transform:zb(.75),visibility:"exited"!==e||i?void 0:"hidden"},jb[e],p,n.props.style),ref:S},t))}))}));Fb.muiSupportAuto=!0;var Bb=Fb,Ub=ye.exports.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"inherit":o,a=e.component,l=void 0===a?"span":a,s=e.fontSize,u=void 0===s?"medium":s,c=Mm(e,["classes","className","color","component","fontSize"]);return ye.exports.createElement(l,Dm({className:pm("material-icons",n.root,r,"inherit"!==i&&n["color".concat(Xv(i))],"default"!==u&&"medium"!==u&&n["fontSize".concat(Xv(u))]),"aria-hidden":!0,ref:t},c))}));Ub.muiName="Icon";var Hb=tv((function(e){return{root:{userSelect:"none",fontSize:e.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(36)}}}),{name:"MuiIcon"})(Ub),Wb=ye.exports.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,l=e.disablePointerEvents,s=void 0!==l&&l,u=e.disableTypography,c=void 0!==u&&u,d=e.position,p=e.variant,f=Mm(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),h=rb()||{},m=p;return p&&h.variant,h&&!m&&(m=h.variant),ye.exports.createElement(ob.Provider,{value:null},ye.exports.createElement(a,Dm({className:pm(r.root,o,"end"===d?r.positionEnd:r.positionStart,s&&r.disablePointerEvents,h.hiddenLabel&&r.hiddenLabel,"filled"===m&&r.filled,"dense"===h.margin&&r.marginDense),ref:t},f),"string"!=typeof n||c?n:ye.exports.createElement(Yy,{color:"textSecondary"},n)))})),Vb=tv({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(Wb),$b=ye.exports.createContext({}),Kb=ye.exports.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,l=e.dense,s=void 0!==l&&l,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,p=Mm(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=ye.exports.useMemo((function(){return{dense:s}}),[s]);return ye.exports.createElement($b.Provider,{value:f},ye.exports.createElement(a,Dm({className:pm(r.root,o,s&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},p),d,n))})),Gb=tv({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Kb),Zb="undefined"==typeof window?ye.exports.useEffect:ye.exports.useLayoutEffect,Xb=ye.exports.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,l=void 0!==a&&a,s=e.children,u=e.classes,c=e.className,d=e.component,p=e.ContainerComponent,f=void 0===p?"li":p,h=e.ContainerProps,m=(h=void 0===h?{}:h).className,g=Mm(h,["className"]),v=e.dense,y=void 0!==v&&v,b=e.disabled,x=void 0!==b&&b,E=e.disableGutters,w=void 0!==E&&E,C=e.divider,S=void 0!==C&&C,k=e.focusVisibleClassName,L=e.selected,R=void 0!==L&&L,O=Mm(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),_=ye.exports.useContext($b),I={dense:y||_.dense||!1,alignItems:r},P=ye.exports.useRef(null);Zb((function(){i&&P.current&&P.current.focus()}),[i]);var T,N,q=ye.exports.Children.toArray(s),M=q.length&&(T=q[q.length-1],N=["ListItemSecondaryAction"],ye.exports.isValidElement(T)&&-1!==N.indexOf(T.type.muiName)),D=oy(ye.exports.useCallback((function(e){P.current=nt.exports.findDOMNode(e)}),[]),t),A=Dm({className:pm(u.root,c,I.dense&&u.dense,!w&&u.gutters,S&&u.divider,x&&u.disabled,l&&u.button,"center"!==r&&u.alignItemsFlexStart,M&&u.secondaryAction,R&&u.selected),disabled:x},O),z=d||"li";return l&&(A.component=d||"div",A.focusVisibleClassName=pm(u.focusVisible,k),z=Wy),M?(z=A.component||d?z:"div","li"===f&&("li"===z?z="div":"li"===A.component&&(A.component="div")),ye.exports.createElement($b.Provider,{value:I},ye.exports.createElement(f,Dm({className:pm(u.container,m),ref:D},g),ye.exports.createElement(z,A,q),q.pop()))):ye.exports.createElement($b.Provider,{value:I},ye.exports.createElement(z,Dm({ref:D},A),q))})),Qb=tv((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(Xb),Jb=ye.exports.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Mm(e,["classes","className"]),i=ye.exports.useContext($b);return ye.exports.createElement("div",Dm({className:pm(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),Yb=tv((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Jb);function ex(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function tx(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function nx(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function rx(e){return"function"==typeof e?e():e}var ox=ye.exports.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,l=e.anchorReference,s=void 0===l?"anchorEl":l,u=e.children,c=e.classes,d=e.className,p=e.container,f=e.elevation,h=void 0===f?8:f,m=e.getContentAnchorEl,g=e.marginThreshold,v=void 0===g?16:g,y=e.onEnter,b=e.onEntered,x=e.onEntering,E=e.onExit,w=e.onExited,C=e.onExiting,S=e.open,k=e.PaperProps,L=void 0===k?{}:k,R=e.transformOrigin,O=void 0===R?{vertical:"top",horizontal:"left"}:R,_=e.TransitionComponent,I=void 0===_?Bb:_,P=e.transitionDuration,T=void 0===P?"auto":P,N=e.TransitionProps,q=void 0===N?{}:N,M=Mm(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),D=ye.exports.useRef(),A=ye.exports.useCallback((function(e){if("anchorPosition"===s)return a;var t=rx(r),n=(t&&1===t.nodeType?t:Yv(D.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+ex(n,o),left:n.left+tx(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,s]),z=ye.exports.useCallback((function(e){var t=0;if(m&&"anchorEl"===s){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[i.vertical,s,m]),j=ye.exports.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:ex(e,O.vertical)+t,horizontal:tx(e,O.horizontal)}}),[O.horizontal,O.vertical]),F=ye.exports.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},o=j(n,t);if("none"===s)return{top:null,left:null,transformOrigin:nx(o)};var i=A(t),a=i.top-o.vertical,l=i.left-o.horizontal,u=a+n.height,c=l+n.width,d=ey(rx(r)),p=d.innerHeight-v,f=d.innerWidth-v;if(a<v){var h=a-v;a-=h,o.vertical+=h}else if(u>p){var m=u-p;a-=m,o.vertical+=m}if(l<v){var g=l-v;l-=g,o.horizontal+=g}else if(c>f){var y=c-f;l-=y,o.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(l),"px"),transformOrigin:nx(o)}}),[r,s,A,z,j,v]),B=ye.exports.useCallback((function(){var e=D.current;if(e){var t=F(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[F]),U=ye.exports.useCallback((function(e){D.current=nt.exports.findDOMNode(e)}),[]);ye.exports.useEffect((function(){S&&B()})),ye.exports.useImperativeHandle(n,(function(){return S?{updatePosition:function(){B()}}:null}),[S,B]),ye.exports.useEffect((function(){if(S){var e=Jv((function(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[S,B]);var H=T;"auto"!==T||I.muiSupportAuto||(H=void 0);var W=p||(r?Yv(rx(r)).body:void 0);return ye.exports.createElement(wb,Dm({container:W,open:S,ref:t,BackdropProps:{invisible:!0},className:pm(c.root,d)},M),ye.exports.createElement(I,Dm({appear:!0,in:S,onEnter:y,onEntered:b,onExit:E,onExited:w,onExiting:C,timeout:H},q,{onEntering:Qv((function(e,t){x&&x(e,t),B()}),q.onEntering)}),ye.exports.createElement(Ay,Dm({elevation:h,ref:U},L,{className:pm(c.paper,L.className)}),u)))})),ix=tv({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(ox);function ax(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function lx(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function sx(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function ux(e,t,n,r,o,i){for(var a=!1,l=o(e,t,!!t&&n);l;){if(l===e.firstChild){if(a)return;a=!0}var s=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&sx(l,i)&&!s)return void l.focus();l=o(e,l,n)}}var cx="undefined"==typeof window?ye.exports.useEffect:ye.exports.useLayoutEffect,dx=ye.exports.forwardRef((function(e,t){var n=e.actions,r=e.autoFocus,o=void 0!==r&&r,i=e.autoFocusItem,a=void 0!==i&&i,l=e.children,s=e.className,u=e.disabledItemsFocusable,c=void 0!==u&&u,d=e.disableListWrap,p=void 0!==d&&d,f=e.onKeyDown,h=e.variant,m=void 0===h?"selectedMenu":h,g=Mm(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),v=ye.exports.useRef(null),y=ye.exports.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});cx((function(){o&&v.current.focus()}),[o]),ye.exports.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!v.current.style.width;if(e.clientHeight<v.current.clientHeight&&n){var r="".concat(db(),"px");v.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,v.current.style.width="calc(100% + ".concat(r,")")}return v.current}}}),[]);var b=oy(ye.exports.useCallback((function(e){v.current=nt.exports.findDOMNode(e)}),[]),t),x=-1;ye.exports.Children.forEach(l,(function(e,t){ye.exports.isValidElement(e)&&(e.props.disabled||("selectedMenu"===m&&e.props.selected||-1===x)&&(x=t))}));var E=ye.exports.Children.map(l,(function(e,t){if(t===x){var n={};return a&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===m&&(n.tabIndex=0),ye.exports.cloneElement(e,n)}return e}));return ye.exports.createElement(Gb,Dm({role:"menu",ref:b,className:s,onKeyDown:function(e){var t=v.current,n=e.key,r=Yv(t).activeElement;if("ArrowDown"===n)e.preventDefault(),ux(t,r,p,c,ax);else if("ArrowUp"===n)e.preventDefault(),ux(t,r,p,c,lx);else if("Home"===n)e.preventDefault(),ux(t,null,p,c,ax);else if("End"===n)e.preventDefault(),ux(t,null,p,c,lx);else if(1===n.length){var o=y.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);var l=r&&!o.repeating&&sx(r,o);o.previousKeyMatched&&(l||ux(t,r,!1,c,ax,o))?e.preventDefault():o.previousKeyMatched=!1}f&&f(e)},tabIndex:o?0:-1},g),E)})),px=ye.exports.forwardRef((function(e,t){var n,r=e.classes,o=e.className,i=e.component,a=void 0===i?"li":i,l=e.disableGutters,s=void 0!==l&&l,u=e.ListItemClasses,c=e.role,d=void 0===c?"menuitem":c,p=e.selected,f=e.tabIndex,h=Mm(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==f?f:-1),ye.exports.createElement(Qb,Dm({button:!0,role:d,tabIndex:n,component:a,selected:p,disableGutters:s,classes:Dm({dense:r.dense},u),className:pm(r.root,o,p&&r.selected,!s&&r.gutters),ref:t},h))})),fx=tv((function(e){return{root:Dm({},e.typography.body1,qm({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Dm({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(px),hx=ye.exports.forwardRef((function(e,t){e.children;var n=e.classes,r=e.className,o=e.label,i=e.labelWidth,a=e.notched,l=e.style,s=Mm(e,["children","classes","className","label","labelWidth","notched","style"]),u="rtl"===ev().direction?"right":"left";if(void 0!==o)return ye.exports.createElement("fieldset",Dm({"aria-hidden":!0,className:pm(n.root,r),ref:t,style:l},s),ye.exports.createElement("legend",{className:pm(n.legendLabelled,a&&n.legendNotched)},o?ye.exports.createElement("span",null,o):ye.exports.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var c=i>0?.75*i+8:.01;return ye.exports.createElement("fieldset",Dm({"aria-hidden":!0,style:Dm(qm({},"padding".concat(Xv(u)),8),l),className:pm(n.root,r),ref:t},s),ye.exports.createElement("legend",{className:n.legend,style:{width:a?c:.01}},ye.exports.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))})),mx=tv((function(e){return{root:{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"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(hx),gx=ye.exports.forwardRef((function(e,t){var n=e.classes,r=e.fullWidth,o=void 0!==r&&r,i=e.inputComponent,a=void 0===i?"input":i,l=e.label,s=e.labelWidth,u=void 0===s?0:s,c=e.multiline,d=void 0!==c&&c,p=e.notched,f=e.type,h=void 0===f?"text":f,m=Mm(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return ye.exports.createElement(Tb,Dm({renderSuffix:function(e){return ye.exports.createElement(mx,{className:n.notchedOutline,label:l,labelWidth:u,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Dm({},n,{root:pm(n.root,n.underline),notchedOutline:null}),fullWidth:o,inputComponent:a,multiline:d,ref:t,type:h},m))}));gx.muiName="Input";var vx=tv((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(gx);function yx(){const[e,t]=ye.exports.useState(),[n,r]=ye.exports.useState(),o=ye.exports.useCallback(e=>{e&&t(e)},[]),i=()=>{const{left:t,top:n,width:o,height:i}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:i})};return ye.exports.useLayoutEffect(()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(i);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}}},[e]),[o,n,e]}function bx(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function xx(e){let{size:t,style:r={},viewBox:i="0 0 16 16",shapes:a=[]}=e;const l=n({fontSize:bx(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r);return tt.createElement("i",{style:l},tt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:i,fill:"currentColor"},a.map((e,t)=>{let{type:n,attrs:r}=e;return tt.createElement(n,o({key:t},r))})))}var Ex=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var wx=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"}}]}))(e));var Cx=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e));function Sx(){return(Sx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function kx(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lx(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Rx(e,t){var n;void 0===t&&(t=Lx);var r,o=[],i=!1;return function(){for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return i&&n===this&&t(l,o)||(r=e.apply(this,l),i=!0,n=this,o=l),r}}var Ox="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function _x(e){cancelAnimationFrame(e.id)}var Ix=null;function Px(e){if(void 0===e&&(e=!1),null===Ix||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?Ix="positive-descending":(t.scrollLeft=1,Ix=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Ix}return Ix}var Tx=function(e,t){return e};function Nx(e){var t,n,r=e.getItemOffset,o=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return n=t=function(e){var t,n;function p(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,kx(kx(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:kx(kx(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Rx((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=Rx((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,l=o.itemSize,s=o.layout,u=n._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Rx((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(Px()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){var e,t,r,o;null!==n._resetIsScrollingTimeoutId&&_x(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=(e=n._resetIsScrolling,t=150,r=Ox(),o={id:requestAnimationFrame((function n(){Ox()-r>=t?e.call(null):o.id=requestAnimationFrame(n)}))})},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}n=e,(t=p).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,p.getDerivedStateFromProps=function(e,t){return qx(e,t),d(e),null};var f=p.prototype;return f.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)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(a(this.props,e,t,r,this._instanceProps))},f.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()},f.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(Px()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&_x(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,r=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?Tx:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,y=e.width,b=this.state.isScrolling,x="horizontal"===r||"horizontal"===f,E=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],S=w[1],k=[];if(u>0)for(var L=C;L<=S;L++)k.push(ye.exports.createElement(t,{data:c,key:p(L,c),index:L,isScrolling:v?b:void 0,style:this._getItemStyle(L)}));var R=o(this.props,this._instanceProps);return ye.exports.createElement(h||m||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:Sx({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},g)},ye.exports.createElement(l||s||"div",{children:k,ref:a,style:{height:x?"100%":R,pointerEvents:b?"none":void 0,width:x?R:"100%"}}))},f._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,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},f._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 u=l(this.props,a,this._instanceProps),c=s(this.props,u,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,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},p}(ye.exports.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var qx=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Mx=Nx({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r){var o=e.direction,i=e.height,a=e.itemCount,l=e.itemSize,s=e.layout,u=e.width,c="horizontal"===o||"horizontal"===s?u:i,d=Math.max(0,a*l-c),p=Math.min(d,t*l),f=Math.max(0,t*l-c+l);switch("smart"===n&&(n=r>=f-c&&r<=p+c?"auto":"center"),n){case"start":return p;case"end":return f;case"center":var h=Math.round(f+(p-f)/2);return h<Math.ceil(c/2)?0:h>d+Math.floor(c/2)?d:h;case"auto":default:return r>=f&&r<=p?r:r<f?f:p}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,l=e.layout,s=e.width,u=t*a,c="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((c+n-u)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});var Dx=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ax=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),zx=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},jx=function(e){function t(){var e,n,r;Dx(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=zx(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},zx(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Ax(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,i=n.minimumBatchSize,a=void 0===i?10:i,l=n.threshold,s=void 0===l?15:l,u=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],l=null,s=null,u=o;u<=i;u++)t(u)?null!==s&&(a.push(l,s),l=s=null):(s=u,null===l&&(l=u));if(null!==s){for(var c=Math.min(Math.max(s,l+r-1),n-1),d=s+1;d<=c&&!t(d);d++)s=d;a.push(l,s)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-s),stopIndex:Math.min(o-1,t+s)});(this._memoizedUnloadedRanges.length!==u.length||this._memoizedUnloadedRanges.some((function(e,t){return u[t]!==e})))&&(this._memoizedUnloadedRanges=u,this._loadUnloadedRanges(u))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],i=e[r+1],a=n(o,i);null!=a&&a.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:i})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}(ye.exports.PureComponent);const Fx=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var Bx=e=>xx(Fx(e));const Ux=cm(e=>({row:{flexWrap:"nowrap",borderBottom:"1px solid ".concat(e.palette.divider),"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(e.palette.custom.focusOutline),outline:"none"}},cell:{padding:"8px","& span":{whiteSpace:"nowrap",fontSize:"12px",lineHeight:"16px"},overflow:"hidden",textOverflow:"ellipsis"},icon:{padding:e.spacing(1)},S:{background:e.palette.selected.main,color:e.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px rgba(0, 0, 0, 0.3)",outline:"none"}},A:{background:e.palette.selected.alternative,color:e.palette.selected.alternativeContrastText},X:{background:e.palette.selected.excluded,color:e.palette.selected.excludedContrastText},highlighted:{backgroundColor:"#FFC72A"}}));function Hx(e){let{index:t,style:n,data:r}=e;const o=Ux(),i=[o.row];let a="";const{onClick:l,pages:s}=r;let u;if(s){const e=s.filter(e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight)[0];if(e){const n=e.qArea;t>=n.qTop&&t<n.qTop+n.qHeight&&([u]=e.qMatrix[t-n.qTop])}}let c=!1,d=!1;u&&(a=u.qText,c="L"===u.qState||"XL"===u.qState,d="S"===u.qState||"XS"===u.qState,"S"===u.qState||"L"===u.qState?i.push(o.S):"A"===u.qState?i.push(o.A):"X"!==u.qState&&"XS"!==u.qState&&"XL"!==u.qState||i.push(o.X));const p=u&&u.qHighlightRanges&&u.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[],f=p.reduce((e,t,n)=>{t.qCharPos>0&&0===n&&e.push([a.slice(0,t.qCharPos)]);const r=p[n-1];return r&&e.push([a.slice(r.qCharPos+r.qCharPos+1,t.qCharPos)]),e.push([a.slice(t.qCharPos,t.qCharPos+t.qCharCount),o.highlighted]),n===p.length-1&&t.qCharPos+t.qCharCount<a.length&&e.push([a.slice(t.qCharPos+t.qCharCount)]),e},[]);return tt.createElement(Ab,{container:!0,spacing:0,className:i.join(" ").trim(),style:n,onClick:l,role:"row",tabIndex:0,"data-n":u&&u.qElemNumber},tt.createElement(Ab,{item:!0,style:{minWidth:0,flexGrow:1},className:o.cell,title:"".concat(a)},0===p.length?tt.createElement(Yy,{component:"span",noWrap:!0,color:"inherit"},"".concat(a)):f.map((e,t)=>{let[n,r]=e;return tt.createElement(Yy,{component:"span",key:t,className:r,noWrap:!0},n)})),tt.createElement(Ab,{item:!0,className:o.icon},c&&tt.createElement(wx,{size:"small"}),d&&tt.createElement(Bx,{size:"small"})))}const Wx=cm(e=>({column:{flexWrap:"nowrap",borderRight:"1px solid ".concat(e.palette.divider),"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(e.palette.custom.focusOutline),outline:"none"}},cell:{padding:"8px","& span":{whiteSpace:"nowrap",fontSize:"12px",lineHeight:"16px"},overflow:"hidden",textOverflow:"ellipsis"},icon:{padding:e.spacing(1)},S:{background:e.palette.selected.main,color:e.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px rgba(0, 0, 0, 0.3)",outline:"none"}},A:{background:e.palette.selected.alternative,color:e.palette.selected.alternativeContrastText},X:{background:e.palette.selected.excluded,color:e.palette.selected.excludedContrastText},highlighted:{backgroundColor:"#FFC72A"}}));function Vx(e){let{index:t,style:n,data:r}=e;const o=Wx(),i=[o.column];let a="";const{onClick:l,pages:s}=r;let u;if(s){const e=s.filter(e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight)[0];if(e){const n=e.qArea;t>=n.qTop&&t<n.qTop+n.qHeight&&([u]=e.qMatrix[t-n.qTop])}}let c=!1,d=!1;u&&(a=u.qText,c="L"===u.qState||"XL"===u.qState,d="S"===u.qState||"XS"===u.qState,"S"===u.qState||"L"===u.qState?i.push(o.S):"A"===u.qState?i.push(o.A):"X"!==u.qState&&"XS"!==u.qState&&"XL"!==u.qState||i.push(o.X));const p=u&&u.qHighlightRanges&&u.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[],f=p.reduce((e,t,n)=>{t.qCharPos>0&&0===n&&e.push([a.slice(0,t.qCharPos)]);const r=p[n-1];return r&&e.push([a.slice(r.qCharPos+r.qCharPos+1,t.qCharPos)]),e.push([a.slice(t.qCharPos,t.qCharPos+t.qCharCount),o.highlighted]),n===p.length-1&&t.qCharPos+t.qCharCount<a.length&&e.push([a.slice(t.qCharPos+t.qCharCount)]),e},[]);return tt.createElement(Ab,{container:!0,spacing:0,className:i.join(" ").trim(),style:n,onClick:l,alignItems:"center",role:"row",tabIndex:0,"data-n":u&&u.qElemNumber},tt.createElement(Ab,{item:!0,style:{minWidth:0,flexGrow:1},className:o.cell,title:"".concat(a)},0===p.length?tt.createElement(Yy,{component:"span",noWrap:!0,color:"inherit"},"".concat(a)):f.map((e,t)=>{let[n,r]=e;return tt.createElement(Yy,{component:"span",key:t,className:r,noWrap:!0},n)})),tt.createElement(Ab,{item:!0,className:o.icon},c&&tt.createElement(wx,{size:"small"}),d&&tt.createElement(Bx,{size:"small"})))}function $x(e){let{model:t,selections:n,direction:r,height:o,width:i,listLayout:a="vertical"}=e;const[l]=Tv(t),[s,u]=ye.exports.useState(null),c=ye.exports.useRef(null),d=ye.exports.useRef({queue:[],validPages:!1}),p=ye.exports.useRef({pages:[]}),f=ye.exports.useCallback(e=>{if(l&&l.qListObject.qDimensionInfo.qLocked)return;const t=+e.currentTarget.getAttribute("data-n");Number.isNaN(t)||n.select({method:"selectListObjectValues",params:["/qListObjectDef",[t],!l.qListObject.qDimensionInfo.qIsOneAndOnlyOne]})},[t,l&&!!l.qListObject.qDimensionInfo.qLocked,l&&!!l.qListObject.qDimensionInfo.qIsOneAndOnlyOne]),h=ye.exports.useCallback(e=>{if(!s||!d.current.validPages)return!1;d.current.checkIdx=e;const t=s.filter(t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight)[0];return t&&t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight},[l,s]),m=ye.exports.useCallback((e,n)=>{d.current.queue.push({start:e,stop:n});const r=!!c.current&&c.current._listRef.state.isScrolling;return d.current.queue.length>10&&d.current.queue.shift(),clearTimeout(d.current.timeout),new Promise(e=>{d.current.timeout=setTimeout(()=>{const n=d.current.queue.slice(-2).sort((e,t)=>e.start-t.start);t.getListObjectData("/qListObjectDef",n.map(e=>({qTop:e.start,qHeight:e.stop-e.start+1,qLeft:0,qWidth:1}))).then(t=>{d.current.validPages=!0,p.current.pages=t,u(t),e()})},r?500:0)})},[l]);if(ye.exports.useEffect(()=>{if(d.current.queue=[],d.current.validPages=!1,c.current){if(c.current.resetloadMoreItemsCache(!0),l&&l.qSelectionInfo.qInSelections)return;c.current._listRef.scrollToItem(0)}},[l]),!l)return null;const g="horizontal"!==a,v=l.qListObject.qSize.qcy,y=g?33:200,b=o||8*y;return tt.createElement(jx,{isItemLoaded:h,itemCount:v,loadMoreItems:m,threshold:0,minimumBatchSize:100,ref:c},e=>{let{onItemsRendered:t,ref:n}=e;return d.current.listRef=n,tt.createElement(Mx,{direction:r,useIsScrolling:!0,style:{},height:b,width:i,itemCount:v,layout:a,itemData:{onClick:f,pages:s},itemSize:y,onItemsRendered:t,ref:n},g?Hx:Vx)})}const Kx=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),Gx=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Zx=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Xx=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var Qx=e=>{let{layout:t,model:n,translator:r}=e;return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:Kx,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0),action:()=>{n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:Zx,enabled:()=>["qOption"].some(e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0),action:()=>{n.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:Gx,enabled:()=>["qAlternative"].some(e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0),action:()=>{n.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:Xx,enabled:()=>["qAlternative","qExcluded"].some(e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0),action:()=>{n.selectListObjectExcluded("/qListObjectDef")}}]};const Jx=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function Yx(e){const t=Zh(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}const eE="njs-cell-action",tE=tt.forwardRef((e,t)=>{let{item:n,addAnchor:r=!1}=e;const o=Zh(),{hidden:i,disabled:a,style:l,hasSvgIconShape:s}=Yx(n);if(i)return null;const u=n.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&n.keyboardAction():null;return tt.createElement($y,{ref:r?null:t,title:n.label,onClick:n.action,onKeyDown:u,disabled:a,style:l,className:eE},s&&xx(n.getSvgIconShape()),r&&tt.createElement("div",{ref:t,style:{bottom:-o.spacing(.5),right:0,position:"absolute",width:"100%",height:0}}))}),nE=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]}),rE=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var oE=e=>xx(rE(e));const iE=Jg(e=>({icon:{color:e.palette.text.primary}})),aE=e=>{let{item:t,onActionClick:n=(()=>{})}=e;const{hidden:r,disabled:o,hasSvgIconShape:i}=Yx(t),{icon:a}=iE();return r?null:tt.createElement(fx,{title:t.label,onClick:()=>{t.action(),n()},disabled:o},i&&tt.createElement(Yb,{className:a},xx(t.getSvgIconShape())),tt.createElement(Yy,{noWrap:!0},t.label))},lE=tt.forwardRef((e,t)=>{let{actions:r=[],show:i=!0,alignTo:a,popoverProps:l={},popoverPaperStyle:s={},onCloseOrActionClick:u=(()=>{})}=e;return r.length>0&&tt.createElement(ix,o({},l,{onClose:u,ref:t,open:i,anchorEl:a.current,getContentAnchorEl:null,container:a.current,disablePortal:!0,hideBackdrop:!0,style:{pointerEvents:"none"},transitionDuration:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:n({pointerEvents:"auto",maxWidth:"250px"},s)}}),tt.createElement(dx,null,r.map((e,t)=>tt.createElement(aE,{key:t,item:e,onActionClick:u}))))}),sE="njs-action-toolbar-popover",uE=Jg(e=>({itemSpacing:{padding:e.spacing(0,.5)},firstItemSpacing:{padding:e.spacing(0,.5,0,0)},lastItemSpacing:{padding:e.spacing(0,0,0,.5)}})),cE=tt.forwardRef((e,t)=>{let{actions:n=[],first:r=!1,last:o=!1,addAnchor:i=!1}=e;const{itemSpacing:a,firstItemSpacing:l,lastItemSpacing:s}=uE();return n.length>0?tt.createElement(Ab,{item:!0,container:!0,spacing:0,wrap:"nowrap"},n.map((e,u)=>{let c=[];const d=r&&0===u,p=o&&n.length-1===u;return d&&!p&&(c=[l]),p&&!d&&(c=[...c,s]),d||p||0!==c.length||(c=[a]),tt.createElement(Ab,{item:!0,key:e.key,className:c.join(" ").trim()},tt.createElement(tE,{key:e.key,item:e,ref:0===u?t:null,addAnchor:i}))})):null}),dE={pointerEvents:"none"},pE={vertical:"top",horizontal:"right"},fE={vertical:"bottom",horizontal:"right"},hE=e=>{let{show:t=!0,actions:n=[],maxItems:r=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:i={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:a={show:!1,anchorEl:null},focusHandler:l=null,actionsRefMock:s=null}=e;const u=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=ye.exports.useContext(hv);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:rE},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:e=>{o(e),r(),t.cancel()},getSvgIconShape:nE},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:e=>{o(e),n(),t.confirm()},getSvgIconShape:Fx}]}(o),{itemSpacing:c}=uE(),{translator:d,keyboardNavigation:p}=ye.exports.useContext(hv),[f,h]=ye.exports.useState(!1),[m,g]=ye.exports.useState(i.enabled),[v,y]=ye.exports.useState(i.actions),[b,x]=ye.exports.useState(i.alignTo),E=ye.exports.useRef(),w=ye.exports.useRef(),C=Zh(),S=ye.exports.useMemo(()=>({margin:C.spacing(.5,0)})),k=e=>{const t=w.current||s;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};ye.exports.useEffect(()=>()=>h(!1),[a.show]),ye.exports.useEffect(()=>{g(i.enabled)},[i.enabled]),ye.exports.useEffect(()=>{if(!l)return;l.on("focus_toolbar_first",()=>{const e=k(!1);e&&e.focus()}),l.on("focus_toolbar_last",()=>{const e=k(!0);e&&e.focus()})},[]);const L=ye.exports.useMemo(()=>n.filter(e=>!e.hidden),[n]);if(!o.show&&0===L.length)return null;const R={key:"more",label:d.get("Menu.More"),getSvgIconShape:Jx,hidden:!1,enabled:()=>m,action:()=>h(!f)};if(L.length>r){const e=L.splice(-(L.length-r)-1);g(!0),y([...e,...i.actions]),x(E)}const O=p&&l&&l.refocusContent?e=>{if("Tab"!==e.key)return;(e.shiftKey&&k(!1)===e.target||!e.shiftKey&&k(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),l.refocusContent())}:null,_=L.length>0,I=v.length>0,P=_&&o.show||I&&o.show,T=tt.createElement(Ab,{ref:w,onKeyDown:O,container:!0,spacing:0,wrap:"nowrap"},_&&tt.createElement(cE,{actions:L,first:!0,last:!I&&!o.show}),I&&tt.createElement(cE,{ref:E,actions:[R],first:!_,last:!o.show,addAnchor:!0}),P&&tt.createElement(Ab,{item:!0,className:c,style:S},tt.createElement(Sb,{orientation:"vertical"})),o.show&&tt.createElement(cE,{actions:u,first:!_&&!I,last:!0}),f&&tt.createElement(lE,{show:f,actions:v,alignTo:b,popoverProps:i.popoverProps,popoverPaperStyle:i.popoverPaperStyle,onCloseOrActionClick:()=>{h(!1)}}));return a.show?tt.createElement(ix,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:a.show,anchorEl:a.anchorEl,anchorOrigin:pE,transformOrigin:fE,hideBackdrop:!0,style:dE,PaperProps:{className:sE,style:{pointerEvents:"auto",padding:C.spacing(1,1)}}},T):t&&T};var mE=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M15.7873809,13.80959 C16.1870614,14.209868 15.9872212,15.1104934 15.4876205,15.5107714 C15.08794,15.9110493 14.1886588,16.2112578 13.7889782,15.8109798 L11.0911347,13.1091035 L10.9912145,12.5086866 L10.2917736,11.8082001 C9.19265216,12.5086866 7.89369045,13.0090341 6.49480859,13.0090341 C2.89768383,13.0090341 0,10.1070188 0,6.50451703 C0,2.90201529 2.89768383,0 6.49480859,0 C10.0919334,0 12.9896172,2.90201529 12.9896172,6.50451703 C12.9896172,7.90548992 12.4900165,9.20639333 11.7905756,10.3071577 L12.4900165,11.0076442 L13.0895373,11.1077137 L15.7873809,13.80959 Z M11.2909749,6.50451703 C11.2909749,5.20361362 10.7913743,4.00277971 9.89209309,3.00208478 C8.9928119,2.10145935 7.79377031,1.60111188 6.49480859,1.60111188 C5.19584688,1.60111188 3.99680529,2.10145935 2.99760397,3.00208478 C2.09832278,4.00277971 1.59872212,5.20361362 1.59872212,6.50451703 C1.59872212,7.80542043 2.09832278,9.00625434 2.99760397,9.90687978 C3.89688516,10.8075052 5.09592674,11.3078527 6.49480859,11.3078527 C7.79377031,11.4079222 8.9928119,10.9075747 9.89209309,9.90687978 C10.7913743,9.00625434 11.2909749,7.80542043 11.2909749,6.50451703 Z"}}]}))(e));const gE=cm(e=>({root:{"& fieldset":{borderRadius:0,borderColor:"".concat(e.palette.divider," transparent")}}})),vE="/qListObjectDef";function yE(e){let{model:t,autoFocus:n=!0}=e;const{translator:r}=ye.exports.useContext(hv),[o,i]=ye.exports.useState(""),a=gE();return tt.createElement(vx,{startAdornment:tt.createElement(Vb,{position:"start"},tt.createElement(mE,null)),className:[a.root].join(" "),autoFocus:n,margin:"dense",fullWidth:!0,placeholder:r.get("Listbox.Search"),value:o,onChange:e=>{i(e.target.value),t.searchListObjectFor(vE,e.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":t.acceptListObjectSearch(vE,!0),i("");break;case"Escape":t.abortListObjectSearch(vE)}}})}function bE(e){return Object.keys(f.prototype).forEach(t=>{e[t]=f.prototype[t]}),f.init(e),e}function xE(e,t){const[n]=$v(e),[r]=Tv(t),o=t?t.id:null,[i]=Fv(),[a]=Uv(),l=i.get(e.id);let s=a.get(o);return ye.exports.useEffect(()=>{n&&t&&!s&&(s=function(e){let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!1;const l={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(i=!0,this.emit("activated"),r.begin(o,e,!0))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo&&t.qListObject.qDimensionInfo.qLocked),isActive:()=>i,isModal:()=>n.isModal(o),goModal:e=>r.begin(o,e,!1),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return bE(l),l}({appSelections:n,appModal:l,model:t}),a.set(o,s),a.dispatch(!0))},[n,t]),ye.exports.useEffect(()=>{s&&s.setLayout(r)},[s,r]),[s]}function EE(e){let{alignTo:t,show:n,close:r,app:o,fieldName:i,stateName:a="$"}=e;const l=n&&Boolean(t.current),s=Zh(),[u]=qv({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:a,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:[i]}}},o,i,a),c=ye.exports.useCallback(()=>{u.lock("/qListObjectDef")},[u]),d=ye.exports.useCallback(()=>{u.unlock("/qListObjectDef")},[u]),{translator:p}=ye.exports.useContext(hv),f=ye.exports.useRef(),[h]=xE(o,u),[m]=Tv(u);if(ye.exports.useEffect(()=>{h&&l&&(h.isModal(u)||h.goModal("/qListObjectDef"))},[h,l]),!u||!m||!p)return null;const g=!0===m.qListObject.qDimensionInfo.qLocked,v=(e,t)=>{const n="escapeKeyDown"!==t;h.noModal(n),r()},y=Qx({layout:m,model:u,translator:p}),b=m.qListObject.qDimensionInfo.qStateCounts,x=b.qSelected+b.qSelectedExcluded+b.qLocked+b.qLockedExcluded>0;return tt.createElement(ix,{open:l,onClose:v,anchorEl:t.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px"}}},tt.createElement(Ab,{container:!0,direction:"column",spacing:0},tt.createElement(Ab,{item:!0,container:!0,style:{padding:s.spacing(1)}},tt.createElement(Ab,{item:!0},g?tt.createElement($y,{onClick:d,disabled:!g},tt.createElement(wx,null)):tt.createElement($y,{onClick:c,disabled:!x},tt.createElement(Cx,null))),tt.createElement(Ab,{item:!0,xs:!0}),tt.createElement(Ab,{item:!0},tt.createElement(hE,{more:{enabled:!g,actions:y,alignTo:f,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:h,onConfirm:v,onCancel:()=>v(0,"escapeKeyDown")}}))),tt.createElement(Ab,{item:!0,xs:!0},tt.createElement("div",{ref:f}),tt.createElement(yE,{model:u}),tt.createElement($x,{model:u,selections:h,direction:"ltr"}))))}const wE=cm(e=>({item:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover}}}));function CE(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const{translator:l}=ye.exports.useContext(hv),s=i||ye.exports.useRef(),u=Zh(),[c,d]=ye.exports.useState(!1),p=wE(),f=e=>{e.currentTarget.contains(e.target)&&d(!c)},h=()=>{d(!1),a()},m=t.selections[r];void 0===m.qTotal&&(m.qTotal=0);const g=m.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},v=(g.qSelected+g.qLocked)/m.qTotal,y=g.qAlternative/m.qTotal,b=(g.qExcluded+g.qLockedExcluded+g.qSelectedExcluded)/m.qTotal,x=g.qSelected+g.qSelectedExcluded+g.qLocked+g.qLockedExcluded,E=0===x&&0===m.qTotal;let w="";m.qTotal===x&&m.qTotal>1?w=l.get("CurrentSelections.All"):x>1&&m.qTotal?w=l.get("CurrentSelections.Of",[x,m.qTotal]):m.qSelectedFieldSelectionInfo&&(w=m.qSelectedFieldSelectionInfo.map(e=>e.qName).join(", ")),"$"!==t.states[r]&&(w="".concat(t.states[r],": ").concat(w));const C=[{color:u.palette.selected.main,ratio:v},{color:u.palette.selected.alternative,ratio:y},{color:u.palette.selected.excluded,ratio:b}];C.forEach((e,t)=>{e.offset=t?C[t-1].offset+C[t-1].ratio:0});let S=null,k=null,L=null,R=null;return i||(S=tt.createElement(Ab,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:m.qLocked?"0.3":""}},tt.createElement(Yy,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},m.qField),tt.createElement(Yy,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},w)),k=m.qLocked?tt.createElement(Ab,{item:!0},tt.createElement($y,null,tt.createElement(wx,null))):tt.createElement(Ab,{item:!0},tt.createElement($y,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(m.qField,t.states[r])}},tt.createElement(Ex,null))),L=tt.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===E&&C.map(e=>tt.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}}))),R=tt.createElement(Ab,{container:!0,spacing:0,ref:s,className:p.item,onClick:!1===o&&f||null},S,k,L,c&&tt.createElement(EE,{alignTo:s,show:c,close:h,app:n.model,fieldName:m.qField,stateName:t.states[r]}))),i?tt.createElement(EE,{alignTo:s,show:!0,close:h,app:n.model,fieldName:m.qField,stateName:t.states[r]}):R}var SE=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const kE=cm(e=>({item:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},badge:{padding:e.spacing(0,1)}}));function LE(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const i=kE(),[a,l]=ye.exports.useState(!!r),[s,u]=ye.exports.useState(-1),[c,d]=ye.exports.useState(r?r.current:null),p=r||ye.exports.useRef(),{translator:f}=ye.exports.useContext(hv),h=f.get("Selection.ClearAllStates"),m=()=>{u(-1),o()};let g=null;r||(g=tt.createElement(tt.Fragment,null,tt.createElement(Ab,{item:!0,xs:!0,zeroMinWidth:!0},tt.createElement(Gy,{className:i.badge,color:"secondary",badgeContent:t.states.length},tt.createElement(Yy,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),tt.createElement(Ab,{item:!0},tt.createElement("div",{style:{width:"12px"}})),tt.createElement(Ab,{item:!0},tt.createElement($y,null,tt.createElement(SE,null)))));const v=tt.createElement(Gb,{dense:!0},tt.createElement(Qb,{title:h,onClick:()=>{t.states.forEach(e=>n.clearField(t.name,e))}},tt.createElement(tb,{variant:"contained",fullWidth:!0},h)),t.states.map((e,r)=>tt.createElement(Qb,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),l(!1),u(t)})(e,r)},tt.createElement(Xy,{border:1,width:"100%",borderRadius:"borderRadius",borderColor:"divider"},tt.createElement(CE,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0}))))),y=tt.createElement(ix,{open:a,onClose:()=>{l(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},v),b=r?y:tt.createElement(Ab,{container:!0,spacing:0,className:i.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),p.current=e.currentTarget,l(!a))}},g,a&&y,s>-1&&tt.createElement(EE,{alignTo:p,show:s>-1,close:m,app:n.model,fieldName:t.selections[s].qField,stateName:t.states[s]}));return r&&s>-1?tt.createElement(EE,{alignTo:p,show:s>-1,close:m,app:n.model,fieldName:t.selections[s].qField,stateName:t.states[s]}):b}const RE=cm(e=>({item:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},badge:{padding:e.spacing(0,1)}}));function OE(e){let{items:t=[],api:n}=e;const r=RE(),o=Zh(),[i,a]=ye.exports.useState(!1),[l,s]=ye.exports.useState(-1),[u,c]=ye.exports.useState(null),d=ye.exports.useRef(),p=()=>{s(-1)};let f=null;return l>-1&&(f=t[l].states.length>1?tt.createElement(LE,{field:t[l],api:n,moreAlignTo:d,onClose:p}):tt.createElement(CE,{field:t[l],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:p})),tt.createElement(Ab,{container:!0,spacing:0,className:r.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,a(!i))}},tt.createElement(Ab,{item:!0},tt.createElement(Xy,{borderRadius:o.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:o.palette.selected.main,color:o.palette.selected.mainContrastText}},tt.createElement(Yy,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),tt.createElement(Ab,{item:!0},tt.createElement($y,null,tt.createElement(SE,null))),i&&tt.createElement(ix,{open:i,onClose:()=>{a(!1)},anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},tt.createElement(Gb,{dense:!0},t.map((e,t)=>tt.createElement(Qb,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),s(t)})(e,t)},tt.createElement(Xy,{border:1,width:"100%",borderRadius:"borderRadius",borderColor:"divider"},e.states.length>1?tt.createElement(LE,{field:e,api:n}):tt.createElement(CE,{field:e,api:n})))))),f)}function _E(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";e.qSelections.forEach(e=>{const r=e.qField,o=t[r]=t[r]||{name:r,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))})}function IE(e){let{api:t,app:n}=e;const r=Zh(),[o]=Dv(n),[i]=Tv(o),[a,l]=ye.exports.useState({items:[],more:[]}),[s]=Wv(),[u,c]=yx(),[d,p]=ye.exports.useState(0);return ye.exports.useEffect(()=>{if(!c)return;const{width:e}=c,t=Math.floor(e)-72,n=Math.floor(t/120);p(n)},[c]),ye.exports.useEffect(()=>{if(!(n&&o&&i&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&_E(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach(e=>_E(e.qSelectionObject,t,e.stateName)),Object.keys(t).map(e=>t[e])}(i);l(t=>{const r=e;if((()=>{const e=s.get(n.id);return e&&"njsListbox"===e.genericType})()&&r.length+1===t.items.length){const e=t.items.filter(e=>!1===r.some(t=>e.name===t.name))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}})},[n,o,i,t.isInModal(),d]),tt.createElement(Ab,{ref:u,container:!0,spacing:0,wrap:"nowrap",style:{height:"100%"}},a.items.map(e=>tt.createElement(Ab,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?tt.createElement(LE,{field:e,api:t}):tt.createElement(CE,{field:e,api:t}))),a.more.length>0&&tt.createElement(Ab,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},tt.createElement(OE,{items:a.more,api:t})))}var PE=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var TE=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));function NE(e){let{api:t,app:n}=e;const{translator:r}=ye.exports.useContext(hv),[o]=Av(n);return tt.createElement(Ab,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},tt.createElement(Ab,{item:!0},tt.createElement($y,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back()},tt.createElement(PE,null))),tt.createElement(Ab,{item:!0},tt.createElement($y,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward()},tt.createElement(TE,null))),tt.createElement(Ab,{item:!0},tt.createElement($y,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear()},tt.createElement(oE,null))))}const qE=e=>{let{app:t}=e;const n=Zh(),[r]=$v(t);return r?tt.createElement(Ab,{container:!0,spacing:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},tt.createElement(Ab,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},tt.createElement(NE,{api:r,app:t})),tt.createElement(Ab,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},tt.createElement(IE,{api:r,app:t}))):null};function ME(e){let{element:t,app:n}=e;return ud.createPortal(tt.createElement(qE,{app:n}),t)}var DE=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},AE=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),zE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jE=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},FE=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},BE=void 0;BE="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var UE=null,HE=null,WE=BE.clearTimeout,VE=BE.setTimeout,$E=BE.cancelAnimationFrame||BE.mozCancelAnimationFrame||BE.webkitCancelAnimationFrame,KE=BE.requestAnimationFrame||BE.mozRequestAnimationFrame||BE.webkitRequestAnimationFrame;function GE(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,l=void 0,s="undefined"!=typeof document&&document.attachEvent;if(!s){a=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&UE(this.__resizeRAF__),this.__resizeRAF__=HE((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var u=!1,c="";r="animationstart";var d="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(u=!0),!1===u)for(var h=0;h<d.length;h++)if(void 0!==f.style[d[h]+"AnimationName"]){c="-"+d[h].toLowerCase()+"-",r=p[h],u=!0;break}t="@"+c+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=c+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,u){if(s)i.attachEvent("onresize",u);else{if(!i.__resizeTriggers__){var c=i.ownerDocument,d=BE.getComputedStyle(i);d&&"static"===d.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(c),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=c.createElement("div")).className="resize-triggers";var p=c.createElement("div");p.className="expand-trigger",p.appendChild(c.createElement("div"));var f=c.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(p),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",l,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==$E||null==KE?(UE=WE,HE=function(e){return VE(e,20)}):(UE=function(e){var t=FE(e,2),n=t[0],r=t[1];$E(n),WE(r)},HE=function(e){var t=KE((function(){WE(n),e()})),n=VE((function(){$E(t),e()}),20);return[t,n]});var ZE=function(e){function t(){var e,n,r;DE(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=jE(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var i=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,l=window.getComputedStyle(r._parentNode)||{},s=parseInt(l.paddingLeft,10)||0,u=parseInt(l.paddingRight,10)||0,c=parseInt(l.paddingTop,10)||0,d=parseInt(l.paddingBottom,10)||0,p=i-c-d,f=a-s-u;(!t&&r.state.height!==p||!n&&r.state.width!==f)&&(r.setState({height:i-c-d,width:a-s-u}),o({height:i,width:a}))}},r._setRef=function(e){r._autoSizer=e},jE(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),AE(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=GE(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,i=e.style,a=this.state,l=a.height,s=a.width,u={overflow:"visible"},c={},d=!1;return r||(0===l&&(d=!0),u.height=0,c.height=l),o||(0===s&&(d=!0),u.width=0,c.width=s),ye.exports.createElement("div",{className:n,ref:this._setRef,style:zE({},u,i)},!d&&t(c))}}]),t}(ye.exports.PureComponent);function XE(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:i}=e;return ud.createPortal(tt.createElement(QE,{app:t,fieldIdentifier:n,stateName:r,options:i}),o)}function QE(e){let{app:t,fieldIdentifier:r,stateName:o="$",options:i={}}=e;const{title:a,direction:l,listLayout:s,search:u=!0,properties:c={}}=i,d=n({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:o,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},title:a},c);let p;r.qLibraryId?(d.qListObjectDef.qLibraryId=r.qLibraryId,p=r.qLibraryId):(d.qListObjectDef.qDef.qFieldDefs=[r],p=r);const f=Zh(),[h]=qv(d,t,p,o),m=ye.exports.useCallback(()=>{h.lock("/qListObjectDef")},[h]),g=ye.exports.useCallback(()=>{h.unlock("/qListObjectDef")},[h]),{translator:v}=ye.exports.useContext(hv),y=ye.exports.useRef(),[b]=xE(t,h),[x]=Tv(h),[E,w]=ye.exports.useState(!1);if(ye.exports.useEffect(()=>{b&&(b.isModal(h)||(b.on("deactivated",()=>{w(!1)}),b.on("activated",()=>{w(!0)})))},[b]),ye.exports.useEffect(()=>{b&&w(b.isActive())},[b]),!h||!x||!v)return null;const C=!0===x.qListObject.qDimensionInfo.qLocked,S=Qx({layout:x,model:h,translator:v}),k=x.qListObject.qDimensionInfo.qStateCounts,L=k.qSelected+k.qSelectedExcluded+k.qLocked+k.qLockedExcluded>0,R=49+(u?40:0)+49;return tt.createElement(Ab,{container:!0,direction:"column",spacing:0,style:{height:"100%",minHeight:"".concat(R,"px")}},tt.createElement(Ab,{item:!0,container:!0,style:{padding:f.spacing(1),borderBottom:"1px solid ".concat(f.palette.divider)}},tt.createElement(Ab,{item:!0},C?tt.createElement($y,{onClick:g,disabled:!C},tt.createElement(wx,null)):tt.createElement($y,{onClick:m,disabled:!L},tt.createElement(Cx,null))),tt.createElement(Ab,{item:!0},tt.createElement(Yy,{variant:"h6",noWrap:!0},x.title||x.qListObject.qDimensionInfo.qFallbackTitle)),tt.createElement(Ab,{item:!0,xs:!0}),tt.createElement(Ab,{item:!0},tt.createElement(hE,{more:{enabled:!C,actions:S,alignTo:y,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:E,api:b,onConfirm:()=>{},onCancel:()=>{}}}))),u?tt.createElement(Ab,{item:!0},tt.createElement(yE,{model:h,autoFocus:!1})):"",tt.createElement(Ab,{item:!0,xs:!0},tt.createElement("div",{ref:y}),tt.createElement(ZE,null,e=>{let{height:t,width:n}=e;return tt.createElement($x,{model:h,selections:b,direction:l,listLayout:s,height:t,width:n})})))}ZE.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const JE=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function YE(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function ew(){return JE.map(YE).join("")}function tw(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function nw(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function rw(e){let{sn:t,properties:r,fields:o}=e;if(!o.length)return;const i=t.qae.data.targets[0];if(!i)return;const{propertyPath:a}=i,l=a.split("/");let s=r;for(let e=0;e<l.length;e++){const t=l[e];s=t?s[t]:s}const u=function(e){let{dc:t,def:r,properties:o}=e;t.qDimensions=t.qDimensions||[],t.qMeasures=t.qMeasures||[],t.qInterColumnSortOrder=t.qInterColumnSortOrder||[],t.qInitialDataFetch=t.qInitialDataFetch||[],t.qColumnOrder=t.qColumnOrder||[],t.qExpansionState=t.qExpansionState||[];const i=o,a={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const o="string"==typeof e?(e=>({qDef:{qFieldDefs:[e]}}))(e):n(n({},e),{},{qDef:e.qDef||{}});o.qDef.cId=o.qDef.cId||ew(),o.qDef.qSortCriterias=o.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],o.qOtherTotalSpec=o.qOtherTotalSpec||{},o.qAttributeExpressions=o.qAttributeExpressions||[],o.qAttributeDimensions=o.qAttributeDimensions||[],t.qDimensions.length<a.maxDimensions()?(t.qDimensions.push(o),tw(t.qInterColumnSortOrder,t.qDimensions.length-1),r.dimensions.added(o,i)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qDimensions.push(o))},removeDimension(e){const n=t.qDimensions.splice(e,1)[0];nw(t.qInterColumnSortOrder,e),r.dimensions.removed(n,i,e)},addMeasure(e){const o="string"==typeof e?(e=>({qDef:{qDef:e}}))(e):n(n({},e),{},{qDef:e.qDef||{}});o.qDef.cId=o.qDef.cId||ew(),o.qSortBy=o.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},o.qAttributeDimensions=o.qAttributeDimensions||[],o.qAttributeExpressions=o.qAttributeExpressions||[],t.qMeasures.length<a.maxMeasures()?(t.qMeasures.push(o),tw(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),r.measures.added(o,i)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qMeasures.push(o))},removeMeasure(e){const n=t.qMeasures.splice(e,1)[0];nw(t.qInterColumnSortOrder,t.qDimensions.length+e),r.measures.removed(n,i,e)},maxDimensions:()=>r.dimensions.max(t.qMeasures.length),maxMeasures:()=>r.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<a.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<a.maxMeasures()};return a}({dc:s,def:i,properties:r});o.forEach(e=>{"measure"===function(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}(e)?u.addMeasure(e):u.addDimension(e)})}var ow=(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},iw=(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]},aw=e=>0===Object.keys(e).length&&e.constructor===Object;var lw={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let 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}};const sw=2**53-1;function uw(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function cw(e,t){const n=w(!0,{},t,e);return ow(n,"qOtherTotalSpec.qOtherCounted")||iw(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),ow(n,"qOtherTotalSpec.qOtherLimit")||iw(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function dw(e,t){return w(!0,{},t,e)}function pw(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var fw={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach(t=>{e.qLayoutExclude.changed[t].to===ow(e,t)&&iw(e,t,e.qLayoutExclude.changed[t].from)})},isMasterItemProperty:uw,importCommonProperties:function(e,t,n){const r="masterobject"===ow(t,"properties.qInfo.qType")?"masterobject":ow(n,"qInfo.qType");iw(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:cw,createDefaultMeasure:dw,resolveValue:pw,getHypercubePath:function(e){const t=ow(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension: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}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(lw.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,lw.indexRemoved(n.qInterColumnSortOrder,i))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?iw(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||uw(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),o=w(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},i=n.measures||{max:0},a=pw(i.max,r.dimensions.length,sw),l=pw(i.min,r.dimensions.length,0);return{maxDimensions:pw(o.max,a,sw),minDimensions:pw(o.min,l,0),maxMeasures:a,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i}=e;const 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},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i,newHyperCubeDef:a}=e;const l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:i}=e;const a=t.data[0];let l;if(n>0)for(l=0;l<a.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(cw(a.dimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(cw(a.dimensions[l],i));else if(a.dimensions.length)for(l=0;l<a.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(cw(a.dimensions[l],i));if(a.excludedDimensions.length)for(l=0;l<a.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(cw(a.excludedDimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(cw(a.excludedDimensions[l],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let l;if(n>0)for(l=0;l<a.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(dw(a.measures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(dw(a.measures[l],i));else if(a.measures.length)for(l=0;l<a.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(dw(a.measures[l],i));if(a.excludedMeasures.length)for(l=0;l<a.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(dw(a.excludedMeasures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(dw(a.excludedMeasures[l],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=ow(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach(r=>{e.qDimensions.push(r),n.dimensions.added(r,t)})}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=ow(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach(r=>{e.qMeasures.push(r),n.measures.added(r,t)})}}};var hw={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,i=ow(o,n||""),a=i.qHyperCubeDef,l=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),l.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();lw.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete a.qLayoutExclude,Object.keys(o).forEach(e=>{r.properties[e]=o[e]}),n&&(r.properties.qHyperCubeDef=i.qHyperCubeDef,delete i.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach(e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])}),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(fw.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!aw(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},l=fw.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),s=ow(n,i||"").qHyperCubeDef,u=ow(l,i||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:p,minMeasures:f}=fw.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=fw.getDefaultDimension(),defaultMeasure:m=fw.getDefaultMeasure()}=o;return u.qDimensions.length=0,u.qMeasures.length=0,fw.shouldInitLayoutExclude({exportFormat:t,maxDimensions:c,minDimensions:d,maxMeasures:p,minMeasures:f})&&fw.initLayoutExclude({exportFormat:t,maxDimensions:c,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:u}),fw.addDefaultDimensions({exportFormat:t,maxDimensions:c,minDimensions:d,newHyperCubeDef:u,defaultDimension:h}),fw.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:u,defaultMeasure:m}),fw.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:u}),fw.copyPropertyIfExist("qMaxStackedCells",s,u),fw.copyPropertyIfExist("qNoOfLeftDims",s,u),fw.copyPropertyOrSetDefault("qInitialDataFetch",s,u,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),fw.copyPropertyOrSetDefault("qMode",s,u,"S"),fw.copyPropertyOrSetDefault("qReductionMode",s,u,"N"),fw.copyPropertyOrSetDefault("qSortbyYValue",s,u),fw.copyPropertyOrSetDefault("qIndentMode",s,u),fw.copyPropertyOrSetDefault("qShowTotalsAbove",s,u),fw.importCommonProperties(l,t,n),fw.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),fw.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),a.qProperty=l,a}(e)};const mw=e=>ow(e,"data.targets.0.propertyPath"),gw=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return hw.exportProperties})(mw(e))},vw=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return hw.importProperties})(mw(e))},yw=async e=>{let{halo:t,model:r,cellRef:o,newType:i}=e;const a=await r.getFullPropertyTree(),l=o.current.getQae(),s=gw(l),u=(await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:i})).qae;return vw(u)({exportFormat:s({propertyTree:a,hypercubePath:fw.getHypercubePath(l)}),initialProperties:n({qInfo:{qType:i},visualization:i},ow(u,"properties.initial",{})),dataDefinition:ow(u,"data.targets.0.",{}),hypercubePath:fw.getHypercubePath(u)})},bw={hypercube:hw};var xw=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));const Ew=e=>{let{d:t}=e;const n=Zh();let r="inherit",o=n.palette.success.main;t.missing?o=n.palette.warning.main:t.error&&(r="error",o=n.palette.error.main);const i={color:o},a=tt.createElement(Yy,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},tt.createElement(Hb,null,t.missing||t.error?tt.createElement(xw,{style:i}):tt.createElement(Bx,{style:i})));return tt.createElement(Ab,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},tt.createElement(Ab,{item:!0},a),tt.createElement(Ab,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},tt.createElement(Yy,{noWrap:!0,component:"p"},tt.createElement(Yy,{component:"span",variant:"subtitle2",color:r},t.description),tt.createElement(Yy,{component:"span"}," "),tt.createElement(Yy,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))},ww=e=>{let{data:t}=e;const n=Zh();return tt.createElement(Ab,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map((e,t)=>{const r=e.descriptions.map((e,t)=>tt.createElement(Ew,{d:e,key:t}));return r.length>0&&tt.createElement(Ab,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},tt.createElement(Yy,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)}))};function Cw(e){let{title:t="Error",message:n="",data:r=[]}=e;return tt.createElement(Ab,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},tt.createElement(Ab,{item:!0},tt.createElement(xw,{style:{fontSize:"38px"}})),tt.createElement(Ab,{item:!0},tt.createElement(Yy,{variant:"h6",align:"center","data-tid":"error-title"},t)),tt.createElement(Ab,{item:!0},tt.createElement(Yy,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),tt.createElement(ww,{data:r}))}const Sw=["size"],kw=cm(e=>({root:{position:"relative",display:"inline-block"},front:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},back:{color:e.palette.divider}})),Lw={small:16,medium:32,large:64,xlarge:128};function Rw(e){let{size:t="medium"}=e,n=i(e,Sw);const r=kw(),a=Lw[t];return tt.createElement("div",{className:r.root},tt.createElement(lb,o({variant:"determinate",value:100,className:r.back,size:a,thickness:3},n)),tt.createElement(lb,o({variant:"indeterminate",disableShrink:!0,className:r.front,size:a,thickness:3},n)))}const Ow=["cancel","translator"],_w=["retry","translator"],Iw=Jg(()=>({stripes:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})),Pw=e=>{let{cancel:t,translator:n}=e,r=i(e,Ow);return tt.createElement(tt.Fragment,null,tt.createElement(Ab,{container:!0,item:!0,direction:"column",alignItems:"center",spacing:2},tt.createElement(Ab,{item:!0},tt.createElement(Rw,null)),tt.createElement(Ab,{item:!0},tt.createElement(Yy,{variant:"h6",align:"center"},n.get("Object.Update.Active")))),tt.createElement(Ab,o({item:!0},r),tt.createElement(tb,{variant:"contained",onClick:t},n.get("Cancel"))))},Tw=e=>{let{retry:t,translator:n}=e,r=i(e,_w);return tt.createElement(tt.Fragment,null,tt.createElement(Ab,{item:!0},tt.createElement(xw,{style:{fontSize:"38px"}})),tt.createElement(Ab,{item:!0},tt.createElement(Yy,{variant:"h6",align:"center"},n.get("Object.Update.Cancelled"))),tt.createElement(Ab,{item:!0},tt.createElement(tb,o({variant:"contained",onClick:t},r),n.get("Retry"))))};function Nw(e){let{canCancel:t,canRetry:n,api:r}=e;const{stripes:o,cancel:i,retry:a}=Iw(),{translator:l}=ye.exports.useContext(hv);return tt.createElement(Ab,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:o,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},spacing:2},t&&tt.createElement(Pw,{cancel:r.cancel,translator:l,className:i}),n&&tt.createElement(Tw,{retry:r.retry,translator:l,className:a}))}function qw(){return tt.createElement(Ab,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},spacing:2},tt.createElement(Rw,{size:"large"}))}const Mw="njs-cell-title",Dw="njs-cell-sub-title",Aw=Jg(e=>({containerStyle:{flexGrow:0},containerTitleStyle:{paddingBottom:e.spacing(1)}})),zw=e=>{let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:i}=e;const a=t.showTitles&&!!t.title,l=t.showTitles&&!!t.subtitle,s=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,c]=ye.exports.useState([]),{containerStyle:d,containerTitleStyle:p}=Aw(),[f,h]=yx(),[m,g]=ye.exports.useState(!1);ye.exports.useEffect(()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions(e=>{c([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])})},[n]),ye.exports.useEffect(()=>{if(!h)return;const{width:e}=h;g(e<221)},[h]);const v=a||l,y=[d,...v?[p]:[]],b=(o||s)&&(m||!v),x=v&&!b&&!m,E=tt.createElement(hE,{show:x,selections:{show:s,api:n.component.selections,onKeyDeactivate:i.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:i});return tt.createElement(Ab,{ref:f,item:!0,container:!0,wrap:"nowrap",className:y.join(" ")},tt.createElement(Ab,{item:!0,zeroMinWidth:!0,xs:!0},tt.createElement(Ab,{container:!0,wrap:"nowrap",direction:"column"},a&&tt.createElement(Yy,{variant:"h6",noWrap:!0,className:Mw},t.title),l&&tt.createElement(Yy,{variant:"body2",noWrap:!0,className:Dw},t.subtitle))),tt.createElement(Ab,{item:!0},E))},jw="njs-cell-footer",Fw=Jg(e=>({itemStyle:{minWidth:0,paddingTop:e.spacing(1)}})),Bw=e=>{let{layout:t}=e;const{itemStyle:n}=Fw();return t&&t.showTitles&&t.footnote?tt.createElement(Ab,{container:!0},tt.createElement(Ab,{item:!0,className:n},tt.createElement(Yy,{noWrap:!0,variant:"body2",className:jw},t.footnote))):null};class Uw{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout(()=>{this.doNext()},10)}async doNext(){const e=this.next;this.next=null,e?(await e(),this.scheduleNext()):this.stop()}schedule(e){this.next=e,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}const Hw="njs-viz",Ww=e=>{let{sn:t,snOptions:r,snPlugins:o,layout:i,appLayout:a,halo:l}=e;const{component:s}=t,{theme:u,language:c,constraints:d,keyboardNavigation:p}=ye.exports.useContext(hv),[f]=ye.exports.useState(()=>new Uw),[h,m]=ye.exports.useState(!1),[g,v]=ye.exports.useState(0),[y,b,x]=yx(),[E,w]=ye.exports.useState(null),C=ye.exports.useCallback(e=>{e&&w(e)},[]);return ye.exports.useEffect(()=>{if(E)return s.created({options:r}),s.mounted(E),m(!0),()=>{f.stop(),s.willUnmount()}},[E,s]),ye.exports.useEffect(()=>{h&&E&&b&&(!s.isHooked&&i&&i.qSelectionInfo&&i.qSelectionInfo.qInSelections||f.schedule(()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),l.app&&l.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:i,options:r,plugins:o,embed:l.public.nebbie,context:n({constraints:d,theme:l.public.theme,appLayout:a,keyboardNavigation:p},s.isHooked?{}:{logicalSize:t.logicalSize({layout:i}),localeInfo:(a||{}).qLocaleInfo,permissions:e})})).then(e=>{!1!==e&&(0===g&&"function"==typeof r.onInitialRender&&r.onInitialRender.call(null),v(g+1))})}))},[b,r,o,E,x,i,a,u,c,d,h,p]),tt.createElement("div",{ref:y,"data-render-count":g,style:{position:"relative",height:"100%"},className:Hw},tt.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))},Vw="njs-cell",$w=(e,t)=>{switch(t.type){case"LOADING":return n(n({},e),{},{loading:!0});case"LOADED":return n(n({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return n(n({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return n(n({},e),{},{longRunningQuery:!0});case"ERROR":return n(n({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}},Kw=e=>{let{delay:t=750}=e;const[n,r]=ye.exports.useState(!1);return ye.exports.useEffect(()=>{const e=setTimeout(()=>r(!0),t);return()=>clearTimeout(e)},[]),n?tt.createElement(qw,null):null},Gw=e=>!e.qError||7005===e.qError.qErrorCode,Zw=(e,t,n,r,o)=>[...Array(e).keys()].map(e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,l=i&&!a&&t[e].qError,s=a&&t[e].qCalcCondMsg,u="".concat(l?r:a?s||o:i&&t[e].qFallbackTitle||""),c=n(e);return{description:c?"".concat(c).concat(u.length?":":""):null,label:u,missing:t&&!i&&!l&&e>=t.length||a,error:l}}),Xw=e=>e&&(Array.isArray(e)?e:[e])||[],Qw=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:Zw(o,Xw(a.qDimensionInfo),e=>r.dimensions.description(n,e),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Zw(i,Xw(a.qMeasureInfo),e=>r.measures.description(n,e),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Jw=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:l,hasLayoutErrors:s,layoutErrors:u}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,l=!1;const s=[];for(let u=0;u<t.length;++u){const c=t[u],d=c.dimensions.min(),p=c.measures.min(),f=c.resolveLayout(n),h=Xw(f.qDimensionInfo).filter(Gw),m=Xw(f.qMeasureInfo).filter(Gw);if(o+=d,i+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){a=!0,l=7005===f.qError.qErrorCode;const t=l&&f.qCalcCondMsg?f.qCalcCondMsg:l?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");s.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:s}})(e,o,t),c=[],d=[];let p=null;for(let n=0;n<o.length;++n){const a=o[n];if(!s&&i){const n=p||await r.getProperties();p=n;const o=Qw(e,t,n,a);c.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=c.filter(e=>!(e.missing||e.error)).length,h=e.get("Visualization.Incomplete.Dimensions",[f,a]),m=d.filter(e=>!(e.missing||e.error)).length,g=e.get("Visualization.Incomplete.Measures",[m,l]),v=[{title:h,descriptions:[...c]},{title:g,descriptions:[...d]}],y=s?u:v;return[s||i,{title:s?u[0].title:e.get("Visualization.Incomplete"),data:y}]},Yw=ye.exports.forwardRef((e,t)=>{let{halo:r,model:o,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s,currentId:u}=e;const{app:c,types:d}=r,{nebbie:p}=r.public,{translator:f,language:h,keyboardNavigation:m}=ye.exports.useContext(hv),g=Zh(),[v,y,b]=yx(),[x,E]=ye.exports.useReducer($w,{loading:!1,loaded:!1,longRunningQuery:!1,error:(w=l)?{title:w.message}:null,sn:null,visualization:null});var w;const[C,{validating:S,canCancel:k,canRetry:L},R]=Tv(o),[O]=Nv(c),[_,I,P]=yx(),[T,N]=ye.exports.useState(i),[q,M]=ye.exports.useState(a),[D]=xE(c,o),[A,z]=ye.exports.useState(!1),j=ye.exports.useRef({enter:null,leave:null}),F=ye.exports.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});ye.exports.useEffect(()=>{bE(F.current)},[]),F.current.blurCallback=e=>{r.root.toggleFocusOfCells(),e&&P&&P.focus()},F.current.refocusContent=()=>{x.sn.component&&"function"==typeof x.sn.component.focus&&x.sn.component.focus()};ye.exports.useEffect(()=>{if(l||!O||!C)return;if(x.visualization===C.visualization&&x.sn)return void(async e=>{const[t,n]=await Jw(f,C,e.generator.qae.data,o);E(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:x.sn,layout:C,model:o})})(x.sn);const e=d.getSupportedVersion(C.visualization,C.version);if(e)return(async(e,t)=>{E({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:l,nebbie:s,focusHandler:u}=e;try{return(await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o})).create({model:i,app:a,selections:l,nebbie:s,focusHandler:u})}catch(e){t({type:"ERROR",error:{title:e.message}})}})({dispatch:E,types:d,visualization:e,version:t,model:o,app:c,selections:D,nebbie:p,focusHandler:F.current});n&&(E({type:"LOADED",sn:n,visualization:e}),s())})(C.visualization,e),()=>{};E({type:"ERROR",error:{title:"Could not find a version of '".concat(C.visualization,"' that supports current object version. Did you forget to register ").concat(C.visualization,"?")}})},[d,x.sn,o,C,O,h]),ye.exports.useEffect(()=>{if(!S)return;const e=setTimeout(()=>E({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(e)},[S]),ye.exports.useImperativeHandle(t,()=>({getQae:()=>x.sn.generator.qae,toggleFocus(e){"function"==typeof x.sn.component.focus&&(e?x.sn.component.focus():x.sn.component.blur())},setSnOptions:N,setSnPlugins:M,async takeSnapshot(){const{width:e,height:t}=y;let n=JSON.parse(JSON.stringify(C));return"function"==typeof x.sn.component.setSnapshotData&&(n=await x.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:f.language(),theme:g.name,appLayout:O,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof r.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return r.config.snapshot.capture(e)}}),[x.sn,I,y,C,g.name,O]);let B=null;return x.loading&&!x.longRunningQuery?B=tt.createElement(Kw,null):x.error?B=tt.createElement(Cw,x.error):x.loaded&&(B=tt.createElement(Ww,{key:C.visualization,sn:x.sn,halo:r,snOptions:T,snPlugins:q,layout:C,appLayout:O})),tt.createElement(Ay,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},elevation:0,square:!0,className:Vw,ref:v,onMouseEnter:()=>{j.current.leave&&clearTimeout(j.current.leave),j.enter||(j.current.enter=setTimeout(()=>{z(!0),j.current.enter=null},250))},onMouseLeave:()=>{j.current.enter&&clearTimeout(j.current.enter),j.current.leave||(j.current.leave=setTimeout(()=>{z(!1),j.current.leave=null},750))}},tt.createElement(Ab,{container:!0,direction:"column",spacing:0,style:n({position:"relative",width:"100%",height:"100%",padding:g.spacing(1)},x.longRunningQuery?{opacity:"0.3"}:{})},b&&C&&x.sn&&tt.createElement(zw,{layout:C,sn:x.sn,anchorEl:b,hovering:A,focusHandler:F.current}," "),tt.createElement(Ab,{tabIndex:m?0:-1,onKeyDown:m?e=>{["Enter"," ","Spacebar"].includes(e.key)&&r.root.toggleFocusOfCells(u)}:null,item:!0,xs:!0,style:{height:"100%"},ref:_},B),tt.createElement(Bw,{layout:C})),x.longRunningQuery&&tt.createElement(Nw,{canCancel:k,canRetry:L,api:R}))});function eC(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,initialError:l}=e;const{root:s}=t,u=tt.createRef(),c=ew(),d=ud.createPortal(tt.createElement(Yw,{ref:u,halo:t,model:r,currentId:c,initialSnOptions:o,initialSnPlugins:i,initialError:l,onMount:a}),n,r.id),p=()=>{s.remove(d),r.removeListener("closed",p)};return r.on("closed",p),s.add(d),s.addCell(c,u),[p,u]}function tC(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function nC(e,t){return tC(e)&&tC(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function rC(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach(o=>{const i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?nC(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...rC("".concat(e).concat(o,"/"),t[o],n[o]))}),r}function oC(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach(e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error('Invalid plugin format: The plugin "'.concat(e.info.name,'" has no "fn" function'))})}const iC=()=>{};function aC(){let{model:e,halo:t,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=iC,a=null,l=null,s=null;const u=new Promise(e=>{s=e});let c={},d=[];const p=async e=>{l?(async()=>{await u,a.current.setSnOptions(n(n({},c),e))})():c=n(n({},c),e)},f=async e=>{oC(e),l?(async()=>{await u,a.current.setSnPlugins(e)})():d=e},h={id:e.id,async destroy(){await o(),i(),i=iC},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await yw({halo:t,model:e,cellRef:a,newType:n});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},__DO_NOT_USE__:{mount(n){if(l)throw new Error("Already mounted");return l=n,[i,a]=eC({halo:t,element:n,model:e,initialSnOptions:c,initialSnPlugins:d,initialError:r,onMount:s}),u},async applyProperties(t){const n=rC("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){p(e)},plugins(e){f(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot()}};return h}async function lC(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const i=aC({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&i.__DO_NOT_USE__.options(t.options),t.plugins&&i.__DO_NOT_USE__.plugins(t.plugins),t.element&&await i.__DO_NOT_USE__.mount(t.element),i}async function sC(e,t){let n,{type:r,version:o,fields:i,properties:a,options:l,plugins:s,element:u}=e,c={};try{const e=t.types.get({name:r,version:o});c=await e.initialProperties(a);const n=await e.supernova();i&&rw({sn:n,properties:c,fields:i}),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},c)}catch(e){n=e,c={qInfo:{qType:r},visualization:r}}const d=await t.app.createSessionObject(c);_v.set(d.id,d);const p=(e=>{const t=Rv({type:"SET",value:e});return()=>{t(),_v.clear(e.id)}})(d);return lC(d,{options:l,plugins:s,element:u},t,n,async()=>{await t.app.destroySessionObject(d.id),p()})}async function uC(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let l=Cv.get(a);l||(l=t.app.getObject(n),Cv.set(a,l));const s=await l;return _v.set(a,s),lC(s,{options:r,plugins:o,element:i},t)}function cC(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const dC=w.bind(null,!0),pC={},{isArray:fC}=Array;function hC(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function mC(e){return void 0===e}function gC(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function vC(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=mC(e[r||t])?i:e[t],e=e[r||t]}),e}function yC(e,t){let n=!0;if(hC(e)&&hC(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(r=>{yC(e[r],t[r])||(n=!1)}),n);if(fC(e)&&fC(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!yC(e[n],t[n]))return!1;return!0}return e===t}pC.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach(o=>{const i=function(e){return e?dC({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);yC(i,a)||gC(t,o)||(mC(a)?r.push({op:"add",path:l,value:i}):hC(i)&&hC(a)?r=r.concat(pC.generate(a,i,l)):fC(i)&&fC(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&mC(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(yC(t,o))return r;if(!mC(t[0])&&mC(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(pC.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(i)}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))}),Object.keys(e).forEach(o=>{mC(t[o])&&!gC(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})}),r},pC.apply=function(e,t){t.forEach(t=>{let n=vC(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(fC(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(fC(o)&&fC(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(hC(o)&&hC(t.value))a=o,Object.keys(a).forEach(e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!gC(a,e)&&delete a[e]}),dC(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=vC(e,t.from);fC(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(fC(n)?n.splice(+r,1):delete n[r]);var a})},pC.clone=function(e){return dC({},e)},pC.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},pC.updateObject=function(e,t){Object.keys(e).length?pC.apply(e,pC.generate(e,t)):dC(e,t)};const bC=e=>t=>{const r=(o=n(n({},t),{},{action(){"function"==typeof t.action&&t.action.call(r,e),r.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(r,e),active:"function"==typeof t.active?function(){return t.active.call(r,e)}:void 0}),Object.keys(f.prototype).forEach(e=>{o[e]=f.prototype[e]}),f.init(o),o);var o;return r};let xC,EC;function wC(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function CC(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function SC(e){LC(e.__hooks.list,!0),e.__hooks.obsolete=!0,e.__hooks.list.length=0,e.__hooks.pendingEffects.length=0,e.__hooks.pendingLayoutEffects.length=0,e.__hooks.actions=null,e.__hooks.imperativeHandle=null,e.__hooks.resizer=null,e.__hooks.accessibility=null,e.__actionsDispatch=null,clearTimeout(e.__hooks.micro),cancelAnimationFrame(e.__hooks.macro)}async function kC(e){if(e.__hooks.obsolete)return Promise.resolve();EC=-1,xC=e,xC.__hooks.initiated&&xC.__hooks.list.length;try{xC.fn.call(null)}catch(e){console.error(e)}xC.__hooks.initiated=!0;const t=xC.__hooks;return _C(xC),EC=void 0,xC=void 0,t.chain.promise||(t.chain.promise=new Promise(e=>{t.chain.resolve=e})),function(e){LC(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame(()=>{!function(e){LC(e.pendingEffects),e.macro=null,function(e){if(e.pendingPromises.length||e.micro||e.macro)return;e.chain.promise=null,e.chain.resolve(!e.waitForData)}(e)}(e)})}(t),t.chain.promise}function LC(e,t){try{e.forEach(e=>{"function"==typeof e.teardown&&e.teardown(),t||(e.teardown=e.value[0]())})}catch(e){console.error(e)}e.length=0}function RC(e,t){try{return Promise.all(e.__hooks.snaps.map(e=>Promise.resolve(e.fn(t)))).then(e=>e[e.length-1])}catch(e){console.error(e)}return Promise.resolve()}function OC(e){return e.__hooks.imperativeHandle}function _C(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function IC(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,_C(e))}function PC(e){if(void 0===xC)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=xC.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function TC(e){PC(++EC);return xC.context[e]}function NC(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function qC(e){return{__hooked:!0,fn:e,initiate:CC,run:kC,teardown:SC,runSnaps:RC,focus:FC,blur:BC,observeActions:IC,getImperativeHandle:OC,updateRectOnNextRun:NC}}function MC(e){const t=PC(++EC);if(!t.value){t.component=xC;const n=e=>{if(t.component.__hooks.obsolete)return;const n="function"==typeof e?e(t.value[0]):e;var r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout(()=>{r.__hooks.micro=null,kC(r)},0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function DC(e,t){const n=PC(++EC);wC(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===xC.__hooks.pendingEffects.indexOf(n)&&xC.__hooks.pendingEffects.push(n))}function AC(e,t){const n=PC(++EC);wC(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],xC.__hooks.pendingLayoutEffects.push(n))}function zC(e,t){const n=PC(++EC);return wC(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function jC(){return TC("element")}function FC(e){const t=e.__hooks.accessibility;t.active||(t.active=!0,t&&t.setter&&t.setter({active:!0,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}function BC(e){const t=e.__hooks.accessibility;t&&t.active&&(t.active=!1,t&&t.setter&&t.setter({active:!1,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}const UC={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},HC=Object.keys(UC);function WC(e,t){const r=n({},UC);var o;o=r,Object.keys(f.prototype).forEach(e=>{o[e]=f.prototype[e]}),f.init(o);const i={emit(){r.emit(...arguments)}};Object.keys(e.component||{}).forEach(t=>{-1!==HC.indexOf(t)?r[t]=e.component[t].bind(i):i[t]=e.component[t]});const a=function(e){let{sn:t,component:n}=e;const r={},o=[],i=bC(n);return((t.definition.selectionToolbar||{}).items||[]).forEach(e=>{const t=i(e);r[e.key]=t,o.push(t)}),(t.definition.actions||[]).forEach(e=>{const t=i(e);r[e.key]=t}),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:i}),l=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(i,{model:t.model,app:t.app,global:l,selections:t.selections,actions:a.actions}),Object.assign(r,{actions:a.actions,model:t.model,app:t.app,selections:t.selections}),[r,a]}function VC(e,t,r){"function"==typeof e.component&&(e.component=qC(e.component));const[o,i]=e.component&&e.component.__hooked?function(e,t,r){const o=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let i=!1;const a={},l=["appLayout","constraints"],s={};t.model&&t.model.session||(s.select=!0);const u={context:{model:t.model,app:t.app,global:o,selections:t.selections,nebbie:t.nebbie,element:void 0,deviceType:r.deviceType,theme:void 0,translator:r.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(u,{explicitResize:!!t.explicitResize})},render(t){let r=!i||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(r=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,r=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let n=!1;Object.keys(t.options).forEach(r=>{e[r]=t.options[r],this.context.options[r]!==t.options[r]&&(n=!0)}),n&&(this.context.options=e,r=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach((t,n)=>{this.context.plugins[n]!==t&&(e=!0)}),e&&(this.context.plugins=[...t.plugins],r=!0)}l.forEach(e=>{const o=t.context;if(o&&Object.prototype.hasOwnProperty.call(o,e)){let t=JSON.stringify(o[e]);"constraints"===e&&(t=JSON.stringify(n(n({},o[e]),s))),t!==a[e]&&(r=!0,a[e]=t,this.context[e]=JSON.parse(t))}})}else r=!0;return this.context.theme&&this.context.theme.name()!==a.themeName&&(r=!0,a.themeName=this.context.theme.name()),this.context.translator.language()!==a.language&&(r=!0,a.language=u.context.translator.language()),r?(i=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return l.forEach(e=>{a[e]=JSON.stringify(u.context[e])}),a.themeName=u.context.theme?u.context.theme.name():void 0,a.language=u.context.translator?u.context.translator.language():void 0,Object.assign(u,{selections:t.selections}),[u,null]}(e,t,r):WC(e,t),a=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.qae.properties.onChange.call({model:t.model},...r),t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then(o=>{const i=pC.clone(o),a=n.map(e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath}));pC.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const l=pC.generate(i,o).map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}));return t.model.__snInterceptor.applyPatches.call(this,l,r)})},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},a.push(t.model.__snInterceptor.teardown)),{generator:e,component:o,selectionToolbar:{items:i?i.selectionToolbarItems:[]},destroy(){a.forEach(e=>e())},logicalSize:e.definition.logicalSize||(()=>!1)}}const $C=()=>{};function KC(e,t){return void 0===e?()=>t:()=>e}function GC(e){const t=e||{};return{min:"function"==typeof t.min?t.min:KC(t.min,0),max:"function"==typeof t.max?t.max:KC(t.max,1e3),added:t.added||t.add||$C,description:t.description||$C,moved:t.moved||t.move||$C,removed:t.removed||t.remove||$C,replaced:t.replaced||t.replace||$C,isDefined:()=>!!e}}function ZC(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef or /qListObjectDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>((e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o})(e,n,{}),dimensions:GC(e.dimensions),measures:GC(e.measures)}}function XC(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);const r={properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(ZC)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function QC(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:XC(n.qae),component:n.component||{},create:e=>VC(r,e,t),definition:{}};return Object.keys(n).forEach(e=>{r[e]||(r.definition[e]=n[e])}),r}var JC={exports:{}};!function(e,t){var n;t=e.exports=d,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],i=t.src=[],a=t.tokens={},l=0;function s(e){a[e]=l++}s("NUMERICIDENTIFIER"),i[a.NUMERICIDENTIFIER]="0|[1-9]\\d*",s("NUMERICIDENTIFIERLOOSE"),i[a.NUMERICIDENTIFIERLOOSE]="[0-9]+",s("NONNUMERICIDENTIFIER"),i[a.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",s("MAINVERSION"),i[a.MAINVERSION]="("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")",s("MAINVERSIONLOOSE"),i[a.MAINVERSIONLOOSE]="("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")",s("PRERELEASEIDENTIFIER"),i[a.PRERELEASEIDENTIFIER]="(?:"+i[a.NUMERICIDENTIFIER]+"|"+i[a.NONNUMERICIDENTIFIER]+")",s("PRERELEASEIDENTIFIERLOOSE"),i[a.PRERELEASEIDENTIFIERLOOSE]="(?:"+i[a.NUMERICIDENTIFIERLOOSE]+"|"+i[a.NONNUMERICIDENTIFIER]+")",s("PRERELEASE"),i[a.PRERELEASE]="(?:-("+i[a.PRERELEASEIDENTIFIER]+"(?:\\."+i[a.PRERELEASEIDENTIFIER]+")*))",s("PRERELEASELOOSE"),i[a.PRERELEASELOOSE]="(?:-?("+i[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+i[a.PRERELEASEIDENTIFIERLOOSE]+")*))",s("BUILDIDENTIFIER"),i[a.BUILDIDENTIFIER]="[0-9A-Za-z-]+",s("BUILD"),i[a.BUILD]="(?:\\+("+i[a.BUILDIDENTIFIER]+"(?:\\."+i[a.BUILDIDENTIFIER]+")*))",s("FULL"),s("FULLPLAIN"),i[a.FULLPLAIN]="v?"+i[a.MAINVERSION]+i[a.PRERELEASE]+"?"+i[a.BUILD]+"?",i[a.FULL]="^"+i[a.FULLPLAIN]+"$",s("LOOSEPLAIN"),i[a.LOOSEPLAIN]="[v=\\s]*"+i[a.MAINVERSIONLOOSE]+i[a.PRERELEASELOOSE]+"?"+i[a.BUILD]+"?",s("LOOSE"),i[a.LOOSE]="^"+i[a.LOOSEPLAIN]+"$",s("GTLT"),i[a.GTLT]="((?:<|>)?=?)",s("XRANGEIDENTIFIERLOOSE"),i[a.XRANGEIDENTIFIERLOOSE]=i[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",s("XRANGEIDENTIFIER"),i[a.XRANGEIDENTIFIER]=i[a.NUMERICIDENTIFIER]+"|x|X|\\*",s("XRANGEPLAIN"),i[a.XRANGEPLAIN]="[v=\\s]*("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:"+i[a.PRERELEASE]+")?"+i[a.BUILD]+"?)?)?",s("XRANGEPLAINLOOSE"),i[a.XRANGEPLAINLOOSE]="[v=\\s]*("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:"+i[a.PRERELEASELOOSE]+")?"+i[a.BUILD]+"?)?)?",s("XRANGE"),i[a.XRANGE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAIN]+"$",s("XRANGELOOSE"),i[a.XRANGELOOSE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAINLOOSE]+"$",s("COERCE"),i[a.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",s("COERCERTL"),o[a.COERCERTL]=new RegExp(i[a.COERCE],"g"),s("LONETILDE"),i[a.LONETILDE]="(?:~>?)",s("TILDETRIM"),i[a.TILDETRIM]="(\\s*)"+i[a.LONETILDE]+"\\s+",o[a.TILDETRIM]=new RegExp(i[a.TILDETRIM],"g");s("TILDE"),i[a.TILDE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAIN]+"$",s("TILDELOOSE"),i[a.TILDELOOSE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAINLOOSE]+"$",s("LONECARET"),i[a.LONECARET]="(?:\\^)",s("CARETTRIM"),i[a.CARETTRIM]="(\\s*)"+i[a.LONECARET]+"\\s+",o[a.CARETTRIM]=new RegExp(i[a.CARETTRIM],"g");s("CARET"),i[a.CARET]="^"+i[a.LONECARET]+i[a.XRANGEPLAIN]+"$",s("CARETLOOSE"),i[a.CARETLOOSE]="^"+i[a.LONECARET]+i[a.XRANGEPLAINLOOSE]+"$",s("COMPARATORLOOSE"),i[a.COMPARATORLOOSE]="^"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+")$|^$",s("COMPARATOR"),i[a.COMPARATOR]="^"+i[a.GTLT]+"\\s*("+i[a.FULLPLAIN]+")$|^$",s("COMPARATORTRIM"),i[a.COMPARATORTRIM]="(\\s*)"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+"|"+i[a.XRANGEPLAIN]+")",o[a.COMPARATORTRIM]=new RegExp(i[a.COMPARATORTRIM],"g");s("HYPHENRANGE"),i[a.HYPHENRANGE]="^\\s*("+i[a.XRANGEPLAIN]+")\\s+-\\s+("+i[a.XRANGEPLAIN]+")\\s*$",s("HYPHENRANGELOOSE"),i[a.HYPHENRANGELOOSE]="^\\s*("+i[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+i[a.XRANGEPLAINLOOSE]+")\\s*$",s("STAR"),i[a.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u<l;u++)n(u,i[u]),o[u]||(o[u]=new RegExp(i[u]));function c(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[a.LOOSE]:o[a.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=c,t.valid=function(e,t){var n=c(e,t);return n?n.version:null},t.clean=function(e,t){var n=c(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=d,d.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},d.prototype.toString=function(){return this.version},d.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof d||(e=new d(e,this.options)),this.compareMain(e)||this.comparePre(e)},d.prototype.compareMain=function(e){return e instanceof d||(e=new d(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},d.prototype.comparePre=function(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return f(r,o)}while(++t)},d.prototype.compareBuild=function(e){e instanceof d||(e=new d(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return f(r,o)}while(++t)},d.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(v(e,t))return null;var n=c(e),r=c(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function h(e,t,n){return new d(e,n).compare(new d(t,n))}function m(e,t,n){return h(e,t,n)>0}function g(e,t,n){return h(e,t,n)<0}function v(e,t,n){return 0===h(e,t,n)}function y(e,t,n){return 0!==h(e,t,n)}function b(e,t,n){return h(e,t,n)>=0}function x(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return v(e,n,r);case"!=":return y(e,n,r);case">":return m(e,n,r);case">=":return b(e,n,r);case"<":return g(e,n,r);case"<=":return x(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===C?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),o=new d(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=m,t.lt=g,t.eq=v,t.neq=y,t.gte=b,t.lte=x,t.cmp=E,t.Comparator=w;var C={};function S(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof S)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new S(e.raw,t);if(e instanceof w)return new S(e.value,t);if(!(this instanceof S))return new S(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function k(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function L(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,o,i,a,l,s,u,c,d,p){return((t=L(n)?"":L(r)?">="+n+".0.0":L(o)?">="+n+"."+r+".0":">="+t)+" "+(l=L(s)?"":L(u)?"<"+(+s+1)+".0.0":L(c)?"<"+s+"."+(+u+1)+".0":d?"<="+s+"."+u+"."+c+"-"+d:"<="+l)).trim()}function O(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==C&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function _(e,t,n){try{t=new S(t,n)}catch(e){return!1}return t.test(e)}function I(e,t,n,r){var o,i,a,l,s;switch(e=new d(e,r),t=new S(t,r),n){case">":o=m,i=x,a=g,l=">",s=">=";break;case"<":o=g,i=b,a=m,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_(e,t,r))return!1;for(var u=0;u<t.set.length;++u){var c=t.set[u],p=null,f=null;if(c.forEach((function(e){e.semver===C&&(e=new w(">=0.0.0")),p=p||e,f=f||e,o(e.semver,p.semver,r)?p=e:a(e.semver,f.semver,r)&&(f=e)})),p.operator===l||p.operator===s)return!1;if((!f.operator||f.operator===l)&&i(e,f.semver))return!1;if(f.operator===s&&a(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=C},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new S(e.value,t),_(this.value,n,t));if(""===e.operator)return""===e.value||(n=new S(this.value,t),_(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),l=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||l||s},t.Range=S,S.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},S.prototype.toString=function(){return this.range},S.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[a.HYPHENRANGELOOSE]:o[a.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(o[a.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,o[a.COMPARATORTRIM]),e=(e=(e=e.replace(o[a.TILDETRIM],"$1~")).replace(o[a.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],l=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[a.CARETLOOSE]:o[a.CARET];return e.replace(r,(function(t,r,o,i,a){var l;return n("caret",e,t,r,o,i,a),L(r)?l="":L(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":L(i)?l="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),l="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),l="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",l),l}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[a.TILDELOOSE]:o[a.TILDE];return e.replace(r,(function(t,r,o,i,a){var l;return n("tilde",e,t,r,o,i,a),L(r)?l="":L(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":L(i)?l=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),l=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):l=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",l),l}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[a.XRANGELOOSE]:o[a.XRANGE];return e.replace(r,(function(r,o,i,a,l,s){n("xRange",e,r,o,i,a,l,s);var u=L(i),c=u||L(a),d=c||L(l),p=d;return"="===o&&p&&(o=""),s=t.includePrerelease?"-0":"",u?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(c&&(a=0),l=0,">"===o?(o=">=",c?(i=+i+1,a=0,l=0):(a=+a+1,l=0)):"<="===o&&(o="<",c?i=+i+1:a=+a+1),r=o+i+"."+a+"."+l+s):c?r=">="+i+".0.0"+s+" <"+(+i+1)+".0.0"+s:d&&(r=">="+i+"."+a+".0"+s+" <"+i+"."+(+a+1)+".0"+s),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[a.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(l=l.filter((function(e){return!!e.match(i)}))),l=l.map((function(e){return new w(e,this.options)}),this)},S.prototype.intersects=function(e,t){if(!(e instanceof S))throw new TypeError("a Range is required");return this.set.some((function(n){return k(n,t)&&e.set.some((function(e){return k(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new S(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},S.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1},t.satisfies=_,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new S(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new S(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minVersion=function(e,t){e=new S(e,t);var n=new d("0.0.0");if(e.test(n))return n;if(n=new d("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new d(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new S(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return I(e,t,"<",n)},t.gtr=function(e,t,n){return I(e,t,">",n)},t.outside=I,t.prerelease=function(e,t){var n=c(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new S(e,n),t=new S(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),o[a.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);if(null===n)return null;return c(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(JC,JC.exports);const YC={};async function eS(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!YC[i]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const a=(r||o.load)({name:e,version:t}),l=Promise.resolve(a);YC[i]=l.then(e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e}).catch(e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))})}return YC[i]}function tS(e,t){const r={};let o=null;return{get:e=>r[e],register:(i,a)=>{if(r[i])throw new Error("Supernova '".concat(e,"@").concat(i,"' already registered."));r[i]=function(e,t){let r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=i,l={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||JC.exports.satisfies(e,a.deps.properties),supernova:()=>eS(l.name,l.version,t,i.load).then(e=>(r=r||QC(e,t.public.galaxy),o=JSON.stringify(r.qae.properties.initial),r)),initialProperties(e){return this.supernova().then(()=>n(n({qInfo:{qType:l.name},visualization:l.name,version:l.version,showTitles:!0},JSON.parse(o)),e))}};return l}({name:e,version:i},t,a),o=null},getMatchingVersionFromProperties:e=>{var t;o||(t=Object.keys(r),o=[...t.filter(e=>"undefined"===e),...t.filter(e=>"undefined"!==e).map(e=>e.split(".").map(e=>parseInt(e,10))).sort((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2]).map(e=>e.join("."))]);for(let t=o.length-1;t>=0;t--){if(r[o[t]].supportsPropertiesVersion(e))return o[t]}return null},versions:r}}function nS(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=tS(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>r[e]?r[e].getMatchingVersionFromProperties(t):null,get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map(e=>({name:e,versions:Object.keys(r[e].versions).map(e=>"undefined"===e?void 0:e)})),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(YC).forEach(t=>{t.split("__")[0]===e&&(YC[t]=void 0)})}(e)}}}const rS=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(n({},e),t)},oS=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e,...t].filter((e,t,n)=>n.indexOf(e)===t)},iS=(e,t)=>({context:rS(e.context,t.context),load:t.load||e.load,snapshot:n({},t.snapshot||e.snapshot),types:oS(e.types,t.types),themes:oS(e.themes,t.themes),flags:rS(e.flags,t.flags),anything:rS(e.anything,t.anything)});var aS=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=c(t.context.language);function o(e,i){if(i)return o.createConfiguration(i)(e);let a=n(n({},t.context),{},{translator:r.translator});const[l]=Zv({app:e,context:a}),s=ge({themes:t.themes,root:l}),u={galaxy:{translator:r.translator,flags:cC(t.flags),deviceType:ve(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:r.translator,nebbie:null},c={app:e,root:l,config:t,public:u,context:a,types:null},d=nS({halo:c});t.types.forEach(e=>d.register({name:e.name,version:e.version},{meta:e.meta,load:e.load}));let p=s.setTheme(t.context.theme),f=null,h=null;const m={render:async e=>(await p,e.id?uC(e,c):sC(e,c)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])}),t&&(a=n(n(n({},a),t),{},{translator:r.translator}),c.context=a,t.theme&&(p=s.setTheme(t.theme),await p),t.language&&c.public.translator.language(t.language),l.context(a))},selections:async()=>(f||(f={mount(t){h||(h=ME({element:t,app:e}),l.add(h))},unmount(){h&&(l.remove(h),h=null)}}),f),field:async t=>{const n="string"==typeof t?t:t.qLibraryId;if(!n)throw new Error("Field identifier must be provided");return{fieldName:n,mount(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r)throw new Error("Element for ".concat(n," not provided"));if(this._instance)throw new Error("Field ".concat(n," already mounted"));this._instance=XE({element:r,app:e,fieldIdentifier:t,options:o,stateName:o.stateName||"$"}),l.add(this._instance)},unmount(){this._instance&&(l.remove(this._instance),this._instance=null)}}},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d}};return c.public.nebbie=m,c.types=d,m}return o.createConfiguration=n=>e(iS(t,n)),o.config=t,o}({context:{theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1},load:()=>{},types:[],themes:[],anything:{},snapshot:{get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(e=>e.json())}});const lS={generator:QC,hook:qC,theme:he,locale:s};e.__DO_NOT_USE__=lS,e.conversion=bw,e.embed=aS,e.onTakeSnapshot=function(e){const t=PC(++EC);t.value||(t.value=1,xC.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=MC({action(){n._config.action.call(null)}});return n.component||(n.component=xC,xC.__hooks.actions.list.push(n)),zC(()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0},t),n.action},e.useApp=function(){const e=TC("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return TC("appLayout")},e.useConstraints=function(){return TC("constraints")},e.useDeviceType=function(){return TC("deviceType")},e.useEffect=DC,e.useElement=jC,e.useEmbed=function(){return TC("nebbie")},e.useGlobal=function(){const e=TC("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=PC(++EC);if(n.imperative||(n.imperative=!0),wC(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],xC.__hooks.imperativeHandle=r}},e.useKeyboard=function(){const e=TC("keyboardNavigation"),t=TC("focusHandler");if(!xC.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(BC(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(xC);xC.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),FC(this))}.bind(xC);xC.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(xC);xC.__hooks.accessibility.focusSelectionFunction=r}const n=xC.__hooks.accessibility.focusFunction,r=xC.__hooks.accessibility.exitFunction,o=xC.__hooks.accessibility.focusSelectionFunction,[i,a]=MC({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return xC.__hooks.accessibility.setter=a,xC.__hooks.accessibility.enabled=e,DC(()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o}),[e]),i},e.useLayout=function(){return TC("layout")},e.useMemo=zC,e.useModel=function(){const e=TC("model");return e&&e.session?e:void 0},e.useOptions=function(){return TC("options")},e.usePlugins=function(){return TC("plugins")},e.usePromise=function(e,t){const[n,r]=MC(()=>({resolved:void 0,rejected:void 0,state:"pending"})),o=PC(++EC);return o.component||(o.component=xC),AC(()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then(e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))}).catch(e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))}),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}},t),[n.resolved,n.rejected]},e.useRect=function(){const e=jC(),t=xC.__hooks.resizer,[n,r]=MC(()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}});return t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r),t.update&&t.resize&&(t.update=!1,t.resize()),AC(()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach(e=>e({left:n,top:r,width:o,height:i}))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}},[e]),n},e.useRenderState=function(){PC(++EC);const e=xC.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return TC("selections")},e.useStaleLayout=function(){const e=TC("layout"),[t]=MC({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=MC,e.useTheme=function(){return TC("theme")},e.useTranslator=function(){return TC("translator")},Object.defineProperty(e,"__esModule",{value:!0})}));
41
+ var pf="object"==typeof CSS&&null!=CSS&&"number"in CSS,ff=function(e){return new df(e)};ff();var hf=Date.now(),mf="fnValues"+hf,gf="fnStyle"+ ++hf,vf=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=sp(e,{},n);return r[gf]=t,r},onProcessStyle:function(e,t){if(mf in t||gf in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[mf]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[gf];i&&(o.style=i(e)||{});var a=o[mf];if(a)for(var l in a)o.prop(l,a[l](e),r)}}};function yf(){return(yf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var bf="@global",xf="@global ",Ef=function(){function e(e,t,n){for(var r in this.type="global",this.at=bf,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Wp(yf({},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.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),wf=function(){function e(e,t,n){this.type="global",this.at=bf,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(xf.length);this.rule=n.jss.createRule(r,t,yf({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Cf=/\s*,\s*/g;function Sf(e,t){for(var n=e.split(Cf),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function kf(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===bf)return new Ef(e,t,n);if("@"===e[0]&&e.substr(0,xf.length)===xf)return new wf(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!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,o=r?r[bf]:null;if(o){for(var i in o)t.addRule(i,o[i],yf({},n,{selector:Sf(i,e.selector)}));delete r[bf]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,bf.length)===bf){var i=Sf(o.substr(bf.length),e.selector);t.addRule(i,r[o],yf({},n,{selector:i})),delete r[o]}}(e,t))}}}function Lf(){return(Lf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Rf=/\s*,\s*/g,Of=/&/g,_f=/\$([\w-]+)/g;function If(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?(o=o).selector:r}}function t(e,t){for(var n=t.split(Rf),r=e.split(Rf),o="",i=0;i<n.length;i++)for(var a=n[i],l=0;l<r.length;l++){var s=r[l];o&&(o+=", "),o+=-1!==s.indexOf("&")?s.replace(Of,a):a+" "+s}return o}function n(e,t,n){if(n)return Lf({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Lf({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,l,s=o,u=s.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=n(s,u,a),d){var f=t(c,s.selector);l||(l=e(u,i)),f=f.replace(_f,l),u.addRule(f,r[c],Lf({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(s.key,r[c],{selector:s.selector});delete r[c]}}return r}}}var Pf=/[A-Z]/g,Tf=/^ms-/,Nf={};function qf(e){return"-"+e.toLowerCase()}function Mf(e){if(Nf.hasOwnProperty(e))return Nf[e];var t=e.replace(Pf,qf);return Nf[e]=Tf.test(t)?"-"+t:t}function Df(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Mf(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Df):t.fallbacks=Df(e.fallbacks)),t}var Af=pf&&CSS?CSS.px:"px",zf=pf&&CSS?CSS.ms:"ms",jf=pf&&CSS?CSS.percent:"%";function Ff(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var Bf=Ff({"animation-delay":zf,"animation-duration":zf,"background-position":Af,"background-position-x":Af,"background-position-y":Af,"background-size":Af,border:Af,"border-bottom":Af,"border-bottom-left-radius":Af,"border-bottom-right-radius":Af,"border-bottom-width":Af,"border-left":Af,"border-left-width":Af,"border-radius":Af,"border-right":Af,"border-right-width":Af,"border-top":Af,"border-top-left-radius":Af,"border-top-right-radius":Af,"border-top-width":Af,"border-width":Af,"border-block":Af,"border-block-end":Af,"border-block-end-width":Af,"border-block-start":Af,"border-block-start-width":Af,"border-block-width":Af,"border-inline":Af,"border-inline-end":Af,"border-inline-end-width":Af,"border-inline-start":Af,"border-inline-start-width":Af,"border-inline-width":Af,"border-start-start-radius":Af,"border-start-end-radius":Af,"border-end-start-radius":Af,"border-end-end-radius":Af,margin:Af,"margin-bottom":Af,"margin-left":Af,"margin-right":Af,"margin-top":Af,"margin-block":Af,"margin-block-end":Af,"margin-block-start":Af,"margin-inline":Af,"margin-inline-end":Af,"margin-inline-start":Af,padding:Af,"padding-bottom":Af,"padding-left":Af,"padding-right":Af,"padding-top":Af,"padding-block":Af,"padding-block-end":Af,"padding-block-start":Af,"padding-inline":Af,"padding-inline-end":Af,"padding-inline-start":Af,"mask-position-x":Af,"mask-position-y":Af,"mask-size":Af,height:Af,width:Af,"min-height":Af,"max-height":Af,"min-width":Af,"max-width":Af,bottom:Af,left:Af,top:Af,right:Af,inset:Af,"inset-block":Af,"inset-block-end":Af,"inset-block-start":Af,"inset-inline":Af,"inset-inline-end":Af,"inset-inline-start":Af,"box-shadow":Af,"text-shadow":Af,"column-gap":Af,"column-rule":Af,"column-rule-width":Af,"column-width":Af,"font-size":Af,"font-size-delta":Af,"letter-spacing":Af,"text-decoration-thickness":Af,"text-indent":Af,"text-stroke":Af,"text-stroke-width":Af,"word-spacing":Af,motion:Af,"motion-offset":Af,outline:Af,"outline-offset":Af,"outline-width":Af,perspective:Af,"perspective-origin-x":jf,"perspective-origin-y":jf,"transform-origin":jf,"transform-origin-x":jf,"transform-origin-y":jf,"transform-origin-z":jf,"transition-delay":zf,"transition-duration":zf,"vertical-align":Af,"flex-basis":Af,"shape-margin":Af,size:Af,gap:Af,grid:Af,"grid-gap":Af,"row-gap":Af,"grid-row-gap":Af,"grid-column-gap":Af,"grid-template-rows":Af,"grid-template-columns":Af,"grid-auto-rows":Af,"grid-auto-columns":Af,"box-shadow-x":Af,"box-shadow-y":Af,"box-shadow-blur":Af,"box-shadow-spread":Af,"font-line-height":Af,"text-shadow-x":Af,"text-shadow-y":Af,"text-shadow-blur":Af});function Uf(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Uf(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Uf(o,t[o],n);else for(var i in t)t[i]=Uf(e+"-"+i,t[i],n);else if("number"==typeof t&&!Number.isNaN(t)){var a=n[e]||Bf[e];return!a||0===t&&a===Af?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Hf(e){void 0===e&&(e={});var t=Ff(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Uf(r,e[r],t);return e},onChangeValue:function(e,n){return Uf(n,e,t)}}}function Wf(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 Vf(e){return function(e){if(Array.isArray(e))return Wf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Wf(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)?Wf(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.")}()}var $f="",Kf="",Gf="",Zf="",Xf=tp&&"ontouchstart"in document.documentElement;if(tp){var Qf={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Jf=document.createElement("p").style;for(var Yf in Qf)if(Yf+"Transform"in Jf){$f=Yf,Kf=Qf[Yf];break}"Webkit"===$f&&"msHyphens"in Jf&&($f="ms",Kf=Qf.ms,Zf="edge"),"Webkit"===$f&&"-apple-trailing-word"in Jf&&(Gf="apple")}var eh=$f,th=Kf,nh=Gf,rh=Zf,oh=Xf;var ih={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===eh?"-webkit-"+e:th+e)}},ah={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===eh?th+"print-"+e:e)}},lh=/[-\s]+(.)?/g;function sh(e,t){return t?t.toUpperCase():""}function uh(e){return e.replace(lh,sh)}function ch(e){return uh("-"+e)}var dh,ph={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===eh){var n="mask-image";if(uh(n)in t)return e;if(eh+ch(n)in t)return th+e}return e}},fh={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==nh||oh?e:th+e)}},hh={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:th+e)}},mh={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:th+e)}},gh={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===eh||"ms"===eh&&"edge"!==rh?th+e:e)}},vh={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===eh||"ms"===eh||"apple"===nh?th+e:e)}},yh={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===eh?"WebkitColumn"+ch(e)in t&&th+"column-"+e:"Moz"===eh&&("page"+ch(e)in t&&"page-"+e))}},bh={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===eh)return e;var n=e.replace("-inline","");return eh+ch(n)in t&&th+n}},xh={supportedProperty:function(e,t){return uh(e)in t&&e}},Eh={supportedProperty:function(e,t){var n=ch(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:eh+n in t?th+e:"Webkit"!==eh&&"Webkit"+n in t&&"-webkit-"+e}},wh={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===eh?""+th+e:e)}},Ch={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===eh?th+"scroll-chaining":e)}},Sh={"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"},kh={supportedProperty:function(e,t){var n=Sh[e];return!!n&&(eh+ch(n)in t&&th+n)}},Lh={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"},Rh=Object.keys(Lh),Oh=function(e){return th+e},_h=[ih,ah,ph,fh,hh,mh,gh,vh,yh,bh,xh,Eh,wh,Ch,kh,{supportedProperty:function(e,t,n){var r=n.multiple;if(Rh.indexOf(e)>-1){var o=Lh[e];if(!Array.isArray(o))return eh+ch(o)in t&&th+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(eh+ch(o[0])in t))return!1;return o.map(Oh)}return!1}}],Ih=_h.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Ph=_h.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Vf(t.noPrefill)),e}),[]),Th={};if(tp){dh=document.createElement("p");var Nh=window.getComputedStyle(document.documentElement,"");for(var qh in Nh)isNaN(qh)||(Th[Nh[qh]]=Nh[qh]);Ph.forEach((function(e){return delete Th[e]}))}function Mh(e,t){if(void 0===t&&(t={}),!dh)return e;if(null!=Th[e])return Th[e];"transition"!==e&&"transform"!==e||(t[e]=e in dh.style);for(var n=0;n<Ih.length&&(Th[e]=Ih[n](e,dh.style,t),!Th[e]);n++);try{dh.style[e]=""}catch(e){return!1}return Th[e]}var Dh,Ah={},zh={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},jh=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Fh(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Mh(t):", "+Mh(n);return r||(t||n)}function Bh(e,t){var n=t;if(!Dh||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Ah[r])return Ah[r];try{Dh.style[e]=n}catch(e){return Ah[r]=!1,!1}if(zh[e])n=n.replace(jh,Fh);else if(""===Dh.style[e]&&("-ms-flex"===(n=th+n)&&(Dh.style[e]="-ms-flexbox"),Dh.style[e]=n,""===Dh.style[e]))return Ah[r]=!1,!1;return Dh.style[e]="",Ah[r]=n,Ah[r]}function Uh(){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 o=!1,i=Mh(n);i&&i!==n&&(o=!0);var a=!1,l=Bh(i,cp(r));l&&l!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=l||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===eh?e:"@"+th+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Bh(t,cp(e))||e}}}function Hh(){return{plugins:[vf(),kf(),If(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Df(e[t]);return e}return Df(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Mf(t);return t===r?e:(n.prop(r,e),null)}},Hf(),"undefined"==typeof window?null:Uh(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}})]};var e}function Wh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Vh(){return(Vh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function $h(){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=Vh({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}tp&&(Dh=document.createElement("p"));var Kh={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},Gh=tt.createContext(null);function Zh(){return tt.useContext(Gh)}var Xh,Qh=ff(Hh()),Jh={disableGeneration:!1,generateClassName:Qd(),jss:Qh,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Yh=tt.createContext(Jh);function em(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=Wh(e,["children","injectFirst","disableGeneration"]),l=Vh({},tt.useContext(Yh),{disableGeneration:i},a);if(!l.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!Xh){var s=document.head;Xh=document.createComment("mui-inject-first"),s.insertBefore(Xh,s.firstChild)}l.jss=ff({plugins:Hh().plugins,insertionPoint:Xh})}return tt.createElement(Yh.Provider,{value:l},t)}var tm=-1e9;function nm(){return tm+=1}var rm={};function om(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=Vh({},o);return Object.keys(i).forEach((function(e){a[e]=hd(a[e],i[e])})),a},options:{}}}function im(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=$h({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function am(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var l=Kh.get(o.sheetsManager,i,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},Kh.set(o.sheetsManager,i,r,l));var s=Vh({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});s.generateId=s.serverGenerateClassName||s.generateClassName;var u=o.sheetsRegistry;if(0===l.refs){var c;o.sheetsCache&&(c=Kh.get(o.sheetsCache,i,r));var d=i.create(r,a);c||((c=o.jss.createStyleSheet(d,Vh({link:!1},s))).attach(),o.sheetsCache&&Kh.set(o.sheetsCache,i,r,c)),u&&u.add(c),l.staticSheet=c,l.dynamicStyles=function e(t){var n=null;for(var r in t){var o=t[r],i=typeof o;if("function"===i)n||(n={}),n[r]=o;else if("object"===i&&null!==o&&!Array.isArray(o)){var a=e(o);a&&(n||(n={}),n[r]=a)}}return n}(d)}if(l.dynamicStyles){var p=o.jss.createStyleSheet(l.dynamicStyles,Vh({link:!0},s));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=$h({baseClasses:l.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else n.classes=l.staticSheet.classes;l.refs+=1}}function lm(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function sm(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Kh.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Kh.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function um(e,t){var n,r=tt.useRef([]),o=tt.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),tt.useEffect((function(){return function(){n&&n()}}),[o])}function cm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?rm:i,l=Wh(t,["name","classNamePrefix","Component","defaultTheme"]),s=om(e),u=n||r||"makeStyles";s.options={index:nm(),name:n,meta:u,classNamePrefix:u};var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Zh()||a,r=Vh({},tt.useContext(Yh),l),i=tt.useRef(),u=tt.useRef();um((function(){var o={name:n,state:{},stylesCreator:s,stylesOptions:r,theme:t};return am(o,e),u.current=!1,i.current=o,function(){sm(o)}}),[t,s]),tt.useEffect((function(){u.current&&lm(i.current,e),u.current=!0}));var c=im(i.current,e.classes,o);return c};return c}function dm(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=dm(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function pm(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=dm(e))&&(r&&(r+=" "),r+=t);return r}var fm=yd.exports,hm={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mm={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},gm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vm={};function ym(e){return fm.isMemo(e)?gm:vm[e.$$typeof]||hm}vm[fm.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vm[fm.Memo]=gm;var bm=Object.defineProperty,xm=Object.getOwnPropertyNames,Em=Object.getOwnPropertySymbols,wm=Object.getOwnPropertyDescriptor,Cm=Object.getPrototypeOf,Sm=Object.prototype;var km=function e(t,n,r){if("string"!=typeof n){if(Sm){var o=Cm(n);o&&o!==Sm&&e(t,o,r)}var i=xm(n);Em&&(i=i.concat(Em(n)));for(var a=ym(t),l=ym(n),s=0;s<i.length;++s){var u=i[s];if(!(mm[u]||r&&r[u]||l&&l[u]||a&&a[u])){var c=wm(n,u);try{bm(t,u,c)}catch(e){}}}}return t};function Lm(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function Rm(e){var t=e.children,n=e.theme,r=Zh(),o=tt.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Vh({},e,t)}(r,n);return null!=e&&(e[Zd]=null!==r),e}),[n,r]);return tt.createElement(Gh.Provider,{value:o},t)}var Om=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,l=Wh(t,["defaultTheme","withTheme","name"]),s=a,u=cm(e,Vh({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:s},l)),c=tt.forwardRef((function(e,t){e.classes;var o,l=e.innerRef,s=Wh(e,["classes","innerRef"]),c=u(Vh({},n.defaultProps,e)),d=s;return("string"==typeof a||i)&&(o=Zh()||r,a&&(d=Jd({theme:o,name:a,props:s})),i&&!d.theme&&(d.theme=o)),tt.createElement(n,Vh({ref:l||t,classes:c},d))}));return km(c,n),c}};function _m(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 Im(e){if(e.type)return e;if("#"===e.charAt(0))return Im(function(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(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(vd(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Pm(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 Tm(e){var t="hsl"===(e=Im(e)).type?Im(function(e){var t=(e=Im(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Pm({type:l,values:s})}(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 Nm(e,t){return e=Im(e),t=_m(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Pm(e)}function qm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mm(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Dm(){return(Dm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Am=["xs","sm","md","lg","xl"];function zm(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,l=Mm(e,["values","unit","step"]);function s(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function u(e,t){var r=Am.indexOf(t);return r===Am.length-1?s(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[Am[r+1]]?n[Am[r+1]]:t)-a/100).concat(o,")")}return Dm({keys:Am,values:n,up:s,down:function(e){var t=Am.indexOf(e)+1,r=n[Am[t]];return t===Am.length?s("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:u,only:function(e){return u(e,e)},width:function(e){return n[e]}},l)}function jm(e,t,n){var r;return Dm({gutters:function(){var n=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")),Dm({paddingLeft:t(2),paddingRight:t(2)},n,qm({},e.up("sm"),Dm({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},qm(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),qm(r,e.up("sm"),{minHeight:64}),r)},n)}var Fm={black:"#000",white:"#fff"},Bm={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"},Um={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"},Hm={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"},Wm={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"},Vm={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"},$m={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"},Km={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"},Gm={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:Fm.white,default:Bm[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}},Zm={text:{primary:Fm.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:Bm[800],default:"#303030"},action:{active:Fm.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 Xm(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Im(e),t=_m(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Pm(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Im(e),t=_m(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Pm(e)}(e.main,i)))}function Qm(e){var t=e.primary,n=void 0===t?{light:Um[300],main:Um[500],dark:Um[700]}:t,r=e.secondary,o=void 0===r?{light:Hm.A200,main:Hm.A400,dark:Hm.A700}:r,i=e.error,a=void 0===i?{light:Wm[300],main:Wm[500],dark:Wm[700]}:i,l=e.warning,s=void 0===l?{light:Vm[300],main:Vm[500],dark:Vm[700]}:l,u=e.info,c=void 0===u?{light:$m[300],main:$m[500],dark:$m[700]}:u,d=e.success,p=void 0===d?{light:Km[300],main:Km[500],dark:Km[700]}:d,f=e.type,h=void 0===f?"light":f,m=e.contrastThreshold,g=void 0===m?3:m,v=e.tonalOffset,y=void 0===v?.2:v,b=Mm(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){return function(e,t){var n=Tm(e),r=Tm(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Zm.text.primary)>=g?Zm.text.primary:Gm.text.primary}var E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Dm({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(vd(4,t));if("string"!=typeof e.main)throw new Error(vd(5,JSON.stringify(e.main)));return Xm(e,"light",n,y),Xm(e,"dark",r,y),e.contrastText||(e.contrastText=x(e.main)),e},w={dark:Zm,light:Gm};return hd(Dm({common:Fm,type:h,primary:E(n),secondary:E(o,"A400","A200","A700"),error:E(a),warning:E(s),info:E(c),success:E(p),grey:Bm,contrastThreshold:g,getContrastText:x,augmentColor:E,tonalOffset:y},w[h]),b)}function Jm(e){return Math.round(1e5*e)/1e5}function Ym(e){return Jm(e)}var eg={textTransform:"uppercase"},tg='"Roboto", "Helvetica", "Arial", sans-serif';function ng(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?tg:r,i=n.fontSize,a=void 0===i?14:i,l=n.fontWeightLight,s=void 0===l?300:l,u=n.fontWeightRegular,c=void 0===u?400:u,d=n.fontWeightMedium,p=void 0===d?500:d,f=n.fontWeightBold,h=void 0===f?700:f,m=n.htmlFontSize,g=void 0===m?16:m,v=n.allVariants,y=n.pxToRem,b=Mm(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,E=y||function(e){return"".concat(e/g*x,"rem")},w=function(e,t,n,r,i){return Dm({fontFamily:o,fontWeight:e,fontSize:E(t),lineHeight:n},o===tg?{letterSpacing:"".concat(Jm(r/t),"em")}:{},i,v)},C={h1:w(s,96,1.167,-1.5),h2:w(s,60,1.2,-.5),h3:w(c,48,1.167,0),h4:w(c,34,1.235,.25),h5:w(c,24,1.334,0),h6:w(p,20,1.6,.15),subtitle1:w(c,16,1.75,.15),subtitle2:w(p,14,1.57,.1),body1:w(c,16,1.5,.15),body2:w(c,14,1.43,.15),button:w(p,14,1.75,.4,eg),caption:w(c,12,1.66,.4),overline:w(c,12,2.66,1,eg)};return hd(Dm({htmlFontSize:g,pxToRem:E,round:Ym,fontFamily:o,fontSize:a,fontWeightLight:s,fontWeightRegular:c,fontWeightMedium:p,fontWeightBold:h},C),b,{clone:!1})}function rg(){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 og=["none",rg(0,2,1,-1,0,1,1,0,0,1,3,0),rg(0,3,1,-2,0,2,2,0,0,1,5,0),rg(0,3,3,-2,0,3,4,0,0,1,8,0),rg(0,2,4,-1,0,4,5,0,0,1,10,0),rg(0,3,5,-1,0,5,8,0,0,1,14,0),rg(0,3,5,-1,0,6,10,0,0,1,18,0),rg(0,4,5,-2,0,7,10,1,0,2,16,1),rg(0,5,5,-3,0,8,10,1,0,3,14,2),rg(0,5,6,-3,0,9,12,1,0,3,16,2),rg(0,6,6,-3,0,10,14,1,0,4,18,3),rg(0,6,7,-4,0,11,15,1,0,4,20,3),rg(0,7,8,-4,0,12,17,2,0,5,22,4),rg(0,7,8,-4,0,13,19,2,0,5,24,4),rg(0,7,9,-4,0,14,21,2,0,5,26,4),rg(0,8,9,-5,0,15,22,2,0,6,28,5),rg(0,8,10,-5,0,16,24,2,0,6,30,5),rg(0,8,11,-5,0,17,26,2,0,6,32,5),rg(0,9,11,-5,0,18,28,2,0,7,34,6),rg(0,9,12,-6,0,19,29,2,0,7,36,6),rg(0,10,13,-6,0,20,31,3,0,8,38,7),rg(0,10,13,-6,0,21,33,3,0,8,40,7),rg(0,10,14,-6,0,22,35,3,0,8,42,7),rg(0,11,14,-7,0,23,36,3,0,9,44,8),rg(0,11,15,-7,0,24,38,3,0,9,46,8)],ig={borderRadius:4};function ag(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function lg(){return(lg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function sg(e){return(sg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ug(e){return(ug="function"==typeof Symbol&&"symbol"===sg(Symbol.iterator)?function(e){return sg(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":sg(e)})(e)}function cg(e,t){return t?hd(e,t,{clone:!1}):e}var dg={xs:0,sm:600,md:960,lg:1280,xl:1920},pg={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(dg[e],"px)")}};function fg(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||pg;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===ug(t)){var o=e.theme.breakpoints||pg;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}function hg(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function mg(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=hg(e.theme,o)||{};return fg(e,n,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=hg(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return 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 gg(){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?cg(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r}function vg(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var yg=gg(mg({prop:"border",themeKey:"borders",transform:vg}),mg({prop:"borderTop",themeKey:"borders",transform:vg}),mg({prop:"borderRight",themeKey:"borders",transform:vg}),mg({prop:"borderBottom",themeKey:"borders",transform:vg}),mg({prop:"borderLeft",themeKey:"borders",transform:vg}),mg({prop:"borderColor",themeKey:"palette"}),mg({prop:"borderRadius",themeKey:"shape"}));function bg(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var xg=gg(mg({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),mg({prop:"display"}),mg({prop:"overflow"}),mg({prop:"textOverflow"}),mg({prop:"visibility"}),mg({prop:"whiteSpace"})),Eg=gg(mg({prop:"flexBasis"}),mg({prop:"flexDirection"}),mg({prop:"flexWrap"}),mg({prop:"justifyContent"}),mg({prop:"alignItems"}),mg({prop:"alignContent"}),mg({prop:"order"}),mg({prop:"flex"}),mg({prop:"flexGrow"}),mg({prop:"flexShrink"}),mg({prop:"alignSelf"}),mg({prop:"justifyItems"}),mg({prop:"justifySelf"})),wg=gg(mg({prop:"gridGap"}),mg({prop:"gridColumnGap"}),mg({prop:"gridRowGap"}),mg({prop:"gridColumn"}),mg({prop:"gridRow"}),mg({prop:"gridAutoFlow"}),mg({prop:"gridAutoColumns"}),mg({prop:"gridAutoRows"}),mg({prop:"gridTemplateColumns"}),mg({prop:"gridTemplateRows"}),mg({prop:"gridTemplateAreas"}),mg({prop:"gridArea"})),Cg=gg(mg({prop:"color",themeKey:"palette"}),mg({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),Sg=gg(mg({prop:"position"}),mg({prop:"zIndex",themeKey:"zIndex"}),mg({prop:"top"}),mg({prop:"right"}),mg({prop:"bottom"}),mg({prop:"left"})),kg=mg({prop:"boxShadow",themeKey:"shadows"});function Lg(e){return e<=1?"".concat(100*e,"%"):e}var Rg=mg({prop:"width",transform:Lg}),Og=mg({prop:"maxWidth",transform:Lg}),_g=mg({prop:"minWidth",transform:Lg}),Ig=mg({prop:"height",transform:Lg}),Pg=mg({prop:"maxHeight",transform:Lg}),Tg=mg({prop:"minHeight",transform:Lg});mg({prop:"size",cssProperty:"width",transform:Lg}),mg({prop:"size",cssProperty:"height",transform:Lg});var Ng=gg(Rg,Og,_g,Ig,Pg,Tg,mg({prop:"boxSizing"}));function qg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Mg={m:"margin",p:"padding"},Dg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ag={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zg=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(!Ag[e])return[e];e=Ag[e]}var t=qg(e.split(""),2),n=t[0],r=t[1],o=Mg[n],i=Dg[r]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),jg=["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 Fg(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 Bg(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 Ug(e){var t=Fg(e.theme);return Object.keys(e).map((function(n){if(-1===jg.indexOf(n))return null;var r=Bg(zg(n),t),o=e[n];return fg(e,o,r)})).reduce(cg,{})}Ug.propTypes={},Ug.filterProps=jg;var Hg=gg(mg({prop:"fontFamily",themeKey:"typography"}),mg({prop:"fontSize",themeKey:"typography"}),mg({prop:"fontStyle",themeKey:"typography"}),mg({prop:"fontWeight",themeKey:"typography"}),mg({prop:"letterSpacing"}),mg({prop:"lineHeight"}),mg({prop:"textAlign"}));function Wg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Fg({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var Vg={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)"},$g={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Kg(e){return"".concat(Math.round(e),"ms")}var Gg={easing:Vg,duration:$g,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?$g.standard:n,o=t.easing,i=void 0===o?Vg.easeInOut:o,a=t.delay,l=void 0===a?0:a;return Mm(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:Kg(r)," ").concat(i," ").concat("string"==typeof l?l:Kg(l))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},Zg={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Xg(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,l=e.spacing,s=e.typography,u=void 0===s?{}:s,c=Mm(e,["breakpoints","mixins","palette","spacing","typography"]),d=Qm(a),p=zm(n),f=Wg(l),h=hd({breakpoints:p,direction:"ltr",mixins:jm(p,f,o),overrides:{},palette:d,props:{},shadows:og,typography:ng(d,u),spacing:f,shape:ig,transitions:Gg,zIndex:Zg},c),m=arguments.length,g=new Array(m>1?m-1:0),v=1;v<m;v++)g[v-1]=arguments[v];return h=g.reduce((function(e,t){return hd(e,t)}),h)}var Qg=Xg();function Jg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return cm(e,Dm({defaultTheme:Qg},t))}var Yg=function(e){var t=function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=Wh(r,["name"]),a=o,l=cm("function"==typeof t?function(e){return{root:function(n){return t(Vh({theme:e},n))}}}:{root:t},Vh({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&delete t.propTypes;var s=tt.forwardRef((function(t,r){var o=t.children,i=t.className,a=t.clone,s=t.component,u=Wh(t,["children","className","clone","component"]),c=pm(l(t).root,i),d=u;if(n&&(d=Lm(d,n)),a)return tt.cloneElement(o,Vh({className:pm(o.props.className,c)},d));if("function"==typeof o)return o(Vh({className:c},d));var p=s||e;return tt.createElement(p,Vh({ref:r,className:c},d),o)}));return km(s,e),s}}(e);return function(e,n){return t(e,Dm({defaultTheme:Qg},n))}};function ev(){return Zh()||Qg}function tv(e,t){return Om(e,Dm({defaultTheme:Qg},t))}var nv={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},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)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1}}};const rv="#009845",ov="#3F8AB3",iv="#ffffff",av="#404040",lv="#333333",sv="#1A1A1A",uv={type:"light",palette:{primary:{main:av,contrastText:iv},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:av,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:av,hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:iv,default:iv,lightest:iv,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:ov,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:rv,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:iv,alternativeContrastText:av,excludedContrastText:av},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},cv={type:"dark",palette:{primary:{main:lv,contrastText:iv},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:iv,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:iv,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:av,lighter:lv,darker:"#262626",darkest:sv},custom:{focusBorder:ov,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:rv,alternative:lv,excluded:sv,mainContrastText:iv,alternativeContrastText:iv,excludedContrastText:iv},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},dv={},pv=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover $notchedOutline":{borderColor:e.palette.btn.border},"&$focused $notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px","&$focusVisible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none","&$focusVisible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none","&$disabled":{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},"&$disabled":{backgroundColor:e.palette.btn.disabled}}},MuiExpansionPanelSummary:{content:{margin:"8px 0"}}});function fv(e){let t=uv,r="";"string"==typeof e&&(r=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=cv));const o=JSON.stringify(t);if(dv[o])return dv[o];const i={palette:n(n({type:t.type},nv.palette),t.palette),typography:n({},nv.typography),shadows:nv.shadows,props:n({},nv.props),shape:n({},nv.shape)};return dv[o]=Xg(n(n({},i),{},{overrides:pv(i)})),dv[o].name=r,dv[o]}var hv=tt.createContext({language:null,theme:null,translator:null,constraints:{}}),mv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const n=e,r=[],o={get:e=>n[e],set:(e,r)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return n[e]=r,t({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));n[e]=null},dispatch:e=>{r.forEach(t=>t(e?{}:n))}},i=()=>{const[,e]=ye.exports.useState(n);return ye.exports.useEffect(()=>(r.push(e),()=>{const t=r.indexOf(e);r.splice(t,1)}),[e]),[o]};return[i,o]};const[gv,vv]=mv({}),[yv,bv]=mv({}),[xv,Ev]=mv({}),[wv,Cv]=mv({}),[Sv,kv]=mv({}),[,Lv]=mv({}),Rv=e=>{let{type:t,value:n}=e;const r=Lv.get(n.id);Lv.set(n.id,{});const o=()=>{bv.clear(n.id),kv.set(n.id,{}),kv.dispatch(!0)},i=()=>{n.removeListener("changed",o),vv.clear(n.id),bv.clear(n.id),Ev.clear(n.id),Cv.clear(n.id),kv.clear(n.id),Lv.clear(n.id)};switch(t){case"SET":r||(n.on("changed",o),n.once("closed",()=>{i()}))}return i},[Ov,_v]=mv({},Rv),Iv=(e,t)=>{const{rpcResultStore:r,key:o,method:i}=t;let a;switch(t.type){case"INVALID":a=n(n({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:n({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=n(n({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let l=r.get(o);return l||(l={}),l[i]=a,r.set(o,l),a};function Pv(e,t){const n=e?"".concat(e.id):null,[r]=gv(),[o,i]=ye.exports.useReducer(Iv,n?r.get(n):null),[a]=Sv(),[l]=yv();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const u=async o=>{let a=s[t];if(!a||a&&a.rpcRetry){a={rpc:e[t](),rpcRetry:!1},s[t]=a,i({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{const o=await a.rpc;i({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(a.rpcRetry||(a.rpcRetry=!0),u(!0))}},c={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),i({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,u()}};return ye.exports.useEffect(()=>{e&&u()},[e,a.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},c]}function Tv(e){return Pv(e,"getLayout")}function Nv(e){return Pv(e,"getAppLayout")}function qv(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=Ov(),[o]=xv(),[i,a]=ye.exports.useState();let l;n&&(l=o.get(n));for(var s=arguments.length,u=new Array(s>2?s-2:0),c=2;c<s;c++)u[c-2]=arguments[c];return ye.exports.useEffect(()=>{if(!t)return;(async()=>{if(!l){const r=t.createSessionObject(e);l=r,o.set(n,l)}const i=await l;r.set(n,i),a(i)})()},[t,...u]),[i]}const Mv={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Dv(e){return qv(Mv,e)}function Av(e){const[t]=Dv(e),[n]=Tv(t),[r]=Nv(e),[o,i]=ye.exports.useState(null);return ye.exports.useEffect(()=>{r&&t&&n&&((e,t,n)=>{const r=[...n.qStateNames||[]].map(e=>({stateName:e,qSelectionObjectDef:{qStateName:e}}));(t&&t.alternateStates?t.alternateStates.map(e=>e.stateName):[]).join("::")!==(n.qStateNames||[]).map(e=>e).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)})(t,n,r)},[r,t,n]),ye.exports.useEffect(()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach(n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter(e=>!0!==e.qLocked).length>0}),i({canGoBack:e,canGoForward:t,canClear:r})},[n]),[o,t,n]}const[zv,jv]=mv({}),[Fv,Bv]=mv({}),[Uv,Hv]=mv({}),[Wv,Vv]=mv({});function $v(e){if(!e.session)return[];const[t,n,r]=Av(e),[o]=zv(),i=e?e.id:null;let a=o.get(i);return ye.exports.useEffect(()=>{e&&n&&r&&t&&!a&&(a=function(e){let{app:t,currentSelectionsLayout:n,navState:r}=e;const o="".concat(t.id),i=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=Vv.get(o);t&&(await t.endSelections(e),Vv.clear(o),Hv.get(t.id).emit("deactivated"))},a={begin:async function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===Vv.get(o))return;i(r),Vv.set(o,e);const a=Array.isArray(n)?n:[n],l=async n=>{try{await e.beginSelections(a),Vv.set(o,e)}catch(e){6003!==e.code||n?Vv.clear(o):(await t.abortModal(r),l(!0))}};await l()},end:i};return Bv.set(o,a),{model:t,isInModal:()=>!!Vv.get(o),isModal:e=>e?Vv.get(o)===e:!!Vv.get(o),canGoForward:()=>r.canGoForward,canGoBack:()=>r.canGoBack,canClear:()=>r.canClear,layout:()=>n,forward:()=>a.end().then(()=>t.forward()),back:()=>a.end().then(()=>t.back()),clear:()=>a.end().then(()=>t.clearAll()),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return a.end().then(()=>t.getField(e,n).then(e=>e.clear()))}}}({app:e,currentSelectionsLayout:r,navState:t}),o.set(i,a),o.dispatch(!0))},[e,n,r,t]),[a,t]}let Kv=0;const Gv=ye.exports.forwardRef((e,t)=>{let{initialContext:n,app:r}=e;const[o]=$v(r),[i,a]=ye.exports.useState(n),[l,s]=ye.exports.useState(),{theme:u,generator:c}=ye.exports.useMemo(()=>({theme:fv(l),generator:Qd({productionPrefix:"".concat("03e4"),disableGlobal:!0,seed:"njs-".concat(Kv++)})}),[l]),[d,p]=ye.exports.useState([]);return ye.exports.useImperativeHandle(t,()=>({addComponent(e){p([...d,e])},removeComponent(e){const t=d.indexOf(e);-1!==t&&(d.splice(t,1),p([...d]))},setMuiThemeName:s,setContext:a,getAppSelections:()=>o})),tt.createElement(em,{generateClassName:c},tt.createElement(Rm,{theme:u},tt.createElement(hv.Provider,{value:i},tt.createElement(tt.Fragment,null,d))))});function Zv(e){let t,{app:n,context:r}=e;const o=new Promise(e=>{t=e}),i=tt.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","2.3.1"),a.setAttribute("data-app-id",n.id),document.body.appendChild(a),ud.render(tt.createElement(Gv,{ref:i,app:n,initialContext:r}),a,t);const l={};return[{toggleFocusOfCells(e){Object.keys(l).forEach(t=>{l[t].current.toggleFocus(t===e)})},cells:l,addCell(e,t){l[e]=t},add(e){(async()=>{await o,i.current.addComponent(e)})()},remove(e){(async()=>{await o,i.current.removeComponent(e)})()},setMuiThemeName(e){(async()=>{await o,i.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,i.current.setContext(e)})()},getAppSelections:async()=>(await o,i.current.getAppSelections())},i,o]}function Xv(e){if("string"!=typeof e)throw new Error(vd(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Qv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function Jv(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,l=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(l,n)}return r.clear=function(){clearTimeout(t)},r}function Yv(e){return e&&e.ownerDocument||document}function ey(e){return Yv(e).defaultView||window}function ty(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var ny="undefined"!=typeof window?ye.exports.useLayoutEffect:ye.exports.useEffect;function ry(e){var t=ye.exports.useRef(e);return ny((function(){t.current=e})),ye.exports.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function oy(e,t){return ye.exports.useMemo((function(){return null==e&&null==t?null:function(n){ty(e,n),ty(t,n)}}),[e,t])}var iy=!0,ay=!1,ly=null,sy={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 uy(e){e.metaKey||e.altKey||e.ctrlKey||(iy=!0)}function cy(){iy=!1}function dy(){"hidden"===this.visibilityState&&ay&&(iy=!0)}function py(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return iy||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!sy[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function fy(){ay=!0,window.clearTimeout(ly),ly=window.setTimeout((function(){ay=!1}),100)}function hy(){return{isFocusVisible:py,onBlurVisible:fy,ref:ye.exports.useCallback((function(e){var t,n=nt.exports.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",uy,!0),t.addEventListener("mousedown",cy,!0),t.addEventListener("pointerdown",cy,!0),t.addEventListener("touchstart",cy,!0),t.addEventListener("visibilitychange",dy,!0))}),[])}}function my(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function gy(){return(gy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function vy(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function yy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var by=!1,xy=tt.createContext(null),Ey="unmounted",wy="exited",Cy="entering",Sy="entered",ky="exiting",Ly=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=wy,r.appearStatus=Cy):o=Sy:o=t.unmountOnExit||t.mountOnEnter?Ey:wy,r.state={status:o},r.nextCallback=null,r}yy(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ey?{status:wy}: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!==Cy&&n!==Sy&&(t=Cy):n!==Cy&&n!==Sy||(t=ky)}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){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===Cy?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===wy&&this.setState({status:Ey})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[ud.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||by?this.safeSetState({status:Sy},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Cy},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Sy},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:ud.findDOMNode(this);t&&!by?(this.props.onExit(r),this.safeSetState({status:ky},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:wy},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:wy},(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:ud.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)},n.render=function(){var e=this.state.status;if(e===Ey)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=vy(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return tt.createElement(xy.Provider,{value:null},"function"==typeof n?n(e,r):tt.cloneElement(tt.Children.only(n),r))},t}(tt.Component);function Ry(){}Ly.contextType=xy,Ly.propTypes={},Ly.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ry,onEntering:Ry,onEntered:Ry,onExit:Ry,onExiting:Ry,onExited:Ry},Ly.UNMOUNTED=Ey,Ly.EXITED=wy,Ly.ENTERING=Cy,Ly.ENTERED=Sy,Ly.EXITING=ky;var Oy=Ly;function _y(e,t){var n=Object.create(null);return e&&ye.exports.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&ye.exports.isValidElement(e)?t(e):e}(e)})),n}function Iy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Py(e,t,n){var r=_y(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 l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(ye.exports.isValidElement(a)){var l=i in t,s=i in r,u=t[i],c=ye.exports.isValidElement(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&ye.exports.isValidElement(u)&&(o[i]=ye.exports.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Iy(a,"exit",e),enter:Iy(a,"enter",e)})):o[i]=ye.exports.cloneElement(a,{in:!1}):o[i]=ye.exports.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Iy(a,"exit",e),enter:Iy(a,"enter",e)})}})),o}var Ty=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Ny=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}yy(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,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,_y(n.children,(function(e){return ye.exports.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Iy(e,"appear",n),enter:Iy(e,"enter",n),exit:Iy(e,"exit",n)})}))):Py(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=_y(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=gy({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=vy(e,["component","childFactory"]),o=this.state.contextValue,i=Ty(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?tt.createElement(xy.Provider,{value:o},i):tt.createElement(xy.Provider,{value:o},tt.createElement(t,r,i))},t}(tt.Component);Ny.propTypes={},Ny.defaultProps={component:"div",childFactory:function(e){return e}};var qy=Ny;function My(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var Dy=ye.exports.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,l=void 0!==a&&a,s=e.elevation,u=void 0===s?1:s,c=e.variant,d=void 0===c?"elevation":c,p=Mm(e,["classes","className","component","square","elevation","variant"]);return ye.exports.createElement(i,Dm({className:pm(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(u)],!l&&n.rounded),ref:t},p))})),Ay=tv((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Dm({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(Dy);function zy(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var jy="undefined"==typeof window?ye.exports.useEffect:ye.exports.useLayoutEffect;function Fy(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,l=e.in,s=e.onExited,u=void 0===s?function(){}:s,c=e.timeout,d=ye.exports.useState(!1),p=d[0],f=d[1],h=pm(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+i,left:-a/2+o},g=pm(t.child,p&&t.childLeaving,r&&t.childPulsate),v=ry(u);return jy((function(){if(!l){f(!0);var e=setTimeout(v,c);return function(){clearTimeout(e)}}}),[v,l,c]),ye.exports.createElement("span",{className:h,style:m},ye.exports.createElement("span",{className:g}))}var By=ye.exports.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=Mm(e,["center","classes","className"]),l=ye.exports.useState([]),s=l[0],u=l[1],c=ye.exports.useRef(0),d=ye.exports.useRef(null);ye.exports.useEffect((function(){d.current&&(d.current(),d.current=null)}),[s]);var p=ye.exports.useRef(!1),f=ye.exports.useRef(null),h=ye.exports.useRef(null),m=ye.exports.useRef(null);ye.exports.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var g=ye.exports.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;u((function(e){return[].concat(zy(e),[ye.exports.createElement(Fy,{key:c.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),c.current+=1,d.current=a}),[o]),v=ye.exports.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,l=void 0===a?r||t.pulsate:a,s=t.fakeElement,u=void 0!==s&&s;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var c,d,v,y=u?null:m.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,E=x.clientX,w=x.clientY;c=Math.round(E-b.left),d=Math.round(w-b.top)}if(l)(v=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(v+=1);else{var C=2*Math.max(Math.abs((y?y.clientWidth:0)-c),c)+2,S=2*Math.max(Math.abs((y?y.clientHeight:0)-d),d)+2;v=Math.sqrt(Math.pow(C,2)+Math.pow(S,2))}e.touches?null===h.current&&(h.current=function(){g({pulsate:i,rippleX:c,rippleY:d,rippleSize:v,cb:n})},f.current=setTimeout((function(){h.current&&(h.current(),h.current=null)}),80)):g({pulsate:i,rippleX:c,rippleY:d,rippleSize:v,cb:n})}}),[r,g]),y=ye.exports.useCallback((function(){v({},{pulsate:!0})}),[v]),b=ye.exports.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&h.current)return e.persist(),h.current(),h.current=null,void(f.current=setTimeout((function(){b(e,t)})));h.current=null,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return ye.exports.useImperativeHandle(t,(function(){return{pulsate:y,start:v,stop:b}}),[y,v,b]),ye.exports.createElement("span",Dm({className:pm(o.root,i),ref:m},a),ye.exports.createElement(qy,{component:null,exit:!0},s))})),Uy=tv((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(ye.exports.memo(By)),Hy=ye.exports.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,l=e.classes,s=e.className,u=e.component,c=void 0===u?"button":u,d=e.disabled,p=void 0!==d&&d,f=e.disableRipple,h=void 0!==f&&f,m=e.disableTouchRipple,g=void 0!==m&&m,v=e.focusRipple,y=void 0!==v&&v,b=e.focusVisibleClassName,x=e.onBlur,E=e.onClick,w=e.onFocus,C=e.onFocusVisible,S=e.onKeyDown,k=e.onKeyUp,L=e.onMouseDown,R=e.onMouseLeave,O=e.onMouseUp,_=e.onTouchEnd,I=e.onTouchMove,P=e.onTouchStart,T=e.onDragLeave,N=e.tabIndex,q=void 0===N?0:N,M=e.TouchRippleProps,D=e.type,A=void 0===D?"button":D,z=Mm(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),j=ye.exports.useRef(null);var F=ye.exports.useRef(null),B=ye.exports.useState(!1),U=B[0],H=B[1];p&&U&&H(!1);var W=hy(),V=W.isFocusVisible,$=W.onBlurVisible,K=W.ref;function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return ry((function(r){return t&&t(r),!n&&F.current&&F.current[e](r),!0}))}ye.exports.useImperativeHandle(n,(function(){return{focusVisible:function(){H(!0),j.current.focus()}}}),[]),ye.exports.useEffect((function(){U&&y&&!h&&F.current.pulsate()}),[h,y,U]);var Z=G("start",L),X=G("stop",T),Q=G("stop",O),J=G("stop",(function(e){U&&e.preventDefault(),R&&R(e)})),Y=G("start",P),ee=G("stop",_),te=G("stop",I),ne=G("stop",(function(e){U&&($(e),H(!1)),x&&x(e)}),!1),re=ry((function(e){j.current||(j.current=e.currentTarget),V(e)&&(H(!0),C&&C(e)),w&&w(e)})),oe=function(){var e=nt.exports.findDOMNode(j.current);return c&&"button"!==c&&!("A"===e.tagName&&e.href)},ie=ye.exports.useRef(!1),ae=ry((function(e){y&&!ie.current&&U&&F.current&&" "===e.key&&(ie.current=!0,e.persist(),F.current.stop(e,(function(){F.current.start(e)}))),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!p&&(e.preventDefault(),E&&E(e))})),le=ry((function(e){y&&" "===e.key&&F.current&&U&&!e.defaultPrevented&&(ie.current=!1,e.persist(),F.current.stop(e,(function(){F.current.pulsate(e)}))),k&&k(e),E&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&E(e)})),se=c;"button"===se&&z.href&&(se="a");var ue={};"button"===se?(ue.type=A,ue.disabled=p):("a"===se&&z.href||(ue.role="button"),ue["aria-disabled"]=p);var ce=oy(r,t),de=oy(K,j),pe=oy(ce,de),fe=ye.exports.useState(!1),he=fe[0],me=fe[1];ye.exports.useEffect((function(){me(!0)}),[]);var ge=he&&!h&&!p;return ye.exports.createElement(se,Dm({className:pm(l.root,s,U&&[l.focusVisible,b],p&&l.disabled),onBlur:ne,onClick:E,onFocus:re,onKeyDown:ae,onKeyUp:le,onMouseDown:Z,onMouseLeave:J,onMouseUp:Q,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Y,ref:pe,tabIndex:p?-1:q},ue,z),a,ge?ye.exports.createElement(Uy,Dm({ref:F,center:i},M)):null)})),Wy=tv({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Hy),Vy=ye.exports.forwardRef((function(e,t){var n=e.edge,r=void 0!==n&&n,o=e.children,i=e.classes,a=e.className,l=e.color,s=void 0===l?"default":l,u=e.disabled,c=void 0!==u&&u,d=e.disableFocusRipple,p=void 0!==d&&d,f=e.size,h=void 0===f?"medium":f,m=Mm(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return ye.exports.createElement(Wy,Dm({className:pm(i.root,a,"default"!==s&&i["color".concat(Xv(s))],c&&i.disabled,"small"===h&&i["size".concat(Xv(h))],{start:i.edgeStart,end:i.edgeEnd}[r]),centerRipple:!0,focusRipple:!p,disabled:c,ref:t},m),ye.exports.createElement("span",{className:i.label},o))})),$y=tv((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Nm(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Nm(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Nm(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Vy),Ky=ye.exports.forwardRef((function(e,t){var n=e.anchorOrigin,r=void 0===n?{vertical:"top",horizontal:"right"}:n,o=e.badgeContent,i=e.children,a=e.classes,l=e.className,s=e.color,u=void 0===s?"default":s,c=e.component,d=void 0===c?"span":c,p=e.invisible,f=e.max,h=void 0===f?99:f,m=e.overlap,g=void 0===m?"rectangle":m,v=e.showZero,y=void 0!==v&&v,b=e.variant,x=void 0===b?"standard":b,E=Mm(e,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),w=p;null==p&&(0===o&&!y||null==o&&"dot"!==x)&&(w=!0);var C="";return"dot"!==x&&(C=o>h?"".concat(h,"+"):o),ye.exports.createElement(d,Dm({className:pm(a.root,l),ref:t},E),i,ye.exports.createElement("span",{className:pm(a.badge,a["".concat(r.horizontal).concat(Xv(r.vertical),"}")],a["anchorOrigin".concat(Xv(r.vertical)).concat(Xv(r.horizontal)).concat(Xv(g))],"default"!==u&&a["color".concat(Xv(u))],w&&a.invisible,"dot"===x&&a.dot)},C))})),Gy=tv((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{borderRadius:4,height:8,minWidth:8,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightRectangular:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightRectangular:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftRectangular:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftRectangular:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginTopRightCircular:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginBottomRightCircular:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginTopLeftCircular:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginBottomLeftCircular:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(Ky),Zy=function(e){var t=function(t){var n=e(t);return t.css?lg({},cg(n,e(lg({theme:t.theme},t.css))),bg(t.css,[e.filterProps])):t.sx?lg({},cg(n,e(lg({theme:t.theme},t.sx))),bg(t.sx,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css","sx"].concat(ag(e.filterProps)),t}(gg(yg,xg,Eg,wg,Sg,Cg,kg,Ng,Ug,Hg)),Xy=Yg("div")(Zy,{name:"MuiBox"}),Qy={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Jy=ye.exports.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,l=void 0===a?"initial":a,s=e.component,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,p=void 0!==d&&d,f=e.noWrap,h=void 0!==f&&f,m=e.paragraph,g=void 0!==m&&m,v=e.variant,y=void 0===v?"body1":v,b=e.variantMapping,x=void 0===b?Qy:b,E=Mm(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),w=s||(g?"p":x[y]||Qy[y])||"span";return ye.exports.createElement(w,Dm({className:pm(o.root,i,"inherit"!==y&&o[y],"initial"!==l&&o["color".concat(Xv(l))],h&&o.noWrap,p&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(Xv(r))],"initial"!==c&&o["display".concat(Xv(c))]),ref:t},E))})),Yy=tv((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Jy),eb=ye.exports.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,l=e.component,s=void 0===l?"button":l,u=e.disabled,c=void 0!==u&&u,d=e.disableElevation,p=void 0!==d&&d,f=e.disableFocusRipple,h=void 0!==f&&f,m=e.endIcon,g=e.focusVisibleClassName,v=e.fullWidth,y=void 0!==v&&v,b=e.size,x=void 0===b?"medium":b,E=e.startIcon,w=e.type,C=void 0===w?"button":w,S=e.variant,k=void 0===S?"text":S,L=Mm(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),R=E&&ye.exports.createElement("span",{className:pm(r.startIcon,r["iconSize".concat(Xv(x))])},E),O=m&&ye.exports.createElement("span",{className:pm(r.endIcon,r["iconSize".concat(Xv(x))])},m);return ye.exports.createElement(Wy,Dm({className:pm(r.root,r[k],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(k).concat(Xv(a))],"medium"!==x&&[r["".concat(k,"Size").concat(Xv(x))],r["size".concat(Xv(x))]],p&&r.disableElevation,c&&r.disabled,y&&r.fullWidth),component:s,disabled:c,focusRipple:!h,focusVisibleClassName:pm(r.focusVisible,g),ref:t,type:C},L),ye.exports.createElement("span",{className:r.label},R,n,O))})),tb=tv((function(e){return{root:Dm({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Nm(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Nm(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Nm(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Nm(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Nm(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Nm(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Nm(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(eb),nb=ye.exports.createContext();function rb(){return ye.exports.useContext(nb)}var ob=nb,ib=44,ab=ye.exports.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,a=e.disableShrink,l=void 0!==a&&a,s=e.size,u=void 0===s?40:s,c=e.style,d=e.thickness,p=void 0===d?3.6:d,f=e.value,h=void 0===f?0:f,m=e.variant,g=void 0===m?"indeterminate":m,v=Mm(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),y={},b={},x={};if("determinate"===g||"static"===g){var E=2*Math.PI*((ib-p)/2);y.strokeDasharray=E.toFixed(3),x["aria-valuenow"]=Math.round(h),y.strokeDashoffset="".concat(((100-h)/100*E).toFixed(3),"px"),b.transform="rotate(-90deg)"}return ye.exports.createElement("div",Dm({className:pm(n.root,r,"inherit"!==i&&n["color".concat(Xv(i))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[g]),style:Dm({width:u,height:u},b,c),ref:t,role:"progressbar"},x,v),ye.exports.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(ib," ").concat(ib)},ye.exports.createElement("circle",{className:pm(n.circle,l&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[g]),style:y,cx:ib,cy:ib,r:(ib-p)/2,fill:"none",strokeWidth:p})))})),lb=tv((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(ab);var sb="undefined"!=typeof window?ye.exports.useLayoutEffect:ye.exports.useEffect,ub=ye.exports.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,l=ye.exports.useState(null),s=l[0],u=l[1],c=oy(ye.exports.isValidElement(n)?n.ref:null,t);return sb((function(){i||u(function(e){return e="function"==typeof e?e():e,nt.exports.findDOMNode(e)}(r)||document.body)}),[r,i]),sb((function(){if(s&&!i)return ty(t,s),function(){ty(t,null)}}),[t,s,i]),sb((function(){a&&(s||i)&&a()}),[a,s,i]),i?ye.exports.isValidElement(n)?ye.exports.cloneElement(n,{ref:c}):n:s?nt.exports.createPortal(n,s):s}));function cb(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,r.key,r)}}function db(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function pb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fb(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function hb(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(zy(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&pb(e,o)}))}function mb(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function gb(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Yv(e);return t.body===e?ey(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=db();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(fb(i)+a,"px"),n=Yv(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(fb(e)+a,"px")}))}var l=i.parentElement,s="HTML"===l.nodeName&&"scroll"===window.getComputedStyle(l)["overflow-y"]?l:i;r.push({value:s.style.overflow,key:"overflow",el:s}),s.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var vb=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}var t,n,r;return t=e,(n=[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&pb(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);hb(t,e.mountNode,e.modalRef,r,!0);var o=mb(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=mb(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=gb(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=mb(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&pb(e.modalRef,!0),hb(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&pb(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}])&&cb(t.prototype,n),r&&cb(t,r),e}();function yb(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,l=void 0!==a&&a,s=e.getDoc,u=e.isEnabled,c=e.open,d=ye.exports.useRef(),p=ye.exports.useRef(null),f=ye.exports.useRef(null),h=ye.exports.useRef(),m=ye.exports.useRef(null),g=ye.exports.useCallback((function(e){m.current=nt.exports.findDOMNode(e)}),[]),v=oy(t.ref,g),y=ye.exports.useRef();return ye.exports.useEffect((function(){y.current=c}),[c]),!y.current&&c&&"undefined"!=typeof window&&(h.current=s().activeElement),ye.exports.useEffect((function(){if(c){var e=Yv(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!i&&u()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!i&&u()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?f.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(h.current&&h.current.focus&&h.current.focus(),h.current=null)}}}),[r,i,l,u,c]),ye.exports.createElement(ye.exports.Fragment,null,ye.exports.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),ye.exports.cloneElement(t,{ref:v}),ye.exports.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var bb={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},xb=ye.exports.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=Mm(e,["invisible","open"]);return o?ye.exports.createElement("div",Dm({"aria-hidden":!0,ref:t},i,{style:Dm({},bb.root,r?bb.invisible:{},i.style)})):null}));var Eb=new vb,wb=ye.exports.forwardRef((function(e,t){var n=Zh(),r=Jd({name:"MuiModal",props:Dm({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?xb:o,a=r.BackdropProps,l=r.children,s=r.closeAfterTransition,u=void 0!==s&&s,c=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,f=r.disableBackdropClick,h=void 0!==f&&f,m=r.disableEnforceFocus,g=void 0!==m&&m,v=r.disableEscapeKeyDown,y=void 0!==v&&v,b=r.disablePortal,x=void 0!==b&&b,E=r.disableRestoreFocus,w=void 0!==E&&E,C=r.disableScrollLock,S=void 0!==C&&C,k=r.hideBackdrop,L=void 0!==k&&k,R=r.keepMounted,O=void 0!==R&&R,_=r.manager,I=void 0===_?Eb:_,P=r.onBackdropClick,T=r.onClose,N=r.onEscapeKeyDown,q=r.onRendered,M=r.open,D=Mm(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),A=ye.exports.useState(!0),z=A[0],j=A[1],F=ye.exports.useRef({}),B=ye.exports.useRef(null),U=ye.exports.useRef(null),H=oy(U,t),W=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),V=function(){return Yv(B.current)},$=function(){return F.current.modalRef=U.current,F.current.mountNode=B.current,F.current},K=function(){I.mount($(),{disableScrollLock:S}),U.current.scrollTop=0},G=ry((function(){var e=function(e){return e="function"==typeof e?e():e,nt.exports.findDOMNode(e)}(c)||V().body;I.add($(),e),U.current&&K()})),Z=ye.exports.useCallback((function(){return I.isTopModal($())}),[I]),X=ry((function(e){B.current=e,e&&(q&&q(),M&&Z()?K():pb(U.current,!0))})),Q=ye.exports.useCallback((function(){I.remove($())}),[I]);if(ye.exports.useEffect((function(){return function(){Q()}}),[Q]),ye.exports.useEffect((function(){M?G():W&&u||Q()}),[M,Q,W,u,G]),!O&&!M&&(!W||z))return null;var J=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Zg}),Y={};return void 0===l.props.tabIndex&&(Y.tabIndex=l.props.tabIndex||"-1"),W&&(Y.onEnter=Qv((function(){j(!1)}),l.props.onEnter),Y.onExited=Qv((function(){j(!0),u&&Q()}),l.props.onExited)),ye.exports.createElement(ub,{ref:X,container:c,disablePortal:x},ye.exports.createElement("div",Dm({ref:H,onKeyDown:function(e){"Escape"===e.key&&Z()&&(N&&N(e),y||(e.stopPropagation(),T&&T(e,"escapeKeyDown")))},role:"presentation"},D,{style:Dm({},J.root,!M&&z?J.hidden:{},D.style)}),L?null:ye.exports.createElement(i,Dm({open:M,onClick:function(e){e.target===e.currentTarget&&(P&&P(e),!h&&T&&T(e,"backdropClick"))}},a)),ye.exports.createElement(yb,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:w,getDoc:V,isEnabled:Z,open:M},ye.exports.cloneElement(l,Y))))})),Cb=ye.exports.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,a=e.component,l=void 0===a?"hr":a,s=e.flexItem,u=void 0!==s&&s,c=e.light,d=void 0!==c&&c,p=e.orientation,f=void 0===p?"horizontal":p,h=e.role,m=void 0===h?"hr"!==l?"separator":void 0:h,g=e.variant,v=void 0===g?"fullWidth":g,y=Mm(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return ye.exports.createElement(l,Dm({className:pm(o.root,i,"fullWidth"!==v&&o[v],r&&o.absolute,u&&o.flexItem,d&&o.light,"vertical"===f&&o.vertical),role:m,ref:t},y))})),Sb=tv((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Nm(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(Cb);function kb(e,t){return parseInt(e[t],10)||0}var Lb="undefined"!=typeof window?ye.exports.useLayoutEffect:ye.exports.useEffect,Rb={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Ob=ye.exports.forwardRef((function(e,t){var n=e.onChange,r=e.rows,o=e.rowsMax,i=e.rowsMin,a=e.maxRows,l=e.minRows,s=void 0===l?1:l,u=e.style,c=e.value,d=Mm(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),p=a||o,f=r||i||s,h=ye.exports.useRef(null!=c).current,m=ye.exports.useRef(null),g=oy(t,m),v=ye.exports.useRef(null),y=ye.exports.useRef(0),b=ye.exports.useState({}),x=b[0],E=b[1],w=ye.exports.useCallback((function(){var t=m.current,n=window.getComputedStyle(t),r=v.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=kb(n,"padding-bottom")+kb(n,"padding-top"),a=kb(n,"border-bottom-width")+kb(n,"border-top-width"),l=r.scrollHeight-i;r.value="x";var s=r.scrollHeight-i,u=l;f&&(u=Math.max(Number(f)*s,u)),p&&(u=Math.min(Number(p)*s,u));var c=(u=Math.max(u,s))+("border-box"===o?i+a:0),d=Math.abs(u-l)<=1;E((function(e){return y.current<20&&(c>0&&Math.abs((e.outerHeightStyle||0)-c)>1||e.overflow!==d)?(y.current+=1,{overflow:d,outerHeightStyle:c}):e}))}),[p,f,e.placeholder]);ye.exports.useEffect((function(){var e=Jv((function(){y.current=0,w()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[w]),Lb((function(){w()})),ye.exports.useEffect((function(){y.current=0}),[c]);return ye.exports.createElement(ye.exports.Fragment,null,ye.exports.createElement("textarea",Dm({value:c,onChange:function(e){y.current=0,h||w(),n&&n(e)},ref:g,rows:f,style:Dm({height:x.outerHeightStyle,overflow:x.overflow?"hidden":null},u)},d)),ye.exports.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:v,tabIndex:-1,style:Dm({},Rb,u)}))}));function _b(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}var Ib="undefined"==typeof window?ye.exports.useEffect:ye.exports.useLayoutEffect,Pb=ye.exports.forwardRef((function(e,t){var n=e["aria-describedby"],r=e.autoComplete,o=e.autoFocus,i=e.classes,a=e.className;e.color;var l=e.defaultValue,s=e.disabled,u=e.endAdornment;e.error;var c=e.fullWidth,d=void 0!==c&&c,p=e.id,f=e.inputComponent,h=void 0===f?"input":f,m=e.inputProps,g=void 0===m?{}:m,v=e.inputRef;e.margin;var y=e.multiline,b=void 0!==y&&y,x=e.name,E=e.onBlur,w=e.onChange,C=e.onClick,S=e.onFocus,k=e.onKeyDown,L=e.onKeyUp,R=e.placeholder,O=e.readOnly,_=e.renderSuffix,I=e.rows,P=e.rowsMax,T=e.rowsMin,N=e.maxRows,q=e.minRows,M=e.startAdornment,D=e.type,A=void 0===D?"text":D,z=e.value,j=Mm(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),F=null!=g.value?g.value:z,B=ye.exports.useRef(null!=F).current,U=ye.exports.useRef(),H=ye.exports.useCallback((function(e){}),[]),W=oy(g.ref,H),V=oy(v,W),$=oy(U,V),K=ye.exports.useState(!1),G=K[0],Z=K[1],X=rb(),Q=function(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}({props:e,muiFormControl:X,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});Q.focused=X?X.focused:G,ye.exports.useEffect((function(){!X&&s&&G&&(Z(!1),E&&E())}),[X,s,G,E]);var J=X&&X.onFilled,Y=X&&X.onEmpty,ee=ye.exports.useCallback((function(e){!function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(_b(e.value)&&""!==e.value||t&&_b(e.defaultValue)&&""!==e.defaultValue)}(e)?Y&&Y():J&&J()}),[J,Y]);Ib((function(){B&&ee({value:F})}),[F,ee,B]);ye.exports.useEffect((function(){ee(U.current)}),[]);var te=h,ne=Dm({},g,{ref:$});"string"!=typeof te?ne=Dm({inputRef:$,type:A},ne,{ref:null}):b?!I||N||q||P||T?(ne=Dm({minRows:I||q,rowsMax:P,maxRows:N},ne),te=Ob):te="textarea":ne=Dm({type:A},ne);return ye.exports.useEffect((function(){X&&X.setAdornedStart(Boolean(M))}),[X,M]),ye.exports.createElement("div",Dm({className:pm(i.root,i["color".concat(Xv(Q.color||"primary"))],a,Q.disabled&&i.disabled,Q.error&&i.error,d&&i.fullWidth,Q.focused&&i.focused,X&&i.formControl,b&&i.multiline,M&&i.adornedStart,u&&i.adornedEnd,"dense"===Q.margin&&i.marginDense),onClick:function(e){U.current&&e.currentTarget===e.target&&U.current.focus(),C&&C(e)},ref:t},j),M,ye.exports.createElement(ob.Provider,{value:null},ye.exports.createElement(te,Dm({"aria-invalid":Q.error,"aria-describedby":n,autoComplete:r,autoFocus:o,defaultValue:l,disabled:Q.disabled,id:p,onAnimationStart:function(e){ee("mui-auto-fill-cancel"===e.animationName?U.current:{value:"x"})},name:x,placeholder:R,readOnly:O,required:Q.required,rows:I,value:F,onKeyDown:k,onKeyUp:L},ne,{className:pm(i.input,g.className,Q.disabled&&i.disabled,b&&i.inputMultiline,Q.hiddenLabel&&i.inputHiddenLabel,M&&i.inputAdornedStart,u&&i.inputAdornedEnd,"search"===A&&i.inputTypeSearch,"dense"===Q.margin&&i.inputMarginDense),onBlur:function(e){E&&E(e),g.onBlur&&g.onBlur(e),X&&X.onBlur?X.onBlur(e):Z(!1)},onChange:function(e){if(!B){var t=e.target||U.current;if(null==t)throw new Error(vd(1));ee({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];g.onChange&&g.onChange.apply(g,[e].concat(r)),w&&w.apply(void 0,[e].concat(r))},onFocus:function(e){Q.disabled?e.stopPropagation():(S&&S(e),g.onFocus&&g.onFocus(e),X&&X.onFocus?X.onFocus(e):Z(!0))}}))),u,_?_(Dm({},Q,{startAdornment:M})):null)})),Tb=tv((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:Dm({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(Pb),Nb=[0,1,2,3,4,5,6,7,8,9,10],qb=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function Mb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var Db=ye.exports.forwardRef((function(e,t){var n=e.alignContent,r=void 0===n?"stretch":n,o=e.alignItems,i=void 0===o?"stretch":o,a=e.classes,l=e.className,s=e.component,u=void 0===s?"div":s,c=e.container,d=void 0!==c&&c,p=e.direction,f=void 0===p?"row":p,h=e.item,m=void 0!==h&&h,g=e.justify,v=e.justifyContent,y=void 0===v?"flex-start":v,b=e.lg,x=void 0!==b&&b,E=e.md,w=void 0!==E&&E,C=e.sm,S=void 0!==C&&C,k=e.spacing,L=void 0===k?0:k,R=e.wrap,O=void 0===R?"wrap":R,_=e.xl,I=void 0!==_&&_,P=e.xs,T=void 0!==P&&P,N=e.zeroMinWidth,q=void 0!==N&&N,M=Mm(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","justifyContent","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),D=pm(a.root,l,d&&[a.container,0!==L&&a["spacing-xs-".concat(String(L))]],m&&a.item,q&&a.zeroMinWidth,"row"!==f&&a["direction-xs-".concat(String(f))],"wrap"!==O&&a["wrap-xs-".concat(String(O))],"stretch"!==i&&a["align-items-xs-".concat(String(i))],"stretch"!==r&&a["align-content-xs-".concat(String(r))],"flex-start"!==(g||y)&&a["justify-content-xs-".concat(String(g||y))],!1!==T&&a["grid-xs-".concat(String(T))],!1!==S&&a["grid-sm-".concat(String(S))],!1!==w&&a["grid-md-".concat(String(w))],!1!==x&&a["grid-lg-".concat(String(x))],!1!==I&&a["grid-xl-".concat(String(I))]);return ye.exports.createElement(u,Dm({className:D,ref:t},M))})),Ab=tv((function(e){return Dm({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-content-xs-center":{justifyContent:"center"},"justify-content-xs-flex-end":{justifyContent:"flex-end"},"justify-content-xs-space-between":{justifyContent:"space-between"},"justify-content-xs-space-around":{justifyContent:"space-around"},"justify-content-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return Nb.forEach((function(r){var o=e.spacing(r);0!==o&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(Mb(o,2)),width:"calc(100% + ".concat(Mb(o),")"),"& > $item":{padding:Mb(o,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};qb.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var o="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:o,flexGrow:0,maxWidth:o}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Dm(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(Db);function zb(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var jb={entering:{opacity:1,transform:zb(1)},entered:{opacity:1,transform:"none"}},Fb=ye.exports.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,l=e.onEntered,s=e.onEntering,u=e.onExit,c=e.onExited,d=e.onExiting,p=e.style,f=e.timeout,h=void 0===f?"auto":f,m=e.TransitionComponent,g=void 0===m?Oy:m,v=Mm(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),y=ye.exports.useRef(),b=ye.exports.useRef(),x=ev(),E=x.unstable_strictMode&&!o,w=ye.exports.useRef(null),C=oy(n.ref,t),S=oy(E?w:void 0,C),k=function(e){return function(t,n){if(e){var r=my(E?[w.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},L=k(s),R=k((function(e,t){!function(e){e.scrollTop}(e);var n,r=My({style:p,timeout:h},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===h?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=o,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:i}),x.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),O=k(l),_=k(d),I=k((function(e){var t,n=My({style:p,timeout:h},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===h?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:o}),x.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=zb(.75),u&&u(e)})),P=k(c);return ye.exports.useEffect((function(){return function(){clearTimeout(y.current)}}),[]),ye.exports.createElement(g,Dm({appear:!0,in:i,nodeRef:E?w:void 0,onEnter:R,onEntered:O,onEntering:L,onExit:I,onExited:P,onExiting:_,addEndListener:function(e,t){var n=E?e:t;"auto"===h&&(y.current=setTimeout(n,b.current||0))},timeout:"auto"===h?null:h},v),(function(e,t){return ye.exports.cloneElement(n,Dm({style:Dm({opacity:0,transform:zb(.75),visibility:"exited"!==e||i?void 0:"hidden"},jb[e],p,n.props.style),ref:S},t))}))}));Fb.muiSupportAuto=!0;var Bb=Fb,Ub=ye.exports.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"inherit":o,a=e.component,l=void 0===a?"span":a,s=e.fontSize,u=void 0===s?"medium":s,c=Mm(e,["classes","className","color","component","fontSize"]);return ye.exports.createElement(l,Dm({className:pm("material-icons",n.root,r,"inherit"!==i&&n["color".concat(Xv(i))],"default"!==u&&"medium"!==u&&n["fontSize".concat(Xv(u))]),"aria-hidden":!0,ref:t},c))}));Ub.muiName="Icon";var Hb=tv((function(e){return{root:{userSelect:"none",fontSize:e.typography.pxToRem(24),width:"1em",height:"1em",overflow:"hidden",flexShrink:0},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(36)}}}),{name:"MuiIcon"})(Ub),Wb=ye.exports.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,l=e.disablePointerEvents,s=void 0!==l&&l,u=e.disableTypography,c=void 0!==u&&u,d=e.position,p=e.variant,f=Mm(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),h=rb()||{},m=p;return p&&h.variant,h&&!m&&(m=h.variant),ye.exports.createElement(ob.Provider,{value:null},ye.exports.createElement(a,Dm({className:pm(r.root,o,"end"===d?r.positionEnd:r.positionStart,s&&r.disablePointerEvents,h.hiddenLabel&&r.hiddenLabel,"filled"===m&&r.filled,"dense"===h.margin&&r.marginDense),ref:t},f),"string"!=typeof n||c?n:ye.exports.createElement(Yy,{color:"textSecondary"},n)))})),Vb=tv({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(Wb),$b=ye.exports.createContext({}),Kb=ye.exports.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,l=e.dense,s=void 0!==l&&l,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,p=Mm(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=ye.exports.useMemo((function(){return{dense:s}}),[s]);return ye.exports.createElement($b.Provider,{value:f},ye.exports.createElement(a,Dm({className:pm(r.root,o,s&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},p),d,n))})),Gb=tv({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Kb),Zb="undefined"==typeof window?ye.exports.useEffect:ye.exports.useLayoutEffect,Xb=ye.exports.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,l=void 0!==a&&a,s=e.children,u=e.classes,c=e.className,d=e.component,p=e.ContainerComponent,f=void 0===p?"li":p,h=e.ContainerProps,m=(h=void 0===h?{}:h).className,g=Mm(h,["className"]),v=e.dense,y=void 0!==v&&v,b=e.disabled,x=void 0!==b&&b,E=e.disableGutters,w=void 0!==E&&E,C=e.divider,S=void 0!==C&&C,k=e.focusVisibleClassName,L=e.selected,R=void 0!==L&&L,O=Mm(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),_=ye.exports.useContext($b),I={dense:y||_.dense||!1,alignItems:r},P=ye.exports.useRef(null);Zb((function(){i&&P.current&&P.current.focus()}),[i]);var T,N,q=ye.exports.Children.toArray(s),M=q.length&&(T=q[q.length-1],N=["ListItemSecondaryAction"],ye.exports.isValidElement(T)&&-1!==N.indexOf(T.type.muiName)),D=oy(ye.exports.useCallback((function(e){P.current=nt.exports.findDOMNode(e)}),[]),t),A=Dm({className:pm(u.root,c,I.dense&&u.dense,!w&&u.gutters,S&&u.divider,x&&u.disabled,l&&u.button,"center"!==r&&u.alignItemsFlexStart,M&&u.secondaryAction,R&&u.selected),disabled:x},O),z=d||"li";return l&&(A.component=d||"div",A.focusVisibleClassName=pm(u.focusVisible,k),z=Wy),M?(z=A.component||d?z:"div","li"===f&&("li"===z?z="div":"li"===A.component&&(A.component="div")),ye.exports.createElement($b.Provider,{value:I},ye.exports.createElement(f,Dm({className:pm(u.container,m),ref:D},g),ye.exports.createElement(z,A,q),q.pop()))):ye.exports.createElement($b.Provider,{value:I},ye.exports.createElement(z,Dm({ref:D},A),q))})),Qb=tv((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(Xb),Jb=ye.exports.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Mm(e,["classes","className"]),i=ye.exports.useContext($b);return ye.exports.createElement("div",Dm({className:pm(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),Yb=tv((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Jb);function ex(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function tx(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function nx(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function rx(e){return"function"==typeof e?e():e}var ox=ye.exports.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,l=e.anchorReference,s=void 0===l?"anchorEl":l,u=e.children,c=e.classes,d=e.className,p=e.container,f=e.elevation,h=void 0===f?8:f,m=e.getContentAnchorEl,g=e.marginThreshold,v=void 0===g?16:g,y=e.onEnter,b=e.onEntered,x=e.onEntering,E=e.onExit,w=e.onExited,C=e.onExiting,S=e.open,k=e.PaperProps,L=void 0===k?{}:k,R=e.transformOrigin,O=void 0===R?{vertical:"top",horizontal:"left"}:R,_=e.TransitionComponent,I=void 0===_?Bb:_,P=e.transitionDuration,T=void 0===P?"auto":P,N=e.TransitionProps,q=void 0===N?{}:N,M=Mm(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),D=ye.exports.useRef(),A=ye.exports.useCallback((function(e){if("anchorPosition"===s)return a;var t=rx(r),n=(t&&1===t.nodeType?t:Yv(D.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+ex(n,o),left:n.left+tx(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,s]),z=ye.exports.useCallback((function(e){var t=0;if(m&&"anchorEl"===s){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[i.vertical,s,m]),j=ye.exports.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:ex(e,O.vertical)+t,horizontal:tx(e,O.horizontal)}}),[O.horizontal,O.vertical]),F=ye.exports.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},o=j(n,t);if("none"===s)return{top:null,left:null,transformOrigin:nx(o)};var i=A(t),a=i.top-o.vertical,l=i.left-o.horizontal,u=a+n.height,c=l+n.width,d=ey(rx(r)),p=d.innerHeight-v,f=d.innerWidth-v;if(a<v){var h=a-v;a-=h,o.vertical+=h}else if(u>p){var m=u-p;a-=m,o.vertical+=m}if(l<v){var g=l-v;l-=g,o.horizontal+=g}else if(c>f){var y=c-f;l-=y,o.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(l),"px"),transformOrigin:nx(o)}}),[r,s,A,z,j,v]),B=ye.exports.useCallback((function(){var e=D.current;if(e){var t=F(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[F]),U=ye.exports.useCallback((function(e){D.current=nt.exports.findDOMNode(e)}),[]);ye.exports.useEffect((function(){S&&B()})),ye.exports.useImperativeHandle(n,(function(){return S?{updatePosition:function(){B()}}:null}),[S,B]),ye.exports.useEffect((function(){if(S){var e=Jv((function(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[S,B]);var H=T;"auto"!==T||I.muiSupportAuto||(H=void 0);var W=p||(r?Yv(rx(r)).body:void 0);return ye.exports.createElement(wb,Dm({container:W,open:S,ref:t,BackdropProps:{invisible:!0},className:pm(c.root,d)},M),ye.exports.createElement(I,Dm({appear:!0,in:S,onEnter:y,onEntered:b,onExit:E,onExited:w,onExiting:C,timeout:H},q,{onEntering:Qv((function(e,t){x&&x(e,t),B()}),q.onEntering)}),ye.exports.createElement(Ay,Dm({elevation:h,ref:U},L,{className:pm(c.paper,L.className)}),u)))})),ix=tv({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(ox);function ax(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function lx(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function sx(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function ux(e,t,n,r,o,i){for(var a=!1,l=o(e,t,!!t&&n);l;){if(l===e.firstChild){if(a)return;a=!0}var s=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&sx(l,i)&&!s)return void l.focus();l=o(e,l,n)}}var cx="undefined"==typeof window?ye.exports.useEffect:ye.exports.useLayoutEffect,dx=ye.exports.forwardRef((function(e,t){var n=e.actions,r=e.autoFocus,o=void 0!==r&&r,i=e.autoFocusItem,a=void 0!==i&&i,l=e.children,s=e.className,u=e.disabledItemsFocusable,c=void 0!==u&&u,d=e.disableListWrap,p=void 0!==d&&d,f=e.onKeyDown,h=e.variant,m=void 0===h?"selectedMenu":h,g=Mm(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),v=ye.exports.useRef(null),y=ye.exports.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});cx((function(){o&&v.current.focus()}),[o]),ye.exports.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!v.current.style.width;if(e.clientHeight<v.current.clientHeight&&n){var r="".concat(db(),"px");v.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,v.current.style.width="calc(100% + ".concat(r,")")}return v.current}}}),[]);var b=oy(ye.exports.useCallback((function(e){v.current=nt.exports.findDOMNode(e)}),[]),t),x=-1;ye.exports.Children.forEach(l,(function(e,t){ye.exports.isValidElement(e)&&(e.props.disabled||("selectedMenu"===m&&e.props.selected||-1===x)&&(x=t))}));var E=ye.exports.Children.map(l,(function(e,t){if(t===x){var n={};return a&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===m&&(n.tabIndex=0),ye.exports.cloneElement(e,n)}return e}));return ye.exports.createElement(Gb,Dm({role:"menu",ref:b,className:s,onKeyDown:function(e){var t=v.current,n=e.key,r=Yv(t).activeElement;if("ArrowDown"===n)e.preventDefault(),ux(t,r,p,c,ax);else if("ArrowUp"===n)e.preventDefault(),ux(t,r,p,c,lx);else if("Home"===n)e.preventDefault(),ux(t,null,p,c,ax);else if("End"===n)e.preventDefault(),ux(t,null,p,c,lx);else if(1===n.length){var o=y.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);var l=r&&!o.repeating&&sx(r,o);o.previousKeyMatched&&(l||ux(t,r,!1,c,ax,o))?e.preventDefault():o.previousKeyMatched=!1}f&&f(e)},tabIndex:o?0:-1},g),E)})),px=ye.exports.forwardRef((function(e,t){var n,r=e.classes,o=e.className,i=e.component,a=void 0===i?"li":i,l=e.disableGutters,s=void 0!==l&&l,u=e.ListItemClasses,c=e.role,d=void 0===c?"menuitem":c,p=e.selected,f=e.tabIndex,h=Mm(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==f?f:-1),ye.exports.createElement(Qb,Dm({button:!0,role:d,tabIndex:n,component:a,selected:p,disableGutters:s,classes:Dm({dense:r.dense},u),className:pm(r.root,o,p&&r.selected,!s&&r.gutters),ref:t},h))})),fx=tv((function(e){return{root:Dm({},e.typography.body1,qm({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Dm({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(px),hx=ye.exports.forwardRef((function(e,t){e.children;var n=e.classes,r=e.className,o=e.label,i=e.labelWidth,a=e.notched,l=e.style,s=Mm(e,["children","classes","className","label","labelWidth","notched","style"]),u="rtl"===ev().direction?"right":"left";if(void 0!==o)return ye.exports.createElement("fieldset",Dm({"aria-hidden":!0,className:pm(n.root,r),ref:t,style:l},s),ye.exports.createElement("legend",{className:pm(n.legendLabelled,a&&n.legendNotched)},o?ye.exports.createElement("span",null,o):ye.exports.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var c=i>0?.75*i+8:.01;return ye.exports.createElement("fieldset",Dm({"aria-hidden":!0,style:Dm(qm({},"padding".concat(Xv(u)),8),l),className:pm(n.root,r),ref:t},s),ye.exports.createElement("legend",{className:n.legend,style:{width:a?c:.01}},ye.exports.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))})),mx=tv((function(e){return{root:{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"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(hx),gx=ye.exports.forwardRef((function(e,t){var n=e.classes,r=e.fullWidth,o=void 0!==r&&r,i=e.inputComponent,a=void 0===i?"input":i,l=e.label,s=e.labelWidth,u=void 0===s?0:s,c=e.multiline,d=void 0!==c&&c,p=e.notched,f=e.type,h=void 0===f?"text":f,m=Mm(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return ye.exports.createElement(Tb,Dm({renderSuffix:function(e){return ye.exports.createElement(mx,{className:n.notchedOutline,label:l,labelWidth:u,notched:void 0!==p?p:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Dm({},n,{root:pm(n.root,n.underline),notchedOutline:null}),fullWidth:o,inputComponent:a,multiline:d,ref:t,type:h},m))}));gx.muiName="Input";var vx=tv((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(gx);function yx(){const[e,t]=ye.exports.useState(),[n,r]=ye.exports.useState(),o=ye.exports.useCallback(e=>{e&&t(e)},[]),i=()=>{const{left:t,top:n,width:o,height:i}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:i})};return ye.exports.useLayoutEffect(()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(i);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}}},[e]),[o,n,e]}function bx(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function xx(e){let{size:t,style:r={},viewBox:i="0 0 16 16",shapes:a=[]}=e;const l=n({fontSize:bx(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r);return tt.createElement("i",{style:l},tt.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:i,fill:"currentColor"},a.map((e,t)=>{let{type:n,attrs:r}=e;return tt.createElement(n,o({key:t},r))})))}var Ex=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var wx=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"}}]}))(e));var Cx=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e));function Sx(){return(Sx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function kx(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lx(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Rx(e,t){var n;void 0===t&&(t=Lx);var r,o=[],i=!1;return function(){for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];return i&&n===this&&t(l,o)||(r=e.apply(this,l),i=!0,n=this,o=l),r}}var Ox="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function _x(e){cancelAnimationFrame(e.id)}var Ix=null;function Px(e){if(void 0===e&&(e=!1),null===Ix||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?Ix="positive-descending":(t.scrollLeft=1,Ix=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Ix}return Ix}var Tx=function(e,t){return e};function Nx(e){var t,n,r=e.getItemOffset,o=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return n=t=function(e){var t,n;function p(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,kx(kx(n))),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:kx(kx(n)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=Rx((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=Rx((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,l=o.itemSize,s=o.layout,u=n._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=Rx((function(e,t,n){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(Px()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){var e,t,r,o;null!==n._resetIsScrollingTimeoutId&&_x(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=(e=n._resetIsScrolling,t=150,r=Ox(),o={id:requestAnimationFrame((function n(){Ox()-r>=t?e.call(null):o.id=requestAnimationFrame(n)}))})},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}n=e,(t=p).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,p.getDerivedStateFromProps=function(e,t){return qx(e,t),d(e),null};var f=p.prototype;return f.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)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(a(this.props,e,t,r,this._instanceProps))},f.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()},f.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(Px()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&_x(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,r=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?Tx:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,y=e.width,b=this.state.isScrolling,x="horizontal"===r||"horizontal"===f,E=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],S=w[1],k=[];if(u>0)for(var L=C;L<=S;L++)k.push(ye.exports.createElement(t,{data:c,key:p(L,c),index:L,isScrolling:v?b:void 0,style:this._getItemStyle(L)}));var R=o(this.props,this._instanceProps);return ye.exports.createElement(h||m||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:Sx({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:r},g)},ye.exports.createElement(l||s||"div",{children:k,ref:a,style:{height:x?"100%":R,pointerEvents:b?"none":void 0,width:x?R:"100%"}}))},f._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,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},f._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 u=l(this.props,a,this._instanceProps),c=s(this.props,u,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,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},p}(ye.exports.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},n}var qx=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Mx=Nx({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r){var o=e.direction,i=e.height,a=e.itemCount,l=e.itemSize,s=e.layout,u=e.width,c="horizontal"===o||"horizontal"===s?u:i,d=Math.max(0,a*l-c),p=Math.min(d,t*l),f=Math.max(0,t*l-c+l);switch("smart"===n&&(n=r>=f-c&&r<=p+c?"auto":"center"),n){case"start":return p;case"end":return f;case"center":var h=Math.round(f+(p-f)/2);return h<Math.ceil(c/2)?0:h>d+Math.floor(c/2)?d:h;case"auto":default:return r>=f&&r<=p?r:r<f?f:p}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,l=e.layout,s=e.width,u=t*a,c="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((c+n-u)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});var Dx=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ax=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),zx=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},jx=function(e){function t(){var e,n,r;Dx(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=zx(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},zx(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Ax(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,i=n.minimumBatchSize,a=void 0===i?10:i,l=n.threshold,s=void 0===l?15:l,u=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],l=null,s=null,u=o;u<=i;u++)t(u)?null!==s&&(a.push(l,s),l=s=null):(s=u,null===l&&(l=u));if(null!==s){for(var c=Math.min(Math.max(s,l+r-1),n-1),d=s+1;d<=c&&!t(d);d++)s=d;a.push(l,s)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-s),stopIndex:Math.min(o-1,t+s)});(this._memoizedUnloadedRanges.length!==u.length||this._memoizedUnloadedRanges.some((function(e,t){return u[t]!==e})))&&(this._memoizedUnloadedRanges=u,this._loadUnloadedRanges(u))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],i=e[r+1],a=n(o,i);null!=a&&a.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:i})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}(ye.exports.PureComponent);const Fx=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var Bx=e=>xx(Fx(e));const Ux=cm(e=>({row:{flexWrap:"nowrap",borderBottom:"1px solid ".concat(e.palette.divider),"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(e.palette.custom.focusOutline),outline:"none"}},cell:{padding:"8px","& span":{whiteSpace:"nowrap",fontSize:"12px",lineHeight:"16px"},overflow:"hidden",textOverflow:"ellipsis"},icon:{padding:e.spacing(1)},S:{background:e.palette.selected.main,color:e.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px rgba(0, 0, 0, 0.3)",outline:"none"}},A:{background:e.palette.selected.alternative,color:e.palette.selected.alternativeContrastText},X:{background:e.palette.selected.excluded,color:e.palette.selected.excludedContrastText},highlighted:{backgroundColor:"#FFC72A"}}));function Hx(e){let{index:t,style:n,data:r}=e;const o=Ux(),i=[o.row];let a="";const{onClick:l,pages:s}=r;let u;if(s){const e=s.filter(e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight)[0];if(e){const n=e.qArea;t>=n.qTop&&t<n.qTop+n.qHeight&&([u]=e.qMatrix[t-n.qTop])}}let c=!1,d=!1;u&&(a=u.qText,c="L"===u.qState||"XL"===u.qState,d="S"===u.qState||"XS"===u.qState,"S"===u.qState||"L"===u.qState?i.push(o.S):"A"===u.qState?i.push(o.A):"X"!==u.qState&&"XS"!==u.qState&&"XL"!==u.qState||i.push(o.X));const p=u&&u.qHighlightRanges&&u.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[],f=p.reduce((e,t,n)=>{t.qCharPos>0&&0===n&&e.push([a.slice(0,t.qCharPos)]);const r=p[n-1];return r&&e.push([a.slice(r.qCharPos+r.qCharPos+1,t.qCharPos)]),e.push([a.slice(t.qCharPos,t.qCharPos+t.qCharCount),o.highlighted]),n===p.length-1&&t.qCharPos+t.qCharCount<a.length&&e.push([a.slice(t.qCharPos+t.qCharCount)]),e},[]);return tt.createElement(Ab,{container:!0,spacing:0,className:i.join(" ").trim(),style:n,onClick:l,role:"row",tabIndex:0,"data-n":u&&u.qElemNumber},tt.createElement(Ab,{item:!0,style:{minWidth:0,flexGrow:1},className:o.cell,title:"".concat(a)},0===p.length?tt.createElement(Yy,{component:"span",noWrap:!0,color:"inherit"},"".concat(a)):f.map((e,t)=>{let[n,r]=e;return tt.createElement(Yy,{component:"span",key:t,className:r,noWrap:!0},n)})),tt.createElement(Ab,{item:!0,className:o.icon},c&&tt.createElement(wx,{size:"small"}),d&&tt.createElement(Bx,{size:"small"})))}const Wx=cm(e=>({column:{flexWrap:"nowrap",borderRight:"1px solid ".concat(e.palette.divider),"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(e.palette.custom.focusOutline),outline:"none"}},cell:{padding:"8px","& span":{whiteSpace:"nowrap",fontSize:"12px",lineHeight:"16px"},overflow:"hidden",textOverflow:"ellipsis"},icon:{padding:e.spacing(1)},S:{background:e.palette.selected.main,color:e.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px rgba(0, 0, 0, 0.3)",outline:"none"}},A:{background:e.palette.selected.alternative,color:e.palette.selected.alternativeContrastText},X:{background:e.palette.selected.excluded,color:e.palette.selected.excludedContrastText},highlighted:{backgroundColor:"#FFC72A"}}));function Vx(e){let{index:t,style:n,data:r}=e;const o=Wx(),i=[o.column];let a="";const{onClick:l,pages:s}=r;let u;if(s){const e=s.filter(e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight)[0];if(e){const n=e.qArea;t>=n.qTop&&t<n.qTop+n.qHeight&&([u]=e.qMatrix[t-n.qTop])}}let c=!1,d=!1;u&&(a=u.qText,c="L"===u.qState||"XL"===u.qState,d="S"===u.qState||"XS"===u.qState,"S"===u.qState||"L"===u.qState?i.push(o.S):"A"===u.qState?i.push(o.A):"X"!==u.qState&&"XS"!==u.qState&&"XL"!==u.qState||i.push(o.X));const p=u&&u.qHighlightRanges&&u.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[],f=p.reduce((e,t,n)=>{t.qCharPos>0&&0===n&&e.push([a.slice(0,t.qCharPos)]);const r=p[n-1];return r&&e.push([a.slice(r.qCharPos+r.qCharPos+1,t.qCharPos)]),e.push([a.slice(t.qCharPos,t.qCharPos+t.qCharCount),o.highlighted]),n===p.length-1&&t.qCharPos+t.qCharCount<a.length&&e.push([a.slice(t.qCharPos+t.qCharCount)]),e},[]);return tt.createElement(Ab,{container:!0,spacing:0,className:i.join(" ").trim(),style:n,onClick:l,alignItems:"center",role:"row",tabIndex:0,"data-n":u&&u.qElemNumber},tt.createElement(Ab,{item:!0,style:{minWidth:0,flexGrow:1},className:o.cell,title:"".concat(a)},0===p.length?tt.createElement(Yy,{component:"span",noWrap:!0,color:"inherit"},"".concat(a)):f.map((e,t)=>{let[n,r]=e;return tt.createElement(Yy,{component:"span",key:t,className:r,noWrap:!0},n)})),tt.createElement(Ab,{item:!0,className:o.icon},c&&tt.createElement(wx,{size:"small"}),d&&tt.createElement(Bx,{size:"small"})))}function $x(e){let{model:t,selections:n,direction:r,height:o,width:i,listLayout:a="vertical"}=e;const[l]=Tv(t),[s,u]=ye.exports.useState(null),c=ye.exports.useRef(null),d=ye.exports.useRef({queue:[],validPages:!1}),p=ye.exports.useRef({pages:[]}),f=ye.exports.useCallback(e=>{if(l&&l.qListObject.qDimensionInfo.qLocked)return;const t=+e.currentTarget.getAttribute("data-n");Number.isNaN(t)||n.select({method:"selectListObjectValues",params:["/qListObjectDef",[t],!l.qListObject.qDimensionInfo.qIsOneAndOnlyOne]})},[t,l&&!!l.qListObject.qDimensionInfo.qLocked,l&&!!l.qListObject.qDimensionInfo.qIsOneAndOnlyOne]),h=ye.exports.useCallback(e=>{if(!s||!d.current.validPages)return!1;d.current.checkIdx=e;const t=s.filter(t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight)[0];return t&&t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight},[l,s]),m=ye.exports.useCallback((e,n)=>{d.current.queue.push({start:e,stop:n});const r=!!c.current&&c.current._listRef.state.isScrolling;return d.current.queue.length>10&&d.current.queue.shift(),clearTimeout(d.current.timeout),new Promise(e=>{d.current.timeout=setTimeout(()=>{const n=d.current.queue.slice(-2).sort((e,t)=>e.start-t.start);t.getListObjectData("/qListObjectDef",n.map(e=>({qTop:e.start,qHeight:e.stop-e.start+1,qLeft:0,qWidth:1}))).then(t=>{d.current.validPages=!0,p.current.pages=t,u(t),e()})},r?500:0)})},[l]);if(ye.exports.useEffect(()=>{if(d.current.queue=[],d.current.validPages=!1,c.current){if(c.current.resetloadMoreItemsCache(!0),l&&l.qSelectionInfo.qInSelections)return;c.current._listRef.scrollToItem(0)}},[l]),!l)return null;const g="horizontal"!==a,v=l.qListObject.qSize.qcy,y=g?33:200,b=o||8*y;return tt.createElement(jx,{isItemLoaded:h,itemCount:v,loadMoreItems:m,threshold:0,minimumBatchSize:100,ref:c},e=>{let{onItemsRendered:t,ref:n}=e;return d.current.listRef=n,tt.createElement(Mx,{direction:r,useIsScrolling:!0,style:{},height:b,width:i,itemCount:v,layout:a,itemData:{onClick:f,pages:s},itemSize:y,onItemsRendered:t,ref:n},g?Hx:Vx)})}const Kx=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),Gx=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Zx=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Xx=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var Qx=e=>{let{layout:t,model:n,translator:r}=e;return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:Kx,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0),action:()=>{n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:Zx,enabled:()=>["qOption"].some(e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0),action:()=>{n.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:Gx,enabled:()=>["qAlternative"].some(e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0),action:()=>{n.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:Xx,enabled:()=>["qAlternative","qExcluded"].some(e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0),action:()=>{n.selectListObjectExcluded("/qListObjectDef")}}]};const Jx=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function Yx(e){const t=Zh(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}const eE="njs-cell-action",tE=tt.forwardRef((e,t)=>{let{item:n,addAnchor:r=!1}=e;const o=Zh(),{hidden:i,disabled:a,style:l,hasSvgIconShape:s}=Yx(n);if(i)return null;const u=n.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&n.keyboardAction():null;return tt.createElement($y,{ref:r?null:t,title:n.label,onClick:n.action,onKeyDown:u,disabled:a,style:l,className:eE},s&&xx(n.getSvgIconShape()),r&&tt.createElement("div",{ref:t,style:{bottom:-o.spacing(.5),right:0,position:"absolute",width:"100%",height:0}}))}),nE=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]}),rE=e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var oE=e=>xx(rE(e));const iE=Jg(e=>({icon:{color:e.palette.text.primary}})),aE=e=>{let{item:t,onActionClick:n=(()=>{})}=e;const{hidden:r,disabled:o,hasSvgIconShape:i}=Yx(t),{icon:a}=iE();return r?null:tt.createElement(fx,{title:t.label,onClick:()=>{t.action(),n()},disabled:o},i&&tt.createElement(Yb,{className:a},xx(t.getSvgIconShape())),tt.createElement(Yy,{noWrap:!0},t.label))},lE=tt.forwardRef((e,t)=>{let{actions:r=[],show:i=!0,alignTo:a,popoverProps:l={},popoverPaperStyle:s={},onCloseOrActionClick:u=(()=>{})}=e;return r.length>0&&tt.createElement(ix,o({},l,{onClose:u,ref:t,open:i,anchorEl:a.current,getContentAnchorEl:null,container:a.current,disablePortal:!0,hideBackdrop:!0,style:{pointerEvents:"none"},transitionDuration:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:n({pointerEvents:"auto",maxWidth:"250px"},s)}}),tt.createElement(dx,null,r.map((e,t)=>tt.createElement(aE,{key:t,item:e,onActionClick:u}))))}),sE="njs-action-toolbar-popover",uE=Jg(e=>({itemSpacing:{padding:e.spacing(0,.5)},firstItemSpacing:{padding:e.spacing(0,.5,0,0)},lastItemSpacing:{padding:e.spacing(0,0,0,.5)}})),cE=tt.forwardRef((e,t)=>{let{actions:n=[],first:r=!1,last:o=!1,addAnchor:i=!1}=e;const{itemSpacing:a,firstItemSpacing:l,lastItemSpacing:s}=uE();return n.length>0?tt.createElement(Ab,{item:!0,container:!0,spacing:0,wrap:"nowrap"},n.map((e,u)=>{let c=[];const d=r&&0===u,p=o&&n.length-1===u;return d&&!p&&(c=[l]),p&&!d&&(c=[...c,s]),d||p||0!==c.length||(c=[a]),tt.createElement(Ab,{item:!0,key:e.key,className:c.join(" ").trim()},tt.createElement(tE,{key:e.key,item:e,ref:0===u?t:null,addAnchor:i}))})):null}),dE={pointerEvents:"none"},pE={vertical:"top",horizontal:"right"},fE={vertical:"bottom",horizontal:"right"},hE=e=>{let{show:t=!0,actions:n=[],maxItems:r=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:i={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:a={show:!1,anchorEl:null},focusHandler:l=null,actionsRefMock:s=null}=e;const u=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=ye.exports.useContext(hv);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:rE},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:e=>{o(e),r(),t.cancel()},getSvgIconShape:nE},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:e=>{o(e),n(),t.confirm()},getSvgIconShape:Fx}]}(o),{itemSpacing:c}=uE(),{translator:d,keyboardNavigation:p}=ye.exports.useContext(hv),[f,h]=ye.exports.useState(!1),[m,g]=ye.exports.useState(i.enabled),[v,y]=ye.exports.useState(i.actions),[b,x]=ye.exports.useState(i.alignTo),E=ye.exports.useRef(),w=ye.exports.useRef(),C=Zh(),S=ye.exports.useMemo(()=>({margin:C.spacing(.5,0)})),k=e=>{const t=w.current||s;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};ye.exports.useEffect(()=>()=>h(!1),[a.show]),ye.exports.useEffect(()=>{g(i.enabled)},[i.enabled]),ye.exports.useEffect(()=>{if(!l)return;l.on("focus_toolbar_first",()=>{const e=k(!1);e&&e.focus()}),l.on("focus_toolbar_last",()=>{const e=k(!0);e&&e.focus()})},[]);const L=ye.exports.useMemo(()=>n.filter(e=>!e.hidden),[n]);if(!o.show&&0===L.length)return null;const R={key:"more",label:d.get("Menu.More"),getSvgIconShape:Jx,hidden:!1,enabled:()=>m,action:()=>h(!f)};if(L.length>r){const e=L.splice(-(L.length-r)-1);g(!0),y([...e,...i.actions]),x(E)}const O=p&&l&&l.refocusContent?e=>{if("Tab"!==e.key)return;(e.shiftKey&&k(!1)===e.target||!e.shiftKey&&k(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),l.refocusContent())}:null,_=L.length>0,I=v.length>0,P=_&&o.show||I&&o.show,T=tt.createElement(Ab,{ref:w,onKeyDown:O,container:!0,spacing:0,wrap:"nowrap"},_&&tt.createElement(cE,{actions:L,first:!0,last:!I&&!o.show}),I&&tt.createElement(cE,{ref:E,actions:[R],first:!_,last:!o.show,addAnchor:!0}),P&&tt.createElement(Ab,{item:!0,className:c,style:S},tt.createElement(Sb,{orientation:"vertical"})),o.show&&tt.createElement(cE,{actions:u,first:!_&&!I,last:!0}),f&&tt.createElement(lE,{show:f,actions:v,alignTo:b,popoverProps:i.popoverProps,popoverPaperStyle:i.popoverPaperStyle,onCloseOrActionClick:()=>{h(!1)}}));return a.show?tt.createElement(ix,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:a.show,anchorEl:a.anchorEl,anchorOrigin:pE,transformOrigin:fE,hideBackdrop:!0,style:dE,PaperProps:{className:sE,style:{pointerEvents:"auto",padding:C.spacing(1,1)}}},T):t&&T};var mE=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M15.7873809,13.80959 C16.1870614,14.209868 15.9872212,15.1104934 15.4876205,15.5107714 C15.08794,15.9110493 14.1886588,16.2112578 13.7889782,15.8109798 L11.0911347,13.1091035 L10.9912145,12.5086866 L10.2917736,11.8082001 C9.19265216,12.5086866 7.89369045,13.0090341 6.49480859,13.0090341 C2.89768383,13.0090341 0,10.1070188 0,6.50451703 C0,2.90201529 2.89768383,0 6.49480859,0 C10.0919334,0 12.9896172,2.90201529 12.9896172,6.50451703 C12.9896172,7.90548992 12.4900165,9.20639333 11.7905756,10.3071577 L12.4900165,11.0076442 L13.0895373,11.1077137 L15.7873809,13.80959 Z M11.2909749,6.50451703 C11.2909749,5.20361362 10.7913743,4.00277971 9.89209309,3.00208478 C8.9928119,2.10145935 7.79377031,1.60111188 6.49480859,1.60111188 C5.19584688,1.60111188 3.99680529,2.10145935 2.99760397,3.00208478 C2.09832278,4.00277971 1.59872212,5.20361362 1.59872212,6.50451703 C1.59872212,7.80542043 2.09832278,9.00625434 2.99760397,9.90687978 C3.89688516,10.8075052 5.09592674,11.3078527 6.49480859,11.3078527 C7.79377031,11.4079222 8.9928119,10.9075747 9.89209309,9.90687978 C10.7913743,9.00625434 11.2909749,7.80542043 11.2909749,6.50451703 Z"}}]}))(e));const gE=cm(e=>({root:{"& fieldset":{borderRadius:0,borderColor:"".concat(e.palette.divider," transparent")}}})),vE="/qListObjectDef";function yE(e){let{model:t,autoFocus:n=!0}=e;const{translator:r}=ye.exports.useContext(hv),[o,i]=ye.exports.useState(""),a=gE();return tt.createElement(vx,{startAdornment:tt.createElement(Vb,{position:"start"},tt.createElement(mE,null)),className:[a.root].join(" "),autoFocus:n,margin:"dense",fullWidth:!0,placeholder:r.get("Listbox.Search"),value:o,onChange:e=>{i(e.target.value),t.searchListObjectFor(vE,e.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":t.acceptListObjectSearch(vE,!0),i("");break;case"Escape":t.abortListObjectSearch(vE)}}})}function bE(e){return Object.keys(f.prototype).forEach(t=>{e[t]=f.prototype[t]}),f.init(e),e}function xE(e,t){const[n]=$v(e),[r]=Tv(t),o=t?t.id:null,[i]=Fv(),[a]=Uv(),l=i.get(e.id);let s=a.get(o);return ye.exports.useEffect(()=>{n&&t&&!s&&(s=function(e){let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!1;const l={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(i=!0,this.emit("activated"),r.begin(o,e,!0))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo&&t.qListObject.qDimensionInfo.qLocked),isActive:()=>i,isModal:()=>n.isModal(o),goModal:e=>r.begin(o,e,!1),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return bE(l),l}({appSelections:n,appModal:l,model:t}),a.set(o,s),a.dispatch(!0))},[n,t]),ye.exports.useEffect(()=>{s&&s.setLayout(r)},[s,r]),[s]}function EE(e){let{alignTo:t,show:n,close:r,app:o,fieldName:i,stateName:a="$"}=e;const l=n&&Boolean(t.current),s=Zh(),[u]=qv({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:a,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:[i]}}},o,i,a),c=ye.exports.useCallback(()=>{u.lock("/qListObjectDef")},[u]),d=ye.exports.useCallback(()=>{u.unlock("/qListObjectDef")},[u]),{translator:p}=ye.exports.useContext(hv),f=ye.exports.useRef(),[h]=xE(o,u),[m]=Tv(u);if(ye.exports.useEffect(()=>{h&&l&&(h.isModal(u)||h.goModal("/qListObjectDef"))},[h,l]),!u||!m||!p)return null;const g=!0===m.qListObject.qDimensionInfo.qLocked,v=(e,t)=>{const n="escapeKeyDown"!==t;h.noModal(n),r()},y=Qx({layout:m,model:u,translator:p}),b=m.qListObject.qDimensionInfo.qStateCounts,x=b.qSelected+b.qSelectedExcluded+b.qLocked+b.qLockedExcluded>0;return tt.createElement(ix,{open:l,onClose:v,anchorEl:t.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px"}}},tt.createElement(Ab,{container:!0,direction:"column",spacing:0},tt.createElement(Ab,{item:!0,container:!0,style:{padding:s.spacing(1)}},tt.createElement(Ab,{item:!0},g?tt.createElement($y,{onClick:d,disabled:!g},tt.createElement(wx,null)):tt.createElement($y,{onClick:c,disabled:!x},tt.createElement(Cx,null))),tt.createElement(Ab,{item:!0,xs:!0}),tt.createElement(Ab,{item:!0},tt.createElement(hE,{more:{enabled:!g,actions:y,alignTo:f,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:h,onConfirm:v,onCancel:()=>v(0,"escapeKeyDown")}}))),tt.createElement(Ab,{item:!0,xs:!0},tt.createElement("div",{ref:f}),tt.createElement(yE,{model:u}),tt.createElement($x,{model:u,selections:h,direction:"ltr"}))))}const wE=cm(e=>({item:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover}}}));function CE(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const{translator:l}=ye.exports.useContext(hv),s=i||ye.exports.useRef(),u=Zh(),[c,d]=ye.exports.useState(!1),p=wE(),f=e=>{e.currentTarget.contains(e.target)&&d(!c)},h=()=>{d(!1),a()},m=t.selections[r];void 0===m.qTotal&&(m.qTotal=0);const g=m.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},v=(g.qSelected+g.qLocked)/m.qTotal,y=g.qAlternative/m.qTotal,b=(g.qExcluded+g.qLockedExcluded+g.qSelectedExcluded)/m.qTotal,x=g.qSelected+g.qSelectedExcluded+g.qLocked+g.qLockedExcluded,E=0===x&&0===m.qTotal;let w="";m.qTotal===x&&m.qTotal>1?w=l.get("CurrentSelections.All"):x>1&&m.qTotal?w=l.get("CurrentSelections.Of",[x,m.qTotal]):m.qSelectedFieldSelectionInfo&&(w=m.qSelectedFieldSelectionInfo.map(e=>e.qName).join(", ")),"$"!==t.states[r]&&(w="".concat(t.states[r],": ").concat(w));const C=[{color:u.palette.selected.main,ratio:v},{color:u.palette.selected.alternative,ratio:y},{color:u.palette.selected.excluded,ratio:b}];C.forEach((e,t)=>{e.offset=t?C[t-1].offset+C[t-1].ratio:0});let S=null,k=null,L=null,R=null;return i||(S=tt.createElement(Ab,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:m.qLocked?"0.3":""}},tt.createElement(Yy,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},m.qField),tt.createElement(Yy,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},w)),k=m.qLocked?tt.createElement(Ab,{item:!0},tt.createElement($y,null,tt.createElement(wx,null))):tt.createElement(Ab,{item:!0},tt.createElement($y,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(m.qField,t.states[r])}},tt.createElement(Ex,null))),L=tt.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===E&&C.map(e=>tt.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}}))),R=tt.createElement(Ab,{container:!0,spacing:0,ref:s,className:p.item,onClick:!1===o&&f||null},S,k,L,c&&tt.createElement(EE,{alignTo:s,show:c,close:h,app:n.model,fieldName:m.qField,stateName:t.states[r]}))),i?tt.createElement(EE,{alignTo:s,show:!0,close:h,app:n.model,fieldName:m.qField,stateName:t.states[r]}):R}var SE=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const kE=cm(e=>({item:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},badge:{padding:e.spacing(0,1)}}));function LE(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const i=kE(),[a,l]=ye.exports.useState(!!r),[s,u]=ye.exports.useState(-1),[c,d]=ye.exports.useState(r?r.current:null),p=r||ye.exports.useRef(),{translator:f}=ye.exports.useContext(hv),h=f.get("Selection.ClearAllStates"),m=()=>{u(-1),o()};let g=null;r||(g=tt.createElement(tt.Fragment,null,tt.createElement(Ab,{item:!0,xs:!0,zeroMinWidth:!0},tt.createElement(Gy,{className:i.badge,color:"secondary",badgeContent:t.states.length},tt.createElement(Yy,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),tt.createElement(Ab,{item:!0},tt.createElement("div",{style:{width:"12px"}})),tt.createElement(Ab,{item:!0},tt.createElement($y,null,tt.createElement(SE,null)))));const v=tt.createElement(Gb,{dense:!0},tt.createElement(Qb,{title:h,onClick:()=>{t.states.forEach(e=>n.clearField(t.name,e))}},tt.createElement(tb,{variant:"contained",fullWidth:!0},h)),t.states.map((e,r)=>tt.createElement(Qb,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),l(!1),u(t)})(e,r)},tt.createElement(Xy,{border:1,width:"100%",borderRadius:"borderRadius",borderColor:"divider"},tt.createElement(CE,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0}))))),y=tt.createElement(ix,{open:a,onClose:()=>{l(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},v),b=r?y:tt.createElement(Ab,{container:!0,spacing:0,className:i.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),p.current=e.currentTarget,l(!a))}},g,a&&y,s>-1&&tt.createElement(EE,{alignTo:p,show:s>-1,close:m,app:n.model,fieldName:t.selections[s].qField,stateName:t.states[s]}));return r&&s>-1?tt.createElement(EE,{alignTo:p,show:s>-1,close:m,app:n.model,fieldName:t.selections[s].qField,stateName:t.states[s]}):b}const RE=cm(e=>({item:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},badge:{padding:e.spacing(0,1)}}));function OE(e){let{items:t=[],api:n}=e;const r=RE(),o=Zh(),[i,a]=ye.exports.useState(!1),[l,s]=ye.exports.useState(-1),[u,c]=ye.exports.useState(null),d=ye.exports.useRef(),p=()=>{s(-1)};let f=null;return l>-1&&(f=t[l].states.length>1?tt.createElement(LE,{field:t[l],api:n,moreAlignTo:d,onClose:p}):tt.createElement(CE,{field:t[l],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:p})),tt.createElement(Ab,{container:!0,spacing:0,className:r.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),d.current=e.currentTarget,a(!i))}},tt.createElement(Ab,{item:!0},tt.createElement(Xy,{borderRadius:o.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:o.palette.selected.main,color:o.palette.selected.mainContrastText}},tt.createElement(Yy,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),tt.createElement(Ab,{item:!0},tt.createElement($y,null,tt.createElement(SE,null))),i&&tt.createElement(ix,{open:i,onClose:()=>{a(!1)},anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},tt.createElement(Gb,{dense:!0},t.map((e,t)=>tt.createElement(Qb,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),s(t)})(e,t)},tt.createElement(Xy,{border:1,width:"100%",borderRadius:"borderRadius",borderColor:"divider"},e.states.length>1?tt.createElement(LE,{field:e,api:n}):tt.createElement(CE,{field:e,api:n})))))),f)}function _E(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";e.qSelections.forEach(e=>{const r=e.qField,o=t[r]=t[r]||{name:r,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))})}function IE(e){let{api:t,app:n}=e;const r=Zh(),[o]=Dv(n),[i]=Tv(o),[a,l]=ye.exports.useState({items:[],more:[]}),[s]=Wv(),[u,c]=yx(),[d,p]=ye.exports.useState(0);return ye.exports.useEffect(()=>{if(!c)return;const{width:e}=c,t=Math.floor(e)-72,n=Math.floor(t/120);p(n)},[c]),ye.exports.useEffect(()=>{if(!(n&&o&&i&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&_E(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach(e=>_E(e.qSelectionObject,t,e.stateName)),Object.keys(t).map(e=>t[e])}(i);l(t=>{const r=e;if((()=>{const e=s.get(n.id);return e&&"njsListbox"===e.genericType})()&&r.length+1===t.items.length){const e=t.items.filter(e=>!1===r.some(t=>e.name===t.name))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}})},[n,o,i,t.isInModal(),d]),tt.createElement(Ab,{ref:u,container:!0,spacing:0,wrap:"nowrap",style:{height:"100%"}},a.items.map(e=>tt.createElement(Ab,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?tt.createElement(LE,{field:e,api:t}):tt.createElement(CE,{field:e,api:t}))),a.more.length>0&&tt.createElement(Ab,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},tt.createElement(OE,{items:a.more,api:t})))}var PE=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var TE=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));function NE(e){let{api:t,app:n}=e;const{translator:r}=ye.exports.useContext(hv),[o]=Av(n);return tt.createElement(Ab,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},tt.createElement(Ab,{item:!0},tt.createElement($y,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back()},tt.createElement(PE,null))),tt.createElement(Ab,{item:!0},tt.createElement($y,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward()},tt.createElement(TE,null))),tt.createElement(Ab,{item:!0},tt.createElement($y,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear()},tt.createElement(oE,null))))}const qE=e=>{let{app:t}=e;const n=Zh(),[r]=$v(t);return r?tt.createElement(Ab,{container:!0,spacing:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},tt.createElement(Ab,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},tt.createElement(NE,{api:r,app:t})),tt.createElement(Ab,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},tt.createElement(IE,{api:r,app:t}))):null};function ME(e){let{element:t,app:n}=e;return ud.createPortal(tt.createElement(qE,{app:n}),t)}var DE=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},AE=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),zE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jE=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},FE=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},BE=void 0;BE="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var UE=null,HE=null,WE=BE.clearTimeout,VE=BE.setTimeout,$E=BE.cancelAnimationFrame||BE.mozCancelAnimationFrame||BE.webkitCancelAnimationFrame,KE=BE.requestAnimationFrame||BE.mozRequestAnimationFrame||BE.webkitRequestAnimationFrame;function GE(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,l=void 0,s="undefined"!=typeof document&&document.attachEvent;if(!s){a=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;a(this),this.__resizeRAF__&&UE(this.__resizeRAF__),this.__resizeRAF__=HE((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var u=!1,c="";r="animationstart";var d="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(u=!0),!1===u)for(var h=0;h<d.length;h++)if(void 0!==f.style[d[h]+"AnimationName"]){c="-"+d[h].toLowerCase()+"-",r=p[h],u=!0;break}t="@"+c+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=c+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,u){if(s)i.attachEvent("onresize",u);else{if(!i.__resizeTriggers__){var c=i.ownerDocument,d=BE.getComputedStyle(i);d&&"static"===d.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(c),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=c.createElement("div")).className="resize-triggers";var p=c.createElement("div");p.className="expand-trigger",p.appendChild(c.createElement("div"));var f=c.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(p),i.__resizeTriggers__.appendChild(f),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",l,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(u)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==$E||null==KE?(UE=WE,HE=function(e){return VE(e,20)}):(UE=function(e){var t=FE(e,2),n=t[0],r=t[1];$E(n),WE(r)},HE=function(e){var t=KE((function(){WE(n),e()})),n=VE((function(){$E(t),e()}),20);return[t,n]});var ZE=function(e){function t(){var e,n,r;DE(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=jE(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var i=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,l=window.getComputedStyle(r._parentNode)||{},s=parseInt(l.paddingLeft,10)||0,u=parseInt(l.paddingRight,10)||0,c=parseInt(l.paddingTop,10)||0,d=parseInt(l.paddingBottom,10)||0,p=i-c-d,f=a-s-u;(!t&&r.state.height!==p||!n&&r.state.width!==f)&&(r.setState({height:i-c-d,width:a-s-u}),o({height:i,width:a}))}},r._setRef=function(e){r._autoSizer=e},jE(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),AE(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=GE(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,i=e.style,a=this.state,l=a.height,s=a.width,u={overflow:"visible"},c={},d=!1;return r||(0===l&&(d=!0),u.height=0,c.height=l),o||(0===s&&(d=!0),u.width=0,c.width=s),ye.exports.createElement("div",{className:n,ref:this._setRef,style:zE({},u,i)},!d&&t(c))}}]),t}(ye.exports.PureComponent);function XE(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:i}=e;return ud.createPortal(tt.createElement(QE,{app:t,fieldIdentifier:n,stateName:r,options:i}),o)}function QE(e){let{app:t,fieldIdentifier:r,stateName:o="$",options:i={}}=e;const{title:a,direction:l,listLayout:s,search:u=!0,properties:c={}}=i,d=n({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:o,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},title:a},c);let p;r.qLibraryId?(d.qListObjectDef.qLibraryId=r.qLibraryId,p=r.qLibraryId):(d.qListObjectDef.qDef.qFieldDefs=[r],p=r);const f=Zh(),[h]=qv(d,t,p,o),m=ye.exports.useCallback(()=>{h.lock("/qListObjectDef")},[h]),g=ye.exports.useCallback(()=>{h.unlock("/qListObjectDef")},[h]),{translator:v}=ye.exports.useContext(hv),y=ye.exports.useRef(),[b]=xE(t,h),[x]=Tv(h),[E,w]=ye.exports.useState(!1);if(ye.exports.useEffect(()=>{b&&(b.isModal(h)||(b.on("deactivated",()=>{w(!1)}),b.on("activated",()=>{w(!0)})))},[b]),ye.exports.useEffect(()=>{b&&w(b.isActive())},[b]),!h||!x||!v)return null;const C=!0===x.qListObject.qDimensionInfo.qLocked,S=Qx({layout:x,model:h,translator:v}),k=x.qListObject.qDimensionInfo.qStateCounts,L=k.qSelected+k.qSelectedExcluded+k.qLocked+k.qLockedExcluded>0,R=49+(u?40:0)+49;return tt.createElement(Ab,{container:!0,direction:"column",spacing:0,style:{height:"100%",minHeight:"".concat(R,"px")}},tt.createElement(Ab,{item:!0,container:!0,style:{padding:f.spacing(1),borderBottom:"1px solid ".concat(f.palette.divider)}},tt.createElement(Ab,{item:!0},C?tt.createElement($y,{onClick:g,disabled:!C},tt.createElement(wx,null)):tt.createElement($y,{onClick:m,disabled:!L},tt.createElement(Cx,null))),tt.createElement(Ab,{item:!0},tt.createElement(Yy,{variant:"h6",noWrap:!0},x.title||x.qListObject.qDimensionInfo.qFallbackTitle)),tt.createElement(Ab,{item:!0,xs:!0}),tt.createElement(Ab,{item:!0},tt.createElement(hE,{more:{enabled:!C,actions:S,alignTo:y,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:E,api:b,onConfirm:()=>{},onCancel:()=>{}}}))),u?tt.createElement(Ab,{item:!0},tt.createElement(yE,{model:h,autoFocus:!1})):"",tt.createElement(Ab,{item:!0,xs:!0},tt.createElement("div",{ref:y}),tt.createElement(ZE,null,e=>{let{height:t,width:n}=e;return tt.createElement($x,{model:h,selections:b,direction:l,listLayout:s,height:t,width:n})})))}ZE.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const JE=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function YE(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function ew(){return JE.map(YE).join("")}function tw(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function nw(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function rw(e){let{sn:t,properties:r,fields:o}=e;if(!o.length)return;const i=t.qae.data.targets[0];if(!i)return;const{propertyPath:a}=i,l=a.split("/");let s=r;for(let e=0;e<l.length;e++){const t=l[e];s=t?s[t]:s}const u=function(e){let{dc:t,def:r,properties:o}=e;t.qDimensions=t.qDimensions||[],t.qMeasures=t.qMeasures||[],t.qInterColumnSortOrder=t.qInterColumnSortOrder||[],t.qInitialDataFetch=t.qInitialDataFetch||[],t.qColumnOrder=t.qColumnOrder||[],t.qExpansionState=t.qExpansionState||[];const i=o,a={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const o="string"==typeof e?(e=>({qDef:{qFieldDefs:[e]}}))(e):n(n({},e),{},{qDef:e.qDef||{}});o.qDef.cId=o.qDef.cId||ew(),o.qDef.qSortCriterias=o.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],o.qOtherTotalSpec=o.qOtherTotalSpec||{},o.qAttributeExpressions=o.qAttributeExpressions||[],o.qAttributeDimensions=o.qAttributeDimensions||[],t.qDimensions.length<a.maxDimensions()?(t.qDimensions.push(o),tw(t.qInterColumnSortOrder,t.qDimensions.length-1),r.dimensions.added(o,i)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qDimensions.push(o))},removeDimension(e){const n=t.qDimensions.splice(e,1)[0];nw(t.qInterColumnSortOrder,e),r.dimensions.removed(n,i,e)},addMeasure(e){const o="string"==typeof e?(e=>({qDef:{qDef:e}}))(e):n(n({},e),{},{qDef:e.qDef||{}});o.qDef.cId=o.qDef.cId||ew(),o.qSortBy=o.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},o.qAttributeDimensions=o.qAttributeDimensions||[],o.qAttributeExpressions=o.qAttributeExpressions||[],t.qMeasures.length<a.maxMeasures()?(t.qMeasures.push(o),tw(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),r.measures.added(o,i)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qMeasures.push(o))},removeMeasure(e){const n=t.qMeasures.splice(e,1)[0];nw(t.qInterColumnSortOrder,t.qDimensions.length+e),r.measures.removed(n,i,e)},maxDimensions:()=>r.dimensions.max(t.qMeasures.length),maxMeasures:()=>r.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<a.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<a.maxMeasures()};return a}({dc:s,def:i,properties:r});o.forEach(e=>{"measure"===function(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}(e)?u.addMeasure(e):u.addDimension(e)})}var ow=(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},iw=(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n?i[o]=n:delete i[o]},aw=e=>0===Object.keys(e).length&&e.constructor===Object;var lw={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let 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}};const sw=2**53-1;function uw(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function cw(e,t){const n=w(!0,{},t,e);return ow(n,"qOtherTotalSpec.qOtherCounted")||iw(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),ow(n,"qOtherTotalSpec.qOtherLimit")||iw(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function dw(e,t){return w(!0,{},t,e)}function pw(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var fw={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach(t=>{e.qLayoutExclude.changed[t].to===ow(e,t)&&iw(e,t,e.qLayoutExclude.changed[t].from)})},isMasterItemProperty:uw,importCommonProperties:function(e,t,n){const r="masterobject"===ow(t,"properties.qInfo.qType")?"masterobject":ow(n,"qInfo.qType");iw(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:cw,createDefaultMeasure:dw,resolveValue:pw,getHypercubePath:function(e){const t=ow(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension: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}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(lw.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,lw.indexRemoved(n.qInterColumnSortOrder,i))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?iw(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||uw(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),o=w(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},i=n.measures||{max:0},a=pw(i.max,r.dimensions.length,sw),l=pw(i.min,r.dimensions.length,0);return{maxDimensions:pw(o.max,a,sw),minDimensions:pw(o.min,l,0),maxMeasures:a,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i}=e;const 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},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i,newHyperCubeDef:a}=e;const l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:i}=e;const a=t.data[0];let l;if(n>0)for(l=0;l<a.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(cw(a.dimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(cw(a.dimensions[l],i));else if(a.dimensions.length)for(l=0;l<a.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(cw(a.dimensions[l],i));if(a.excludedDimensions.length)for(l=0;l<a.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(cw(a.excludedDimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(cw(a.excludedDimensions[l],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let l;if(n>0)for(l=0;l<a.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(dw(a.measures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(dw(a.measures[l],i));else if(a.measures.length)for(l=0;l<a.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(dw(a.measures[l],i));if(a.excludedMeasures.length)for(l=0;l<a.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(dw(a.excludedMeasures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(dw(a.excludedMeasures[l],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=ow(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach(r=>{e.qDimensions.push(r),n.dimensions.added(r,t)})}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=ow(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach(r=>{e.qMeasures.push(r),n.measures.added(r,t)})}}};var hw={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,i=ow(o,n||""),a=i.qHyperCubeDef,l=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),l.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();lw.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete a.qLayoutExclude,Object.keys(o).forEach(e=>{r.properties[e]=o[e]}),n&&(r.properties.qHyperCubeDef=i.qHyperCubeDef,delete i.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach(e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])}),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(fw.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!aw(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},l=fw.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),s=ow(n,i||"").qHyperCubeDef,u=ow(l,i||"").qHyperCubeDef,{maxDimensions:c,minDimensions:d,maxMeasures:p,minMeasures:f}=fw.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=fw.getDefaultDimension(),defaultMeasure:m=fw.getDefaultMeasure()}=o;return u.qDimensions.length=0,u.qMeasures.length=0,fw.shouldInitLayoutExclude({exportFormat:t,maxDimensions:c,minDimensions:d,maxMeasures:p,minMeasures:f})&&fw.initLayoutExclude({exportFormat:t,maxDimensions:c,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:u}),fw.addDefaultDimensions({exportFormat:t,maxDimensions:c,minDimensions:d,newHyperCubeDef:u,defaultDimension:h}),fw.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:u,defaultMeasure:m}),fw.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:u}),fw.copyPropertyIfExist("qMaxStackedCells",s,u),fw.copyPropertyIfExist("qNoOfLeftDims",s,u),fw.copyPropertyOrSetDefault("qInitialDataFetch",s,u,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),fw.copyPropertyOrSetDefault("qMode",s,u,"S"),fw.copyPropertyOrSetDefault("qReductionMode",s,u,"N"),fw.copyPropertyOrSetDefault("qSortbyYValue",s,u),fw.copyPropertyOrSetDefault("qIndentMode",s,u),fw.copyPropertyOrSetDefault("qShowTotalsAbove",s,u),fw.importCommonProperties(l,t,n),fw.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),fw.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),a.qProperty=l,a}(e)};const mw=e=>ow(e,"data.targets.0.propertyPath"),gw=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return hw.exportProperties})(mw(e))},vw=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return hw.importProperties})(mw(e))},yw=async e=>{let{halo:t,model:r,cellRef:o,newType:i}=e;const a=await r.getFullPropertyTree(),l=o.current.getQae(),s=gw(l),u=(await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:i})).qae;return vw(u)({exportFormat:s({propertyTree:a,hypercubePath:fw.getHypercubePath(l)}),initialProperties:n({qInfo:{qType:i},visualization:i},ow(u,"properties.initial",{})),dataDefinition:ow(u,"data.targets.0.",{}),hypercubePath:fw.getHypercubePath(u)})},bw={hypercube:hw};var xw=e=>xx((e=>n(n({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));const Ew=e=>{let{d:t}=e;const n=Zh();let r="inherit",o=n.palette.success.main;t.missing?o=n.palette.warning.main:t.error&&(r="error",o=n.palette.error.main);const i={color:o},a=tt.createElement(Yy,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},tt.createElement(Hb,null,t.missing||t.error?tt.createElement(xw,{style:i}):tt.createElement(Bx,{style:i})));return tt.createElement(Ab,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},tt.createElement(Ab,{item:!0},a),tt.createElement(Ab,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},tt.createElement(Yy,{noWrap:!0,component:"p"},tt.createElement(Yy,{component:"span",variant:"subtitle2",color:r},t.description),tt.createElement(Yy,{component:"span"}," "),tt.createElement(Yy,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))},ww=e=>{let{data:t}=e;const n=Zh();return tt.createElement(Ab,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map((e,t)=>{const r=e.descriptions.map((e,t)=>tt.createElement(Ew,{d:e,key:t}));return r.length>0&&tt.createElement(Ab,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},tt.createElement(Yy,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)}))};function Cw(e){let{title:t="Error",message:n="",data:r=[]}=e;return tt.createElement(Ab,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},tt.createElement(Ab,{item:!0},tt.createElement(xw,{style:{fontSize:"38px"}})),tt.createElement(Ab,{item:!0},tt.createElement(Yy,{variant:"h6",align:"center","data-tid":"error-title"},t)),tt.createElement(Ab,{item:!0},tt.createElement(Yy,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),tt.createElement(ww,{data:r}))}const Sw=["size"],kw=cm(e=>({root:{position:"relative",display:"inline-block"},front:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},back:{color:e.palette.divider}})),Lw={small:16,medium:32,large:64,xlarge:128};function Rw(e){let{size:t="medium"}=e,n=i(e,Sw);const r=kw(),a=Lw[t];return tt.createElement("div",{className:r.root},tt.createElement(lb,o({variant:"determinate",value:100,className:r.back,size:a,thickness:3},n)),tt.createElement(lb,o({variant:"indeterminate",disableShrink:!0,className:r.front,size:a,thickness:3},n)))}const Ow=["cancel","translator"],_w=["retry","translator"],Iw=Jg(()=>({stripes:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})),Pw=e=>{let{cancel:t,translator:n}=e,r=i(e,Ow);return tt.createElement(tt.Fragment,null,tt.createElement(Ab,{container:!0,item:!0,direction:"column",alignItems:"center",spacing:2},tt.createElement(Ab,{item:!0},tt.createElement(Rw,null)),tt.createElement(Ab,{item:!0},tt.createElement(Yy,{variant:"h6",align:"center"},n.get("Object.Update.Active")))),tt.createElement(Ab,o({item:!0},r),tt.createElement(tb,{variant:"contained",onClick:t},n.get("Cancel"))))},Tw=e=>{let{retry:t,translator:n}=e,r=i(e,_w);return tt.createElement(tt.Fragment,null,tt.createElement(Ab,{item:!0},tt.createElement(xw,{style:{fontSize:"38px"}})),tt.createElement(Ab,{item:!0},tt.createElement(Yy,{variant:"h6",align:"center"},n.get("Object.Update.Cancelled"))),tt.createElement(Ab,{item:!0},tt.createElement(tb,o({variant:"contained",onClick:t},r),n.get("Retry"))))};function Nw(e){let{canCancel:t,canRetry:n,api:r}=e;const{stripes:o,cancel:i,retry:a}=Iw(),{translator:l}=ye.exports.useContext(hv);return tt.createElement(Ab,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:o,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},spacing:2},t&&tt.createElement(Pw,{cancel:r.cancel,translator:l,className:i}),n&&tt.createElement(Tw,{retry:r.retry,translator:l,className:a}))}function qw(){return tt.createElement(Ab,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},spacing:2},tt.createElement(Rw,{size:"large"}))}const Mw="njs-cell-title",Dw="njs-cell-sub-title",Aw=Jg(e=>({containerStyle:{flexGrow:0},containerTitleStyle:{paddingBottom:e.spacing(1)}})),zw=e=>{let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:i}=e;const a=t.showTitles&&!!t.title,l=t.showTitles&&!!t.subtitle,s=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,c]=ye.exports.useState([]),{containerStyle:d,containerTitleStyle:p}=Aw(),[f,h]=yx(),[m,g]=ye.exports.useState(!1);ye.exports.useEffect(()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions(e=>{c([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])})},[n]),ye.exports.useEffect(()=>{if(!h)return;const{width:e}=h;g(e<221)},[h]);const v=a||l,y=[d,...v?[p]:[]],b=(o||s)&&(m||!v),x=v&&!b&&!m,E=tt.createElement(hE,{show:x,selections:{show:s,api:n.component.selections,onKeyDeactivate:i.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:i});return tt.createElement(Ab,{ref:f,item:!0,container:!0,wrap:"nowrap",className:y.join(" ")},tt.createElement(Ab,{item:!0,zeroMinWidth:!0,xs:!0},tt.createElement(Ab,{container:!0,wrap:"nowrap",direction:"column"},a&&tt.createElement(Yy,{variant:"h6",noWrap:!0,className:Mw},t.title),l&&tt.createElement(Yy,{variant:"body2",noWrap:!0,className:Dw},t.subtitle))),tt.createElement(Ab,{item:!0},E))},jw="njs-cell-footer",Fw=Jg(e=>({itemStyle:{minWidth:0,paddingTop:e.spacing(1)}})),Bw=e=>{let{layout:t}=e;const{itemStyle:n}=Fw();return t&&t.showTitles&&t.footnote?tt.createElement(Ab,{container:!0},tt.createElement(Ab,{item:!0,className:n},tt.createElement(Yy,{noWrap:!0,variant:"body2",className:jw},t.footnote))):null};class Uw{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout(()=>{this.doNext()},10)}async doNext(){const e=this.next;this.next=null,e?(await e(),this.scheduleNext()):this.stop()}schedule(e){this.next=e,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}const Hw="njs-viz",Ww=e=>{let{sn:t,snOptions:r,snPlugins:o,layout:i,appLayout:a,halo:l}=e;const{component:s}=t,{theme:u,language:c,constraints:d,keyboardNavigation:p}=ye.exports.useContext(hv),[f]=ye.exports.useState(()=>new Uw),[h,m]=ye.exports.useState(!1),[g,v]=ye.exports.useState(0),[y,b,x]=yx(),[E,w]=ye.exports.useState(null),C=ye.exports.useCallback(e=>{e&&w(e)},[]);return ye.exports.useEffect(()=>{if(E)return s.created({options:r}),s.mounted(E),m(!0),()=>{f.stop(),s.willUnmount()}},[E,s]),ye.exports.useEffect(()=>{h&&E&&b&&(!s.isHooked&&i&&i.qSelectionInfo&&i.qSelectionInfo.qInSelections||f.schedule(()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),l.app&&l.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:i,options:r,plugins:o,embed:l.public.nebbie,context:n({constraints:d,theme:l.public.theme,appLayout:a,keyboardNavigation:p},s.isHooked?{}:{logicalSize:t.logicalSize({layout:i}),localeInfo:(a||{}).qLocaleInfo,permissions:e})})).then(e=>{!1!==e&&(0===g&&"function"==typeof r.onInitialRender&&r.onInitialRender.call(null),v(g+1))})}))},[b,r,o,E,x,i,a,u,c,d,h,p]),tt.createElement("div",{ref:y,"data-render-count":g,style:{position:"relative",height:"100%"},className:Hw},tt.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))},Vw="njs-cell",$w=(e,t)=>{switch(t.type){case"LOADING":return n(n({},e),{},{loading:!0});case"LOADED":return n(n({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return n(n({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return n(n({},e),{},{longRunningQuery:!0});case"ERROR":return n(n({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}},Kw=e=>{let{delay:t=750}=e;const[n,r]=ye.exports.useState(!1);return ye.exports.useEffect(()=>{const e=setTimeout(()=>r(!0),t);return()=>clearTimeout(e)},[]),n?tt.createElement(qw,null):null},Gw=e=>!e.qError||7005===e.qError.qErrorCode,Zw=(e,t,n,r,o)=>[...Array(e).keys()].map(e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,l=i&&!a&&t[e].qError,s=a&&t[e].qCalcCondMsg,u="".concat(l?r:a?s||o:i&&t[e].qFallbackTitle||""),c=n(e);return{description:c?"".concat(c).concat(u.length?":":""):null,label:u,missing:t&&!i&&!l&&e>=t.length||a,error:l}}),Xw=e=>e&&(Array.isArray(e)?e:[e])||[],Qw=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:Zw(o,Xw(a.qDimensionInfo),e=>r.dimensions.description(n,e),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Zw(i,Xw(a.qMeasureInfo),e=>r.measures.description(n,e),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Jw=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:l,hasLayoutErrors:s,layoutErrors:u}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,l=!1;const s=[];for(let u=0;u<t.length;++u){const c=t[u],d=c.dimensions.min(),p=c.measures.min(),f=c.resolveLayout(n),h=Xw(f.qDimensionInfo).filter(Gw),m=Xw(f.qMeasureInfo).filter(Gw);if(o+=d,i+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){a=!0,l=7005===f.qError.qErrorCode;const t=l&&f.qCalcCondMsg?f.qCalcCondMsg:l?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");s.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:s}})(e,o,t),c=[],d=[];let p=null;for(let n=0;n<o.length;++n){const a=o[n];if(!s&&i){const n=p||await r.getProperties();p=n;const o=Qw(e,t,n,a);c.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=c.filter(e=>!(e.missing||e.error)).length,h=e.get("Visualization.Incomplete.Dimensions",[f,a]),m=d.filter(e=>!(e.missing||e.error)).length,g=e.get("Visualization.Incomplete.Measures",[m,l]),v=[{title:h,descriptions:[...c]},{title:g,descriptions:[...d]}],y=s?u:v;return[s||i,{title:s?u[0].title:e.get("Visualization.Incomplete"),data:y}]},Yw=ye.exports.forwardRef((e,t)=>{let{halo:r,model:o,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s,currentId:u}=e;const{app:c,types:d}=r,{nebbie:p}=r.public,{translator:f,language:h,keyboardNavigation:m}=ye.exports.useContext(hv),g=Zh(),[v,y,b]=yx(),[x,E]=ye.exports.useReducer($w,{loading:!1,loaded:!1,longRunningQuery:!1,error:(w=l)?{title:w.message}:null,sn:null,visualization:null});var w;const[C,{validating:S,canCancel:k,canRetry:L},R]=Tv(o),[O]=Nv(c),[_,I,P]=yx(),[T,N]=ye.exports.useState(i),[q,M]=ye.exports.useState(a),[D]=xE(c,o),[A,z]=ye.exports.useState(!1),j=ye.exports.useRef({enter:null,leave:null}),F=ye.exports.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});ye.exports.useEffect(()=>{bE(F.current)},[]),F.current.blurCallback=e=>{r.root.toggleFocusOfCells(),e&&P&&P.focus()},F.current.refocusContent=()=>{x.sn.component&&"function"==typeof x.sn.component.focus&&x.sn.component.focus()};ye.exports.useEffect(()=>{if(l||!O||!C)return;if(x.visualization===C.visualization&&x.sn)return void(async e=>{const[t,n]=await Jw(f,C,e.generator.qae.data,o);E(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:x.sn,layout:C,model:o})})(x.sn);const e=d.getSupportedVersion(C.visualization,C.version);if(e)return(async(e,t)=>{E({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:l,nebbie:s,focusHandler:u}=e;try{return(await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o})).create({model:i,app:a,selections:l,nebbie:s,focusHandler:u})}catch(e){t({type:"ERROR",error:{title:e.message}})}})({dispatch:E,types:d,visualization:e,version:t,model:o,app:c,selections:D,nebbie:p,focusHandler:F.current});n&&(E({type:"LOADED",sn:n,visualization:e}),s())})(C.visualization,e),()=>{};E({type:"ERROR",error:{title:"Could not find a version of '".concat(C.visualization,"' that supports current object version. Did you forget to register ").concat(C.visualization,"?")}})},[d,x.sn,o,C,O,h]),ye.exports.useEffect(()=>{if(!S)return;const e=setTimeout(()=>E({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(e)},[S]),ye.exports.useImperativeHandle(t,()=>({getQae:()=>x.sn.generator.qae,toggleFocus(e){"function"==typeof x.sn.component.focus&&(e?x.sn.component.focus():x.sn.component.blur())},setSnOptions:N,setSnPlugins:M,async takeSnapshot(){const{width:e,height:t}=y;let n=JSON.parse(JSON.stringify(C));return"function"==typeof x.sn.component.setSnapshotData&&(n=await x.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:f.language(),theme:g.name,appLayout:O,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof r.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return r.config.snapshot.capture(e)}}),[x.sn,I,y,C,g.name,O]);let B=null;return x.loading&&!x.longRunningQuery?B=tt.createElement(Kw,null):x.error?B=tt.createElement(Cw,x.error):x.loaded&&(B=tt.createElement(Ww,{key:C.visualization,sn:x.sn,halo:r,snOptions:T,snPlugins:q,layout:C,appLayout:O})),tt.createElement(Ay,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},elevation:0,square:!0,className:Vw,ref:v,onMouseEnter:()=>{j.current.leave&&clearTimeout(j.current.leave),j.enter||(j.current.enter=setTimeout(()=>{z(!0),j.current.enter=null},250))},onMouseLeave:()=>{j.current.enter&&clearTimeout(j.current.enter),j.current.leave||(j.current.leave=setTimeout(()=>{z(!1),j.current.leave=null},750))}},tt.createElement(Ab,{container:!0,direction:"column",spacing:0,style:n({position:"relative",width:"100%",height:"100%",padding:g.spacing(1)},x.longRunningQuery?{opacity:"0.3"}:{})},b&&C&&x.sn&&tt.createElement(zw,{layout:C,sn:x.sn,anchorEl:b,hovering:A,focusHandler:F.current}," "),tt.createElement(Ab,{tabIndex:m?0:-1,onKeyDown:m?e=>{["Enter"," ","Spacebar"].includes(e.key)&&r.root.toggleFocusOfCells(u)}:null,item:!0,xs:!0,style:{height:"100%"},ref:_},B),tt.createElement(Bw,{layout:C})),x.longRunningQuery&&tt.createElement(Nw,{canCancel:k,canRetry:L,api:R}))});function eC(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,initialError:l}=e;const{root:s}=t,u=tt.createRef(),c=ew(),d=ud.createPortal(tt.createElement(Yw,{ref:u,halo:t,model:r,currentId:c,initialSnOptions:o,initialSnPlugins:i,initialError:l,onMount:a}),n,r.id),p=()=>{s.remove(d),r.removeListener("closed",p)};return r.on("closed",p),s.add(d),s.addCell(c,u),[p,u]}function tC(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function nC(e,t){return tC(e)&&tC(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function rC(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach(o=>{const i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?nC(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...rC("".concat(e).concat(o,"/"),t[o],n[o]))}),r}function oC(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach(e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error('Invalid plugin format: The plugin "'.concat(e.info.name,'" has no "fn" function'))})}const iC=()=>{};function aC(){let{model:e,halo:t,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=iC,a=null,l=null,s=null;const u=new Promise(e=>{s=e});let c={},d=[];const p=async e=>{l?(async()=>{await u,a.current.setSnOptions(n(n({},c),e))})():c=n(n({},c),e)},f=async e=>{oC(e),l?(async()=>{await u,a.current.setSnPlugins(e)})():d=e},h={id:e.id,async destroy(){await o(),i(),i=iC},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await yw({halo:t,model:e,cellRef:a,newType:n});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},__DO_NOT_USE__:{mount(n){if(l)throw new Error("Already mounted");return l=n,[i,a]=eC({halo:t,element:n,model:e,initialSnOptions:c,initialSnPlugins:d,initialError:r,onMount:s}),u},async applyProperties(t){const n=rC("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){p(e)},plugins(e){f(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot()}};return h}async function lC(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const i=aC({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&i.__DO_NOT_USE__.options(t.options),t.plugins&&i.__DO_NOT_USE__.plugins(t.plugins),t.element&&await i.__DO_NOT_USE__.mount(t.element),i}async function sC(e,t){let n,{type:r,version:o,fields:i,properties:a,options:l,plugins:s,element:u}=e,c={};try{const e=t.types.get({name:r,version:o});c=await e.initialProperties(a);const n=await e.supernova();i&&rw({sn:n,properties:c,fields:i}),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},c)}catch(e){n=e,c={qInfo:{qType:r},visualization:r}}const d=await t.app.createSessionObject(c);_v.set(d.id,d);const p=(e=>{const t=Rv({type:"SET",value:e});return()=>{t(),_v.clear(e.id)}})(d);return lC(d,{options:l,plugins:s,element:u},t,n,async()=>{await t.app.destroySessionObject(d.id),p()})}async function uC(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let l=Cv.get(a);l||(l=t.app.getObject(n),Cv.set(a,l));const s=await l;return _v.set(a,s),lC(s,{options:r,plugins:o,element:i},t)}function cC(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const dC=w.bind(null,!0),pC={},{isArray:fC}=Array;function hC(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function mC(e){return void 0===e}function gC(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function vC(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=mC(e[r||t])?i:e[t],e=e[r||t]}),e}function yC(e,t){let n=!0;if(hC(e)&&hC(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(r=>{yC(e[r],t[r])||(n=!1)}),n);if(fC(e)&&fC(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!yC(e[n],t[n]))return!1;return!0}return e===t}pC.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach(o=>{const i=function(e){return e?dC({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);yC(i,a)||gC(t,o)||(mC(a)?r.push({op:"add",path:l,value:i}):hC(i)&&hC(a)?r=r.concat(pC.generate(a,i,l)):fC(i)&&fC(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&mC(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(yC(t,o))return r;if(!mC(t[0])&&mC(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(pC.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(i)}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))}),Object.keys(e).forEach(o=>{mC(t[o])&&!gC(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})}),r},pC.apply=function(e,t){t.forEach(t=>{let n=vC(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(fC(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(fC(o)&&fC(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(hC(o)&&hC(t.value))a=o,Object.keys(a).forEach(e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!gC(a,e)&&delete a[e]}),dC(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=vC(e,t.from);fC(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(fC(n)?n.splice(+r,1):delete n[r]);var a})},pC.clone=function(e){return dC({},e)},pC.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},pC.updateObject=function(e,t){Object.keys(e).length?pC.apply(e,pC.generate(e,t)):dC(e,t)};const bC=e=>t=>{const r=(o=n(n({},t),{},{action(){"function"==typeof t.action&&t.action.call(r,e),r.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(r,e),active:"function"==typeof t.active?function(){return t.active.call(r,e)}:void 0}),Object.keys(f.prototype).forEach(e=>{o[e]=f.prototype[e]}),f.init(o),o);var o;return r};let xC,EC;function wC(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function CC(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function SC(e){LC(e.__hooks.list,!0),e.__hooks.obsolete=!0,e.__hooks.list.length=0,e.__hooks.pendingEffects.length=0,e.__hooks.pendingLayoutEffects.length=0,e.__hooks.actions=null,e.__hooks.imperativeHandle=null,e.__hooks.resizer=null,e.__hooks.accessibility=null,e.__actionsDispatch=null,clearTimeout(e.__hooks.micro),cancelAnimationFrame(e.__hooks.macro)}async function kC(e){if(e.__hooks.obsolete)return Promise.resolve();EC=-1,xC=e,xC.__hooks.initiated&&xC.__hooks.list.length;try{xC.fn.call(null)}catch(e){console.error(e)}xC.__hooks.initiated=!0;const t=xC.__hooks;return _C(xC),EC=void 0,xC=void 0,t.chain.promise||(t.chain.promise=new Promise(e=>{t.chain.resolve=e})),function(e){LC(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame(()=>{!function(e){LC(e.pendingEffects),e.macro=null,function(e){if(e.pendingPromises.length||e.micro||e.macro)return;e.chain.promise=null,e.chain.resolve(!e.waitForData)}(e)}(e)})}(t),t.chain.promise}function LC(e,t){try{e.forEach(e=>{"function"==typeof e.teardown&&e.teardown(),t||(e.teardown=e.value[0]())})}catch(e){console.error(e)}e.length=0}function RC(e,t){try{return Promise.all(e.__hooks.snaps.map(e=>Promise.resolve(e.fn(t)))).then(e=>e[e.length-1])}catch(e){console.error(e)}return Promise.resolve()}function OC(e){return e.__hooks.imperativeHandle}function _C(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function IC(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,_C(e))}function PC(e){if(void 0===xC)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=xC.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function TC(e){PC(++EC);return xC.context[e]}function NC(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function qC(e){return{__hooked:!0,fn:e,initiate:CC,run:kC,teardown:SC,runSnaps:RC,focus:FC,blur:BC,observeActions:IC,getImperativeHandle:OC,updateRectOnNextRun:NC}}function MC(e){const t=PC(++EC);if(!t.value){t.component=xC;const n=e=>{if(t.component.__hooks.obsolete)return;const n="function"==typeof e?e(t.value[0]):e;var r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout(()=>{r.__hooks.micro=null,kC(r)},0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function DC(e,t){const n=PC(++EC);wC(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===xC.__hooks.pendingEffects.indexOf(n)&&xC.__hooks.pendingEffects.push(n))}function AC(e,t){const n=PC(++EC);wC(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],xC.__hooks.pendingLayoutEffects.push(n))}function zC(e,t){const n=PC(++EC);return wC(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function jC(){return TC("element")}function FC(e){const t=e.__hooks.accessibility;t.active||(t.active=!0,t&&t.setter&&t.setter({active:!0,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}function BC(e){const t=e.__hooks.accessibility;t&&t.active&&(t.active=!1,t&&t.setter&&t.setter({active:!1,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}const UC={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},HC=Object.keys(UC);function WC(e,t){const r=n({},UC);var o;o=r,Object.keys(f.prototype).forEach(e=>{o[e]=f.prototype[e]}),f.init(o);const i={emit(){r.emit(...arguments)}};Object.keys(e.component||{}).forEach(t=>{-1!==HC.indexOf(t)?r[t]=e.component[t].bind(i):i[t]=e.component[t]});const a=function(e){let{sn:t,component:n}=e;const r={},o=[],i=bC(n);return((t.definition.selectionToolbar||{}).items||[]).forEach(e=>{const t=i(e);r[e.key]=t,o.push(t)}),(t.definition.actions||[]).forEach(e=>{const t=i(e);r[e.key]=t}),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:i}),l=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(i,{model:t.model,app:t.app,global:l,selections:t.selections,actions:a.actions}),Object.assign(r,{actions:a.actions,model:t.model,app:t.app,selections:t.selections}),[r,a]}function VC(e,t,r){"function"==typeof e.component&&(e.component=qC(e.component));const[o,i]=e.component&&e.component.__hooked?function(e,t,r){const o=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let i=!1;const a={},l=["appLayout","constraints"],s={};t.model&&t.model.session||(s.select=!0);const u={context:{model:t.model,app:t.app,global:o,selections:t.selections,nebbie:t.nebbie,element:void 0,deviceType:r.deviceType,theme:void 0,translator:r.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(u,{explicitResize:!!t.explicitResize})},render(t){let r=!i||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(r=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,r=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let n=!1;Object.keys(t.options).forEach(r=>{e[r]=t.options[r],this.context.options[r]!==t.options[r]&&(n=!0)}),n&&(this.context.options=e,r=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach((t,n)=>{this.context.plugins[n]!==t&&(e=!0)}),e&&(this.context.plugins=[...t.plugins],r=!0)}l.forEach(e=>{const o=t.context;if(o&&Object.prototype.hasOwnProperty.call(o,e)){let t=JSON.stringify(o[e]);"constraints"===e&&(t=JSON.stringify(n(n({},o[e]),s))),t!==a[e]&&(r=!0,a[e]=t,this.context[e]=JSON.parse(t))}})}else r=!0;return this.context.theme&&this.context.theme.name()!==a.themeName&&(r=!0,a.themeName=this.context.theme.name()),this.context.translator.language()!==a.language&&(r=!0,a.language=u.context.translator.language()),r?(i=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return l.forEach(e=>{a[e]=JSON.stringify(u.context[e])}),a.themeName=u.context.theme?u.context.theme.name():void 0,a.language=u.context.translator?u.context.translator.language():void 0,Object.assign(u,{selections:t.selections}),[u,null]}(e,t,r):WC(e,t),a=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.qae.properties.onChange.call({model:t.model},...r),t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then(o=>{const i=pC.clone(o),a=n.map(e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath}));pC.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const l=pC.generate(i,o).map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}));return t.model.__snInterceptor.applyPatches.call(this,l,r)})},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},a.push(t.model.__snInterceptor.teardown)),{generator:e,component:o,selectionToolbar:{items:i?i.selectionToolbarItems:[]},destroy(){a.forEach(e=>e())},logicalSize:e.definition.logicalSize||(()=>!1)}}const $C=()=>{};function KC(e,t){return void 0===e?()=>t:()=>e}function GC(e){const t=e||{};return{min:"function"==typeof t.min?t.min:KC(t.min,0),max:"function"==typeof t.max?t.max:KC(t.max,1e3),added:t.added||t.add||$C,description:t.description||$C,moved:t.moved||t.move||$C,removed:t.removed||t.remove||$C,replaced:t.replaced||t.replace||$C,isDefined:()=>!!e}}function ZC(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef or /qListObjectDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>((e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o})(e,n,{}),dimensions:GC(e.dimensions),measures:GC(e.measures)}}function XC(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);const r={properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(ZC)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function QC(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:XC(n.qae),component:n.component||{},create:e=>VC(r,e,t),definition:{}};return Object.keys(n).forEach(e=>{r[e]||(r.definition[e]=n[e])}),r}var JC={exports:{}};!function(e,t){var n;t=e.exports=d,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],i=t.src=[],a=t.tokens={},l=0;function s(e){a[e]=l++}s("NUMERICIDENTIFIER"),i[a.NUMERICIDENTIFIER]="0|[1-9]\\d*",s("NUMERICIDENTIFIERLOOSE"),i[a.NUMERICIDENTIFIERLOOSE]="[0-9]+",s("NONNUMERICIDENTIFIER"),i[a.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",s("MAINVERSION"),i[a.MAINVERSION]="("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")",s("MAINVERSIONLOOSE"),i[a.MAINVERSIONLOOSE]="("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")",s("PRERELEASEIDENTIFIER"),i[a.PRERELEASEIDENTIFIER]="(?:"+i[a.NUMERICIDENTIFIER]+"|"+i[a.NONNUMERICIDENTIFIER]+")",s("PRERELEASEIDENTIFIERLOOSE"),i[a.PRERELEASEIDENTIFIERLOOSE]="(?:"+i[a.NUMERICIDENTIFIERLOOSE]+"|"+i[a.NONNUMERICIDENTIFIER]+")",s("PRERELEASE"),i[a.PRERELEASE]="(?:-("+i[a.PRERELEASEIDENTIFIER]+"(?:\\."+i[a.PRERELEASEIDENTIFIER]+")*))",s("PRERELEASELOOSE"),i[a.PRERELEASELOOSE]="(?:-?("+i[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+i[a.PRERELEASEIDENTIFIERLOOSE]+")*))",s("BUILDIDENTIFIER"),i[a.BUILDIDENTIFIER]="[0-9A-Za-z-]+",s("BUILD"),i[a.BUILD]="(?:\\+("+i[a.BUILDIDENTIFIER]+"(?:\\."+i[a.BUILDIDENTIFIER]+")*))",s("FULL"),s("FULLPLAIN"),i[a.FULLPLAIN]="v?"+i[a.MAINVERSION]+i[a.PRERELEASE]+"?"+i[a.BUILD]+"?",i[a.FULL]="^"+i[a.FULLPLAIN]+"$",s("LOOSEPLAIN"),i[a.LOOSEPLAIN]="[v=\\s]*"+i[a.MAINVERSIONLOOSE]+i[a.PRERELEASELOOSE]+"?"+i[a.BUILD]+"?",s("LOOSE"),i[a.LOOSE]="^"+i[a.LOOSEPLAIN]+"$",s("GTLT"),i[a.GTLT]="((?:<|>)?=?)",s("XRANGEIDENTIFIERLOOSE"),i[a.XRANGEIDENTIFIERLOOSE]=i[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",s("XRANGEIDENTIFIER"),i[a.XRANGEIDENTIFIER]=i[a.NUMERICIDENTIFIER]+"|x|X|\\*",s("XRANGEPLAIN"),i[a.XRANGEPLAIN]="[v=\\s]*("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:"+i[a.PRERELEASE]+")?"+i[a.BUILD]+"?)?)?",s("XRANGEPLAINLOOSE"),i[a.XRANGEPLAINLOOSE]="[v=\\s]*("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:"+i[a.PRERELEASELOOSE]+")?"+i[a.BUILD]+"?)?)?",s("XRANGE"),i[a.XRANGE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAIN]+"$",s("XRANGELOOSE"),i[a.XRANGELOOSE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAINLOOSE]+"$",s("COERCE"),i[a.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",s("COERCERTL"),o[a.COERCERTL]=new RegExp(i[a.COERCE],"g"),s("LONETILDE"),i[a.LONETILDE]="(?:~>?)",s("TILDETRIM"),i[a.TILDETRIM]="(\\s*)"+i[a.LONETILDE]+"\\s+",o[a.TILDETRIM]=new RegExp(i[a.TILDETRIM],"g");s("TILDE"),i[a.TILDE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAIN]+"$",s("TILDELOOSE"),i[a.TILDELOOSE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAINLOOSE]+"$",s("LONECARET"),i[a.LONECARET]="(?:\\^)",s("CARETTRIM"),i[a.CARETTRIM]="(\\s*)"+i[a.LONECARET]+"\\s+",o[a.CARETTRIM]=new RegExp(i[a.CARETTRIM],"g");s("CARET"),i[a.CARET]="^"+i[a.LONECARET]+i[a.XRANGEPLAIN]+"$",s("CARETLOOSE"),i[a.CARETLOOSE]="^"+i[a.LONECARET]+i[a.XRANGEPLAINLOOSE]+"$",s("COMPARATORLOOSE"),i[a.COMPARATORLOOSE]="^"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+")$|^$",s("COMPARATOR"),i[a.COMPARATOR]="^"+i[a.GTLT]+"\\s*("+i[a.FULLPLAIN]+")$|^$",s("COMPARATORTRIM"),i[a.COMPARATORTRIM]="(\\s*)"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+"|"+i[a.XRANGEPLAIN]+")",o[a.COMPARATORTRIM]=new RegExp(i[a.COMPARATORTRIM],"g");s("HYPHENRANGE"),i[a.HYPHENRANGE]="^\\s*("+i[a.XRANGEPLAIN]+")\\s+-\\s+("+i[a.XRANGEPLAIN]+")\\s*$",s("HYPHENRANGELOOSE"),i[a.HYPHENRANGELOOSE]="^\\s*("+i[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+i[a.XRANGEPLAINLOOSE]+")\\s*$",s("STAR"),i[a.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u<l;u++)n(u,i[u]),o[u]||(o[u]=new RegExp(i[u]));function c(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[a.LOOSE]:o[a.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=c,t.valid=function(e,t){var n=c(e,t);return n?n.version:null},t.clean=function(e,t){var n=c(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=d,d.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},d.prototype.toString=function(){return this.version},d.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof d||(e=new d(e,this.options)),this.compareMain(e)||this.comparePre(e)},d.prototype.compareMain=function(e){return e instanceof d||(e=new d(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},d.prototype.comparePre=function(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return f(r,o)}while(++t)},d.prototype.compareBuild=function(e){e instanceof d||(e=new d(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return f(r,o)}while(++t)},d.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(v(e,t))return null;var n=c(e),r=c(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function h(e,t,n){return new d(e,n).compare(new d(t,n))}function m(e,t,n){return h(e,t,n)>0}function g(e,t,n){return h(e,t,n)<0}function v(e,t,n){return 0===h(e,t,n)}function y(e,t,n){return 0!==h(e,t,n)}function b(e,t,n){return h(e,t,n)>=0}function x(e,t,n){return h(e,t,n)<=0}function E(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return v(e,n,r);case"!=":return y(e,n,r);case">":return m(e,n,r);case">=":return b(e,n,r);case"<":return g(e,n,r);case"<=":return x(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===C?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),o=new d(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return h(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=m,t.lt=g,t.eq=v,t.neq=y,t.gte=b,t.lte=x,t.cmp=E,t.Comparator=w;var C={};function S(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof S)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new S(e.raw,t);if(e instanceof w)return new S(e.value,t);if(!(this instanceof S))return new S(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function k(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function L(e){return!e||"x"===e.toLowerCase()||"*"===e}function R(e,t,n,r,o,i,a,l,s,u,c,d,p){return((t=L(n)?"":L(r)?">="+n+".0.0":L(o)?">="+n+"."+r+".0":">="+t)+" "+(l=L(s)?"":L(u)?"<"+(+s+1)+".0.0":L(c)?"<"+s+"."+(+u+1)+".0":d?"<="+s+"."+u+"."+c+"-"+d:"<="+l)).trim()}function O(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==C&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function _(e,t,n){try{t=new S(t,n)}catch(e){return!1}return t.test(e)}function I(e,t,n,r){var o,i,a,l,s;switch(e=new d(e,r),t=new S(t,r),n){case">":o=m,i=x,a=g,l=">",s=">=";break;case"<":o=g,i=b,a=m,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(_(e,t,r))return!1;for(var u=0;u<t.set.length;++u){var c=t.set[u],p=null,f=null;if(c.forEach((function(e){e.semver===C&&(e=new w(">=0.0.0")),p=p||e,f=f||e,o(e.semver,p.semver,r)?p=e:a(e.semver,f.semver,r)&&(f=e)})),p.operator===l||p.operator===s)return!1;if((!f.operator||f.operator===l)&&i(e,f.semver))return!1;if(f.operator===s&&a(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new d(n[2],this.options.loose):this.semver=C},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new S(e.value,t),_(this.value,n,t));if(""===e.operator)return""===e.value||(n=new S(this.value,t),_(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),l=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||l||s},t.Range=S,S.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},S.prototype.toString=function(){return this.range},S.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[a.HYPHENRANGELOOSE]:o[a.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(o[a.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,o[a.COMPARATORTRIM]),e=(e=(e=e.replace(o[a.TILDETRIM],"$1~")).replace(o[a.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],l=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[a.CARETLOOSE]:o[a.CARET];return e.replace(r,(function(t,r,o,i,a){var l;return n("caret",e,t,r,o,i,a),L(r)?l="":L(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":L(i)?l="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),l="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),l="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",l),l}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[a.TILDELOOSE]:o[a.TILDE];return e.replace(r,(function(t,r,o,i,a){var l;return n("tilde",e,t,r,o,i,a),L(r)?l="":L(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":L(i)?l=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),l=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):l=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",l),l}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[a.XRANGELOOSE]:o[a.XRANGE];return e.replace(r,(function(r,o,i,a,l,s){n("xRange",e,r,o,i,a,l,s);var u=L(i),c=u||L(a),d=c||L(l),p=d;return"="===o&&p&&(o=""),s=t.includePrerelease?"-0":"",u?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(c&&(a=0),l=0,">"===o?(o=">=",c?(i=+i+1,a=0,l=0):(a=+a+1,l=0)):"<="===o&&(o="<",c?i=+i+1:a=+a+1),r=o+i+"."+a+"."+l+s):c?r=">="+i+".0.0"+s+" <"+(+i+1)+".0.0"+s:d&&(r=">="+i+"."+a+".0"+s+" <"+i+"."+(+a+1)+".0"+s),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[a.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(l=l.filter((function(e){return!!e.match(i)}))),l=l.map((function(e){return new w(e,this.options)}),this)},S.prototype.intersects=function(e,t){if(!(e instanceof S))throw new TypeError("a Range is required");return this.set.some((function(n){return k(n,t)&&e.set.some((function(e){return k(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new S(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},S.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1},t.satisfies=_,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new S(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new S(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minVersion=function(e,t){e=new S(e,t);var n=new d("0.0.0");if(e.test(n))return n;if(n=new d("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new d(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new S(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return I(e,t,"<",n)},t.gtr=function(e,t,n){return I(e,t,">",n)},t.outside=I,t.prerelease=function(e,t){var n=c(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new S(e,n),t=new S(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),o[a.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);if(null===n)return null;return c(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(JC,JC.exports);const YC={};async function eS(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!YC[i]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const a=(r||o.load)({name:e,version:t}),l=Promise.resolve(a);YC[i]=l.then(e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e}).catch(e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))})}return YC[i]}function tS(e,t){const r={};let o=null;return{get:e=>r[e],register:(i,a)=>{if(r[i])throw new Error("Supernova '".concat(e,"@").concat(i,"' already registered."));r[i]=function(e,t){let r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=i,l={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||JC.exports.satisfies(e,a.deps.properties),supernova:()=>eS(l.name,l.version,t,i.load).then(e=>(r=r||QC(e,t.public.galaxy),o=JSON.stringify(r.qae.properties.initial),r)),initialProperties(e){return this.supernova().then(()=>n(n({qInfo:{qType:l.name},visualization:l.name,version:l.version,showTitles:!0},JSON.parse(o)),e))}};return l}({name:e,version:i},t,a),o=null},getMatchingVersionFromProperties:e=>{var t;o||(t=Object.keys(r),o=[...t.filter(e=>"undefined"===e),...t.filter(e=>"undefined"!==e).map(e=>e.split(".").map(e=>parseInt(e,10))).sort((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2]).map(e=>e.join("."))]);for(let t=o.length-1;t>=0;t--){if(r[o[t]].supportsPropertiesVersion(e))return o[t]}return null},versions:r}}function nS(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=tS(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>r[e]?r[e].getMatchingVersionFromProperties(t):null,get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map(e=>({name:e,versions:Object.keys(r[e].versions).map(e=>"undefined"===e?void 0:e)})),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(YC).forEach(t=>{t.split("__")[0]===e&&(YC[t]=void 0)})}(e)}}}const rS=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(n({},e),t)},oS=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e,...t].filter((e,t,n)=>n.indexOf(e)===t)},iS=(e,t)=>({context:rS(e.context,t.context),load:t.load||e.load,snapshot:n({},t.snapshot||e.snapshot),types:oS(e.types,t.types),themes:oS(e.themes,t.themes),flags:rS(e.flags,t.flags),anything:rS(e.anything,t.anything)});var aS=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=c(t.context.language);function o(e,i){if(i)return o.createConfiguration(i)(e);let a=n(n({},t.context),{},{translator:r.translator});const[l]=Zv({app:e,context:a}),s=ge({themes:t.themes,root:l}),u={galaxy:{translator:r.translator,flags:cC(t.flags),deviceType:ve(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:r.translator,nebbie:null},c={app:e,root:l,config:t,public:u,context:a,types:null},d=nS({halo:c});t.types.forEach(e=>d.register({name:e.name,version:e.version},{meta:e.meta,load:e.load}));let p=s.setTheme(t.context.theme),f=null,h=null;const m={render:async e=>(await p,e.id?uC(e,c):sC(e,c)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])}),t&&(a=n(n(n({},a),t),{},{translator:r.translator}),c.context=a,t.theme&&(p=s.setTheme(t.theme),await p),t.language&&c.public.translator.language(t.language),l.context(a))},selections:async()=>(f||(f={mount(t){h||(h=ME({element:t,app:e}),l.add(h))},unmount(){h&&(l.remove(h),h=null)}}),f),field:async t=>{const n="string"==typeof t?t:t.qLibraryId;if(!n)throw new Error("Field identifier must be provided");return{fieldName:n,mount(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r)throw new Error("Element for ".concat(n," not provided"));if(this._instance)throw new Error("Field ".concat(n," already mounted"));this._instance=XE({element:r,app:e,fieldIdentifier:t,options:o,stateName:o.stateName||"$"}),l.add(this._instance)},unmount(){this._instance&&(l.remove(this._instance),this._instance=null)}}},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d}};return c.public.nebbie=m,c.types=d,m}return o.createConfiguration=n=>e(iS(t,n)),o.config=t,o}({context:{theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1},load:()=>{},types:[],themes:[],anything:{},snapshot:{get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(e=>e.json())}});const lS={generator:QC,hook:qC,theme:he,locale:s};e.__DO_NOT_USE__=lS,e.conversion=bw,e.embed=aS,e.onTakeSnapshot=function(e){const t=PC(++EC);t.value||(t.value=1,xC.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=MC({action(){n._config.action.call(null)}});return n.component||(n.component=xC,xC.__hooks.actions.list.push(n)),zC(()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0},t),n.action},e.useApp=function(){const e=TC("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return TC("appLayout")},e.useConstraints=function(){return TC("constraints")},e.useDeviceType=function(){return TC("deviceType")},e.useEffect=DC,e.useElement=jC,e.useEmbed=function(){return TC("nebbie")},e.useGlobal=function(){const e=TC("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=PC(++EC);if(n.imperative||(n.imperative=!0),wC(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],xC.__hooks.imperativeHandle=r}},e.useKeyboard=function(){const e=TC("keyboardNavigation"),t=TC("focusHandler");if(!xC.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(BC(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(xC);xC.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),FC(this))}.bind(xC);xC.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(xC);xC.__hooks.accessibility.focusSelectionFunction=r}const n=xC.__hooks.accessibility.focusFunction,r=xC.__hooks.accessibility.exitFunction,o=xC.__hooks.accessibility.focusSelectionFunction,[i,a]=MC({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return xC.__hooks.accessibility.setter=a,xC.__hooks.accessibility.enabled=e,DC(()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o}),[e]),i},e.useLayout=function(){return TC("layout")},e.useMemo=zC,e.useModel=function(){const e=TC("model");return e&&e.session?e:void 0},e.useOptions=function(){return TC("options")},e.usePlugins=function(){return TC("plugins")},e.usePromise=function(e,t){const[n,r]=MC(()=>({resolved:void 0,rejected:void 0,state:"pending"})),o=PC(++EC);return o.component||(o.component=xC),AC(()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then(e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))}).catch(e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))}),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}},t),[n.resolved,n.rejected]},e.useRect=function(){const e=jC(),t=xC.__hooks.resizer,[n,r]=MC(()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}});return t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r),t.update&&t.resize&&(t.update=!1,t.resize()),AC(()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach(e=>e({left:n,top:r,width:o,height:i}))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}},[e]),n},e.useRenderState=function(){PC(++EC);const e=xC.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return TC("selections")},e.useStaleLayout=function(){const e=TC("layout"),[t]=MC({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=MC,e.useTheme=function(){return TC("theme")},e.useTranslator=function(){return TC("translator")},Object.defineProperty(e,"__esModule",{value:!0})}));
42
42
  //# sourceMappingURL=stardust.js.map