treege 0.6.2 → 0.6.4

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/main.umd.cjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(ke,Pn){typeof exports=="object"&&typeof module<"u"?Pn(exports,require("axios"),require("react"),require("react-query"),require("design-system-tracktor"),require("react-dom"),require("react-i18next"),require("@codemirror/lang-json"),require("@uiw/codemirror-theme-dracula"),require("@uiw/react-codemirror"),require("i18next"),require("i18next-browser-languagedetector")):typeof define=="function"&&define.amd?define(["exports","axios","react","react-query","design-system-tracktor","react-dom","react-i18next","@codemirror/lang-json","@uiw/codemirror-theme-dracula","@uiw/react-codemirror","i18next","i18next-browser-languagedetector"],Pn):(ke=typeof globalThis<"u"?globalThis:ke||self,Pn(ke.treege={},ke.axios,ke.React,ke.reactQuery,ke.designSystemTracktor,ke.ReactDOM,ke.reactI18next,ke.langJson,ke.codemirrorThemeDracula,ke.CodeMirror,ke.i18n,ke.LanguageDetector))})(this,function(ke,Pn,W,nn,S,Hf,Je,Xf,Jf,Zf,ed,td){"use strict";const rn=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function nd(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const on=rn(Pn),ct=rn(W),Me=nd(W),rd=rn(Hf),id=rn(Zf),od=rn(ed),ad=rn(td),xe={backgroundPrimary:"#0a1929",borderLight:"#0f353e",borderMedium:"rgba(255, 255, 255, 0.1)",error:"#620713",grey500:"#868c95",primaryMain:"#0ed3b4",secondaryLight:"rgba(255, 255, 255, 0.1)",secondaryMain:"#007ef6",tertiaryMain:"#0f353e"},sd=S.createTheme({palette:{background:{default:xe.backgroundPrimary,paper:xe.backgroundPrimary},mode:"dark",primary:{main:xe.primaryMain},secondary:{main:xe.secondaryMain}}});var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $t(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Mr={exports:{}},Fn={};/**
1
+ (function(ze,Pn){typeof exports=="object"&&typeof module<"u"?Pn(exports,require("axios"),require("react"),require("react-query"),require("design-system-tracktor"),require("react-dom"),require("react-i18next"),require("@codemirror/lang-json"),require("@uiw/codemirror-theme-dracula"),require("@uiw/react-codemirror"),require("i18next"),require("i18next-browser-languagedetector")):typeof define=="function"&&define.amd?define(["exports","axios","react","react-query","design-system-tracktor","react-dom","react-i18next","@codemirror/lang-json","@uiw/codemirror-theme-dracula","@uiw/react-codemirror","i18next","i18next-browser-languagedetector"],Pn):(ze=typeof globalThis<"u"?globalThis:ze||self,Pn(ze.treege={},ze.axios,ze.React,ze.reactQuery,ze.designSystemTracktor,ze.ReactDOM,ze.reactI18next,ze.langJson,ze.codemirrorThemeDracula,ze.CodeMirror,ze.i18n,ze.LanguageDetector))})(this,function(ze,Pn,W,nn,S,Hf,Je,Xf,Jf,Zf,ed,td){"use strict";const rn=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function nd(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const on=rn(Pn),ct=rn(W),Me=nd(W),rd=rn(Hf),id=rn(Zf),od=rn(ed),ad=rn(td),xe={background:"#0a1929",borderBlue:"#0f353e",borderGrey:"rgba(255, 255, 255, 0.1)",grey500:"#868c95",primary:"#0ed3b4",secondary:"#007ef6",tertiary:"#0f353e"},sd={components:{MuiButton:{styleOverrides:{root:({ownerState:e})=>({...e.color==="primary"&&e.variant==="contained"&&{color:`${xe.tertiary} !important`}})}}},palette:{background:{default:xe.background,paper:xe.background},mode:"dark",primary:{main:xe.primary},secondary:{main:xe.secondary}}};var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $t(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Mr={exports:{}},Fn={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ns;function ld(){return Ns||(Ns=1,process.env.NODE_ENV!=="production"&&function(){var e=ct.default,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=Symbol.iterator,p="@@iterator";function g(_){if(_===null||typeof _!="object")return null;var j=v&&_[v]||_[p];return typeof j=="function"?j:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(_){{for(var j=arguments.length,P=new Array(j>1?j-1:0),H=1;H<j;H++)P[H-1]=arguments[H];T("error",_,P)}}function T(_,j,P){{var H=x.ReactDebugCurrentFrame,se=H.getStackAddendum();se!==""&&(j+="%s",P=P.concat([se]));var be=P.map(function(ue){return String(ue)});be.unshift("Warning: "+j),Function.prototype.apply.call(console[_],console,be)}}var b=!1,y=!1,C=!1,I=!1,O=!1,E;E=Symbol.for("react.module.reference");function D(_){return!!(typeof _=="string"||typeof _=="function"||_===r||_===o||O||_===i||_===l||_===c||I||_===h||b||y||C||typeof _=="object"&&_!==null&&(_.$$typeof===f||_.$$typeof===d||_.$$typeof===a||_.$$typeof===s||_.$$typeof===u||_.$$typeof===E||_.getModuleId!==void 0))}function k(_,j,P){var H=_.displayName;if(H)return H;var se=j.displayName||j.name||"";return se!==""?P+"("+se+")":P}function m(_){return _.displayName||"Context"}function N(_){if(_==null)return null;if(typeof _.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case c:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case s:var j=_;return m(j)+".Consumer";case a:var P=_;return m(P._context)+".Provider";case u:return k(_,_.render,"ForwardRef");case d:var H=_.displayName||null;return H!==null?H:N(_.type)||"Memo";case f:{var se=_,be=se._payload,ue=se._init;try{return N(ue(be))}catch{return null}}}return null}var z=Object.assign,R=0,L,V,q,ee,A,$,G;function B(){}B.__reactDisabledLog=!0;function U(){{if(R===0){L=console.log,V=console.info,q=console.warn,ee=console.error,A=console.group,$=console.groupCollapsed,G=console.groupEnd;var _={configurable:!0,enumerable:!0,value:B,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}R++}}function X(){{if(R--,R===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},_,{value:L}),info:z({},_,{value:V}),warn:z({},_,{value:q}),error:z({},_,{value:ee}),group:z({},_,{value:A}),groupCollapsed:z({},_,{value:$}),groupEnd:z({},_,{value:G})})}R<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=x.ReactCurrentDispatcher,J;function Z(_,j,P){{if(J===void 0)try{throw Error()}catch(se){var H=se.stack.trim().match(/\n( *(at )?)/);J=H&&H[1]||""}return`
18
- `+J+_}}var ne=!1,te;{var ze=typeof WeakMap=="function"?WeakMap:Map;te=new ze}function Y(_,j){if(!_||ne)return"";{var P=te.get(_);if(P!==void 0)return P}var H;ne=!0;var se=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var be;be=K.current,K.current=null,U();try{if(j){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(jt){H=jt}Reflect.construct(_,[],ue)}else{try{ue.call()}catch(jt){H=jt}_.call(ue.prototype)}}else{try{throw Error()}catch(jt){H=jt}_()}}catch(jt){if(jt&&H&&typeof jt.stack=="string"){for(var re=jt.stack.split(`
17
+ */var Ns;function ld(){return Ns||(Ns=1,process.env.NODE_ENV!=="production"&&function(){var e=ct.default,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=Symbol.iterator,p="@@iterator";function g(_){if(_===null||typeof _!="object")return null;var j=v&&_[v]||_[p];return typeof j=="function"?j:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(_){{for(var j=arguments.length,P=new Array(j>1?j-1:0),H=1;H<j;H++)P[H-1]=arguments[H];T("error",_,P)}}function T(_,j,P){{var H=x.ReactDebugCurrentFrame,se=H.getStackAddendum();se!==""&&(j+="%s",P=P.concat([se]));var be=P.map(function(ue){return String(ue)});be.unshift("Warning: "+j),Function.prototype.apply.call(console[_],console,be)}}var b=!1,y=!1,C=!1,I=!1,O=!1,E;E=Symbol.for("react.module.reference");function D(_){return!!(typeof _=="string"||typeof _=="function"||_===r||_===o||O||_===i||_===l||_===c||I||_===h||b||y||C||typeof _=="object"&&_!==null&&(_.$$typeof===f||_.$$typeof===d||_.$$typeof===a||_.$$typeof===s||_.$$typeof===u||_.$$typeof===E||_.getModuleId!==void 0))}function z(_,j,P){var H=_.displayName;if(H)return H;var se=j.displayName||j.name||"";return se!==""?P+"("+se+")":P}function m(_){return _.displayName||"Context"}function N(_){if(_==null)return null;if(typeof _.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case c:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case s:var j=_;return m(j)+".Consumer";case a:var P=_;return m(P._context)+".Provider";case u:return z(_,_.render,"ForwardRef");case d:var H=_.displayName||null;return H!==null?H:N(_.type)||"Memo";case f:{var se=_,be=se._payload,ue=se._init;try{return N(ue(be))}catch{return null}}}return null}var k=Object.assign,R=0,L,V,q,ee,A,$,G;function B(){}B.__reactDisabledLog=!0;function U(){{if(R===0){L=console.log,V=console.info,q=console.warn,ee=console.error,A=console.group,$=console.groupCollapsed,G=console.groupEnd;var _={configurable:!0,enumerable:!0,value:B,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}R++}}function X(){{if(R--,R===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},_,{value:L}),info:k({},_,{value:V}),warn:k({},_,{value:q}),error:k({},_,{value:ee}),group:k({},_,{value:A}),groupCollapsed:k({},_,{value:$}),groupEnd:k({},_,{value:G})})}R<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=x.ReactCurrentDispatcher,J;function Z(_,j,P){{if(J===void 0)try{throw Error()}catch(se){var H=se.stack.trim().match(/\n( *(at )?)/);J=H&&H[1]||""}return`
18
+ `+J+_}}var ne=!1,te;{var ke=typeof WeakMap=="function"?WeakMap:Map;te=new ke}function Y(_,j){if(!_||ne)return"";{var P=te.get(_);if(P!==void 0)return P}var H;ne=!0;var se=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var be;be=K.current,K.current=null,U();try{if(j){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(jt){H=jt}Reflect.construct(_,[],ue)}else{try{ue.call()}catch(jt){H=jt}_.call(ue.prototype)}}else{try{throw Error()}catch(jt){H=jt}_()}}catch(jt){if(jt&&H&&typeof jt.stack=="string"){for(var re=jt.stack.split(`
19
19
  `),Ae=H.stack.split(`
20
20
  `),Ee=re.length-1,Ce=Ae.length-1;Ee>=1&&Ce>=0&&re[Ee]!==Ae[Ce];)Ce--;for(;Ee>=1&&Ce>=0;Ee--,Ce--)if(re[Ee]!==Ae[Ce]){if(Ee!==1||Ce!==1)do if(Ee--,Ce--,Ce<0||re[Ee]!==Ae[Ce]){var nt=`
21
- `+re[Ee].replace(" at new "," at ");return _.displayName&&nt.includes("<anonymous>")&&(nt=nt.replace("<anonymous>",_.displayName)),typeof _=="function"&&te.set(_,nt),nt}while(Ee>=1&&Ce>=0);break}}}finally{ne=!1,K.current=be,X(),Error.prepareStackTrace=se}var kt=_?_.displayName||_.name:"",Kf=kt?Z(kt):"";return typeof _=="function"&&te.set(_,Kf),Kf}function Ke(_,j,P){return Y(_,!1)}function Q(_){var j=_.prototype;return!!(j&&j.isReactComponent)}function lt(_,j,P){if(_==null)return"";if(typeof _=="function")return Y(_,Q(_));if(typeof _=="string")return Z(_);switch(_){case l:return Z("Suspense");case c:return Z("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case u:return Ke(_.render);case d:return lt(_.type,j,P);case f:{var H=_,se=H._payload,be=H._init;try{return lt(be(se),j,P)}catch{}}}return""}var vt=Object.prototype.hasOwnProperty,en={},ji=x.ReactDebugCurrentFrame;function An(_){if(_){var j=_._owner,P=lt(_.type,_._source,j?j.type:null);ji.setExtraStackFrame(P)}else ji.setExtraStackFrame(null)}function _s(_,j,P,H,se){{var be=Function.call.bind(vt);for(var ue in _)if(be(_,ue)){var re=void 0;try{if(typeof _[ue]!="function"){var Ae=Error((H||"React class")+": "+P+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ae.name="Invariant Violation",Ae}re=_[ue](j,ue,H,P,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ee){re=Ee}re&&!(re instanceof Error)&&(An(se),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",H||"React class",P,ue,typeof re),An(null)),re instanceof Error&&!(re.message in en)&&(en[re.message]=!0,An(se),w("Failed %s type: %s",P,re.message),An(null))}}}var bs=Array.isArray;function br(_){return bs(_)}function xs(_){{var j=typeof Symbol=="function"&&Symbol.toStringTag,P=j&&_[Symbol.toStringTag]||_.constructor.name||"Object";return P}}function Ms(_){try{return $i(_),!1}catch{return!0}}function $i(_){return""+_}function Ri(_){if(Ms(_))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xs(_)),$i(_)}var tn=x.ReactCurrentOwner,ws={key:!0,ref:!0,__self:!0,__source:!0},Li,Pi,In;In={};function Fi(_){if(vt.call(_,"ref")){var j=Object.getOwnPropertyDescriptor(_,"ref").get;if(j&&j.isReactWarning)return!1}return _.ref!==void 0}function Ui(_){if(vt.call(_,"key")){var j=Object.getOwnPropertyDescriptor(_,"key").get;if(j&&j.isReactWarning)return!1}return _.key!==void 0}function Yi(_,j){if(typeof _.ref=="string"&&tn.current&&j&&tn.current.stateNode!==j){var P=N(tn.current.type);In[P]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',N(tn.current.type),_.ref),In[P]=!0)}}function qi(_,j){{var P=function(){Li||(Li=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};P.isReactWarning=!0,Object.defineProperty(_,"key",{get:P,configurable:!0})}}function Vi(_,j){{var P=function(){Pi||(Pi=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};P.isReactWarning=!0,Object.defineProperty(_,"ref",{get:P,configurable:!0})}}var Bi=function(_,j,P,H,se,be,ue){var re={$$typeof:t,type:_,key:j,ref:P,props:ue,_owner:be};return re._store={},Object.defineProperty(re._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(re,"_self",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.defineProperty(re,"_source",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.freeze&&(Object.freeze(re.props),Object.freeze(re)),re};function Qi(_,j,P,H,se){{var be,ue={},re=null,Ae=null;P!==void 0&&(Ri(P),re=""+P),Ui(j)&&(Ri(j.key),re=""+j.key),Fi(j)&&(Ae=j.ref,Yi(j,se));for(be in j)vt.call(j,be)&&!ws.hasOwnProperty(be)&&(ue[be]=j[be]);if(_&&_.defaultProps){var Ee=_.defaultProps;for(be in Ee)ue[be]===void 0&&(ue[be]=Ee[be])}if(re||Ae){var Ce=typeof _=="function"?_.displayName||_.name||"Unknown":_;re&&qi(ue,Ce),Ae&&Vi(ue,Ce)}return Bi(_,re,Ae,se,H,tn.current,ue)}}var zn=x.ReactCurrentOwner,xr=x.ReactDebugCurrentFrame;function zt(_){if(_){var j=_._owner,P=lt(_.type,_._source,j?j.type:null);xr.setExtraStackFrame(P)}else xr.setExtraStackFrame(null)}var kn;kn=!1;function jn(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function F(){{if(zn.current){var _=N(zn.current.type);if(_)return`
21
+ `+re[Ee].replace(" at new "," at ");return _.displayName&&nt.includes("<anonymous>")&&(nt=nt.replace("<anonymous>",_.displayName)),typeof _=="function"&&te.set(_,nt),nt}while(Ee>=1&&Ce>=0);break}}}finally{ne=!1,K.current=be,X(),Error.prepareStackTrace=se}var zt=_?_.displayName||_.name:"",Kf=zt?Z(zt):"";return typeof _=="function"&&te.set(_,Kf),Kf}function Ke(_,j,P){return Y(_,!1)}function Q(_){var j=_.prototype;return!!(j&&j.isReactComponent)}function lt(_,j,P){if(_==null)return"";if(typeof _=="function")return Y(_,Q(_));if(typeof _=="string")return Z(_);switch(_){case l:return Z("Suspense");case c:return Z("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case u:return Ke(_.render);case d:return lt(_.type,j,P);case f:{var H=_,se=H._payload,be=H._init;try{return lt(be(se),j,P)}catch{}}}return""}var vt=Object.prototype.hasOwnProperty,en={},ji=x.ReactDebugCurrentFrame;function An(_){if(_){var j=_._owner,P=lt(_.type,_._source,j?j.type:null);ji.setExtraStackFrame(P)}else ji.setExtraStackFrame(null)}function _s(_,j,P,H,se){{var be=Function.call.bind(vt);for(var ue in _)if(be(_,ue)){var re=void 0;try{if(typeof _[ue]!="function"){var Ae=Error((H||"React class")+": "+P+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ae.name="Invariant Violation",Ae}re=_[ue](j,ue,H,P,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ee){re=Ee}re&&!(re instanceof Error)&&(An(se),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",H||"React class",P,ue,typeof re),An(null)),re instanceof Error&&!(re.message in en)&&(en[re.message]=!0,An(se),w("Failed %s type: %s",P,re.message),An(null))}}}var bs=Array.isArray;function br(_){return bs(_)}function xs(_){{var j=typeof Symbol=="function"&&Symbol.toStringTag,P=j&&_[Symbol.toStringTag]||_.constructor.name||"Object";return P}}function Ms(_){try{return $i(_),!1}catch{return!0}}function $i(_){return""+_}function Ri(_){if(Ms(_))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xs(_)),$i(_)}var tn=x.ReactCurrentOwner,ws={key:!0,ref:!0,__self:!0,__source:!0},Li,Pi,In;In={};function Fi(_){if(vt.call(_,"ref")){var j=Object.getOwnPropertyDescriptor(_,"ref").get;if(j&&j.isReactWarning)return!1}return _.ref!==void 0}function Ui(_){if(vt.call(_,"key")){var j=Object.getOwnPropertyDescriptor(_,"key").get;if(j&&j.isReactWarning)return!1}return _.key!==void 0}function Yi(_,j){if(typeof _.ref=="string"&&tn.current&&j&&tn.current.stateNode!==j){var P=N(tn.current.type);In[P]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',N(tn.current.type),_.ref),In[P]=!0)}}function qi(_,j){{var P=function(){Li||(Li=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};P.isReactWarning=!0,Object.defineProperty(_,"key",{get:P,configurable:!0})}}function Vi(_,j){{var P=function(){Pi||(Pi=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};P.isReactWarning=!0,Object.defineProperty(_,"ref",{get:P,configurable:!0})}}var Bi=function(_,j,P,H,se,be,ue){var re={$$typeof:t,type:_,key:j,ref:P,props:ue,_owner:be};return re._store={},Object.defineProperty(re._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(re,"_self",{configurable:!1,enumerable:!1,writable:!1,value:H}),Object.defineProperty(re,"_source",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.freeze&&(Object.freeze(re.props),Object.freeze(re)),re};function Qi(_,j,P,H,se){{var be,ue={},re=null,Ae=null;P!==void 0&&(Ri(P),re=""+P),Ui(j)&&(Ri(j.key),re=""+j.key),Fi(j)&&(Ae=j.ref,Yi(j,se));for(be in j)vt.call(j,be)&&!ws.hasOwnProperty(be)&&(ue[be]=j[be]);if(_&&_.defaultProps){var Ee=_.defaultProps;for(be in Ee)ue[be]===void 0&&(ue[be]=Ee[be])}if(re||Ae){var Ce=typeof _=="function"?_.displayName||_.name||"Unknown":_;re&&qi(ue,Ce),Ae&&Vi(ue,Ce)}return Bi(_,re,Ae,se,H,tn.current,ue)}}var kn=x.ReactCurrentOwner,xr=x.ReactDebugCurrentFrame;function kt(_){if(_){var j=_._owner,P=lt(_.type,_._source,j?j.type:null);xr.setExtraStackFrame(P)}else xr.setExtraStackFrame(null)}var zn;zn=!1;function jn(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function F(){{if(kn.current){var _=N(kn.current.type);if(_)return`
22
22
 
23
23
  Check the render method of \``+_+"`."}return""}}function _e(_){{if(_!==void 0){var j=_.fileName.replace(/^.*[\\\/]/,""),P=_.lineNumber;return`
24
24
 
25
25
  Check your code at `+j+":"+P+"."}return""}}var de={};function Ne(_){{var j=F();if(!j){var P=typeof _=="string"?_:_.displayName||_.name;P&&(j=`
26
26
 
27
- Check the top-level render call using <`+P+">.")}return j}}function Fe(_,j){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var P=Ne(j);if(de[P])return;de[P]=!0;var H="";_&&_._owner&&_._owner!==zn.current&&(H=" It was passed a child from "+N(_._owner.type)+"."),zt(_),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',P,H),zt(null)}}function He(_,j){{if(typeof _!="object")return;if(br(_))for(var P=0;P<_.length;P++){var H=_[P];jn(H)&&Fe(H,j)}else if(jn(_))_._store&&(_._store.validated=!0);else if(_){var se=g(_);if(typeof se=="function"&&se!==_.entries)for(var be=se.call(_),ue;!(ue=be.next()).done;)jn(ue.value)&&Fe(ue.value,j)}}}function pt(_){{var j=_.type;if(j==null||typeof j=="string")return;var P;if(typeof j=="function")P=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===u||j.$$typeof===d))P=j.propTypes;else return;if(P){var H=N(j);_s(P,_.props,"prop",H,_)}else if(j.PropTypes!==void 0&&!kn){kn=!0;var se=N(j);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tt(_){{for(var j=Object.keys(_.props),P=0;P<j.length;P++){var H=j[P];if(H!=="children"&&H!=="key"){zt(_),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",H),zt(null);break}}_.ref!==null&&(zt(_),w("Invalid attribute `ref` supplied to `React.Fragment`."),zt(null))}}function yt(_,j,P,H,se,be){{var ue=D(_);if(!ue){var re="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ae=_e(se);Ae?re+=Ae:re+=F();var Ee;_===null?Ee="null":br(_)?Ee="array":_!==void 0&&_.$$typeof===t?(Ee="<"+(N(_.type)||"Unknown")+" />",re=" Did you accidentally export a JSX literal instead of a component?"):Ee=typeof _,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ee,re)}var Ce=Qi(_,j,P,se,be);if(Ce==null)return Ce;if(ue){var nt=j.children;if(nt!==void 0)if(H)if(br(nt)){for(var kt=0;kt<nt.length;kt++)He(nt[kt],_);Object.freeze&&Object.freeze(nt)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else He(nt,_)}return _===r?tt(Ce):pt(Ce),Ce}}function $n(_,j,P){return yt(_,j,P,!0)}function Rn(_,j,P){return yt(_,j,P,!1)}var Bt=Rn,Ln=$n;Un.Fragment=r,Un.jsx=Bt,Un.jsxs=Ln}()),Un}(function(e){process.env.NODE_ENV==="production"?e.exports=ud():e.exports=ld()})(Mr);const wr=Mr.exports.Fragment,M=Mr.exports.jsx,oe=Mr.exports.jsxs,cd=Object.freeze(Object.defineProperty({__proto__:null,Fragment:wr,jsx:M,jsxs:oe},Symbol.toStringTag,{value:"Module"})),fd=({children:e})=>oe(wr,{children:[M(S.GlobalStyles,{styles:{"*":{scrollbarColor:"rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05)",scrollbarWidth:"thin"},"*::-webkit-scrollbar":{height:6,width:6},"*::-webkit-scrollbar-button":{height:0,width:0},"*::-webkit-scrollbar-corner":{background:"transparent"},"*::-webkit-scrollbar-thumb":{backgroundColor:"rgba(255, 255, 255, 0.2)",border:0,borderRadius:10},"*::-webkit-scrollbar-track":{background:"rgba(255, 255, 255, 0.05)"},"html, body, #root":{height:"100%"}}}),M(S.ThemeProvider,{theme:sd,children:e})]}),dd=new nn.QueryClient({defaultOptions:{queries:{retry:!1}}}),hd={authToken:void 0},pd=W.createContext(hd),gd=({children:e,authToken:t})=>{const n=W.useMemo(()=>({authToken:t}),[t]);return M(pd.Provider,{value:n,children:e})},Es={dispatchSnackbar:()=>null,snackbar:{open:!1}},Ds=W.createContext(Es),Tr={closeSnackbar:"closeSnackbar",openSnackbar:"openSnackbar"},md=(e,t="success")=>({message:e,severity:t,type:Tr.openSnackbar}),Os=()=>({type:Tr.closeSnackbar}),vd=(e,t)=>{switch(t.type){case Tr.openSnackbar:{const{message:n,severity:r}=t;return{message:n,open:!0,severity:r}}case Tr.closeSnackbar:return{...e,open:!1};default:throw new Error}},yd={snackbarAlert:{width:"100%"}},_d=({children:e})=>{const[t,n]=W.useReducer(vd,Es.snackbar),{message:r,open:i,severity:o}=t,a=6e3,s=()=>n(Os()),u=W.useMemo(()=>({dispatchSnackbar:n,snackbar:t}),[t,n]);return oe(Ds.Provider,{value:u,children:[M(S.Snackbar,{open:i,autoHideDuration:a,onClose:s,anchorOrigin:{horizontal:"center",vertical:"bottom"},children:M(S.Alert,{onClose:s,severity:o,sx:yd.snackbarAlert,variant:"filled",children:r})}),e]})},bd="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYyIiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDQ2MiAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yXzY1KSI+CjxwYXRoIGQ9Ik0xMzcgNDEuMzRMMTE2LjU3IDZDMTE2LjIyIDUuMzkzOTkgMTE1LjcxNyA0Ljg5MDM3IDExNS4xMTIgNC41Mzk0MkMxMTQuNTA3IDQuMTg4NDcgMTEzLjgyIDQuMDAyNDcgMTEzLjEyIDRIMzguODNDMzguMTMwMiA0LjAwMjQ3IDM3LjQ0MzQgNC4xODg0NyAzNi44MzggNC41Mzk0MkMzNi4yMzI2IDQuODkwMzcgMzUuNzI5OSA1LjM5Mzk5IDM1LjM4IDZMMTUgNDEuMzRDMTQuNjQ5NSA0MS45NDcgMTQuNDY0NyA0Mi42MzU1IDE0LjQ2NDEgNDMuMzM2NUMxNC40NjM1IDQ0LjAzNzQgMTQuNjQ3MSA0NC43MjYyIDE0Ljk5NjUgNDUuMzMzOUMxNS4zNDU5IDQ1Ljk0MTYgMTUuODQ4OCA0Ni40NDY3IDE2LjQ1NDkgNDYuNzk4OEMxNy4wNjEgNDcuMTUwOSAxNy43NDkgNDcuMzM3NSAxOC40NSA0Ny4zNEgxMzMuNTNDMTM0LjIzMyA0Ny4zNDEgMTM0LjkyMyA0Ny4xNTcgMTM1LjUzMiA0Ni44MDYzQzEzNi4xNDEgNDYuNDU1NyAxMzYuNjQ3IDQ1Ljk1MDggMTM2Ljk5OSA0NS4zNDI2QzEzNy4zNSA0NC43MzQzIDEzNy41MzYgNDQuMDQ0MSAxMzcuNTM2IDQzLjM0MTVDMTM3LjUzNiA0Mi42Mzg4IDEzNy4zNTEgNDEuOTQ4NSAxMzcgNDEuMzRaIiBmaWxsPSIjMTFEM0I0Ii8+CjxwYXRoIGQ9Ik05Mi40OCAxNDAuNjRIMTEzLjFDMTEzLjgwNSAxNDAuNjQzIDExNC40OTggMTQwLjQ1OSAxMTUuMTA5IDE0MC4xMDhDMTE1LjcyIDEzOS43NTcgMTE2LjIyOCAxMzkuMjUgMTE2LjU4IDEzOC42NEwxNTEuMzkgNzguMzRDMTUxLjc0MSA3Ny43MzE1IDE1MS45MjYgNzcuMDQxMiAxNTEuOTI2IDc2LjMzODVDMTUxLjkyNiA3NS42MzU5IDE1MS43NCA3NC45NDU3IDE1MS4zODkgNzQuMzM3NEMxNTEuMDM3IDczLjcyOTIgMTUwLjUzMSA3My4yMjQzIDE0OS45MjIgNzIuODczN0MxNDkuMzEzIDcyLjUyMyAxNDguNjIzIDcyLjMzOSAxNDcuOTIgNzIuMzRIOTIuNDhDOTEuNDE5MSA3Mi4zNCA5MC40MDE3IDcyLjc2MTQgODkuNjUxNiA3My41MTE2Qzg4LjkwMTQgNzQuMjYxNyA4OC40OCA3NS4yNzkxIDg4LjQ4IDc2LjM0VjEzNi42NEM4OC40OCAxMzcuNzAxIDg4LjkwMTQgMTM4LjcxOCA4OS42NTE2IDEzOS40NjhDOTAuNDAxNyAxNDAuMjE5IDkxLjQxOTEgMTQwLjY0IDkyLjQ4IDE0MC42NFoiIGZpbGw9IiMwMDdFRjYiLz4KPHBhdGggZD0iTTU5LjQ4IDcyLjMySDRDMy4yOTgyIDcyLjMyMDcgMi42MDg5NCA3Mi41MDYxIDIuMDAxNDMgNzIuODU3NEMxLjM5MzkzIDczLjIwODggMC44ODk1NTggNzMuNzEzOCAwLjUzODk3IDc0LjMyMThDMC4xODgzODIgNzQuOTI5NyAwLjAwMzkxNjk0IDc1LjYxOTIgMC4wMDQwOTcxMiA3Ni4zMjFDMC4wMDQyNzcyOSA3Ny4wMjI4IDAuMTg5MDk3IDc3LjcxMjIgMC41Mzk5OTcgNzguMzJMMzUuMzggMTM4LjY2QzM1LjcyOTkgMTM5LjI2NiAzNi4yMzI2IDEzOS43NyAzNi44MzggMTQwLjEyMUMzNy40NDM0IDE0MC40NzIgMzguMTMwMiAxNDAuNjU4IDM4LjgzIDE0MC42Nkg1OS40OEM2MC41NDA5IDE0MC42NiA2MS41NTgzIDE0MC4yMzkgNjIuMzA4NCAxMzkuNDg4QzYzLjA1ODYgMTM4LjczOCA2My40OCAxMzcuNzIxIDYzLjQ4IDEzNi42NlY3Ni4zMUM2My40NzczIDc1LjI1MDkgNjMuMDU0OCA3NC4yMzYgNjIuMzA0OSA3My40ODhDNjEuNTU1IDcyLjc0MDEgNjAuNTM5MSA3Mi4zMiA1OS40OCA3Mi4zMloiIGZpbGw9IiMwMTY0QTgiLz4KPC9nPgo8cGF0aCBkPSJNMjA3LjUyIDEwNi45NkMyMDIuMjcyIDEwNi45NiAxOTguMzY4IDEwNS41ODQgMTk1LjgwOCAxMDIuODMyQzE5My4zMTIgMTAwLjA4IDE5Mi4wNjQgOTYuMzM2IDE5Mi4wNjQgOTEuNlY3MC40OEgxODUuNjMyVjYwLjQ5NkgxOTIuMDY0VjUwLjcwNEwyMDUuMDI0IDQ2Ljg2NFY2MC40OTZIMjE2LjU0NEwyMTUuNzc2IDcwLjQ4SDIwNS4wMjRWOTAuNzM2QzIwNS4wMjQgOTMuMjMyIDIwNS42IDk0Ljk2IDIwNi43NTIgOTUuOTJDMjA3LjkwNCA5Ni44MTYgMjA5LjY5NiA5Ny4yNjQgMjEyLjEyOCA5Ny4yNjRDMjEzLjkyIDk3LjI2NCAyMTUuNzc2IDk2Ljk0NCAyMTcuNjk2IDk2LjMwNFYxMDUuMjMyQzIxNi4yODggMTA1LjgwOCAyMTQuNzUyIDEwNi4yMjQgMjEzLjA4OCAxMDYuNDhDMjExLjQyNCAxMDYuOCAyMDkuNTY4IDEwNi45NiAyMDcuNTIgMTA2Ljk2Wk0yMjQuMzQ3IDEwNlY2MC40OTZIMjM2LjM0N0wyMzYuOTIzIDY1LjJDMjM4Ljk3MSA2My45MiAyNDEuNDk5IDYyLjc2OCAyNDQuNTA3IDYxLjc0NEMyNDcuNTc5IDYwLjY1NiAyNTAuNTg3IDU5LjkyIDI1My41MzEgNTkuNTM2VjY5LjMyOEMyNTEuODAzIDY5LjU4NCAyNDkuOTE1IDY5Ljk2OCAyNDcuODY3IDcwLjQ4QzI0NS44MTkgNzAuOTkyIDI0My44NjcgNzEuNTY4IDI0Mi4wMTEgNzIuMjA4QzI0MC4xNTUgNzIuODQ4IDIzOC41ODcgNzMuNTIgMjM3LjMwNyA3NC4yMjRWMTA2SDIyNC4zNDdaTTI4MS45OTcgMTA2Ljk2QzI3NC4xMjUgMTA2Ljk2IDI2Ny44ODUgMTA1LjAwOCAyNjMuMjc3IDEwMS4xMDRDMjU4LjY2OSA5Ny4xMzYgMjU2LjM2NSA5MS4xNTIgMjU2LjM2NSA4My4xNTJDMjU2LjM2NSA3NS45MiAyNTguMjg1IDcwLjE5MiAyNjIuMTI1IDY1Ljk2OEMyNjYuMDI5IDYxLjY4IDI3MS44MjEgNTkuNTM2IDI3OS41MDEgNTkuNTM2QzI4Ni41NDEgNTkuNTM2IDI5MS45MTcgNjEuMzkyIDI5NS42MjkgNjUuMTA0QzI5OS40MDUgNjguNzUyIDMwMS4yOTIgNzMuNTUyIDMwMS4yOTIgNzkuNTA0Vjg3Ljc2SDI2OC4zNjVDMjY5LjA2OSA5MS40MDggMjcwLjczMyA5My45MDQgMjczLjM1NyA5NS4yNDhDMjc2LjA0NSA5Ni41OTIgMjc5LjgyMSA5Ny4yNjQgMjg0LjY4NSA5Ny4yNjRDMjg3LjExNyA5Ny4yNjQgMjg5LjU4MSA5Ny4wNCAyOTIuMDc3IDk2LjU5MkMyOTQuNjM3IDk2LjE0NCAyOTYuODEzIDk1LjU2OCAyOTguNjA1IDk0Ljg2NFYxMDQuMDhDMjk2LjQ5MyAxMDUuMDQgMjk0LjAyOSAxMDUuNzQ0IDI5MS4yMTMgMTA2LjE5MkMyODguMzk3IDEwNi43MDQgMjg1LjMyNSAxMDYuOTYgMjgxLjk5NyAxMDYuOTZaTTI2OC4zNjUgNzkuNzkySDI4OS45NjVWNzcuMjk2QzI4OS45NjUgNzQuNjcyIDI4OS4xOTcgNzIuNjI0IDI4Ny42NjEgNzEuMTUyQzI4Ni4xMjUgNjkuNjE2IDI4My41MzMgNjguODQ4IDI3OS44ODUgNjguODQ4QzI3NS41OTcgNjguODQ4IDI3Mi41ODkgNjkuNzEyIDI3MC44NjEgNzEuNDRDMjY5LjE5NyA3My4xNjggMjY4LjM2NSA3NS45NTIgMjY4LjM2NSA3OS43OTJaTTMzNC4wMjggMTA2Ljk2QzMyNi4xNTYgMTA2Ljk2IDMxOS45MTYgMTA1LjAwOCAzMTUuMzA4IDEwMS4xMDRDMzEwLjcgOTcuMTM2IDMwOC4zOTYgOTEuMTUyIDMwOC4zOTYgODMuMTUyQzMwOC4zOTYgNzUuOTIgMzEwLjMxNiA3MC4xOTIgMzE0LjE1NiA2NS45NjhDMzE4LjA2IDYxLjY4IDMyMy44NTIgNTkuNTM2IDMzMS41MzIgNTkuNTM2QzMzOC41NzIgNTkuNTM2IDM0My45NDggNjEuMzkyIDM0Ny42NiA2NS4xMDRDMzUxLjQzNiA2OC43NTIgMzUzLjMyNCA3My41NTIgMzUzLjMyNCA3OS41MDRWODcuNzZIMzIwLjM5NkMzMjEuMSA5MS40MDggMzIyLjc2NCA5My45MDQgMzI1LjM4OCA5NS4yNDhDMzI4LjA3NiA5Ni41OTIgMzMxLjg1MiA5Ny4yNjQgMzM2LjcxNiA5Ny4yNjRDMzM5LjE0OCA5Ny4yNjQgMzQxLjYxMiA5Ny4wNCAzNDQuMTA4IDk2LjU5MkMzNDYuNjY4IDk2LjE0NCAzNDguODQ0IDk1LjU2OCAzNTAuNjM2IDk0Ljg2NFYxMDQuMDhDMzQ4LjUyNCAxMDUuMDQgMzQ2LjA2IDEwNS43NDQgMzQzLjI0NCAxMDYuMTkyQzM0MC40MjggMTA2LjcwNCAzMzcuMzU2IDEwNi45NiAzMzQuMDI4IDEwNi45NlpNMzIwLjM5NiA3OS43OTJIMzQxLjk5NlY3Ny4yOTZDMzQxLjk5NiA3NC42NzIgMzQxLjIyOCA3Mi42MjQgMzM5LjY5MiA3MS4xNTJDMzM4LjE1NiA2OS42MTYgMzM1LjU2NCA2OC44NDggMzMxLjkxNiA2OC44NDhDMzI3LjYyOCA2OC44NDggMzI0LjYyIDY5LjcxMiAzMjIuODkyIDcxLjQ0QzMyMS4yMjggNzMuMTY4IDMyMC4zOTYgNzUuOTUyIDMyMC4zOTYgNzkuNzkyWk0zODEuNTQ3IDEyMi44OTZDMzc4LjE1NSAxMjIuODk2IDM3NC42NjcgMTIyLjY3MiAzNzEuMDgzIDEyMi4yMjRDMzY3LjU2MyAxMjEuNzc2IDM2NC41ODcgMTIxLjEzNiAzNjIuMTU1IDEyMC4zMDRWMTEwLjYwOEMzNjQuNzE1IDExMS40NCAzNjcuNzIzIDExMi4wOCAzNzEuMTc5IDExMi41MjhDMzc0LjYzNSAxMTMuMDQgMzc3Ljg2NyAxMTMuMjk2IDM4MC44NzUgMTEzLjI5NkMzODUuMjkxIDExMy4yOTYgMzg4LjQ5MSAxMTMuMDQgMzkwLjQ3NSAxMTIuNTI4QzM5Mi40NTkgMTEyLjA4IDM5My40NTEgMTExLjI0OCAzOTMuNDUxIDExMC4wMzJDMzkzLjQ1MSAxMDkuMDA4IDM5My4wMDMgMTA4LjMwNCAzOTIuMTA3IDEwNy45MkMzOTEuMjc1IDEwNy41MzYgMzg5LjQ4MyAxMDcuMzQ0IDM4Ni43MzEgMTA3LjM0NEgzNzQuMzQ3QzM2Ni4yMTkgMTA3LjM0NCAzNjIuMTU1IDEwNC4zMzYgMzYyLjE1NSA5OC4zMkMzNjIuMTU1IDk2LjQ2NCAzNjIuNjY3IDk0Ljc2OCAzNjMuNjkxIDkzLjIzMkMzNjQuNzE1IDkxLjY5NiAzNjYuMzQ3IDkwLjQ4IDM2OC41ODcgODkuNTg0QzM2My40MDMgODYuOTYgMzYwLjgxMSA4Mi41NDQgMzYwLjgxMSA3Ni4zMzZDMzYwLjgxMSA3MC40NDggMzYyLjYzNSA2Ni4xOTIgMzY2LjI4MyA2My41NjhDMzY5LjkzMSA2MC44OCAzNzUuMzM5IDU5LjUzNiAzODIuNTA3IDU5LjUzNkMzODMuOTc5IDU5LjUzNiAzODUuNTc5IDU5LjY2NCAzODcuMzA3IDU5LjkyQzM4OS4wOTkgNjAuMTEyIDM5MC40NDMgNjAuMzA0IDM5MS4zMzkgNjAuNDk2SDQwOC40MjdMNDA4LjEzOSA2OC42NTZINDAwLjkzOUM0MDIuOTIzIDcwLjUxMiA0MDMuOTE1IDczLjEwNCA0MDMuOTE1IDc2LjQzMkM0MDMuOTE1IDgxLjEwNCA0MDIuNDQzIDg0Ljg0OCAzOTkuNDk5IDg3LjY2NEMzOTYuNTU1IDkwLjQxNiAzOTIuMjAzIDkxLjc5MiAzODYuNDQzIDkxLjc5MkMzODUuNDE5IDkxLjc5MiAzODQuNDI3IDkxLjc2IDM4My40NjcgOTEuNjk2QzM4Mi41NzEgOTEuNTY4IDM4MS42NDMgOTEuNDQgMzgwLjY4MyA5MS4zMTJDMzc4Ljc2MyA5MS41NjggMzc3LjEzMSA5Mi4wMTYgMzc1Ljc4NyA5Mi42NTZDMzc0LjUwNyA5My4yOTYgMzczLjg2NyA5NC4xNiAzNzMuODY3IDk1LjI0OEMzNzMuODY3IDk2LjcyIDM3NS4xNzkgOTcuNDU2IDM3Ny44MDMgOTcuNDU2SDM5MC42NjdDMzk1LjI3NSA5Ny40NTYgMzk4LjgyNyA5OC41MTIgNDAxLjMyMyAxMDAuNjI0QzQwMy44MTkgMTAyLjY3MiA0MDUuMDY3IDEwNS42OCA0MDUuMDY3IDEwOS42NDhDNDA1LjA2NyAxMTQuMTI4IDQwMy4wNTEgMTE3LjQ1NiAzOTkuMDE5IDExOS42MzJDMzk0Ljk4NyAxMjEuODA4IDM4OS4xNjMgMTIyLjg5NiAzODEuNTQ3IDEyMi44OTZaTTM4Mi42MDMgODQuNDk2QzM4Ni40NDMgODQuNDk2IDM4OS4wOTkgODMuODU2IDM5MC41NzEgODIuNTc2QzM5Mi4xMDcgODEuMjMyIDM5Mi44NzUgNzguOTkyIDM5Mi44NzUgNzUuODU2QzM5Mi44NzUgNzIuNzIgMzkyLjEwNyA3MC40NDggMzkwLjU3MSA2OS4wNEMzODkuMDk5IDY3LjYzMiAzODYuNDQzIDY2LjkyOCAzODIuNjAzIDY2LjkyOEMzNzguOTU1IDY2LjkyOCAzNzYuMzMxIDY3LjYzMiAzNzQuNzMxIDY5LjA0QzM3My4xMzEgNzAuMzg0IDM3Mi4zMzEgNzIuNjU2IDM3Mi4zMzEgNzUuODU2QzM3Mi4zMzEgNzguOCAzNzMuMDY3IDgwLjk3NiAzNzQuNTM5IDgyLjM4NEMzNzYuMDc1IDgzLjc5MiAzNzguNzYzIDg0LjQ5NiAzODIuNjAzIDg0LjQ5NlpNNDM5LjAyOCAxMDYuOTZDNDMxLjE1NiAxMDYuOTYgNDI0LjkxNiAxMDUuMDA4IDQyMC4zMDggMTAxLjEwNEM0MTUuNyA5Ny4xMzYgNDEzLjM5NiA5MS4xNTIgNDEzLjM5NiA4My4xNTJDNDEzLjM5NiA3NS45MiA0MTUuMzE2IDcwLjE5MiA0MTkuMTU2IDY1Ljk2OEM0MjMuMDYgNjEuNjggNDI4Ljg1MiA1OS41MzYgNDM2LjUzMiA1OS41MzZDNDQzLjU3MiA1OS41MzYgNDQ4Ljk0OCA2MS4zOTIgNDUyLjY2IDY1LjEwNEM0NTYuNDM2IDY4Ljc1MiA0NTguMzI0IDczLjU1MiA0NTguMzI0IDc5LjUwNFY4Ny43Nkg0MjUuMzk2QzQyNi4xIDkxLjQwOCA0MjcuNzY0IDkzLjkwNCA0MzAuMzg4IDk1LjI0OEM0MzMuMDc2IDk2LjU5MiA0MzYuODUyIDk3LjI2NCA0NDEuNzE2IDk3LjI2NEM0NDQuMTQ4IDk3LjI2NCA0NDYuNjEyIDk3LjA0IDQ0OS4xMDggOTYuNTkyQzQ1MS42NjggOTYuMTQ0IDQ1My44NDQgOTUuNTY4IDQ1NS42MzYgOTQuODY0VjEwNC4wOEM0NTMuNTI0IDEwNS4wNCA0NTEuMDYgMTA1Ljc0NCA0NDguMjQ0IDEwNi4xOTJDNDQ1LjQyOCAxMDYuNzA0IDQ0Mi4zNTYgMTA2Ljk2IDQzOS4wMjggMTA2Ljk2Wk00MjUuMzk2IDc5Ljc5Mkg0NDYuOTk2Vjc3LjI5NkM0NDYuOTk2IDc0LjY3MiA0NDYuMjI4IDcyLjYyNCA0NDQuNjkyIDcxLjE1MkM0NDMuMTU2IDY5LjYxNiA0NDAuNTY0IDY4Ljg0OCA0MzYuOTE2IDY4Ljg0OEM0MzIuNjI4IDY4Ljg0OCA0MjkuNjIgNjkuNzEyIDQyNy44OTIgNzEuNDRDNDI2LjIyOCA3My4xNjggNDI1LjM5NiA3NS45NTIgNDI1LjM5NiA3OS43OTJaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yXzY1Ij4KPHJlY3Qgd2lkdGg9IjE1MS45MyIgaGVpZ2h0PSIxMzYuNjQiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDQpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",xd=()=>M("img",{src:bd,alt:"Treege",height:30,width:"auto"});var Cs={},Wi={};function Md(e,t){return e.parent===t.parent?1:2}function wd(e){return e.reduce(Td,0)/e.length}function Td(e,t){return e+t.x}function Nd(e){return 1+e.reduce(Ed,0)}function Ed(e,t){return Math.max(e,t.y)}function Dd(e){for(var t;t=e.children;)e=t[0];return e}function Od(e){for(var t;t=e.children;)e=t[t.length-1];return e}function Cd(){var e=Md,t=1,n=1,r=!1;function i(o){var a,s=0;o.eachAfter(function(f){var h=f.children;h?(f.x=wd(h),f.y=Nd(h)):(f.x=a?s+=e(f,a):0,f.y=0,a=f)});var u=Dd(o),l=Od(o),c=u.x-e(u,l)/2,d=l.x+e(l,u)/2;return o.eachAfter(r?function(f){f.x=(f.x-o.x)*t,f.y=(o.y-f.y)*n}:function(f){f.x=(f.x-c)/(d-c)*t,f.y=(1-(o.y?f.y/o.y:1))*n})}return i.separation=function(o){return arguments.length?(e=o,i):e},i.size=function(o){return arguments.length?(r=!1,t=+o[0],n=+o[1],i):r?null:[t,n]},i.nodeSize=function(o){return arguments.length?(r=!0,t=+o[0],n=+o[1],i):r?[t,n]:null},i}function Sd(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Ad(){return this.eachAfter(Sd)}function Id(e){var t=this,n,r=[t],i,o,a;do for(n=r.reverse(),r=[];t=n.pop();)if(e(t),i=t.children,i)for(o=0,a=i.length;o<a;++o)r.push(i[o]);while(r.length);return this}function zd(e){for(var t=this,n=[t],r,i;t=n.pop();)if(e(t),r=t.children,r)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function kd(e){for(var t=this,n=[t],r=[],i,o,a;t=n.pop();)if(r.push(t),i=t.children,i)for(o=0,a=i.length;o<a;++o)n.push(i[o]);for(;t=r.pop();)e(t);return this}function jd(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function $d(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Rd(e){for(var t=this,n=Ld(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Ld(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function Pd(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Fd(){var e=[];return this.each(function(t){e.push(t)}),e}function Ud(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Yd(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function Gi(e,t){var n=new an(e),r=+e.value&&(n.value=e.value),i,o=[n],a,s,u,l;for(t==null&&(t=Vd);i=o.pop();)if(r&&(i.value=+i.data.value),(s=t(i.data))&&(l=s.length))for(i.children=new Array(l),u=l-1;u>=0;--u)o.push(a=i.children[u]=new an(s[u])),a.parent=i,a.depth=i.depth+1;return n.eachBefore(Ss)}function qd(){return Gi(this).eachBefore(Bd)}function Vd(e){return e.children}function Bd(e){e.data=e.data.data}function Ss(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function an(e){this.data=e,this.depth=this.height=0,this.parent=null}an.prototype=Gi.prototype={constructor:an,count:Ad,each:Id,eachAfter:kd,eachBefore:zd,sum:jd,sort:$d,path:Rd,ancestors:Pd,descendants:Fd,leaves:Ud,links:Yd,copy:qd};var Qd=Array.prototype.slice;function Wd(e){for(var t=e.length,n,r;t;)r=Math.random()*t--|0,n=e[t],e[t]=e[r],e[r]=n;return e}function As(e){for(var t=0,n=(e=Wd(Qd.call(e))).length,r=[],i,o;t<n;)i=e[t],o&&Is(o,i)?++t:(o=Kd(r=Gd(r,i)),t=0);return o}function Gd(e,t){var n,r;if(Ki(t,e))return[t];for(n=0;n<e.length;++n)if(Nr(t,e[n])&&Ki(Yn(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(Nr(Yn(e[n],e[r]),t)&&Nr(Yn(e[n],t),e[r])&&Nr(Yn(e[r],t),e[n])&&Ki(zs(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function Nr(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function Is(e,t){var n=e.r-t.r+1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function Ki(e,t){for(var n=0;n<t.length;++n)if(!Is(e,t[n]))return!1;return!0}function Kd(e){switch(e.length){case 1:return Hd(e[0]);case 2:return Yn(e[0],e[1]);case 3:return zs(e[0],e[1],e[2])}}function Hd(e){return{x:e.x,y:e.y,r:e.r}}function Yn(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,u=o-n,l=a-r,c=s-i,d=Math.sqrt(u*u+l*l);return{x:(n+o+u/d*c)/2,y:(r+a+l/d*c)/2,r:(d+i+s)/2}}function zs(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,u=t.r,l=n.x,c=n.y,d=n.r,f=r-a,h=r-l,v=i-s,p=i-c,g=u-o,x=d-o,w=r*r+i*i-o*o,T=w-a*a-s*s+u*u,b=w-l*l-c*c+d*d,y=h*v-f*p,C=(v*b-p*T)/(y*2)-r,I=(p*g-v*x)/y,O=(h*T-f*b)/(y*2)-i,E=(f*x-h*g)/y,D=I*I+E*E-1,k=2*(o+C*I+O*E),m=C*C+O*O-o*o,N=-(D?(k+Math.sqrt(k*k-4*D*m))/(2*D):m/k);return{x:r+C+I*N,y:i+O+E*N,r:N}}function ks(e,t,n){var r=e.x-t.x,i,o,a=e.y-t.y,s,u,l=r*r+a*a;l?(o=t.r+n.r,o*=o,u=e.r+n.r,u*=u,o>u?(i=(l+u-o)/(2*l),s=Math.sqrt(Math.max(0,u/l-i*i)),n.x=e.x-i*r-s*a,n.y=e.y-i*a+s*r):(i=(l+o-u)/(2*l),s=Math.sqrt(Math.max(0,o/l-i*i)),n.x=t.x+i*r-s*a,n.y=t.y+i*a+s*r)):(n.x=t.x+n.r,n.y=t.y)}function js(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function $s(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function Er(e){this._=e,this.next=null,this.previous=null}function Rs(e){if(!(i=e.length))return 0;var t,n,r,i,o,a,s,u,l,c,d;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;ks(n,t,r=e[2]),t=new Er(t),n=new Er(n),r=new Er(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s<i;++s){ks(t._,n._,r=e[s]),r=new Er(r),u=n.next,l=t.previous,c=n._.r,d=t._.r;do if(c<=d){if(js(u._,r._)){n=u,t.next=n,n.previous=t,--s;continue e}c+=u._.r,u=u.next}else{if(js(l._,r._)){t=l,t.next=n,n.previous=t,--s;continue e}d+=l._.r,l=l.previous}while(u!==l.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,o=$s(t);(r=r.next)!==n;)(a=$s(r))<o&&(t=r,o=a);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=As(t),s=0;s<i;++s)t=e[s],t.x-=r.x,t.y-=r.y;return r.r}function Xd(e){return Rs(e),e}function Jd(e){return e==null?null:Dr(e)}function Dr(e){if(typeof e!="function")throw new Error;return e}function Qt(){return 0}function sn(e){return function(){return e}}function Zd(e){return Math.sqrt(e.value)}function eh(){var e=null,t=1,n=1,r=Qt;function i(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(Ls(e)).eachAfter(Hi(r,.5)).eachBefore(Ps(1)):o.eachBefore(Ls(Zd)).eachAfter(Hi(Qt,1)).eachAfter(Hi(r,o.r/Math.min(t,n))).eachBefore(Ps(Math.min(t,n)/(2*o.r))),o}return i.radius=function(o){return arguments.length?(e=Jd(o),i):e},i.size=function(o){return arguments.length?(t=+o[0],n=+o[1],i):[t,n]},i.padding=function(o){return arguments.length?(r=typeof o=="function"?o:sn(+o),i):r},i}function Ls(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Hi(e,t){return function(n){if(r=n.children){var r,i,o=r.length,a=e(n)*t||0,s;if(a)for(i=0;i<o;++i)r[i].r+=a;if(s=Rs(r),a)for(i=0;i<o;++i)r[i].r-=a;n.r=s+a}}}function Ps(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function Fs(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function qn(e,t,n,r,i){for(var o=e.children,a,s=-1,u=o.length,l=e.value&&(r-t)/e.value;++s<u;)a=o[s],a.y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*l}function th(){var e=1,t=1,n=0,r=!1;function i(a){var s=a.height+1;return a.x0=a.y0=n,a.x1=e,a.y1=t/s,a.eachBefore(o(t,s)),r&&a.eachBefore(Fs),a}function o(a,s){return function(u){u.children&&qn(u,u.x0,a*(u.depth+1)/s,u.x1,a*(u.depth+2)/s);var l=u.x0,c=u.y0,d=u.x1-n,f=u.y1-n;d<l&&(l=d=(l+d)/2),f<c&&(c=f=(c+f)/2),u.x0=l,u.y0=c,u.x1=d,u.y1=f}}return i.round=function(a){return arguments.length?(r=!!a,i):r},i.size=function(a){return arguments.length?(e=+a[0],t=+a[1],i):[e,t]},i.padding=function(a){return arguments.length?(n=+a,i):n},i}var Us="$",nh={depth:-1},Ys={};function rh(e){return e.id}function ih(e){return e.parentId}function oh(){var e=rh,t=ih;function n(r){var i,o,a=r.length,s,u,l,c=new Array(a),d,f,h={};for(o=0;o<a;++o)i=r[o],l=c[o]=new an(i),(d=e(i,o,r))!=null&&(d+="")&&(f=Us+(l.id=d),h[f]=f in h?Ys:l);for(o=0;o<a;++o)if(l=c[o],d=t(r[o],o,r),d==null||!(d+="")){if(s)throw new Error("multiple roots");s=l}else{if(u=h[Us+d],!u)throw new Error("missing: "+d);if(u===Ys)throw new Error("ambiguous: "+d);u.children?u.children.push(l):u.children=[l],l.parent=u}if(!s)throw new Error("no root");if(s.parent=nh,s.eachBefore(function(v){v.depth=v.parent.depth+1,--a}).eachBefore(Ss),s.parent=null,a>0)throw new Error("cycle");return s}return n.id=function(r){return arguments.length?(e=Dr(r),n):e},n.parentId=function(r){return arguments.length?(t=Dr(r),n):t},n}function ah(e,t){return e.parent===t.parent?1:2}function Xi(e){var t=e.children;return t?t[0]:e.t}function Ji(e){var t=e.children;return t?t[t.length-1]:e.t}function sh(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function uh(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function lh(e,t,n){return e.a.parent===t.parent?e.a:n}function Or(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Or.prototype=Object.create(an.prototype);function ch(e){for(var t=new Or(e,0),n,r=[t],i,o,a,s;n=r.pop();)if(o=n._.children)for(n.children=new Array(s=o.length),a=s-1;a>=0;--a)r.push(i=n.children[a]=new Or(o[a],a)),i.parent=n;return(t.parent=new Or(null,0)).children=[t],t}function fh(){var e=ah,t=1,n=1,r=null;function i(l){var c=ch(l);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)l.eachBefore(u);else{var d=l,f=l,h=l;l.eachBefore(function(w){w.x<d.x&&(d=w),w.x>f.x&&(f=w),w.depth>h.depth&&(h=w)});var v=d===f?1:e(d,f)/2,p=v-d.x,g=t/(f.x+v+p),x=n/(h.depth||1);l.eachBefore(function(w){w.x=(w.x+p)*g,w.y=w.depth*x})}return l}function o(l){var c=l.children,d=l.parent.children,f=l.i?d[l.i-1]:null;if(c){uh(l);var h=(c[0].z+c[c.length-1].z)/2;f?(l.z=f.z+e(l._,f._),l.m=l.z-h):l.z=h}else f&&(l.z=f.z+e(l._,f._));l.parent.A=s(l,f,l.parent.A||d[0])}function a(l){l._.x=l.z+l.parent.m,l.m+=l.parent.m}function s(l,c,d){if(c){for(var f=l,h=l,v=c,p=f.parent.children[0],g=f.m,x=h.m,w=v.m,T=p.m,b;v=Ji(v),f=Xi(f),v&&f;)p=Xi(p),h=Ji(h),h.a=l,b=v.z+w-f.z-g+e(v._,f._),b>0&&(sh(lh(v,l,d),l,b),g+=b,x+=b),w+=v.m,g+=f.m,T+=p.m,x+=h.m;v&&!Ji(h)&&(h.t=v,h.m+=w-x),f&&!Xi(p)&&(p.t=f,p.m+=g-T,d=l)}return d}function u(l){l.x*=t,l.y=l.depth*n}return i.separation=function(l){return arguments.length?(e=l,i):e},i.size=function(l){return arguments.length?(r=!1,t=+l[0],n=+l[1],i):r?null:[t,n]},i.nodeSize=function(l){return arguments.length?(r=!0,t=+l[0],n=+l[1],i):r?[t,n]:null},i}function Cr(e,t,n,r,i){for(var o=e.children,a,s=-1,u=o.length,l=e.value&&(i-n)/e.value;++s<u;)a=o[s],a.x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*l}var qs=(1+Math.sqrt(5))/2;function Vs(e,t,n,r,i,o){for(var a=[],s=t.children,u,l,c=0,d=0,f=s.length,h,v,p=t.value,g,x,w,T,b,y,C;c<f;){h=i-n,v=o-r;do g=s[d++].value;while(!g&&d<f);for(x=w=g,y=Math.max(v/h,h/v)/(p*e),C=g*g*y,b=Math.max(w/C,C/x);d<f;++d){if(g+=l=s[d].value,l<x&&(x=l),l>w&&(w=l),C=g*g*y,T=Math.max(w/C,C/x),T>b){g-=l;break}b=T}a.push(u={value:g,dice:h<v,children:s.slice(c,d)}),u.dice?qn(u,n,r,i,p?r+=v*g/p:o):Cr(u,n,r,p?n+=h*g/p:i,o),p-=g,c=d}return a}const Bs=function e(t){function n(r,i,o,a,s){Vs(t,r,i,o,a,s)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(qs);function dh(){var e=Bs,t=!1,n=1,r=1,i=[0],o=Qt,a=Qt,s=Qt,u=Qt,l=Qt;function c(f){return f.x0=f.y0=0,f.x1=n,f.y1=r,f.eachBefore(d),i=[0],t&&f.eachBefore(Fs),f}function d(f){var h=i[f.depth],v=f.x0+h,p=f.y0+h,g=f.x1-h,x=f.y1-h;g<v&&(v=g=(v+g)/2),x<p&&(p=x=(p+x)/2),f.x0=v,f.y0=p,f.x1=g,f.y1=x,f.children&&(h=i[f.depth+1]=o(f)/2,v+=l(f)-h,p+=a(f)-h,g-=s(f)-h,x-=u(f)-h,g<v&&(v=g=(v+g)/2),x<p&&(p=x=(p+x)/2),e(f,v,p,g,x))}return c.round=function(f){return arguments.length?(t=!!f,c):t},c.size=function(f){return arguments.length?(n=+f[0],r=+f[1],c):[n,r]},c.tile=function(f){return arguments.length?(e=Dr(f),c):e},c.padding=function(f){return arguments.length?c.paddingInner(f).paddingOuter(f):c.paddingInner()},c.paddingInner=function(f){return arguments.length?(o=typeof f=="function"?f:sn(+f),c):o},c.paddingOuter=function(f){return arguments.length?c.paddingTop(f).paddingRight(f).paddingBottom(f).paddingLeft(f):c.paddingTop()},c.paddingTop=function(f){return arguments.length?(a=typeof f=="function"?f:sn(+f),c):a},c.paddingRight=function(f){return arguments.length?(s=typeof f=="function"?f:sn(+f),c):s},c.paddingBottom=function(f){return arguments.length?(u=typeof f=="function"?f:sn(+f),c):u},c.paddingLeft=function(f){return arguments.length?(l=typeof f=="function"?f:sn(+f),c):l},c}function hh(e,t,n,r,i){var o=e.children,a,s=o.length,u,l=new Array(s+1);for(l[0]=u=a=0;a<s;++a)l[a+1]=u+=o[a].value;c(0,s,e.value,t,n,r,i);function c(d,f,h,v,p,g,x){if(d>=f-1){var w=o[d];w.x0=v,w.y0=p,w.x1=g,w.y1=x;return}for(var T=l[d],b=h/2+T,y=d+1,C=f-1;y<C;){var I=y+C>>>1;l[I]<b?y=I+1:C=I}b-l[y-1]<l[y]-b&&d+1<y&&--y;var O=l[y]-T,E=h-O;if(g-v>x-p){var D=(v*E+g*O)/h;c(d,y,O,v,p,D,x),c(y,f,E,D,p,g,x)}else{var k=(p*E+x*O)/h;c(d,y,O,v,p,g,k),c(y,f,E,v,k,g,x)}}}function ph(e,t,n,r,i){(e.depth&1?Cr:qn)(e,t,n,r,i)}const gh=function e(t){function n(r,i,o,a,s){if((u=r._squarify)&&u.ratio===t)for(var u,l,c,d,f=-1,h,v=u.length,p=r.value;++f<v;){for(l=u[f],c=l.children,d=l.value=0,h=c.length;d<h;++d)l.value+=c[d].value;l.dice?qn(l,i,o,a,o+=(s-o)*l.value/p):Cr(l,i,o,i+=(a-i)*l.value/p,s),p-=l.value}else r._squarify=u=Vs(t,r,i,o,a,s),u.ratio=t}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(qs),mh=$t(Object.freeze(Object.defineProperty({__proto__:null,cluster:Cd,hierarchy:Gi,pack:eh,packSiblings:Xd,packEnclose:As,partition:th,stratify:oh,tree:fh,treemap:dh,treemapBinary:hh,treemapDice:qn,treemapSlice:Cr,treemapSliceDice:ph,treemapSquarify:Bs,treemapResquarify:gh},Symbol.toStringTag,{value:"Module"})));var Zi="http://www.w3.org/1999/xhtml";const eo={svg:"http://www.w3.org/2000/svg",xhtml:Zi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vn(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),eo.hasOwnProperty(t)?{space:eo[t],local:e}:e}function vh(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Zi&&t.documentElement.namespaceURI===Zi?t.createElement(e):t.createElementNS(n,e)}}function yh(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Sr(e){var t=Vn(e);return(t.local?yh:vh)(t)}function _h(){}function Ar(e){return e==null?_h:function(){return this.querySelector(e)}}function bh(e){typeof e!="function"&&(e=Ar(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=new Array(a),u,l,c=0;c<a;++c)(u=o[c])&&(l=e.call(u,u.__data__,c,o))&&("__data__"in u&&(l.__data__=u.__data__),s[c]=l);return new Xe(r,this._parents)}function xh(){return[]}function to(e){return e==null?xh:function(){return this.querySelectorAll(e)}}function Mh(e){typeof e!="function"&&(e=to(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a=t[o],s=a.length,u,l=0;l<s;++l)(u=a[l])&&(r.push(e.call(u,u.__data__,l,a)),i.push(u));return new Xe(r,i)}function no(e){return function(){return this.matches(e)}}function wh(e){typeof e!="function"&&(e=no(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=[],u,l=0;l<a;++l)(u=o[l])&&e.call(u,u.__data__,l,o)&&s.push(u);return new Xe(r,this._parents)}function Qs(e){return new Array(e.length)}function Th(){return new Xe(this._enter||this._groups.map(Qs),this._parents)}function Ir(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ir.prototype={constructor:Ir,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Nh(e){return function(){return e}}var Ws="$";function Eh(e,t,n,r,i,o){for(var a=0,s,u=t.length,l=o.length;a<l;++a)(s=t[a])?(s.__data__=o[a],r[a]=s):n[a]=new Ir(e,o[a]);for(;a<u;++a)(s=t[a])&&(i[a]=s)}function Dh(e,t,n,r,i,o,a){var s,u,l={},c=t.length,d=o.length,f=new Array(c),h;for(s=0;s<c;++s)(u=t[s])&&(f[s]=h=Ws+a.call(u,u.__data__,s,t),h in l?i[s]=u:l[h]=u);for(s=0;s<d;++s)h=Ws+a.call(e,o[s],s,o),(u=l[h])?(r[s]=u,u.__data__=o[s],l[h]=null):n[s]=new Ir(e,o[s]);for(s=0;s<c;++s)(u=t[s])&&l[f[s]]===u&&(i[s]=u)}function Oh(e,t){if(!e)return h=new Array(this.size()),l=-1,this.each(function(C){h[++l]=C}),h;var n=t?Dh:Eh,r=this._parents,i=this._groups;typeof e!="function"&&(e=Nh(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=r[l],d=i[l],f=d.length,h=e.call(c,c&&c.__data__,l,r),v=h.length,p=s[l]=new Array(v),g=a[l]=new Array(v),x=u[l]=new Array(f);n(c,d,p,g,x,h,t);for(var w=0,T=0,b,y;w<v;++w)if(b=p[w]){for(w>=T&&(T=w+1);!(y=g[T])&&++T<v;);b._next=y||null}}return a=new Xe(a,r),a._enter=s,a._exit=u,a}function Ch(){return new Xe(this._exit||this._groups.map(Qs),this._parents)}function Sh(e,t,n){var r=this.enter(),i=this,o=this.exit();return r=typeof e=="function"?e(r):r.append(e+""),t!=null&&(i=t(i)),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function Ah(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u=t[s],l=n[s],c=u.length,d=a[s]=new Array(c),f,h=0;h<c;++h)(f=u[h]||l[h])&&(d[h]=f);for(;s<r;++s)a[s]=t[s];return new Xe(a,this._parents)}function Ih(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function zh(e){e||(e=kh);function t(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],s=a.length,u=i[o]=new Array(s),l,c=0;c<s;++c)(l=a[c])&&(u[c]=l);u.sort(t)}return new Xe(i,this._parents).order()}function kh(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function jh(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function $h(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e}function Rh(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function Lh(){var e=0;return this.each(function(){++e}),e}function Ph(){return!this.node()}function Fh(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&e.call(s,s.__data__,o,i);return this}function Uh(e){return function(){this.removeAttribute(e)}}function Yh(e){return function(){this.removeAttributeNS(e.space,e.local)}}function qh(e,t){return function(){this.setAttribute(e,t)}}function Vh(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Bh(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Qh(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Wh(e,t){var n=Vn(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Yh:Uh:typeof t=="function"?n.local?Qh:Bh:n.local?Vh:qh)(n,t))}function ro(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Gh(e){return function(){this.style.removeProperty(e)}}function Kh(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Hh(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Xh(e,t,n){return arguments.length>1?this.each((t==null?Gh:typeof t=="function"?Hh:Kh)(e,t,n==null?"":n)):Wt(this.node(),e)}function Wt(e,t){return e.style.getPropertyValue(t)||ro(e).getComputedStyle(e,null).getPropertyValue(t)}function Jh(e){return function(){delete this[e]}}function Zh(e,t){return function(){this[e]=t}}function ep(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function tp(e,t){return arguments.length>1?this.each((t==null?Jh:typeof t=="function"?ep:Zh)(e,t)):this.node()[e]}function Gs(e){return e.trim().split(/^|\s+/)}function io(e){return e.classList||new Ks(e)}function Ks(e){this._node=e,this._names=Gs(e.getAttribute("class")||"")}Ks.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Hs(e,t){for(var n=io(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Xs(e,t){for(var n=io(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function np(e){return function(){Hs(this,e)}}function rp(e){return function(){Xs(this,e)}}function ip(e,t){return function(){(t.apply(this,arguments)?Hs:Xs)(this,e)}}function op(e,t){var n=Gs(e+"");if(arguments.length<2){for(var r=io(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?ip:t?np:rp)(n,t))}function ap(){this.textContent=""}function sp(e){return function(){this.textContent=e}}function up(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function lp(e){return arguments.length?this.each(e==null?ap:(typeof e=="function"?up:sp)(e)):this.node().textContent}function cp(){this.innerHTML=""}function fp(e){return function(){this.innerHTML=e}}function dp(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function hp(e){return arguments.length?this.each(e==null?cp:(typeof e=="function"?dp:fp)(e)):this.node().innerHTML}function pp(){this.nextSibling&&this.parentNode.appendChild(this)}function gp(){return this.each(pp)}function mp(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vp(){return this.each(mp)}function yp(e){var t=typeof e=="function"?e:Sr(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function _p(){return null}function bp(e,t){var n=typeof e=="function"?e:Sr(e),r=t==null?_p:typeof t=="function"?t:Ar(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function xp(){var e=this.parentNode;e&&e.removeChild(this)}function Mp(){return this.each(xp)}function wp(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tp(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Np(e){return this.select(e?Tp:wp)}function Ep(e){return arguments.length?this.property("__data__",e):this.node().__data__}var Js={},ce=null;if(typeof document<"u"){var Dp=document.documentElement;"onmouseenter"in Dp||(Js={mouseenter:"mouseover",mouseleave:"mouseout"})}function Op(e,t,n){return e=Zs(e,t,n),function(r){var i=r.relatedTarget;(!i||i!==this&&!(i.compareDocumentPosition(this)&8))&&e.call(this,r)}}function Zs(e,t,n){return function(r){var i=ce;ce=r;try{e.call(this,this.__data__,t,n)}finally{ce=i}}}function Cp(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Sp(e){return function(){var t=this.__on;if(!!t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.capture):t[++r]=o;++r?t.length=r:delete this.__on}}}function Ap(e,t,n){var r=Js.hasOwnProperty(e.type)?Op:Zs;return function(i,o,a){var s=this.__on,u,l=r(t,o,a);if(s){for(var c=0,d=s.length;c<d;++c)if((u=s[c]).type===e.type&&u.name===e.name){this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=l,u.capture=n),u.value=t;return}}this.addEventListener(e.type,l,n),u={type:e.type,name:e.name,value:t,listener:l,capture:n},s?s.push(u):this.__on=[u]}}function Ip(e,t,n){var r=Cp(e+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,l=s.length,c;u<l;++u)for(i=0,c=s[u];i<o;++i)if((a=r[i]).type===c.type&&a.name===c.name)return c.value}return}for(s=t?Ap:Sp,n==null&&(n=!1),i=0;i<o;++i)this.each(s(r[i],t,n));return this}function eu(e,t,n,r){var i=ce;e.sourceEvent=ce,ce=e;try{return t.apply(n,r)}finally{ce=i}}function tu(e,t,n){var r=ro(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function zp(e,t){return function(){return tu(this,e,t)}}function kp(e,t){return function(){return tu(this,e,t.apply(this,arguments))}}function jp(e,t){return this.each((typeof t=="function"?kp:zp)(e,t))}var oo=[null];function Xe(e,t){this._groups=e,this._parents=t}function un(){return new Xe([[document.documentElement]],oo)}Xe.prototype=un.prototype={constructor:Xe,select:bh,selectAll:Mh,filter:wh,data:Oh,enter:Th,exit:Ch,join:Sh,merge:Ah,order:Ih,sort:zh,call:jh,nodes:$h,node:Rh,size:Lh,empty:Ph,each:Fh,attr:Wh,style:Xh,property:tp,classed:op,text:lp,html:hp,raise:gp,lower:vp,append:yp,insert:bp,remove:Mp,clone:Np,datum:Ep,on:Ip,dispatch:jp};function Rt(e){return typeof e=="string"?new Xe([[document.querySelector(e)]],[document.documentElement]):new Xe([[e]],oo)}function $p(e){return Rt(Sr(e).call(document.documentElement))}var Rp=0;function nu(){return new ao}function ao(){this._="@"+(++Rp).toString(36)}ao.prototype=nu.prototype={constructor:ao,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};function so(){for(var e=ce,t;t=e.sourceEvent;)e=t;return e}function zr(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}function Bn(e){var t=so();return t.changedTouches&&(t=t.changedTouches[0]),zr(e,t)}function Lp(e){return typeof e=="string"?new Xe([document.querySelectorAll(e)],[document.documentElement]):new Xe([e==null?[]:e],oo)}function uo(e,t,n){arguments.length<3&&(n=t,t=so().changedTouches);for(var r=0,i=t?t.length:0,o;r<i;++r)if((o=t[r]).identifier===n)return zr(e,o);return null}function Pp(e,t){t==null&&(t=so().touches);for(var n=0,r=t?t.length:0,i=new Array(r);n<r;++n)i[n]=zr(e,t[n]);return i}const lo=$t(Object.freeze(Object.defineProperty({__proto__:null,create:$p,creator:Sr,local:nu,matcher:no,mouse:Bn,namespace:Vn,namespaces:eo,clientPoint:zr,select:Rt,selectAll:Lp,selection:un,selector:Ar,selectorAll:to,style:Wt,touch:uo,touches:Pp,window:ro,get event(){return ce},customEvent:eu},Symbol.toStringTag,{value:"Module"})));var Fp={value:function(){}};function co(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new kr(n)}function kr(e){this._=e}function Up(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}kr.prototype=co.prototype={constructor:kr,on:function(e,t){var n=this._,r=Up(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=Yp(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(i=(e=r[o]).type)n[i]=ru(n[i],e.name,t);else if(t==null)for(i in n)n[i]=ru(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new kr(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function Yp(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function ru(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Fp,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}function fo(){ce.preventDefault(),ce.stopImmediatePropagation()}function qp(e){var t=e.document.documentElement,n=Rt(e).on("dragstart.drag",fo,!0);"onselectstart"in t?n.on("selectstart.drag",fo,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Vp(e,t){var n=e.document.documentElement,r=Rt(e).on("dragstart.drag",null);t&&(r.on("click.drag",fo,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function ho(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function iu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Qn(){}var Wn=.7,jr=1/Wn,ln="\\s*([+-]?\\d+)\\s*",Gn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",_t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bp=/^#([0-9a-f]{3,8})$/,Qp=new RegExp("^rgb\\("+[ln,ln,ln]+"\\)$"),Wp=new RegExp("^rgb\\("+[_t,_t,_t]+"\\)$"),Gp=new RegExp("^rgba\\("+[ln,ln,ln,Gn]+"\\)$"),Kp=new RegExp("^rgba\\("+[_t,_t,_t,Gn]+"\\)$"),Hp=new RegExp("^hsl\\("+[Gn,_t,_t]+"\\)$"),Xp=new RegExp("^hsla\\("+[Gn,_t,_t,Gn]+"\\)$"),ou={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ho(Qn,Kn,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:au,formatHex:au,formatHsl:Jp,formatRgb:su,toString:su});function au(){return this.rgb().formatHex()}function Jp(){return du(this).formatHsl()}function su(){return this.rgb().formatRgb()}function Kn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Bp.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uu(t):n===3?new rt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?$r(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?$r(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Qp.exec(e))?new rt(t[1],t[2],t[3],1):(t=Wp.exec(e))?new rt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Gp.exec(e))?$r(t[1],t[2],t[3],t[4]):(t=Kp.exec(e))?$r(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Hp.exec(e))?fu(t[1],t[2]/100,t[3]/100,1):(t=Xp.exec(e))?fu(t[1],t[2]/100,t[3]/100,t[4]):ou.hasOwnProperty(e)?uu(ou[e]):e==="transparent"?new rt(NaN,NaN,NaN,0):null}function uu(e){return new rt(e>>16&255,e>>8&255,e&255,1)}function $r(e,t,n,r){return r<=0&&(e=t=n=NaN),new rt(e,t,n,r)}function Zp(e){return e instanceof Qn||(e=Kn(e)),e?(e=e.rgb(),new rt(e.r,e.g,e.b,e.opacity)):new rt}function po(e,t,n,r){return arguments.length===1?Zp(e):new rt(e,t,n,r==null?1:r)}function rt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ho(rt,po,iu(Qn,{brighter:function(e){return e=e==null?jr:Math.pow(jr,e),new rt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Wn:Math.pow(Wn,e),new rt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lu,formatHex:lu,formatRgb:cu,toString:cu}));function lu(){return"#"+go(this.r)+go(this.g)+go(this.b)}function cu(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function go(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function fu(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new bt(e,t,n,r)}function du(e){if(e instanceof bt)return new bt(e.h,e.s,e.l,e.opacity);if(e instanceof Qn||(e=Kn(e)),!e)return new bt;if(e instanceof bt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new bt(a,s,u,e.opacity)}function e0(e,t,n,r){return arguments.length===1?du(e):new bt(e,t,n,r==null?1:r)}function bt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ho(bt,e0,iu(Qn,{brighter:function(e){return e=e==null?jr:Math.pow(jr,e),new bt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Wn:Math.pow(Wn,e),new bt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new rt(mo(e>=240?e-240:e+120,i,r),mo(e,i,r),mo(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function mo(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function hu(e){return function(){return e}}function t0(e,t){return function(n){return e+n*t}}function n0(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function r0(e){return(e=+e)==1?pu:function(t,n){return n-t?n0(t,n,e):hu(isNaN(t)?n:t)}}function pu(e,t){var n=t-e;return n?t0(e,n):hu(isNaN(e)?t:e)}const gu=function e(t){var n=r0(t);function r(i,o){var a=n((i=po(i)).r,(o=po(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=pu(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return r.gamma=e,r}(1);function Lt(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var vo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yo=new RegExp(vo.source,"g");function i0(e){return function(){return e}}function o0(e){return function(t){return e(t)+""}}function a0(e,t){var n=vo.lastIndex=yo.lastIndex=0,r,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(r=vo.exec(e))&&(i=yo.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,u.push({i:a,x:Lt(r,i)})),n=yo.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?o0(u[0].x):i0(t):(t=u.length,function(l){for(var c=0,d;c<t;++c)s[(d=u[c]).i]=d.x(l);return s.join("")})}var mu=180/Math.PI,_o={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function vu(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*mu,skewX:Math.atan(u)*mu,scaleX:a,scaleY:s}}var Hn,bo,yu,Rr;function s0(e){return e==="none"?_o:(Hn||(Hn=document.createElement("DIV"),bo=document.documentElement,yu=document.defaultView),Hn.style.transform=e,e=yu.getComputedStyle(bo.appendChild(Hn),null).getPropertyValue("transform"),bo.removeChild(Hn),e=e.slice(7,-1).split(","),vu(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function u0(e){return e==null||(Rr||(Rr=document.createElementNS("http://www.w3.org/2000/svg","g")),Rr.setAttribute("transform",e),!(e=Rr.transform.baseVal.consolidate()))?_o:(e=e.matrix,vu(e.a,e.b,e.c,e.d,e.e,e.f))}function _u(e,t,n,r){function i(l){return l.length?l.pop()+" ":""}function o(l,c,d,f,h,v){if(l!==d||c!==f){var p=h.push("translate(",null,t,null,n);v.push({i:p-4,x:Lt(l,d)},{i:p-2,x:Lt(c,f)})}else(d||f)&&h.push("translate("+d+t+f+n)}function a(l,c,d,f){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:Lt(l,c)})):c&&d.push(i(d)+"rotate("+c+r)}function s(l,c,d,f){l!==c?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:Lt(l,c)}):c&&d.push(i(d)+"skewX("+c+r)}function u(l,c,d,f,h,v){if(l!==d||c!==f){var p=h.push(i(h)+"scale(",null,",",null,")");v.push({i:p-4,x:Lt(l,d)},{i:p-2,x:Lt(c,f)})}else(d!==1||f!==1)&&h.push(i(h)+"scale("+d+","+f+")")}return function(l,c){var d=[],f=[];return l=e(l),c=e(c),o(l.translateX,l.translateY,c.translateX,c.translateY,d,f),a(l.rotate,c.rotate,d,f),s(l.skewX,c.skewX,d,f),u(l.scaleX,l.scaleY,c.scaleX,c.scaleY,d,f),l=c=null,function(h){for(var v=-1,p=f.length,g;++v<p;)d[(g=f[v]).i]=g.x(h);return d.join("")}}}var l0=_u(s0,"px, ","px)","deg)"),c0=_u(u0,", ",")",")"),Xn=Math.SQRT2,xo=2,bu=4,f0=1e-12;function xu(e){return((e=Math.exp(e))+1/e)/2}function d0(e){return((e=Math.exp(e))-1/e)/2}function h0(e){return((e=Math.exp(2*e))-1)/(e+1)}function p0(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2],u=o-n,l=a-r,c=u*u+l*l,d,f;if(c<f0)f=Math.log(s/i)/Xn,d=function(w){return[n+w*u,r+w*l,i*Math.exp(Xn*w*f)]};else{var h=Math.sqrt(c),v=(s*s-i*i+bu*c)/(2*i*xo*h),p=(s*s-i*i-bu*c)/(2*s*xo*h),g=Math.log(Math.sqrt(v*v+1)-v),x=Math.log(Math.sqrt(p*p+1)-p);f=(x-g)/Xn,d=function(w){var T=w*f,b=xu(g),y=i/(xo*h)*(b*h0(Xn*T+g)-d0(g));return[n+y*u,r+y*l,i*b/xu(Xn*T+g)]}}return d.duration=f*1e3,d}var cn=0,Jn=0,Zn=0,Mu=1e3,Lr,er,Pr=0,Gt=0,Fr=0,tr=typeof performance=="object"&&performance.now?performance:Date,wu=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ur(){return Gt||(wu(g0),Gt=tr.now()+Fr)}function g0(){Gt=0}function Yr(){this._call=this._time=this._next=null}Yr.prototype=Tu.prototype={constructor:Yr,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Ur():+n)+(t==null?0:+t),!this._next&&er!==this&&(er?er._next=this:Lr=this,er=this),this._call=e,this._time=n,Mo()},stop:function(){this._call&&(this._call=null,this._time=1/0,Mo())}};function Tu(e,t,n){var r=new Yr;return r.restart(e,t,n),r}function m0(){Ur(),++cn;for(var e=Lr,t;e;)(t=Gt-e._time)>=0&&e._call.call(null,t),e=e._next;--cn}function Nu(){Gt=(Pr=tr.now())+Fr,cn=Jn=0;try{m0()}finally{cn=0,y0(),Gt=0}}function v0(){var e=tr.now(),t=e-Pr;t>Mu&&(Fr-=t,Pr=e)}function y0(){for(var e,t=Lr,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Lr=n);er=e,Mo(r)}function Mo(e){if(!cn){Jn&&(Jn=clearTimeout(Jn));var t=e-Gt;t>24?(e<1/0&&(Jn=setTimeout(Nu,e-tr.now()-Fr)),Zn&&(Zn=clearInterval(Zn))):(Zn||(Pr=tr.now(),Zn=setInterval(v0,Mu)),cn=1,wu(Nu))}}function Eu(e,t,n){var r=new Yr;return t=t==null?0:+t,r.restart(function(i){r.stop(),e(i+t)},t,n),r}var _0=co("start","end","cancel","interrupt"),b0=[],Du=0,Ou=1,wo=2,qr=3,Cu=4,To=5,Vr=6;function Br(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;x0(e,n,{name:t,index:r,group:i,on:_0,tween:b0,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Du})}function No(e,t){var n=gt(e,t);if(n.state>Du)throw new Error("too late; already scheduled");return n}function Ot(e,t){var n=gt(e,t);if(n.state>qr)throw new Error("too late; already running");return n}function gt(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function x0(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Tu(o,0,n.time);function o(l){n.state=Ou,n.timer.restart(a,n.delay,n.time),n.delay<=l&&a(l-n.delay)}function a(l){var c,d,f,h;if(n.state!==Ou)return u();for(c in r)if(h=r[c],h.name===n.name){if(h.state===qr)return Eu(a);h.state===Cu?(h.state=Vr,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=Vr,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(Eu(function(){n.state===qr&&(n.state=Cu,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=wo,n.on.call("start",e,e.__data__,n.index,n.group),n.state===wo){for(n.state=qr,i=new Array(f=n.tween.length),c=0,d=-1;c<f;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=h);i.length=d+1}}function s(l){for(var c=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(u),n.state=To,1),d=-1,f=i.length;++d<f;)i[d].call(e,c);n.state===To&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=Vr,n.timer.stop(),delete r[t];for(var l in r)return;delete e.__transition}}function Qr(e,t){var n=e.__transition,r,i,o=!0,a;if(!!n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){o=!1;continue}i=r.state>wo&&r.state<To,r.state=Vr,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}o&&delete e.__transition}}function M0(e){return this.each(function(){Qr(this,e)})}function w0(e,t){var n,r;return function(){var i=Ot(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function T0(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Ot(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function N0(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=gt(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===e)return a.value;return null}return this.each((t==null?w0:T0)(n,e,t))}function Eo(e,t,n){var r=e._id;return e.each(function(){var i=Ot(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return gt(i,r).value[t]}}function Su(e,t){var n;return(typeof t=="number"?Lt:t instanceof Kn?gu:(n=Kn(t))?(t=n,gu):a0)(e,t)}function E0(e){return function(){this.removeAttribute(e)}}function D0(e){return function(){this.removeAttributeNS(e.space,e.local)}}function O0(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}}function C0(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}function S0(e,t,n){var r,i,o;return function(){var a,s=n(this),u;return s==null?void this.removeAttribute(e):(a=this.getAttribute(e),u=s+"",a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s)))}}function A0(e,t,n){var r,i,o;return function(){var a,s=n(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),u=s+"",a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s)))}}function I0(e,t){var n=Vn(e),r=n==="transform"?c0:Su;return this.attrTween(e,typeof t=="function"?(n.local?A0:S0)(n,r,Eo(this,"attr."+e,t)):t==null?(n.local?D0:E0)(n):(n.local?C0:O0)(n,r,t))}function z0(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function k0(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function j0(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&k0(e,o)),n}return i._value=t,i}function $0(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&z0(e,o)),n}return i._value=t,i}function R0(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Vn(e);return this.tween(n,(r.local?j0:$0)(r,t))}function L0(e,t){return function(){No(this,e).delay=+t.apply(this,arguments)}}function P0(e,t){return t=+t,function(){No(this,e).delay=t}}function F0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?L0:P0)(t,e)):gt(this.node(),t).delay}function U0(e,t){return function(){Ot(this,e).duration=+t.apply(this,arguments)}}function Y0(e,t){return t=+t,function(){Ot(this,e).duration=t}}function q0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?U0:Y0)(t,e)):gt(this.node(),t).duration}function V0(e,t){if(typeof t!="function")throw new Error;return function(){Ot(this,e).ease=t}}function B0(e){var t=this._id;return arguments.length?this.each(V0(t,e)):gt(this.node(),t).ease}function Q0(e){typeof e!="function"&&(e=no(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=[],u,l=0;l<a;++l)(u=o[l])&&e.call(u,u.__data__,l,o)&&s.push(u);return new Ct(r,this._parents,this._name,this._id)}function W0(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u=t[s],l=n[s],c=u.length,d=a[s]=new Array(c),f,h=0;h<c;++h)(f=u[h]||l[h])&&(d[h]=f);for(;s<r;++s)a[s]=t[s];return new Ct(a,this._parents,this._name,this._id)}function G0(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function K0(e,t,n){var r,i,o=G0(t)?No:Ot;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function H0(e,t){var n=this._id;return arguments.length<2?gt(this.node(),n).on.on(e):this.each(K0(n,e,t))}function X0(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function J0(){return this.on("end.remove",X0(this._id))}function Z0(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ar(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],u=s.length,l=o[a]=new Array(u),c,d,f=0;f<u;++f)(c=s[f])&&(d=e.call(c,c.__data__,f,s))&&("__data__"in c&&(d.__data__=c.__data__),l[f]=d,Br(l[f],t,n,f,l,gt(c,n)));return new Ct(o,this._parents,t,n)}function eg(e){var t=this._name,n=this._id;typeof e!="function"&&(e=to(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u=r[s],l=u.length,c,d=0;d<l;++d)if(c=u[d]){for(var f=e.call(c,c.__data__,d,u),h,v=gt(c,n),p=0,g=f.length;p<g;++p)(h=f[p])&&Br(h,t,n,p,f,v);o.push(f),a.push(c)}return new Ct(o,a,t,n)}var tg=un.prototype.constructor;function ng(){return new tg(this._groups,this._parents)}function rg(e,t){var n,r,i;return function(){var o=Wt(this,e),a=(this.style.removeProperty(e),Wt(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function Au(e){return function(){this.style.removeProperty(e)}}function ig(e,t,n){var r,i=n+"",o;return function(){var a=Wt(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}function og(e,t,n){var r,i,o;return function(){var a=Wt(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Wt(this,e))),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}function ag(e,t){var n,r,i,o="style."+t,a="end."+o,s;return function(){var u=Ot(this,e),l=u.on,c=u.value[o]==null?s||(s=Au(t)):void 0;(l!==n||i!==c)&&(r=(n=l).copy()).on(a,i=c),u.on=r}}function sg(e,t,n){var r=(e+="")=="transform"?l0:Su;return t==null?this.styleTween(e,rg(e,r)).on("end.style."+e,Au(e)):typeof t=="function"?this.styleTween(e,og(e,r,Eo(this,"style."+e,t))).each(ag(this._id,e)):this.styleTween(e,ig(e,r,t),n).on("end.style."+e,null)}function ug(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function lg(e,t,n){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&ug(e,a,n)),r}return o._value=t,o}function cg(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,lg(e,t,n==null?"":n))}function fg(e){return function(){this.textContent=e}}function dg(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function hg(e){return this.tween("text",typeof e=="function"?dg(Eo(this,"text",e)):fg(e==null?"":e+""))}function pg(e){return function(t){this.textContent=e.call(this,t)}}function gg(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&pg(i)),t}return r._value=e,r}function mg(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,gg(e))}function vg(){for(var e=this._name,t=this._id,n=Iu(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,u,l=0;l<s;++l)if(u=a[l]){var c=gt(u,t);Br(u,e,n,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Ct(r,this._parents,e,n)}function yg(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},u={value:function(){--i===0&&o()}};n.each(function(){var l=Ot(this,r),c=l.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),l.on=t})})}var _g=0;function Ct(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Iu(){return++_g}var fn=un.prototype;Ct.prototype={constructor:Ct,select:Z0,selectAll:eg,filter:Q0,merge:W0,selection:ng,transition:vg,call:fn.call,nodes:fn.nodes,node:fn.node,size:fn.size,empty:fn.empty,each:fn.each,on:H0,attr:I0,attrTween:R0,style:sg,styleTween:cg,text:hg,textTween:mg,remove:J0,tween:N0,delay:F0,duration:q0,ease:B0,end:yg};function bg(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Do={time:null,delay:0,duration:250,ease:bg};function xg(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return Do.time=Ur(),Do;return n}function Mg(e){var t,n;e instanceof Ct?(t=e._id,e=e._name):(t=Iu(),(n=Do).time=Ur(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,u,l=0;l<s;++l)(u=a[l])&&Br(u,e,t,l,a,n||xg(u,t));return new Ct(r,this._parents,e,t)}un.prototype.interrupt=M0,un.prototype.transition=Mg;function Wr(e){return function(){return e}}function wg(e,t,n){this.target=e,this.type=t,this.transform=n}function St(e,t,n){this.k=e,this.x=t,this.y=n}St.prototype={constructor:St,scale:function(e){return e===1?this:new St(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new St(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Gr=new St(1,0,0);zu.prototype=St.prototype;function zu(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Gr;return e.__zoom}function Oo(){ce.stopImmediatePropagation()}function nr(){ce.preventDefault(),ce.stopImmediatePropagation()}function Tg(){return!ce.ctrlKey&&!ce.button}function Ng(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function ku(){return this.__zoom||Gr}function Eg(){return-ce.deltaY*(ce.deltaMode===1?.05:ce.deltaMode?1:.002)}function Dg(){return navigator.maxTouchPoints||"ontouchstart"in this}function Og(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function Cg(){var e=Tg,t=Ng,n=Og,r=Eg,i=Dg,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,u=p0,l=co("start","zoom","end"),c,d,f=500,h=150,v=0;function p(m){m.property("__zoom",ku).on("wheel.zoom",C).on("mousedown.zoom",I).on("dblclick.zoom",O).filter(i).on("touchstart.zoom",E).on("touchmove.zoom",D).on("touchend.zoom touchcancel.zoom",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(m,N,z){var R=m.selection?m.selection():m;R.property("__zoom",ku),m!==R?T(m,N,z):R.interrupt().each(function(){b(this,arguments).start().zoom(null,typeof N=="function"?N.apply(this,arguments):N).end()})},p.scaleBy=function(m,N,z){p.scaleTo(m,function(){var R=this.__zoom.k,L=typeof N=="function"?N.apply(this,arguments):N;return R*L},z)},p.scaleTo=function(m,N,z){p.transform(m,function(){var R=t.apply(this,arguments),L=this.__zoom,V=z==null?w(R):typeof z=="function"?z.apply(this,arguments):z,q=L.invert(V),ee=typeof N=="function"?N.apply(this,arguments):N;return n(x(g(L,ee),V,q),R,a)},z)},p.translateBy=function(m,N,z){p.transform(m,function(){return n(this.__zoom.translate(typeof N=="function"?N.apply(this,arguments):N,typeof z=="function"?z.apply(this,arguments):z),t.apply(this,arguments),a)})},p.translateTo=function(m,N,z,R){p.transform(m,function(){var L=t.apply(this,arguments),V=this.__zoom,q=R==null?w(L):typeof R=="function"?R.apply(this,arguments):R;return n(Gr.translate(q[0],q[1]).scale(V.k).translate(typeof N=="function"?-N.apply(this,arguments):-N,typeof z=="function"?-z.apply(this,arguments):-z),L,a)},R)};function g(m,N){return N=Math.max(o[0],Math.min(o[1],N)),N===m.k?m:new St(N,m.x,m.y)}function x(m,N,z){var R=N[0]-z[0]*m.k,L=N[1]-z[1]*m.k;return R===m.x&&L===m.y?m:new St(m.k,R,L)}function w(m){return[(+m[0][0]+ +m[1][0])/2,(+m[0][1]+ +m[1][1])/2]}function T(m,N,z){m.on("start.zoom",function(){b(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){b(this,arguments).end()}).tween("zoom",function(){var R=this,L=arguments,V=b(R,L),q=t.apply(R,L),ee=z==null?w(q):typeof z=="function"?z.apply(R,L):z,A=Math.max(q[1][0]-q[0][0],q[1][1]-q[0][1]),$=R.__zoom,G=typeof N=="function"?N.apply(R,L):N,B=u($.invert(ee).concat(A/$.k),G.invert(ee).concat(A/G.k));return function(U){if(U===1)U=G;else{var X=B(U),K=A/X[2];U=new St(K,ee[0]-X[0]*K,ee[1]-X[1]*K)}V.zoom(null,U)}})}function b(m,N,z){return!z&&m.__zooming||new y(m,N)}function y(m,N){this.that=m,this.args=N,this.active=0,this.extent=t.apply(m,N),this.taps=0}y.prototype={start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(m,N){return this.mouse&&m!=="mouse"&&(this.mouse[1]=N.invert(this.mouse[0])),this.touch0&&m!=="touch"&&(this.touch0[1]=N.invert(this.touch0[0])),this.touch1&&m!=="touch"&&(this.touch1[1]=N.invert(this.touch1[0])),this.that.__zoom=N,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(m){eu(new wg(p,m,this.that.__zoom),l.apply,l,[m,this.that,this.args])}};function C(){if(!e.apply(this,arguments))return;var m=b(this,arguments),N=this.__zoom,z=Math.max(o[0],Math.min(o[1],N.k*Math.pow(2,r.apply(this,arguments)))),R=Bn(this);if(m.wheel)(m.mouse[0][0]!==R[0]||m.mouse[0][1]!==R[1])&&(m.mouse[1]=N.invert(m.mouse[0]=R)),clearTimeout(m.wheel);else{if(N.k===z)return;m.mouse=[R,N.invert(R)],Qr(this),m.start()}nr(),m.wheel=setTimeout(L,h),m.zoom("mouse",n(x(g(N,z),m.mouse[0],m.mouse[1]),m.extent,a));function L(){m.wheel=null,m.end()}}function I(){if(d||!e.apply(this,arguments))return;var m=b(this,arguments,!0),N=Rt(ce.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",q,!0),z=Bn(this),R=ce.clientX,L=ce.clientY;qp(ce.view),Oo(),m.mouse=[z,this.__zoom.invert(z)],Qr(this),m.start();function V(){if(nr(),!m.moved){var ee=ce.clientX-R,A=ce.clientY-L;m.moved=ee*ee+A*A>v}m.zoom("mouse",n(x(m.that.__zoom,m.mouse[0]=Bn(m.that),m.mouse[1]),m.extent,a))}function q(){N.on("mousemove.zoom mouseup.zoom",null),Vp(ce.view,m.moved),nr(),m.end()}}function O(){if(!!e.apply(this,arguments)){var m=this.__zoom,N=Bn(this),z=m.invert(N),R=m.k*(ce.shiftKey?.5:2),L=n(x(g(m,R),N,z),t.apply(this,arguments),a);nr(),s>0?Rt(this).transition().duration(s).call(T,L,N):Rt(this).call(p.transform,L)}}function E(){if(!!e.apply(this,arguments)){var m=ce.touches,N=m.length,z=b(this,arguments,ce.changedTouches.length===N),R,L,V,q;for(Oo(),L=0;L<N;++L)V=m[L],q=uo(this,m,V.identifier),q=[q,this.__zoom.invert(q),V.identifier],z.touch0?!z.touch1&&z.touch0[2]!==q[2]&&(z.touch1=q,z.taps=0):(z.touch0=q,R=!0,z.taps=1+!!c);c&&(c=clearTimeout(c)),R&&(z.taps<2&&(c=setTimeout(function(){c=null},f)),Qr(this),z.start())}}function D(){if(!!this.__zooming){var m=b(this,arguments),N=ce.changedTouches,z=N.length,R,L,V,q;for(nr(),c&&(c=clearTimeout(c)),m.taps=0,R=0;R<z;++R)L=N[R],V=uo(this,N,L.identifier),m.touch0&&m.touch0[2]===L.identifier?m.touch0[0]=V:m.touch1&&m.touch1[2]===L.identifier&&(m.touch1[0]=V);if(L=m.that.__zoom,m.touch1){var ee=m.touch0[0],A=m.touch0[1],$=m.touch1[0],G=m.touch1[1],B=(B=$[0]-ee[0])*B+(B=$[1]-ee[1])*B,U=(U=G[0]-A[0])*U+(U=G[1]-A[1])*U;L=g(L,Math.sqrt(B/U)),V=[(ee[0]+$[0])/2,(ee[1]+$[1])/2],q=[(A[0]+G[0])/2,(A[1]+G[1])/2]}else if(m.touch0)V=m.touch0[0],q=m.touch0[1];else return;m.zoom("touch",n(x(L,V,q),m.extent,a))}}function k(){if(!!this.__zooming){var m=b(this,arguments),N=ce.changedTouches,z=N.length,R,L;for(Oo(),d&&clearTimeout(d),d=setTimeout(function(){d=null},f),R=0;R<z;++R)L=N[R],m.touch0&&m.touch0[2]===L.identifier?delete m.touch0:m.touch1&&m.touch1[2]===L.identifier&&delete m.touch1;if(m.touch1&&!m.touch0&&(m.touch0=m.touch1,delete m.touch1),m.touch0)m.touch0[1]=this.__zoom.invert(m.touch0[0]);else if(m.end(),m.taps===2){var V=Rt(this).on("dblclick.zoom");V&&V.apply(this,arguments)}}}return p.wheelDelta=function(m){return arguments.length?(r=typeof m=="function"?m:Wr(+m),p):r},p.filter=function(m){return arguments.length?(e=typeof m=="function"?m:Wr(!!m),p):e},p.touchable=function(m){return arguments.length?(i=typeof m=="function"?m:Wr(!!m),p):i},p.extent=function(m){return arguments.length?(t=typeof m=="function"?m:Wr([[+m[0][0],+m[0][1]],[+m[1][0],+m[1][1]]]),p):t},p.scaleExtent=function(m){return arguments.length?(o[0]=+m[0],o[1]=+m[1],p):[o[0],o[1]]},p.translateExtent=function(m){return arguments.length?(a[0][0]=+m[0][0],a[1][0]=+m[1][0],a[0][1]=+m[0][1],a[1][1]=+m[1][1],p):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},p.constrain=function(m){return arguments.length?(n=m,p):n},p.duration=function(m){return arguments.length?(s=+m,p):s},p.interpolate=function(m){return arguments.length?(u=m,p):u},p.on=function(){var m=l.on.apply(l,arguments);return m===l?p:m},p.clickDistance=function(m){return arguments.length?(v=(m=+m)*m,p):Math.sqrt(v)},p}const Sg=$t(Object.freeze(Object.defineProperty({__proto__:null,zoom:Cg,zoomTransform:zu,zoomIdentity:Gr},Symbol.toStringTag,{value:"Module"})));var ju={},$u=Object.prototype.hasOwnProperty;function Co(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Co(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if($u.call(e,n)&&++r&&!$u.call(t,n)||!(n in t)||!Co(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}ju.dequal=Co;var Ru={exports:{}};(function(e){var t=function(){function n(f,h){return h!=null&&f instanceof h}var r;try{r=Map}catch{r=function(){}}var i;try{i=Set}catch{i=function(){}}var o;try{o=Promise}catch{o=function(){}}function a(f,h,v,p,g){typeof h=="object"&&(v=h.depth,p=h.prototype,g=h.includeNonEnumerable,h=h.circular);var x=[],w=[],T=typeof Buffer<"u";typeof h>"u"&&(h=!0),typeof v>"u"&&(v=1/0);function b(y,C){if(y===null)return null;if(C===0)return y;var I,O;if(typeof y!="object")return y;if(n(y,r))I=new r;else if(n(y,i))I=new i;else if(n(y,o))I=new o(function(V,q){y.then(function(ee){V(b(ee,C-1))},function(ee){q(b(ee,C-1))})});else if(a.__isArray(y))I=[];else if(a.__isRegExp(y))I=new RegExp(y.source,d(y)),y.lastIndex&&(I.lastIndex=y.lastIndex);else if(a.__isDate(y))I=new Date(y.getTime());else{if(T&&Buffer.isBuffer(y))return Buffer.allocUnsafe?I=Buffer.allocUnsafe(y.length):I=new Buffer(y.length),y.copy(I),I;n(y,Error)?I=Object.create(y):typeof p>"u"?(O=Object.getPrototypeOf(y),I=Object.create(O)):(I=Object.create(p),O=p)}if(h){var E=x.indexOf(y);if(E!=-1)return w[E];x.push(y),w.push(I)}n(y,r)&&y.forEach(function(V,q){var ee=b(q,C-1),A=b(V,C-1);I.set(ee,A)}),n(y,i)&&y.forEach(function(V){var q=b(V,C-1);I.add(q)});for(var D in y){var k;O&&(k=Object.getOwnPropertyDescriptor(O,D)),!(k&&k.set==null)&&(I[D]=b(y[D],C-1))}if(Object.getOwnPropertySymbols)for(var m=Object.getOwnPropertySymbols(y),D=0;D<m.length;D++){var N=m[D],z=Object.getOwnPropertyDescriptor(y,N);z&&!z.enumerable&&!g||(I[N]=b(y[N],C-1),z.enumerable||Object.defineProperty(I,N,{enumerable:!1}))}if(g)for(var R=Object.getOwnPropertyNames(y),D=0;D<R.length;D++){var L=R[D],z=Object.getOwnPropertyDescriptor(y,L);z&&z.enumerable||(I[L]=b(y[L],C-1),Object.defineProperty(I,L,{enumerable:!1}))}return I}return b(f,v)}a.clonePrototype=function(h){if(h===null)return null;var v=function(){};return v.prototype=h,new v};function s(f){return Object.prototype.toString.call(f)}a.__objToStr=s;function u(f){return typeof f=="object"&&s(f)==="[object Date]"}a.__isDate=u;function l(f){return typeof f=="object"&&s(f)==="[object Array]"}a.__isArray=l;function c(f){return typeof f=="object"&&s(f)==="[object RegExp]"}a.__isRegExp=c;function d(f){var h="";return f.global&&(h+="g"),f.ignoreCase&&(h+="i"),f.multiline&&(h+="m"),h}return a.__getRegExpFlags=d,a}();e.exports&&(e.exports=t)})(Ru);var Kr,Ag=new Uint8Array(16);function Lu(){if(!Kr&&(Kr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Kr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Kr(Ag)}const Ig=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Hr(e){return typeof e=="string"&&Ig.test(e)}for(var $e=[],So=0;So<256;++So)$e.push((So+256).toString(16).substr(1));function Xr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=($e[e[t+0]]+$e[e[t+1]]+$e[e[t+2]]+$e[e[t+3]]+"-"+$e[e[t+4]]+$e[e[t+5]]+"-"+$e[e[t+6]]+$e[e[t+7]]+"-"+$e[e[t+8]]+$e[e[t+9]]+"-"+$e[e[t+10]]+$e[e[t+11]]+$e[e[t+12]]+$e[e[t+13]]+$e[e[t+14]]+$e[e[t+15]]).toLowerCase();if(!Hr(n))throw TypeError("Stringified UUID is invalid");return n}var Pu,Ao,Io=0,zo=0;function zg(e,t,n){var r=t&&n||0,i=t||new Array(16);e=e||{};var o=e.node||Pu,a=e.clockseq!==void 0?e.clockseq:Ao;if(o==null||a==null){var s=e.random||(e.rng||Lu)();o==null&&(o=Pu=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]),a==null&&(a=Ao=(s[6]<<8|s[7])&16383)}var u=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:zo+1,c=u-Io+(l-zo)/1e4;if(c<0&&e.clockseq===void 0&&(a=a+1&16383),(c<0||u>Io)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Io=u,zo=l,Ao=a,u+=122192928e5;var d=((u&268435455)*1e4+l)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=d&255;var f=u/4294967296*1e4&268435455;i[r++]=f>>>8&255,i[r++]=f&255,i[r++]=f>>>24&15|16,i[r++]=f>>>16&255,i[r++]=a>>>8|128,i[r++]=a&255;for(var h=0;h<6;++h)i[r+h]=o[h];return t||Xr(i)}function Fu(e){if(!Hr(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}function kg(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var jg="6ba7b810-9dad-11d1-80b4-00c04fd430c8",$g="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Uu(e,t,n){function r(i,o,a,s){if(typeof i=="string"&&(i=kg(i)),typeof o=="string"&&(o=Fu(o)),o.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+i.length);if(u.set(o),u.set(i,o.length),u=n(u),u[6]=u[6]&15|t,u[8]=u[8]&63|128,a){s=s||0;for(var l=0;l<16;++l)a[s+l]=u[l];return a}return Xr(u)}try{r.name=e}catch{}return r.DNS=jg,r.URL=$g,r}function Rg(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return Lg(Pg(Fg(e),e.length*8))}function Lg(e){for(var t=[],n=e.length*32,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(o&15),16);t.push(a)}return t}function Yu(e){return(e+64>>>9<<4)+14+1}function Pg(e,t){e[t>>5]|=128<<t%32,e[Yu(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,u=r,l=i,c=o;n=Ue(n,r,i,o,e[a],7,-680876936),o=Ue(o,n,r,i,e[a+1],12,-389564586),i=Ue(i,o,n,r,e[a+2],17,606105819),r=Ue(r,i,o,n,e[a+3],22,-1044525330),n=Ue(n,r,i,o,e[a+4],7,-176418897),o=Ue(o,n,r,i,e[a+5],12,1200080426),i=Ue(i,o,n,r,e[a+6],17,-1473231341),r=Ue(r,i,o,n,e[a+7],22,-45705983),n=Ue(n,r,i,o,e[a+8],7,1770035416),o=Ue(o,n,r,i,e[a+9],12,-1958414417),i=Ue(i,o,n,r,e[a+10],17,-42063),r=Ue(r,i,o,n,e[a+11],22,-1990404162),n=Ue(n,r,i,o,e[a+12],7,1804603682),o=Ue(o,n,r,i,e[a+13],12,-40341101),i=Ue(i,o,n,r,e[a+14],17,-1502002290),r=Ue(r,i,o,n,e[a+15],22,1236535329),n=Ye(n,r,i,o,e[a+1],5,-165796510),o=Ye(o,n,r,i,e[a+6],9,-1069501632),i=Ye(i,o,n,r,e[a+11],14,643717713),r=Ye(r,i,o,n,e[a],20,-373897302),n=Ye(n,r,i,o,e[a+5],5,-701558691),o=Ye(o,n,r,i,e[a+10],9,38016083),i=Ye(i,o,n,r,e[a+15],14,-660478335),r=Ye(r,i,o,n,e[a+4],20,-405537848),n=Ye(n,r,i,o,e[a+9],5,568446438),o=Ye(o,n,r,i,e[a+14],9,-1019803690),i=Ye(i,o,n,r,e[a+3],14,-187363961),r=Ye(r,i,o,n,e[a+8],20,1163531501),n=Ye(n,r,i,o,e[a+13],5,-1444681467),o=Ye(o,n,r,i,e[a+2],9,-51403784),i=Ye(i,o,n,r,e[a+7],14,1735328473),r=Ye(r,i,o,n,e[a+12],20,-1926607734),n=qe(n,r,i,o,e[a+5],4,-378558),o=qe(o,n,r,i,e[a+8],11,-2022574463),i=qe(i,o,n,r,e[a+11],16,1839030562),r=qe(r,i,o,n,e[a+14],23,-35309556),n=qe(n,r,i,o,e[a+1],4,-1530992060),o=qe(o,n,r,i,e[a+4],11,1272893353),i=qe(i,o,n,r,e[a+7],16,-155497632),r=qe(r,i,o,n,e[a+10],23,-1094730640),n=qe(n,r,i,o,e[a+13],4,681279174),o=qe(o,n,r,i,e[a],11,-358537222),i=qe(i,o,n,r,e[a+3],16,-722521979),r=qe(r,i,o,n,e[a+6],23,76029189),n=qe(n,r,i,o,e[a+9],4,-640364487),o=qe(o,n,r,i,e[a+12],11,-421815835),i=qe(i,o,n,r,e[a+15],16,530742520),r=qe(r,i,o,n,e[a+2],23,-995338651),n=Ve(n,r,i,o,e[a],6,-198630844),o=Ve(o,n,r,i,e[a+7],10,1126891415),i=Ve(i,o,n,r,e[a+14],15,-1416354905),r=Ve(r,i,o,n,e[a+5],21,-57434055),n=Ve(n,r,i,o,e[a+12],6,1700485571),o=Ve(o,n,r,i,e[a+3],10,-1894986606),i=Ve(i,o,n,r,e[a+10],15,-1051523),r=Ve(r,i,o,n,e[a+1],21,-2054922799),n=Ve(n,r,i,o,e[a+8],6,1873313359),o=Ve(o,n,r,i,e[a+15],10,-30611744),i=Ve(i,o,n,r,e[a+6],15,-1560198380),r=Ve(r,i,o,n,e[a+13],21,1309151649),n=Ve(n,r,i,o,e[a+4],6,-145523070),o=Ve(o,n,r,i,e[a+11],10,-1120210379),i=Ve(i,o,n,r,e[a+2],15,718787259),r=Ve(r,i,o,n,e[a+9],21,-343485551),n=Pt(n,s),r=Pt(r,u),i=Pt(i,l),o=Pt(o,c)}return[n,r,i,o]}function Fg(e){if(e.length===0)return[];for(var t=e.length*8,n=new Uint32Array(Yu(t)),r=0;r<t;r+=8)n[r>>5]|=(e[r/8]&255)<<r%32;return n}function Pt(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Ug(e,t){return e<<t|e>>>32-t}function Jr(e,t,n,r,i,o){return Pt(Ug(Pt(Pt(t,e),Pt(r,o)),i),n)}function Ue(e,t,n,r,i,o,a){return Jr(t&n|~t&r,e,t,i,o,a)}function Ye(e,t,n,r,i,o,a){return Jr(t&r|n&~r,e,t,i,o,a)}function qe(e,t,n,r,i,o,a){return Jr(t^n^r,e,t,i,o,a)}function Ve(e,t,n,r,i,o,a){return Jr(n^(t|~r),e,t,i,o,a)}var Yg=Uu("v3",48,Rg);const qg=Yg;function Vg(e,t,n){e=e||{};var r=e.random||(e.rng||Lu)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Xr(r)}function Bg(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function ko(e,t){return e<<t|e>>>32-t}function Qg(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),u=0;u<a;++u){for(var l=new Uint32Array(16),c=0;c<16;++c)l[c]=e[u*64+c*4]<<24|e[u*64+c*4+1]<<16|e[u*64+c*4+2]<<8|e[u*64+c*4+3];s[u]=l}s[a-1][14]=(e.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(e.length-1)*8&4294967295;for(var d=0;d<a;++d){for(var f=new Uint32Array(80),h=0;h<16;++h)f[h]=s[d][h];for(var v=16;v<80;++v)f[v]=ko(f[v-3]^f[v-8]^f[v-14]^f[v-16],1);for(var p=n[0],g=n[1],x=n[2],w=n[3],T=n[4],b=0;b<80;++b){var y=Math.floor(b/20),C=ko(p,5)+Bg(y,g,x,w)+T+t[y]+f[b]>>>0;T=w,w=x,x=ko(g,30)>>>0,g=p,p=C}n[0]=n[0]+p>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+x>>>0,n[3]=n[3]+w>>>0,n[4]=n[4]+T>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var Wg=Uu("v5",80,Qg);const Gg=Wg,Kg="00000000-0000-0000-0000-000000000000";function Hg(e){if(!Hr(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Xg=$t(Object.freeze(Object.defineProperty({__proto__:null,v1:zg,v3:qg,v4:Vg,v5:Gg,NIL:Kg,version:Hg,validate:Hr,stringify:Xr,parse:Fu},Symbol.toStringTag,{value:"Module"})));var jo={},$o={exports:{}},le={exports:{}},Ro={exports:{}},he={};/** @license React v16.13.1
27
+ Check the top-level render call using <`+P+">.")}return j}}function Fe(_,j){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var P=Ne(j);if(de[P])return;de[P]=!0;var H="";_&&_._owner&&_._owner!==kn.current&&(H=" It was passed a child from "+N(_._owner.type)+"."),kt(_),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',P,H),kt(null)}}function He(_,j){{if(typeof _!="object")return;if(br(_))for(var P=0;P<_.length;P++){var H=_[P];jn(H)&&Fe(H,j)}else if(jn(_))_._store&&(_._store.validated=!0);else if(_){var se=g(_);if(typeof se=="function"&&se!==_.entries)for(var be=se.call(_),ue;!(ue=be.next()).done;)jn(ue.value)&&Fe(ue.value,j)}}}function pt(_){{var j=_.type;if(j==null||typeof j=="string")return;var P;if(typeof j=="function")P=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===u||j.$$typeof===d))P=j.propTypes;else return;if(P){var H=N(j);_s(P,_.props,"prop",H,_)}else if(j.PropTypes!==void 0&&!zn){zn=!0;var se=N(j);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tt(_){{for(var j=Object.keys(_.props),P=0;P<j.length;P++){var H=j[P];if(H!=="children"&&H!=="key"){kt(_),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",H),kt(null);break}}_.ref!==null&&(kt(_),w("Invalid attribute `ref` supplied to `React.Fragment`."),kt(null))}}function yt(_,j,P,H,se,be){{var ue=D(_);if(!ue){var re="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ae=_e(se);Ae?re+=Ae:re+=F();var Ee;_===null?Ee="null":br(_)?Ee="array":_!==void 0&&_.$$typeof===t?(Ee="<"+(N(_.type)||"Unknown")+" />",re=" Did you accidentally export a JSX literal instead of a component?"):Ee=typeof _,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ee,re)}var Ce=Qi(_,j,P,se,be);if(Ce==null)return Ce;if(ue){var nt=j.children;if(nt!==void 0)if(H)if(br(nt)){for(var zt=0;zt<nt.length;zt++)He(nt[zt],_);Object.freeze&&Object.freeze(nt)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else He(nt,_)}return _===r?tt(Ce):pt(Ce),Ce}}function $n(_,j,P){return yt(_,j,P,!0)}function Rn(_,j,P){return yt(_,j,P,!1)}var Bt=Rn,Ln=$n;Un.Fragment=r,Un.jsx=Bt,Un.jsxs=Ln}()),Un}(function(e){process.env.NODE_ENV==="production"?e.exports=ud():e.exports=ld()})(Mr);const wr=Mr.exports.Fragment,M=Mr.exports.jsx,oe=Mr.exports.jsxs,cd=Object.freeze(Object.defineProperty({__proto__:null,Fragment:wr,jsx:M,jsxs:oe},Symbol.toStringTag,{value:"Module"})),fd=({children:e})=>oe(wr,{children:[M(S.GlobalStyles,{styles:{"*":{scrollbarColor:"rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05)",scrollbarWidth:"thin"},"*::-webkit-scrollbar":{height:6,width:6},"*::-webkit-scrollbar-button":{height:0,width:0},"*::-webkit-scrollbar-corner":{background:"transparent"},"*::-webkit-scrollbar-thumb":{backgroundColor:"rgba(255, 255, 255, 0.2)",border:0,borderRadius:10},"*::-webkit-scrollbar-track":{background:"rgba(255, 255, 255, 0.05)"},"html, body, #root":{height:"100%"}}}),M(S.ThemeProvider,{theme:sd,children:e})]}),dd=new nn.QueryClient({defaultOptions:{queries:{retry:!1}}}),hd={authToken:void 0},pd=W.createContext(hd),gd=({children:e,authToken:t})=>{const n=W.useMemo(()=>({authToken:t}),[t]);return M(pd.Provider,{value:n,children:e})},Es={dispatchSnackbar:()=>null,snackbar:{open:!1}},Ds=W.createContext(Es),Tr={closeSnackbar:"closeSnackbar",openSnackbar:"openSnackbar"},md=(e,t="success")=>({message:e,severity:t,type:Tr.openSnackbar}),Os=()=>({type:Tr.closeSnackbar}),vd=(e,t)=>{switch(t.type){case Tr.openSnackbar:{const{message:n,severity:r}=t;return{message:n,open:!0,severity:r}}case Tr.closeSnackbar:return{...e,open:!1};default:throw new Error}},yd={snackbarAlert:{width:"100%"}},_d=({children:e})=>{const[t,n]=W.useReducer(vd,Es.snackbar),{message:r,open:i,severity:o}=t,a=6e3,s=()=>n(Os()),u=W.useMemo(()=>({dispatchSnackbar:n,snackbar:t}),[t,n]);return oe(Ds.Provider,{value:u,children:[M(S.Snackbar,{open:i,autoHideDuration:a,onClose:s,anchorOrigin:{horizontal:"center",vertical:"bottom"},children:M(S.Alert,{onClose:s,severity:o,sx:yd.snackbarAlert,variant:"filled",children:r})}),e]})},bd="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYyIiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDQ2MiAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yXzY1KSI+CjxwYXRoIGQ9Ik0xMzcgNDEuMzRMMTE2LjU3IDZDMTE2LjIyIDUuMzkzOTkgMTE1LjcxNyA0Ljg5MDM3IDExNS4xMTIgNC41Mzk0MkMxMTQuNTA3IDQuMTg4NDcgMTEzLjgyIDQuMDAyNDcgMTEzLjEyIDRIMzguODNDMzguMTMwMiA0LjAwMjQ3IDM3LjQ0MzQgNC4xODg0NyAzNi44MzggNC41Mzk0MkMzNi4yMzI2IDQuODkwMzcgMzUuNzI5OSA1LjM5Mzk5IDM1LjM4IDZMMTUgNDEuMzRDMTQuNjQ5NSA0MS45NDcgMTQuNDY0NyA0Mi42MzU1IDE0LjQ2NDEgNDMuMzM2NUMxNC40NjM1IDQ0LjAzNzQgMTQuNjQ3MSA0NC43MjYyIDE0Ljk5NjUgNDUuMzMzOUMxNS4zNDU5IDQ1Ljk0MTYgMTUuODQ4OCA0Ni40NDY3IDE2LjQ1NDkgNDYuNzk4OEMxNy4wNjEgNDcuMTUwOSAxNy43NDkgNDcuMzM3NSAxOC40NSA0Ny4zNEgxMzMuNTNDMTM0LjIzMyA0Ny4zNDEgMTM0LjkyMyA0Ny4xNTcgMTM1LjUzMiA0Ni44MDYzQzEzNi4xNDEgNDYuNDU1NyAxMzYuNjQ3IDQ1Ljk1MDggMTM2Ljk5OSA0NS4zNDI2QzEzNy4zNSA0NC43MzQzIDEzNy41MzYgNDQuMDQ0MSAxMzcuNTM2IDQzLjM0MTVDMTM3LjUzNiA0Mi42Mzg4IDEzNy4zNTEgNDEuOTQ4NSAxMzcgNDEuMzRaIiBmaWxsPSIjMTFEM0I0Ii8+CjxwYXRoIGQ9Ik05Mi40OCAxNDAuNjRIMTEzLjFDMTEzLjgwNSAxNDAuNjQzIDExNC40OTggMTQwLjQ1OSAxMTUuMTA5IDE0MC4xMDhDMTE1LjcyIDEzOS43NTcgMTE2LjIyOCAxMzkuMjUgMTE2LjU4IDEzOC42NEwxNTEuMzkgNzguMzRDMTUxLjc0MSA3Ny43MzE1IDE1MS45MjYgNzcuMDQxMiAxNTEuOTI2IDc2LjMzODVDMTUxLjkyNiA3NS42MzU5IDE1MS43NCA3NC45NDU3IDE1MS4zODkgNzQuMzM3NEMxNTEuMDM3IDczLjcyOTIgMTUwLjUzMSA3My4yMjQzIDE0OS45MjIgNzIuODczN0MxNDkuMzEzIDcyLjUyMyAxNDguNjIzIDcyLjMzOSAxNDcuOTIgNzIuMzRIOTIuNDhDOTEuNDE5MSA3Mi4zNCA5MC40MDE3IDcyLjc2MTQgODkuNjUxNiA3My41MTE2Qzg4LjkwMTQgNzQuMjYxNyA4OC40OCA3NS4yNzkxIDg4LjQ4IDc2LjM0VjEzNi42NEM4OC40OCAxMzcuNzAxIDg4LjkwMTQgMTM4LjcxOCA4OS42NTE2IDEzOS40NjhDOTAuNDAxNyAxNDAuMjE5IDkxLjQxOTEgMTQwLjY0IDkyLjQ4IDE0MC42NFoiIGZpbGw9IiMwMDdFRjYiLz4KPHBhdGggZD0iTTU5LjQ4IDcyLjMySDRDMy4yOTgyIDcyLjMyMDcgMi42MDg5NCA3Mi41MDYxIDIuMDAxNDMgNzIuODU3NEMxLjM5MzkzIDczLjIwODggMC44ODk1NTggNzMuNzEzOCAwLjUzODk3IDc0LjMyMThDMC4xODgzODIgNzQuOTI5NyAwLjAwMzkxNjk0IDc1LjYxOTIgMC4wMDQwOTcxMiA3Ni4zMjFDMC4wMDQyNzcyOSA3Ny4wMjI4IDAuMTg5MDk3IDc3LjcxMjIgMC41Mzk5OTcgNzguMzJMMzUuMzggMTM4LjY2QzM1LjcyOTkgMTM5LjI2NiAzNi4yMzI2IDEzOS43NyAzNi44MzggMTQwLjEyMUMzNy40NDM0IDE0MC40NzIgMzguMTMwMiAxNDAuNjU4IDM4LjgzIDE0MC42Nkg1OS40OEM2MC41NDA5IDE0MC42NiA2MS41NTgzIDE0MC4yMzkgNjIuMzA4NCAxMzkuNDg4QzYzLjA1ODYgMTM4LjczOCA2My40OCAxMzcuNzIxIDYzLjQ4IDEzNi42NlY3Ni4zMUM2My40NzczIDc1LjI1MDkgNjMuMDU0OCA3NC4yMzYgNjIuMzA0OSA3My40ODhDNjEuNTU1IDcyLjc0MDEgNjAuNTM5MSA3Mi4zMiA1OS40OCA3Mi4zMloiIGZpbGw9IiMwMTY0QTgiLz4KPC9nPgo8cGF0aCBkPSJNMjA3LjUyIDEwNi45NkMyMDIuMjcyIDEwNi45NiAxOTguMzY4IDEwNS41ODQgMTk1LjgwOCAxMDIuODMyQzE5My4zMTIgMTAwLjA4IDE5Mi4wNjQgOTYuMzM2IDE5Mi4wNjQgOTEuNlY3MC40OEgxODUuNjMyVjYwLjQ5NkgxOTIuMDY0VjUwLjcwNEwyMDUuMDI0IDQ2Ljg2NFY2MC40OTZIMjE2LjU0NEwyMTUuNzc2IDcwLjQ4SDIwNS4wMjRWOTAuNzM2QzIwNS4wMjQgOTMuMjMyIDIwNS42IDk0Ljk2IDIwNi43NTIgOTUuOTJDMjA3LjkwNCA5Ni44MTYgMjA5LjY5NiA5Ny4yNjQgMjEyLjEyOCA5Ny4yNjRDMjEzLjkyIDk3LjI2NCAyMTUuNzc2IDk2Ljk0NCAyMTcuNjk2IDk2LjMwNFYxMDUuMjMyQzIxNi4yODggMTA1LjgwOCAyMTQuNzUyIDEwNi4yMjQgMjEzLjA4OCAxMDYuNDhDMjExLjQyNCAxMDYuOCAyMDkuNTY4IDEwNi45NiAyMDcuNTIgMTA2Ljk2Wk0yMjQuMzQ3IDEwNlY2MC40OTZIMjM2LjM0N0wyMzYuOTIzIDY1LjJDMjM4Ljk3MSA2My45MiAyNDEuNDk5IDYyLjc2OCAyNDQuNTA3IDYxLjc0NEMyNDcuNTc5IDYwLjY1NiAyNTAuNTg3IDU5LjkyIDI1My41MzEgNTkuNTM2VjY5LjMyOEMyNTEuODAzIDY5LjU4NCAyNDkuOTE1IDY5Ljk2OCAyNDcuODY3IDcwLjQ4QzI0NS44MTkgNzAuOTkyIDI0My44NjcgNzEuNTY4IDI0Mi4wMTEgNzIuMjA4QzI0MC4xNTUgNzIuODQ4IDIzOC41ODcgNzMuNTIgMjM3LjMwNyA3NC4yMjRWMTA2SDIyNC4zNDdaTTI4MS45OTcgMTA2Ljk2QzI3NC4xMjUgMTA2Ljk2IDI2Ny44ODUgMTA1LjAwOCAyNjMuMjc3IDEwMS4xMDRDMjU4LjY2OSA5Ny4xMzYgMjU2LjM2NSA5MS4xNTIgMjU2LjM2NSA4My4xNTJDMjU2LjM2NSA3NS45MiAyNTguMjg1IDcwLjE5MiAyNjIuMTI1IDY1Ljk2OEMyNjYuMDI5IDYxLjY4IDI3MS44MjEgNTkuNTM2IDI3OS41MDEgNTkuNTM2QzI4Ni41NDEgNTkuNTM2IDI5MS45MTcgNjEuMzkyIDI5NS42MjkgNjUuMTA0QzI5OS40MDUgNjguNzUyIDMwMS4yOTIgNzMuNTUyIDMwMS4yOTIgNzkuNTA0Vjg3Ljc2SDI2OC4zNjVDMjY5LjA2OSA5MS40MDggMjcwLjczMyA5My45MDQgMjczLjM1NyA5NS4yNDhDMjc2LjA0NSA5Ni41OTIgMjc5LjgyMSA5Ny4yNjQgMjg0LjY4NSA5Ny4yNjRDMjg3LjExNyA5Ny4yNjQgMjg5LjU4MSA5Ny4wNCAyOTIuMDc3IDk2LjU5MkMyOTQuNjM3IDk2LjE0NCAyOTYuODEzIDk1LjU2OCAyOTguNjA1IDk0Ljg2NFYxMDQuMDhDMjk2LjQ5MyAxMDUuMDQgMjk0LjAyOSAxMDUuNzQ0IDI5MS4yMTMgMTA2LjE5MkMyODguMzk3IDEwNi43MDQgMjg1LjMyNSAxMDYuOTYgMjgxLjk5NyAxMDYuOTZaTTI2OC4zNjUgNzkuNzkySDI4OS45NjVWNzcuMjk2QzI4OS45NjUgNzQuNjcyIDI4OS4xOTcgNzIuNjI0IDI4Ny42NjEgNzEuMTUyQzI4Ni4xMjUgNjkuNjE2IDI4My41MzMgNjguODQ4IDI3OS44ODUgNjguODQ4QzI3NS41OTcgNjguODQ4IDI3Mi41ODkgNjkuNzEyIDI3MC44NjEgNzEuNDRDMjY5LjE5NyA3My4xNjggMjY4LjM2NSA3NS45NTIgMjY4LjM2NSA3OS43OTJaTTMzNC4wMjggMTA2Ljk2QzMyNi4xNTYgMTA2Ljk2IDMxOS45MTYgMTA1LjAwOCAzMTUuMzA4IDEwMS4xMDRDMzEwLjcgOTcuMTM2IDMwOC4zOTYgOTEuMTUyIDMwOC4zOTYgODMuMTUyQzMwOC4zOTYgNzUuOTIgMzEwLjMxNiA3MC4xOTIgMzE0LjE1NiA2NS45NjhDMzE4LjA2IDYxLjY4IDMyMy44NTIgNTkuNTM2IDMzMS41MzIgNTkuNTM2QzMzOC41NzIgNTkuNTM2IDM0My45NDggNjEuMzkyIDM0Ny42NiA2NS4xMDRDMzUxLjQzNiA2OC43NTIgMzUzLjMyNCA3My41NTIgMzUzLjMyNCA3OS41MDRWODcuNzZIMzIwLjM5NkMzMjEuMSA5MS40MDggMzIyLjc2NCA5My45MDQgMzI1LjM4OCA5NS4yNDhDMzI4LjA3NiA5Ni41OTIgMzMxLjg1MiA5Ny4yNjQgMzM2LjcxNiA5Ny4yNjRDMzM5LjE0OCA5Ny4yNjQgMzQxLjYxMiA5Ny4wNCAzNDQuMTA4IDk2LjU5MkMzNDYuNjY4IDk2LjE0NCAzNDguODQ0IDk1LjU2OCAzNTAuNjM2IDk0Ljg2NFYxMDQuMDhDMzQ4LjUyNCAxMDUuMDQgMzQ2LjA2IDEwNS43NDQgMzQzLjI0NCAxMDYuMTkyQzM0MC40MjggMTA2LjcwNCAzMzcuMzU2IDEwNi45NiAzMzQuMDI4IDEwNi45NlpNMzIwLjM5NiA3OS43OTJIMzQxLjk5NlY3Ny4yOTZDMzQxLjk5NiA3NC42NzIgMzQxLjIyOCA3Mi42MjQgMzM5LjY5MiA3MS4xNTJDMzM4LjE1NiA2OS42MTYgMzM1LjU2NCA2OC44NDggMzMxLjkxNiA2OC44NDhDMzI3LjYyOCA2OC44NDggMzI0LjYyIDY5LjcxMiAzMjIuODkyIDcxLjQ0QzMyMS4yMjggNzMuMTY4IDMyMC4zOTYgNzUuOTUyIDMyMC4zOTYgNzkuNzkyWk0zODEuNTQ3IDEyMi44OTZDMzc4LjE1NSAxMjIuODk2IDM3NC42NjcgMTIyLjY3MiAzNzEuMDgzIDEyMi4yMjRDMzY3LjU2MyAxMjEuNzc2IDM2NC41ODcgMTIxLjEzNiAzNjIuMTU1IDEyMC4zMDRWMTEwLjYwOEMzNjQuNzE1IDExMS40NCAzNjcuNzIzIDExMi4wOCAzNzEuMTc5IDExMi41MjhDMzc0LjYzNSAxMTMuMDQgMzc3Ljg2NyAxMTMuMjk2IDM4MC44NzUgMTEzLjI5NkMzODUuMjkxIDExMy4yOTYgMzg4LjQ5MSAxMTMuMDQgMzkwLjQ3NSAxMTIuNTI4QzM5Mi40NTkgMTEyLjA4IDM5My40NTEgMTExLjI0OCAzOTMuNDUxIDExMC4wMzJDMzkzLjQ1MSAxMDkuMDA4IDM5My4wMDMgMTA4LjMwNCAzOTIuMTA3IDEwNy45MkMzOTEuMjc1IDEwNy41MzYgMzg5LjQ4MyAxMDcuMzQ0IDM4Ni43MzEgMTA3LjM0NEgzNzQuMzQ3QzM2Ni4yMTkgMTA3LjM0NCAzNjIuMTU1IDEwNC4zMzYgMzYyLjE1NSA5OC4zMkMzNjIuMTU1IDk2LjQ2NCAzNjIuNjY3IDk0Ljc2OCAzNjMuNjkxIDkzLjIzMkMzNjQuNzE1IDkxLjY5NiAzNjYuMzQ3IDkwLjQ4IDM2OC41ODcgODkuNTg0QzM2My40MDMgODYuOTYgMzYwLjgxMSA4Mi41NDQgMzYwLjgxMSA3Ni4zMzZDMzYwLjgxMSA3MC40NDggMzYyLjYzNSA2Ni4xOTIgMzY2LjI4MyA2My41NjhDMzY5LjkzMSA2MC44OCAzNzUuMzM5IDU5LjUzNiAzODIuNTA3IDU5LjUzNkMzODMuOTc5IDU5LjUzNiAzODUuNTc5IDU5LjY2NCAzODcuMzA3IDU5LjkyQzM4OS4wOTkgNjAuMTEyIDM5MC40NDMgNjAuMzA0IDM5MS4zMzkgNjAuNDk2SDQwOC40MjdMNDA4LjEzOSA2OC42NTZINDAwLjkzOUM0MDIuOTIzIDcwLjUxMiA0MDMuOTE1IDczLjEwNCA0MDMuOTE1IDc2LjQzMkM0MDMuOTE1IDgxLjEwNCA0MDIuNDQzIDg0Ljg0OCAzOTkuNDk5IDg3LjY2NEMzOTYuNTU1IDkwLjQxNiAzOTIuMjAzIDkxLjc5MiAzODYuNDQzIDkxLjc5MkMzODUuNDE5IDkxLjc5MiAzODQuNDI3IDkxLjc2IDM4My40NjcgOTEuNjk2QzM4Mi41NzEgOTEuNTY4IDM4MS42NDMgOTEuNDQgMzgwLjY4MyA5MS4zMTJDMzc4Ljc2MyA5MS41NjggMzc3LjEzMSA5Mi4wMTYgMzc1Ljc4NyA5Mi42NTZDMzc0LjUwNyA5My4yOTYgMzczLjg2NyA5NC4xNiAzNzMuODY3IDk1LjI0OEMzNzMuODY3IDk2LjcyIDM3NS4xNzkgOTcuNDU2IDM3Ny44MDMgOTcuNDU2SDM5MC42NjdDMzk1LjI3NSA5Ny40NTYgMzk4LjgyNyA5OC41MTIgNDAxLjMyMyAxMDAuNjI0QzQwMy44MTkgMTAyLjY3MiA0MDUuMDY3IDEwNS42OCA0MDUuMDY3IDEwOS42NDhDNDA1LjA2NyAxMTQuMTI4IDQwMy4wNTEgMTE3LjQ1NiAzOTkuMDE5IDExOS42MzJDMzk0Ljk4NyAxMjEuODA4IDM4OS4xNjMgMTIyLjg5NiAzODEuNTQ3IDEyMi44OTZaTTM4Mi42MDMgODQuNDk2QzM4Ni40NDMgODQuNDk2IDM4OS4wOTkgODMuODU2IDM5MC41NzEgODIuNTc2QzM5Mi4xMDcgODEuMjMyIDM5Mi44NzUgNzguOTkyIDM5Mi44NzUgNzUuODU2QzM5Mi44NzUgNzIuNzIgMzkyLjEwNyA3MC40NDggMzkwLjU3MSA2OS4wNEMzODkuMDk5IDY3LjYzMiAzODYuNDQzIDY2LjkyOCAzODIuNjAzIDY2LjkyOEMzNzguOTU1IDY2LjkyOCAzNzYuMzMxIDY3LjYzMiAzNzQuNzMxIDY5LjA0QzM3My4xMzEgNzAuMzg0IDM3Mi4zMzEgNzIuNjU2IDM3Mi4zMzEgNzUuODU2QzM3Mi4zMzEgNzguOCAzNzMuMDY3IDgwLjk3NiAzNzQuNTM5IDgyLjM4NEMzNzYuMDc1IDgzLjc5MiAzNzguNzYzIDg0LjQ5NiAzODIuNjAzIDg0LjQ5NlpNNDM5LjAyOCAxMDYuOTZDNDMxLjE1NiAxMDYuOTYgNDI0LjkxNiAxMDUuMDA4IDQyMC4zMDggMTAxLjEwNEM0MTUuNyA5Ny4xMzYgNDEzLjM5NiA5MS4xNTIgNDEzLjM5NiA4My4xNTJDNDEzLjM5NiA3NS45MiA0MTUuMzE2IDcwLjE5MiA0MTkuMTU2IDY1Ljk2OEM0MjMuMDYgNjEuNjggNDI4Ljg1MiA1OS41MzYgNDM2LjUzMiA1OS41MzZDNDQzLjU3MiA1OS41MzYgNDQ4Ljk0OCA2MS4zOTIgNDUyLjY2IDY1LjEwNEM0NTYuNDM2IDY4Ljc1MiA0NTguMzI0IDczLjU1MiA0NTguMzI0IDc5LjUwNFY4Ny43Nkg0MjUuMzk2QzQyNi4xIDkxLjQwOCA0MjcuNzY0IDkzLjkwNCA0MzAuMzg4IDk1LjI0OEM0MzMuMDc2IDk2LjU5MiA0MzYuODUyIDk3LjI2NCA0NDEuNzE2IDk3LjI2NEM0NDQuMTQ4IDk3LjI2NCA0NDYuNjEyIDk3LjA0IDQ0OS4xMDggOTYuNTkyQzQ1MS42NjggOTYuMTQ0IDQ1My44NDQgOTUuNTY4IDQ1NS42MzYgOTQuODY0VjEwNC4wOEM0NTMuNTI0IDEwNS4wNCA0NTEuMDYgMTA1Ljc0NCA0NDguMjQ0IDEwNi4xOTJDNDQ1LjQyOCAxMDYuNzA0IDQ0Mi4zNTYgMTA2Ljk2IDQzOS4wMjggMTA2Ljk2Wk00MjUuMzk2IDc5Ljc5Mkg0NDYuOTk2Vjc3LjI5NkM0NDYuOTk2IDc0LjY3MiA0NDYuMjI4IDcyLjYyNCA0NDQuNjkyIDcxLjE1MkM0NDMuMTU2IDY5LjYxNiA0NDAuNTY0IDY4Ljg0OCA0MzYuOTE2IDY4Ljg0OEM0MzIuNjI4IDY4Ljg0OCA0MjkuNjIgNjkuNzEyIDQyNy44OTIgNzEuNDRDNDI2LjIyOCA3My4xNjggNDI1LjM5NiA3NS45NTIgNDI1LjM5NiA3OS43OTJaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yXzY1Ij4KPHJlY3Qgd2lkdGg9IjE1MS45MyIgaGVpZ2h0PSIxMzYuNjQiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDQpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",xd=()=>M("img",{src:bd,alt:"Treege",height:30,width:"auto"});var Cs={},Wi={};function Md(e,t){return e.parent===t.parent?1:2}function wd(e){return e.reduce(Td,0)/e.length}function Td(e,t){return e+t.x}function Nd(e){return 1+e.reduce(Ed,0)}function Ed(e,t){return Math.max(e,t.y)}function Dd(e){for(var t;t=e.children;)e=t[0];return e}function Od(e){for(var t;t=e.children;)e=t[t.length-1];return e}function Cd(){var e=Md,t=1,n=1,r=!1;function i(o){var a,s=0;o.eachAfter(function(f){var h=f.children;h?(f.x=wd(h),f.y=Nd(h)):(f.x=a?s+=e(f,a):0,f.y=0,a=f)});var u=Dd(o),l=Od(o),c=u.x-e(u,l)/2,d=l.x+e(l,u)/2;return o.eachAfter(r?function(f){f.x=(f.x-o.x)*t,f.y=(o.y-f.y)*n}:function(f){f.x=(f.x-c)/(d-c)*t,f.y=(1-(o.y?f.y/o.y:1))*n})}return i.separation=function(o){return arguments.length?(e=o,i):e},i.size=function(o){return arguments.length?(r=!1,t=+o[0],n=+o[1],i):r?null:[t,n]},i.nodeSize=function(o){return arguments.length?(r=!0,t=+o[0],n=+o[1],i):r?[t,n]:null},i}function Sd(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Ad(){return this.eachAfter(Sd)}function Id(e){var t=this,n,r=[t],i,o,a;do for(n=r.reverse(),r=[];t=n.pop();)if(e(t),i=t.children,i)for(o=0,a=i.length;o<a;++o)r.push(i[o]);while(r.length);return this}function kd(e){for(var t=this,n=[t],r,i;t=n.pop();)if(e(t),r=t.children,r)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function zd(e){for(var t=this,n=[t],r=[],i,o,a;t=n.pop();)if(r.push(t),i=t.children,i)for(o=0,a=i.length;o<a;++o)n.push(i[o]);for(;t=r.pop();)e(t);return this}function jd(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function $d(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Rd(e){for(var t=this,n=Ld(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Ld(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function Pd(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Fd(){var e=[];return this.each(function(t){e.push(t)}),e}function Ud(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Yd(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function Gi(e,t){var n=new an(e),r=+e.value&&(n.value=e.value),i,o=[n],a,s,u,l;for(t==null&&(t=Vd);i=o.pop();)if(r&&(i.value=+i.data.value),(s=t(i.data))&&(l=s.length))for(i.children=new Array(l),u=l-1;u>=0;--u)o.push(a=i.children[u]=new an(s[u])),a.parent=i,a.depth=i.depth+1;return n.eachBefore(Ss)}function qd(){return Gi(this).eachBefore(Bd)}function Vd(e){return e.children}function Bd(e){e.data=e.data.data}function Ss(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function an(e){this.data=e,this.depth=this.height=0,this.parent=null}an.prototype=Gi.prototype={constructor:an,count:Ad,each:Id,eachAfter:zd,eachBefore:kd,sum:jd,sort:$d,path:Rd,ancestors:Pd,descendants:Fd,leaves:Ud,links:Yd,copy:qd};var Qd=Array.prototype.slice;function Wd(e){for(var t=e.length,n,r;t;)r=Math.random()*t--|0,n=e[t],e[t]=e[r],e[r]=n;return e}function As(e){for(var t=0,n=(e=Wd(Qd.call(e))).length,r=[],i,o;t<n;)i=e[t],o&&Is(o,i)?++t:(o=Kd(r=Gd(r,i)),t=0);return o}function Gd(e,t){var n,r;if(Ki(t,e))return[t];for(n=0;n<e.length;++n)if(Nr(t,e[n])&&Ki(Yn(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(Nr(Yn(e[n],e[r]),t)&&Nr(Yn(e[n],t),e[r])&&Nr(Yn(e[r],t),e[n])&&Ki(ks(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function Nr(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function Is(e,t){var n=e.r-t.r+1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function Ki(e,t){for(var n=0;n<t.length;++n)if(!Is(e,t[n]))return!1;return!0}function Kd(e){switch(e.length){case 1:return Hd(e[0]);case 2:return Yn(e[0],e[1]);case 3:return ks(e[0],e[1],e[2])}}function Hd(e){return{x:e.x,y:e.y,r:e.r}}function Yn(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,u=o-n,l=a-r,c=s-i,d=Math.sqrt(u*u+l*l);return{x:(n+o+u/d*c)/2,y:(r+a+l/d*c)/2,r:(d+i+s)/2}}function ks(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,u=t.r,l=n.x,c=n.y,d=n.r,f=r-a,h=r-l,v=i-s,p=i-c,g=u-o,x=d-o,w=r*r+i*i-o*o,T=w-a*a-s*s+u*u,b=w-l*l-c*c+d*d,y=h*v-f*p,C=(v*b-p*T)/(y*2)-r,I=(p*g-v*x)/y,O=(h*T-f*b)/(y*2)-i,E=(f*x-h*g)/y,D=I*I+E*E-1,z=2*(o+C*I+O*E),m=C*C+O*O-o*o,N=-(D?(z+Math.sqrt(z*z-4*D*m))/(2*D):m/z);return{x:r+C+I*N,y:i+O+E*N,r:N}}function zs(e,t,n){var r=e.x-t.x,i,o,a=e.y-t.y,s,u,l=r*r+a*a;l?(o=t.r+n.r,o*=o,u=e.r+n.r,u*=u,o>u?(i=(l+u-o)/(2*l),s=Math.sqrt(Math.max(0,u/l-i*i)),n.x=e.x-i*r-s*a,n.y=e.y-i*a+s*r):(i=(l+o-u)/(2*l),s=Math.sqrt(Math.max(0,o/l-i*i)),n.x=t.x+i*r-s*a,n.y=t.y+i*a+s*r)):(n.x=t.x+n.r,n.y=t.y)}function js(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function $s(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function Er(e){this._=e,this.next=null,this.previous=null}function Rs(e){if(!(i=e.length))return 0;var t,n,r,i,o,a,s,u,l,c,d;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;zs(n,t,r=e[2]),t=new Er(t),n=new Er(n),r=new Er(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s<i;++s){zs(t._,n._,r=e[s]),r=new Er(r),u=n.next,l=t.previous,c=n._.r,d=t._.r;do if(c<=d){if(js(u._,r._)){n=u,t.next=n,n.previous=t,--s;continue e}c+=u._.r,u=u.next}else{if(js(l._,r._)){t=l,t.next=n,n.previous=t,--s;continue e}d+=l._.r,l=l.previous}while(u!==l.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,o=$s(t);(r=r.next)!==n;)(a=$s(r))<o&&(t=r,o=a);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=As(t),s=0;s<i;++s)t=e[s],t.x-=r.x,t.y-=r.y;return r.r}function Xd(e){return Rs(e),e}function Jd(e){return e==null?null:Dr(e)}function Dr(e){if(typeof e!="function")throw new Error;return e}function Qt(){return 0}function sn(e){return function(){return e}}function Zd(e){return Math.sqrt(e.value)}function eh(){var e=null,t=1,n=1,r=Qt;function i(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(Ls(e)).eachAfter(Hi(r,.5)).eachBefore(Ps(1)):o.eachBefore(Ls(Zd)).eachAfter(Hi(Qt,1)).eachAfter(Hi(r,o.r/Math.min(t,n))).eachBefore(Ps(Math.min(t,n)/(2*o.r))),o}return i.radius=function(o){return arguments.length?(e=Jd(o),i):e},i.size=function(o){return arguments.length?(t=+o[0],n=+o[1],i):[t,n]},i.padding=function(o){return arguments.length?(r=typeof o=="function"?o:sn(+o),i):r},i}function Ls(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Hi(e,t){return function(n){if(r=n.children){var r,i,o=r.length,a=e(n)*t||0,s;if(a)for(i=0;i<o;++i)r[i].r+=a;if(s=Rs(r),a)for(i=0;i<o;++i)r[i].r-=a;n.r=s+a}}}function Ps(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function Fs(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function qn(e,t,n,r,i){for(var o=e.children,a,s=-1,u=o.length,l=e.value&&(r-t)/e.value;++s<u;)a=o[s],a.y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*l}function th(){var e=1,t=1,n=0,r=!1;function i(a){var s=a.height+1;return a.x0=a.y0=n,a.x1=e,a.y1=t/s,a.eachBefore(o(t,s)),r&&a.eachBefore(Fs),a}function o(a,s){return function(u){u.children&&qn(u,u.x0,a*(u.depth+1)/s,u.x1,a*(u.depth+2)/s);var l=u.x0,c=u.y0,d=u.x1-n,f=u.y1-n;d<l&&(l=d=(l+d)/2),f<c&&(c=f=(c+f)/2),u.x0=l,u.y0=c,u.x1=d,u.y1=f}}return i.round=function(a){return arguments.length?(r=!!a,i):r},i.size=function(a){return arguments.length?(e=+a[0],t=+a[1],i):[e,t]},i.padding=function(a){return arguments.length?(n=+a,i):n},i}var Us="$",nh={depth:-1},Ys={};function rh(e){return e.id}function ih(e){return e.parentId}function oh(){var e=rh,t=ih;function n(r){var i,o,a=r.length,s,u,l,c=new Array(a),d,f,h={};for(o=0;o<a;++o)i=r[o],l=c[o]=new an(i),(d=e(i,o,r))!=null&&(d+="")&&(f=Us+(l.id=d),h[f]=f in h?Ys:l);for(o=0;o<a;++o)if(l=c[o],d=t(r[o],o,r),d==null||!(d+="")){if(s)throw new Error("multiple roots");s=l}else{if(u=h[Us+d],!u)throw new Error("missing: "+d);if(u===Ys)throw new Error("ambiguous: "+d);u.children?u.children.push(l):u.children=[l],l.parent=u}if(!s)throw new Error("no root");if(s.parent=nh,s.eachBefore(function(v){v.depth=v.parent.depth+1,--a}).eachBefore(Ss),s.parent=null,a>0)throw new Error("cycle");return s}return n.id=function(r){return arguments.length?(e=Dr(r),n):e},n.parentId=function(r){return arguments.length?(t=Dr(r),n):t},n}function ah(e,t){return e.parent===t.parent?1:2}function Xi(e){var t=e.children;return t?t[0]:e.t}function Ji(e){var t=e.children;return t?t[t.length-1]:e.t}function sh(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function uh(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function lh(e,t,n){return e.a.parent===t.parent?e.a:n}function Or(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Or.prototype=Object.create(an.prototype);function ch(e){for(var t=new Or(e,0),n,r=[t],i,o,a,s;n=r.pop();)if(o=n._.children)for(n.children=new Array(s=o.length),a=s-1;a>=0;--a)r.push(i=n.children[a]=new Or(o[a],a)),i.parent=n;return(t.parent=new Or(null,0)).children=[t],t}function fh(){var e=ah,t=1,n=1,r=null;function i(l){var c=ch(l);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)l.eachBefore(u);else{var d=l,f=l,h=l;l.eachBefore(function(w){w.x<d.x&&(d=w),w.x>f.x&&(f=w),w.depth>h.depth&&(h=w)});var v=d===f?1:e(d,f)/2,p=v-d.x,g=t/(f.x+v+p),x=n/(h.depth||1);l.eachBefore(function(w){w.x=(w.x+p)*g,w.y=w.depth*x})}return l}function o(l){var c=l.children,d=l.parent.children,f=l.i?d[l.i-1]:null;if(c){uh(l);var h=(c[0].z+c[c.length-1].z)/2;f?(l.z=f.z+e(l._,f._),l.m=l.z-h):l.z=h}else f&&(l.z=f.z+e(l._,f._));l.parent.A=s(l,f,l.parent.A||d[0])}function a(l){l._.x=l.z+l.parent.m,l.m+=l.parent.m}function s(l,c,d){if(c){for(var f=l,h=l,v=c,p=f.parent.children[0],g=f.m,x=h.m,w=v.m,T=p.m,b;v=Ji(v),f=Xi(f),v&&f;)p=Xi(p),h=Ji(h),h.a=l,b=v.z+w-f.z-g+e(v._,f._),b>0&&(sh(lh(v,l,d),l,b),g+=b,x+=b),w+=v.m,g+=f.m,T+=p.m,x+=h.m;v&&!Ji(h)&&(h.t=v,h.m+=w-x),f&&!Xi(p)&&(p.t=f,p.m+=g-T,d=l)}return d}function u(l){l.x*=t,l.y=l.depth*n}return i.separation=function(l){return arguments.length?(e=l,i):e},i.size=function(l){return arguments.length?(r=!1,t=+l[0],n=+l[1],i):r?null:[t,n]},i.nodeSize=function(l){return arguments.length?(r=!0,t=+l[0],n=+l[1],i):r?[t,n]:null},i}function Cr(e,t,n,r,i){for(var o=e.children,a,s=-1,u=o.length,l=e.value&&(i-n)/e.value;++s<u;)a=o[s],a.x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*l}var qs=(1+Math.sqrt(5))/2;function Vs(e,t,n,r,i,o){for(var a=[],s=t.children,u,l,c=0,d=0,f=s.length,h,v,p=t.value,g,x,w,T,b,y,C;c<f;){h=i-n,v=o-r;do g=s[d++].value;while(!g&&d<f);for(x=w=g,y=Math.max(v/h,h/v)/(p*e),C=g*g*y,b=Math.max(w/C,C/x);d<f;++d){if(g+=l=s[d].value,l<x&&(x=l),l>w&&(w=l),C=g*g*y,T=Math.max(w/C,C/x),T>b){g-=l;break}b=T}a.push(u={value:g,dice:h<v,children:s.slice(c,d)}),u.dice?qn(u,n,r,i,p?r+=v*g/p:o):Cr(u,n,r,p?n+=h*g/p:i,o),p-=g,c=d}return a}const Bs=function e(t){function n(r,i,o,a,s){Vs(t,r,i,o,a,s)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(qs);function dh(){var e=Bs,t=!1,n=1,r=1,i=[0],o=Qt,a=Qt,s=Qt,u=Qt,l=Qt;function c(f){return f.x0=f.y0=0,f.x1=n,f.y1=r,f.eachBefore(d),i=[0],t&&f.eachBefore(Fs),f}function d(f){var h=i[f.depth],v=f.x0+h,p=f.y0+h,g=f.x1-h,x=f.y1-h;g<v&&(v=g=(v+g)/2),x<p&&(p=x=(p+x)/2),f.x0=v,f.y0=p,f.x1=g,f.y1=x,f.children&&(h=i[f.depth+1]=o(f)/2,v+=l(f)-h,p+=a(f)-h,g-=s(f)-h,x-=u(f)-h,g<v&&(v=g=(v+g)/2),x<p&&(p=x=(p+x)/2),e(f,v,p,g,x))}return c.round=function(f){return arguments.length?(t=!!f,c):t},c.size=function(f){return arguments.length?(n=+f[0],r=+f[1],c):[n,r]},c.tile=function(f){return arguments.length?(e=Dr(f),c):e},c.padding=function(f){return arguments.length?c.paddingInner(f).paddingOuter(f):c.paddingInner()},c.paddingInner=function(f){return arguments.length?(o=typeof f=="function"?f:sn(+f),c):o},c.paddingOuter=function(f){return arguments.length?c.paddingTop(f).paddingRight(f).paddingBottom(f).paddingLeft(f):c.paddingTop()},c.paddingTop=function(f){return arguments.length?(a=typeof f=="function"?f:sn(+f),c):a},c.paddingRight=function(f){return arguments.length?(s=typeof f=="function"?f:sn(+f),c):s},c.paddingBottom=function(f){return arguments.length?(u=typeof f=="function"?f:sn(+f),c):u},c.paddingLeft=function(f){return arguments.length?(l=typeof f=="function"?f:sn(+f),c):l},c}function hh(e,t,n,r,i){var o=e.children,a,s=o.length,u,l=new Array(s+1);for(l[0]=u=a=0;a<s;++a)l[a+1]=u+=o[a].value;c(0,s,e.value,t,n,r,i);function c(d,f,h,v,p,g,x){if(d>=f-1){var w=o[d];w.x0=v,w.y0=p,w.x1=g,w.y1=x;return}for(var T=l[d],b=h/2+T,y=d+1,C=f-1;y<C;){var I=y+C>>>1;l[I]<b?y=I+1:C=I}b-l[y-1]<l[y]-b&&d+1<y&&--y;var O=l[y]-T,E=h-O;if(g-v>x-p){var D=(v*E+g*O)/h;c(d,y,O,v,p,D,x),c(y,f,E,D,p,g,x)}else{var z=(p*E+x*O)/h;c(d,y,O,v,p,g,z),c(y,f,E,v,z,g,x)}}}function ph(e,t,n,r,i){(e.depth&1?Cr:qn)(e,t,n,r,i)}const gh=function e(t){function n(r,i,o,a,s){if((u=r._squarify)&&u.ratio===t)for(var u,l,c,d,f=-1,h,v=u.length,p=r.value;++f<v;){for(l=u[f],c=l.children,d=l.value=0,h=c.length;d<h;++d)l.value+=c[d].value;l.dice?qn(l,i,o,a,o+=(s-o)*l.value/p):Cr(l,i,o,i+=(a-i)*l.value/p,s),p-=l.value}else r._squarify=u=Vs(t,r,i,o,a,s),u.ratio=t}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(qs),mh=$t(Object.freeze(Object.defineProperty({__proto__:null,cluster:Cd,hierarchy:Gi,pack:eh,packSiblings:Xd,packEnclose:As,partition:th,stratify:oh,tree:fh,treemap:dh,treemapBinary:hh,treemapDice:qn,treemapSlice:Cr,treemapSliceDice:ph,treemapSquarify:Bs,treemapResquarify:gh},Symbol.toStringTag,{value:"Module"})));var Zi="http://www.w3.org/1999/xhtml";const eo={svg:"http://www.w3.org/2000/svg",xhtml:Zi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vn(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),eo.hasOwnProperty(t)?{space:eo[t],local:e}:e}function vh(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Zi&&t.documentElement.namespaceURI===Zi?t.createElement(e):t.createElementNS(n,e)}}function yh(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Sr(e){var t=Vn(e);return(t.local?yh:vh)(t)}function _h(){}function Ar(e){return e==null?_h:function(){return this.querySelector(e)}}function bh(e){typeof e!="function"&&(e=Ar(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=new Array(a),u,l,c=0;c<a;++c)(u=o[c])&&(l=e.call(u,u.__data__,c,o))&&("__data__"in u&&(l.__data__=u.__data__),s[c]=l);return new Xe(r,this._parents)}function xh(){return[]}function to(e){return e==null?xh:function(){return this.querySelectorAll(e)}}function Mh(e){typeof e!="function"&&(e=to(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a=t[o],s=a.length,u,l=0;l<s;++l)(u=a[l])&&(r.push(e.call(u,u.__data__,l,a)),i.push(u));return new Xe(r,i)}function no(e){return function(){return this.matches(e)}}function wh(e){typeof e!="function"&&(e=no(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=[],u,l=0;l<a;++l)(u=o[l])&&e.call(u,u.__data__,l,o)&&s.push(u);return new Xe(r,this._parents)}function Qs(e){return new Array(e.length)}function Th(){return new Xe(this._enter||this._groups.map(Qs),this._parents)}function Ir(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ir.prototype={constructor:Ir,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Nh(e){return function(){return e}}var Ws="$";function Eh(e,t,n,r,i,o){for(var a=0,s,u=t.length,l=o.length;a<l;++a)(s=t[a])?(s.__data__=o[a],r[a]=s):n[a]=new Ir(e,o[a]);for(;a<u;++a)(s=t[a])&&(i[a]=s)}function Dh(e,t,n,r,i,o,a){var s,u,l={},c=t.length,d=o.length,f=new Array(c),h;for(s=0;s<c;++s)(u=t[s])&&(f[s]=h=Ws+a.call(u,u.__data__,s,t),h in l?i[s]=u:l[h]=u);for(s=0;s<d;++s)h=Ws+a.call(e,o[s],s,o),(u=l[h])?(r[s]=u,u.__data__=o[s],l[h]=null):n[s]=new Ir(e,o[s]);for(s=0;s<c;++s)(u=t[s])&&l[f[s]]===u&&(i[s]=u)}function Oh(e,t){if(!e)return h=new Array(this.size()),l=-1,this.each(function(C){h[++l]=C}),h;var n=t?Dh:Eh,r=this._parents,i=this._groups;typeof e!="function"&&(e=Nh(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=r[l],d=i[l],f=d.length,h=e.call(c,c&&c.__data__,l,r),v=h.length,p=s[l]=new Array(v),g=a[l]=new Array(v),x=u[l]=new Array(f);n(c,d,p,g,x,h,t);for(var w=0,T=0,b,y;w<v;++w)if(b=p[w]){for(w>=T&&(T=w+1);!(y=g[T])&&++T<v;);b._next=y||null}}return a=new Xe(a,r),a._enter=s,a._exit=u,a}function Ch(){return new Xe(this._exit||this._groups.map(Qs),this._parents)}function Sh(e,t,n){var r=this.enter(),i=this,o=this.exit();return r=typeof e=="function"?e(r):r.append(e+""),t!=null&&(i=t(i)),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function Ah(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u=t[s],l=n[s],c=u.length,d=a[s]=new Array(c),f,h=0;h<c;++h)(f=u[h]||l[h])&&(d[h]=f);for(;s<r;++s)a[s]=t[s];return new Xe(a,this._parents)}function Ih(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function kh(e){e||(e=zh);function t(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],s=a.length,u=i[o]=new Array(s),l,c=0;c<s;++c)(l=a[c])&&(u[c]=l);u.sort(t)}return new Xe(i,this._parents).order()}function zh(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function jh(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function $h(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e}function Rh(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function Lh(){var e=0;return this.each(function(){++e}),e}function Ph(){return!this.node()}function Fh(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&e.call(s,s.__data__,o,i);return this}function Uh(e){return function(){this.removeAttribute(e)}}function Yh(e){return function(){this.removeAttributeNS(e.space,e.local)}}function qh(e,t){return function(){this.setAttribute(e,t)}}function Vh(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Bh(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Qh(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Wh(e,t){var n=Vn(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Yh:Uh:typeof t=="function"?n.local?Qh:Bh:n.local?Vh:qh)(n,t))}function ro(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Gh(e){return function(){this.style.removeProperty(e)}}function Kh(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Hh(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Xh(e,t,n){return arguments.length>1?this.each((t==null?Gh:typeof t=="function"?Hh:Kh)(e,t,n==null?"":n)):Wt(this.node(),e)}function Wt(e,t){return e.style.getPropertyValue(t)||ro(e).getComputedStyle(e,null).getPropertyValue(t)}function Jh(e){return function(){delete this[e]}}function Zh(e,t){return function(){this[e]=t}}function ep(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function tp(e,t){return arguments.length>1?this.each((t==null?Jh:typeof t=="function"?ep:Zh)(e,t)):this.node()[e]}function Gs(e){return e.trim().split(/^|\s+/)}function io(e){return e.classList||new Ks(e)}function Ks(e){this._node=e,this._names=Gs(e.getAttribute("class")||"")}Ks.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Hs(e,t){for(var n=io(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Xs(e,t){for(var n=io(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function np(e){return function(){Hs(this,e)}}function rp(e){return function(){Xs(this,e)}}function ip(e,t){return function(){(t.apply(this,arguments)?Hs:Xs)(this,e)}}function op(e,t){var n=Gs(e+"");if(arguments.length<2){for(var r=io(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?ip:t?np:rp)(n,t))}function ap(){this.textContent=""}function sp(e){return function(){this.textContent=e}}function up(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function lp(e){return arguments.length?this.each(e==null?ap:(typeof e=="function"?up:sp)(e)):this.node().textContent}function cp(){this.innerHTML=""}function fp(e){return function(){this.innerHTML=e}}function dp(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function hp(e){return arguments.length?this.each(e==null?cp:(typeof e=="function"?dp:fp)(e)):this.node().innerHTML}function pp(){this.nextSibling&&this.parentNode.appendChild(this)}function gp(){return this.each(pp)}function mp(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vp(){return this.each(mp)}function yp(e){var t=typeof e=="function"?e:Sr(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function _p(){return null}function bp(e,t){var n=typeof e=="function"?e:Sr(e),r=t==null?_p:typeof t=="function"?t:Ar(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function xp(){var e=this.parentNode;e&&e.removeChild(this)}function Mp(){return this.each(xp)}function wp(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tp(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Np(e){return this.select(e?Tp:wp)}function Ep(e){return arguments.length?this.property("__data__",e):this.node().__data__}var Js={},ce=null;if(typeof document<"u"){var Dp=document.documentElement;"onmouseenter"in Dp||(Js={mouseenter:"mouseover",mouseleave:"mouseout"})}function Op(e,t,n){return e=Zs(e,t,n),function(r){var i=r.relatedTarget;(!i||i!==this&&!(i.compareDocumentPosition(this)&8))&&e.call(this,r)}}function Zs(e,t,n){return function(r){var i=ce;ce=r;try{e.call(this,this.__data__,t,n)}finally{ce=i}}}function Cp(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Sp(e){return function(){var t=this.__on;if(!!t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.capture):t[++r]=o;++r?t.length=r:delete this.__on}}}function Ap(e,t,n){var r=Js.hasOwnProperty(e.type)?Op:Zs;return function(i,o,a){var s=this.__on,u,l=r(t,o,a);if(s){for(var c=0,d=s.length;c<d;++c)if((u=s[c]).type===e.type&&u.name===e.name){this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=l,u.capture=n),u.value=t;return}}this.addEventListener(e.type,l,n),u={type:e.type,name:e.name,value:t,listener:l,capture:n},s?s.push(u):this.__on=[u]}}function Ip(e,t,n){var r=Cp(e+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,l=s.length,c;u<l;++u)for(i=0,c=s[u];i<o;++i)if((a=r[i]).type===c.type&&a.name===c.name)return c.value}return}for(s=t?Ap:Sp,n==null&&(n=!1),i=0;i<o;++i)this.each(s(r[i],t,n));return this}function eu(e,t,n,r){var i=ce;e.sourceEvent=ce,ce=e;try{return t.apply(n,r)}finally{ce=i}}function tu(e,t,n){var r=ro(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function kp(e,t){return function(){return tu(this,e,t)}}function zp(e,t){return function(){return tu(this,e,t.apply(this,arguments))}}function jp(e,t){return this.each((typeof t=="function"?zp:kp)(e,t))}var oo=[null];function Xe(e,t){this._groups=e,this._parents=t}function un(){return new Xe([[document.documentElement]],oo)}Xe.prototype=un.prototype={constructor:Xe,select:bh,selectAll:Mh,filter:wh,data:Oh,enter:Th,exit:Ch,join:Sh,merge:Ah,order:Ih,sort:kh,call:jh,nodes:$h,node:Rh,size:Lh,empty:Ph,each:Fh,attr:Wh,style:Xh,property:tp,classed:op,text:lp,html:hp,raise:gp,lower:vp,append:yp,insert:bp,remove:Mp,clone:Np,datum:Ep,on:Ip,dispatch:jp};function Rt(e){return typeof e=="string"?new Xe([[document.querySelector(e)]],[document.documentElement]):new Xe([[e]],oo)}function $p(e){return Rt(Sr(e).call(document.documentElement))}var Rp=0;function nu(){return new ao}function ao(){this._="@"+(++Rp).toString(36)}ao.prototype=nu.prototype={constructor:ao,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};function so(){for(var e=ce,t;t=e.sourceEvent;)e=t;return e}function kr(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}function Bn(e){var t=so();return t.changedTouches&&(t=t.changedTouches[0]),kr(e,t)}function Lp(e){return typeof e=="string"?new Xe([document.querySelectorAll(e)],[document.documentElement]):new Xe([e==null?[]:e],oo)}function uo(e,t,n){arguments.length<3&&(n=t,t=so().changedTouches);for(var r=0,i=t?t.length:0,o;r<i;++r)if((o=t[r]).identifier===n)return kr(e,o);return null}function Pp(e,t){t==null&&(t=so().touches);for(var n=0,r=t?t.length:0,i=new Array(r);n<r;++n)i[n]=kr(e,t[n]);return i}const lo=$t(Object.freeze(Object.defineProperty({__proto__:null,create:$p,creator:Sr,local:nu,matcher:no,mouse:Bn,namespace:Vn,namespaces:eo,clientPoint:kr,select:Rt,selectAll:Lp,selection:un,selector:Ar,selectorAll:to,style:Wt,touch:uo,touches:Pp,window:ro,get event(){return ce},customEvent:eu},Symbol.toStringTag,{value:"Module"})));var Fp={value:function(){}};function co(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new zr(n)}function zr(e){this._=e}function Up(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}zr.prototype=co.prototype={constructor:zr,on:function(e,t){var n=this._,r=Up(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=Yp(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(i=(e=r[o]).type)n[i]=ru(n[i],e.name,t);else if(t==null)for(i in n)n[i]=ru(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new zr(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function Yp(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function ru(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Fp,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}function fo(){ce.preventDefault(),ce.stopImmediatePropagation()}function qp(e){var t=e.document.documentElement,n=Rt(e).on("dragstart.drag",fo,!0);"onselectstart"in t?n.on("selectstart.drag",fo,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Vp(e,t){var n=e.document.documentElement,r=Rt(e).on("dragstart.drag",null);t&&(r.on("click.drag",fo,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function ho(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function iu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Qn(){}var Wn=.7,jr=1/Wn,ln="\\s*([+-]?\\d+)\\s*",Gn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",_t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bp=/^#([0-9a-f]{3,8})$/,Qp=new RegExp("^rgb\\("+[ln,ln,ln]+"\\)$"),Wp=new RegExp("^rgb\\("+[_t,_t,_t]+"\\)$"),Gp=new RegExp("^rgba\\("+[ln,ln,ln,Gn]+"\\)$"),Kp=new RegExp("^rgba\\("+[_t,_t,_t,Gn]+"\\)$"),Hp=new RegExp("^hsl\\("+[Gn,_t,_t]+"\\)$"),Xp=new RegExp("^hsla\\("+[Gn,_t,_t,Gn]+"\\)$"),ou={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ho(Qn,Kn,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:au,formatHex:au,formatHsl:Jp,formatRgb:su,toString:su});function au(){return this.rgb().formatHex()}function Jp(){return du(this).formatHsl()}function su(){return this.rgb().formatRgb()}function Kn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Bp.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uu(t):n===3?new rt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?$r(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?$r(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Qp.exec(e))?new rt(t[1],t[2],t[3],1):(t=Wp.exec(e))?new rt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Gp.exec(e))?$r(t[1],t[2],t[3],t[4]):(t=Kp.exec(e))?$r(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Hp.exec(e))?fu(t[1],t[2]/100,t[3]/100,1):(t=Xp.exec(e))?fu(t[1],t[2]/100,t[3]/100,t[4]):ou.hasOwnProperty(e)?uu(ou[e]):e==="transparent"?new rt(NaN,NaN,NaN,0):null}function uu(e){return new rt(e>>16&255,e>>8&255,e&255,1)}function $r(e,t,n,r){return r<=0&&(e=t=n=NaN),new rt(e,t,n,r)}function Zp(e){return e instanceof Qn||(e=Kn(e)),e?(e=e.rgb(),new rt(e.r,e.g,e.b,e.opacity)):new rt}function po(e,t,n,r){return arguments.length===1?Zp(e):new rt(e,t,n,r==null?1:r)}function rt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ho(rt,po,iu(Qn,{brighter:function(e){return e=e==null?jr:Math.pow(jr,e),new rt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Wn:Math.pow(Wn,e),new rt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lu,formatHex:lu,formatRgb:cu,toString:cu}));function lu(){return"#"+go(this.r)+go(this.g)+go(this.b)}function cu(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function go(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function fu(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new bt(e,t,n,r)}function du(e){if(e instanceof bt)return new bt(e.h,e.s,e.l,e.opacity);if(e instanceof Qn||(e=Kn(e)),!e)return new bt;if(e instanceof bt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new bt(a,s,u,e.opacity)}function e0(e,t,n,r){return arguments.length===1?du(e):new bt(e,t,n,r==null?1:r)}function bt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ho(bt,e0,iu(Qn,{brighter:function(e){return e=e==null?jr:Math.pow(jr,e),new bt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Wn:Math.pow(Wn,e),new bt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new rt(mo(e>=240?e-240:e+120,i,r),mo(e,i,r),mo(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function mo(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function hu(e){return function(){return e}}function t0(e,t){return function(n){return e+n*t}}function n0(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function r0(e){return(e=+e)==1?pu:function(t,n){return n-t?n0(t,n,e):hu(isNaN(t)?n:t)}}function pu(e,t){var n=t-e;return n?t0(e,n):hu(isNaN(e)?t:e)}const gu=function e(t){var n=r0(t);function r(i,o){var a=n((i=po(i)).r,(o=po(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=pu(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return r.gamma=e,r}(1);function Lt(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var vo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yo=new RegExp(vo.source,"g");function i0(e){return function(){return e}}function o0(e){return function(t){return e(t)+""}}function a0(e,t){var n=vo.lastIndex=yo.lastIndex=0,r,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(r=vo.exec(e))&&(i=yo.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,u.push({i:a,x:Lt(r,i)})),n=yo.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?o0(u[0].x):i0(t):(t=u.length,function(l){for(var c=0,d;c<t;++c)s[(d=u[c]).i]=d.x(l);return s.join("")})}var mu=180/Math.PI,_o={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function vu(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*mu,skewX:Math.atan(u)*mu,scaleX:a,scaleY:s}}var Hn,bo,yu,Rr;function s0(e){return e==="none"?_o:(Hn||(Hn=document.createElement("DIV"),bo=document.documentElement,yu=document.defaultView),Hn.style.transform=e,e=yu.getComputedStyle(bo.appendChild(Hn),null).getPropertyValue("transform"),bo.removeChild(Hn),e=e.slice(7,-1).split(","),vu(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function u0(e){return e==null||(Rr||(Rr=document.createElementNS("http://www.w3.org/2000/svg","g")),Rr.setAttribute("transform",e),!(e=Rr.transform.baseVal.consolidate()))?_o:(e=e.matrix,vu(e.a,e.b,e.c,e.d,e.e,e.f))}function _u(e,t,n,r){function i(l){return l.length?l.pop()+" ":""}function o(l,c,d,f,h,v){if(l!==d||c!==f){var p=h.push("translate(",null,t,null,n);v.push({i:p-4,x:Lt(l,d)},{i:p-2,x:Lt(c,f)})}else(d||f)&&h.push("translate("+d+t+f+n)}function a(l,c,d,f){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:Lt(l,c)})):c&&d.push(i(d)+"rotate("+c+r)}function s(l,c,d,f){l!==c?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:Lt(l,c)}):c&&d.push(i(d)+"skewX("+c+r)}function u(l,c,d,f,h,v){if(l!==d||c!==f){var p=h.push(i(h)+"scale(",null,",",null,")");v.push({i:p-4,x:Lt(l,d)},{i:p-2,x:Lt(c,f)})}else(d!==1||f!==1)&&h.push(i(h)+"scale("+d+","+f+")")}return function(l,c){var d=[],f=[];return l=e(l),c=e(c),o(l.translateX,l.translateY,c.translateX,c.translateY,d,f),a(l.rotate,c.rotate,d,f),s(l.skewX,c.skewX,d,f),u(l.scaleX,l.scaleY,c.scaleX,c.scaleY,d,f),l=c=null,function(h){for(var v=-1,p=f.length,g;++v<p;)d[(g=f[v]).i]=g.x(h);return d.join("")}}}var l0=_u(s0,"px, ","px)","deg)"),c0=_u(u0,", ",")",")"),Xn=Math.SQRT2,xo=2,bu=4,f0=1e-12;function xu(e){return((e=Math.exp(e))+1/e)/2}function d0(e){return((e=Math.exp(e))-1/e)/2}function h0(e){return((e=Math.exp(2*e))-1)/(e+1)}function p0(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2],u=o-n,l=a-r,c=u*u+l*l,d,f;if(c<f0)f=Math.log(s/i)/Xn,d=function(w){return[n+w*u,r+w*l,i*Math.exp(Xn*w*f)]};else{var h=Math.sqrt(c),v=(s*s-i*i+bu*c)/(2*i*xo*h),p=(s*s-i*i-bu*c)/(2*s*xo*h),g=Math.log(Math.sqrt(v*v+1)-v),x=Math.log(Math.sqrt(p*p+1)-p);f=(x-g)/Xn,d=function(w){var T=w*f,b=xu(g),y=i/(xo*h)*(b*h0(Xn*T+g)-d0(g));return[n+y*u,r+y*l,i*b/xu(Xn*T+g)]}}return d.duration=f*1e3,d}var cn=0,Jn=0,Zn=0,Mu=1e3,Lr,er,Pr=0,Gt=0,Fr=0,tr=typeof performance=="object"&&performance.now?performance:Date,wu=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ur(){return Gt||(wu(g0),Gt=tr.now()+Fr)}function g0(){Gt=0}function Yr(){this._call=this._time=this._next=null}Yr.prototype=Tu.prototype={constructor:Yr,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Ur():+n)+(t==null?0:+t),!this._next&&er!==this&&(er?er._next=this:Lr=this,er=this),this._call=e,this._time=n,Mo()},stop:function(){this._call&&(this._call=null,this._time=1/0,Mo())}};function Tu(e,t,n){var r=new Yr;return r.restart(e,t,n),r}function m0(){Ur(),++cn;for(var e=Lr,t;e;)(t=Gt-e._time)>=0&&e._call.call(null,t),e=e._next;--cn}function Nu(){Gt=(Pr=tr.now())+Fr,cn=Jn=0;try{m0()}finally{cn=0,y0(),Gt=0}}function v0(){var e=tr.now(),t=e-Pr;t>Mu&&(Fr-=t,Pr=e)}function y0(){for(var e,t=Lr,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Lr=n);er=e,Mo(r)}function Mo(e){if(!cn){Jn&&(Jn=clearTimeout(Jn));var t=e-Gt;t>24?(e<1/0&&(Jn=setTimeout(Nu,e-tr.now()-Fr)),Zn&&(Zn=clearInterval(Zn))):(Zn||(Pr=tr.now(),Zn=setInterval(v0,Mu)),cn=1,wu(Nu))}}function Eu(e,t,n){var r=new Yr;return t=t==null?0:+t,r.restart(function(i){r.stop(),e(i+t)},t,n),r}var _0=co("start","end","cancel","interrupt"),b0=[],Du=0,Ou=1,wo=2,qr=3,Cu=4,To=5,Vr=6;function Br(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;x0(e,n,{name:t,index:r,group:i,on:_0,tween:b0,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Du})}function No(e,t){var n=gt(e,t);if(n.state>Du)throw new Error("too late; already scheduled");return n}function Ot(e,t){var n=gt(e,t);if(n.state>qr)throw new Error("too late; already running");return n}function gt(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function x0(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Tu(o,0,n.time);function o(l){n.state=Ou,n.timer.restart(a,n.delay,n.time),n.delay<=l&&a(l-n.delay)}function a(l){var c,d,f,h;if(n.state!==Ou)return u();for(c in r)if(h=r[c],h.name===n.name){if(h.state===qr)return Eu(a);h.state===Cu?(h.state=Vr,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=Vr,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(Eu(function(){n.state===qr&&(n.state=Cu,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=wo,n.on.call("start",e,e.__data__,n.index,n.group),n.state===wo){for(n.state=qr,i=new Array(f=n.tween.length),c=0,d=-1;c<f;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=h);i.length=d+1}}function s(l){for(var c=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(u),n.state=To,1),d=-1,f=i.length;++d<f;)i[d].call(e,c);n.state===To&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=Vr,n.timer.stop(),delete r[t];for(var l in r)return;delete e.__transition}}function Qr(e,t){var n=e.__transition,r,i,o=!0,a;if(!!n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){o=!1;continue}i=r.state>wo&&r.state<To,r.state=Vr,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}o&&delete e.__transition}}function M0(e){return this.each(function(){Qr(this,e)})}function w0(e,t){var n,r;return function(){var i=Ot(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function T0(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Ot(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function N0(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=gt(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===e)return a.value;return null}return this.each((t==null?w0:T0)(n,e,t))}function Eo(e,t,n){var r=e._id;return e.each(function(){var i=Ot(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return gt(i,r).value[t]}}function Su(e,t){var n;return(typeof t=="number"?Lt:t instanceof Kn?gu:(n=Kn(t))?(t=n,gu):a0)(e,t)}function E0(e){return function(){this.removeAttribute(e)}}function D0(e){return function(){this.removeAttributeNS(e.space,e.local)}}function O0(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}}function C0(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}function S0(e,t,n){var r,i,o;return function(){var a,s=n(this),u;return s==null?void this.removeAttribute(e):(a=this.getAttribute(e),u=s+"",a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s)))}}function A0(e,t,n){var r,i,o;return function(){var a,s=n(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),u=s+"",a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s)))}}function I0(e,t){var n=Vn(e),r=n==="transform"?c0:Su;return this.attrTween(e,typeof t=="function"?(n.local?A0:S0)(n,r,Eo(this,"attr."+e,t)):t==null?(n.local?D0:E0)(n):(n.local?C0:O0)(n,r,t))}function k0(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function z0(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function j0(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&z0(e,o)),n}return i._value=t,i}function $0(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&k0(e,o)),n}return i._value=t,i}function R0(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Vn(e);return this.tween(n,(r.local?j0:$0)(r,t))}function L0(e,t){return function(){No(this,e).delay=+t.apply(this,arguments)}}function P0(e,t){return t=+t,function(){No(this,e).delay=t}}function F0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?L0:P0)(t,e)):gt(this.node(),t).delay}function U0(e,t){return function(){Ot(this,e).duration=+t.apply(this,arguments)}}function Y0(e,t){return t=+t,function(){Ot(this,e).duration=t}}function q0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?U0:Y0)(t,e)):gt(this.node(),t).duration}function V0(e,t){if(typeof t!="function")throw new Error;return function(){Ot(this,e).ease=t}}function B0(e){var t=this._id;return arguments.length?this.each(V0(t,e)):gt(this.node(),t).ease}function Q0(e){typeof e!="function"&&(e=no(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=[],u,l=0;l<a;++l)(u=o[l])&&e.call(u,u.__data__,l,o)&&s.push(u);return new Ct(r,this._parents,this._name,this._id)}function W0(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u=t[s],l=n[s],c=u.length,d=a[s]=new Array(c),f,h=0;h<c;++h)(f=u[h]||l[h])&&(d[h]=f);for(;s<r;++s)a[s]=t[s];return new Ct(a,this._parents,this._name,this._id)}function G0(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function K0(e,t,n){var r,i,o=G0(t)?No:Ot;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function H0(e,t){var n=this._id;return arguments.length<2?gt(this.node(),n).on.on(e):this.each(K0(n,e,t))}function X0(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function J0(){return this.on("end.remove",X0(this._id))}function Z0(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ar(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],u=s.length,l=o[a]=new Array(u),c,d,f=0;f<u;++f)(c=s[f])&&(d=e.call(c,c.__data__,f,s))&&("__data__"in c&&(d.__data__=c.__data__),l[f]=d,Br(l[f],t,n,f,l,gt(c,n)));return new Ct(o,this._parents,t,n)}function eg(e){var t=this._name,n=this._id;typeof e!="function"&&(e=to(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u=r[s],l=u.length,c,d=0;d<l;++d)if(c=u[d]){for(var f=e.call(c,c.__data__,d,u),h,v=gt(c,n),p=0,g=f.length;p<g;++p)(h=f[p])&&Br(h,t,n,p,f,v);o.push(f),a.push(c)}return new Ct(o,a,t,n)}var tg=un.prototype.constructor;function ng(){return new tg(this._groups,this._parents)}function rg(e,t){var n,r,i;return function(){var o=Wt(this,e),a=(this.style.removeProperty(e),Wt(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function Au(e){return function(){this.style.removeProperty(e)}}function ig(e,t,n){var r,i=n+"",o;return function(){var a=Wt(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}function og(e,t,n){var r,i,o;return function(){var a=Wt(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Wt(this,e))),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}function ag(e,t){var n,r,i,o="style."+t,a="end."+o,s;return function(){var u=Ot(this,e),l=u.on,c=u.value[o]==null?s||(s=Au(t)):void 0;(l!==n||i!==c)&&(r=(n=l).copy()).on(a,i=c),u.on=r}}function sg(e,t,n){var r=(e+="")=="transform"?l0:Su;return t==null?this.styleTween(e,rg(e,r)).on("end.style."+e,Au(e)):typeof t=="function"?this.styleTween(e,og(e,r,Eo(this,"style."+e,t))).each(ag(this._id,e)):this.styleTween(e,ig(e,r,t),n).on("end.style."+e,null)}function ug(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function lg(e,t,n){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&ug(e,a,n)),r}return o._value=t,o}function cg(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,lg(e,t,n==null?"":n))}function fg(e){return function(){this.textContent=e}}function dg(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function hg(e){return this.tween("text",typeof e=="function"?dg(Eo(this,"text",e)):fg(e==null?"":e+""))}function pg(e){return function(t){this.textContent=e.call(this,t)}}function gg(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&pg(i)),t}return r._value=e,r}function mg(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,gg(e))}function vg(){for(var e=this._name,t=this._id,n=Iu(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,u,l=0;l<s;++l)if(u=a[l]){var c=gt(u,t);Br(u,e,n,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Ct(r,this._parents,e,n)}function yg(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},u={value:function(){--i===0&&o()}};n.each(function(){var l=Ot(this,r),c=l.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),l.on=t})})}var _g=0;function Ct(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Iu(){return++_g}var fn=un.prototype;Ct.prototype={constructor:Ct,select:Z0,selectAll:eg,filter:Q0,merge:W0,selection:ng,transition:vg,call:fn.call,nodes:fn.nodes,node:fn.node,size:fn.size,empty:fn.empty,each:fn.each,on:H0,attr:I0,attrTween:R0,style:sg,styleTween:cg,text:hg,textTween:mg,remove:J0,tween:N0,delay:F0,duration:q0,ease:B0,end:yg};function bg(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Do={time:null,delay:0,duration:250,ease:bg};function xg(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return Do.time=Ur(),Do;return n}function Mg(e){var t,n;e instanceof Ct?(t=e._id,e=e._name):(t=Iu(),(n=Do).time=Ur(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,u,l=0;l<s;++l)(u=a[l])&&Br(u,e,t,l,a,n||xg(u,t));return new Ct(r,this._parents,e,t)}un.prototype.interrupt=M0,un.prototype.transition=Mg;function Wr(e){return function(){return e}}function wg(e,t,n){this.target=e,this.type=t,this.transform=n}function St(e,t,n){this.k=e,this.x=t,this.y=n}St.prototype={constructor:St,scale:function(e){return e===1?this:new St(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new St(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Gr=new St(1,0,0);ku.prototype=St.prototype;function ku(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Gr;return e.__zoom}function Oo(){ce.stopImmediatePropagation()}function nr(){ce.preventDefault(),ce.stopImmediatePropagation()}function Tg(){return!ce.ctrlKey&&!ce.button}function Ng(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function zu(){return this.__zoom||Gr}function Eg(){return-ce.deltaY*(ce.deltaMode===1?.05:ce.deltaMode?1:.002)}function Dg(){return navigator.maxTouchPoints||"ontouchstart"in this}function Og(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function Cg(){var e=Tg,t=Ng,n=Og,r=Eg,i=Dg,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,u=p0,l=co("start","zoom","end"),c,d,f=500,h=150,v=0;function p(m){m.property("__zoom",zu).on("wheel.zoom",C).on("mousedown.zoom",I).on("dblclick.zoom",O).filter(i).on("touchstart.zoom",E).on("touchmove.zoom",D).on("touchend.zoom touchcancel.zoom",z).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(m,N,k){var R=m.selection?m.selection():m;R.property("__zoom",zu),m!==R?T(m,N,k):R.interrupt().each(function(){b(this,arguments).start().zoom(null,typeof N=="function"?N.apply(this,arguments):N).end()})},p.scaleBy=function(m,N,k){p.scaleTo(m,function(){var R=this.__zoom.k,L=typeof N=="function"?N.apply(this,arguments):N;return R*L},k)},p.scaleTo=function(m,N,k){p.transform(m,function(){var R=t.apply(this,arguments),L=this.__zoom,V=k==null?w(R):typeof k=="function"?k.apply(this,arguments):k,q=L.invert(V),ee=typeof N=="function"?N.apply(this,arguments):N;return n(x(g(L,ee),V,q),R,a)},k)},p.translateBy=function(m,N,k){p.transform(m,function(){return n(this.__zoom.translate(typeof N=="function"?N.apply(this,arguments):N,typeof k=="function"?k.apply(this,arguments):k),t.apply(this,arguments),a)})},p.translateTo=function(m,N,k,R){p.transform(m,function(){var L=t.apply(this,arguments),V=this.__zoom,q=R==null?w(L):typeof R=="function"?R.apply(this,arguments):R;return n(Gr.translate(q[0],q[1]).scale(V.k).translate(typeof N=="function"?-N.apply(this,arguments):-N,typeof k=="function"?-k.apply(this,arguments):-k),L,a)},R)};function g(m,N){return N=Math.max(o[0],Math.min(o[1],N)),N===m.k?m:new St(N,m.x,m.y)}function x(m,N,k){var R=N[0]-k[0]*m.k,L=N[1]-k[1]*m.k;return R===m.x&&L===m.y?m:new St(m.k,R,L)}function w(m){return[(+m[0][0]+ +m[1][0])/2,(+m[0][1]+ +m[1][1])/2]}function T(m,N,k){m.on("start.zoom",function(){b(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){b(this,arguments).end()}).tween("zoom",function(){var R=this,L=arguments,V=b(R,L),q=t.apply(R,L),ee=k==null?w(q):typeof k=="function"?k.apply(R,L):k,A=Math.max(q[1][0]-q[0][0],q[1][1]-q[0][1]),$=R.__zoom,G=typeof N=="function"?N.apply(R,L):N,B=u($.invert(ee).concat(A/$.k),G.invert(ee).concat(A/G.k));return function(U){if(U===1)U=G;else{var X=B(U),K=A/X[2];U=new St(K,ee[0]-X[0]*K,ee[1]-X[1]*K)}V.zoom(null,U)}})}function b(m,N,k){return!k&&m.__zooming||new y(m,N)}function y(m,N){this.that=m,this.args=N,this.active=0,this.extent=t.apply(m,N),this.taps=0}y.prototype={start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(m,N){return this.mouse&&m!=="mouse"&&(this.mouse[1]=N.invert(this.mouse[0])),this.touch0&&m!=="touch"&&(this.touch0[1]=N.invert(this.touch0[0])),this.touch1&&m!=="touch"&&(this.touch1[1]=N.invert(this.touch1[0])),this.that.__zoom=N,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(m){eu(new wg(p,m,this.that.__zoom),l.apply,l,[m,this.that,this.args])}};function C(){if(!e.apply(this,arguments))return;var m=b(this,arguments),N=this.__zoom,k=Math.max(o[0],Math.min(o[1],N.k*Math.pow(2,r.apply(this,arguments)))),R=Bn(this);if(m.wheel)(m.mouse[0][0]!==R[0]||m.mouse[0][1]!==R[1])&&(m.mouse[1]=N.invert(m.mouse[0]=R)),clearTimeout(m.wheel);else{if(N.k===k)return;m.mouse=[R,N.invert(R)],Qr(this),m.start()}nr(),m.wheel=setTimeout(L,h),m.zoom("mouse",n(x(g(N,k),m.mouse[0],m.mouse[1]),m.extent,a));function L(){m.wheel=null,m.end()}}function I(){if(d||!e.apply(this,arguments))return;var m=b(this,arguments,!0),N=Rt(ce.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",q,!0),k=Bn(this),R=ce.clientX,L=ce.clientY;qp(ce.view),Oo(),m.mouse=[k,this.__zoom.invert(k)],Qr(this),m.start();function V(){if(nr(),!m.moved){var ee=ce.clientX-R,A=ce.clientY-L;m.moved=ee*ee+A*A>v}m.zoom("mouse",n(x(m.that.__zoom,m.mouse[0]=Bn(m.that),m.mouse[1]),m.extent,a))}function q(){N.on("mousemove.zoom mouseup.zoom",null),Vp(ce.view,m.moved),nr(),m.end()}}function O(){if(!!e.apply(this,arguments)){var m=this.__zoom,N=Bn(this),k=m.invert(N),R=m.k*(ce.shiftKey?.5:2),L=n(x(g(m,R),N,k),t.apply(this,arguments),a);nr(),s>0?Rt(this).transition().duration(s).call(T,L,N):Rt(this).call(p.transform,L)}}function E(){if(!!e.apply(this,arguments)){var m=ce.touches,N=m.length,k=b(this,arguments,ce.changedTouches.length===N),R,L,V,q;for(Oo(),L=0;L<N;++L)V=m[L],q=uo(this,m,V.identifier),q=[q,this.__zoom.invert(q),V.identifier],k.touch0?!k.touch1&&k.touch0[2]!==q[2]&&(k.touch1=q,k.taps=0):(k.touch0=q,R=!0,k.taps=1+!!c);c&&(c=clearTimeout(c)),R&&(k.taps<2&&(c=setTimeout(function(){c=null},f)),Qr(this),k.start())}}function D(){if(!!this.__zooming){var m=b(this,arguments),N=ce.changedTouches,k=N.length,R,L,V,q;for(nr(),c&&(c=clearTimeout(c)),m.taps=0,R=0;R<k;++R)L=N[R],V=uo(this,N,L.identifier),m.touch0&&m.touch0[2]===L.identifier?m.touch0[0]=V:m.touch1&&m.touch1[2]===L.identifier&&(m.touch1[0]=V);if(L=m.that.__zoom,m.touch1){var ee=m.touch0[0],A=m.touch0[1],$=m.touch1[0],G=m.touch1[1],B=(B=$[0]-ee[0])*B+(B=$[1]-ee[1])*B,U=(U=G[0]-A[0])*U+(U=G[1]-A[1])*U;L=g(L,Math.sqrt(B/U)),V=[(ee[0]+$[0])/2,(ee[1]+$[1])/2],q=[(A[0]+G[0])/2,(A[1]+G[1])/2]}else if(m.touch0)V=m.touch0[0],q=m.touch0[1];else return;m.zoom("touch",n(x(L,V,q),m.extent,a))}}function z(){if(!!this.__zooming){var m=b(this,arguments),N=ce.changedTouches,k=N.length,R,L;for(Oo(),d&&clearTimeout(d),d=setTimeout(function(){d=null},f),R=0;R<k;++R)L=N[R],m.touch0&&m.touch0[2]===L.identifier?delete m.touch0:m.touch1&&m.touch1[2]===L.identifier&&delete m.touch1;if(m.touch1&&!m.touch0&&(m.touch0=m.touch1,delete m.touch1),m.touch0)m.touch0[1]=this.__zoom.invert(m.touch0[0]);else if(m.end(),m.taps===2){var V=Rt(this).on("dblclick.zoom");V&&V.apply(this,arguments)}}}return p.wheelDelta=function(m){return arguments.length?(r=typeof m=="function"?m:Wr(+m),p):r},p.filter=function(m){return arguments.length?(e=typeof m=="function"?m:Wr(!!m),p):e},p.touchable=function(m){return arguments.length?(i=typeof m=="function"?m:Wr(!!m),p):i},p.extent=function(m){return arguments.length?(t=typeof m=="function"?m:Wr([[+m[0][0],+m[0][1]],[+m[1][0],+m[1][1]]]),p):t},p.scaleExtent=function(m){return arguments.length?(o[0]=+m[0],o[1]=+m[1],p):[o[0],o[1]]},p.translateExtent=function(m){return arguments.length?(a[0][0]=+m[0][0],a[1][0]=+m[1][0],a[0][1]=+m[0][1],a[1][1]=+m[1][1],p):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},p.constrain=function(m){return arguments.length?(n=m,p):n},p.duration=function(m){return arguments.length?(s=+m,p):s},p.interpolate=function(m){return arguments.length?(u=m,p):u},p.on=function(){var m=l.on.apply(l,arguments);return m===l?p:m},p.clickDistance=function(m){return arguments.length?(v=(m=+m)*m,p):Math.sqrt(v)},p}const Sg=$t(Object.freeze(Object.defineProperty({__proto__:null,zoom:Cg,zoomTransform:ku,zoomIdentity:Gr},Symbol.toStringTag,{value:"Module"})));var ju={},$u=Object.prototype.hasOwnProperty;function Co(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Co(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if($u.call(e,n)&&++r&&!$u.call(t,n)||!(n in t)||!Co(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}ju.dequal=Co;var Ru={exports:{}};(function(e){var t=function(){function n(f,h){return h!=null&&f instanceof h}var r;try{r=Map}catch{r=function(){}}var i;try{i=Set}catch{i=function(){}}var o;try{o=Promise}catch{o=function(){}}function a(f,h,v,p,g){typeof h=="object"&&(v=h.depth,p=h.prototype,g=h.includeNonEnumerable,h=h.circular);var x=[],w=[],T=typeof Buffer<"u";typeof h>"u"&&(h=!0),typeof v>"u"&&(v=1/0);function b(y,C){if(y===null)return null;if(C===0)return y;var I,O;if(typeof y!="object")return y;if(n(y,r))I=new r;else if(n(y,i))I=new i;else if(n(y,o))I=new o(function(V,q){y.then(function(ee){V(b(ee,C-1))},function(ee){q(b(ee,C-1))})});else if(a.__isArray(y))I=[];else if(a.__isRegExp(y))I=new RegExp(y.source,d(y)),y.lastIndex&&(I.lastIndex=y.lastIndex);else if(a.__isDate(y))I=new Date(y.getTime());else{if(T&&Buffer.isBuffer(y))return Buffer.allocUnsafe?I=Buffer.allocUnsafe(y.length):I=new Buffer(y.length),y.copy(I),I;n(y,Error)?I=Object.create(y):typeof p>"u"?(O=Object.getPrototypeOf(y),I=Object.create(O)):(I=Object.create(p),O=p)}if(h){var E=x.indexOf(y);if(E!=-1)return w[E];x.push(y),w.push(I)}n(y,r)&&y.forEach(function(V,q){var ee=b(q,C-1),A=b(V,C-1);I.set(ee,A)}),n(y,i)&&y.forEach(function(V){var q=b(V,C-1);I.add(q)});for(var D in y){var z;O&&(z=Object.getOwnPropertyDescriptor(O,D)),!(z&&z.set==null)&&(I[D]=b(y[D],C-1))}if(Object.getOwnPropertySymbols)for(var m=Object.getOwnPropertySymbols(y),D=0;D<m.length;D++){var N=m[D],k=Object.getOwnPropertyDescriptor(y,N);k&&!k.enumerable&&!g||(I[N]=b(y[N],C-1),k.enumerable||Object.defineProperty(I,N,{enumerable:!1}))}if(g)for(var R=Object.getOwnPropertyNames(y),D=0;D<R.length;D++){var L=R[D],k=Object.getOwnPropertyDescriptor(y,L);k&&k.enumerable||(I[L]=b(y[L],C-1),Object.defineProperty(I,L,{enumerable:!1}))}return I}return b(f,v)}a.clonePrototype=function(h){if(h===null)return null;var v=function(){};return v.prototype=h,new v};function s(f){return Object.prototype.toString.call(f)}a.__objToStr=s;function u(f){return typeof f=="object"&&s(f)==="[object Date]"}a.__isDate=u;function l(f){return typeof f=="object"&&s(f)==="[object Array]"}a.__isArray=l;function c(f){return typeof f=="object"&&s(f)==="[object RegExp]"}a.__isRegExp=c;function d(f){var h="";return f.global&&(h+="g"),f.ignoreCase&&(h+="i"),f.multiline&&(h+="m"),h}return a.__getRegExpFlags=d,a}();e.exports&&(e.exports=t)})(Ru);var Kr,Ag=new Uint8Array(16);function Lu(){if(!Kr&&(Kr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Kr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Kr(Ag)}const Ig=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Hr(e){return typeof e=="string"&&Ig.test(e)}for(var $e=[],So=0;So<256;++So)$e.push((So+256).toString(16).substr(1));function Xr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=($e[e[t+0]]+$e[e[t+1]]+$e[e[t+2]]+$e[e[t+3]]+"-"+$e[e[t+4]]+$e[e[t+5]]+"-"+$e[e[t+6]]+$e[e[t+7]]+"-"+$e[e[t+8]]+$e[e[t+9]]+"-"+$e[e[t+10]]+$e[e[t+11]]+$e[e[t+12]]+$e[e[t+13]]+$e[e[t+14]]+$e[e[t+15]]).toLowerCase();if(!Hr(n))throw TypeError("Stringified UUID is invalid");return n}var Pu,Ao,Io=0,ko=0;function kg(e,t,n){var r=t&&n||0,i=t||new Array(16);e=e||{};var o=e.node||Pu,a=e.clockseq!==void 0?e.clockseq:Ao;if(o==null||a==null){var s=e.random||(e.rng||Lu)();o==null&&(o=Pu=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]),a==null&&(a=Ao=(s[6]<<8|s[7])&16383)}var u=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:ko+1,c=u-Io+(l-ko)/1e4;if(c<0&&e.clockseq===void 0&&(a=a+1&16383),(c<0||u>Io)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Io=u,ko=l,Ao=a,u+=122192928e5;var d=((u&268435455)*1e4+l)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=d&255;var f=u/4294967296*1e4&268435455;i[r++]=f>>>8&255,i[r++]=f&255,i[r++]=f>>>24&15|16,i[r++]=f>>>16&255,i[r++]=a>>>8|128,i[r++]=a&255;for(var h=0;h<6;++h)i[r+h]=o[h];return t||Xr(i)}function Fu(e){if(!Hr(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}function zg(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var jg="6ba7b810-9dad-11d1-80b4-00c04fd430c8",$g="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Uu(e,t,n){function r(i,o,a,s){if(typeof i=="string"&&(i=zg(i)),typeof o=="string"&&(o=Fu(o)),o.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+i.length);if(u.set(o),u.set(i,o.length),u=n(u),u[6]=u[6]&15|t,u[8]=u[8]&63|128,a){s=s||0;for(var l=0;l<16;++l)a[s+l]=u[l];return a}return Xr(u)}try{r.name=e}catch{}return r.DNS=jg,r.URL=$g,r}function Rg(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return Lg(Pg(Fg(e),e.length*8))}function Lg(e){for(var t=[],n=e.length*32,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(o&15),16);t.push(a)}return t}function Yu(e){return(e+64>>>9<<4)+14+1}function Pg(e,t){e[t>>5]|=128<<t%32,e[Yu(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,u=r,l=i,c=o;n=Ue(n,r,i,o,e[a],7,-680876936),o=Ue(o,n,r,i,e[a+1],12,-389564586),i=Ue(i,o,n,r,e[a+2],17,606105819),r=Ue(r,i,o,n,e[a+3],22,-1044525330),n=Ue(n,r,i,o,e[a+4],7,-176418897),o=Ue(o,n,r,i,e[a+5],12,1200080426),i=Ue(i,o,n,r,e[a+6],17,-1473231341),r=Ue(r,i,o,n,e[a+7],22,-45705983),n=Ue(n,r,i,o,e[a+8],7,1770035416),o=Ue(o,n,r,i,e[a+9],12,-1958414417),i=Ue(i,o,n,r,e[a+10],17,-42063),r=Ue(r,i,o,n,e[a+11],22,-1990404162),n=Ue(n,r,i,o,e[a+12],7,1804603682),o=Ue(o,n,r,i,e[a+13],12,-40341101),i=Ue(i,o,n,r,e[a+14],17,-1502002290),r=Ue(r,i,o,n,e[a+15],22,1236535329),n=Ye(n,r,i,o,e[a+1],5,-165796510),o=Ye(o,n,r,i,e[a+6],9,-1069501632),i=Ye(i,o,n,r,e[a+11],14,643717713),r=Ye(r,i,o,n,e[a],20,-373897302),n=Ye(n,r,i,o,e[a+5],5,-701558691),o=Ye(o,n,r,i,e[a+10],9,38016083),i=Ye(i,o,n,r,e[a+15],14,-660478335),r=Ye(r,i,o,n,e[a+4],20,-405537848),n=Ye(n,r,i,o,e[a+9],5,568446438),o=Ye(o,n,r,i,e[a+14],9,-1019803690),i=Ye(i,o,n,r,e[a+3],14,-187363961),r=Ye(r,i,o,n,e[a+8],20,1163531501),n=Ye(n,r,i,o,e[a+13],5,-1444681467),o=Ye(o,n,r,i,e[a+2],9,-51403784),i=Ye(i,o,n,r,e[a+7],14,1735328473),r=Ye(r,i,o,n,e[a+12],20,-1926607734),n=qe(n,r,i,o,e[a+5],4,-378558),o=qe(o,n,r,i,e[a+8],11,-2022574463),i=qe(i,o,n,r,e[a+11],16,1839030562),r=qe(r,i,o,n,e[a+14],23,-35309556),n=qe(n,r,i,o,e[a+1],4,-1530992060),o=qe(o,n,r,i,e[a+4],11,1272893353),i=qe(i,o,n,r,e[a+7],16,-155497632),r=qe(r,i,o,n,e[a+10],23,-1094730640),n=qe(n,r,i,o,e[a+13],4,681279174),o=qe(o,n,r,i,e[a],11,-358537222),i=qe(i,o,n,r,e[a+3],16,-722521979),r=qe(r,i,o,n,e[a+6],23,76029189),n=qe(n,r,i,o,e[a+9],4,-640364487),o=qe(o,n,r,i,e[a+12],11,-421815835),i=qe(i,o,n,r,e[a+15],16,530742520),r=qe(r,i,o,n,e[a+2],23,-995338651),n=Ve(n,r,i,o,e[a],6,-198630844),o=Ve(o,n,r,i,e[a+7],10,1126891415),i=Ve(i,o,n,r,e[a+14],15,-1416354905),r=Ve(r,i,o,n,e[a+5],21,-57434055),n=Ve(n,r,i,o,e[a+12],6,1700485571),o=Ve(o,n,r,i,e[a+3],10,-1894986606),i=Ve(i,o,n,r,e[a+10],15,-1051523),r=Ve(r,i,o,n,e[a+1],21,-2054922799),n=Ve(n,r,i,o,e[a+8],6,1873313359),o=Ve(o,n,r,i,e[a+15],10,-30611744),i=Ve(i,o,n,r,e[a+6],15,-1560198380),r=Ve(r,i,o,n,e[a+13],21,1309151649),n=Ve(n,r,i,o,e[a+4],6,-145523070),o=Ve(o,n,r,i,e[a+11],10,-1120210379),i=Ve(i,o,n,r,e[a+2],15,718787259),r=Ve(r,i,o,n,e[a+9],21,-343485551),n=Pt(n,s),r=Pt(r,u),i=Pt(i,l),o=Pt(o,c)}return[n,r,i,o]}function Fg(e){if(e.length===0)return[];for(var t=e.length*8,n=new Uint32Array(Yu(t)),r=0;r<t;r+=8)n[r>>5]|=(e[r/8]&255)<<r%32;return n}function Pt(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Ug(e,t){return e<<t|e>>>32-t}function Jr(e,t,n,r,i,o){return Pt(Ug(Pt(Pt(t,e),Pt(r,o)),i),n)}function Ue(e,t,n,r,i,o,a){return Jr(t&n|~t&r,e,t,i,o,a)}function Ye(e,t,n,r,i,o,a){return Jr(t&r|n&~r,e,t,i,o,a)}function qe(e,t,n,r,i,o,a){return Jr(t^n^r,e,t,i,o,a)}function Ve(e,t,n,r,i,o,a){return Jr(n^(t|~r),e,t,i,o,a)}var Yg=Uu("v3",48,Rg);const qg=Yg;function Vg(e,t,n){e=e||{};var r=e.random||(e.rng||Lu)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Xr(r)}function Bg(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function zo(e,t){return e<<t|e>>>32-t}function Qg(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),u=0;u<a;++u){for(var l=new Uint32Array(16),c=0;c<16;++c)l[c]=e[u*64+c*4]<<24|e[u*64+c*4+1]<<16|e[u*64+c*4+2]<<8|e[u*64+c*4+3];s[u]=l}s[a-1][14]=(e.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(e.length-1)*8&4294967295;for(var d=0;d<a;++d){for(var f=new Uint32Array(80),h=0;h<16;++h)f[h]=s[d][h];for(var v=16;v<80;++v)f[v]=zo(f[v-3]^f[v-8]^f[v-14]^f[v-16],1);for(var p=n[0],g=n[1],x=n[2],w=n[3],T=n[4],b=0;b<80;++b){var y=Math.floor(b/20),C=zo(p,5)+Bg(y,g,x,w)+T+t[y]+f[b]>>>0;T=w,w=x,x=zo(g,30)>>>0,g=p,p=C}n[0]=n[0]+p>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+x>>>0,n[3]=n[3]+w>>>0,n[4]=n[4]+T>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var Wg=Uu("v5",80,Qg);const Gg=Wg,Kg="00000000-0000-0000-0000-000000000000";function Hg(e){if(!Hr(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Xg=$t(Object.freeze(Object.defineProperty({__proto__:null,v1:kg,v3:qg,v4:Vg,v5:Gg,NIL:Kg,version:Hg,validate:Hr,stringify:Xr,parse:Fu},Symbol.toStringTag,{value:"Module"})));var jo={},$o={exports:{}},le={exports:{}},Ro={exports:{}},he={};/** @license React v16.13.1
28
28
  * react-is.production.min.js
29
29
  *
30
30
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -38,12 +38,12 @@ Check the top-level render call using <`+P+">.")}return j}}function Fe(_,j){{if(
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Vu;function Zg(){return Vu||(Vu=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function T(Y){return typeof Y=="string"||typeof Y=="function"||Y===r||Y===l||Y===o||Y===i||Y===d||Y===f||typeof Y=="object"&&Y!==null&&(Y.$$typeof===v||Y.$$typeof===h||Y.$$typeof===a||Y.$$typeof===s||Y.$$typeof===c||Y.$$typeof===g||Y.$$typeof===x||Y.$$typeof===w||Y.$$typeof===p)}function b(Y){if(typeof Y=="object"&&Y!==null){var Ke=Y.$$typeof;switch(Ke){case t:var Q=Y.type;switch(Q){case u:case l:case r:case o:case i:case d:return Q;default:var lt=Q&&Q.$$typeof;switch(lt){case s:case c:case v:case h:case a:return lt;default:return Ke}}case n:return Ke}}}var y=u,C=l,I=s,O=a,E=t,D=c,k=r,m=v,N=h,z=n,R=o,L=i,V=d,q=!1;function ee(Y){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(Y)||b(Y)===u}function A(Y){return b(Y)===l}function $(Y){return b(Y)===s}function G(Y){return b(Y)===a}function B(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function U(Y){return b(Y)===c}function X(Y){return b(Y)===r}function K(Y){return b(Y)===v}function J(Y){return b(Y)===h}function Z(Y){return b(Y)===n}function ne(Y){return b(Y)===o}function te(Y){return b(Y)===i}function ze(Y){return b(Y)===d}pe.AsyncMode=y,pe.ConcurrentMode=C,pe.ContextConsumer=I,pe.ContextProvider=O,pe.Element=E,pe.ForwardRef=D,pe.Fragment=k,pe.Lazy=m,pe.Memo=N,pe.Portal=z,pe.Profiler=R,pe.StrictMode=L,pe.Suspense=V,pe.isAsyncMode=ee,pe.isConcurrentMode=A,pe.isContextConsumer=$,pe.isContextProvider=G,pe.isElement=B,pe.isForwardRef=U,pe.isFragment=X,pe.isLazy=K,pe.isMemo=J,pe.isPortal=Z,pe.isProfiler=ne,pe.isStrictMode=te,pe.isSuspense=ze,pe.isValidElementType=T,pe.typeOf=b}()),pe}var Bu;function Qu(){return Bu||(Bu=1,function(e){process.env.NODE_ENV==="production"?e.exports=Jg():e.exports=Zg()}(Ro)),Ro.exports}/*
41
+ */var Vu;function Zg(){return Vu||(Vu=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function T(Y){return typeof Y=="string"||typeof Y=="function"||Y===r||Y===l||Y===o||Y===i||Y===d||Y===f||typeof Y=="object"&&Y!==null&&(Y.$$typeof===v||Y.$$typeof===h||Y.$$typeof===a||Y.$$typeof===s||Y.$$typeof===c||Y.$$typeof===g||Y.$$typeof===x||Y.$$typeof===w||Y.$$typeof===p)}function b(Y){if(typeof Y=="object"&&Y!==null){var Ke=Y.$$typeof;switch(Ke){case t:var Q=Y.type;switch(Q){case u:case l:case r:case o:case i:case d:return Q;default:var lt=Q&&Q.$$typeof;switch(lt){case s:case c:case v:case h:case a:return lt;default:return Ke}}case n:return Ke}}}var y=u,C=l,I=s,O=a,E=t,D=c,z=r,m=v,N=h,k=n,R=o,L=i,V=d,q=!1;function ee(Y){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(Y)||b(Y)===u}function A(Y){return b(Y)===l}function $(Y){return b(Y)===s}function G(Y){return b(Y)===a}function B(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function U(Y){return b(Y)===c}function X(Y){return b(Y)===r}function K(Y){return b(Y)===v}function J(Y){return b(Y)===h}function Z(Y){return b(Y)===n}function ne(Y){return b(Y)===o}function te(Y){return b(Y)===i}function ke(Y){return b(Y)===d}pe.AsyncMode=y,pe.ConcurrentMode=C,pe.ContextConsumer=I,pe.ContextProvider=O,pe.Element=E,pe.ForwardRef=D,pe.Fragment=z,pe.Lazy=m,pe.Memo=N,pe.Portal=k,pe.Profiler=R,pe.StrictMode=L,pe.Suspense=V,pe.isAsyncMode=ee,pe.isConcurrentMode=A,pe.isContextConsumer=$,pe.isContextProvider=G,pe.isElement=B,pe.isForwardRef=U,pe.isFragment=X,pe.isLazy=K,pe.isMemo=J,pe.isPortal=Z,pe.isProfiler=ne,pe.isStrictMode=te,pe.isSuspense=ke,pe.isValidElementType=T,pe.typeOf=b}()),pe}var Bu;function Qu(){return Bu||(Bu=1,function(e){process.env.NODE_ENV==="production"?e.exports=Jg():e.exports=Zg()}(Ro)),Ro.exports}/*
42
42
  object-assign
43
43
  (c) Sindre Sorhus
44
44
  @license MIT
45
- */var Lo,Wu;function e1(){if(Wu)return Lo;Wu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Lo=i()?Object.assign:function(o,a){for(var s,u=r(o),l,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var d in s)t.call(s,d)&&(u[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)n.call(s,l[f])&&(u[l[f]]=s[l[f]])}}return u},Lo}var Po,Gu;function Fo(){if(Gu)return Po;Gu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Po=e,Po}var Uo,Ku;function Hu(){return Ku||(Ku=1,Uo=Function.call.bind(Object.prototype.hasOwnProperty)),Uo}var Yo,Xu;function t1(){if(Xu)return Yo;Xu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Fo(),n={},r=Hu();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,u,l){if(process.env.NODE_ENV!=="production"){for(var c in o)if(r(o,c)){var d;try{if(typeof o[c]!="function"){var f=Error((u||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[c](a,c,u,s,null,t)}catch(v){d=v}if(d&&!(d instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=l?l():"";e("Failed "+s+" type: "+d.message+(h!=null?h:""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Yo=i,Yo}var qo,Ju;function n1(){if(Ju)return qo;Ju=1;var e=Qu(),t=e1(),n=Fo(),r=Hu(),i=t1(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return qo=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d(A){var $=A&&(l&&A[l]||A[c]);if(typeof $=="function")return $}var f="<<anonymous>>",h={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:w(),arrayOf:T,element:b(),elementType:y(),instanceOf:C,node:D(),objectOf:O,oneOf:I,oneOfType:E,shape:m,exact:N};function v(A,$){return A===$?A!==0||1/A===1/$:A!==A&&$!==$}function p(A,$){this.message=A,this.data=$&&typeof $=="object"?$:{},this.stack=""}p.prototype=Error.prototype;function g(A){if(process.env.NODE_ENV!=="production")var $={},G=0;function B(X,K,J,Z,ne,te,ze){if(Z=Z||f,te=te||J,ze!==n){if(u){var Y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Y.name="Invariant Violation",Y}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ke=Z+":"+J;!$[Ke]&&G<3&&(o("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+Z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),$[Ke]=!0,G++)}}return K[J]==null?X?K[J]===null?new p("The "+ne+" `"+te+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new p("The "+ne+" `"+te+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:A(K,J,Z,ne,te)}var U=B.bind(null,!1);return U.isRequired=B.bind(null,!0),U}function x(A){function $(G,B,U,X,K,J){var Z=G[B],ne=L(Z);if(ne!==A){var te=V(Z);return new p("Invalid "+X+" `"+K+"` of type "+("`"+te+"` supplied to `"+U+"`, expected ")+("`"+A+"`."),{expectedType:A})}return null}return g($)}function w(){return g(a)}function T(A){function $(G,B,U,X,K){if(typeof A!="function")return new p("Property `"+K+"` of component `"+U+"` has invalid PropType notation inside arrayOf.");var J=G[B];if(!Array.isArray(J)){var Z=L(J);return new p("Invalid "+X+" `"+K+"` of type "+("`"+Z+"` supplied to `"+U+"`, expected an array."))}for(var ne=0;ne<J.length;ne++){var te=A(J,ne,U,X,K+"["+ne+"]",n);if(te instanceof Error)return te}return null}return g($)}function b(){function A($,G,B,U,X){var K=$[G];if(!s(K)){var J=L(K);return new p("Invalid "+U+" `"+X+"` of type "+("`"+J+"` supplied to `"+B+"`, expected a single ReactElement."))}return null}return g(A)}function y(){function A($,G,B,U,X){var K=$[G];if(!e.isValidElementType(K)){var J=L(K);return new p("Invalid "+U+" `"+X+"` of type "+("`"+J+"` supplied to `"+B+"`, expected a single ReactElement type."))}return null}return g(A)}function C(A){function $(G,B,U,X,K){if(!(G[B]instanceof A)){var J=A.name||f,Z=ee(G[B]);return new p("Invalid "+X+" `"+K+"` of type "+("`"+Z+"` supplied to `"+U+"`, expected ")+("instance of `"+J+"`."))}return null}return g($)}function I(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function $(G,B,U,X,K){for(var J=G[B],Z=0;Z<A.length;Z++)if(v(J,A[Z]))return null;var ne=JSON.stringify(A,function(ze,Y){var Ke=V(Y);return Ke==="symbol"?String(Y):Y});return new p("Invalid "+X+" `"+K+"` of value `"+String(J)+"` "+("supplied to `"+U+"`, expected one of "+ne+"."))}return g($)}function O(A){function $(G,B,U,X,K){if(typeof A!="function")return new p("Property `"+K+"` of component `"+U+"` has invalid PropType notation inside objectOf.");var J=G[B],Z=L(J);if(Z!=="object")return new p("Invalid "+X+" `"+K+"` of type "+("`"+Z+"` supplied to `"+U+"`, expected an object."));for(var ne in J)if(r(J,ne)){var te=A(J,ne,U,X,K+"."+ne,n);if(te instanceof Error)return te}return null}return g($)}function E(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var $=0;$<A.length;$++){var G=A[$];if(typeof G!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(G)+" at index "+$+"."),a}function B(U,X,K,J,Z){for(var ne=[],te=0;te<A.length;te++){var ze=A[te],Y=ze(U,X,K,J,Z,n);if(Y==null)return null;Y.data&&r(Y.data,"expectedType")&&ne.push(Y.data.expectedType)}var Ke=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new p("Invalid "+J+" `"+Z+"` supplied to "+("`"+K+"`"+Ke+"."))}return g(B)}function D(){function A($,G,B,U,X){return z($[G])?null:new p("Invalid "+U+" `"+X+"` supplied to "+("`"+B+"`, expected a ReactNode."))}return g(A)}function k(A,$,G,B,U){return new p((A||"React class")+": "+$+" type `"+G+"."+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+U+"`.")}function m(A){function $(G,B,U,X,K){var J=G[B],Z=L(J);if(Z!=="object")return new p("Invalid "+X+" `"+K+"` of type `"+Z+"` "+("supplied to `"+U+"`, expected `object`."));for(var ne in A){var te=A[ne];if(typeof te!="function")return k(U,X,K,ne,V(te));var ze=te(J,ne,U,X,K+"."+ne,n);if(ze)return ze}return null}return g($)}function N(A){function $(G,B,U,X,K){var J=G[B],Z=L(J);if(Z!=="object")return new p("Invalid "+X+" `"+K+"` of type `"+Z+"` "+("supplied to `"+U+"`, expected `object`."));var ne=t({},G[B],A);for(var te in ne){var ze=A[te];if(r(A,te)&&typeof ze!="function")return k(U,X,K,te,V(ze));if(!ze)return new p("Invalid "+X+" `"+K+"` key `"+te+"` supplied to `"+U+"`.\nBad object: "+JSON.stringify(G[B],null," ")+`
46
- Valid keys: `+JSON.stringify(Object.keys(A),null," "));var Y=ze(J,te,U,X,K+"."+te,n);if(Y)return Y}return null}return g($)}function z(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(z);if(A===null||s(A))return!0;var $=d(A);if($){var G=$.call(A),B;if($!==A.entries){for(;!(B=G.next()).done;)if(!z(B.value))return!1}else for(;!(B=G.next()).done;){var U=B.value;if(U&&!z(U[1]))return!1}}else return!1;return!0;default:return!1}}function R(A,$){return A==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function L(A){var $=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":R($,A)?"symbol":$}function V(A){if(typeof A>"u"||A===null)return""+A;var $=L(A);if($==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return $}function q(A){var $=V(A);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function ee(A){return!A.constructor||!A.constructor.name?f:A.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},qo}var Vo,Zu;function r1(){if(Zu)return Vo;Zu=1;var e=Fo();function t(){}function n(){}return n.resetWarningCache=t,Vo=function(){function r(a,s,u,l,c,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Vo}if(process.env.NODE_ENV!=="production"){var i1=Qu(),o1=!0;le.exports=n1()(i1.isElement,o1)}else le.exports=r1()();var Zr={exports:{}},a1=function(){for(var t=arguments.length,n=[],r=0;r<t;r++)n[r]=arguments[r];if(n=n.filter(function(i){return i!=null}),n.length!==0)return n.length===1?n[0]:n.reduce(function(i,o){return function(){i.apply(this,arguments),o.apply(this,arguments)}})},el=function(){};process.env.NODE_ENV!=="production"&&(el=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var o=0,a="Warning: "+t.replace(/%s/g,function(){return n[o++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}});var s1=el;function tl(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function nl(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r!=null?r:null}this.setState(t.bind(this))}function rl(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}tl.__suppressDeprecationWarning=!0,nl.__suppressDeprecationWarning=!0,rl.__suppressDeprecationWarning=!0;function u1(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,i=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),n!==null||r!==null||i!==null){var o=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
45
+ */var Lo,Wu;function e1(){if(Wu)return Lo;Wu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Lo=i()?Object.assign:function(o,a){for(var s,u=r(o),l,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var d in s)t.call(s,d)&&(u[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)n.call(s,l[f])&&(u[l[f]]=s[l[f]])}}return u},Lo}var Po,Gu;function Fo(){if(Gu)return Po;Gu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Po=e,Po}var Uo,Ku;function Hu(){return Ku||(Ku=1,Uo=Function.call.bind(Object.prototype.hasOwnProperty)),Uo}var Yo,Xu;function t1(){if(Xu)return Yo;Xu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Fo(),n={},r=Hu();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,u,l){if(process.env.NODE_ENV!=="production"){for(var c in o)if(r(o,c)){var d;try{if(typeof o[c]!="function"){var f=Error((u||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[c](a,c,u,s,null,t)}catch(v){d=v}if(d&&!(d instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=l?l():"";e("Failed "+s+" type: "+d.message+(h!=null?h:""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Yo=i,Yo}var qo,Ju;function n1(){if(Ju)return qo;Ju=1;var e=Qu(),t=e1(),n=Fo(),r=Hu(),i=t1(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return qo=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d(A){var $=A&&(l&&A[l]||A[c]);if(typeof $=="function")return $}var f="<<anonymous>>",h={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:w(),arrayOf:T,element:b(),elementType:y(),instanceOf:C,node:D(),objectOf:O,oneOf:I,oneOfType:E,shape:m,exact:N};function v(A,$){return A===$?A!==0||1/A===1/$:A!==A&&$!==$}function p(A,$){this.message=A,this.data=$&&typeof $=="object"?$:{},this.stack=""}p.prototype=Error.prototype;function g(A){if(process.env.NODE_ENV!=="production")var $={},G=0;function B(X,K,J,Z,ne,te,ke){if(Z=Z||f,te=te||J,ke!==n){if(u){var Y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Y.name="Invariant Violation",Y}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ke=Z+":"+J;!$[Ke]&&G<3&&(o("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+Z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),$[Ke]=!0,G++)}}return K[J]==null?X?K[J]===null?new p("The "+ne+" `"+te+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new p("The "+ne+" `"+te+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:A(K,J,Z,ne,te)}var U=B.bind(null,!1);return U.isRequired=B.bind(null,!0),U}function x(A){function $(G,B,U,X,K,J){var Z=G[B],ne=L(Z);if(ne!==A){var te=V(Z);return new p("Invalid "+X+" `"+K+"` of type "+("`"+te+"` supplied to `"+U+"`, expected ")+("`"+A+"`."),{expectedType:A})}return null}return g($)}function w(){return g(a)}function T(A){function $(G,B,U,X,K){if(typeof A!="function")return new p("Property `"+K+"` of component `"+U+"` has invalid PropType notation inside arrayOf.");var J=G[B];if(!Array.isArray(J)){var Z=L(J);return new p("Invalid "+X+" `"+K+"` of type "+("`"+Z+"` supplied to `"+U+"`, expected an array."))}for(var ne=0;ne<J.length;ne++){var te=A(J,ne,U,X,K+"["+ne+"]",n);if(te instanceof Error)return te}return null}return g($)}function b(){function A($,G,B,U,X){var K=$[G];if(!s(K)){var J=L(K);return new p("Invalid "+U+" `"+X+"` of type "+("`"+J+"` supplied to `"+B+"`, expected a single ReactElement."))}return null}return g(A)}function y(){function A($,G,B,U,X){var K=$[G];if(!e.isValidElementType(K)){var J=L(K);return new p("Invalid "+U+" `"+X+"` of type "+("`"+J+"` supplied to `"+B+"`, expected a single ReactElement type."))}return null}return g(A)}function C(A){function $(G,B,U,X,K){if(!(G[B]instanceof A)){var J=A.name||f,Z=ee(G[B]);return new p("Invalid "+X+" `"+K+"` of type "+("`"+Z+"` supplied to `"+U+"`, expected ")+("instance of `"+J+"`."))}return null}return g($)}function I(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function $(G,B,U,X,K){for(var J=G[B],Z=0;Z<A.length;Z++)if(v(J,A[Z]))return null;var ne=JSON.stringify(A,function(ke,Y){var Ke=V(Y);return Ke==="symbol"?String(Y):Y});return new p("Invalid "+X+" `"+K+"` of value `"+String(J)+"` "+("supplied to `"+U+"`, expected one of "+ne+"."))}return g($)}function O(A){function $(G,B,U,X,K){if(typeof A!="function")return new p("Property `"+K+"` of component `"+U+"` has invalid PropType notation inside objectOf.");var J=G[B],Z=L(J);if(Z!=="object")return new p("Invalid "+X+" `"+K+"` of type "+("`"+Z+"` supplied to `"+U+"`, expected an object."));for(var ne in J)if(r(J,ne)){var te=A(J,ne,U,X,K+"."+ne,n);if(te instanceof Error)return te}return null}return g($)}function E(A){if(!Array.isArray(A))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var $=0;$<A.length;$++){var G=A[$];if(typeof G!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(G)+" at index "+$+"."),a}function B(U,X,K,J,Z){for(var ne=[],te=0;te<A.length;te++){var ke=A[te],Y=ke(U,X,K,J,Z,n);if(Y==null)return null;Y.data&&r(Y.data,"expectedType")&&ne.push(Y.data.expectedType)}var Ke=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new p("Invalid "+J+" `"+Z+"` supplied to "+("`"+K+"`"+Ke+"."))}return g(B)}function D(){function A($,G,B,U,X){return k($[G])?null:new p("Invalid "+U+" `"+X+"` supplied to "+("`"+B+"`, expected a ReactNode."))}return g(A)}function z(A,$,G,B,U){return new p((A||"React class")+": "+$+" type `"+G+"."+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+U+"`.")}function m(A){function $(G,B,U,X,K){var J=G[B],Z=L(J);if(Z!=="object")return new p("Invalid "+X+" `"+K+"` of type `"+Z+"` "+("supplied to `"+U+"`, expected `object`."));for(var ne in A){var te=A[ne];if(typeof te!="function")return z(U,X,K,ne,V(te));var ke=te(J,ne,U,X,K+"."+ne,n);if(ke)return ke}return null}return g($)}function N(A){function $(G,B,U,X,K){var J=G[B],Z=L(J);if(Z!=="object")return new p("Invalid "+X+" `"+K+"` of type `"+Z+"` "+("supplied to `"+U+"`, expected `object`."));var ne=t({},G[B],A);for(var te in ne){var ke=A[te];if(r(A,te)&&typeof ke!="function")return z(U,X,K,te,V(ke));if(!ke)return new p("Invalid "+X+" `"+K+"` key `"+te+"` supplied to `"+U+"`.\nBad object: "+JSON.stringify(G[B],null," ")+`
46
+ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var Y=ke(J,te,U,X,K+"."+te,n);if(Y)return Y}return null}return g($)}function k(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(k);if(A===null||s(A))return!0;var $=d(A);if($){var G=$.call(A),B;if($!==A.entries){for(;!(B=G.next()).done;)if(!k(B.value))return!1}else for(;!(B=G.next()).done;){var U=B.value;if(U&&!k(U[1]))return!1}}else return!1;return!0;default:return!1}}function R(A,$){return A==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function L(A){var $=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":R($,A)?"symbol":$}function V(A){if(typeof A>"u"||A===null)return""+A;var $=L(A);if($==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return $}function q(A){var $=V(A);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function ee(A){return!A.constructor||!A.constructor.name?f:A.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},qo}var Vo,Zu;function r1(){if(Zu)return Vo;Zu=1;var e=Fo();function t(){}function n(){}return n.resetWarningCache=t,Vo=function(){function r(a,s,u,l,c,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Vo}if(process.env.NODE_ENV!=="production"){var i1=Qu(),o1=!0;le.exports=n1()(i1.isElement,o1)}else le.exports=r1()();var Zr={exports:{}},a1=function(){for(var t=arguments.length,n=[],r=0;r<t;r++)n[r]=arguments[r];if(n=n.filter(function(i){return i!=null}),n.length!==0)return n.length===1?n[0]:n.reduce(function(i,o){return function(){i.apply(this,arguments),o.apply(this,arguments)}})},el=function(){};process.env.NODE_ENV!=="production"&&(el=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var o=0,a="Warning: "+t.replace(/%s/g,function(){return n[o++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}});var s1=el;function tl(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function nl(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r!=null?r:null}this.setState(t.bind(this))}function rl(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}tl.__suppressDeprecationWarning=!0,nl.__suppressDeprecationWarning=!0,rl.__suppressDeprecationWarning=!0;function u1(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,i=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),n!==null||r!==null||i!==null){var o=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
47
47
 
48
48
  `+o+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?`
49
49
  `+n:"")+(r!==null?`
@@ -51,7 +51,7 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var Y=ze(J,te,U,X,K+"."+
51
51
  `+i:"")+`
52
52
 
53
53
  The above lifecycles should be removed. Learn more about this warning here:
54
- https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=tl,t.componentWillReceiveProps=nl),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=rl;var s=t.componentDidUpdate;t.componentDidUpdate=function(l,c,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;s.call(this,l,c,f)}}return e}const l1=$t(Object.freeze(Object.defineProperty({__proto__:null,polyfill:u1},Symbol.toStringTag,{value:"Module"})));var ei={};ei.__esModule=!0,ei.getChildMapping=f1,ei.mergeChildMappings=d1;var c1=ct.default;function f1(e){if(!e)return e;var t={};return c1.Children.map(e,function(n){return n}).forEach(function(n){t[n.key]=n}),t}function d1(e,t){e=e||{},t=t||{};function n(c){return t.hasOwnProperty(c)?t[c]:e[c]}var r={},i=[];for(var o in e)t.hasOwnProperty(o)?i.length&&(r[o]=i,i=[]):i.push(o);var a=void 0,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var l=r[u][a];s[r[u][a]]=n(l)}s[u]=n(u)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}(function(e,t){t.__esModule=!0;var n=Object.assign||function(b){for(var y=1;y<arguments.length;y++){var C=arguments[y];for(var I in C)Object.prototype.hasOwnProperty.call(C,I)&&(b[I]=C[I])}return b},r=a1,i=h(r),o=ct.default,a=h(o),s=le.exports,u=h(s),l=s1,c=h(l),d=l1,f=ei;function h(b){return b&&b.__esModule?b:{default:b}}function v(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function p(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function g(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var x={component:u.default.any,childFactory:u.default.func,children:u.default.node},w={component:"span",childFactory:function(y){return y}},T=function(b){g(y,b);function y(C,I){v(this,y);var O=p(this,b.call(this,C,I));return O.performAppear=function(E,D){O.currentlyTransitioningKeys[E]=!0,D.componentWillAppear?D.componentWillAppear(O._handleDoneAppearing.bind(O,E,D)):O._handleDoneAppearing(E,D)},O._handleDoneAppearing=function(E,D){D&&D.componentDidAppear&&D.componentDidAppear(),delete O.currentlyTransitioningKeys[E];var k=(0,f.getChildMapping)(O.props.children);(!k||!k.hasOwnProperty(E))&&O.performLeave(E,D)},O.performEnter=function(E,D){O.currentlyTransitioningKeys[E]=!0,D.componentWillEnter?D.componentWillEnter(O._handleDoneEntering.bind(O,E,D)):O._handleDoneEntering(E,D)},O._handleDoneEntering=function(E,D){D&&D.componentDidEnter&&D.componentDidEnter(),delete O.currentlyTransitioningKeys[E];var k=(0,f.getChildMapping)(O.props.children);(!k||!k.hasOwnProperty(E))&&O.performLeave(E,D)},O.performLeave=function(E,D){O.currentlyTransitioningKeys[E]=!0,D&&D.componentWillLeave?D.componentWillLeave(O._handleDoneLeaving.bind(O,E,D)):O._handleDoneLeaving(E,D)},O._handleDoneLeaving=function(E,D){D&&D.componentDidLeave&&D.componentDidLeave(),delete O.currentlyTransitioningKeys[E];var k=(0,f.getChildMapping)(O.props.children);k&&k.hasOwnProperty(E)?O.keysToEnter.push(E):O.setState(function(m){var N=n({},m.children);return delete N[E],{children:N}})},O.childRefs=Object.create(null),O.currentlyTransitioningKeys={},O.keysToEnter=[],O.keysToLeave=[],O.state={children:(0,f.getChildMapping)(C.children)},O}return y.prototype.componentDidMount=function(){var I=this.state.children;for(var O in I)I[O]&&this.performAppear(O,this.childRefs[O])},y.getDerivedStateFromProps=function(I,O){var E=(0,f.getChildMapping)(I.children),D=O.children;return{children:(0,f.mergeChildMappings)(D,E)}},y.prototype.componentDidUpdate=function(I,O){var E=this,D=(0,f.getChildMapping)(this.props.children),k=O.children;for(var m in D){var N=k&&k.hasOwnProperty(m);D[m]&&!N&&!this.currentlyTransitioningKeys[m]&&this.keysToEnter.push(m)}for(var z in k){var R=D&&D.hasOwnProperty(z);k[z]&&!R&&!this.currentlyTransitioningKeys[z]&&this.keysToLeave.push(z)}var L=this.keysToEnter;this.keysToEnter=[],L.forEach(function(q){return E.performEnter(q,E.childRefs[q])});var V=this.keysToLeave;this.keysToLeave=[],V.forEach(function(q){return E.performLeave(q,E.childRefs[q])})},y.prototype.render=function(){var I=this,O=[],E=function(N){var z=I.state.children[N];if(z){var R=typeof z.ref!="string",L=I.props.childFactory(z),V=function(ee){I.childRefs[N]=ee};process.env.NODE_ENV!=="production"&&(0,c.default)(R,"string refs are not supported on children of TransitionGroup and will be ignored. Please use a callback ref instead: https://facebook.github.io/react/docs/refs-and-the-dom.html#the-ref-callback-attribute"),L===z&&R&&(V=(0,i.default)(z.ref,V)),O.push(a.default.cloneElement(L,{key:N,ref:V}))}};for(var D in this.state.children)E(D);var k=n({},this.props);return delete k.transitionLeave,delete k.transitionName,delete k.transitionAppear,delete k.transitionEnter,delete k.childFactory,delete k.transitionLeaveTimeout,delete k.transitionEnterTimeout,delete k.transitionAppearTimeout,delete k.component,a.default.createElement(this.props.component,k,O)},y}(a.default.Component);T.displayName="TransitionGroup",T.propTypes=process.env.NODE_ENV!=="production"?x:{},T.defaultProps=w,t.default=(0,d.polyfill)(T),e.exports=t.default})(Zr,Zr.exports);var Bo={exports:{}},Qo={exports:{}},Se={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Se);var ti={exports:{}},il;function h1(){return il||(il=1,function(e,t){t.__esModule=!0,t.default=n;function n(r,i){return r.classList?!!i&&r.classList.contains(i):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+i+" ")!==-1}e.exports=t.default}(ti,ti.exports)),ti.exports}(function(e,t){var n=Se.exports;t.__esModule=!0,t.default=i;var r=n(h1());function i(o,a){o.classList?o.classList.add(a):(0,r.default)(o,a)||(typeof o.className=="string"?o.className=o.className+" "+a:o.setAttribute("class",(o.className&&o.className.baseVal||"")+" "+a))}e.exports=t.default})(Qo,Qo.exports);function ol(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var p1=function(t,n){t.classList?t.classList.remove(n):typeof t.className=="string"?t.className=ol(t.className,n):t.setAttribute("class",ol(t.className&&t.className.baseVal||"",n))},Wo={exports:{}},ni={exports:{}},al;function sl(){return al||(al=1,function(e,t){t.__esModule=!0,t.default=void 0;var n=!!(typeof window<"u"&&window.document&&window.document.createElement);t.default=n,e.exports=t.default}(ni,ni.exports)),ni.exports}(function(e,t){var n=Se.exports;t.__esModule=!0,t.default=void 0;var r=n(sl()),i=["","webkit","moz","o","ms"],o="clearTimeout",a=c,s,u=function(h,v){return h+(h?v[0].toUpperCase()+v.substr(1):v)+"AnimationFrame"};r.default&&i.some(function(f){var h=u(f,"request");if(h in window)return o=u(f,"cancel"),a=function(p){return window[h](p)}});var l=new Date().getTime();function c(f){var h=new Date().getTime(),v=Math.max(0,16-(h-l)),p=setTimeout(f,v);return l=h,p}s=function(h){return a(h)},s.cancel=function(f){window[o]&&typeof window[o]=="function"&&window[o](f)};var d=s;t.default=d,e.exports=t.default})(Wo,Wo.exports);var ae={},g1=Se.exports;ae.__esModule=!0,ae.default=ae.animationEnd=ae.animationDelay=ae.animationTiming=ae.animationDuration=ae.animationName=ae.transitionEnd=ae.transitionDuration=ae.transitionDelay=ae.transitionTiming=ae.transitionProperty=ae.transform=void 0;var m1=g1(sl()),ri="transform";ae.transform=ri;var xt,Go,ul;ae.animationEnd=ul,ae.transitionEnd=Go;var Ko,Ho,Xo,Jo;ae.transitionDelay=Jo,ae.transitionTiming=Xo,ae.transitionDuration=Ho,ae.transitionProperty=Ko;var ll,cl,fl,dl;if(ae.animationDelay=dl,ae.animationTiming=fl,ae.animationDuration=cl,ae.animationName=ll,m1.default){var Zo=y1();xt=Zo.prefix,ae.transitionEnd=Go=Zo.transitionEnd,ae.animationEnd=ul=Zo.animationEnd,ae.transform=ri=xt+"-"+ri,ae.transitionProperty=Ko=xt+"-transition-property",ae.transitionDuration=Ho=xt+"-transition-duration",ae.transitionDelay=Jo=xt+"-transition-delay",ae.transitionTiming=Xo=xt+"-transition-timing-function",ae.animationName=ll=xt+"-animation-name",ae.animationDuration=cl=xt+"-animation-duration",ae.animationTiming=fl=xt+"-animation-delay",ae.animationDelay=dl=xt+"-animation-timing-function"}var v1={transform:ri,end:Go,property:Ko,timing:Xo,delay:Jo,duration:Ho};ae.default=v1;function y1(){for(var e=document.createElement("div").style,t={O:function(l){return"o"+l.toLowerCase()},Moz:function(l){return l.toLowerCase()},Webkit:function(l){return"webkit"+l},ms:function(l){return"MS"+l}},n=Object.keys(t),r,i,o="",a=0;a<n.length;a++){var s=n[a];if(s+"TransitionProperty"in e){o="-"+s.toLowerCase(),r=t[s]("TransitionEnd"),i=t[s]("AnimationEnd");break}}return!r&&"transitionProperty"in e&&(r="transitionend"),!i&&"animationName"in e&&(i="animationend"),e=null,{animationEnd:i,transitionEnd:r,prefix:o}}var dn={};dn.__esModule=!0,dn.nameShape=void 0,dn.transitionTimeout=x1;var _1=ct.default;hl(_1);var b1=le.exports,it=hl(b1);function hl(e){return e&&e.__esModule?e:{default:e}}function x1(e){var t="transition"+e+"Timeout",n="transition"+e;return function(r){if(r[n]){if(r[t]==null)return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if(typeof r[t]!="number")return new Error(t+" must be a number (in milliseconds)")}return null}}dn.nameShape=it.default.oneOfType([it.default.string,it.default.shape({enter:it.default.string,leave:it.default.string,active:it.default.string}),it.default.shape({enter:it.default.string,enterActive:it.default.string,leave:it.default.string,leaveActive:it.default.string,appear:it.default.string,appearActive:it.default.string})]),function(e,t){t.__esModule=!0;var n=Object.assign||function(O){for(var E=1;E<arguments.length;E++){var D=arguments[E];for(var k in D)Object.prototype.hasOwnProperty.call(D,k)&&(O[k]=D[k])}return O},r=Qo.exports,i=g(r),o=p1,a=g(o),s=Wo.exports,u=g(s),l=ae,c=ct.default,d=g(c),f=le.exports,h=g(f),v=rd.default,p=dn;function g(O){return O&&O.__esModule?O:{default:O}}function x(O,E){if(!(O instanceof E))throw new TypeError("Cannot call a class as a function")}function w(O,E){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:O}function T(O,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);O.prototype=Object.create(E&&E.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(O,E):O.__proto__=E)}var b=[];l.transitionEnd&&b.push(l.transitionEnd),l.animationEnd&&b.push(l.animationEnd);function y(O,E){return b.length?b.forEach(function(D){return O.addEventListener(D,E,!1)}):setTimeout(E,0),function(){!b.length||b.forEach(function(D){return O.removeEventListener(D,E,!1)})}}var C={children:h.default.node,name:p.nameShape.isRequired,appear:h.default.bool,enter:h.default.bool,leave:h.default.bool,appearTimeout:h.default.number,enterTimeout:h.default.number,leaveTimeout:h.default.number},I=function(O){T(E,O);function E(D,k){x(this,E);var m=w(this,O.call(this,D,k));return m.componentWillAppear=function(N){m.props.appear?m.transition("appear",N,m.props.appearTimeout):N()},m.componentWillEnter=function(N){m.props.enter?m.transition("enter",N,m.props.enterTimeout):N()},m.componentWillLeave=function(N){m.props.leave?m.transition("leave",N,m.props.leaveTimeout):N()},m.classNameAndNodeQueue=[],m.transitionTimeouts=[],m}return E.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(k){clearTimeout(k)}),this.classNameAndNodeQueue.length=0},E.prototype.transition=function(k,m,N){var z=(0,v.findDOMNode)(this);if(!z){m&&m();return}var R=this.props.name[k]||this.props.name+"-"+k,L=this.props.name[k+"Active"]||R+"-active",V=null,q=void 0;(0,i.default)(z,R),this.queueClassAndNode(L,z);var ee=function($){$&&$.target!==z||(clearTimeout(V),q&&q(),(0,a.default)(z,R),(0,a.default)(z,L),q&&q(),m&&m())};N?(V=setTimeout(ee,N),this.transitionTimeouts.push(V)):l.transitionEnd&&(q=y(z,ee))},E.prototype.queueClassAndNode=function(k,m){var N=this;this.classNameAndNodeQueue.push({className:k,node:m}),this.rafHandle||(this.rafHandle=(0,u.default)(function(){return N.flushClassNameAndNodeQueue()}))},E.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(k){k.node.scrollTop,(0,i.default)(k.node,k.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},E.prototype.render=function(){var k=n({},this.props);return delete k.name,delete k.appear,delete k.enter,delete k.leave,delete k.appearTimeout,delete k.enterTimeout,delete k.leaveTimeout,delete k.children,d.default.cloneElement(d.default.Children.only(this.props.children),k)},E}(d.default.Component);I.displayName="CSSTransitionGroupChild",I.propTypes=process.env.NODE_ENV!=="production"?C:{},t.default=I,e.exports=t.default}(Bo,Bo.exports),function(e,t){t.__esModule=!0;var n=Object.assign||function(T){for(var b=1;b<arguments.length;b++){var y=arguments[b];for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(T[C]=y[C])}return T},r=ct.default,i=f(r),o=le.exports,a=f(o),s=Zr.exports,u=f(s),l=Bo.exports,c=f(l),d=dn;function f(T){return T&&T.__esModule?T:{default:T}}function h(T,b){if(!(T instanceof b))throw new TypeError("Cannot call a class as a function")}function v(T,b){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:T}function p(T,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);T.prototype=Object.create(b&&b.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(T,b):T.__proto__=b)}var g={transitionName:d.nameShape.isRequired,transitionAppear:a.default.bool,transitionEnter:a.default.bool,transitionLeave:a.default.bool,transitionAppearTimeout:(0,d.transitionTimeout)("Appear"),transitionEnterTimeout:(0,d.transitionTimeout)("Enter"),transitionLeaveTimeout:(0,d.transitionTimeout)("Leave")},x={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},w=function(T){p(b,T);function b(){var y,C,I;h(this,b);for(var O=arguments.length,E=Array(O),D=0;D<O;D++)E[D]=arguments[D];return I=(y=(C=v(this,T.call.apply(T,[this].concat(E))),C),C._wrapChild=function(k){return i.default.createElement(c.default,{name:C.props.transitionName,appear:C.props.transitionAppear,enter:C.props.transitionEnter,leave:C.props.transitionLeave,appearTimeout:C.props.transitionAppearTimeout,enterTimeout:C.props.transitionEnterTimeout,leaveTimeout:C.props.transitionLeaveTimeout},k)},y),v(C,I)}return b.prototype.render=function(){return i.default.createElement(u.default,n({},this.props,{childFactory:this._wrapChild}))},b}(i.default.Component);w.displayName="CSSTransitionGroup",w.propTypes=process.env.NODE_ENV!=="production"?g:{},w.defaultProps=x,t.default=w,e.exports=t.default}($o,$o.exports);var M1=$o.exports,w1=pl(M1),T1=Zr.exports,N1=pl(T1);function pl(e){return e&&e.__esModule?e:{default:e}}var E1={TransitionGroup:N1.default,CSSTransitionGroup:w1.default},D1=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jo,"__esModule",{value:!0});var gl=D1(ct.default),O1=E1,C1=function(e){return e.enableLegacyTransitions?gl.default.createElement(O1.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):gl.default.createElement("g",{className:e.className,transform:e.transform},e.children)};jo.default=C1;var ea={},ta={},ii=we&&we.__assign||function(){return ii=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ii.apply(this,arguments)},S1=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ta,"__esModule",{value:!0});var Kt=S1(ct.default),A1=15,ml={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},I1=function(e){var t=e.nodeDatum,n=e.toggleNode,r=e.onNodeClick,i=e.onNodeMouseOver,o=e.onNodeMouseOut;return Kt.default.createElement(Kt.default.Fragment,null,Kt.default.createElement("circle",{r:A1,onClick:function(a){n(),r(a)},onMouseOver:i,onMouseOut:o}),Kt.default.createElement("g",{className:"rd3t-label"},Kt.default.createElement("text",ii({className:"rd3t-label__title"},ml.title),t.name),Kt.default.createElement("text",{className:"rd3t-label__attributes"},t.attributes&&Object.entries(t.attributes).map(function(a,s){var u=a[0],l=a[1];return Kt.default.createElement("tspan",ii({key:u+"-"+s},ml.attribute),u,": ",typeof l=="boolean"?l.toString():l)}))))};ta.default=I1;var z1=we&&we.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vl=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ea,"__esModule",{value:!0});var yl=vl(ct.default),_l=lo,k1=vl(ta),j1=function(e){z1(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.nodeRef=null,n.state={transform:n.setTransform(n.props.position,n.props.parent,n.props.orientation,!0),initialStyle:{opacity:0},wasClicked:!1},n.shouldNodeTransform=function(r,i){return i.subscriptions!==r.subscriptions||i.position.x!==r.position.x||i.position.y!==r.position.y||i.orientation!==r.orientation},n.renderNodeElement=function(){var r=n.props,i=r.data,o=r.hierarchyPointNode,a=r.renderCustomNodeElement,s=typeof a=="function"?a:k1.default,u={hierarchyPointNode:o,nodeDatum:i,toggleNode:n.handleNodeToggle,onNodeClick:n.handleOnClick,onNodeMouseOver:n.handleOnMouseOver,onNodeMouseOut:n.handleOnMouseOut};return s(u)},n.handleNodeToggle=function(){n.setState({wasClicked:!0}),n.props.onNodeToggle(n.props.data.__rd3t.id)},n.handleOnClick=function(r){n.setState({wasClicked:!0}),n.props.onNodeClick(n.props.hierarchyPointNode,r)},n.handleOnMouseOver=function(r){n.props.onNodeMouseOver(n.props.hierarchyPointNode,r)},n.handleOnMouseOut=function(r){n.props.onNodeMouseOut(n.props.hierarchyPointNode,r)},n}return t.prototype.componentDidMount=function(){this.commitTransform()},t.prototype.componentDidUpdate=function(){this.state.wasClicked&&(this.props.centerNode(this.props.hierarchyPointNode),this.setState({wasClicked:!1})),this.commitTransform()},t.prototype.shouldComponentUpdate=function(n){return this.shouldNodeTransform(this.props,n)},t.prototype.setTransform=function(n,r,i,o){if(o===void 0&&(o=!1),o){var a=r!=null,s=a?r.x:0,u=a?r.y:0;return i==="horizontal"?"translate("+u+","+s+")":"translate("+s+","+u+")"}return i==="horizontal"?"translate("+n.y+","+n.x+")":"translate("+n.x+","+n.y+")"},t.prototype.applyTransform=function(n,r,i,o){i===void 0&&(i=1),o===void 0&&(o=function(){}),this.props.enableLegacyTransitions?_l.select(this.nodeRef).transition().duration(r).attr("transform",n).style("opacity",i).on("end",o):(_l.select(this.nodeRef).attr("transform",n).style("opacity",i),o())},t.prototype.commitTransform=function(){var n=this.props,r=n.orientation,i=n.transitionDuration,o=n.position,a=n.parent,s=this.setTransform(o,a,r);this.applyTransform(s,i)},t.prototype.componentWillLeave=function(n){var r=this.props,i=r.orientation,o=r.transitionDuration,a=r.position,s=r.parent,u=this.setTransform(a,s,i,!0);this.applyTransform(u,o,0,n)},t.prototype.render=function(){var n=this,r=this.props,i=r.data,o=r.nodeClassName;return yl.default.createElement("g",{id:i.__rd3t.id,ref:function(a){n.nodeRef=a},style:this.state.initialStyle,className:[i.children?"rd3t-node":"rd3t-leaf-node",o].join(" ").trim(),transform:this.state.transform},this.renderNodeElement())},t}(yl.default.Component);ea.default=j1;var na={},ra=Math.PI,ia=2*ra,Ht=1e-6,$1=ia-Ht;function oa(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function hn(){return new oa}oa.prototype=hn.prototype={constructor:oa,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,u=r-t,l=o-e,c=a-t,d=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>Ht)if(!(Math.abs(c*s-u*l)>Ht)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-o,h=r-a,v=s*s+u*u,p=f*f+h*h,g=Math.sqrt(v),x=Math.sqrt(d),w=i*Math.tan((ra-Math.acos((v+d-p)/(2*g*x)))/2),T=w/x,b=w/g;Math.abs(T-1)>Ht&&(this._+="L"+(e+T*l)+","+(t+T*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>l*h)+","+(this._x1=e+b*s)+","+(this._y1=t+b*u)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),u=e+a,l=t+s,c=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+u+","+l:(Math.abs(this._x1-u)>Ht||Math.abs(this._y1-l)>Ht)&&(this._+="L"+u+","+l),n&&(d<0&&(d=d%ia+ia),d>$1?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):d>Ht&&(this._+="A"+n+","+n+",0,"+ +(d>=ra)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function ie(e){return function(){return e}}var bl=Math.abs,Be=Math.atan2,Xt=Math.cos,R1=Math.max,aa=Math.min,Mt=Math.sin,pn=Math.sqrt,Qe=1e-12,Ft=Math.PI,oi=Ft/2,Ut=2*Ft;function L1(e){return e>1?0:e<-1?Ft:Math.acos(e)}function xl(e){return e>=1?oi:e<=-1?-oi:Math.asin(e)}function P1(e){return e.innerRadius}function F1(e){return e.outerRadius}function U1(e){return e.startAngle}function Y1(e){return e.endAngle}function q1(e){return e&&e.padAngle}function V1(e,t,n,r,i,o,a,s){var u=n-e,l=r-t,c=a-i,d=s-o,f=d*u-c*l;if(!(f*f<Qe))return f=(c*(t-o)-d*(e-i))/f,[e+f*u,t+f*l]}function ai(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/pn(s*s+u*u),c=l*u,d=-l*s,f=e+c,h=t+d,v=n+c,p=r+d,g=(f+v)/2,x=(h+p)/2,w=v-f,T=p-h,b=w*w+T*T,y=i-o,C=f*p-v*h,I=(T<0?-1:1)*pn(R1(0,y*y*b-C*C)),O=(C*T-w*I)/b,E=(-C*w-T*I)/b,D=(C*T+w*I)/b,k=(-C*w+T*I)/b,m=O-g,N=E-x,z=D-g,R=k-x;return m*m+N*N>z*z+R*R&&(O=D,E=k),{cx:O,cy:E,x01:-c,y01:-d,x11:O*(i/y-1),y11:E*(i/y-1)}}function B1(){var e=P1,t=F1,n=ie(0),r=null,i=U1,o=Y1,a=q1,s=null;function u(){var l,c,d=+e.apply(this,arguments),f=+t.apply(this,arguments),h=i.apply(this,arguments)-oi,v=o.apply(this,arguments)-oi,p=bl(v-h),g=v>h;if(s||(s=l=hn()),f<d&&(c=f,f=d,d=c),!(f>Qe))s.moveTo(0,0);else if(p>Ut-Qe)s.moveTo(f*Xt(h),f*Mt(h)),s.arc(0,0,f,h,v,!g),d>Qe&&(s.moveTo(d*Xt(v),d*Mt(v)),s.arc(0,0,d,v,h,g));else{var x=h,w=v,T=h,b=v,y=p,C=p,I=a.apply(this,arguments)/2,O=I>Qe&&(r?+r.apply(this,arguments):pn(d*d+f*f)),E=aa(bl(f-d)/2,+n.apply(this,arguments)),D=E,k=E,m,N;if(O>Qe){var z=xl(O/d*Mt(I)),R=xl(O/f*Mt(I));(y-=z*2)>Qe?(z*=g?1:-1,T+=z,b-=z):(y=0,T=b=(h+v)/2),(C-=R*2)>Qe?(R*=g?1:-1,x+=R,w-=R):(C=0,x=w=(h+v)/2)}var L=f*Xt(x),V=f*Mt(x),q=d*Xt(b),ee=d*Mt(b);if(E>Qe){var A=f*Xt(w),$=f*Mt(w),G=d*Xt(T),B=d*Mt(T),U;if(p<Ft&&(U=V1(L,V,G,B,A,$,q,ee))){var X=L-U[0],K=V-U[1],J=A-U[0],Z=$-U[1],ne=1/Mt(L1((X*J+K*Z)/(pn(X*X+K*K)*pn(J*J+Z*Z)))/2),te=pn(U[0]*U[0]+U[1]*U[1]);D=aa(E,(d-te)/(ne-1)),k=aa(E,(f-te)/(ne+1))}}C>Qe?k>Qe?(m=ai(G,B,L,V,f,k,g),N=ai(A,$,q,ee,f,k,g),s.moveTo(m.cx+m.x01,m.cy+m.y01),k<E?s.arc(m.cx,m.cy,k,Be(m.y01,m.x01),Be(N.y01,N.x01),!g):(s.arc(m.cx,m.cy,k,Be(m.y01,m.x01),Be(m.y11,m.x11),!g),s.arc(0,0,f,Be(m.cy+m.y11,m.cx+m.x11),Be(N.cy+N.y11,N.cx+N.x11),!g),s.arc(N.cx,N.cy,k,Be(N.y11,N.x11),Be(N.y01,N.x01),!g))):(s.moveTo(L,V),s.arc(0,0,f,x,w,!g)):s.moveTo(L,V),!(d>Qe)||!(y>Qe)?s.lineTo(q,ee):D>Qe?(m=ai(q,ee,A,$,d,-D,g),N=ai(L,V,G,B,d,-D,g),s.lineTo(m.cx+m.x01,m.cy+m.y01),D<E?s.arc(m.cx,m.cy,D,Be(m.y01,m.x01),Be(N.y01,N.x01),!g):(s.arc(m.cx,m.cy,D,Be(m.y01,m.x01),Be(m.y11,m.x11),!g),s.arc(0,0,d,Be(m.cy+m.y11,m.cx+m.x11),Be(N.cy+N.y11,N.cx+N.x11),g),s.arc(N.cx,N.cy,D,Be(N.y11,N.x11),Be(N.y01,N.x01),!g))):s.arc(0,0,d,b,T,g)}if(s.closePath(),l)return s=null,l+""||null}return u.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,c=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Ft/2;return[Xt(c)*l,Mt(c)*l]},u.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:ie(+l),u):e},u.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:ie(+l),u):t},u.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:ie(+l),u):n},u.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ie(+l),u):r},u.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ie(+l),u):i},u.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ie(+l),u):o},u.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ie(+l),u):a},u.context=function(l){return arguments.length?(s=l==null?null:l,u):s},u}function Ml(e){this._context=e}Ml.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function si(e){return new Ml(e)}function sa(e){return e[0]}function ua(e){return e[1]}function la(){var e=sa,t=ua,n=ie(!0),r=null,i=si,o=null;function a(s){var u,l=s.length,c,d=!1,f;for(r==null&&(o=i(f=hn())),u=0;u<=l;++u)!(u<l&&n(c=s[u],u,s))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(c,u,s),+t(c,u,s));if(f)return o=null,f+""||null}return a.x=function(s){return arguments.length?(e=typeof s=="function"?s:ie(+s),a):e},a.y=function(s){return arguments.length?(t=typeof s=="function"?s:ie(+s),a):t},a.defined=function(s){return arguments.length?(n=typeof s=="function"?s:ie(!!s),a):n},a.curve=function(s){return arguments.length?(i=s,r!=null&&(o=i(r)),a):i},a.context=function(s){return arguments.length?(s==null?r=o=null:o=i(r=s),a):r},a}function wl(){var e=sa,t=null,n=ie(0),r=ua,i=ie(!0),o=null,a=si,s=null;function u(c){var d,f,h,v=c.length,p,g=!1,x,w=new Array(v),T=new Array(v);for(o==null&&(s=a(x=hn())),d=0;d<=v;++d){if(!(d<v&&i(p=c[d],d,c))===g)if(g=!g)f=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=d-1;h>=f;--h)s.point(w[h],T[h]);s.lineEnd(),s.areaEnd()}g&&(w[d]=+e(p,d,c),T[d]=+n(p,d,c),s.point(t?+t(p,d,c):w[d],r?+r(p,d,c):T[d]))}if(x)return s=null,x+""||null}function l(){return la().defined(i).curve(a).context(o)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:ie(+c),t=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:ie(+c),u):e},u.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:ie(+c),u):t},u.y=function(c){return arguments.length?(n=typeof c=="function"?c:ie(+c),r=null,u):n},u.y0=function(c){return arguments.length?(n=typeof c=="function"?c:ie(+c),u):n},u.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:ie(+c),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:ie(!!c),u):i},u.curve=function(c){return arguments.length?(a=c,o!=null&&(s=a(o)),u):a},u.context=function(c){return arguments.length?(c==null?o=s=null:s=a(o=c),u):o},u}function Q1(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function W1(e){return e}function G1(){var e=W1,t=Q1,n=null,r=ie(0),i=ie(Ut),o=ie(0);function a(s){var u,l=s.length,c,d,f=0,h=new Array(l),v=new Array(l),p=+r.apply(this,arguments),g=Math.min(Ut,Math.max(-Ut,i.apply(this,arguments)-p)),x,w=Math.min(Math.abs(g)/l,o.apply(this,arguments)),T=w*(g<0?-1:1),b;for(u=0;u<l;++u)(b=v[h[u]=u]=+e(s[u],u,s))>0&&(f+=b);for(t!=null?h.sort(function(y,C){return t(v[y],v[C])}):n!=null&&h.sort(function(y,C){return n(s[y],s[C])}),u=0,d=f?(g-l*T)/f:0;u<l;++u,p=x)c=h[u],b=v[c],x=p+(b>0?b*d:0)+T,v[c]={data:s[c],index:u,value:b,startAngle:p,endAngle:x,padAngle:w};return v}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:ie(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:ie(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ie(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:ie(+s),a):o},a}var Tl=ca(si);function Nl(e){this._curve=e}Nl.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function ca(e){function t(n){return new Nl(e(n))}return t._curve=e,t}function rr(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(ca(n)):t()._curve},e}function El(){return rr(la().curve(Tl))}function Dl(){var e=wl().curve(Tl),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return rr(n())},delete e.lineX0,e.lineEndAngle=function(){return rr(r())},delete e.lineX1,e.lineInnerRadius=function(){return rr(i())},delete e.lineY0,e.lineOuterRadius=function(){return rr(o())},delete e.lineY1,e.curve=function(a){return arguments.length?t(ca(a)):t()._curve},e}function ir(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}var fa=Array.prototype.slice;function K1(e){return e.source}function H1(e){return e.target}function da(e){var t=K1,n=H1,r=sa,i=ua,o=null;function a(){var s,u=fa.call(arguments),l=t.apply(this,u),c=n.apply(this,u);if(o||(o=s=hn()),e(o,+r.apply(this,(u[0]=l,u)),+i.apply(this,u),+r.apply(this,(u[0]=c,u)),+i.apply(this,u)),s)return o=null,s+""||null}return a.source=function(s){return arguments.length?(t=s,a):t},a.target=function(s){return arguments.length?(n=s,a):n},a.x=function(s){return arguments.length?(r=typeof s=="function"?s:ie(+s),a):r},a.y=function(s){return arguments.length?(i=typeof s=="function"?s:ie(+s),a):i},a.context=function(s){return arguments.length?(o=s==null?null:s,a):o},a}function X1(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function J1(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function Z1(e,t,n,r,i){var o=ir(t,n),a=ir(t,n=(n+i)/2),s=ir(r,n),u=ir(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function em(){return da(X1)}function tm(){return da(J1)}function nm(){var e=da(Z1);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const ha={draw:function(e,t){var n=Math.sqrt(t/Ft);e.moveTo(n,0),e.arc(0,0,n,0,Ut)}},Ol={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};var Cl=Math.sqrt(1/3),rm=Cl*2;const Sl={draw:function(e,t){var n=Math.sqrt(t/rm),r=n*Cl;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}};var im=.8908130915292852,Al=Math.sin(Ft/10)/Math.sin(7*Ft/10),om=Math.sin(Ut/10)*Al,am=-Math.cos(Ut/10)*Al;const Il={draw:function(e,t){var n=Math.sqrt(t*im),r=om*n,i=am*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=Ut*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},zl={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}};var pa=Math.sqrt(3);const kl={draw:function(e,t){var n=-Math.sqrt(t/(pa*3));e.moveTo(0,n*2),e.lineTo(-pa*n,-n),e.lineTo(pa*n,-n),e.closePath()}};var ft=-.5,dt=Math.sqrt(3)/2,ga=1/Math.sqrt(12),sm=(ga/2+1)*3;const jl={draw:function(e,t){var n=Math.sqrt(t/sm),r=n/2,i=n*ga,o=r,a=n*ga+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(ft*r-dt*i,dt*r+ft*i),e.lineTo(ft*o-dt*a,dt*o+ft*a),e.lineTo(ft*s-dt*u,dt*s+ft*u),e.lineTo(ft*r+dt*i,ft*i-dt*r),e.lineTo(ft*o+dt*a,ft*a-dt*o),e.lineTo(ft*s+dt*u,ft*u-dt*s),e.closePath()}};var um=[ha,Ol,Sl,zl,Il,kl,jl];function lm(){var e=ie(ha),t=ie(64),n=null;function r(){var i;if(n||(n=i=hn()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return r.type=function(i){return arguments.length?(e=typeof i=="function"?i:ie(i),r):e},r.size=function(i){return arguments.length?(t=typeof i=="function"?i:ie(+i),r):t},r.context=function(i){return arguments.length?(n=i==null?null:i,r):n},r}function Yt(){}function ui(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function li(e){this._context=e}li.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ui(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ui(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function cm(e){return new li(e)}function $l(e){this._context=e}$l.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ui(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fm(e){return new $l(e)}function Rl(e){this._context=e}Rl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ui(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dm(e){return new Rl(e)}function Ll(e,t){this._basis=new li(e),this._beta=t}Ll.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*o),this._beta*t[s]+(1-this._beta)*(i+u*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const hm=function e(t){function n(r){return t===1?new li(r):new Ll(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function ci(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ma(e,t){this._context=e,this._k=(1-t)/6}ma.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ci(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:ci(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pm=function e(t){function n(r){return new ma(r,t)}return n.tension=function(r){return e(+r)},n}(0);function va(e,t){this._context=e,this._k=(1-t)/6}va.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ci(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const gm=function e(t){function n(r){return new va(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ya(e,t){this._context=e,this._k=(1-t)/6}ya.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ci(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const mm=function e(t){function n(r){return new ya(r,t)}return n.tension=function(r){return e(+r)},n}(0);function _a(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>Qe){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Qe){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function Pl(e,t){this._context=e,this._alpha=t}Pl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:_a(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const vm=function e(t){function n(r){return t?new Pl(r,t):new ma(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Fl(e,t){this._context=e,this._alpha=t}Fl.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_a(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ym=function e(t){function n(r){return t?new Fl(r,t):new va(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Ul(e,t){this._context=e,this._alpha=t}Ul.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_a(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const _m=function e(t){function n(r){return t?new Ul(r,t):new ya(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Yl(e){this._context=e}Yl.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function bm(e){return new Yl(e)}function ql(e){return e<0?-1:1}function Vl(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(ql(o)+ql(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Bl(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ba(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function fi(e){this._context=e}fi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ba(this,this._t0,Bl(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ba(this,Bl(this,n=Vl(this,e,t)),n);break;default:ba(this,this._t0,n=Vl(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Ql(e){this._context=new Wl(e)}(Ql.prototype=Object.create(fi.prototype)).point=function(e,t){fi.prototype.point.call(this,t,e)};function Wl(e){this._context=e}Wl.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function xm(e){return new fi(e)}function Mm(e){return new Ql(e)}function Gl(e){this._context=e}Gl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Kl(e),i=Kl(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Kl(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function wm(e){return new Gl(e)}function di(e,t){this._context=e,this._t=t}di.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Tm(e){return new di(e,.5)}function Nm(e){return new di(e,0)}function Em(e){return new di(e,1)}function gn(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function mn(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Dm(e,t){return e[t]}function Om(){var e=ie([]),t=mn,n=gn,r=Dm;function i(o){var a=e.apply(this,arguments),s,u=o.length,l=a.length,c=new Array(l),d;for(s=0;s<l;++s){for(var f=a[s],h=c[s]=new Array(u),v=0,p;v<u;++v)h[v]=p=[0,+r(o[v],f,v,o)],p.data=o[v];h.key=f}for(s=0,d=t(c);s<l;++s)c[d[s]].index=s;return n(c,d),c}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:ie(fa.call(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:ie(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?mn:typeof o=="function"?o:ie(fa.call(o)),i):t},i.offset=function(o){return arguments.length?(n=o==null?gn:o,i):n},i}function Cm(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}gn(e,t)}}function Sm(e,t){if((u=e.length)>0)for(var n,r=0,i,o,a,s,u,l=e[t[0]].length;r<l;++r)for(a=s=0,n=0;n<u;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function Am(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}gn(e,t)}}function Im(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,u=0,l=0;s<a;++s){for(var c=e[t[s]],d=c[r][1]||0,f=c[r-1][1]||0,h=(d-f)/2,v=0;v<s;++v){var p=e[t[v]],g=p[r][1]||0,x=p[r-1][1]||0;h+=g-x}u+=d,l+=h*d}i[r-1][1]+=i[r-1][0]=n,u&&(n-=l/u)}i[r-1][1]+=i[r-1][0]=n,gn(e,t)}}function Hl(e){var t=e.map(zm);return mn(e).sort(function(n,r){return t[n]-t[r]})}function zm(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function Xl(e){var t=e.map(Jl);return mn(e).sort(function(n,r){return t[n]-t[r]})}function Jl(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function km(e){return Xl(e).reverse()}function jm(e){var t=e.length,n,r,i=e.map(Jl),o=Hl(e),a=0,s=0,u=[],l=[];for(n=0;n<t;++n)r=o[n],a<s?(a+=i[r],u.push(r)):(s+=i[r],l.push(r));return l.reverse().concat(u)}function $m(e){return mn(e).reverse()}const Rm=$t(Object.freeze(Object.defineProperty({__proto__:null,arc:B1,area:wl,line:la,pie:G1,areaRadial:Dl,radialArea:Dl,lineRadial:El,radialLine:El,pointRadial:ir,linkHorizontal:em,linkVertical:tm,linkRadial:nm,symbol:lm,symbols:um,symbolCircle:ha,symbolCross:Ol,symbolDiamond:Sl,symbolSquare:zl,symbolStar:Il,symbolTriangle:kl,symbolWye:jl,curveBasisClosed:fm,curveBasisOpen:dm,curveBasis:cm,curveBundle:hm,curveCardinalClosed:gm,curveCardinalOpen:mm,curveCardinal:pm,curveCatmullRomClosed:ym,curveCatmullRomOpen:_m,curveCatmullRom:vm,curveLinearClosed:bm,curveLinear:si,curveMonotoneX:xm,curveMonotoneY:Mm,curveNatural:wm,curveStep:Tm,curveStepAfter:Em,curveStepBefore:Nm,stack:Om,stackOffsetExpand:Cm,stackOffsetDiverging:Sm,stackOffsetNone:gn,stackOffsetSilhouette:Am,stackOffsetWiggle:Im,stackOrderAppearance:Hl,stackOrderAscending:Xl,stackOrderDescending:km,stackOrderInsideOut:jm,stackOrderNone:mn,stackOrderReverse:$m},Symbol.toStringTag,{value:"Module"})));var Lm=we&&we.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xa=we&&we.__assign||function(){return xa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},xa.apply(this,arguments)},Pm=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(na,"__esModule",{value:!0});var Zl=Pm(ct.default),ec=Rm,tc=lo,Fm=function(e){Lm(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.linkRef=null,n.state={initialStyle:{opacity:0}},n.handleOnClick=function(r){n.props.onClick(n.props.linkData.source,n.props.linkData.target,r)},n.handleOnMouseOver=function(r){n.props.onMouseOver(n.props.linkData.source,n.props.linkData.target,r)},n.handleOnMouseOut=function(r){n.props.onMouseOut(n.props.linkData.source,n.props.linkData.target,r)},n}return t.prototype.componentDidMount=function(){this.applyOpacity(1,this.props.transitionDuration)},t.prototype.componentWillLeave=function(n){this.applyOpacity(0,this.props.transitionDuration,n)},t.prototype.applyOpacity=function(n,r,i){i===void 0&&(i=function(){}),this.props.enableLegacyTransitions?tc.select(this.linkRef).transition().duration(r).style("opacity",n).on("end",i):(tc.select(this.linkRef).style("opacity",n),i())},t.prototype.drawStepPath=function(n,r){var i=n.source,o=n.target,a=o.y-i.y;return r==="horizontal"?"M"+i.y+","+i.x+" H"+(i.y+a/2)+" V"+o.x+" H"+o.y:"M"+i.x+","+i.y+" V"+(i.y+a/2)+" H"+o.x+" V"+o.y},t.prototype.drawDiagonalPath=function(n,r){var i=n.source,o=n.target;return r==="horizontal"?ec.linkHorizontal()({source:[i.y,i.x],target:[o.y,o.x]}):ec.linkVertical()({source:[i.x,i.y],target:[o.x,o.y]})},t.prototype.drawStraightPath=function(n,r){var i=n.source,o=n.target;return r==="horizontal"?"M"+i.y+","+i.x+"L"+o.y+","+o.x:"M"+i.x+","+i.y+"L"+o.x+","+o.y},t.prototype.drawElbowPath=function(n,r){return r==="horizontal"?"M"+n.source.y+","+n.source.x+"V"+n.target.x+"H"+n.target.y:"M"+n.source.x+","+n.source.y+"V"+n.target.y+"H"+n.target.x},t.prototype.drawPath=function(){var n=this.props,r=n.linkData,i=n.orientation,o=n.pathFunc;return typeof o=="function"?o(r,i):o==="elbow"?this.drawElbowPath(r,i):o==="straight"?this.drawStraightPath(r,i):o==="step"?this.drawStepPath(r,i):this.drawDiagonalPath(r,i)},t.prototype.getClassNames=function(){var n=this.props,r=n.linkData,i=n.orientation,o=n.pathClassFunc,a=["rd3t-link"];return typeof o=="function"&&a.push(o(r,i)),a.join(" ").trim()},t.prototype.render=function(){var n=this,r=this.props.linkData;return Zl.default.createElement("path",{ref:function(i){n.linkRef=i},style:xa({},this.state.initialStyle),className:this.getClassNames(),d:this.drawPath(),onClick:this.handleOnClick,onMouseOver:this.handleOnMouseOver,onMouseOut:this.handleOnMouseOut,"data-source-id":r.source.id,"data-target-id":r.target.id})},t}(Zl.default.PureComponent);na.default=Fm;var Ma={};Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.default=`
54
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=tl,t.componentWillReceiveProps=nl),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=rl;var s=t.componentDidUpdate;t.componentDidUpdate=function(l,c,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;s.call(this,l,c,f)}}return e}const l1=$t(Object.freeze(Object.defineProperty({__proto__:null,polyfill:u1},Symbol.toStringTag,{value:"Module"})));var ei={};ei.__esModule=!0,ei.getChildMapping=f1,ei.mergeChildMappings=d1;var c1=ct.default;function f1(e){if(!e)return e;var t={};return c1.Children.map(e,function(n){return n}).forEach(function(n){t[n.key]=n}),t}function d1(e,t){e=e||{},t=t||{};function n(c){return t.hasOwnProperty(c)?t[c]:e[c]}var r={},i=[];for(var o in e)t.hasOwnProperty(o)?i.length&&(r[o]=i,i=[]):i.push(o);var a=void 0,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var l=r[u][a];s[r[u][a]]=n(l)}s[u]=n(u)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}(function(e,t){t.__esModule=!0;var n=Object.assign||function(b){for(var y=1;y<arguments.length;y++){var C=arguments[y];for(var I in C)Object.prototype.hasOwnProperty.call(C,I)&&(b[I]=C[I])}return b},r=a1,i=h(r),o=ct.default,a=h(o),s=le.exports,u=h(s),l=s1,c=h(l),d=l1,f=ei;function h(b){return b&&b.__esModule?b:{default:b}}function v(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function p(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function g(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var x={component:u.default.any,childFactory:u.default.func,children:u.default.node},w={component:"span",childFactory:function(y){return y}},T=function(b){g(y,b);function y(C,I){v(this,y);var O=p(this,b.call(this,C,I));return O.performAppear=function(E,D){O.currentlyTransitioningKeys[E]=!0,D.componentWillAppear?D.componentWillAppear(O._handleDoneAppearing.bind(O,E,D)):O._handleDoneAppearing(E,D)},O._handleDoneAppearing=function(E,D){D&&D.componentDidAppear&&D.componentDidAppear(),delete O.currentlyTransitioningKeys[E];var z=(0,f.getChildMapping)(O.props.children);(!z||!z.hasOwnProperty(E))&&O.performLeave(E,D)},O.performEnter=function(E,D){O.currentlyTransitioningKeys[E]=!0,D.componentWillEnter?D.componentWillEnter(O._handleDoneEntering.bind(O,E,D)):O._handleDoneEntering(E,D)},O._handleDoneEntering=function(E,D){D&&D.componentDidEnter&&D.componentDidEnter(),delete O.currentlyTransitioningKeys[E];var z=(0,f.getChildMapping)(O.props.children);(!z||!z.hasOwnProperty(E))&&O.performLeave(E,D)},O.performLeave=function(E,D){O.currentlyTransitioningKeys[E]=!0,D&&D.componentWillLeave?D.componentWillLeave(O._handleDoneLeaving.bind(O,E,D)):O._handleDoneLeaving(E,D)},O._handleDoneLeaving=function(E,D){D&&D.componentDidLeave&&D.componentDidLeave(),delete O.currentlyTransitioningKeys[E];var z=(0,f.getChildMapping)(O.props.children);z&&z.hasOwnProperty(E)?O.keysToEnter.push(E):O.setState(function(m){var N=n({},m.children);return delete N[E],{children:N}})},O.childRefs=Object.create(null),O.currentlyTransitioningKeys={},O.keysToEnter=[],O.keysToLeave=[],O.state={children:(0,f.getChildMapping)(C.children)},O}return y.prototype.componentDidMount=function(){var I=this.state.children;for(var O in I)I[O]&&this.performAppear(O,this.childRefs[O])},y.getDerivedStateFromProps=function(I,O){var E=(0,f.getChildMapping)(I.children),D=O.children;return{children:(0,f.mergeChildMappings)(D,E)}},y.prototype.componentDidUpdate=function(I,O){var E=this,D=(0,f.getChildMapping)(this.props.children),z=O.children;for(var m in D){var N=z&&z.hasOwnProperty(m);D[m]&&!N&&!this.currentlyTransitioningKeys[m]&&this.keysToEnter.push(m)}for(var k in z){var R=D&&D.hasOwnProperty(k);z[k]&&!R&&!this.currentlyTransitioningKeys[k]&&this.keysToLeave.push(k)}var L=this.keysToEnter;this.keysToEnter=[],L.forEach(function(q){return E.performEnter(q,E.childRefs[q])});var V=this.keysToLeave;this.keysToLeave=[],V.forEach(function(q){return E.performLeave(q,E.childRefs[q])})},y.prototype.render=function(){var I=this,O=[],E=function(N){var k=I.state.children[N];if(k){var R=typeof k.ref!="string",L=I.props.childFactory(k),V=function(ee){I.childRefs[N]=ee};process.env.NODE_ENV!=="production"&&(0,c.default)(R,"string refs are not supported on children of TransitionGroup and will be ignored. Please use a callback ref instead: https://facebook.github.io/react/docs/refs-and-the-dom.html#the-ref-callback-attribute"),L===k&&R&&(V=(0,i.default)(k.ref,V)),O.push(a.default.cloneElement(L,{key:N,ref:V}))}};for(var D in this.state.children)E(D);var z=n({},this.props);return delete z.transitionLeave,delete z.transitionName,delete z.transitionAppear,delete z.transitionEnter,delete z.childFactory,delete z.transitionLeaveTimeout,delete z.transitionEnterTimeout,delete z.transitionAppearTimeout,delete z.component,a.default.createElement(this.props.component,z,O)},y}(a.default.Component);T.displayName="TransitionGroup",T.propTypes=process.env.NODE_ENV!=="production"?x:{},T.defaultProps=w,t.default=(0,d.polyfill)(T),e.exports=t.default})(Zr,Zr.exports);var Bo={exports:{}},Qo={exports:{}},Se={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Se);var ti={exports:{}},il;function h1(){return il||(il=1,function(e,t){t.__esModule=!0,t.default=n;function n(r,i){return r.classList?!!i&&r.classList.contains(i):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+i+" ")!==-1}e.exports=t.default}(ti,ti.exports)),ti.exports}(function(e,t){var n=Se.exports;t.__esModule=!0,t.default=i;var r=n(h1());function i(o,a){o.classList?o.classList.add(a):(0,r.default)(o,a)||(typeof o.className=="string"?o.className=o.className+" "+a:o.setAttribute("class",(o.className&&o.className.baseVal||"")+" "+a))}e.exports=t.default})(Qo,Qo.exports);function ol(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var p1=function(t,n){t.classList?t.classList.remove(n):typeof t.className=="string"?t.className=ol(t.className,n):t.setAttribute("class",ol(t.className&&t.className.baseVal||"",n))},Wo={exports:{}},ni={exports:{}},al;function sl(){return al||(al=1,function(e,t){t.__esModule=!0,t.default=void 0;var n=!!(typeof window<"u"&&window.document&&window.document.createElement);t.default=n,e.exports=t.default}(ni,ni.exports)),ni.exports}(function(e,t){var n=Se.exports;t.__esModule=!0,t.default=void 0;var r=n(sl()),i=["","webkit","moz","o","ms"],o="clearTimeout",a=c,s,u=function(h,v){return h+(h?v[0].toUpperCase()+v.substr(1):v)+"AnimationFrame"};r.default&&i.some(function(f){var h=u(f,"request");if(h in window)return o=u(f,"cancel"),a=function(p){return window[h](p)}});var l=new Date().getTime();function c(f){var h=new Date().getTime(),v=Math.max(0,16-(h-l)),p=setTimeout(f,v);return l=h,p}s=function(h){return a(h)},s.cancel=function(f){window[o]&&typeof window[o]=="function"&&window[o](f)};var d=s;t.default=d,e.exports=t.default})(Wo,Wo.exports);var ae={},g1=Se.exports;ae.__esModule=!0,ae.default=ae.animationEnd=ae.animationDelay=ae.animationTiming=ae.animationDuration=ae.animationName=ae.transitionEnd=ae.transitionDuration=ae.transitionDelay=ae.transitionTiming=ae.transitionProperty=ae.transform=void 0;var m1=g1(sl()),ri="transform";ae.transform=ri;var xt,Go,ul;ae.animationEnd=ul,ae.transitionEnd=Go;var Ko,Ho,Xo,Jo;ae.transitionDelay=Jo,ae.transitionTiming=Xo,ae.transitionDuration=Ho,ae.transitionProperty=Ko;var ll,cl,fl,dl;if(ae.animationDelay=dl,ae.animationTiming=fl,ae.animationDuration=cl,ae.animationName=ll,m1.default){var Zo=y1();xt=Zo.prefix,ae.transitionEnd=Go=Zo.transitionEnd,ae.animationEnd=ul=Zo.animationEnd,ae.transform=ri=xt+"-"+ri,ae.transitionProperty=Ko=xt+"-transition-property",ae.transitionDuration=Ho=xt+"-transition-duration",ae.transitionDelay=Jo=xt+"-transition-delay",ae.transitionTiming=Xo=xt+"-transition-timing-function",ae.animationName=ll=xt+"-animation-name",ae.animationDuration=cl=xt+"-animation-duration",ae.animationTiming=fl=xt+"-animation-delay",ae.animationDelay=dl=xt+"-animation-timing-function"}var v1={transform:ri,end:Go,property:Ko,timing:Xo,delay:Jo,duration:Ho};ae.default=v1;function y1(){for(var e=document.createElement("div").style,t={O:function(l){return"o"+l.toLowerCase()},Moz:function(l){return l.toLowerCase()},Webkit:function(l){return"webkit"+l},ms:function(l){return"MS"+l}},n=Object.keys(t),r,i,o="",a=0;a<n.length;a++){var s=n[a];if(s+"TransitionProperty"in e){o="-"+s.toLowerCase(),r=t[s]("TransitionEnd"),i=t[s]("AnimationEnd");break}}return!r&&"transitionProperty"in e&&(r="transitionend"),!i&&"animationName"in e&&(i="animationend"),e=null,{animationEnd:i,transitionEnd:r,prefix:o}}var dn={};dn.__esModule=!0,dn.nameShape=void 0,dn.transitionTimeout=x1;var _1=ct.default;hl(_1);var b1=le.exports,it=hl(b1);function hl(e){return e&&e.__esModule?e:{default:e}}function x1(e){var t="transition"+e+"Timeout",n="transition"+e;return function(r){if(r[n]){if(r[t]==null)return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if(typeof r[t]!="number")return new Error(t+" must be a number (in milliseconds)")}return null}}dn.nameShape=it.default.oneOfType([it.default.string,it.default.shape({enter:it.default.string,leave:it.default.string,active:it.default.string}),it.default.shape({enter:it.default.string,enterActive:it.default.string,leave:it.default.string,leaveActive:it.default.string,appear:it.default.string,appearActive:it.default.string})]),function(e,t){t.__esModule=!0;var n=Object.assign||function(O){for(var E=1;E<arguments.length;E++){var D=arguments[E];for(var z in D)Object.prototype.hasOwnProperty.call(D,z)&&(O[z]=D[z])}return O},r=Qo.exports,i=g(r),o=p1,a=g(o),s=Wo.exports,u=g(s),l=ae,c=ct.default,d=g(c),f=le.exports,h=g(f),v=rd.default,p=dn;function g(O){return O&&O.__esModule?O:{default:O}}function x(O,E){if(!(O instanceof E))throw new TypeError("Cannot call a class as a function")}function w(O,E){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:O}function T(O,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);O.prototype=Object.create(E&&E.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(O,E):O.__proto__=E)}var b=[];l.transitionEnd&&b.push(l.transitionEnd),l.animationEnd&&b.push(l.animationEnd);function y(O,E){return b.length?b.forEach(function(D){return O.addEventListener(D,E,!1)}):setTimeout(E,0),function(){!b.length||b.forEach(function(D){return O.removeEventListener(D,E,!1)})}}var C={children:h.default.node,name:p.nameShape.isRequired,appear:h.default.bool,enter:h.default.bool,leave:h.default.bool,appearTimeout:h.default.number,enterTimeout:h.default.number,leaveTimeout:h.default.number},I=function(O){T(E,O);function E(D,z){x(this,E);var m=w(this,O.call(this,D,z));return m.componentWillAppear=function(N){m.props.appear?m.transition("appear",N,m.props.appearTimeout):N()},m.componentWillEnter=function(N){m.props.enter?m.transition("enter",N,m.props.enterTimeout):N()},m.componentWillLeave=function(N){m.props.leave?m.transition("leave",N,m.props.leaveTimeout):N()},m.classNameAndNodeQueue=[],m.transitionTimeouts=[],m}return E.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(z){clearTimeout(z)}),this.classNameAndNodeQueue.length=0},E.prototype.transition=function(z,m,N){var k=(0,v.findDOMNode)(this);if(!k){m&&m();return}var R=this.props.name[z]||this.props.name+"-"+z,L=this.props.name[z+"Active"]||R+"-active",V=null,q=void 0;(0,i.default)(k,R),this.queueClassAndNode(L,k);var ee=function($){$&&$.target!==k||(clearTimeout(V),q&&q(),(0,a.default)(k,R),(0,a.default)(k,L),q&&q(),m&&m())};N?(V=setTimeout(ee,N),this.transitionTimeouts.push(V)):l.transitionEnd&&(q=y(k,ee))},E.prototype.queueClassAndNode=function(z,m){var N=this;this.classNameAndNodeQueue.push({className:z,node:m}),this.rafHandle||(this.rafHandle=(0,u.default)(function(){return N.flushClassNameAndNodeQueue()}))},E.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(z){z.node.scrollTop,(0,i.default)(z.node,z.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},E.prototype.render=function(){var z=n({},this.props);return delete z.name,delete z.appear,delete z.enter,delete z.leave,delete z.appearTimeout,delete z.enterTimeout,delete z.leaveTimeout,delete z.children,d.default.cloneElement(d.default.Children.only(this.props.children),z)},E}(d.default.Component);I.displayName="CSSTransitionGroupChild",I.propTypes=process.env.NODE_ENV!=="production"?C:{},t.default=I,e.exports=t.default}(Bo,Bo.exports),function(e,t){t.__esModule=!0;var n=Object.assign||function(T){for(var b=1;b<arguments.length;b++){var y=arguments[b];for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(T[C]=y[C])}return T},r=ct.default,i=f(r),o=le.exports,a=f(o),s=Zr.exports,u=f(s),l=Bo.exports,c=f(l),d=dn;function f(T){return T&&T.__esModule?T:{default:T}}function h(T,b){if(!(T instanceof b))throw new TypeError("Cannot call a class as a function")}function v(T,b){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:T}function p(T,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);T.prototype=Object.create(b&&b.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(T,b):T.__proto__=b)}var g={transitionName:d.nameShape.isRequired,transitionAppear:a.default.bool,transitionEnter:a.default.bool,transitionLeave:a.default.bool,transitionAppearTimeout:(0,d.transitionTimeout)("Appear"),transitionEnterTimeout:(0,d.transitionTimeout)("Enter"),transitionLeaveTimeout:(0,d.transitionTimeout)("Leave")},x={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},w=function(T){p(b,T);function b(){var y,C,I;h(this,b);for(var O=arguments.length,E=Array(O),D=0;D<O;D++)E[D]=arguments[D];return I=(y=(C=v(this,T.call.apply(T,[this].concat(E))),C),C._wrapChild=function(z){return i.default.createElement(c.default,{name:C.props.transitionName,appear:C.props.transitionAppear,enter:C.props.transitionEnter,leave:C.props.transitionLeave,appearTimeout:C.props.transitionAppearTimeout,enterTimeout:C.props.transitionEnterTimeout,leaveTimeout:C.props.transitionLeaveTimeout},z)},y),v(C,I)}return b.prototype.render=function(){return i.default.createElement(u.default,n({},this.props,{childFactory:this._wrapChild}))},b}(i.default.Component);w.displayName="CSSTransitionGroup",w.propTypes=process.env.NODE_ENV!=="production"?g:{},w.defaultProps=x,t.default=w,e.exports=t.default}($o,$o.exports);var M1=$o.exports,w1=pl(M1),T1=Zr.exports,N1=pl(T1);function pl(e){return e&&e.__esModule?e:{default:e}}var E1={TransitionGroup:N1.default,CSSTransitionGroup:w1.default},D1=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jo,"__esModule",{value:!0});var gl=D1(ct.default),O1=E1,C1=function(e){return e.enableLegacyTransitions?gl.default.createElement(O1.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):gl.default.createElement("g",{className:e.className,transform:e.transform},e.children)};jo.default=C1;var ea={},ta={},ii=we&&we.__assign||function(){return ii=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ii.apply(this,arguments)},S1=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ta,"__esModule",{value:!0});var Kt=S1(ct.default),A1=15,ml={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},I1=function(e){var t=e.nodeDatum,n=e.toggleNode,r=e.onNodeClick,i=e.onNodeMouseOver,o=e.onNodeMouseOut;return Kt.default.createElement(Kt.default.Fragment,null,Kt.default.createElement("circle",{r:A1,onClick:function(a){n(),r(a)},onMouseOver:i,onMouseOut:o}),Kt.default.createElement("g",{className:"rd3t-label"},Kt.default.createElement("text",ii({className:"rd3t-label__title"},ml.title),t.name),Kt.default.createElement("text",{className:"rd3t-label__attributes"},t.attributes&&Object.entries(t.attributes).map(function(a,s){var u=a[0],l=a[1];return Kt.default.createElement("tspan",ii({key:u+"-"+s},ml.attribute),u,": ",typeof l=="boolean"?l.toString():l)}))))};ta.default=I1;var k1=we&&we.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),vl=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ea,"__esModule",{value:!0});var yl=vl(ct.default),_l=lo,z1=vl(ta),j1=function(e){k1(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.nodeRef=null,n.state={transform:n.setTransform(n.props.position,n.props.parent,n.props.orientation,!0),initialStyle:{opacity:0},wasClicked:!1},n.shouldNodeTransform=function(r,i){return i.subscriptions!==r.subscriptions||i.position.x!==r.position.x||i.position.y!==r.position.y||i.orientation!==r.orientation},n.renderNodeElement=function(){var r=n.props,i=r.data,o=r.hierarchyPointNode,a=r.renderCustomNodeElement,s=typeof a=="function"?a:z1.default,u={hierarchyPointNode:o,nodeDatum:i,toggleNode:n.handleNodeToggle,onNodeClick:n.handleOnClick,onNodeMouseOver:n.handleOnMouseOver,onNodeMouseOut:n.handleOnMouseOut};return s(u)},n.handleNodeToggle=function(){n.setState({wasClicked:!0}),n.props.onNodeToggle(n.props.data.__rd3t.id)},n.handleOnClick=function(r){n.setState({wasClicked:!0}),n.props.onNodeClick(n.props.hierarchyPointNode,r)},n.handleOnMouseOver=function(r){n.props.onNodeMouseOver(n.props.hierarchyPointNode,r)},n.handleOnMouseOut=function(r){n.props.onNodeMouseOut(n.props.hierarchyPointNode,r)},n}return t.prototype.componentDidMount=function(){this.commitTransform()},t.prototype.componentDidUpdate=function(){this.state.wasClicked&&(this.props.centerNode(this.props.hierarchyPointNode),this.setState({wasClicked:!1})),this.commitTransform()},t.prototype.shouldComponentUpdate=function(n){return this.shouldNodeTransform(this.props,n)},t.prototype.setTransform=function(n,r,i,o){if(o===void 0&&(o=!1),o){var a=r!=null,s=a?r.x:0,u=a?r.y:0;return i==="horizontal"?"translate("+u+","+s+")":"translate("+s+","+u+")"}return i==="horizontal"?"translate("+n.y+","+n.x+")":"translate("+n.x+","+n.y+")"},t.prototype.applyTransform=function(n,r,i,o){i===void 0&&(i=1),o===void 0&&(o=function(){}),this.props.enableLegacyTransitions?_l.select(this.nodeRef).transition().duration(r).attr("transform",n).style("opacity",i).on("end",o):(_l.select(this.nodeRef).attr("transform",n).style("opacity",i),o())},t.prototype.commitTransform=function(){var n=this.props,r=n.orientation,i=n.transitionDuration,o=n.position,a=n.parent,s=this.setTransform(o,a,r);this.applyTransform(s,i)},t.prototype.componentWillLeave=function(n){var r=this.props,i=r.orientation,o=r.transitionDuration,a=r.position,s=r.parent,u=this.setTransform(a,s,i,!0);this.applyTransform(u,o,0,n)},t.prototype.render=function(){var n=this,r=this.props,i=r.data,o=r.nodeClassName;return yl.default.createElement("g",{id:i.__rd3t.id,ref:function(a){n.nodeRef=a},style:this.state.initialStyle,className:[i.children?"rd3t-node":"rd3t-leaf-node",o].join(" ").trim(),transform:this.state.transform},this.renderNodeElement())},t}(yl.default.Component);ea.default=j1;var na={},ra=Math.PI,ia=2*ra,Ht=1e-6,$1=ia-Ht;function oa(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function hn(){return new oa}oa.prototype=hn.prototype={constructor:oa,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,u=r-t,l=o-e,c=a-t,d=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>Ht)if(!(Math.abs(c*s-u*l)>Ht)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-o,h=r-a,v=s*s+u*u,p=f*f+h*h,g=Math.sqrt(v),x=Math.sqrt(d),w=i*Math.tan((ra-Math.acos((v+d-p)/(2*g*x)))/2),T=w/x,b=w/g;Math.abs(T-1)>Ht&&(this._+="L"+(e+T*l)+","+(t+T*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>l*h)+","+(this._x1=e+b*s)+","+(this._y1=t+b*u)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),u=e+a,l=t+s,c=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+u+","+l:(Math.abs(this._x1-u)>Ht||Math.abs(this._y1-l)>Ht)&&(this._+="L"+u+","+l),n&&(d<0&&(d=d%ia+ia),d>$1?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):d>Ht&&(this._+="A"+n+","+n+",0,"+ +(d>=ra)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function ie(e){return function(){return e}}var bl=Math.abs,Be=Math.atan2,Xt=Math.cos,R1=Math.max,aa=Math.min,Mt=Math.sin,pn=Math.sqrt,Qe=1e-12,Ft=Math.PI,oi=Ft/2,Ut=2*Ft;function L1(e){return e>1?0:e<-1?Ft:Math.acos(e)}function xl(e){return e>=1?oi:e<=-1?-oi:Math.asin(e)}function P1(e){return e.innerRadius}function F1(e){return e.outerRadius}function U1(e){return e.startAngle}function Y1(e){return e.endAngle}function q1(e){return e&&e.padAngle}function V1(e,t,n,r,i,o,a,s){var u=n-e,l=r-t,c=a-i,d=s-o,f=d*u-c*l;if(!(f*f<Qe))return f=(c*(t-o)-d*(e-i))/f,[e+f*u,t+f*l]}function ai(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/pn(s*s+u*u),c=l*u,d=-l*s,f=e+c,h=t+d,v=n+c,p=r+d,g=(f+v)/2,x=(h+p)/2,w=v-f,T=p-h,b=w*w+T*T,y=i-o,C=f*p-v*h,I=(T<0?-1:1)*pn(R1(0,y*y*b-C*C)),O=(C*T-w*I)/b,E=(-C*w-T*I)/b,D=(C*T+w*I)/b,z=(-C*w+T*I)/b,m=O-g,N=E-x,k=D-g,R=z-x;return m*m+N*N>k*k+R*R&&(O=D,E=z),{cx:O,cy:E,x01:-c,y01:-d,x11:O*(i/y-1),y11:E*(i/y-1)}}function B1(){var e=P1,t=F1,n=ie(0),r=null,i=U1,o=Y1,a=q1,s=null;function u(){var l,c,d=+e.apply(this,arguments),f=+t.apply(this,arguments),h=i.apply(this,arguments)-oi,v=o.apply(this,arguments)-oi,p=bl(v-h),g=v>h;if(s||(s=l=hn()),f<d&&(c=f,f=d,d=c),!(f>Qe))s.moveTo(0,0);else if(p>Ut-Qe)s.moveTo(f*Xt(h),f*Mt(h)),s.arc(0,0,f,h,v,!g),d>Qe&&(s.moveTo(d*Xt(v),d*Mt(v)),s.arc(0,0,d,v,h,g));else{var x=h,w=v,T=h,b=v,y=p,C=p,I=a.apply(this,arguments)/2,O=I>Qe&&(r?+r.apply(this,arguments):pn(d*d+f*f)),E=aa(bl(f-d)/2,+n.apply(this,arguments)),D=E,z=E,m,N;if(O>Qe){var k=xl(O/d*Mt(I)),R=xl(O/f*Mt(I));(y-=k*2)>Qe?(k*=g?1:-1,T+=k,b-=k):(y=0,T=b=(h+v)/2),(C-=R*2)>Qe?(R*=g?1:-1,x+=R,w-=R):(C=0,x=w=(h+v)/2)}var L=f*Xt(x),V=f*Mt(x),q=d*Xt(b),ee=d*Mt(b);if(E>Qe){var A=f*Xt(w),$=f*Mt(w),G=d*Xt(T),B=d*Mt(T),U;if(p<Ft&&(U=V1(L,V,G,B,A,$,q,ee))){var X=L-U[0],K=V-U[1],J=A-U[0],Z=$-U[1],ne=1/Mt(L1((X*J+K*Z)/(pn(X*X+K*K)*pn(J*J+Z*Z)))/2),te=pn(U[0]*U[0]+U[1]*U[1]);D=aa(E,(d-te)/(ne-1)),z=aa(E,(f-te)/(ne+1))}}C>Qe?z>Qe?(m=ai(G,B,L,V,f,z,g),N=ai(A,$,q,ee,f,z,g),s.moveTo(m.cx+m.x01,m.cy+m.y01),z<E?s.arc(m.cx,m.cy,z,Be(m.y01,m.x01),Be(N.y01,N.x01),!g):(s.arc(m.cx,m.cy,z,Be(m.y01,m.x01),Be(m.y11,m.x11),!g),s.arc(0,0,f,Be(m.cy+m.y11,m.cx+m.x11),Be(N.cy+N.y11,N.cx+N.x11),!g),s.arc(N.cx,N.cy,z,Be(N.y11,N.x11),Be(N.y01,N.x01),!g))):(s.moveTo(L,V),s.arc(0,0,f,x,w,!g)):s.moveTo(L,V),!(d>Qe)||!(y>Qe)?s.lineTo(q,ee):D>Qe?(m=ai(q,ee,A,$,d,-D,g),N=ai(L,V,G,B,d,-D,g),s.lineTo(m.cx+m.x01,m.cy+m.y01),D<E?s.arc(m.cx,m.cy,D,Be(m.y01,m.x01),Be(N.y01,N.x01),!g):(s.arc(m.cx,m.cy,D,Be(m.y01,m.x01),Be(m.y11,m.x11),!g),s.arc(0,0,d,Be(m.cy+m.y11,m.cx+m.x11),Be(N.cy+N.y11,N.cx+N.x11),g),s.arc(N.cx,N.cy,D,Be(N.y11,N.x11),Be(N.y01,N.x01),!g))):s.arc(0,0,d,b,T,g)}if(s.closePath(),l)return s=null,l+""||null}return u.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,c=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Ft/2;return[Xt(c)*l,Mt(c)*l]},u.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:ie(+l),u):e},u.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:ie(+l),u):t},u.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:ie(+l),u):n},u.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ie(+l),u):r},u.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ie(+l),u):i},u.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ie(+l),u):o},u.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ie(+l),u):a},u.context=function(l){return arguments.length?(s=l==null?null:l,u):s},u}function Ml(e){this._context=e}Ml.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function si(e){return new Ml(e)}function sa(e){return e[0]}function ua(e){return e[1]}function la(){var e=sa,t=ua,n=ie(!0),r=null,i=si,o=null;function a(s){var u,l=s.length,c,d=!1,f;for(r==null&&(o=i(f=hn())),u=0;u<=l;++u)!(u<l&&n(c=s[u],u,s))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(c,u,s),+t(c,u,s));if(f)return o=null,f+""||null}return a.x=function(s){return arguments.length?(e=typeof s=="function"?s:ie(+s),a):e},a.y=function(s){return arguments.length?(t=typeof s=="function"?s:ie(+s),a):t},a.defined=function(s){return arguments.length?(n=typeof s=="function"?s:ie(!!s),a):n},a.curve=function(s){return arguments.length?(i=s,r!=null&&(o=i(r)),a):i},a.context=function(s){return arguments.length?(s==null?r=o=null:o=i(r=s),a):r},a}function wl(){var e=sa,t=null,n=ie(0),r=ua,i=ie(!0),o=null,a=si,s=null;function u(c){var d,f,h,v=c.length,p,g=!1,x,w=new Array(v),T=new Array(v);for(o==null&&(s=a(x=hn())),d=0;d<=v;++d){if(!(d<v&&i(p=c[d],d,c))===g)if(g=!g)f=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=d-1;h>=f;--h)s.point(w[h],T[h]);s.lineEnd(),s.areaEnd()}g&&(w[d]=+e(p,d,c),T[d]=+n(p,d,c),s.point(t?+t(p,d,c):w[d],r?+r(p,d,c):T[d]))}if(x)return s=null,x+""||null}function l(){return la().defined(i).curve(a).context(o)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:ie(+c),t=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:ie(+c),u):e},u.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:ie(+c),u):t},u.y=function(c){return arguments.length?(n=typeof c=="function"?c:ie(+c),r=null,u):n},u.y0=function(c){return arguments.length?(n=typeof c=="function"?c:ie(+c),u):n},u.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:ie(+c),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:ie(!!c),u):i},u.curve=function(c){return arguments.length?(a=c,o!=null&&(s=a(o)),u):a},u.context=function(c){return arguments.length?(c==null?o=s=null:s=a(o=c),u):o},u}function Q1(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function W1(e){return e}function G1(){var e=W1,t=Q1,n=null,r=ie(0),i=ie(Ut),o=ie(0);function a(s){var u,l=s.length,c,d,f=0,h=new Array(l),v=new Array(l),p=+r.apply(this,arguments),g=Math.min(Ut,Math.max(-Ut,i.apply(this,arguments)-p)),x,w=Math.min(Math.abs(g)/l,o.apply(this,arguments)),T=w*(g<0?-1:1),b;for(u=0;u<l;++u)(b=v[h[u]=u]=+e(s[u],u,s))>0&&(f+=b);for(t!=null?h.sort(function(y,C){return t(v[y],v[C])}):n!=null&&h.sort(function(y,C){return n(s[y],s[C])}),u=0,d=f?(g-l*T)/f:0;u<l;++u,p=x)c=h[u],b=v[c],x=p+(b>0?b*d:0)+T,v[c]={data:s[c],index:u,value:b,startAngle:p,endAngle:x,padAngle:w};return v}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:ie(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:ie(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ie(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:ie(+s),a):o},a}var Tl=ca(si);function Nl(e){this._curve=e}Nl.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function ca(e){function t(n){return new Nl(e(n))}return t._curve=e,t}function rr(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(ca(n)):t()._curve},e}function El(){return rr(la().curve(Tl))}function Dl(){var e=wl().curve(Tl),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return rr(n())},delete e.lineX0,e.lineEndAngle=function(){return rr(r())},delete e.lineX1,e.lineInnerRadius=function(){return rr(i())},delete e.lineY0,e.lineOuterRadius=function(){return rr(o())},delete e.lineY1,e.curve=function(a){return arguments.length?t(ca(a)):t()._curve},e}function ir(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}var fa=Array.prototype.slice;function K1(e){return e.source}function H1(e){return e.target}function da(e){var t=K1,n=H1,r=sa,i=ua,o=null;function a(){var s,u=fa.call(arguments),l=t.apply(this,u),c=n.apply(this,u);if(o||(o=s=hn()),e(o,+r.apply(this,(u[0]=l,u)),+i.apply(this,u),+r.apply(this,(u[0]=c,u)),+i.apply(this,u)),s)return o=null,s+""||null}return a.source=function(s){return arguments.length?(t=s,a):t},a.target=function(s){return arguments.length?(n=s,a):n},a.x=function(s){return arguments.length?(r=typeof s=="function"?s:ie(+s),a):r},a.y=function(s){return arguments.length?(i=typeof s=="function"?s:ie(+s),a):i},a.context=function(s){return arguments.length?(o=s==null?null:s,a):o},a}function X1(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function J1(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function Z1(e,t,n,r,i){var o=ir(t,n),a=ir(t,n=(n+i)/2),s=ir(r,n),u=ir(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function em(){return da(X1)}function tm(){return da(J1)}function nm(){var e=da(Z1);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const ha={draw:function(e,t){var n=Math.sqrt(t/Ft);e.moveTo(n,0),e.arc(0,0,n,0,Ut)}},Ol={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};var Cl=Math.sqrt(1/3),rm=Cl*2;const Sl={draw:function(e,t){var n=Math.sqrt(t/rm),r=n*Cl;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}};var im=.8908130915292852,Al=Math.sin(Ft/10)/Math.sin(7*Ft/10),om=Math.sin(Ut/10)*Al,am=-Math.cos(Ut/10)*Al;const Il={draw:function(e,t){var n=Math.sqrt(t*im),r=om*n,i=am*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=Ut*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},kl={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}};var pa=Math.sqrt(3);const zl={draw:function(e,t){var n=-Math.sqrt(t/(pa*3));e.moveTo(0,n*2),e.lineTo(-pa*n,-n),e.lineTo(pa*n,-n),e.closePath()}};var ft=-.5,dt=Math.sqrt(3)/2,ga=1/Math.sqrt(12),sm=(ga/2+1)*3;const jl={draw:function(e,t){var n=Math.sqrt(t/sm),r=n/2,i=n*ga,o=r,a=n*ga+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(ft*r-dt*i,dt*r+ft*i),e.lineTo(ft*o-dt*a,dt*o+ft*a),e.lineTo(ft*s-dt*u,dt*s+ft*u),e.lineTo(ft*r+dt*i,ft*i-dt*r),e.lineTo(ft*o+dt*a,ft*a-dt*o),e.lineTo(ft*s+dt*u,ft*u-dt*s),e.closePath()}};var um=[ha,Ol,Sl,kl,Il,zl,jl];function lm(){var e=ie(ha),t=ie(64),n=null;function r(){var i;if(n||(n=i=hn()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return r.type=function(i){return arguments.length?(e=typeof i=="function"?i:ie(i),r):e},r.size=function(i){return arguments.length?(t=typeof i=="function"?i:ie(+i),r):t},r.context=function(i){return arguments.length?(n=i==null?null:i,r):n},r}function Yt(){}function ui(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function li(e){this._context=e}li.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ui(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ui(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function cm(e){return new li(e)}function $l(e){this._context=e}$l.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ui(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fm(e){return new $l(e)}function Rl(e){this._context=e}Rl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ui(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dm(e){return new Rl(e)}function Ll(e,t){this._basis=new li(e),this._beta=t}Ll.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*o),this._beta*t[s]+(1-this._beta)*(i+u*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const hm=function e(t){function n(r){return t===1?new li(r):new Ll(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function ci(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ma(e,t){this._context=e,this._k=(1-t)/6}ma.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ci(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:ci(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pm=function e(t){function n(r){return new ma(r,t)}return n.tension=function(r){return e(+r)},n}(0);function va(e,t){this._context=e,this._k=(1-t)/6}va.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ci(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const gm=function e(t){function n(r){return new va(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ya(e,t){this._context=e,this._k=(1-t)/6}ya.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ci(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const mm=function e(t){function n(r){return new ya(r,t)}return n.tension=function(r){return e(+r)},n}(0);function _a(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>Qe){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Qe){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function Pl(e,t){this._context=e,this._alpha=t}Pl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:_a(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const vm=function e(t){function n(r){return t?new Pl(r,t):new ma(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Fl(e,t){this._context=e,this._alpha=t}Fl.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_a(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ym=function e(t){function n(r){return t?new Fl(r,t):new va(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Ul(e,t){this._context=e,this._alpha=t}Ul.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_a(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const _m=function e(t){function n(r){return t?new Ul(r,t):new ya(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Yl(e){this._context=e}Yl.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function bm(e){return new Yl(e)}function ql(e){return e<0?-1:1}function Vl(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(ql(o)+ql(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Bl(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ba(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function fi(e){this._context=e}fi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ba(this,this._t0,Bl(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ba(this,Bl(this,n=Vl(this,e,t)),n);break;default:ba(this,this._t0,n=Vl(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Ql(e){this._context=new Wl(e)}(Ql.prototype=Object.create(fi.prototype)).point=function(e,t){fi.prototype.point.call(this,t,e)};function Wl(e){this._context=e}Wl.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function xm(e){return new fi(e)}function Mm(e){return new Ql(e)}function Gl(e){this._context=e}Gl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Kl(e),i=Kl(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Kl(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function wm(e){return new Gl(e)}function di(e,t){this._context=e,this._t=t}di.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Tm(e){return new di(e,.5)}function Nm(e){return new di(e,0)}function Em(e){return new di(e,1)}function gn(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function mn(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Dm(e,t){return e[t]}function Om(){var e=ie([]),t=mn,n=gn,r=Dm;function i(o){var a=e.apply(this,arguments),s,u=o.length,l=a.length,c=new Array(l),d;for(s=0;s<l;++s){for(var f=a[s],h=c[s]=new Array(u),v=0,p;v<u;++v)h[v]=p=[0,+r(o[v],f,v,o)],p.data=o[v];h.key=f}for(s=0,d=t(c);s<l;++s)c[d[s]].index=s;return n(c,d),c}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:ie(fa.call(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:ie(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?mn:typeof o=="function"?o:ie(fa.call(o)),i):t},i.offset=function(o){return arguments.length?(n=o==null?gn:o,i):n},i}function Cm(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}gn(e,t)}}function Sm(e,t){if((u=e.length)>0)for(var n,r=0,i,o,a,s,u,l=e[t[0]].length;r<l;++r)for(a=s=0,n=0;n<u;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function Am(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}gn(e,t)}}function Im(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,u=0,l=0;s<a;++s){for(var c=e[t[s]],d=c[r][1]||0,f=c[r-1][1]||0,h=(d-f)/2,v=0;v<s;++v){var p=e[t[v]],g=p[r][1]||0,x=p[r-1][1]||0;h+=g-x}u+=d,l+=h*d}i[r-1][1]+=i[r-1][0]=n,u&&(n-=l/u)}i[r-1][1]+=i[r-1][0]=n,gn(e,t)}}function Hl(e){var t=e.map(km);return mn(e).sort(function(n,r){return t[n]-t[r]})}function km(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function Xl(e){var t=e.map(Jl);return mn(e).sort(function(n,r){return t[n]-t[r]})}function Jl(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function zm(e){return Xl(e).reverse()}function jm(e){var t=e.length,n,r,i=e.map(Jl),o=Hl(e),a=0,s=0,u=[],l=[];for(n=0;n<t;++n)r=o[n],a<s?(a+=i[r],u.push(r)):(s+=i[r],l.push(r));return l.reverse().concat(u)}function $m(e){return mn(e).reverse()}const Rm=$t(Object.freeze(Object.defineProperty({__proto__:null,arc:B1,area:wl,line:la,pie:G1,areaRadial:Dl,radialArea:Dl,lineRadial:El,radialLine:El,pointRadial:ir,linkHorizontal:em,linkVertical:tm,linkRadial:nm,symbol:lm,symbols:um,symbolCircle:ha,symbolCross:Ol,symbolDiamond:Sl,symbolSquare:kl,symbolStar:Il,symbolTriangle:zl,symbolWye:jl,curveBasisClosed:fm,curveBasisOpen:dm,curveBasis:cm,curveBundle:hm,curveCardinalClosed:gm,curveCardinalOpen:mm,curveCardinal:pm,curveCatmullRomClosed:ym,curveCatmullRomOpen:_m,curveCatmullRom:vm,curveLinearClosed:bm,curveLinear:si,curveMonotoneX:xm,curveMonotoneY:Mm,curveNatural:wm,curveStep:Tm,curveStepAfter:Em,curveStepBefore:Nm,stack:Om,stackOffsetExpand:Cm,stackOffsetDiverging:Sm,stackOffsetNone:gn,stackOffsetSilhouette:Am,stackOffsetWiggle:Im,stackOrderAppearance:Hl,stackOrderAscending:Xl,stackOrderDescending:zm,stackOrderInsideOut:jm,stackOrderNone:mn,stackOrderReverse:$m},Symbol.toStringTag,{value:"Module"})));var Lm=we&&we.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xa=we&&we.__assign||function(){return xa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},xa.apply(this,arguments)},Pm=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(na,"__esModule",{value:!0});var Zl=Pm(ct.default),ec=Rm,tc=lo,Fm=function(e){Lm(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.linkRef=null,n.state={initialStyle:{opacity:0}},n.handleOnClick=function(r){n.props.onClick(n.props.linkData.source,n.props.linkData.target,r)},n.handleOnMouseOver=function(r){n.props.onMouseOver(n.props.linkData.source,n.props.linkData.target,r)},n.handleOnMouseOut=function(r){n.props.onMouseOut(n.props.linkData.source,n.props.linkData.target,r)},n}return t.prototype.componentDidMount=function(){this.applyOpacity(1,this.props.transitionDuration)},t.prototype.componentWillLeave=function(n){this.applyOpacity(0,this.props.transitionDuration,n)},t.prototype.applyOpacity=function(n,r,i){i===void 0&&(i=function(){}),this.props.enableLegacyTransitions?tc.select(this.linkRef).transition().duration(r).style("opacity",n).on("end",i):(tc.select(this.linkRef).style("opacity",n),i())},t.prototype.drawStepPath=function(n,r){var i=n.source,o=n.target,a=o.y-i.y;return r==="horizontal"?"M"+i.y+","+i.x+" H"+(i.y+a/2)+" V"+o.x+" H"+o.y:"M"+i.x+","+i.y+" V"+(i.y+a/2)+" H"+o.x+" V"+o.y},t.prototype.drawDiagonalPath=function(n,r){var i=n.source,o=n.target;return r==="horizontal"?ec.linkHorizontal()({source:[i.y,i.x],target:[o.y,o.x]}):ec.linkVertical()({source:[i.x,i.y],target:[o.x,o.y]})},t.prototype.drawStraightPath=function(n,r){var i=n.source,o=n.target;return r==="horizontal"?"M"+i.y+","+i.x+"L"+o.y+","+o.x:"M"+i.x+","+i.y+"L"+o.x+","+o.y},t.prototype.drawElbowPath=function(n,r){return r==="horizontal"?"M"+n.source.y+","+n.source.x+"V"+n.target.x+"H"+n.target.y:"M"+n.source.x+","+n.source.y+"V"+n.target.y+"H"+n.target.x},t.prototype.drawPath=function(){var n=this.props,r=n.linkData,i=n.orientation,o=n.pathFunc;return typeof o=="function"?o(r,i):o==="elbow"?this.drawElbowPath(r,i):o==="straight"?this.drawStraightPath(r,i):o==="step"?this.drawStepPath(r,i):this.drawDiagonalPath(r,i)},t.prototype.getClassNames=function(){var n=this.props,r=n.linkData,i=n.orientation,o=n.pathClassFunc,a=["rd3t-link"];return typeof o=="function"&&a.push(o(r,i)),a.join(" ").trim()},t.prototype.render=function(){var n=this,r=this.props.linkData;return Zl.default.createElement("path",{ref:function(i){n.linkRef=i},style:xa({},this.state.initialStyle),className:this.getClassNames(),d:this.drawPath(),onClick:this.handleOnClick,onMouseOver:this.handleOnMouseOver,onMouseOut:this.handleOnMouseOut,"data-source-id":r.source.id,"data-target-id":r.target.id})},t}(Zl.default.PureComponent);na.default=Fm;var Ma={};Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.default=`
55
55
  /* Tree */
56
56
  .rd3t-tree-container {
57
57
  width: 100%;
@@ -103,7 +103,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
103
103
  fill: none;
104
104
  stroke: #000;
105
105
  }
106
- `;var Um=we&&we.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),or=we&&we.__assign||function(){return or=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},or.apply(this,arguments)},vn=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wi,"__esModule",{value:!0});var Jt=vn(ct.default),nc=mh,Ze=lo,ar=Sg,wa=ju,ot=vn(Ru.exports),Ta=Xg,Ym=vn(jo),qm=vn(ea),Vm=vn(na),Bm=vn(Ma),Qm=function(e){Um(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dataRef:n.props.data,data:t.assignInternalProperties(ot.default(n.props.data)),d3:t.calculateD3Geometry(n.props),isTransitioning:!1,isInitialRenderForDataset:!0},n.internalState={targetNode:null,isTransitioning:!1},n.svgInstanceRef="rd3t-svg-"+Ta.v4(),n.gInstanceRef="rd3t-g-"+Ta.v4(),n.handleNodeToggle=function(r){var i=ot.default(n.state.data),o=n.findNodesById(r,i,[]),a=o[0];n.props.collapsible&&!n.state.isTransitioning&&(a.__rd3t.collapsed?(t.expandNode(a),n.props.shouldCollapseNeighborNodes&&n.collapseNeighborNodes(a,i)):t.collapseNode(a),n.props.enableLegacyTransitions?(n.setState({data:i,isTransitioning:!0}),setTimeout(function(){return n.setState({isTransitioning:!1})},n.props.transitionDuration+10)):n.setState({data:i}),n.internalState.targetNode=a)},n.handleOnNodeClickCb=function(r,i){var o=n.props.onNodeClick;o&&typeof o=="function"&&(i.persist(),o(ot.default(r),i))},n.handleOnLinkClickCb=function(r,i,o){var a=n.props.onLinkClick;a&&typeof a=="function"&&(o.persist(),a(ot.default(r),ot.default(i),o))},n.handleOnNodeMouseOverCb=function(r,i){var o=n.props.onNodeMouseOver;o&&typeof o=="function"&&(i.persist(),o(ot.default(r),i))},n.handleOnLinkMouseOverCb=function(r,i,o){var a=n.props.onLinkMouseOver;a&&typeof a=="function"&&(o.persist(),a(ot.default(r),ot.default(i),o))},n.handleOnNodeMouseOutCb=function(r,i){var o=n.props.onNodeMouseOut;o&&typeof o=="function"&&(i.persist(),o(ot.default(r),i))},n.handleOnLinkMouseOutCb=function(r,i,o){var a=n.props.onLinkMouseOut;a&&typeof a=="function"&&(o.persist(),a(ot.default(r),ot.default(i),o))},n.centerNode=function(r){var i=n.props,o=i.dimensions,a=i.orientation,s=i.zoom,u=i.centeringTransitionDuration;if(o){var l=Ze.select("."+n.gInstanceRef),c=Ze.select("."+n.svgInstanceRef),d=n.state.d3.scale,f=void 0,h=void 0;a==="horizontal"?(h=-r.x*d+o.height/2,f=-r.y*d+o.width/2):(f=-r.x*d+o.width/2,h=-r.y*d+o.height/2),l.transition().duration(u).attr("transform","translate("+f+","+h+")scale("+d+")"),c.call(ar.zoom().transform,ar.zoomIdentity.translate(f,h).scale(s))}},n.getNodeClassName=function(r,i){var o=n.props,a=o.rootNodeClassName,s=o.branchNodeClassName,u=o.leafNodeClassName,l=r!=null;return l?i.children?s:u:a},n}return t.getDerivedStateFromProps=function(n,r){var i=null;n.data!==r.dataRef&&(i={dataRef:n.data,data:t.assignInternalProperties(ot.default(n.data)),isInitialRenderForDataset:!0});var o=t.calculateD3Geometry(n);return wa.dequal(o,r.d3)||(i=i||{},i.d3=o),i},t.prototype.componentDidMount=function(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})},t.prototype.componentDidUpdate=function(n){this.props.data!==n.data&&this.setState({isInitialRenderForDataset:!1}),(!wa.dequal(this.props.translate,n.translate)||!wa.dequal(this.props.scaleExtent,n.scaleExtent)||this.props.zoomable!==n.zoomable||this.props.zoom!==n.zoom||this.props.enableLegacyTransitions!==n.enableLegacyTransitions)&&this.bindZoomListener(this.props),typeof this.props.onUpdate=="function"&&this.props.onUpdate({node:this.internalState.targetNode?ot.default(this.internalState.targetNode):null,zoom:this.state.d3.scale,translate:this.state.d3.translate}),this.internalState.targetNode=null},t.prototype.setInitialTreeDepth=function(n,r){n.forEach(function(i){i.data.__rd3t.collapsed=i.depth>=r})},t.prototype.bindZoomListener=function(n){var r=this,i=n.zoomable,o=n.scaleExtent,a=n.translate,s=n.zoom,u=n.onUpdate,l=n.hasInteractiveNodes,c=Ze.select("."+this.svgInstanceRef),d=Ze.select("."+this.gInstanceRef);c.call(ar.zoom().transform,ar.zoomIdentity.translate(a.x,a.y).scale(s)),c.call(ar.zoom().scaleExtent(i?[o.min,o.max]:[s,s]).filter(function(){return l?Ze.event.target.classList.contains(r.svgInstanceRef)||Ze.event.target.classList.contains(r.gInstanceRef)||Ze.event.shiftKey:!0}).on("zoom",function(){d.attr("transform",Ze.event.transform),typeof u=="function"&&(u({node:null,zoom:Ze.event.transform.k,translate:{x:Ze.event.transform.x,y:Ze.event.transform.y}}),r.state.d3.scale=Ze.event.transform.k,r.state.d3.translate={x:Ze.event.transform.x,y:Ze.event.transform.y})}))},t.assignInternalProperties=function(n,r){r===void 0&&(r=0);var i=Array.isArray(n)?n:[n];return i.map(function(o){var a=o;return a.__rd3t={id:null,depth:null,collapsed:!1},a.__rd3t.id=Ta.v4(),a.__rd3t.depth=r,a.children&&a.children.length>0&&(a.children=t.assignInternalProperties(a.children,r+1)),a})},t.prototype.findNodesById=function(n,r,i){var o=this;return i.length>0||(i=i.concat(r.filter(function(a){return a.__rd3t.id===n})),r.forEach(function(a){a.children&&a.children.length>0&&(i=o.findNodesById(n,a.children,i))})),i},t.prototype.findNodesAtDepth=function(n,r,i){var o=this;return i=i.concat(r.filter(function(a){return a.__rd3t.depth===n})),r.forEach(function(a){a.children&&a.children.length>0&&(i=o.findNodesAtDepth(n,a.children,i))}),i},t.collapseNode=function(n){n.__rd3t.collapsed=!0,n.children&&n.children.length>0&&n.children.forEach(function(r){t.collapseNode(r)})},t.expandNode=function(n){n.__rd3t.collapsed=!1},t.prototype.collapseNeighborNodes=function(n,r){var i=this.findNodesAtDepth(n.__rd3t.depth,r,[]).filter(function(o){return o.__rd3t.id!==n.__rd3t.id});i.forEach(function(o){return t.collapseNode(o)})},t.prototype.generateTree=function(){var n=this.props,r=n.initialDepth,i=n.depthFactor,o=n.separation,a=n.nodeSize,s=n.orientation,u=this.state.isInitialRenderForDataset,l=nc.tree().nodeSize(s==="horizontal"?[a.y,a.x]:[a.x,a.y]).separation(function(h,v){return h.parent.data.__rd3t.id===v.parent.data.__rd3t.id?o.siblings:o.nonSiblings}),c=l(nc.hierarchy(this.state.data[0],function(h){return h.__rd3t.collapsed?null:h.children})),d=c.descendants(),f=c.links();return r!==void 0&&u&&this.setInitialTreeDepth(d,r),i&&d.forEach(function(h){h.y=h.depth*i}),{nodes:d,links:f}},t.calculateD3Geometry=function(n){var r;return n.zoom>n.scaleExtent.max?r=n.scaleExtent.max:n.zoom<n.scaleExtent.min?r=n.scaleExtent.min:r=n.zoom,{translate:n.translate,scale:r}},t.prototype.render=function(){var n=this,r=this.generateTree(),i=r.nodes,o=r.links,a=this.props,s=a.renderCustomNodeElement,u=a.orientation,l=a.pathFunc,c=a.transitionDuration,d=a.nodeSize,f=a.depthFactor,h=a.initialDepth,v=a.separation,p=a.enableLegacyTransitions,g=a.svgClassName,x=a.pathClassFunc,w=this.state.d3,T=w.translate,b=w.scale,y=or(or(or({},d),v),{depthFactor:f,initialDepth:h});return Jt.default.createElement("div",{className:"rd3t-tree-container rd3t-grabbable"},Jt.default.createElement("style",null,Bm.default),Jt.default.createElement("svg",{className:"rd3t-svg "+this.svgInstanceRef+" "+g,width:"100%",height:"100%"},Jt.default.createElement(Ym.default,{enableLegacyTransitions:p,component:"g",className:"rd3t-g "+this.gInstanceRef,transform:"translate("+T.x+","+T.y+") scale("+b+")"},o.map(function(C,I){return Jt.default.createElement(Vm.default,{key:"link-"+I,orientation:u,pathFunc:l,pathClassFunc:x,linkData:C,onClick:n.handleOnLinkClickCb,onMouseOver:n.handleOnLinkMouseOverCb,onMouseOut:n.handleOnLinkMouseOutCb,enableLegacyTransitions:p,transitionDuration:c})}),i.map(function(C,I){var O=C.data,E=C.x,D=C.y,k=C.parent;return Jt.default.createElement(qm.default,{key:"node-"+I,data:O,position:{x:E,y:D},hierarchyPointNode:C,parent:k,nodeClassName:n.getNodeClassName(k,O),renderCustomNodeElement:s,nodeSize:d,orientation:u,enableLegacyTransitions:p,transitionDuration:c,onNodeToggle:n.handleNodeToggle,onNodeClick:n.handleOnNodeClickCb,onNodeMouseOver:n.handleOnNodeMouseOverCb,onNodeMouseOut:n.handleOnNodeMouseOutCb,subscriptions:y,centerNode:n.centerNode})}))))},t.defaultProps={onNodeClick:void 0,onNodeMouseOver:void 0,onNodeMouseOut:void 0,onLinkClick:void 0,onLinkMouseOver:void 0,onLinkMouseOut:void 0,onUpdate:void 0,orientation:"horizontal",translate:{x:0,y:0},pathFunc:"diagonal",pathClassFunc:void 0,transitionDuration:500,depthFactor:void 0,collapsible:!0,initialDepth:void 0,zoomable:!0,zoom:1,scaleExtent:{min:.1,max:1},nodeSize:{x:140,y:140},separation:{siblings:1,nonSiblings:2},shouldCollapseNeighborNodes:!1,svgClassName:"",rootNodeClassName:"",branchNodeClassName:"",leafNodeClassName:"",renderCustomNodeElement:void 0,enableLegacyTransitions:!1,hasInteractiveNodes:!1,dimensions:void 0,centeringTransitionDuration:800},t}(Jt.default.Component);Wi.default=Qm;var Wm=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Cs,"__esModule",{value:!0});var Gm=Wm(Wi),Km=Cs.default=Gm.default;const Hm=()=>{const[e,t]=W.useState({x:0,y:0}),[n,r]=W.useState({height:0,width:0}),i=W.useCallback(o=>{if(!o)return null;const{width:a,height:s}=o.getBoundingClientRect();return r({height:s,width:a}),t({x:a/2,y:s/2}),o},[]);return{dimensions:n,refContainer:i,translate:e}},rc=({color:e,height:t=20,width:n=20})=>oe("svg",{focusable:"false",x:"0px",y:"0px",viewBox:"0 0 24 24",color:e,height:t,width:n,children:[M("path",{fill:"currentColor",d:"M19.1,18H14v2c0,1.1-0.9,2-2,2s-2-0.9-2-2v-2H4.9c-0.8,0-1.3-0.9-0.8-1.5L7,12l0,0c-0.8,0-1.3-0.9-0.8-1.6l5-7.2 c0.4-0.6,1.2-0.6,1.6,0l0.6,0.9c-0.8,0.8-1.2,2-1.2,3.2c0,2.6,2.1,4.7,4.7,4.7H17l3,4.5C20.4,17.1,19.9,18,19.1,18z"}),M("path",{fill:"currentColor",d:"M20.6,7.3c0,0.4-0.4,0.8-0.8,0.8h-2.1v2.1c0,0.4-0.4,0.8-0.8,0.8s-0.8-0.4-0.8-0.8V8.1H14c-0.5,0-0.8-0.4-0.8-0.8 c0-0.5,0.4-0.8,0.8-0.8h2.1V4.4c0-0.5,0.4-0.8,0.8-0.8s0.8,0.4,0.8,0.8v2.1h2.1C20.3,6.5,20.6,6.8,20.6,7.3z"})]}),qt={currentHierarchyPointNode:null,currentTree:{errorName:"",id:"",name:""},dispatchTree:()=>null,endPoint:void 0,modalOpen:null,setCurrentHierarchyPointNode:()=>null,setCurrentTree:()=>null,setModalOpen:()=>null,setTreeModalOpen:()=>null,setTreePath:()=>null,tree:null,treeModalOpen:!1,treePath:[],version:void 0},ic=W.createContext(qt),at=()=>W.useContext(ic),Xm=()=>{const{setModalOpen:e}=at();return{handleClick:()=>e("add")}},Jm=()=>{const{t:e}=Je.useTranslation("button"),{handleClick:t}=Xm();return M(S.Box,{alignItems:"center",justifyContent:"center",display:"flex",height:"100%",children:M(S.Button,{onClick:t,size:"medium",variant:"contained",startIcon:M(rc,{}),children:e("createTree")})})},Na={container:{height:"100%",width:"100%"},progressContainer:{alignItems:"center",display:"flex",height:"100%",justifyContent:"center"},treeLink:{stroke:`${xe.borderMedium} !important`}},oc="tree-link",Zm=({data:e,renderCustomNodeElement:t,nodeSize:n={x:300,y:300}})=>{const{dimensions:r,refContainer:i,translate:o}=Hm(),{currentTree:a}=at();return!e&&!a.id?M(Jm,{}):a.id&&!e?M(S.Box,{sx:Na.progressContainer,children:M(S.CircularProgress,{})}):oe("div",{style:Na.container,ref:i,children:[M(S.GlobalStyles,{styles:{[`.${oc}`]:Na.treeLink}}),M(Km,{data:e,orientation:"vertical",translate:o,dimensions:r,renderCustomNodeElement:t,pathFunc:"diagonal",pathClassFunc:()=>oc,nodeSize:n})]})},ac=W.memo(Zm),ev=()=>({formatJSON:t=>JSON.stringify(t!=null?t:{},null,2)}),sc={fullHeight:{height:"100%"}},tv=({value:e})=>{const{formatJSON:t}=ev();return oe("div",{style:sc.fullHeight,children:[M(S.GlobalStyles,{styles:{".cm-activeLine.cm-line, .cm-gutterElement.cm-activeLineGutter":{backgroundColor:"transparent"}}}),M(id.default,{value:t(e),extensions:[Xf.json()],editable:!1,theme:Jf.dracula,height:"100%",style:sc.fullHeight})]})};var Ea={},Da={};function Zt(){return Zt=Object.assign?Object.assign.bind():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},Zt.apply(this,arguments)}function hi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function At(e,t,n={clone:!0}){const r=n.clone?Zt({},e):e;return hi(e)&&hi(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(hi(t[i])&&i in e&&hi(e[i])?r[i]=At(e[i],t[i],n):r[i]=t[i])}),r}function yn(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Oa={exports:{}},ge={};/**
106
+ `;var Um=we&&we.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),or=we&&we.__assign||function(){return or=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},or.apply(this,arguments)},vn=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wi,"__esModule",{value:!0});var Jt=vn(ct.default),nc=mh,Ze=lo,ar=Sg,wa=ju,ot=vn(Ru.exports),Ta=Xg,Ym=vn(jo),qm=vn(ea),Vm=vn(na),Bm=vn(Ma),Qm=function(e){Um(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dataRef:n.props.data,data:t.assignInternalProperties(ot.default(n.props.data)),d3:t.calculateD3Geometry(n.props),isTransitioning:!1,isInitialRenderForDataset:!0},n.internalState={targetNode:null,isTransitioning:!1},n.svgInstanceRef="rd3t-svg-"+Ta.v4(),n.gInstanceRef="rd3t-g-"+Ta.v4(),n.handleNodeToggle=function(r){var i=ot.default(n.state.data),o=n.findNodesById(r,i,[]),a=o[0];n.props.collapsible&&!n.state.isTransitioning&&(a.__rd3t.collapsed?(t.expandNode(a),n.props.shouldCollapseNeighborNodes&&n.collapseNeighborNodes(a,i)):t.collapseNode(a),n.props.enableLegacyTransitions?(n.setState({data:i,isTransitioning:!0}),setTimeout(function(){return n.setState({isTransitioning:!1})},n.props.transitionDuration+10)):n.setState({data:i}),n.internalState.targetNode=a)},n.handleOnNodeClickCb=function(r,i){var o=n.props.onNodeClick;o&&typeof o=="function"&&(i.persist(),o(ot.default(r),i))},n.handleOnLinkClickCb=function(r,i,o){var a=n.props.onLinkClick;a&&typeof a=="function"&&(o.persist(),a(ot.default(r),ot.default(i),o))},n.handleOnNodeMouseOverCb=function(r,i){var o=n.props.onNodeMouseOver;o&&typeof o=="function"&&(i.persist(),o(ot.default(r),i))},n.handleOnLinkMouseOverCb=function(r,i,o){var a=n.props.onLinkMouseOver;a&&typeof a=="function"&&(o.persist(),a(ot.default(r),ot.default(i),o))},n.handleOnNodeMouseOutCb=function(r,i){var o=n.props.onNodeMouseOut;o&&typeof o=="function"&&(i.persist(),o(ot.default(r),i))},n.handleOnLinkMouseOutCb=function(r,i,o){var a=n.props.onLinkMouseOut;a&&typeof a=="function"&&(o.persist(),a(ot.default(r),ot.default(i),o))},n.centerNode=function(r){var i=n.props,o=i.dimensions,a=i.orientation,s=i.zoom,u=i.centeringTransitionDuration;if(o){var l=Ze.select("."+n.gInstanceRef),c=Ze.select("."+n.svgInstanceRef),d=n.state.d3.scale,f=void 0,h=void 0;a==="horizontal"?(h=-r.x*d+o.height/2,f=-r.y*d+o.width/2):(f=-r.x*d+o.width/2,h=-r.y*d+o.height/2),l.transition().duration(u).attr("transform","translate("+f+","+h+")scale("+d+")"),c.call(ar.zoom().transform,ar.zoomIdentity.translate(f,h).scale(s))}},n.getNodeClassName=function(r,i){var o=n.props,a=o.rootNodeClassName,s=o.branchNodeClassName,u=o.leafNodeClassName,l=r!=null;return l?i.children?s:u:a},n}return t.getDerivedStateFromProps=function(n,r){var i=null;n.data!==r.dataRef&&(i={dataRef:n.data,data:t.assignInternalProperties(ot.default(n.data)),isInitialRenderForDataset:!0});var o=t.calculateD3Geometry(n);return wa.dequal(o,r.d3)||(i=i||{},i.d3=o),i},t.prototype.componentDidMount=function(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})},t.prototype.componentDidUpdate=function(n){this.props.data!==n.data&&this.setState({isInitialRenderForDataset:!1}),(!wa.dequal(this.props.translate,n.translate)||!wa.dequal(this.props.scaleExtent,n.scaleExtent)||this.props.zoomable!==n.zoomable||this.props.zoom!==n.zoom||this.props.enableLegacyTransitions!==n.enableLegacyTransitions)&&this.bindZoomListener(this.props),typeof this.props.onUpdate=="function"&&this.props.onUpdate({node:this.internalState.targetNode?ot.default(this.internalState.targetNode):null,zoom:this.state.d3.scale,translate:this.state.d3.translate}),this.internalState.targetNode=null},t.prototype.setInitialTreeDepth=function(n,r){n.forEach(function(i){i.data.__rd3t.collapsed=i.depth>=r})},t.prototype.bindZoomListener=function(n){var r=this,i=n.zoomable,o=n.scaleExtent,a=n.translate,s=n.zoom,u=n.onUpdate,l=n.hasInteractiveNodes,c=Ze.select("."+this.svgInstanceRef),d=Ze.select("."+this.gInstanceRef);c.call(ar.zoom().transform,ar.zoomIdentity.translate(a.x,a.y).scale(s)),c.call(ar.zoom().scaleExtent(i?[o.min,o.max]:[s,s]).filter(function(){return l?Ze.event.target.classList.contains(r.svgInstanceRef)||Ze.event.target.classList.contains(r.gInstanceRef)||Ze.event.shiftKey:!0}).on("zoom",function(){d.attr("transform",Ze.event.transform),typeof u=="function"&&(u({node:null,zoom:Ze.event.transform.k,translate:{x:Ze.event.transform.x,y:Ze.event.transform.y}}),r.state.d3.scale=Ze.event.transform.k,r.state.d3.translate={x:Ze.event.transform.x,y:Ze.event.transform.y})}))},t.assignInternalProperties=function(n,r){r===void 0&&(r=0);var i=Array.isArray(n)?n:[n];return i.map(function(o){var a=o;return a.__rd3t={id:null,depth:null,collapsed:!1},a.__rd3t.id=Ta.v4(),a.__rd3t.depth=r,a.children&&a.children.length>0&&(a.children=t.assignInternalProperties(a.children,r+1)),a})},t.prototype.findNodesById=function(n,r,i){var o=this;return i.length>0||(i=i.concat(r.filter(function(a){return a.__rd3t.id===n})),r.forEach(function(a){a.children&&a.children.length>0&&(i=o.findNodesById(n,a.children,i))})),i},t.prototype.findNodesAtDepth=function(n,r,i){var o=this;return i=i.concat(r.filter(function(a){return a.__rd3t.depth===n})),r.forEach(function(a){a.children&&a.children.length>0&&(i=o.findNodesAtDepth(n,a.children,i))}),i},t.collapseNode=function(n){n.__rd3t.collapsed=!0,n.children&&n.children.length>0&&n.children.forEach(function(r){t.collapseNode(r)})},t.expandNode=function(n){n.__rd3t.collapsed=!1},t.prototype.collapseNeighborNodes=function(n,r){var i=this.findNodesAtDepth(n.__rd3t.depth,r,[]).filter(function(o){return o.__rd3t.id!==n.__rd3t.id});i.forEach(function(o){return t.collapseNode(o)})},t.prototype.generateTree=function(){var n=this.props,r=n.initialDepth,i=n.depthFactor,o=n.separation,a=n.nodeSize,s=n.orientation,u=this.state.isInitialRenderForDataset,l=nc.tree().nodeSize(s==="horizontal"?[a.y,a.x]:[a.x,a.y]).separation(function(h,v){return h.parent.data.__rd3t.id===v.parent.data.__rd3t.id?o.siblings:o.nonSiblings}),c=l(nc.hierarchy(this.state.data[0],function(h){return h.__rd3t.collapsed?null:h.children})),d=c.descendants(),f=c.links();return r!==void 0&&u&&this.setInitialTreeDepth(d,r),i&&d.forEach(function(h){h.y=h.depth*i}),{nodes:d,links:f}},t.calculateD3Geometry=function(n){var r;return n.zoom>n.scaleExtent.max?r=n.scaleExtent.max:n.zoom<n.scaleExtent.min?r=n.scaleExtent.min:r=n.zoom,{translate:n.translate,scale:r}},t.prototype.render=function(){var n=this,r=this.generateTree(),i=r.nodes,o=r.links,a=this.props,s=a.renderCustomNodeElement,u=a.orientation,l=a.pathFunc,c=a.transitionDuration,d=a.nodeSize,f=a.depthFactor,h=a.initialDepth,v=a.separation,p=a.enableLegacyTransitions,g=a.svgClassName,x=a.pathClassFunc,w=this.state.d3,T=w.translate,b=w.scale,y=or(or(or({},d),v),{depthFactor:f,initialDepth:h});return Jt.default.createElement("div",{className:"rd3t-tree-container rd3t-grabbable"},Jt.default.createElement("style",null,Bm.default),Jt.default.createElement("svg",{className:"rd3t-svg "+this.svgInstanceRef+" "+g,width:"100%",height:"100%"},Jt.default.createElement(Ym.default,{enableLegacyTransitions:p,component:"g",className:"rd3t-g "+this.gInstanceRef,transform:"translate("+T.x+","+T.y+") scale("+b+")"},o.map(function(C,I){return Jt.default.createElement(Vm.default,{key:"link-"+I,orientation:u,pathFunc:l,pathClassFunc:x,linkData:C,onClick:n.handleOnLinkClickCb,onMouseOver:n.handleOnLinkMouseOverCb,onMouseOut:n.handleOnLinkMouseOutCb,enableLegacyTransitions:p,transitionDuration:c})}),i.map(function(C,I){var O=C.data,E=C.x,D=C.y,z=C.parent;return Jt.default.createElement(qm.default,{key:"node-"+I,data:O,position:{x:E,y:D},hierarchyPointNode:C,parent:z,nodeClassName:n.getNodeClassName(z,O),renderCustomNodeElement:s,nodeSize:d,orientation:u,enableLegacyTransitions:p,transitionDuration:c,onNodeToggle:n.handleNodeToggle,onNodeClick:n.handleOnNodeClickCb,onNodeMouseOver:n.handleOnNodeMouseOverCb,onNodeMouseOut:n.handleOnNodeMouseOutCb,subscriptions:y,centerNode:n.centerNode})}))))},t.defaultProps={onNodeClick:void 0,onNodeMouseOver:void 0,onNodeMouseOut:void 0,onLinkClick:void 0,onLinkMouseOver:void 0,onLinkMouseOut:void 0,onUpdate:void 0,orientation:"horizontal",translate:{x:0,y:0},pathFunc:"diagonal",pathClassFunc:void 0,transitionDuration:500,depthFactor:void 0,collapsible:!0,initialDepth:void 0,zoomable:!0,zoom:1,scaleExtent:{min:.1,max:1},nodeSize:{x:140,y:140},separation:{siblings:1,nonSiblings:2},shouldCollapseNeighborNodes:!1,svgClassName:"",rootNodeClassName:"",branchNodeClassName:"",leafNodeClassName:"",renderCustomNodeElement:void 0,enableLegacyTransitions:!1,hasInteractiveNodes:!1,dimensions:void 0,centeringTransitionDuration:800},t}(Jt.default.Component);Wi.default=Qm;var Wm=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Cs,"__esModule",{value:!0});var Gm=Wm(Wi),Km=Cs.default=Gm.default;const Hm=()=>{const[e,t]=W.useState({x:0,y:0}),[n,r]=W.useState({height:0,width:0}),i=W.useCallback(o=>{if(!o)return null;const{width:a,height:s}=o.getBoundingClientRect();return r({height:s,width:a}),t({x:a/2,y:s/2}),o},[]);return{dimensions:n,refContainer:i,translate:e}},rc=({color:e,height:t=20,width:n=20})=>oe("svg",{focusable:"false",x:"0px",y:"0px",viewBox:"0 0 24 24",color:e,height:t,width:n,children:[M("path",{fill:"currentColor",d:"M19.1,18H14v2c0,1.1-0.9,2-2,2s-2-0.9-2-2v-2H4.9c-0.8,0-1.3-0.9-0.8-1.5L7,12l0,0c-0.8,0-1.3-0.9-0.8-1.6l5-7.2 c0.4-0.6,1.2-0.6,1.6,0l0.6,0.9c-0.8,0.8-1.2,2-1.2,3.2c0,2.6,2.1,4.7,4.7,4.7H17l3,4.5C20.4,17.1,19.9,18,19.1,18z"}),M("path",{fill:"currentColor",d:"M20.6,7.3c0,0.4-0.4,0.8-0.8,0.8h-2.1v2.1c0,0.4-0.4,0.8-0.8,0.8s-0.8-0.4-0.8-0.8V8.1H14c-0.5,0-0.8-0.4-0.8-0.8 c0-0.5,0.4-0.8,0.8-0.8h2.1V4.4c0-0.5,0.4-0.8,0.8-0.8s0.8,0.4,0.8,0.8v2.1h2.1C20.3,6.5,20.6,6.8,20.6,7.3z"})]}),qt={currentHierarchyPointNode:null,currentTree:{errorName:"",id:"",name:""},dispatchTree:()=>null,endPoint:void 0,modalOpen:null,setCurrentHierarchyPointNode:()=>null,setCurrentTree:()=>null,setModalOpen:()=>null,setTreeModalOpen:()=>null,setTreePath:()=>null,tree:null,treeModalOpen:!1,treePath:[],version:void 0},ic=W.createContext(qt),at=()=>W.useContext(ic),Xm=()=>{const{setModalOpen:e}=at();return{handleClick:()=>e("add")}},Jm=()=>{const{t:e}=Je.useTranslation("button"),{handleClick:t}=Xm();return M(S.Box,{alignItems:"center",justifyContent:"center",display:"flex",height:"100%",children:M(S.Button,{onClick:t,size:"medium",variant:"contained",startIcon:M(rc,{}),children:e("createTree")})})},Na={container:{height:"100%",width:"100%"},progressContainer:{alignItems:"center",display:"flex",height:"100%",justifyContent:"center"},treeLink:{stroke:`${xe.borderGrey} !important`}},oc="tree-link",Zm=({data:e,renderCustomNodeElement:t,nodeSize:n={x:300,y:300}})=>{const{dimensions:r,refContainer:i,translate:o}=Hm(),{currentTree:a}=at();return!e&&!a.id?M(Jm,{}):a.id&&!e?M(S.Box,{sx:Na.progressContainer,children:M(S.CircularProgress,{})}):oe("div",{style:Na.container,ref:i,children:[M(S.GlobalStyles,{styles:{[`.${oc}`]:Na.treeLink}}),M(Km,{data:e,orientation:"vertical",translate:o,dimensions:r,renderCustomNodeElement:t,pathFunc:"diagonal",pathClassFunc:()=>oc,nodeSize:n})]})},ac=W.memo(Zm),ev=()=>({formatJSON:t=>JSON.stringify(t!=null?t:{},null,2)}),sc={fullHeight:{height:"100%"}},tv=({value:e})=>{const{formatJSON:t}=ev();return oe("div",{style:sc.fullHeight,children:[M(S.GlobalStyles,{styles:{".cm-activeLine.cm-line, .cm-gutterElement.cm-activeLineGutter":{backgroundColor:"transparent"}}}),M(id.default,{value:t(e),extensions:[Xf.json()],editable:!1,theme:Jf.dracula,height:"100%",style:sc.fullHeight})]})};var Ea={},Da={};function Zt(){return Zt=Object.assign?Object.assign.bind():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},Zt.apply(this,arguments)}function hi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function At(e,t,n={clone:!0}){const r=n.clone?Zt({},e):e;return hi(e)&&hi(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(hi(t[i])&&i in e&&hi(e[i])?r[i]=At(e[i],t[i],n):r[i]=t[i])}),r}function yn(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Oa={exports:{}},ge={};/**
107
107
  * @license React
108
108
  * react-is.production.min.js
109
109
  *
@@ -119,11 +119,11 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
119
119
  *
120
120
  * This source code is licensed under the MIT license found in the
121
121
  * LICENSE file in the root directory of this source tree.
122
- */var lc;function rv(){return lc||(lc=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=!1,p=!1,g=!1,x=!1,w=!1,T;T=Symbol.for("react.module.reference");function b(Q){return!!(typeof Q=="string"||typeof Q=="function"||Q===n||Q===i||w||Q===r||Q===l||Q===c||x||Q===h||v||p||g||typeof Q=="object"&&Q!==null&&(Q.$$typeof===f||Q.$$typeof===d||Q.$$typeof===o||Q.$$typeof===a||Q.$$typeof===u||Q.$$typeof===T||Q.getModuleId!==void 0))}function y(Q){if(typeof Q=="object"&&Q!==null){var lt=Q.$$typeof;switch(lt){case e:var vt=Q.type;switch(vt){case n:case i:case r:case l:case c:return vt;default:var en=vt&&vt.$$typeof;switch(en){case s:case a:case u:case f:case d:case o:return en;default:return lt}}case t:return lt}}}var C=a,I=o,O=e,E=u,D=n,k=f,m=d,N=t,z=i,R=r,L=l,V=c,q=!1,ee=!1;function A(Q){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(Q){return ee||(ee=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(Q){return y(Q)===a}function B(Q){return y(Q)===o}function U(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===e}function X(Q){return y(Q)===u}function K(Q){return y(Q)===n}function J(Q){return y(Q)===f}function Z(Q){return y(Q)===d}function ne(Q){return y(Q)===t}function te(Q){return y(Q)===i}function ze(Q){return y(Q)===r}function Y(Q){return y(Q)===l}function Ke(Q){return y(Q)===c}me.ContextConsumer=C,me.ContextProvider=I,me.Element=O,me.ForwardRef=E,me.Fragment=D,me.Lazy=k,me.Memo=m,me.Portal=N,me.Profiler=z,me.StrictMode=R,me.Suspense=L,me.SuspenseList=V,me.isAsyncMode=A,me.isConcurrentMode=$,me.isContextConsumer=G,me.isContextProvider=B,me.isElement=U,me.isForwardRef=X,me.isFragment=K,me.isLazy=J,me.isMemo=Z,me.isPortal=ne,me.isProfiler=te,me.isStrictMode=ze,me.isSuspense=Y,me.isSuspenseList=Ke,me.isValidElementType=b,me.typeOf=y}()),me}(function(e){process.env.NODE_ENV==="production"?e.exports=nv():e.exports=rv()})(Oa);const iv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ov(e){const t=`${e}`.match(iv);return t&&t[1]||""}function cc(e,t=""){return e.displayName||e.name||ov(e)||t}function fc(e,t,n){const r=cc(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function av(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return cc(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Oa.exports.ForwardRef:return fc(e,e.render,"ForwardRef");case Oa.exports.Memo:return fc(e,e.type,"memo");default:return}}}function wt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":yn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function sv(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function uv(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function lv(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,i,o,a)=>{const s=i||"<<anonymous>>",u=a||r;return typeof n[r]<"u"?new Error(`The ${o} \`${u}\` of \`${s}\` is deprecated. ${t}`):null}}function cv(e,t){return Me.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function dc(e){return e&&e.ownerDocument||document}function fv(e){return dc(e).defaultView||window}function dv(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?Zt({},t.propTypes):null;return i=>(o,a,s,u,l,...c)=>{const d=l||a,f=n==null?void 0:n[d];if(f){const h=f(o,a,s,u,l,...c);if(h)return h}return typeof o[a]<"u"&&!o[i]?new Error(`The prop \`${d}\` of \`${e}\` can only be used together with the \`${i}\` prop.`):null}}function hc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const pc=typeof window<"u"?Me.useLayoutEffect:Me.useEffect;let gc=0;function hv(e){const[t,n]=Me.useState(e),r=e||t;return Me.useEffect(()=>{t==null&&(gc+=1,n(`mui-${gc}`))},[t]),r}const mc=Me["useId"];function pv(e){if(mc!==void 0){const t=mc();return e!=null?e:t}return hv(e)}function gv(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const o=i||t;return typeof e[t]<"u"?new Error(`The prop \`${o}\` is not supported. Please remove it.`):null}function mv({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=Me.useRef(e!==void 0),[o,a]=Me.useState(t),s=i?e:o;if(process.env.NODE_ENV!=="production"){Me.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
122
+ */var lc;function rv(){return lc||(lc=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=!1,p=!1,g=!1,x=!1,w=!1,T;T=Symbol.for("react.module.reference");function b(Q){return!!(typeof Q=="string"||typeof Q=="function"||Q===n||Q===i||w||Q===r||Q===l||Q===c||x||Q===h||v||p||g||typeof Q=="object"&&Q!==null&&(Q.$$typeof===f||Q.$$typeof===d||Q.$$typeof===o||Q.$$typeof===a||Q.$$typeof===u||Q.$$typeof===T||Q.getModuleId!==void 0))}function y(Q){if(typeof Q=="object"&&Q!==null){var lt=Q.$$typeof;switch(lt){case e:var vt=Q.type;switch(vt){case n:case i:case r:case l:case c:return vt;default:var en=vt&&vt.$$typeof;switch(en){case s:case a:case u:case f:case d:case o:return en;default:return lt}}case t:return lt}}}var C=a,I=o,O=e,E=u,D=n,z=f,m=d,N=t,k=i,R=r,L=l,V=c,q=!1,ee=!1;function A(Q){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(Q){return ee||(ee=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(Q){return y(Q)===a}function B(Q){return y(Q)===o}function U(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===e}function X(Q){return y(Q)===u}function K(Q){return y(Q)===n}function J(Q){return y(Q)===f}function Z(Q){return y(Q)===d}function ne(Q){return y(Q)===t}function te(Q){return y(Q)===i}function ke(Q){return y(Q)===r}function Y(Q){return y(Q)===l}function Ke(Q){return y(Q)===c}me.ContextConsumer=C,me.ContextProvider=I,me.Element=O,me.ForwardRef=E,me.Fragment=D,me.Lazy=z,me.Memo=m,me.Portal=N,me.Profiler=k,me.StrictMode=R,me.Suspense=L,me.SuspenseList=V,me.isAsyncMode=A,me.isConcurrentMode=$,me.isContextConsumer=G,me.isContextProvider=B,me.isElement=U,me.isForwardRef=X,me.isFragment=K,me.isLazy=J,me.isMemo=Z,me.isPortal=ne,me.isProfiler=te,me.isStrictMode=ke,me.isSuspense=Y,me.isSuspenseList=Ke,me.isValidElementType=b,me.typeOf=y}()),me}(function(e){process.env.NODE_ENV==="production"?e.exports=nv():e.exports=rv()})(Oa);const iv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ov(e){const t=`${e}`.match(iv);return t&&t[1]||""}function cc(e,t=""){return e.displayName||e.name||ov(e)||t}function fc(e,t,n){const r=cc(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function av(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return cc(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Oa.exports.ForwardRef:return fc(e,e.render,"ForwardRef");case Oa.exports.Memo:return fc(e,e.type,"memo");default:return}}}function wt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":yn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function sv(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function uv(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function lv(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,i,o,a)=>{const s=i||"<<anonymous>>",u=a||r;return typeof n[r]<"u"?new Error(`The ${o} \`${u}\` of \`${s}\` is deprecated. ${t}`):null}}function cv(e,t){return Me.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function dc(e){return e&&e.ownerDocument||document}function fv(e){return dc(e).defaultView||window}function dv(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?Zt({},t.propTypes):null;return i=>(o,a,s,u,l,...c)=>{const d=l||a,f=n==null?void 0:n[d];if(f){const h=f(o,a,s,u,l,...c);if(h)return h}return typeof o[a]<"u"&&!o[i]?new Error(`The prop \`${d}\` of \`${e}\` can only be used together with the \`${i}\` prop.`):null}}function hc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const pc=typeof window<"u"?Me.useLayoutEffect:Me.useEffect;let gc=0;function hv(e){const[t,n]=Me.useState(e),r=e||t;return Me.useEffect(()=>{t==null&&(gc+=1,n(`mui-${gc}`))},[t]),r}const mc=Me["useId"];function pv(e){if(mc!==void 0){const t=mc();return e!=null?e:t}return hv(e)}function gv(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const o=i||t;return typeof e[t]<"u"?new Error(`The prop \`${o}\` is not supported. Please remove it.`):null}function mv({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=Me.useRef(e!==void 0),[o,a]=Me.useState(t),s=i?e:o;if(process.env.NODE_ENV!=="production"){Me.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
123
123
  `))},[r,n,e]);const{current:l}=Me.useRef(t);Me.useEffect(()=>{!i&&l!==t&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
124
- `))},[JSON.stringify(t)])}const u=Me.useCallback(l=>{i||a(l)},[]);return[s,u]}function vv(e){const t=Me.useRef(e);return pc(()=>{t.current=e}),Me.useCallback((...n)=>(0,t.current)(...n),[])}function yv(...e){return Me.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{hc(n,t)})},e)}let pi=!0,Ca=!1,vc;const _v={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 bv(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&_v[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function xv(e){e.metaKey||e.altKey||e.ctrlKey||(pi=!0)}function Sa(){pi=!1}function Mv(){this.visibilityState==="hidden"&&Ca&&(pi=!0)}function wv(e){e.addEventListener("keydown",xv,!0),e.addEventListener("mousedown",Sa,!0),e.addEventListener("pointerdown",Sa,!0),e.addEventListener("touchstart",Sa,!0),e.addEventListener("visibilitychange",Mv,!0)}function Tv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return pi||bv(t)}function Nv(){const e=Me.useCallback(i=>{i!=null&&wv(i.ownerDocument)},[]),t=Me.useRef(!1);function n(){return t.current?(Ca=!0,window.clearTimeout(vc),vc=window.setTimeout(()=>{Ca=!1},100),t.current=!1,!0):!1}function r(i){return Tv(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function yc(e,t){const n=Zt({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Zt({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=Zt({},o),Object.keys(i).forEach(a=>{n[r][a]=yc(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ev(e,t,n){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>(a&&(o.push(t(a)),n&&n[a]&&o.push(n[a])),o),[]).join(" ")}),r}const _c=e=>e,bc=(()=>{let e=_c;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_c}}})(),Dv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Aa(e,t,n="Mui"){const r=Dv[t];return r?`${n}-${r}`:`${bc.generate(e)}-${t}`}function Ov(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Aa(e,i,n)}),r}function We(){return We=Object.assign?Object.assign.bind():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},We.apply(this,arguments)}function sr(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function xc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=xc(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Cv(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=xc(e))&&(r&&(r+=" "),r+=t);return r}function Ia(){return Ia=Object.assign?Object.assign.bind():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},Ia.apply(this,arguments)}function Mc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Sv=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Av=Mc(function(e){return Sv.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Iv(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function zv(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var kv=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(zv(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
125
- `+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var a=Iv(i);try{a.insertRule(r,a.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',s)}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Ge="-ms-",gi="-moz-",fe="-webkit-",za="comm",ka="rule",ja="decl",jv="@import",wc="@keyframes",$v=Math.abs,mi=String.fromCharCode,Rv=Object.assign;function Lv(e,t){return Re(e,0)^45?(((t<<2^Re(e,0))<<2^Re(e,1))<<2^Re(e,2))<<2^Re(e,3):0}function Tc(e){return e.trim()}function Pv(e,t){return(e=t.exec(e))?e[0]:e}function ve(e,t,n){return e.replace(t,n)}function $a(e,t){return e.indexOf(t)}function Re(e,t){return e.charCodeAt(t)|0}function ur(e,t,n){return e.slice(t,n)}function Tt(e){return e.length}function Ra(e){return e.length}function vi(e,t){return t.push(e),e}function Fv(e,t){return e.map(t).join("")}var yi=1,_n=1,Nc=0,et=0,Ie=0,bn="";function _i(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:yi,column:_n,length:a,return:""}}function lr(e,t){return Rv(_i("",null,null,"",null,null,0),e,{length:-e.length},t)}function Uv(){return Ie}function Yv(){return Ie=et>0?Re(bn,--et):0,_n--,Ie===10&&(_n=1,yi--),Ie}function st(){return Ie=et<Nc?Re(bn,et++):0,_n++,Ie===10&&(_n=1,yi++),Ie}function Nt(){return Re(bn,et)}function bi(){return et}function cr(e,t){return ur(bn,e,t)}function fr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ec(e){return yi=_n=1,Nc=Tt(bn=e),et=0,[]}function Dc(e){return bn="",e}function xi(e){return Tc(cr(et-1,La(e===91?e+2:e===40?e+1:e)))}function qv(e){for(;(Ie=Nt())&&Ie<33;)st();return fr(e)>2||fr(Ie)>3?"":" "}function Vv(e,t){for(;--t&&st()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return cr(e,bi()+(t<6&&Nt()==32&&st()==32))}function La(e){for(;st();)switch(Ie){case e:return et;case 34:case 39:e!==34&&e!==39&&La(Ie);break;case 40:e===41&&La(e);break;case 92:st();break}return et}function Bv(e,t){for(;st()&&e+Ie!==47+10;)if(e+Ie===42+42&&Nt()===47)break;return"/*"+cr(t,et-1)+"*"+mi(e===47?e:st())}function Qv(e){for(;!fr(Nt());)st();return cr(e,et)}function Wv(e){return Dc(Mi("",null,null,null,[""],e=Ec(e),0,[0],e))}function Mi(e,t,n,r,i,o,a,s,u){for(var l=0,c=0,d=a,f=0,h=0,v=0,p=1,g=1,x=1,w=0,T="",b=i,y=o,C=r,I=T;g;)switch(v=w,w=st()){case 40:if(v!=108&&Re(I,d-1)==58){$a(I+=ve(xi(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:I+=xi(w);break;case 9:case 10:case 13:case 32:I+=qv(v);break;case 92:I+=Vv(bi()-1,7);continue;case 47:switch(Nt()){case 42:case 47:vi(Gv(Bv(st(),bi()),t,n),u);break;default:I+="/"}break;case 123*p:s[l++]=Tt(I)*x;case 125*p:case 59:case 0:switch(w){case 0:case 125:g=0;case 59+c:h>0&&Tt(I)-d&&vi(h>32?Cc(I+";",r,n,d-1):Cc(ve(I," ","")+";",r,n,d-2),u);break;case 59:I+=";";default:if(vi(C=Oc(I,t,n,l,c,i,s,T,b=[],y=[],d),o),w===123)if(c===0)Mi(I,t,C,C,b,o,d,s,y);else switch(f===99&&Re(I,3)===110?100:f){case 100:case 109:case 115:Mi(e,C,C,r&&vi(Oc(e,C,C,0,0,i,s,T,i,b=[],d),y),i,y,d,s,r?b:y);break;default:Mi(I,C,C,C,[""],y,0,s,y)}}l=c=h=0,p=x=1,T=I="",d=a;break;case 58:d=1+Tt(I),h=v;default:if(p<1){if(w==123)--p;else if(w==125&&p++==0&&Yv()==125)continue}switch(I+=mi(w),w*p){case 38:x=c>0?1:(I+="\f",-1);break;case 44:s[l++]=(Tt(I)-1)*x,x=1;break;case 64:Nt()===45&&(I+=xi(st())),f=Nt(),c=d=Tt(T=I+=Qv(bi())),w++;break;case 45:v===45&&Tt(I)==2&&(p=0)}}return o}function Oc(e,t,n,r,i,o,a,s,u,l,c){for(var d=i-1,f=i===0?o:[""],h=Ra(f),v=0,p=0,g=0;v<r;++v)for(var x=0,w=ur(e,d+1,d=$v(p=a[v])),T=e;x<h;++x)(T=Tc(p>0?f[x]+" "+w:ve(w,/&\f/g,f[x])))&&(u[g++]=T);return _i(e,t,n,i===0?ka:s,u,l,c)}function Gv(e,t,n){return _i(e,t,n,za,mi(Uv()),ur(e,2,-2),0)}function Cc(e,t,n,r){return _i(e,t,n,ja,ur(e,0,r),ur(e,r+1,-1),r)}function xn(e,t){for(var n="",r=Ra(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Kv(e,t,n,r){switch(e.type){case jv:case ja:return e.return=e.return||e.value;case za:return"";case wc:return e.return=e.value+"{"+xn(e.children,r)+"}";case ka:e.value=e.props.join(",")}return Tt(n=xn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Hv(e){var t=Ra(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function Xv(e){return function(t){t.root||(t=t.return)&&e(t)}}var Jv=function(t,n,r){for(var i=0,o=0;i=o,o=Nt(),i===38&&o===12&&(n[r]=1),!fr(o);)st();return cr(t,et)},Zv=function(t,n){var r=-1,i=44;do switch(fr(i)){case 0:i===38&&Nt()===12&&(n[r]=1),t[r]+=Jv(et-1,n,r);break;case 2:t[r]+=xi(i);break;case 4:if(i===44){t[++r]=Nt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=mi(i)}while(i=st());return t},ey=function(t,n){return Dc(Zv(Ec(t),n))},Sc=new WeakMap,ty=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Sc.get(r))&&!i){Sc.set(t,!0);for(var o=[],a=ey(n,o),s=r.props,u=0,l=0;u<a.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=o[u]?a[u].replace(/&\f/g,s[c]):s[c]+" "+a[u]}}},ny=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},ry="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",iy=function(t){return t.type==="comm"&&t.children.indexOf(ry)>-1},oy=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var o=n.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=n.parent===i[0],s=a?i[0].children:i,u=s.length-1;u>=0;u--){var l=s[u];if(l.line<n.line)break;if(l.column<n.column){if(iy(l))return;break}}o.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Ac=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},ay=function(t,n){for(var r=t-1;r>=0;r--)if(!Ac(n[r]))return!0;return!1},Ic=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},sy=function(t,n,r){!Ac(t)||(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Ic(t)):ay(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ic(t)))};function zc(e,t){switch(Lv(e,t)){case 5103:return fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fe+e+gi+e+Ge+e+e;case 6828:case 4268:return fe+e+Ge+e+e;case 6165:return fe+e+Ge+"flex-"+e+e;case 5187:return fe+e+ve(e,/(\w+).+(:[^]+)/,fe+"box-$1$2"+Ge+"flex-$1$2")+e;case 5443:return fe+e+Ge+"flex-item-"+ve(e,/flex-|-self/,"")+e;case 4675:return fe+e+Ge+"flex-line-pack"+ve(e,/align-content|flex-|-self/,"")+e;case 5548:return fe+e+Ge+ve(e,"shrink","negative")+e;case 5292:return fe+e+Ge+ve(e,"basis","preferred-size")+e;case 6060:return fe+"box-"+ve(e,"-grow","")+fe+e+Ge+ve(e,"grow","positive")+e;case 4554:return fe+ve(e,/([^-])(transform)/g,"$1"+fe+"$2")+e;case 6187:return ve(ve(ve(e,/(zoom-|grab)/,fe+"$1"),/(image-set)/,fe+"$1"),e,"")+e;case 5495:case 3959:return ve(e,/(image-set\([^]*)/,fe+"$1$`$1");case 4968:return ve(ve(e,/(.+:)(flex-)?(.*)/,fe+"box-pack:$3"+Ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fe+e+e;case 4095:case 3583:case 4068:case 2532:return ve(e,/(.+)-inline(.+)/,fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tt(e)-1-t>6)switch(Re(e,t+1)){case 109:if(Re(e,t+4)!==45)break;case 102:return ve(e,/(.+:)(.+)-([^]+)/,"$1"+fe+"$2-$3$1"+gi+(Re(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$a(e,"stretch")?zc(ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Re(e,t+1)!==115)break;case 6444:switch(Re(e,Tt(e)-3-(~$a(e,"!important")&&10))){case 107:return ve(e,":",":"+fe)+e;case 101:return ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fe+(Re(e,14)===45?"inline-":"")+"box$3$1"+fe+"$2$3$1"+Ge+"$2box$3")+e}break;case 5936:switch(Re(e,t+11)){case 114:return fe+e+Ge+ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fe+e+Ge+ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fe+e+Ge+ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fe+e+Ge+e+e}return e}var uy=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case ja:t.return=zc(t.value,t.length);break;case wc:return xn([lr(t,{value:ve(t.value,"@","@"+fe)})],i);case ka:if(t.length)return Fv(t.props,function(o){switch(Pv(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([lr(t,{props:[ve(o,/:(read-\w+)/,":"+gi+"$1")]})],i);case"::placeholder":return xn([lr(t,{props:[ve(o,/:(plac\w+)/,":"+fe+"input-$1")]}),lr(t,{props:[ve(o,/:(plac\w+)/,":"+gi+"$1")]}),lr(t,{props:[ve(o,/:(plac\w+)/,Ge+"input-$1")]})],i)}return""})}},ly=[uy],cy=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
126
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var g=p.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||ly;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var g=p.getAttribute("data-emotion").split(" "),x=1;x<g.length;x++)o[g[x]]=!0;s.push(p)});var u,l=[ty,ny];process.env.NODE_ENV!=="production"&&l.push(oy({get compat(){return v.compat}}),sy);{var c,d=[Kv,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?c.insert(p.return):p.value&&p.type!==za&&c.insert(p.value+"{}"))}:Xv(function(p){c.insert(p)})],f=Hv(l.concat(i,d)),h=function(g){return xn(Wv(g),f)};u=function(g,x,w,T){c=w,process.env.NODE_ENV!=="production"&&x.map!==void 0&&(c={insert:function(y){w.insert(y+x.map)}}),h(g?g+"{"+x.styles+"}":x.styles),T&&(v.inserted[x.name]=!0)}}var v={key:n,sheet:new kv({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return v.sheet.hydrate(s),v},fy=!0;function kc(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Pa=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||fy===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},jc=function(t,n,r){Pa(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function dy(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var hy={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$c=`You have illegal escape sequence in your template literal, most likely inside content's property value.
124
+ `))},[JSON.stringify(t)])}const u=Me.useCallback(l=>{i||a(l)},[]);return[s,u]}function vv(e){const t=Me.useRef(e);return pc(()=>{t.current=e}),Me.useCallback((...n)=>(0,t.current)(...n),[])}function yv(...e){return Me.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{hc(n,t)})},e)}let pi=!0,Ca=!1,vc;const _v={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 bv(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&_v[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function xv(e){e.metaKey||e.altKey||e.ctrlKey||(pi=!0)}function Sa(){pi=!1}function Mv(){this.visibilityState==="hidden"&&Ca&&(pi=!0)}function wv(e){e.addEventListener("keydown",xv,!0),e.addEventListener("mousedown",Sa,!0),e.addEventListener("pointerdown",Sa,!0),e.addEventListener("touchstart",Sa,!0),e.addEventListener("visibilitychange",Mv,!0)}function Tv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return pi||bv(t)}function Nv(){const e=Me.useCallback(i=>{i!=null&&wv(i.ownerDocument)},[]),t=Me.useRef(!1);function n(){return t.current?(Ca=!0,window.clearTimeout(vc),vc=window.setTimeout(()=>{Ca=!1},100),t.current=!1,!0):!1}function r(i){return Tv(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function yc(e,t){const n=Zt({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Zt({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=Zt({},o),Object.keys(i).forEach(a=>{n[r][a]=yc(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ev(e,t,n){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>(a&&(o.push(t(a)),n&&n[a]&&o.push(n[a])),o),[]).join(" ")}),r}const _c=e=>e,bc=(()=>{let e=_c;return{configure(t){e=t},generate(t){return e(t)},reset(){e=_c}}})(),Dv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Aa(e,t,n="Mui"){const r=Dv[t];return r?`${n}-${r}`:`${bc.generate(e)}-${t}`}function Ov(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Aa(e,i,n)}),r}function We(){return We=Object.assign?Object.assign.bind():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},We.apply(this,arguments)}function sr(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function xc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=xc(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Cv(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=xc(e))&&(r&&(r+=" "),r+=t);return r}function Ia(){return Ia=Object.assign?Object.assign.bind():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},Ia.apply(this,arguments)}function Mc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Sv=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Av=Mc(function(e){return Sv.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Iv(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function kv(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var zv=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(kv(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
125
+ `+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var a=Iv(i);try{a.insertRule(r,a.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',s)}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Ge="-ms-",gi="-moz-",fe="-webkit-",ka="comm",za="rule",ja="decl",jv="@import",wc="@keyframes",$v=Math.abs,mi=String.fromCharCode,Rv=Object.assign;function Lv(e,t){return Re(e,0)^45?(((t<<2^Re(e,0))<<2^Re(e,1))<<2^Re(e,2))<<2^Re(e,3):0}function Tc(e){return e.trim()}function Pv(e,t){return(e=t.exec(e))?e[0]:e}function ve(e,t,n){return e.replace(t,n)}function $a(e,t){return e.indexOf(t)}function Re(e,t){return e.charCodeAt(t)|0}function ur(e,t,n){return e.slice(t,n)}function Tt(e){return e.length}function Ra(e){return e.length}function vi(e,t){return t.push(e),e}function Fv(e,t){return e.map(t).join("")}var yi=1,_n=1,Nc=0,et=0,Ie=0,bn="";function _i(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:yi,column:_n,length:a,return:""}}function lr(e,t){return Rv(_i("",null,null,"",null,null,0),e,{length:-e.length},t)}function Uv(){return Ie}function Yv(){return Ie=et>0?Re(bn,--et):0,_n--,Ie===10&&(_n=1,yi--),Ie}function st(){return Ie=et<Nc?Re(bn,et++):0,_n++,Ie===10&&(_n=1,yi++),Ie}function Nt(){return Re(bn,et)}function bi(){return et}function cr(e,t){return ur(bn,e,t)}function fr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ec(e){return yi=_n=1,Nc=Tt(bn=e),et=0,[]}function Dc(e){return bn="",e}function xi(e){return Tc(cr(et-1,La(e===91?e+2:e===40?e+1:e)))}function qv(e){for(;(Ie=Nt())&&Ie<33;)st();return fr(e)>2||fr(Ie)>3?"":" "}function Vv(e,t){for(;--t&&st()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return cr(e,bi()+(t<6&&Nt()==32&&st()==32))}function La(e){for(;st();)switch(Ie){case e:return et;case 34:case 39:e!==34&&e!==39&&La(Ie);break;case 40:e===41&&La(e);break;case 92:st();break}return et}function Bv(e,t){for(;st()&&e+Ie!==47+10;)if(e+Ie===42+42&&Nt()===47)break;return"/*"+cr(t,et-1)+"*"+mi(e===47?e:st())}function Qv(e){for(;!fr(Nt());)st();return cr(e,et)}function Wv(e){return Dc(Mi("",null,null,null,[""],e=Ec(e),0,[0],e))}function Mi(e,t,n,r,i,o,a,s,u){for(var l=0,c=0,d=a,f=0,h=0,v=0,p=1,g=1,x=1,w=0,T="",b=i,y=o,C=r,I=T;g;)switch(v=w,w=st()){case 40:if(v!=108&&Re(I,d-1)==58){$a(I+=ve(xi(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:I+=xi(w);break;case 9:case 10:case 13:case 32:I+=qv(v);break;case 92:I+=Vv(bi()-1,7);continue;case 47:switch(Nt()){case 42:case 47:vi(Gv(Bv(st(),bi()),t,n),u);break;default:I+="/"}break;case 123*p:s[l++]=Tt(I)*x;case 125*p:case 59:case 0:switch(w){case 0:case 125:g=0;case 59+c:h>0&&Tt(I)-d&&vi(h>32?Cc(I+";",r,n,d-1):Cc(ve(I," ","")+";",r,n,d-2),u);break;case 59:I+=";";default:if(vi(C=Oc(I,t,n,l,c,i,s,T,b=[],y=[],d),o),w===123)if(c===0)Mi(I,t,C,C,b,o,d,s,y);else switch(f===99&&Re(I,3)===110?100:f){case 100:case 109:case 115:Mi(e,C,C,r&&vi(Oc(e,C,C,0,0,i,s,T,i,b=[],d),y),i,y,d,s,r?b:y);break;default:Mi(I,C,C,C,[""],y,0,s,y)}}l=c=h=0,p=x=1,T=I="",d=a;break;case 58:d=1+Tt(I),h=v;default:if(p<1){if(w==123)--p;else if(w==125&&p++==0&&Yv()==125)continue}switch(I+=mi(w),w*p){case 38:x=c>0?1:(I+="\f",-1);break;case 44:s[l++]=(Tt(I)-1)*x,x=1;break;case 64:Nt()===45&&(I+=xi(st())),f=Nt(),c=d=Tt(T=I+=Qv(bi())),w++;break;case 45:v===45&&Tt(I)==2&&(p=0)}}return o}function Oc(e,t,n,r,i,o,a,s,u,l,c){for(var d=i-1,f=i===0?o:[""],h=Ra(f),v=0,p=0,g=0;v<r;++v)for(var x=0,w=ur(e,d+1,d=$v(p=a[v])),T=e;x<h;++x)(T=Tc(p>0?f[x]+" "+w:ve(w,/&\f/g,f[x])))&&(u[g++]=T);return _i(e,t,n,i===0?za:s,u,l,c)}function Gv(e,t,n){return _i(e,t,n,ka,mi(Uv()),ur(e,2,-2),0)}function Cc(e,t,n,r){return _i(e,t,n,ja,ur(e,0,r),ur(e,r+1,-1),r)}function xn(e,t){for(var n="",r=Ra(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Kv(e,t,n,r){switch(e.type){case jv:case ja:return e.return=e.return||e.value;case ka:return"";case wc:return e.return=e.value+"{"+xn(e.children,r)+"}";case za:e.value=e.props.join(",")}return Tt(n=xn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Hv(e){var t=Ra(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function Xv(e){return function(t){t.root||(t=t.return)&&e(t)}}var Jv=function(t,n,r){for(var i=0,o=0;i=o,o=Nt(),i===38&&o===12&&(n[r]=1),!fr(o);)st();return cr(t,et)},Zv=function(t,n){var r=-1,i=44;do switch(fr(i)){case 0:i===38&&Nt()===12&&(n[r]=1),t[r]+=Jv(et-1,n,r);break;case 2:t[r]+=xi(i);break;case 4:if(i===44){t[++r]=Nt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=mi(i)}while(i=st());return t},ey=function(t,n){return Dc(Zv(Ec(t),n))},Sc=new WeakMap,ty=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Sc.get(r))&&!i){Sc.set(t,!0);for(var o=[],a=ey(n,o),s=r.props,u=0,l=0;u<a.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=o[u]?a[u].replace(/&\f/g,s[c]):s[c]+" "+a[u]}}},ny=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},ry="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",iy=function(t){return t.type==="comm"&&t.children.indexOf(ry)>-1},oy=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var o=n.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=n.parent===i[0],s=a?i[0].children:i,u=s.length-1;u>=0;u--){var l=s[u];if(l.line<n.line)break;if(l.column<n.column){if(iy(l))return;break}}o.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Ac=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},ay=function(t,n){for(var r=t-1;r>=0;r--)if(!Ac(n[r]))return!0;return!1},Ic=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},sy=function(t,n,r){!Ac(t)||(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Ic(t)):ay(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Ic(t)))};function kc(e,t){switch(Lv(e,t)){case 5103:return fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fe+e+gi+e+Ge+e+e;case 6828:case 4268:return fe+e+Ge+e+e;case 6165:return fe+e+Ge+"flex-"+e+e;case 5187:return fe+e+ve(e,/(\w+).+(:[^]+)/,fe+"box-$1$2"+Ge+"flex-$1$2")+e;case 5443:return fe+e+Ge+"flex-item-"+ve(e,/flex-|-self/,"")+e;case 4675:return fe+e+Ge+"flex-line-pack"+ve(e,/align-content|flex-|-self/,"")+e;case 5548:return fe+e+Ge+ve(e,"shrink","negative")+e;case 5292:return fe+e+Ge+ve(e,"basis","preferred-size")+e;case 6060:return fe+"box-"+ve(e,"-grow","")+fe+e+Ge+ve(e,"grow","positive")+e;case 4554:return fe+ve(e,/([^-])(transform)/g,"$1"+fe+"$2")+e;case 6187:return ve(ve(ve(e,/(zoom-|grab)/,fe+"$1"),/(image-set)/,fe+"$1"),e,"")+e;case 5495:case 3959:return ve(e,/(image-set\([^]*)/,fe+"$1$`$1");case 4968:return ve(ve(e,/(.+:)(flex-)?(.*)/,fe+"box-pack:$3"+Ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fe+e+e;case 4095:case 3583:case 4068:case 2532:return ve(e,/(.+)-inline(.+)/,fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tt(e)-1-t>6)switch(Re(e,t+1)){case 109:if(Re(e,t+4)!==45)break;case 102:return ve(e,/(.+:)(.+)-([^]+)/,"$1"+fe+"$2-$3$1"+gi+(Re(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$a(e,"stretch")?kc(ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Re(e,t+1)!==115)break;case 6444:switch(Re(e,Tt(e)-3-(~$a(e,"!important")&&10))){case 107:return ve(e,":",":"+fe)+e;case 101:return ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fe+(Re(e,14)===45?"inline-":"")+"box$3$1"+fe+"$2$3$1"+Ge+"$2box$3")+e}break;case 5936:switch(Re(e,t+11)){case 114:return fe+e+Ge+ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fe+e+Ge+ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fe+e+Ge+ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fe+e+Ge+e+e}return e}var uy=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case ja:t.return=kc(t.value,t.length);break;case wc:return xn([lr(t,{value:ve(t.value,"@","@"+fe)})],i);case za:if(t.length)return Fv(t.props,function(o){switch(Pv(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([lr(t,{props:[ve(o,/:(read-\w+)/,":"+gi+"$1")]})],i);case"::placeholder":return xn([lr(t,{props:[ve(o,/:(plac\w+)/,":"+fe+"input-$1")]}),lr(t,{props:[ve(o,/:(plac\w+)/,":"+gi+"$1")]}),lr(t,{props:[ve(o,/:(plac\w+)/,Ge+"input-$1")]})],i)}return""})}},ly=[uy],cy=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
126
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var g=p.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||ly;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var g=p.getAttribute("data-emotion").split(" "),x=1;x<g.length;x++)o[g[x]]=!0;s.push(p)});var u,l=[ty,ny];process.env.NODE_ENV!=="production"&&l.push(oy({get compat(){return v.compat}}),sy);{var c,d=[Kv,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?c.insert(p.return):p.value&&p.type!==ka&&c.insert(p.value+"{}"))}:Xv(function(p){c.insert(p)})],f=Hv(l.concat(i,d)),h=function(g){return xn(Wv(g),f)};u=function(g,x,w,T){c=w,process.env.NODE_ENV!=="production"&&x.map!==void 0&&(c={insert:function(y){w.insert(y+x.map)}}),h(g?g+"{"+x.styles+"}":x.styles),T&&(v.inserted[x.name]=!0)}}var v={key:n,sheet:new zv({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return v.sheet.hydrate(s),v},fy=!0;function zc(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Pa=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||fy===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},jc=function(t,n,r){Pa(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function dy(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var hy={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$c=`You have illegal escape sequence in your template literal, most likely inside content's property value.
127
127
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
128
128
  You can read more about this here:
129
129
  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,py="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",gy=/[A-Z]|^ms/g,Rc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fa=function(t){return t.charCodeAt(1)===45},Lc=function(t){return t!=null&&typeof t!="boolean"},Ua=Mc(function(e){return Fa(e)?e:e.replace(gy,"-$&").toLowerCase()}),wi=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Rc,function(r,i,o){return mt={name:i,styles:o,next:mt},i})}return hy[t]!==1&&!Fa(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var my=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,vy=["normal","none","initial","inherit","unset"],yy=wi,_y=/^-ms-/,by=/-(.)/g,Pc={};wi=function(t,n){if(t==="content"&&(typeof n!="string"||vy.indexOf(n)===-1&&!my.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=yy(t,n);return r!==""&&!Fa(t)&&t.indexOf("-")!==-1&&Pc[t]===void 0&&(Pc[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(_y,"ms-").replace(by,function(i,o){return o.toUpperCase()})+"?")),r}}var Fc="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function dr(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Fc);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return mt={name:n.name,styles:n.styles,next:mt},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)mt={name:r.name,styles:r.styles,next:mt},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return xy(e,t,n)}case"function":{if(e!==void 0){var o=mt,a=n(e);return mt=o,dr(e,t,a)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var s=[],u=n.replace(Rc,function(c,d,f){var h="animation"+s.length;return s.push("const "+h+" = keyframes`"+f.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+h+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+u+"`"]).join(`
@@ -131,19 +131,19 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
131
131
 
132
132
  You should wrap it with \`css\` like this:
133
133
 
134
- `+("css`"+u+"`"))}break}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function xy(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=dr(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=o+"{"+t[a]+"}":Lc(a)&&(r+=Ua(o)+":"+wi(o,a)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Fc);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Lc(a[s])&&(r+=Ua(o)+":"+wi(o,a[s])+";");else{var u=dr(e,t,a);switch(o){case"animation":case"animationName":{r+=Ua(o)+":"+u+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(py),r+=o+"{"+u+"}"}}}}return r}var Uc=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Yc;process.env.NODE_ENV!=="production"&&(Yc=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var mt,Ya=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";mt=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=dr(r,n,a)):(process.env.NODE_ENV!=="production"&&a[0]===void 0&&console.error($c),o+=a[0]);for(var s=1;s<t.length;s++)o+=dr(r,n,t[s]),i&&(process.env.NODE_ENV!=="production"&&a[s]===void 0&&console.error($c),o+=a[s]);var u;process.env.NODE_ENV!=="production"&&(o=o.replace(Yc,function(f){return u=f,""})),Uc.lastIndex=0;for(var l="",c;(c=Uc.exec(o))!==null;)l+="-"+c[1];var d=dy(o)+l;return process.env.NODE_ENV!=="production"?{name:d,styles:o,map:u,next:mt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:o,next:mt}},My=function(t){return t()},wy=Me["useInsertionEffect"]?Me["useInsertionEffect"]:!1,qc=wy||My,Ty={}.hasOwnProperty,qa=W.createContext(typeof HTMLElement<"u"?cy({key:"css"}):null);process.env.NODE_ENV!=="production"&&(qa.displayName="EmotionCacheContext"),qa.Provider;var Vc=function(t){return W.forwardRef(function(n,r){var i=W.useContext(qa);return t(n,i,r)})},Va=W.createContext({});process.env.NODE_ENV!=="production"&&(Va.displayName="EmotionThemeContext");var Bc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Qc="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ny=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Pa(n,r,i),qc(function(){return jc(n,r,i)}),null},Ey=Vc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Bc],o=[r],a="";typeof e.className=="string"?a=kc(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=Ya(o,void 0,W.useContext(Va));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var u=e[Qc];u&&(s=Ya([s,"label:"+u+";"]))}a+=t.key+"-"+s.name;var l={};for(var c in e)Ty.call(e,c)&&c!=="css"&&c!==Bc&&(process.env.NODE_ENV==="production"||c!==Qc)&&(l[c]=e[c]);return l.ref=n,l.className=a,W.createElement(W.Fragment,null,W.createElement(Ny,{cache:t,serialized:s,isStringTag:typeof i=="string"}),W.createElement(i,l))});process.env.NODE_ENV!=="production"&&(Ey.displayName="EmotionCssPropInternal");var Dy=Av,Oy=function(t){return t!=="theme"},Wc=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Dy:Oy},Gc=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Kc=`You have illegal escape sequence in your template literal, most likely inside content's property value.
134
+ `+("css`"+u+"`"))}break}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function xy(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=dr(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=o+"{"+t[a]+"}":Lc(a)&&(r+=Ua(o)+":"+wi(o,a)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Fc);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Lc(a[s])&&(r+=Ua(o)+":"+wi(o,a[s])+";");else{var u=dr(e,t,a);switch(o){case"animation":case"animationName":{r+=Ua(o)+":"+u+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(py),r+=o+"{"+u+"}"}}}}return r}var Uc=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Yc;process.env.NODE_ENV!=="production"&&(Yc=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var mt,Ya=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";mt=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=dr(r,n,a)):(process.env.NODE_ENV!=="production"&&a[0]===void 0&&console.error($c),o+=a[0]);for(var s=1;s<t.length;s++)o+=dr(r,n,t[s]),i&&(process.env.NODE_ENV!=="production"&&a[s]===void 0&&console.error($c),o+=a[s]);var u;process.env.NODE_ENV!=="production"&&(o=o.replace(Yc,function(f){return u=f,""})),Uc.lastIndex=0;for(var l="",c;(c=Uc.exec(o))!==null;)l+="-"+c[1];var d=dy(o)+l;return process.env.NODE_ENV!=="production"?{name:d,styles:o,map:u,next:mt,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:d,styles:o,next:mt}},My=function(t){return t()},wy=Me["useInsertionEffect"]?Me["useInsertionEffect"]:!1,qc=wy||My,Ty={}.hasOwnProperty,qa=W.createContext(typeof HTMLElement<"u"?cy({key:"css"}):null);process.env.NODE_ENV!=="production"&&(qa.displayName="EmotionCacheContext"),qa.Provider;var Vc=function(t){return W.forwardRef(function(n,r){var i=W.useContext(qa);return t(n,i,r)})},Va=W.createContext({});process.env.NODE_ENV!=="production"&&(Va.displayName="EmotionThemeContext");var Bc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Qc="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ny=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Pa(n,r,i),qc(function(){return jc(n,r,i)}),null},Ey=Vc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Bc],o=[r],a="";typeof e.className=="string"?a=zc(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=Ya(o,void 0,W.useContext(Va));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var u=e[Qc];u&&(s=Ya([s,"label:"+u+";"]))}a+=t.key+"-"+s.name;var l={};for(var c in e)Ty.call(e,c)&&c!=="css"&&c!==Bc&&(process.env.NODE_ENV==="production"||c!==Qc)&&(l[c]=e[c]);return l.ref=n,l.className=a,W.createElement(W.Fragment,null,W.createElement(Ny,{cache:t,serialized:s,isStringTag:typeof i=="string"}),W.createElement(i,l))});process.env.NODE_ENV!=="production"&&(Ey.displayName="EmotionCssPropInternal");var Dy=Av,Oy=function(t){return t!=="theme"},Wc=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Dy:Oy},Gc=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Kc=`You have illegal escape sequence in your template literal, most likely inside content's property value.
135
135
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
136
136
  You can read more about this here:
137
137
  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Cy=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Pa(n,r,i),qc(function(){return jc(n,r,i)}),null},Sy=function e(t,n){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
138
- You may have forgotten to import it.`);var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=Gc(t,n,r),u=s||Wc(i),l=!u("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{process.env.NODE_ENV!=="production"&&c[0][0]===void 0&&console.error(Kc),d.push(c[0][0]);for(var f=c.length,h=1;h<f;h++)process.env.NODE_ENV!=="production"&&c[0][h]===void 0&&console.error(Kc),d.push(c[h],c[0][h])}var v=Vc(function(p,g,x){var w=l&&p.as||i,T="",b=[],y=p;if(p.theme==null){y={};for(var C in p)y[C]=p[C];y.theme=W.useContext(Va)}typeof p.className=="string"?T=kc(g.registered,b,p.className):p.className!=null&&(T=p.className+" ");var I=Ya(d.concat(b),g.registered,y);T+=g.key+"-"+I.name,a!==void 0&&(T+=" "+a);var O=l&&s===void 0?Wc(w):u,E={};for(var D in p)l&&D==="as"||O(D)&&(E[D]=p[D]);return E.className=T,E.ref=x,W.createElement(W.Fragment,null,W.createElement(Cy,{cache:g,serialized:I,isStringTag:typeof w=="string"}),W.createElement(w,E))});return v.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=d,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return a===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+a}}),v.withComponent=function(p,g){return e(p,Ia({},n,g,{shouldForwardProp:Gc(v,g,!0)})).apply(void 0,d)},v}},Ay=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ba=Sy.bind();Ay.forEach(function(e){Ba[e]=Ba(e)});const Iy=Ba;/** @license MUI v5.11.0
138
+ You may have forgotten to import it.`);var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=Gc(t,n,r),u=s||Wc(i),l=!u("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{process.env.NODE_ENV!=="production"&&c[0][0]===void 0&&console.error(Kc),d.push(c[0][0]);for(var f=c.length,h=1;h<f;h++)process.env.NODE_ENV!=="production"&&c[0][h]===void 0&&console.error(Kc),d.push(c[h],c[0][h])}var v=Vc(function(p,g,x){var w=l&&p.as||i,T="",b=[],y=p;if(p.theme==null){y={};for(var C in p)y[C]=p[C];y.theme=W.useContext(Va)}typeof p.className=="string"?T=zc(g.registered,b,p.className):p.className!=null&&(T=p.className+" ");var I=Ya(d.concat(b),g.registered,y);T+=g.key+"-"+I.name,a!==void 0&&(T+=" "+a);var O=l&&s===void 0?Wc(w):u,E={};for(var D in p)l&&D==="as"||O(D)&&(E[D]=p[D]);return E.className=T,E.ref=x,W.createElement(W.Fragment,null,W.createElement(Cy,{cache:g,serialized:I,isStringTag:typeof w=="string"}),W.createElement(w,E))});return v.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=d,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return a===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+a}}),v.withComponent=function(p,g){return e(p,Ia({},n,g,{shouldForwardProp:Gc(v,g,!0)})).apply(void 0,d)},v}},Ay=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ba=Sy.bind();Ay.forEach(function(e){Ba[e]=Ba(e)});const Iy=Ba;/** @license MUI v5.11.0
139
139
  *
140
140
  * This source code is licensed under the MIT license found in the
141
141
  * LICENSE file in the root directory of this source tree.
142
- */function zy(e,t){const n=Iy(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
143
- `)):r.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}const ky=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Vt=process.env.NODE_ENV!=="production"?le.exports.oneOfType([le.exports.number,le.exports.string,le.exports.object,le.exports.array]):{};function ht(){return ht=Object.assign?Object.assign.bind():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},ht.apply(this,arguments)}function hr(e,t){return t?At(e,t,{clone:!1}):e}const Qa={xs:0,sm:600,md:900,lg:1200,xl:1536},Hc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qa[e]}px)`};function It(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Hc;return t.reduce((a,s,u)=>(a[o.up(o.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const o=r.breakpoints||Hc;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||Qa).indexOf(s)!==-1){const u=o.up(s);a[u]=n(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return n(t)}function jy(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function $y(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Ti(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Ni(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Ti(e,n)||r,t&&(i=t(i,r,e)),i}function ye(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],u=a.theme,l=Ti(u,r)||{};return It(a,s,d=>{let f=Ni(l,i,d);return d===f&&typeof d=="string"&&(f=Ni(l,i,`${t}${d==="default"?"":wt(d)}`,d)),n===!1?f:{[n]:f}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Vt}:{},o.filterProps=[t],o}function Ei(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?hr(i,t[o](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ry(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Ly={m:"margin",p:"padding"},Py={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Fy=Ry(e=>{if(e.length>2)if(Xc[e])e=Xc[e];else return[e];const[t,n]=e.split(""),r=Ly[t],i=Py[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Di=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Oi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Uy=[...Di,...Oi];function pr(e,t,n,r){var i;const o=(i=Ti(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),o*a):Array.isArray(o)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
142
+ */function ky(e,t){const n=Iy(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
143
+ `)):r.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}const zy=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Vt=process.env.NODE_ENV!=="production"?le.exports.oneOfType([le.exports.number,le.exports.string,le.exports.object,le.exports.array]):{};function ht(){return ht=Object.assign?Object.assign.bind():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},ht.apply(this,arguments)}function hr(e,t){return t?At(e,t,{clone:!1}):e}const Qa={xs:0,sm:600,md:900,lg:1200,xl:1536},Hc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qa[e]}px)`};function It(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Hc;return t.reduce((a,s,u)=>(a[o.up(o.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const o=r.breakpoints||Hc;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||Qa).indexOf(s)!==-1){const u=o.up(s);a[u]=n(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return n(t)}function jy(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function $y(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Ti(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Ni(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Ti(e,n)||r,t&&(i=t(i,r,e)),i}function ye(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],u=a.theme,l=Ti(u,r)||{};return It(a,s,d=>{let f=Ni(l,i,d);return d===f&&typeof d=="string"&&(f=Ni(l,i,`${t}${d==="default"?"":wt(d)}`,d)),n===!1?f:{[n]:f}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Vt}:{},o.filterProps=[t],o}function Ei(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?hr(i,t[o](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ry(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Ly={m:"margin",p:"padding"},Py={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Fy=Ry(e=>{if(e.length>2)if(Xc[e])e=Xc[e];else return[e];const[t,n]=e.split(""),r=Ly[t],i=Py[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Di=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Oi=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Uy=[...Di,...Oi];function pr(e,t,n,r){var i;const o=(i=Ti(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),o*a):Array.isArray(o)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
144
144
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
145
145
  `))),o[a]):typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
146
- `)),()=>{})}function Jc(e){return pr(e,"spacing",8,"spacing")}function gr(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Yy(e,t){return n=>e.reduce((r,i)=>(r[i]=gr(t,n),r),{})}function qy(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Fy(n),o=Yy(i,r),a=e[n];return It(e,a,o)}function Zc(e,t){const n=Jc(e.theme);return Object.keys(e).map(r=>qy(e,t,r,n)).reduce(hr,{})}function De(e){return Zc(e,Di)}De.propTypes=process.env.NODE_ENV!=="production"?Di.reduce((e,t)=>(e[t]=Vt,e),{}):{},De.filterProps=Di;function Oe(e){return Zc(e,Oi)}Oe.propTypes=process.env.NODE_ENV!=="production"?Oi.reduce((e,t)=>(e[t]=Vt,e),{}):{},Oe.filterProps=Oi,process.env.NODE_ENV!=="production"&&Uy.reduce((e,t)=>(e[t]=Vt,e),{});function Et(e){return typeof e!="number"?e:`${e}px solid`}const Vy=ye({prop:"border",themeKey:"borders",transform:Et}),By=ye({prop:"borderTop",themeKey:"borders",transform:Et}),Qy=ye({prop:"borderRight",themeKey:"borders",transform:Et}),Wy=ye({prop:"borderBottom",themeKey:"borders",transform:Et}),Gy=ye({prop:"borderLeft",themeKey:"borders",transform:Et}),Ky=ye({prop:"borderColor",themeKey:"palette"}),Hy=ye({prop:"borderTopColor",themeKey:"palette"}),Xy=ye({prop:"borderRightColor",themeKey:"palette"}),Jy=ye({prop:"borderBottomColor",themeKey:"palette"}),Zy=ye({prop:"borderLeftColor",themeKey:"palette"}),Ci=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=pr(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:gr(t,r)});return It(e,e.borderRadius,n)}return null};Ci.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Vt}:{},Ci.filterProps=["borderRadius"],Ei(Vy,By,Qy,Wy,Gy,Ky,Hy,Xy,Jy,Zy,Ci);const Si=e=>{if(e.gap!==void 0&&e.gap!==null){const t=pr(e.theme,"spacing",8,"gap"),n=r=>({gap:gr(t,r)});return It(e,e.gap,n)}return null};Si.propTypes=process.env.NODE_ENV!=="production"?{gap:Vt}:{},Si.filterProps=["gap"];const Ai=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=pr(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:gr(t,r)});return It(e,e.columnGap,n)}return null};Ai.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Vt}:{},Ai.filterProps=["columnGap"];const Ii=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=pr(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:gr(t,r)});return It(e,e.rowGap,n)}return null};Ii.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Vt}:{},Ii.filterProps=["rowGap"];const e_=ye({prop:"gridColumn"}),t_=ye({prop:"gridRow"}),n_=ye({prop:"gridAutoFlow"}),r_=ye({prop:"gridAutoColumns"}),i_=ye({prop:"gridAutoRows"}),o_=ye({prop:"gridTemplateColumns"}),a_=ye({prop:"gridTemplateRows"}),s_=ye({prop:"gridTemplateAreas"}),u_=ye({prop:"gridArea"});Ei(Si,Ai,Ii,e_,t_,n_,r_,i_,o_,a_,s_,u_);function Mn(e,t){return t==="grey"?t:e}const l_=ye({prop:"color",themeKey:"palette",transform:Mn}),c_=ye({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Mn}),f_=ye({prop:"backgroundColor",themeKey:"palette",transform:Mn});Ei(l_,c_,f_);function ut(e){return e<=1&&e!==0?`${e*100}%`:e}const d_=ye({prop:"width",transform:ut}),Wa=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i,o;return{maxWidth:((r=e.theme)==null||(i=r.breakpoints)==null||(o=i.values)==null?void 0:o[n])||Qa[n]||ut(n)}};return It(e,e.maxWidth,t)}return null};Wa.filterProps=["maxWidth"];const h_=ye({prop:"minWidth",transform:ut}),p_=ye({prop:"height",transform:ut}),g_=ye({prop:"maxHeight",transform:ut}),m_=ye({prop:"minHeight",transform:ut});ye({prop:"size",cssProperty:"width",transform:ut}),ye({prop:"size",cssProperty:"height",transform:ut});const v_=ye({prop:"boxSizing"});Ei(d_,Wa,h_,p_,g_,m_,v_);const Ga={border:{themeKey:"borders",transform:Et},borderTop:{themeKey:"borders",transform:Et},borderRight:{themeKey:"borders",transform:Et},borderBottom:{themeKey:"borders",transform:Et},borderLeft:{themeKey:"borders",transform:Et},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ci},color:{themeKey:"palette",transform:Mn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Mn},backgroundColor:{themeKey:"palette",transform:Mn},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:De},mt:{style:De},mr:{style:De},mb:{style:De},ml:{style:De},mx:{style:De},my:{style:De},margin:{style:De},marginTop:{style:De},marginRight:{style:De},marginBottom:{style:De},marginLeft:{style:De},marginX:{style:De},marginY:{style:De},marginInline:{style:De},marginInlineStart:{style:De},marginInlineEnd:{style:De},marginBlock:{style:De},marginBlockStart:{style:De},marginBlockEnd:{style:De},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Si},rowGap:{style:Ii},columnGap:{style:Ai},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ut},maxWidth:{style:Wa},minWidth:{transform:ut},height:{transform:ut},maxHeight:{transform:ut},minHeight:{transform:ut},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function y_(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function __(e,t){return typeof e=="function"?e(t):e}function b_(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:u=n,themeKey:l,transform:c,style:d}=s;if(r==null)return null;const f=Ti(i,l)||{};return d?d(a):It(a,r,v=>{let p=Ni(f,c,v);return v===p&&typeof v=="string"&&(p=Ni(f,c,`${n}${v==="default"?"":wt(v)}`,v)),u===!1?p:{[u]:p}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:Ga;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=jy(o.breakpoints),d=Object.keys(c);let f=c;return Object.keys(l).forEach(h=>{const v=__(l[h],o);if(v!=null)if(typeof v=="object")if(a[h])f=hr(f,e(h,v,o,a));else{const p=It({theme:o},v,g=>({[h]:g}));y_(p,v)?f[h]=t({sx:v,theme:o}):f=hr(f,p)}else f=hr(f,e(h,v,o,a))}),$y(d,f)}return Array.isArray(i)?i.map(s):s(i)}return t}const ef=b_();ef.filterProps=["sx"];const Ka=ef;function wn(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const x_=["values","unit","step"],M_=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>ht({},n,{[r.key]:r.val}),{})};function w_(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=wn(e,x_),o=M_(t),a=Object.keys(o);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function u(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function l(f,h){const v=a.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:h)-r/100}${n})`}function c(f){return a.indexOf(f)+1<a.length?l(f,a[a.indexOf(f)+1]):s(f)}function d(f){const h=a.indexOf(f);return h===0?s(a[1]):h===a.length-1?u(a[h]):l(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return ht({keys:a,values:o,up:s,down:u,between:l,only:c,not:d,unit:n},i)}const T_={borderRadius:4};function N_(e=8){if(e.mui)return e;const t=Jc({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}const E_=["breakpoints","palette","spacing","shape"];function Ha(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=wn(e,E_),s=w_(n),u=N_(i);let l=At({breakpoints:s,direction:"ltr",components:{},palette:ht({mode:"light"},r),spacing:u,shape:ht({},T_,o)},a);return l=t.reduce((c,d)=>At(c,d),l),l.unstable_sxConfig=ht({},Ga,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(d){return Ka({sx:d,theme:this})},l}const tf=Me.createContext(null);process.env.NODE_ENV!=="production"&&(tf.displayName="ThemeContext");const D_=tf;function O_(){const e=Me.useContext(D_);return process.env.NODE_ENV!=="production"&&Me.useDebugValue(e),e}function C_(e){return Object.keys(e).length===0}function S_(e=null){const t=O_();return!t||C_(t)?e:t}const A_=Ha();function I_(e=A_){return S_(e)}const z_=["variant"];function nf(e){return e.length===0}function rf(e){const{variant:t}=e,n=wn(e,z_);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=nf(r)?e[i]:wt(e[i]):r+=`${nf(r)?i:wt(i)}${wt(e[i].toString())}`}),r}const k_=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],j_=["theme"],$_=["theme"];function mr(e){return Object.keys(e).length===0}function R_(e){return typeof e=="string"&&e.charCodeAt(0)>96}const L_=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,P_=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(i=>{const o=rf(i.props);r[o]=i.style}),r},F_=(e,t,n,r)=>{var i,o;const{ownerState:a={}}=e,s=[],u=n==null||(i=n.components)==null||(o=i[r])==null?void 0:o.variants;return u&&u.forEach(l=>{let c=!0;Object.keys(l.props).forEach(d=>{a[d]!==l.props[d]&&e[d]!==l.props[d]&&(c=!1)}),c&&s.push(t[rf(l.props)])}),s};function zi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const U_=Ha(),Y_=e=>e.charAt(0).toLowerCase()+e.slice(1);function q_(e={}){const{defaultTheme:t=U_,rootShouldForwardProp:n=zi,slotShouldForwardProp:r=zi}=e,i=o=>{const a=mr(o.theme)?t:o.theme;return Ka(ht({},o,{theme:a}))};return i.__mui_systemSx=!0,(o,a={})=>{ky(o,T=>T.filter(b=>!(b!=null&&b.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:l,skipSx:c,overridesResolver:d}=a,f=wn(a,k_),h=l!==void 0?l:u&&u!=="Root"||!1,v=c||!1;let p;process.env.NODE_ENV!=="production"&&s&&(p=`${s}-${Y_(u||"Root")}`);let g=zi;u==="Root"?g=n:u?g=r:R_(o)&&(g=void 0);const x=zy(o,ht({shouldForwardProp:g,label:p},f)),w=(T,...b)=>{const y=b?b.map(E=>typeof E=="function"&&E.__emotion_real!==E?D=>{let{theme:k}=D,m=wn(D,j_);return E(ht({theme:mr(k)?t:k},m))}:E):[];let C=T;s&&d&&y.push(E=>{const D=mr(E.theme)?t:E.theme,k=L_(s,D);if(k){const m={};return Object.entries(k).forEach(([N,z])=>{m[N]=typeof z=="function"?z(ht({},E,{theme:D})):z}),d(E,m)}return null}),s&&!h&&y.push(E=>{const D=mr(E.theme)?t:E.theme;return F_(E,P_(s,D),D,s)}),v||y.push(i);const I=y.length-b.length;if(Array.isArray(T)&&I>0){const E=new Array(I).fill("");C=[...T,...E],C.raw=[...T.raw,...E]}else typeof T=="function"&&T.__emotion_real!==T&&(C=E=>{let{theme:D}=E,k=wn(E,$_);return T(ht({theme:mr(D)?t:D},k))});const O=x(C,...y);if(process.env.NODE_ENV!=="production"){let E;s&&(E=`${s}${u||""}`),E===void 0&&(E=`Styled(${av(o)})`),O.displayName=E}return O};return x.withConfig&&(w.withConfig=x.withConfig),w}}function V_(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:yc(t.components[n].defaultProps,r)}function B_({props:e,name:t,defaultTheme:n}){const r=I_(n);return V_({theme:r,name:t,props:e})}function of(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function Q_(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Tn(e){if(e.type)return e;if(e.charAt(0)==="#")return Tn(Q_(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
146
+ `)),()=>{})}function Jc(e){return pr(e,"spacing",8,"spacing")}function gr(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Yy(e,t){return n=>e.reduce((r,i)=>(r[i]=gr(t,n),r),{})}function qy(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Fy(n),o=Yy(i,r),a=e[n];return It(e,a,o)}function Zc(e,t){const n=Jc(e.theme);return Object.keys(e).map(r=>qy(e,t,r,n)).reduce(hr,{})}function De(e){return Zc(e,Di)}De.propTypes=process.env.NODE_ENV!=="production"?Di.reduce((e,t)=>(e[t]=Vt,e),{}):{},De.filterProps=Di;function Oe(e){return Zc(e,Oi)}Oe.propTypes=process.env.NODE_ENV!=="production"?Oi.reduce((e,t)=>(e[t]=Vt,e),{}):{},Oe.filterProps=Oi,process.env.NODE_ENV!=="production"&&Uy.reduce((e,t)=>(e[t]=Vt,e),{});function Et(e){return typeof e!="number"?e:`${e}px solid`}const Vy=ye({prop:"border",themeKey:"borders",transform:Et}),By=ye({prop:"borderTop",themeKey:"borders",transform:Et}),Qy=ye({prop:"borderRight",themeKey:"borders",transform:Et}),Wy=ye({prop:"borderBottom",themeKey:"borders",transform:Et}),Gy=ye({prop:"borderLeft",themeKey:"borders",transform:Et}),Ky=ye({prop:"borderColor",themeKey:"palette"}),Hy=ye({prop:"borderTopColor",themeKey:"palette"}),Xy=ye({prop:"borderRightColor",themeKey:"palette"}),Jy=ye({prop:"borderBottomColor",themeKey:"palette"}),Zy=ye({prop:"borderLeftColor",themeKey:"palette"}),Ci=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=pr(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:gr(t,r)});return It(e,e.borderRadius,n)}return null};Ci.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Vt}:{},Ci.filterProps=["borderRadius"],Ei(Vy,By,Qy,Wy,Gy,Ky,Hy,Xy,Jy,Zy,Ci);const Si=e=>{if(e.gap!==void 0&&e.gap!==null){const t=pr(e.theme,"spacing",8,"gap"),n=r=>({gap:gr(t,r)});return It(e,e.gap,n)}return null};Si.propTypes=process.env.NODE_ENV!=="production"?{gap:Vt}:{},Si.filterProps=["gap"];const Ai=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=pr(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:gr(t,r)});return It(e,e.columnGap,n)}return null};Ai.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Vt}:{},Ai.filterProps=["columnGap"];const Ii=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=pr(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:gr(t,r)});return It(e,e.rowGap,n)}return null};Ii.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Vt}:{},Ii.filterProps=["rowGap"];const e_=ye({prop:"gridColumn"}),t_=ye({prop:"gridRow"}),n_=ye({prop:"gridAutoFlow"}),r_=ye({prop:"gridAutoColumns"}),i_=ye({prop:"gridAutoRows"}),o_=ye({prop:"gridTemplateColumns"}),a_=ye({prop:"gridTemplateRows"}),s_=ye({prop:"gridTemplateAreas"}),u_=ye({prop:"gridArea"});Ei(Si,Ai,Ii,e_,t_,n_,r_,i_,o_,a_,s_,u_);function Mn(e,t){return t==="grey"?t:e}const l_=ye({prop:"color",themeKey:"palette",transform:Mn}),c_=ye({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Mn}),f_=ye({prop:"backgroundColor",themeKey:"palette",transform:Mn});Ei(l_,c_,f_);function ut(e){return e<=1&&e!==0?`${e*100}%`:e}const d_=ye({prop:"width",transform:ut}),Wa=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i,o;return{maxWidth:((r=e.theme)==null||(i=r.breakpoints)==null||(o=i.values)==null?void 0:o[n])||Qa[n]||ut(n)}};return It(e,e.maxWidth,t)}return null};Wa.filterProps=["maxWidth"];const h_=ye({prop:"minWidth",transform:ut}),p_=ye({prop:"height",transform:ut}),g_=ye({prop:"maxHeight",transform:ut}),m_=ye({prop:"minHeight",transform:ut});ye({prop:"size",cssProperty:"width",transform:ut}),ye({prop:"size",cssProperty:"height",transform:ut});const v_=ye({prop:"boxSizing"});Ei(d_,Wa,h_,p_,g_,m_,v_);const Ga={border:{themeKey:"borders",transform:Et},borderTop:{themeKey:"borders",transform:Et},borderRight:{themeKey:"borders",transform:Et},borderBottom:{themeKey:"borders",transform:Et},borderLeft:{themeKey:"borders",transform:Et},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ci},color:{themeKey:"palette",transform:Mn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Mn},backgroundColor:{themeKey:"palette",transform:Mn},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:De},mt:{style:De},mr:{style:De},mb:{style:De},ml:{style:De},mx:{style:De},my:{style:De},margin:{style:De},marginTop:{style:De},marginRight:{style:De},marginBottom:{style:De},marginLeft:{style:De},marginX:{style:De},marginY:{style:De},marginInline:{style:De},marginInlineStart:{style:De},marginInlineEnd:{style:De},marginBlock:{style:De},marginBlockStart:{style:De},marginBlockEnd:{style:De},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Si},rowGap:{style:Ii},columnGap:{style:Ai},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ut},maxWidth:{style:Wa},minWidth:{transform:ut},height:{transform:ut},maxHeight:{transform:ut},minHeight:{transform:ut},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function y_(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function __(e,t){return typeof e=="function"?e(t):e}function b_(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:u=n,themeKey:l,transform:c,style:d}=s;if(r==null)return null;const f=Ti(i,l)||{};return d?d(a):It(a,r,v=>{let p=Ni(f,c,v);return v===p&&typeof v=="string"&&(p=Ni(f,c,`${n}${v==="default"?"":wt(v)}`,v)),u===!1?p:{[u]:p}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:Ga;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=jy(o.breakpoints),d=Object.keys(c);let f=c;return Object.keys(l).forEach(h=>{const v=__(l[h],o);if(v!=null)if(typeof v=="object")if(a[h])f=hr(f,e(h,v,o,a));else{const p=It({theme:o},v,g=>({[h]:g}));y_(p,v)?f[h]=t({sx:v,theme:o}):f=hr(f,p)}else f=hr(f,e(h,v,o,a))}),$y(d,f)}return Array.isArray(i)?i.map(s):s(i)}return t}const ef=b_();ef.filterProps=["sx"];const Ka=ef;function wn(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const x_=["values","unit","step"],M_=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>ht({},n,{[r.key]:r.val}),{})};function w_(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=wn(e,x_),o=M_(t),a=Object.keys(o);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function u(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function l(f,h){const v=a.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:h)-r/100}${n})`}function c(f){return a.indexOf(f)+1<a.length?l(f,a[a.indexOf(f)+1]):s(f)}function d(f){const h=a.indexOf(f);return h===0?s(a[1]):h===a.length-1?u(a[h]):l(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return ht({keys:a,values:o,up:s,down:u,between:l,only:c,not:d,unit:n},i)}const T_={borderRadius:4};function N_(e=8){if(e.mui)return e;const t=Jc({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}const E_=["breakpoints","palette","spacing","shape"];function Ha(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=wn(e,E_),s=w_(n),u=N_(i);let l=At({breakpoints:s,direction:"ltr",components:{},palette:ht({mode:"light"},r),spacing:u,shape:ht({},T_,o)},a);return l=t.reduce((c,d)=>At(c,d),l),l.unstable_sxConfig=ht({},Ga,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(d){return Ka({sx:d,theme:this})},l}const tf=Me.createContext(null);process.env.NODE_ENV!=="production"&&(tf.displayName="ThemeContext");const D_=tf;function O_(){const e=Me.useContext(D_);return process.env.NODE_ENV!=="production"&&Me.useDebugValue(e),e}function C_(e){return Object.keys(e).length===0}function S_(e=null){const t=O_();return!t||C_(t)?e:t}const A_=Ha();function I_(e=A_){return S_(e)}const k_=["variant"];function nf(e){return e.length===0}function rf(e){const{variant:t}=e,n=wn(e,k_);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=nf(r)?e[i]:wt(e[i]):r+=`${nf(r)?i:wt(i)}${wt(e[i].toString())}`}),r}const z_=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],j_=["theme"],$_=["theme"];function mr(e){return Object.keys(e).length===0}function R_(e){return typeof e=="string"&&e.charCodeAt(0)>96}const L_=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,P_=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(i=>{const o=rf(i.props);r[o]=i.style}),r},F_=(e,t,n,r)=>{var i,o;const{ownerState:a={}}=e,s=[],u=n==null||(i=n.components)==null||(o=i[r])==null?void 0:o.variants;return u&&u.forEach(l=>{let c=!0;Object.keys(l.props).forEach(d=>{a[d]!==l.props[d]&&e[d]!==l.props[d]&&(c=!1)}),c&&s.push(t[rf(l.props)])}),s};function ki(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const U_=Ha(),Y_=e=>e.charAt(0).toLowerCase()+e.slice(1);function q_(e={}){const{defaultTheme:t=U_,rootShouldForwardProp:n=ki,slotShouldForwardProp:r=ki}=e,i=o=>{const a=mr(o.theme)?t:o.theme;return Ka(ht({},o,{theme:a}))};return i.__mui_systemSx=!0,(o,a={})=>{zy(o,T=>T.filter(b=>!(b!=null&&b.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:l,skipSx:c,overridesResolver:d}=a,f=wn(a,z_),h=l!==void 0?l:u&&u!=="Root"||!1,v=c||!1;let p;process.env.NODE_ENV!=="production"&&s&&(p=`${s}-${Y_(u||"Root")}`);let g=ki;u==="Root"?g=n:u?g=r:R_(o)&&(g=void 0);const x=ky(o,ht({shouldForwardProp:g,label:p},f)),w=(T,...b)=>{const y=b?b.map(E=>typeof E=="function"&&E.__emotion_real!==E?D=>{let{theme:z}=D,m=wn(D,j_);return E(ht({theme:mr(z)?t:z},m))}:E):[];let C=T;s&&d&&y.push(E=>{const D=mr(E.theme)?t:E.theme,z=L_(s,D);if(z){const m={};return Object.entries(z).forEach(([N,k])=>{m[N]=typeof k=="function"?k(ht({},E,{theme:D})):k}),d(E,m)}return null}),s&&!h&&y.push(E=>{const D=mr(E.theme)?t:E.theme;return F_(E,P_(s,D),D,s)}),v||y.push(i);const I=y.length-b.length;if(Array.isArray(T)&&I>0){const E=new Array(I).fill("");C=[...T,...E],C.raw=[...T.raw,...E]}else typeof T=="function"&&T.__emotion_real!==T&&(C=E=>{let{theme:D}=E,z=wn(E,$_);return T(ht({theme:mr(D)?t:D},z))});const O=x(C,...y);if(process.env.NODE_ENV!=="production"){let E;s&&(E=`${s}${u||""}`),E===void 0&&(E=`Styled(${av(o)})`),O.displayName=E}return O};return x.withConfig&&(w.withConfig=x.withConfig),w}}function V_(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:yc(t.components[n].defaultProps,r)}function B_({props:e,name:t,defaultTheme:n}){const r=I_(n);return V_({theme:r,name:t,props:e})}function of(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function Q_(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Tn(e){if(e.type)return e;if(e.charAt(0)==="#")return Tn(Q_(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
147
147
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:yn(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
148
148
  The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:yn(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function Xa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function W_(e){e=Tn(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(l,c=(l+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Xa({type:s,values:u})}function af(e){e=Tn(e);let t=e.type==="hsl"||e.type==="hsla"?Tn(W_(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function sf(e,t){const n=af(e),r=af(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function G_(e,t){if(e=Tn(e),t=of(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Xa(e)}function K_(e,t){if(e=Tn(e),t=of(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Xa(e)}function H_(e,t){return We({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const vr={black:"#000",white:"#fff"},X_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Nn={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},En={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"},yr={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"},Dn={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"},On={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Cn={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"},J_=["mode","contrastThreshold","tonalOffset"],uf={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:vr.white,default:vr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Ja={text:{primary:vr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:vr.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 lf(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=K_(e.main,i):t==="dark"&&(e.dark=G_(e.main,o)))}function Z_(e="light"){return e==="dark"?{main:Dn[200],light:Dn[50],dark:Dn[400]}:{main:Dn[700],light:Dn[400],dark:Dn[800]}}function eb(e="light"){return e==="dark"?{main:Nn[200],light:Nn[50],dark:Nn[400]}:{main:Nn[500],light:Nn[300],dark:Nn[700]}}function tb(e="light"){return e==="dark"?{main:En[500],light:En[300],dark:En[700]}:{main:En[700],light:En[400],dark:En[800]}}function nb(e="light"){return e==="dark"?{main:On[400],light:On[300],dark:On[700]}:{main:On[700],light:On[500],dark:On[900]}}function rb(e="light"){return e==="dark"?{main:Cn[400],light:Cn[300],dark:Cn[700]}:{main:Cn[800],light:Cn[500],dark:Cn[900]}}function ib(e="light"){return e==="dark"?{main:yr[400],light:yr[300],dark:yr[700]}:{main:"#ed6c02",light:yr[500],dark:yr[900]}}function ob(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=sr(e,J_),o=e.primary||Z_(t),a=e.secondary||eb(t),s=e.error||tb(t),u=e.info||nb(t),l=e.success||rb(t),c=e.warning||ib(t);function d(p){const g=sf(p,Ja.text.primary)>=n?Ja.text.primary:uf.text.primary;if(process.env.NODE_ENV!=="production"){const x=sf(p,g);x<3&&console.error([`MUI: The contrast ratio of ${x}:1 for ${g} on ${p}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
149
149
  `))}return g}const f=({color:p,name:g,mainShade:x=500,lightShade:w=300,darkShade:T=700})=>{if(p=We({},p),!p.main&&p[x]&&(p.main=p[x]),!p.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${g?` (${g})`:""} provided to augmentColor(color) is invalid.
@@ -161,5 +161,5 @@ const theme1 = createTheme({ palette: {
161
161
  const theme2 = createTheme({ palette: {
162
162
  primary: { main: green[500] },
163
163
  } });`:yn(12,g?` (${g})`:"",JSON.stringify(p.main)));return lf(p,"light",w,r),lf(p,"dark",T,r),p.contrastText||(p.contrastText=d(p.main)),p},h={dark:Ja,light:uf};return process.env.NODE_ENV!=="production"&&(h[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),At(We({common:We({},vr),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:u,name:"info"}),success:f({color:l,name:"success"}),grey:X_,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const ab=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function sb(e){return Math.round(e*1e5)/1e5}const cf={textTransform:"uppercase"},ff='"Roboto", "Helvetica", "Arial", sans-serif';function ub(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=ff,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:d}=n,f=sr(n,ab);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=i/14,v=d||(x=>`${x/l*h}rem`),p=(x,w,T,b,y)=>We({fontFamily:r,fontWeight:x,fontSize:v(w),lineHeight:T},r===ff?{letterSpacing:`${sb(b/w)}em`}:{},y,c),g={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(a,48,1.167,0),h4:p(a,34,1.235,.25),h5:p(a,24,1.334,0),h6:p(s,20,1.6,.15),subtitle1:p(a,16,1.75,.15),subtitle2:p(s,14,1.57,.1),body1:p(a,16,1.5,.15),body2:p(a,14,1.43,.15),button:p(s,14,1.75,.4,cf),caption:p(a,12,1.66,.4),overline:p(a,12,2.66,1,cf)};return At(We({htmlFontSize:l,pxToRem:v,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},g),f,{clone:!1})}const lb=.2,cb=.14,fb=.12;function Te(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${lb})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${cb})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${fb})`].join(",")}const db=["none",Te(0,2,1,-1,0,1,1,0,0,1,3,0),Te(0,3,1,-2,0,2,2,0,0,1,5,0),Te(0,3,3,-2,0,3,4,0,0,1,8,0),Te(0,2,4,-1,0,4,5,0,0,1,10,0),Te(0,3,5,-1,0,5,8,0,0,1,14,0),Te(0,3,5,-1,0,6,10,0,0,1,18,0),Te(0,4,5,-2,0,7,10,1,0,2,16,1),Te(0,5,5,-3,0,8,10,1,0,3,14,2),Te(0,5,6,-3,0,9,12,1,0,3,16,2),Te(0,6,6,-3,0,10,14,1,0,4,18,3),Te(0,6,7,-4,0,11,15,1,0,4,20,3),Te(0,7,8,-4,0,12,17,2,0,5,22,4),Te(0,7,8,-4,0,13,19,2,0,5,24,4),Te(0,7,9,-4,0,14,21,2,0,5,26,4),Te(0,8,9,-5,0,15,22,2,0,6,28,5),Te(0,8,10,-5,0,16,24,2,0,6,30,5),Te(0,8,11,-5,0,17,26,2,0,6,32,5),Te(0,9,11,-5,0,18,28,2,0,7,34,6),Te(0,9,12,-6,0,19,29,2,0,7,36,6),Te(0,10,13,-6,0,20,31,3,0,8,38,7),Te(0,10,13,-6,0,21,33,3,0,8,40,7),Te(0,10,14,-6,0,22,35,3,0,8,42,7),Te(0,11,14,-7,0,23,36,3,0,9,44,8),Te(0,11,15,-7,0,24,38,3,0,9,46,8)],hb=["duration","easing","delay"],pb={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)"},gb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function df(e){return`${Math.round(e)}ms`}function mb(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function vb(e){const t=We({},pb,e.easing),n=We({},gb,e.duration);return We({getAutoHeightDuration:mb,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:u=0}=o,l=sr(o,hb);if(process.env.NODE_ENV!=="production"){const c=f=>typeof f=="string",d=f=>!isNaN(parseFloat(f));!c(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!c(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),c(s)||console.error('MUI: Argument "easing" must be a string.'),!d(u)&&!c(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof a=="string"?a:df(a)} ${s} ${typeof u=="string"?u:df(u)}`).join(",")}},e,{easing:t,duration:n})}const yb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},_b=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function bb(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=sr(e,_b);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":yn(18));const s=ob(r),u=Ha(e);let l=At(u,{mixins:H_(u.breakpoints,n),palette:s,shadows:db.slice(),typography:ub(s,o),transitions:vb(i),zIndex:We({},yb)});if(l=At(l,a),l=t.reduce((c,d)=>At(c,d),l),process.env.NODE_ENV!=="production"){const c=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(f,h)=>{let v;for(v in f){const p=f[v];if(c.indexOf(v)!==-1&&Object.keys(p).length>0){if(process.env.NODE_ENV!=="production"){const g=Aa("",v);console.error([`MUI: The \`${h}\` component increases the CSS specificity of the \`${v}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${g}' syntax:`,JSON.stringify({root:{[`&.${g}`]:p}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
164
- `))}f[v]={}}}};Object.keys(l.components).forEach(f=>{const h=l.components[f].styleOverrides;h&&f.indexOf("Mui")===0&&d(h,f)})}return l.unstable_sxConfig=We({},Ga,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(d){return Ka({sx:d,theme:this})},l}const hf=bb();function xb({props:e,name:t}){return B_({props:e,name:t,defaultTheme:hf})}const Mb=q_({defaultTheme:hf,rootShouldForwardProp:e=>zi(e)&&e!=="classes"});function wb(e){return Aa("MuiSvgIcon",e)}Ov("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Tb=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Nb=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${wt(t)}`,`fontSize${wt(n)}`]};return Ev(i,wb,r)},Eb=Mb("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${wt(n.color)}`],t[`fontSize${wt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,u,l,c,d,f,h,v,p,g,x,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(o=i.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((u=e.typography)==null||(l=u.pxToRem)==null?void 0:l.call(u,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(v=h[t.color])==null?void 0:v.main)!=null?f:{action:(p=(e.vars||e).palette)==null||(g=p.action)==null?void 0:g.active,disabled:(x=(e.vars||e).palette)==null||(w=x.action)==null?void 0:w.disabled,inherit:void 0}[t.color]}}),Za=Me.forwardRef(function(t,n){const r=xb({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,h=sr(r,Tb),v=We({},r,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f}),p={};c||(p.viewBox=f);const g=Nb(v);return oe(Eb,We({as:s,className:Cv(g.root,o),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},p,h,{ownerState:v,children:[i,d?M("title",{children:d}):null]}))});process.env.NODE_ENV!=="production"&&(Za.propTypes={children:le.exports.node,classes:le.exports.object,className:le.exports.string,color:le.exports.oneOfType([le.exports.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),le.exports.string]),component:le.exports.elementType,fontSize:le.exports.oneOfType([le.exports.oneOf(["inherit","large","medium","small"]),le.exports.string]),htmlColor:le.exports.string,inheritViewBox:le.exports.bool,shapeRendering:le.exports.string,sx:le.exports.oneOfType([le.exports.arrayOf(le.exports.oneOfType([le.exports.func,le.exports.object,le.exports.bool])),le.exports.func,le.exports.object]),titleAccess:le.exports.string,viewBox:le.exports.string}),Za.muiName="SvgIcon";const pf=Za;function Db(e,t){function n(r,i){return M(pf,We({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=pf.muiName,Me.memo(Me.forwardRef(n))}const Ob=$t(Object.freeze(Object.defineProperty({__proto__:null,unstable_ClassNameGenerator:{configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
165
- `)),bc.configure(e)}},capitalize:wt,createChainedFunction:sv,createSvgIcon:Db,debounce:uv,deprecatedPropType:lv,isMuiElement:cv,ownerDocument:dc,ownerWindow:fv,requirePropFactory:dv,setRef:hc,unstable_useEnhancedEffect:pc,unstable_useId:pv,unsupportedProp:gv,useControlled:mv,useEventCallback:vv,useForkRef:yv,useIsFocusVisible:Nv},Symbol.toStringTag,{value:"Module"})));var gf;function Le(){return gf||(gf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Ob}(Da)),Da}const Pe=$t(cd);var Cb=Se.exports;Object.defineProperty(Ea,"__esModule",{value:!0});var mf=Ea.default=void 0,Sb=Cb(Le()),Ab=Pe,Ib=(0,Sb.default)((0,Ab.jsx)("path",{d:"m20.41 6.41-2.83-2.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h7.4l8.6-8.6V7.83c0-.53-.21-1.04-.59-1.42zM12 18c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-9c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1h7c.55 0 1 .45 1 1v2zm4.99 7.25 1.77 1.77-4.84 4.84c-.1.09-.23.14-.36.14H15.5c-.28 0-.5-.22-.5-.5v-1.06c0-.13.05-.26.15-.35l4.84-4.84zm3.26.26-.85.85-1.77-1.77.85-.85c.2-.2.51-.2.71 0l1.06 1.06c.2.2.2.52 0 .71z"}),"SaveAsRounded");mf=Ea.default=Ib;var es={},zb=Se.exports;Object.defineProperty(es,"__esModule",{value:!0});var vf=es.default=void 0,kb=zb(Le()),jb=Pe,$b=(0,kb.default)((0,jb.jsx)("path",{d:"M17.59 3.59c-.38-.38-.89-.59-1.42-.59H5c-1.11 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7.83c0-.53-.21-1.04-.59-1.41l-2.82-2.83zM12 19c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm1-10H7c-1.1 0-2-.9-2-2s.9-2 2-2h6c1.1 0 2 .9 2 2s-.9 2-2 2z"}),"SaveRounded");vf=es.default=$b;var ts={},Rb=Se.exports;Object.defineProperty(ts,"__esModule",{value:!0});var yf=ts.default=void 0,Lb=Rb(Le()),Pb=Pe,Fb=(0,Lb.default)((0,Pb.jsx)("path",{d:"M18 2h-7.17c-.53 0-1.04.21-1.42.59L4.59 7.41C4.21 7.79 4 8.3 4 8.83V20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6.35 14.65-2.79-2.79c-.32-.32-.1-.86.35-.86H11v-2.99c0-.55.44-.99.99-1 .56-.01 1.01.44 1.01 1V13h1.79c.45 0 .67.54.35.85l-2.79 2.79c-.19.2-.51.2-.7.01z"}),"SimCardDownloadRounded");yf=ts.default=Fb;const ns=()=>{const{dispatchSnackbar:e}=W.useContext(Ds);return{close:()=>e(Os()),open:(r,i="success")=>e(md(r,i))}},_f=()=>{const{version:e}=at();return{patchWorkflow:r=>on.default.patch("/v1/workflow",{...r,version:e}).then(i=>i.data),postWorkflow:r=>on.default.post("/v1/workflow",{...r,version:e}).then(i=>i.data)}},Ub=e=>{const{postWorkflow:t}=_f();return nn.useMutation(t,e)},Yb=e=>{const{patchWorkflow:t}=_f();return nn.useMutation(t,e)},qb=()=>{const{t:e}=Je.useTranslation(["snackMessage"]),{open:t}=ns(),{setCurrentTree:n,currentTree:r,tree:i}=at(),{mutate:o}=Ub({onError:()=>{t(e("error.saveTree",{ns:"snackMessage"}),"error")},onSuccess:c=>{t(e("success.saveTree",{ns:"snackMessage"})),n(d=>({...d,id:c.workflow_id}))}}),{mutate:a}=Yb({onError:()=>{t(e("error.updateTree",{ns:"snackMessage"}),"error")},onSuccess:()=>{t(e("success.updateTree",{ns:"snackMessage"}))}}),s=c=>JSON.stringify(c,null,2);return{formatJSON:s,getDownloadLink:c=>`data:text/json;charset=utf-8,${encodeURIComponent(s(c))}`,handleSubmit:()=>{const{name:c,id:d}=r;if(!c){n(f=>({...f,errorName:"Champs Requis"}));return}if(i){if(d){a({id:d,label:c,workflow:i});return}o({label:c,workflow:i})}}}},Vb=({downloadedFileName:e="export",value:t})=>{const{t:n}=Je.useTranslation("button"),{getDownloadLink:r,handleSubmit:i}=qb(),{currentTree:o,endPoint:a}=at(),{id:s}=o;return oe(S.Stack,{direction:"row",spacing:2,justifyContent:"center",children:[M(S.Tooltip,{title:n("downloadJSONFile"),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:M(S.Box,{children:M(S.Button,{variant:"outlined",href:r(t),download:`${e}.json`,disabled:!t,children:M(yf,{})})})}),M(S.Tooltip,{title:n(s?"update":"save"),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:M(S.Box,{children:M(S.Button,{variant:"outlined",onClick:i,disabled:!t||!a,children:s?M(mf,{}):M(vf,{})})})})]})},Bb={box:{backgroundColor:xe.backgroundPrimary,border:`solid 1px ${xe.borderLight}`}},bf=({children:e,description:t,open:n,onClose:r,title:i})=>M(S.Dialog,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",scroll:"body",maxWidth:"sm",fullWidth:!0,children:oe(S.Box,{sx:Bb.box,p:4,children:[M("h3",{children:i}),M("p",{children:t}),e]})});var rs={},Qb=Se.exports;Object.defineProperty(rs,"__esModule",{value:!0});var xf=rs.default=void 0,Wb=Qb(Le()),Gb=Pe,Kb=(0,Wb.default)((0,Gb.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}),"CloseRounded");xf=rs.default=Kb;const ki={container:{display:"flex",flexDirection:"column",height:"100%",margin:1},main:{border:`solid 1px ${xe.borderLight}`,height:" 100%",margin:1},toolbar:{backgroundColor:xe.backgroundPrimary,boxShadow:"none",display:"flex",padding:"0 ! important"},toolbarBox:{backgroundColor:xe.tertiaryMain,border:`solid 1px ${xe.primaryMain}`,margin:1,paddingX:2,paddingY:1,width:"100%"}},Hb=({children:e,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:u},l)=>M(S.Slide,{direction:"up",ref:l,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:u,children:e}),Xb=W.forwardRef(Hb),Jb=({children:e,open:t,onClose:n,title:r})=>M(S.Dialog,{PaperProps:{sx:{backgroundColor:xe.backgroundPrimary,backgroundImage:"none"}},open:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",fullScreen:!0,TransitionComponent:Xb,children:oe(S.Box,{sx:ki.container,children:[M(S.AppBar,{position:"sticky",elevation:0,children:M(S.Toolbar,{sx:ki.toolbar,children:oe(S.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:ki.toolbarBox,children:[M(S.Typography,{variant:"h5",children:M("strong",{children:r})}),M(S.IconButton,{edge:"end",color:"inherit",onClick:n,"aria-label":"close",children:M(xf,{})})]})})}),M(S.Box,{sx:ki.main,children:e})]})}),Zb={box:{border:`solid 1px ${xe.borderLight}`,flexGrow:0}},ex=({children:e})=>M(S.Box,{p:2,role:"group",sx:Zb.box,children:e}),tx={box:{border:`solid 1px ${xe.borderLight}`,flexGrow:0}},nx=({children:e})=>M(S.Box,{sx:tx.box,padding:2,component:"header",children:e}),rx={box:{border:`solid 1px ${xe.borderLight}`,flexGrow:1}},ix=({children:e})=>M(S.Box,{sx:rx.box,component:"main",role:"tree",children:e}),Mf={stack:{width:"100%"}},ox=({children:e})=>{const t=W.Children.toArray(e);return oe(S.Grid,{container:!0,padding:1,flexWrap:"nowrap",height:"100%",role:"treegrid",children:[M(S.Grid,{item:!0,xs:9,padding:1,display:"flex",children:oe(S.Stack,{sx:Mf.stack,spacing:2,children:[t[0],t[1]]})}),M(S.Grid,{item:!0,xs:3,padding:1,display:"flex",children:oe(S.Stack,{sx:Mf.stack,spacing:2,children:[t[2],t[3]]})})]})},ax={box:{border:`solid 1px ${xe.borderLight}`,flexGrow:1,overflow:"auto"}},sx=({children:e})=>M(S.Box,{sx:ax.box,component:"aside",children:e}),wf=(e,t)=>{var o;if(!e)return null;let n=null;const r=(e==null?void 0:e.name)===t,i=(o=e==null?void 0:e.children)==null?void 0:o.length;if(r)return e;if(i)for(let a=0;n===null&&a<e.children.length;a+=1)n=wf(e.children[a],t);return n},Sn=(e,t)=>{var a,s,u,l,c;if(!e)return null;if(!t)return e;let n=null;const r=((a=e==null?void 0:e.attributes)==null?void 0:a.treePath)===t,i=(s=e==null?void 0:e.attributes)==null?void 0:s.tree,o=(u=e==null?void 0:e.children)==null?void 0:u.length;if(r)return((l=e==null?void 0:e.attributes)==null?void 0:l.tree)||null;if(i&&(n=Sn((c=e.attributes)==null?void 0:c.tree,t)),o)for(let d=0;n===null&&d<e.children.length;d+=1)n=Sn(e.children[d],t);return n},is=(e,t,n)=>{const r=Sn(e,t);return wf(r,n)},ux=(e,t)=>{if(!e)return null;const n=t.attributes.isDecision;return Object.defineProperty(e,"attributes",{value:{...e.attributes,isLeaf:!1}}),n?(Object.defineProperty(e,"children",{value:[{...t,attributes:{...t.attributes,isLeaf:!1}}]}),null):(Object.defineProperty(e,"children",{value:[{...t,attributes:{...t.attributes,isLeaf:!0}}]}),null)},lx=({tree:e,path:t,name:n,child:r})=>{if(!e)return r.children.length?{...r}:{...r,attributes:{...r.attributes,isLeaf:!0,isRoot:!0}};const i=structuredClone(e),o=is(i,t,n);return ux(o,r),i},Tf=(e,t=[])=>{if(!e)return[];let n=[...t];return Object.entries(e).forEach(([r,i])=>{const o=r==="name",a=r==="children"&&i.length>0;o&&(n=[...n,i]),a&&(n=[...n,...i.map(s=>Tf(s,n)).flat()])}),n},Nf=(e,t,n=null)=>{var a;if(!e)return null;let r=null;const i=(e==null?void 0:e.name)===t,o=(a=e==null?void 0:e.children)==null?void 0:a.length;if(i)return n;if(o)for(let s=0;r===null&&s<e.children.length;s+=1)r=Nf(e.children[s],t,e);return r},cx=(e,t)=>(!e||!t||(Object.defineProperty(e,"children",{value:e.children.filter(n=>n.name!==t.name)}),Object.defineProperty(e,"attributes",{value:{...e.attributes,isLeaf:!0}})),null),fx=(e,t,n)=>{const r=Sn(e,t);return Nf(r,n)},dx=({tree:e,path:t,name:n})=>{const r=structuredClone(e),i=is(r,t,n),o=fx(r,t,n);return cx(o,i),r},hx=(e,t)=>{if(!e)return null;const n=t.attributes.isDecision,r=e.attributes.isDecision,i=e.attributes.depth===0;return r||n?(Object.defineProperty(e,"children",{value:[...t.children]}),Object.defineProperty(e,"attributes",{value:{...t.attributes,isLeaf:!t.children.length||!n,isRoot:i}}),Object.defineProperty(e,"name",{value:t.name}),null):(Object.defineProperty(e,"children",{value:[...e.children]}),Object.defineProperty(e,"attributes",{value:{...t.attributes,isLeaf:!e.children.length,isRoot:i}}),Object.defineProperty(e,"name",{value:t.name}),null)},px=({tree:e,path:t,name:n,child:r})=>{const i=structuredClone(e),o=is(i,t,n);return hx(o,r),i},Dt={appendTreeCard:"appendTreeCard",deleteTreeCard:"deleteTreeCard",replaceTreeCard:"replaceTreeCard",resetTree:"resetTree",setTree:"setTree"},gx=(e,t,n)=>({children:n,name:t,path:e,type:Dt.appendTreeCard}),mx=(e,t,n)=>({children:n,name:t,path:e,type:Dt.replaceTreeCard}),vx=(e,t)=>({name:t,path:e,type:Dt.deleteTreeCard}),yx=()=>({type:Dt.resetTree}),Ef=e=>({tree:e,type:Dt.setTree}),_x=(e,t)=>{switch(t.type){case Dt.appendTreeCard:{const{name:n,path:r,children:i}=t;return lx({child:i,name:n,path:r,tree:e})}case Dt.deleteTreeCard:{const{path:n,name:r}=t;return dx({name:r,path:n,tree:e})}case Dt.replaceTreeCard:{const{name:n,path:r,children:i}=t;return px({child:i,name:n,path:r,tree:e})}case Dt.resetTree:return null;case Dt.setTree:return t.tree;default:throw new Error}},bx=()=>{const{dispatchTree:e,setModalOpen:t,currentHierarchyPointNode:n,treePath:r}=at();return{handleSubmit:o=>{var u,l;o.preventDefault();const a=((u=n==null?void 0:n.data)==null?void 0:u.name)||"",s=((l=r==null?void 0:r.at(-1))==null?void 0:l.path)||"";e(vx(s,a)),t(null)}}},xx=({onClose:e})=>{const{t}=Je.useTranslation(),{handleSubmit:n}=bx();return M("form",{onSubmit:n,children:oe(S.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",children:[M(S.Button,{variant:"text",onClick:e,children:t("cancel")}),M(S.Button,{variant:"contained",color:"error",type:"submit",children:t("remove")})]})})};var os={},Mx=Se.exports;Object.defineProperty(os,"__esModule",{value:!0});var Df=os.default=void 0,wx=Mx(Le()),Tx=Pe,Nx=(0,wx.default)((0,Tx.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 11h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddCircleRounded");Df=os.default=Nx;var as={},Ex=Se.exports;Object.defineProperty(as,"__esModule",{value:!0});var Of=as.default=void 0,Dx=Ex(Le()),Ox=Pe,Cx=(0,Dx.default)((0,Ox.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 11H8c-.55 0-1-.45-1-1s.45-1 1-1h8c.55 0 1 .45 1 1s-.45 1-1 1z"}),"RemoveCircleRounded");Of=as.default=Cx;const _r=[{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"text"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"number"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"email"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"file"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"password"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"tel"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"address"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"url"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"date"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"time"},{isBooleanField:!0,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"switch"},{isBooleanField:!0,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"checkbox"},{isBooleanField:!1,isDecisionField:!0,isRepeatableDisabled:!0,isRequiredDisabled:!1,type:"radio"},{isBooleanField:!1,isDecisionField:!0,isRepeatableDisabled:!0,isRequiredDisabled:!1,type:"select"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"hidden"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"tree"}],Sx=()=>{const{endPoint:e}=at();return{fields:W.useCallback(()=>_r.filter(n=>!(n.type==="tree"&&!e)),[e])()}},Ax=({onChange:e,value:t})=>{const{t:n}=Je.useTranslation(),{fields:r}=Sx();return oe(S.FormControl,{sx:{flex:1},required:!0,children:[M(S.InputLabel,{children:n("type")}),M(S.Select,{value:t,label:n("type"),onChange:e,MenuProps:{PaperProps:{sx:{maxHeight:300}}},children:r.map(({type:i})=>M(S.MenuItem,{value:i,children:n(`type.${i}`,{ns:"form"})},i))})]})};var ss={},Ix=Se.exports;Object.defineProperty(ss,"__esModule",{value:!0});var Cf=ss.default=void 0,zx=Ix(Le()),kx=Pe,jx=(0,zx.default)((0,kx.jsx)("path",{d:"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddRounded");Cf=ss.default=jx;const Sf=()=>({getAllWorkflow:()=>on.default.get("/v1/workflows").then(n=>n.data),getWorkflow:n=>on.default.get(`/v1/workflow?id=${n}`).then(r=>r.data)}),us=(e,t)=>{const{getWorkflow:n}=Sf();return nn.useQuery(["/v1/workflow",e],()=>e&&n(e),{refetchOnWindowFocus:!1,...t})},$x=e=>{const{getAllWorkflow:t}=Sf();return nn.useQuery("/v1/workflows",t,{refetchOnWindowFocus:!1,...e})},Rx=e=>{const{t}=Je.useTranslation("snackMessage"),{open:n}=ns(),{currentTree:r,setCurrentTree:i,dispatchTree:o}=at(),[a,s]=W.useState("");us(a,{enabled:!!a&&!e&&a!==r.id,onError:()=>n(t("error.fetchTree",{ns:"snackMessage"}),"error"),onSuccess:({id:v,label:p,workflow:g})=>{e||(i({id:v,name:p}),o(Ef(g)))}});const{data:u,isLoading:l,refetch:c}=$x({enabled:!1,keepPreviousData:!0,onError:()=>{n(t("error.fetchTree"),"error")},onSuccess:()=>{r.id&&!a&&s(r.id)}}),d=async({target:v})=>{const{value:p}=v;if(p==="add-new-tree"){s(""),i({name:""}),o(yx());return}s(p)},f=()=>h(),h=()=>c();return{currentTree:r,fetchWorkflowSuggestions:h,handleChangeTree:d,handleOnOpen:f,setTreeSelected:s,treeSelected:a,workflowsSuggestions:u,workflowsSuggestionsLoading:l}},Af={formControl:{flex:1},select:{".MuiOutlinedInput-notchedOutline":{border:0,paddingLeft:5},".MuiSelect-select":{opacity:0,width:0},boxShadow:"none"}},If=({arrowOnly:e,required:t,size:n,showBtnAddNewTree:r,onChange:i,value:o})=>{const a=W.useMemo(()=>!!i,[i]),{t:s}=Je.useTranslation("form"),{handleChangeTree:u,handleOnOpen:l,workflowsSuggestions:c,workflowsSuggestionsLoading:d,treeSelected:f}=Rx(a);return oe(S.FormControl,{size:n,required:t,sx:Af.formControl,children:[!e&&M(S.InputLabel,{children:s("tree")}),oe(S.Select,{value:a?o:f,id:"tree-select",onChange:h=>a?i==null?void 0:i(h):u(h),sx:e?Af.select:void 0,label:s("tree"),onOpen:l,children:[d&&M(S.MenuItem,{children:M(S.Skeleton,{width:"100%"})}),c==null?void 0:c.map(({label:h,id:v})=>M(S.MenuItem,{value:v,children:h},v)),r&&M(S.MenuItem,{disabled:!0,children:M(S.Box,{sx:{height:1,width:"100%"},children:M(S.Divider,{})})}),r&&oe(S.MenuItem,{value:"add-new-tree",children:[M(S.Typography,{mr:1,children:s("newTree")}),M(Cf,{color:"primary"})]})]})]})},Lx=({helperText:e,hiddenValue:t,isHiddenField:n,isTreeField:r,treeSelected:i,handleChangeTreeSelect:o,handleChangeHelperText:a,handleChangeHiddenValue:s})=>{const{t:u}=Je.useTranslation(["translation","form"]);return r?M(If,{required:!0,value:i,onChange:o}):n?M(S.TextField,{required:!0,sx:{flex:1},label:u("hiddenValue",{ns:"form"}),onChange:s,value:t}):M(S.TextField,{sx:{flex:1},label:u("helperText",{ns:"form"}),onChange:a,value:e})},zf=e=>new Set([...e]).size===e.length,Px=(e,t,n)=>{const r=[...e,t];return zf(n?r.filter(i=>i!==n):r)},Fx=()=>{var In,Fi,Ui,Yi,qi,Vi,Bi,Qi,zn,xr,zt,kn,jn;const e=W.useMemo(()=>[{id:"0",label:"",message:"",value:""}],[]),{tree:t,dispatchTree:n,currentHierarchyPointNode:r,modalOpen:i,treePath:o,setModalOpen:a}=at(),{open:s}=ns(),{t:u}=Je.useTranslation(),[l,c]=W.useState(e),[d,f]=W.useState(""),[h,v]=W.useState(""),[p,g]=W.useState(""),[x,w]=W.useState(!1),[T,b]=W.useState(!1),[y,C]=W.useState("text"),[I,O]=W.useState(""),[E,D]=W.useState(""),[k,m]=W.useState(""),[N,z]=W.useState({off:"",on:""}),[R,L]=W.useState(!1),[V,q]=W.useState(""),ee=i==="edit",A=y==="tree",$=y==="hidden",G=_r.some(F=>F.type===y&&(F==null?void 0:F.isBooleanField)),B=_r.some(F=>F.type===y&&(F==null?void 0:F.isDecisionField)),U=_r.some(F=>F.type===y&&(F==null?void 0:F.isRequiredDisabled)),X=_r.some(F=>F.type===y&&(F==null?void 0:F.isRepeatableDisabled)),K=F=>!B&&F>0,{refetch:J,isLoading:Z}=us(I,{enabled:!1,onError:()=>{s(u("error.fetchTree",{ns:"snackMessage"}),"error")}}),ne=(F,_e)=>{c(de=>de.map(Ne=>{const{id:Fe}=Ne;return F.target.dataset.id===Fe?{...Ne,id:Fe,[_e]:F.target.value}:{...Ne}}))},te=F=>{v(F.target.value)},ze=F=>{g(F.target.value)},Y=F=>{ne(F,"label")},Ke=F=>{ne(F,"value")},Q=F=>{ne(F,"message")},lt=F=>{m(F.target.value)},vt=F=>{var tt;const{value:_e}=F.target;if(f(F.target.value),!t||!_e){q("");return}const de=ee&&(r==null?void 0:r.data.name),Ne=(tt=o==null?void 0:o.at(-1))==null?void 0:tt.path,Fe=Sn(t,Ne),He=Tf(Fe);if(Px(He,_e,de)){q("");return}q(u("mustBeUnique",{ns:"form"}))},en=F=>{w(F.target.checked)},ji=F=>{b(F.target.checked)},An=F=>{L(F.target.checked)},_s=F=>{C(F.target.value),b(!1),w(!1),L(!1)},bs=F=>{O(F.target.value)},br=F=>_e=>{z(de=>({...de,[F]:_e.target.value}))},xs=F=>{D(F.target.value)},Ms=()=>{c(F=>{const _e=Number(F[F.length-1].id),de=String(_e+1);return[...F,{...e[0],id:de}]})},$i=F=>{c(_e=>_e.filter(({id:de})=>F!==de))},Ri=(F,_e)=>{var Ne,Fe,He;const de=(He=(Fe=(Ne=F==null?void 0:F.children)==null?void 0:Ne[_e])==null?void 0:Fe.data)==null?void 0:He.children;return de?de.map(({name:pt,attributes:tt,children:yt})=>({attributes:tt,children:yt,name:pt})):[]},tn=F=>{var _e;return T?(_e=l==null?void 0:l.filter((de,Ne)=>!K(Ne)))==null?void 0:_e.map(({message:de,value:Ne,label:Fe},He)=>{const pt=`${d}:${Ne}`,tt=Ri(r,He);return{attributes:{depth:F+1,label:Fe,value:Ne,...de&&{message:de},...tt.length===0&&{isLeaf:!0}},children:tt,name:pt}}):[]},ws=F=>F.map(({message:_e,...de})=>({...de,..._e&&{message:_e}})),Li=(F,_e,de)=>{var Ne;return F&&(!_e||de)?J():F&&_e&&!de?{data:{workflow:(Ne=r==null?void 0:r.data.attributes)==null?void 0:Ne.tree},isError:null}:{data:null,isError:null}},Pi=async F=>{var j,P,H,se;F.preventDefault();const{on:_e,off:de}=N,Ne=((j=r==null?void 0:r.data)==null?void 0:j.name)||"",Fe=(r==null?void 0:r.depth)||0,He=i==="edit",pt=Fe+(He||r===null?0:1),tt=tn(pt),yt=(P=o==null?void 0:o.at(-1))==null?void 0:P.path,$n=o.length?`${yt}/${d}`:`/${d}`,Rn=((se=(H=r==null?void 0:r.data.attributes)==null?void 0:H.tree)==null?void 0:se.treeId)!==I,{data:Bt,isError:Ln}=await Li(A,He,Rn);if(Ln)return;const _={attributes:{depth:pt,label:p,type:y,...E&&{helperText:E},...(de||_e)&&{messages:{...de&&{off:de},..._e&&{on:_e}}},...A&&{tree:{...Bt==null?void 0:Bt.workflow,treeId:I},treePath:$n},...T&&{isDecision:T},...B&&!T&&{values:ws(l)},...x&&{required:x},...k&&{step:k},...R&&{repeatable:R},...$&&{hiddenValue:h}},children:tt,name:d};n(He?mx(yt||"",Ne,_):gx(yt||null,Ne,_)),a(null)};return W.useEffect(()=>{var F,_e,de,Ne,Fe,He,pt,tt,yt,$n,Rn,Bt,Ln,_,j,P,H,se,be;if(i==="edit"){const re=((_e=(F=r==null?void 0:r.data)==null?void 0:F.attributes)==null?void 0:_e.values)||((Fe=(Ne=(de=r==null?void 0:r.data)==null?void 0:de.children)==null?void 0:Ne.filter(({attributes:Ae})=>!(Ae!=null&&Ae.type)))==null?void 0:Fe.map(({attributes:Ae},Ee)=>{const{label:Ce,value:nt,message:kt}=Ae||{};return{id:String(Ee),label:String(Ce),value:String(nt),...kt&&{message:String(kt)}}}));f((r==null?void 0:r.data.name)||""),C(((He=r==null?void 0:r.data.attributes)==null?void 0:He.type)||"text"),D(((pt=r==null?void 0:r.data.attributes)==null?void 0:pt.helperText)||""),w(((tt=r==null?void 0:r.data.attributes)==null?void 0:tt.required)||!1),m(((yt=r==null?void 0:r.data.attributes)==null?void 0:yt.step)||""),g((($n=r==null?void 0:r.data.attributes)==null?void 0:$n.label)||""),b(((Rn=r==null?void 0:r.data.attributes)==null?void 0:Rn.isDecision)||!1),c(re!=null&&re.length?re:e),z({off:((Ln=(Bt=r==null?void 0:r.data.attributes)==null?void 0:Bt.messages)==null?void 0:Ln.off)||"",on:((j=(_=r==null?void 0:r.data.attributes)==null?void 0:_.messages)==null?void 0:j.on)||""}),O(((H=(P=r==null?void 0:r.data.attributes)==null?void 0:P.tree)==null?void 0:H.treeId)||""),L(((se=r==null?void 0:r.data.attributes)==null?void 0:se.repeatable)||!1),v(((be=r==null?void 0:r.data.attributes)==null?void 0:be.hiddenValue)||"")}},[(Fi=(In=r==null?void 0:r.data.attributes)==null?void 0:In.tree)==null?void 0:Fi.treeId,(Ui=r==null?void 0:r.data.attributes)==null?void 0:Ui.messages,(Yi=r==null?void 0:r.data.attributes)==null?void 0:Yi.helperText,(qi=r==null?void 0:r.data.attributes)==null?void 0:qi.isDecision,(Vi=r==null?void 0:r.data.attributes)==null?void 0:Vi.label,(Bi=r==null?void 0:r.data.attributes)==null?void 0:Bi.required,(Qi=r==null?void 0:r.data.attributes)==null?void 0:Qi.step,(zn=r==null?void 0:r.data.attributes)==null?void 0:zn.type,(xr=r==null?void 0:r.data.attributes)==null?void 0:xr.values,(zt=r==null?void 0:r.data)==null?void 0:zt.children,r==null?void 0:r.data.name,(kn=r==null?void 0:r.data.attributes)==null?void 0:kn.repeatable,(jn=r==null?void 0:r.data.attributes)==null?void 0:jn.hiddenValue,e,i]),{getDisabledValueField:K,handleAddValue:Ms,handleChangeHelperText:xs,handleChangeHiddenValue:te,handleChangeIsDecisionField:ji,handleChangeLabel:ze,handleChangeMessage:br,handleChangeName:vt,handleChangeOptionLabel:Y,handleChangeOptionMessage:Q,handleChangeOptionValue:Ke,handleChangeRepeatable:An,handleChangeRequired:en,handleChangeStep:lt,handleChangeTreeSelect:bs,handleChangeType:_s,handleDeleteValue:$i,handleSubmit:Pi,helperText:E,hiddenValue:h,isBooleanField:G,isDecision:T,isDecisionField:B,isHiddenField:$,isRepeatableDisabled:X,isRequiredDisabled:U,isTreeField:A,isWorkflowLoading:Z,label:p,messages:N,name:d,repeatable:R,required:x,step:k,treeSelected:I,type:y,uniqueNameErrorMessage:V,values:l}},kf={marginRight:"-20px !important",minWidth:"auto !important"},jf={iconButton:kf,iconButtonDelete:{...kf,"&:before":{borderRadius:"50%",content:'""',height:20,position:"absolute",width:20,zIndex:-1},backgroundColor:xe.backgroundPrimary,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"}},Ux=({onClose:e})=>{const{t}=Je.useTranslation(["translation","form"]),{values:n,required:r,name:i,uniqueNameErrorMessage:o,type:a,helperText:s,label:u,hiddenValue:l,isBooleanField:c,isDecision:d,isDecisionField:f,isHiddenField:h,isRequiredDisabled:v,isRepeatableDisabled:p,isTreeField:g,treeSelected:x,isWorkflowLoading:w,repeatable:T,messages:{on:b,off:y},handleChangeTreeSelect:C,handleChangeHelperText:I,handleChangeOptionMessage:O,handleChangeRequired:E,handleChangeName:D,handleChangeType:k,handleChangeIsDecisionField:m,handleChangeOptionLabel:N,handleDeleteValue:z,handleChangeOptionValue:R,handleChangeMessage:L,handleSubmit:V,handleAddValue:q,handleChangeLabel:ee,handleChangeRepeatable:A,handleChangeHiddenValue:$}=Fx();return oe("form",{onSubmit:V,children:[oe(S.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[M(S.TextField,{sx:{flex:1},label:t("label",{ns:"form"}),onChange:ee,value:u,required:!0}),M(S.TextField,{label:t("name"),sx:{flex:1},onChange:D,value:i,error:!!o,helperText:o,required:!0})]}),oe(S.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[M(Ax,{value:a,onChange:k}),M(Lx,{helperText:s,hiddenValue:l,isHiddenField:h,isTreeField:g,treeSelected:x,handleChangeTreeSelect:C,handleChangeHelperText:I,handleChangeHiddenValue:$})]}),c&&oe(S.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[M(S.TextField,{sx:{flex:1},label:t("onMessage",{ns:"form"}),onChange:L("on"),value:b}),M(S.TextField,{sx:{flex:1},label:t("offMessage",{ns:"form"}),onChange:L("off"),value:y})]}),oe(S.Stack,{paddingY:1,children:[M(S.FormGroup,{children:M(S.FormControlLabel,{disabled:p,control:M(S.Checkbox,{checked:T,onChange:A}),label:t("repeatable",{ns:"form"})})}),M(S.FormGroup,{children:M(S.FormControlLabel,{disabled:v,control:M(S.Checkbox,{checked:r,onChange:E}),label:t("required")})}),M(S.FormGroup,{children:M(S.FormControlLabel,{disabled:!f,control:M(S.Checkbox,{checked:d,onChange:m}),label:t("decisionField",{ns:"form"})})})]}),f&&oe(wr,{children:[M("h4",{children:t("values")}),n==null?void 0:n.map(({value:G,label:B,id:U,message:X})=>oe(S.Stack,{direction:{sm:"row",xs:"column"},spacing:1,paddingY:1,position:"relative",children:[M(S.TextField,{label:t("label",{ns:"form"}),sx:{flex:1},onChange:N,value:B,inputProps:{"data-id":U},required:!0}),M(S.TextField,{label:t("value",{ns:"form"}),sx:{flex:1},onChange:R,value:G,inputProps:{"data-id":U},required:!0}),M(S.TextField,{label:"Message",sx:{flex:1},onChange:O,value:X,inputProps:{"data-id":U}}),n.length>1&&M(S.Button,{color:"warning",sx:jf.iconButtonDelete,"data-id":U,onClick:()=>z(U),children:M(Of,{})})]},U))]}),f&&M(S.Box,{justifyContent:"flex-end",display:"flex",children:M(S.Button,{color:"success",sx:jf.iconButton,onClick:q,children:M(Df,{})})}),oe(S.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",paddingTop:3,children:[M(S.Button,{variant:"text",onClick:e,children:t("cancel")}),M(S.Button,{variant:"contained",type:"submit",disabled:!!o||w,children:w?M(S.CircularProgress,{size:14}):t("validate")})]})]})};var ls={},Yx=Se.exports;Object.defineProperty(ls,"__esModule",{value:!0});var $f=ls.default=void 0,qx=Yx(Le()),Vx=Pe,Bx=(0,qx.default)((0,Vx.jsx)("path",{d:"M17 11h3c1.11 0 2-.9 2-2V5c0-1.11-.9-2-2-2h-3c-1.11 0-2 .9-2 2v1H9.01V5c0-1.11-.9-2-2-2H4c-1.1 0-2 .9-2 2v4c0 1.11.9 2 2 2h3c1.11 0 2-.9 2-2V8h2v7.01c0 1.65 1.34 2.99 2.99 2.99H15v1c0 1.11.9 2 2 2h3c1.11 0 2-.9 2-2v-4c0-1.11-.9-2-2-2h-3c-1.11 0-2 .9-2 2v1h-1.01c-.54 0-.99-.45-.99-.99V8h2v1c0 1.1.9 2 2 2z"}),"AccountTreeRounded");$f=ls.default=Bx;var cs={},Qx=Se.exports;Object.defineProperty(cs,"__esModule",{value:!0});var Rf=cs.default=void 0,Wx=Qx(Le()),Gx=Pe,Kx=(0,Wx.default)((0,Gx.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 10h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddBoxRounded");Rf=cs.default=Kx;var fs={},Hx=Se.exports;Object.defineProperty(fs,"__esModule",{value:!0});var Lf=fs.default=void 0,Xx=Hx(Le()),Jx=Pe,Zx=(0,Xx.default)((0,Jx.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v10zM9 9h6c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H9c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1zm6.5-5-.71-.71c-.18-.18-.44-.29-.7-.29H9.91c-.26 0-.52.11-.7.29L8.5 4H6c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1h-2.5z"}),"DeleteOutlineRounded");Lf=fs.default=Zx;var ds={},e2=Se.exports;Object.defineProperty(ds,"__esModule",{value:!0});var Pf=ds.default=void 0,t2=e2(Le()),n2=Pe,r2=(0,t2.default)((0,n2.jsx)("path",{d:"M3 17.46v3.04c0 .28.22.5.5.5h3.04c.13 0 .26-.05.35-.15L17.81 9.94l-3.75-3.75L3.15 17.1c-.1.1-.15.22-.15.36zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"EditRounded");Pf=ds.default=r2;var hs={},i2=Se.exports;Object.defineProperty(hs,"__esModule",{value:!0});var Ff=hs.default=void 0,o2=i2(Le()),a2=Pe,s2=(0,o2.default)((0,a2.jsx)("path",{d:"M12 3c-4.8 0-9 3.86-9 9 0 2.12.74 4.07 1.97 5.61l-1.68 1.68c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l1.68-1.68C7.93 20.26 9.88 21 12 21c2.3 0 4.61-.88 6.36-2.64C20.12 16.61 21 14.3 21 12V5c0-1.1-.9-2-2-2h-7zm3.83 9.26-5.16 4.63c-.16.15-.41.14-.56-.01-.14-.14-.16-.36-.04-.52l2.44-3.33-4.05-.4c-.44-.04-.63-.59-.3-.89l5.16-4.63c.16-.15.41-.14.56.01.14.14.16.36.04.52l-2.44 3.33 4.05.4c.45.04.63.59.3.89z"}),"EnergySavingsLeafRounded");Ff=hs.default=s2;var ps={},u2=Se.exports;Object.defineProperty(ps,"__esModule",{value:!0});var Uf=ps.default=void 0,l2=u2(Le()),Yf=Pe,c2=(0,l2.default)([(0,Yf.jsx)("path",{d:"M14.14 12h-.06c.81 0 1.28-.91.82-1.57L9.82 3.17c-.4-.57-1.24-.57-1.64 0L3.1 10.43c-.46.66.01 1.57.82 1.57h-.06L.99 16.46c-.43.66.05 1.54.84 1.54H7v2c0 1.1.9 2 2 2s2-.9 2-2v-2h5.17c.79 0 1.27-.88.84-1.54L14.14 12z"},"0"),(0,Yf.jsx)("path",{d:"M23.01 16.46 20.14 12h-.06c.81 0 1.28-.91.82-1.57l-5.08-7.26c-.4-.57-1.24-.57-1.64 0l-1.57 2.24 3.11 4.44c.43.61.48 1.41.14 2.07-.08.16-.18.3-.3.43l2.29 3.57c.4.62.42 1.4.07 2.04-.01.02-.02.03-.03.04h4.28c.79 0 1.27-.88.84-1.54zM13 20c0 1.1.9 2 2 2s2-.9 2-2v-1h-4v1z"},"1")],"ForestRounded");Uf=ps.default=c2;var gs={},f2=Se.exports;Object.defineProperty(gs,"__esModule",{value:!0});var qf=gs.default=void 0,d2=f2(Le()),h2=Pe,p2=(0,d2.default)((0,h2.jsx)("path",{d:"M12 4V2.21c0-.45-.54-.67-.85-.35l-2.8 2.79c-.2.2-.2.51 0 .71l2.79 2.79c.32.31.86.09.86-.36V6c3.31 0 6 2.69 6 6 0 .79-.15 1.56-.44 2.25-.15.36-.04.77.23 1.04.51.51 1.37.33 1.64-.34.37-.91.57-1.91.57-2.95 0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-.79.15-1.56.44-2.25.15-.36.04-.77-.23-1.04-.51-.51-1.37-.33-1.64.34C4.2 9.96 4 10.96 4 12c0 4.42 3.58 8 8 8v1.79c0 .45.54.67.85.35l2.79-2.79c.2-.2.2-.51 0-.71l-2.79-2.79c-.31-.31-.85-.09-.85.36V18z"}),"LoopRounded");qf=gs.default=p2;var ms={},g2=Se.exports;Object.defineProperty(ms,"__esModule",{value:!0});var Vf=ms.default=void 0,m2=g2(Le()),v2=Pe,y2=(0,m2.default)((0,v2.jsx)("path",{d:"M16.96 12h.08c.81 0 1.28-.91.82-1.57l-5.08-7.25c-.4-.57-1.24-.57-1.64 0L6.1 10.43c-.46.66.02 1.57.83 1.57h.04l-2.9 4.46c-.44.66.04 1.54.84 1.54h5.08v2.02c0 1.09.89 1.98 1.98 1.98 1.09 0 1.98-.89 1.98-1.98V18h5.15c.8 0 1.28-.89.83-1.55L16.96 12z"}),"ParkRounded");Vf=ms.default=y2;var vs={},_2=Se.exports;Object.defineProperty(vs,"__esModule",{value:!0});var Bf=vs.default=void 0,b2=_2(Le()),x2=Pe,M2=(0,b2.default)((0,x2.jsx)("path",{d:"M12 6.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24zM2.71 3.16c-.39.39-.39 1.02 0 1.41l1.97 1.97C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.97-.3 4.31-.82l2.72 2.72c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L4.13 3.16c-.39-.39-1.03-.39-1.42 0zM12 16.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5zm2.97-5.33c-.15-1.4-1.25-2.49-2.64-2.64l2.64 2.64z"}),"VisibilityOffRounded");Bf=vs.default=M2;var ys={},w2=Se.exports;Object.defineProperty(ys,"__esModule",{value:!0});var Qf=ys.default=void 0,T2=w2(Le()),N2=Pe,E2=(0,T2.default)((0,N2.jsx)("path",{d:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"VisibilityRounded");Qf=ys.default=E2;const je={actionButton:{minWidth:"auto !important"},container:{background:xe.backgroundPrimary,borderRadius:"1rem"},containerField:{background:xe.backgroundPrimary,border:`solid 1px ${xe.primaryMain}`,borderRadius:"1rem"},containerHidden:{background:xe.backgroundPrimary,border:`solid 1px ${xe.error}`,borderRadius:"1rem"},containerTree:{background:xe.tertiaryMain,border:`solid 1px ${xe.primaryMain}`,borderRadius:"1rem"},containerValue:{background:xe.backgroundPrimary,border:`solid 1px ${xe.secondaryMain}`,borderRadius:"1rem"},icon:{color:xe.grey500},nodeSvg:{stroke:"transparent !important"},stepChip:{fontSize:".7rem !important",fontWeight:"bold",height:"20px !important"},title:{display:"-webkit-box",margin:0,overflow:"hidden",textAlign:"right",textOverflow:"ellipsis",webkitBoxOrient:"vertical",webkitLineClamp:2}},D2=e=>{const t=!!e,n=e==="tree";return e==="hidden"?je.containerHidden:n?je.containerTree:t?je.containerField:je.containerValue},O2=({nodeDatum:e,onAddChildren:t,onEditChildren:n,onDeleteChildren:r,onOpenTreeModal:i,hierarchyPointNode:o,size:a=220})=>{var y;const{t:s}=Je.useTranslation(["translation","form"]),{attributes:u}=e||{},{isRoot:l,isLeaf:c,required:d,step:f,type:h,label:v,repeatable:p}=u||{},g=!!h,x=h==="tree",w=h==="hidden",T=!g,b=!l&&!c;return oe("g",{children:[M(S.GlobalStyles,{styles:{".rd3t-node svg":je.nodeSvg}}),M("foreignObject",{height:a,width:a,x:`-${a/2}`,y:`-${a/2}`,style:D2(h),children:oe(S.Box,{flex:1,display:"flex",p:2,height:"100%",flexDirection:"column",justifyContent:"space-between",children:[oe(S.Stack,{alignItems:"flex-end",spacing:.5,children:[g&&oe(S.Stack,{direction:"row",spacing:1,alignItems:"center",children:[f&&M(S.Tooltip,{title:`${s("step",{ns:"form"})} ${(y=e==null?void 0:e.attributes)==null?void 0:y.step}`,placement:"left",arrow:!0,children:M(S.Chip,{color:"primary",size:"small",label:f,sx:je.stepChip})}),M(S.Typography,{variant:"subtitle2",sx:je.title,children:M("strong",{children:v})})]}),g&&M(S.Chip,{color:"info",size:"small",label:s(`type.${h}`,{ns:"form"})}),d&&M(S.Stack,{direction:"row",spacing:.5,children:d&&M(S.Chip,{color:"warning",size:"small",variant:"outlined",label:`${s("required")}`})}),M(S.Stack,{spacing:.5,alignItems:"flex-end",children:T&&M(S.Typography,{variant:"subtitle2",sx:je.title,children:M("strong",{children:v})})}),oe(S.Box,{paddingTop:.5,children:[w&&M(S.Tooltip,{title:s("isAHidden"),placement:"bottom",arrow:!0,children:M(Bf,{style:je.icon})}),p&&M(S.Tooltip,{title:s("isARepeatable"),placement:"bottom",arrow:!0,children:M(qf,{style:je.icon})}),c&&M(S.Tooltip,{title:s("isALeaf"),placement:"bottom",arrow:!0,children:M(Ff,{style:je.icon})}),l&&M(S.Tooltip,{title:s("isTheRoot"),placement:"bottom",arrow:!0,children:M(Vf,{style:je.icon})}),b&&M(S.Tooltip,{title:s("isABranch"),placement:"bottom",arrow:!0,children:M($f,{style:je.icon})}),x&&M(S.Tooltip,{title:s("isATree"),placement:"bottom",arrow:!0,children:M(Uf,{style:je.icon})})]})]}),oe(S.Stack,{direction:"row",justifyContent:"flex-end",spacing:0,alignSelf:"flex-end",children:[!l&&M(S.Tooltip,{title:s("remove"),arrow:!0,children:M(S.Button,{variant:"text",sx:je.actionButton,size:"small",color:"error",onClick:()=>r==null?void 0:r(o),children:M(Lf,{})})}),!T&&M(S.Tooltip,{title:s("edit"),arrow:!0,children:M(S.Button,{variant:"text",color:"secondary",sx:je.actionButton,size:"small",onClick:()=>n==null?void 0:n(o),children:M(Pf,{})})}),c&&M(S.Tooltip,{title:s("add"),arrow:!0,children:M(S.Button,{variant:"text",color:"success",sx:je.actionButton,size:"small",onClick:()=>t==null?void 0:t(o),children:M(Rf,{})})}),x&&M(S.Tooltip,{title:s("show"),arrow:!0,children:M(S.Button,{variant:"text",color:"info",sx:je.actionButton,size:"small",onClick:()=>i==null?void 0:i(o),children:M(Qf,{})})})]})]})})]})},C2=W.memo(O2),Wf=()=>{const{setModalOpen:e,setCurrentHierarchyPointNode:t,setTreeModalOpen:n,setTreePath:r}=at();return{handleAddChildren:l=>{t(l),e("add")},handleCloseTreeModal:()=>{r([]),n(!1)},handleDeleteChildren:l=>{t(l),e("delete")},handleEditChildren:l=>{t(l),e("edit")},handleOpenTreeModal:l=>{var d,f;const c={label:l==null?void 0:l.data.attributes.label,path:((f=(d=l==null?void 0:l.data)==null?void 0:d.attributes)==null?void 0:f.treePath)||""};r(h=>[...h,c]),n(!0)}}},S2=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>{const{handleDeleteChildren:a,handleEditChildren:s,handleAddChildren:u,handleOpenTreeModal:l}=Wf();return M(C2,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o,onAddChildren:u,onOpenTreeModal:l,onDeleteChildren:a,onEditChildren:s})},Gf=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>M(S2,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o}),A2=()=>{const{currentHierarchyPointNode:e,modalOpen:t,setModalOpen:n}=at(),{t:r}=Je.useTranslation(["modal","snackMessage"]),i=t==="edit";return{closeModal:()=>n(null),getTitleModalDelete:()=>{var f,h;const d=(h=(f=e==null?void 0:e.data)==null?void 0:f.attributes)==null?void 0:h.label;return r("deleteTitle",{name:d,ns:"modal"})},getTitleModalMutation:()=>{var h;const d=(h=e==null?void 0:e.data)==null?void 0:h.attributes.label;return d?r(i?"editTitle":"addTitle",{name:d,ns:"modal"}):r("addFirstTitle",{name:d,ns:"modal"})},isDeleteModal:t==="delete",isModalMutationOpen:i||t==="add"}},I2=()=>{const{currentTree:e,setCurrentTree:t,tree:n}=at(),{name:r,errorName:i,id:o}=e;return{disabled:!!e.id&&!n,errorName:i,handleChangeName:u=>{const{value:l}=u.target;if(!l){t(c=>({...c,errorName:"Champs requis",name:u.target.value}));return}t(c=>({...c,errorName:"",name:u.target.value}))},id:o,name:r}},z2=()=>{const{t:e}=Je.useTranslation("form"),{name:t,handleChangeName:n,errorName:r,disabled:i}=I2();return M(S.TextField,{required:!0,label:e("treeName"),size:"small",onChange:n,value:t,error:!!r,disabled:i})},k2=()=>{var h,v;const{tree:e,treeModalOpen:t,treePath:n,endPoint:r}=at(),{handleCloseTreeModal:i}=Wf(),{getTitleModalMutation:o,closeModal:a,getTitleModalDelete:s,isModalMutationOpen:u,isDeleteModal:l}=A2(),c=(h=n==null?void 0:n.at(-1))==null?void 0:h.path,d=(v=n==null?void 0:n.at(-1))==null?void 0:v.label,f=e&&Sn(e,c);return oe(wr,{children:[oe(ox,{children:[M(nx,{children:oe(S.Stack,{justifyContent:"space-between",direction:"row",alignItems:"center",children:[M(xd,{}),!!r&&oe(S.Stack,{direction:"row",alignItems:"center",spacing:2,children:[M(z2,{}),M(If,{size:"small",arrowOnly:!0,showBtnAddNewTree:!0})]})]})}),M(ix,{children:M(ac,{data:e,renderCustomNodeElement:Gf})}),M(sx,{children:M(tv,{value:e})}),M(ex,{children:M(Vb,{value:e})})]}),M(bf,{open:u,onClose:a,title:o(),children:M(Ux,{onClose:a})}),M(bf,{open:l,onClose:a,title:s(),children:M(xx,{onClose:a})}),M(Jb,{open:t,onClose:i,title:d,children:f&&M(ac,{data:f,renderCustomNodeElement:Gf})})]})},j2="0.6.2",$2=({children:e,endPoint:t,initialTree:n,initialTreeId:r})=>{const[i,o]=W.useState(qt.currentHierarchyPointNode),[a,s]=W.useState(qt.modalOpen),[u,l]=W.useState(qt.treeModalOpen),[c,d]=W.useState(qt.treePath),[f,h]=W.useReducer(_x,n||qt.tree),[v,p]=W.useState(r?{...qt.currentTree,id:r}:qt.currentTree),g=W.useMemo(()=>({currentHierarchyPointNode:i,currentTree:v,dispatchTree:h,endPoint:t,modalOpen:a,setCurrentHierarchyPointNode:o,setCurrentTree:p,setModalOpen:s,setTreeModalOpen:l,setTreePath:d,tree:f,treeModalOpen:u,treePath:c,version:j2}),[i,a,u,c,f,v,t]);return us(v.id,{enabled:!!r,onSuccess:async x=>{!x||(p({id:x==null?void 0:x.id,name:x==null?void 0:x.label}),h(Ef((x==null?void 0:x.workflow)||null)))}}),M(ic.Provider,{value:g,children:e})},R2={createTree:"Create Tree",downloadJSONFile:"Download JSON File",save:"Save",update:"Update"},L2={decisionFields:"Decision fields",helperText:"Helper text",hiddenValue:"Hidden value",label:"Label",mustBeUnique:"Must be unique",newTree:"Nouvel arbre",offMessage:"Message (disable)",onMessage:"Message (enable)",repeatable:"Repeatable",staticFields:"Static fields",step:"Step",tree:"Tree",treeName:"Tree name",type:{address:"Address",checkbox:"Checkbox",date:"Date",email:"Email",file:"File",number:"Number",password:"Password",radio:"Radio",select:"Select",switch:"Switch",tel:"Tel",time:"Time",text:"Text",hidden:"Hidden field",tree:"Tree",url:"URL"},value:"Value",values:"Values"},P2={saveTree:"Save a Tree",addFirstTitle:"Add a field",addTitle:"Add a field to \xAB {{name}} \xBB",deleteTitle:"Are you sure to delete \xAB {{name}} \xBB",editTitle:"Edit field \xAB {{name}} \xBB"},F2={error:{saveTree:"An error has occurred. Please try again",updateTree:"An error has occurred. Please try again",fetchTree:"An error has occurred. Please try again"},success:{saveTree:"Tree registered",updateTree:"Tree updated"}},U2={add:"Add",cancel:"Cancel",disabled:"Disabled",edit:"Edit",isALeaf:"Is a leaf",isAHidden:"Is a hidden field",isARepeatable:"Is a repeatable",isABranch:"Is a branch",isATree:"Is a tree",isTheRoot:"Is the root",label:"Label",name:"Name",remove:"Remove",required:"Required",save:"Save",show:"Show",type:"Type",validate:"Validate",value:"Value",values:"Values"},Y2={createTree:"Cr\xE9er un arbre",downloadJSONFile:"T\xE9l\xE9charger le fichier JSON",save:"Enregistrer",update:"Modifier"},q2={decisionField:"Champs de d\xE9cision",helperText:"Texte d'information",hiddenValue:"Valeur cach\xE9",label:"Label",mustBeUnique:"Doit \xEAtre unique",newTree:"Nouvel arbre",offMessage:"Message (d\xE9sactiver)",onMessage:"Message (activer)",repeatable:"R\xE9p\xE9table",staticFields:"Champs statiques",step:"\xC9tape",tree:"Arbre",treeName:"Nom de l'arbre",type:{address:"Adresse",checkbox:"Case \xE0 cocher",date:"Date",email:"Email",file:"Fichier",number:"Nombre",password:"Mot de passe",radio:"Radio",select:"Select",switch:"Switch",tel:"T\xE9l\xE9phone",time:"Temps",text:"Texte",hidden:"Champs cach\xE9",tree:"Arbre",url:"URL"},value:"Valeur",values:"Valeurs"},V2={saveTree:"Enregistrer l'arbre",addFirstTitle:"Ajouter un champ",addTitle:"Ajouter un champ \xE0 \xAB {{name}} \xBB",deleteTitle:"Voulez vraiment supprimer \xAB {{name}} \xBB",editTitle:"\xC9diter le champ \xAB {{name}} \xBB"},B2={error:{saveTree:"Une erreur est survenue veuillez r\xE9essayer",updateTree:"Une erreur est survenue veuillez r\xE9essayer",fetchTree:"Une erreur est survenue veuillez r\xE9essayer"},success:{saveTree:"Arbre enregistr\xE9",updateTree:"Arbre mis \xE0 jour"}},Q2={add:"Ajouter",cancel:"Annuler",disabled:"D\xE9sactiv\xE9",edit:"\xC9diter",isALeaf:"Est une feuille",isAHidden:"Est un champs cach\xE9",isARepeatable:"Est r\xE9p\xE9table",isABranch:"Est une branche",isATree:"Est un arbre",isTheRoot:"Est la racine",label:"Label",name:"Nom",remove:"Supprimer",required:"Requis",save:"Enregistrer",show:"Afficher",type:"Type",validate:"Valider",value:"Valeur",values:"Valeurs"};od.default.use(ad.default).use(Je.initReactI18next).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!1},resources:{en:{button:R2,form:L2,modal:P2,snackMessage:F2,translation:U2},fr:{button:Y2,form:q2,modal:V2,snackMessage:B2,translation:Q2}}}).then();const W2=({authToken:e,endPoint:t,initialTree:n,initialTreeId:r})=>(W.useLayoutEffect(()=>{on.default.defaults.baseURL=t,on.default.defaults.headers.common.Authorization=`Bearer ${e}`},[t,e]),M(nn.QueryClientProvider,{client:dd,children:M(gd,{authToken:e,children:M($2,{endPoint:t,initialTree:n,initialTreeId:r,children:M(fd,{children:M(_d,{children:M(k2,{})})})})})}));ke.TreePlusIcon=rc,ke.Treege=W2,Object.defineProperties(ke,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
164
+ `))}f[v]={}}}};Object.keys(l.components).forEach(f=>{const h=l.components[f].styleOverrides;h&&f.indexOf("Mui")===0&&d(h,f)})}return l.unstable_sxConfig=We({},Ga,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(d){return Ka({sx:d,theme:this})},l}const hf=bb();function xb({props:e,name:t}){return B_({props:e,name:t,defaultTheme:hf})}const Mb=q_({defaultTheme:hf,rootShouldForwardProp:e=>ki(e)&&e!=="classes"});function wb(e){return Aa("MuiSvgIcon",e)}Ov("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Tb=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Nb=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${wt(t)}`,`fontSize${wt(n)}`]};return Ev(i,wb,r)},Eb=Mb("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${wt(n.color)}`],t[`fontSize${wt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,u,l,c,d,f,h,v,p,g,x,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(o=i.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((u=e.typography)==null||(l=u.pxToRem)==null?void 0:l.call(u,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(v=h[t.color])==null?void 0:v.main)!=null?f:{action:(p=(e.vars||e).palette)==null||(g=p.action)==null?void 0:g.active,disabled:(x=(e.vars||e).palette)==null||(w=x.action)==null?void 0:w.disabled,inherit:void 0}[t.color]}}),Za=Me.forwardRef(function(t,n){const r=xb({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,h=sr(r,Tb),v=We({},r,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f}),p={};c||(p.viewBox=f);const g=Nb(v);return oe(Eb,We({as:s,className:Cv(g.root,o),focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},p,h,{ownerState:v,children:[i,d?M("title",{children:d}):null]}))});process.env.NODE_ENV!=="production"&&(Za.propTypes={children:le.exports.node,classes:le.exports.object,className:le.exports.string,color:le.exports.oneOfType([le.exports.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),le.exports.string]),component:le.exports.elementType,fontSize:le.exports.oneOfType([le.exports.oneOf(["inherit","large","medium","small"]),le.exports.string]),htmlColor:le.exports.string,inheritViewBox:le.exports.bool,shapeRendering:le.exports.string,sx:le.exports.oneOfType([le.exports.arrayOf(le.exports.oneOfType([le.exports.func,le.exports.object,le.exports.bool])),le.exports.func,le.exports.object]),titleAccess:le.exports.string,viewBox:le.exports.string}),Za.muiName="SvgIcon";const pf=Za;function Db(e,t){function n(r,i){return M(pf,We({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=pf.muiName,Me.memo(Me.forwardRef(n))}const Ob=$t(Object.freeze(Object.defineProperty({__proto__:null,unstable_ClassNameGenerator:{configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
165
+ `)),bc.configure(e)}},capitalize:wt,createChainedFunction:sv,createSvgIcon:Db,debounce:uv,deprecatedPropType:lv,isMuiElement:cv,ownerDocument:dc,ownerWindow:fv,requirePropFactory:dv,setRef:hc,unstable_useEnhancedEffect:pc,unstable_useId:pv,unsupportedProp:gv,useControlled:mv,useEventCallback:vv,useForkRef:yv,useIsFocusVisible:Nv},Symbol.toStringTag,{value:"Module"})));var gf;function Le(){return gf||(gf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Ob}(Da)),Da}const Pe=$t(cd);var Cb=Se.exports;Object.defineProperty(Ea,"__esModule",{value:!0});var mf=Ea.default=void 0,Sb=Cb(Le()),Ab=Pe,Ib=(0,Sb.default)((0,Ab.jsx)("path",{d:"m20.41 6.41-2.83-2.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h7.4l8.6-8.6V7.83c0-.53-.21-1.04-.59-1.42zM12 18c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-9c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1h7c.55 0 1 .45 1 1v2zm4.99 7.25 1.77 1.77-4.84 4.84c-.1.09-.23.14-.36.14H15.5c-.28 0-.5-.22-.5-.5v-1.06c0-.13.05-.26.15-.35l4.84-4.84zm3.26.26-.85.85-1.77-1.77.85-.85c.2-.2.51-.2.71 0l1.06 1.06c.2.2.2.52 0 .71z"}),"SaveAsRounded");mf=Ea.default=Ib;var es={},kb=Se.exports;Object.defineProperty(es,"__esModule",{value:!0});var vf=es.default=void 0,zb=kb(Le()),jb=Pe,$b=(0,zb.default)((0,jb.jsx)("path",{d:"M17.59 3.59c-.38-.38-.89-.59-1.42-.59H5c-1.11 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7.83c0-.53-.21-1.04-.59-1.41l-2.82-2.83zM12 19c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm1-10H7c-1.1 0-2-.9-2-2s.9-2 2-2h6c1.1 0 2 .9 2 2s-.9 2-2 2z"}),"SaveRounded");vf=es.default=$b;var ts={},Rb=Se.exports;Object.defineProperty(ts,"__esModule",{value:!0});var yf=ts.default=void 0,Lb=Rb(Le()),Pb=Pe,Fb=(0,Lb.default)((0,Pb.jsx)("path",{d:"M18 2h-7.17c-.53 0-1.04.21-1.42.59L4.59 7.41C4.21 7.79 4 8.3 4 8.83V20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6.35 14.65-2.79-2.79c-.32-.32-.1-.86.35-.86H11v-2.99c0-.55.44-.99.99-1 .56-.01 1.01.44 1.01 1V13h1.79c.45 0 .67.54.35.85l-2.79 2.79c-.19.2-.51.2-.7.01z"}),"SimCardDownloadRounded");yf=ts.default=Fb;const ns=()=>{const{dispatchSnackbar:e}=W.useContext(Ds);return{close:()=>e(Os()),open:(r,i="success")=>e(md(r,i))}},_f=()=>{const{version:e}=at();return{patchWorkflow:r=>on.default.patch("/v1/workflow",{...r,version:e}).then(i=>i.data),postWorkflow:r=>on.default.post("/v1/workflow",{...r,version:e}).then(i=>i.data)}},Ub=e=>{const{postWorkflow:t}=_f();return nn.useMutation(t,e)},Yb=e=>{const{patchWorkflow:t}=_f();return nn.useMutation(t,e)},qb=()=>{const{t:e}=Je.useTranslation(["snackMessage"]),{open:t}=ns(),{setCurrentTree:n,currentTree:r,tree:i}=at(),{mutate:o}=Ub({onError:()=>{t(e("error.saveTree",{ns:"snackMessage"}),"error")},onSuccess:c=>{t(e("success.saveTree",{ns:"snackMessage"})),n(d=>({...d,id:c.workflow_id}))}}),{mutate:a}=Yb({onError:()=>{t(e("error.updateTree",{ns:"snackMessage"}),"error")},onSuccess:()=>{t(e("success.updateTree",{ns:"snackMessage"}))}}),s=c=>JSON.stringify(c,null,2);return{formatJSON:s,getDownloadLink:c=>`data:text/json;charset=utf-8,${encodeURIComponent(s(c))}`,handleSubmit:()=>{const{name:c,id:d}=r;if(!c){n(f=>({...f,errorName:"Champs Requis"}));return}if(i){if(d){a({id:d,label:c,workflow:i});return}o({label:c,workflow:i})}}}},Vb=({downloadedFileName:e="export",value:t})=>{const{t:n}=Je.useTranslation("button"),{getDownloadLink:r,handleSubmit:i}=qb(),{currentTree:o,endPoint:a}=at(),{id:s}=o;return oe(S.Stack,{direction:"row",spacing:2,justifyContent:"center",children:[M(S.Tooltip,{title:n("downloadJSONFile"),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:M(S.Box,{children:M(S.Button,{variant:"outlined",href:r(t),download:`${e}.json`,disabled:!t,children:M(yf,{})})})}),M(S.Tooltip,{title:n(s?"update":"save"),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:M(S.Box,{children:M(S.Button,{variant:"outlined",onClick:i,disabled:!t||!a,children:s?M(mf,{}):M(vf,{})})})})]})},Bb={box:{backgroundColor:xe.background,border:`solid 1px ${xe.borderBlue}`}},bf=({children:e,description:t,open:n,onClose:r,title:i})=>M(S.Dialog,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",scroll:"body",maxWidth:"sm",fullWidth:!0,children:oe(S.Box,{sx:Bb.box,p:4,children:[M("h3",{children:i}),M("p",{children:t}),e]})});var rs={},Qb=Se.exports;Object.defineProperty(rs,"__esModule",{value:!0});var xf=rs.default=void 0,Wb=Qb(Le()),Gb=Pe,Kb=(0,Wb.default)((0,Gb.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}),"CloseRounded");xf=rs.default=Kb;const zi={container:{display:"flex",flexDirection:"column",height:"100%",margin:1},main:{border:`solid 1px ${xe.borderBlue}`,height:" 100%",margin:1},toolbar:{backgroundColor:xe.background,boxShadow:"none",display:"flex",padding:"0 ! important"},toolbarBox:{backgroundColor:xe.tertiary,border:`solid 1px ${xe.primary}`,margin:1,paddingX:2,paddingY:1,width:"100%"}},Hb=({children:e,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:u},l)=>M(S.Slide,{direction:"up",ref:l,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:u,children:e}),Xb=W.forwardRef(Hb),Jb=({children:e,open:t,onClose:n,title:r})=>M(S.Dialog,{PaperProps:{sx:{backgroundColor:xe.background,backgroundImage:"none"}},open:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",fullScreen:!0,TransitionComponent:Xb,children:oe(S.Box,{sx:zi.container,children:[M(S.AppBar,{position:"sticky",elevation:0,children:M(S.Toolbar,{sx:zi.toolbar,children:oe(S.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:zi.toolbarBox,children:[M(S.Typography,{variant:"h5",children:M("strong",{children:r})}),M(S.IconButton,{edge:"end",color:"inherit",onClick:n,"aria-label":"close",children:M(xf,{})})]})})}),M(S.Box,{sx:zi.main,children:e})]})}),Zb={box:{border:`solid 1px ${xe.borderBlue}`,flexGrow:0}},ex=({children:e})=>M(S.Box,{p:2,role:"group",sx:Zb.box,children:e}),tx={box:{border:`solid 1px ${xe.borderBlue}`,flexGrow:0}},nx=({children:e})=>M(S.Box,{sx:tx.box,padding:2,component:"header",children:e}),rx={box:{border:`solid 1px ${xe.borderBlue}`,flexGrow:1}},ix=({children:e})=>M(S.Box,{sx:rx.box,component:"main",role:"tree",children:e}),Mf={stack:{width:"100%"}},ox=({children:e})=>{const t=W.Children.toArray(e);return oe(S.Grid,{container:!0,padding:1,flexWrap:"nowrap",height:"100%",role:"treegrid",children:[M(S.Grid,{item:!0,xs:9,padding:1,display:"flex",children:oe(S.Stack,{sx:Mf.stack,spacing:2,children:[t[0],t[1]]})}),M(S.Grid,{item:!0,xs:3,padding:1,display:"flex",children:oe(S.Stack,{sx:Mf.stack,spacing:2,children:[t[2],t[3]]})})]})},ax={box:{border:`solid 1px ${xe.borderBlue}`,flexGrow:1,overflow:"auto"}},sx=({children:e})=>M(S.Box,{sx:ax.box,component:"aside",children:e}),wf=(e,t)=>{var o;if(!e)return null;let n=null;const r=(e==null?void 0:e.name)===t,i=(o=e==null?void 0:e.children)==null?void 0:o.length;if(r)return e;if(i)for(let a=0;n===null&&a<e.children.length;a+=1)n=wf(e.children[a],t);return n},Sn=(e,t)=>{var a,s,u,l,c;if(!e)return null;if(!t)return e;let n=null;const r=((a=e==null?void 0:e.attributes)==null?void 0:a.treePath)===t,i=(s=e==null?void 0:e.attributes)==null?void 0:s.tree,o=(u=e==null?void 0:e.children)==null?void 0:u.length;if(r)return((l=e==null?void 0:e.attributes)==null?void 0:l.tree)||null;if(i&&(n=Sn((c=e.attributes)==null?void 0:c.tree,t)),o)for(let d=0;n===null&&d<e.children.length;d+=1)n=Sn(e.children[d],t);return n},is=(e,t,n)=>{const r=Sn(e,t);return wf(r,n)},ux=(e,t)=>{if(!e)return null;const n=t.attributes.isDecision;return Object.defineProperty(e,"attributes",{value:{...e.attributes,isLeaf:!1}}),n?(Object.defineProperty(e,"children",{value:[{...t,attributes:{...t.attributes,isLeaf:!1}}]}),null):(Object.defineProperty(e,"children",{value:[{...t,attributes:{...t.attributes,isLeaf:!0}}]}),null)},lx=({tree:e,path:t,name:n,child:r})=>{if(!e)return r.children.length?{...r}:{...r,attributes:{...r.attributes,isLeaf:!0,isRoot:!0}};const i=structuredClone(e),o=is(i,t,n);return ux(o,r),i},Tf=(e,t=[])=>{if(!e)return[];let n=[...t];return Object.entries(e).forEach(([r,i])=>{const o=r==="name",a=r==="children"&&i.length>0;o&&(n=[...n,i]),a&&(n=[...n,...i.map(s=>Tf(s,n)).flat()])}),n},Nf=(e,t,n=null)=>{var a;if(!e)return null;let r=null;const i=(e==null?void 0:e.name)===t,o=(a=e==null?void 0:e.children)==null?void 0:a.length;if(i)return n;if(o)for(let s=0;r===null&&s<e.children.length;s+=1)r=Nf(e.children[s],t,e);return r},cx=(e,t)=>(!e||!t||(Object.defineProperty(e,"children",{value:e.children.filter(n=>n.name!==t.name)}),Object.defineProperty(e,"attributes",{value:{...e.attributes,isLeaf:!0}})),null),fx=(e,t,n)=>{const r=Sn(e,t);return Nf(r,n)},dx=({tree:e,path:t,name:n})=>{const r=structuredClone(e),i=is(r,t,n),o=fx(r,t,n);return cx(o,i),r},hx=(e,t)=>{if(!e)return null;const n=t.attributes.isDecision,r=e.attributes.isDecision,i=e.attributes.depth===0;return r||n?(Object.defineProperty(e,"children",{value:[...t.children]}),Object.defineProperty(e,"attributes",{value:{...t.attributes,isLeaf:!t.children.length||!n,isRoot:i}}),Object.defineProperty(e,"name",{value:t.name}),null):(Object.defineProperty(e,"children",{value:[...e.children]}),Object.defineProperty(e,"attributes",{value:{...t.attributes,isLeaf:!e.children.length,isRoot:i}}),Object.defineProperty(e,"name",{value:t.name}),null)},px=({tree:e,path:t,name:n,child:r})=>{const i=structuredClone(e),o=is(i,t,n);return hx(o,r),i},Dt={appendTreeCard:"appendTreeCard",deleteTreeCard:"deleteTreeCard",replaceTreeCard:"replaceTreeCard",resetTree:"resetTree",setTree:"setTree"},gx=(e,t,n)=>({children:n,name:t,path:e,type:Dt.appendTreeCard}),mx=(e,t,n)=>({children:n,name:t,path:e,type:Dt.replaceTreeCard}),vx=(e,t)=>({name:t,path:e,type:Dt.deleteTreeCard}),yx=()=>({type:Dt.resetTree}),Ef=e=>({tree:e,type:Dt.setTree}),_x=(e,t)=>{switch(t.type){case Dt.appendTreeCard:{const{name:n,path:r,children:i}=t;return lx({child:i,name:n,path:r,tree:e})}case Dt.deleteTreeCard:{const{path:n,name:r}=t;return dx({name:r,path:n,tree:e})}case Dt.replaceTreeCard:{const{name:n,path:r,children:i}=t;return px({child:i,name:n,path:r,tree:e})}case Dt.resetTree:return null;case Dt.setTree:return t.tree;default:throw new Error}},bx=()=>{const{dispatchTree:e,setModalOpen:t,currentHierarchyPointNode:n,treePath:r}=at();return{handleSubmit:o=>{var u,l;o.preventDefault();const a=((u=n==null?void 0:n.data)==null?void 0:u.name)||"",s=((l=r==null?void 0:r.at(-1))==null?void 0:l.path)||"";e(vx(s,a)),t(null)}}},xx=({onClose:e})=>{const{t}=Je.useTranslation(),{handleSubmit:n}=bx();return M("form",{onSubmit:n,children:oe(S.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",children:[M(S.Button,{variant:"text",onClick:e,children:t("cancel")}),M(S.Button,{variant:"contained",color:"error",type:"submit",children:t("remove")})]})})};var os={},Mx=Se.exports;Object.defineProperty(os,"__esModule",{value:!0});var Df=os.default=void 0,wx=Mx(Le()),Tx=Pe,Nx=(0,wx.default)((0,Tx.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 11h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddCircleRounded");Df=os.default=Nx;var as={},Ex=Se.exports;Object.defineProperty(as,"__esModule",{value:!0});var Of=as.default=void 0,Dx=Ex(Le()),Ox=Pe,Cx=(0,Dx.default)((0,Ox.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 11H8c-.55 0-1-.45-1-1s.45-1 1-1h8c.55 0 1 .45 1 1s-.45 1-1 1z"}),"RemoveCircleRounded");Of=as.default=Cx;const _r=[{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"text"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"number"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"email"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"file"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"password"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"tel"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"address"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"url"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"date"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"time"},{isBooleanField:!0,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"switch"},{isBooleanField:!0,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"checkbox"},{isBooleanField:!1,isDecisionField:!0,isRepeatableDisabled:!0,isRequiredDisabled:!1,type:"radio"},{isBooleanField:!1,isDecisionField:!0,isRepeatableDisabled:!0,isRequiredDisabled:!1,type:"select"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"hidden"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"tree"}],Sx=()=>{const{endPoint:e}=at();return{fields:W.useCallback(()=>_r.filter(n=>!(n.type==="tree"&&!e)),[e])()}},Ax=({onChange:e,value:t})=>{const{t:n}=Je.useTranslation(),{fields:r}=Sx();return oe(S.FormControl,{sx:{flex:1},required:!0,children:[M(S.InputLabel,{children:n("type")}),M(S.Select,{value:t,label:n("type"),onChange:e,MenuProps:{PaperProps:{sx:{maxHeight:300}}},children:r.map(({type:i})=>M(S.MenuItem,{value:i,children:n(`type.${i}`,{ns:"form"})},i))})]})};var ss={},Ix=Se.exports;Object.defineProperty(ss,"__esModule",{value:!0});var Cf=ss.default=void 0,kx=Ix(Le()),zx=Pe,jx=(0,kx.default)((0,zx.jsx)("path",{d:"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddRounded");Cf=ss.default=jx;const Sf=()=>({getAllWorkflow:()=>on.default.get("/v1/workflows").then(n=>n.data),getWorkflow:n=>on.default.get(`/v1/workflow?id=${n}`).then(r=>r.data)}),us=(e,t)=>{const{getWorkflow:n}=Sf();return nn.useQuery(["/v1/workflow",e],()=>e&&n(e),{refetchOnWindowFocus:!1,...t})},$x=e=>{const{getAllWorkflow:t}=Sf();return nn.useQuery("/v1/workflows",t,{refetchOnWindowFocus:!1,...e})},Rx=e=>{const{t}=Je.useTranslation("snackMessage"),{open:n}=ns(),{currentTree:r,setCurrentTree:i,dispatchTree:o}=at(),[a,s]=W.useState("");us(a,{enabled:!!a&&!e&&a!==r.id,onError:()=>n(t("error.fetchTree",{ns:"snackMessage"}),"error"),onSuccess:({id:v,label:p,workflow:g})=>{e||(i({id:v,name:p}),o(Ef(g)))}});const{data:u,isLoading:l,refetch:c}=$x({enabled:!1,keepPreviousData:!0,onError:()=>{n(t("error.fetchTree"),"error")},onSuccess:()=>{r.id&&!a&&s(r.id)}}),d=async({target:v})=>{const{value:p}=v;if(p==="add-new-tree"){s(""),i({name:""}),o(yx());return}s(p)},f=()=>h(),h=()=>c();return{currentTree:r,fetchWorkflowSuggestions:h,handleChangeTree:d,handleOnOpen:f,setTreeSelected:s,treeSelected:a,workflowsSuggestions:u,workflowsSuggestionsLoading:l}},Af={formControl:{flex:1},select:{".MuiOutlinedInput-notchedOutline":{border:0,paddingLeft:5},".MuiSelect-select":{opacity:0,width:0},boxShadow:"none"}},If=({arrowOnly:e,required:t,size:n,showBtnAddNewTree:r,onChange:i,value:o})=>{const a=W.useMemo(()=>!!i,[i]),{t:s}=Je.useTranslation("form"),{handleChangeTree:u,handleOnOpen:l,workflowsSuggestions:c,workflowsSuggestionsLoading:d,treeSelected:f}=Rx(a);return oe(S.FormControl,{size:n,required:t,sx:Af.formControl,children:[!e&&M(S.InputLabel,{children:s("tree")}),oe(S.Select,{value:a?o:f,id:"tree-select",onChange:h=>a?i==null?void 0:i(h):u(h),sx:e?Af.select:void 0,label:s("tree"),onOpen:l,children:[d&&M(S.MenuItem,{children:M(S.Skeleton,{width:"100%"})}),c==null?void 0:c.map(({label:h,id:v})=>M(S.MenuItem,{value:v,children:h},v)),r&&M(S.MenuItem,{disabled:!0,children:M(S.Box,{sx:{height:1,width:"100%"},children:M(S.Divider,{})})}),r&&oe(S.MenuItem,{value:"add-new-tree",children:[M(S.Typography,{mr:1,children:s("newTree")}),M(Cf,{color:"primary"})]})]})]})},Lx=({helperText:e,hiddenValue:t,isHiddenField:n,isTreeField:r,treeSelected:i,handleChangeTreeSelect:o,handleChangeHelperText:a,handleChangeHiddenValue:s})=>{const{t:u}=Je.useTranslation(["translation","form"]);return r?M(If,{required:!0,value:i,onChange:o}):n?M(S.TextField,{required:!0,sx:{flex:1},label:u("hiddenValue",{ns:"form"}),onChange:s,value:t}):M(S.TextField,{sx:{flex:1},label:u("helperText",{ns:"form"}),onChange:a,value:e})},kf=e=>new Set([...e]).size===e.length,Px=(e,t,n)=>{const r=[...e,t];return kf(n?r.filter(i=>i!==n):r)},Fx=()=>{var In,Fi,Ui,Yi,qi,Vi,Bi,Qi,kn,xr,kt,zn,jn;const e=W.useMemo(()=>[{id:"0",label:"",message:"",value:""}],[]),{tree:t,dispatchTree:n,currentHierarchyPointNode:r,modalOpen:i,treePath:o,setModalOpen:a}=at(),{open:s}=ns(),{t:u}=Je.useTranslation(),[l,c]=W.useState(e),[d,f]=W.useState(""),[h,v]=W.useState(""),[p,g]=W.useState(""),[x,w]=W.useState(!1),[T,b]=W.useState(!1),[y,C]=W.useState("text"),[I,O]=W.useState(""),[E,D]=W.useState(""),[z,m]=W.useState(""),[N,k]=W.useState({off:"",on:""}),[R,L]=W.useState(!1),[V,q]=W.useState(""),ee=i==="edit",A=y==="tree",$=y==="hidden",G=_r.some(F=>F.type===y&&(F==null?void 0:F.isBooleanField)),B=_r.some(F=>F.type===y&&(F==null?void 0:F.isDecisionField)),U=_r.some(F=>F.type===y&&(F==null?void 0:F.isRequiredDisabled)),X=_r.some(F=>F.type===y&&(F==null?void 0:F.isRepeatableDisabled)),K=F=>!B&&F>0,{refetch:J,isLoading:Z}=us(I,{enabled:!1,onError:()=>{s(u("error.fetchTree",{ns:"snackMessage"}),"error")}}),ne=(F,_e)=>{c(de=>de.map(Ne=>{const{id:Fe}=Ne;return F.target.dataset.id===Fe?{...Ne,id:Fe,[_e]:F.target.value}:{...Ne}}))},te=F=>{v(F.target.value)},ke=F=>{g(F.target.value)},Y=F=>{ne(F,"label")},Ke=F=>{ne(F,"value")},Q=F=>{ne(F,"message")},lt=F=>{m(F.target.value)},vt=F=>{var tt;const{value:_e}=F.target;if(f(F.target.value),!t||!_e){q("");return}const de=ee&&(r==null?void 0:r.data.name),Ne=(tt=o==null?void 0:o.at(-1))==null?void 0:tt.path,Fe=Sn(t,Ne),He=Tf(Fe);if(Px(He,_e,de)){q("");return}q(u("mustBeUnique",{ns:"form"}))},en=F=>{w(F.target.checked)},ji=F=>{b(F.target.checked)},An=F=>{L(F.target.checked)},_s=F=>{C(F.target.value),b(!1),w(!1),L(!1)},bs=F=>{O(F.target.value)},br=F=>_e=>{k(de=>({...de,[F]:_e.target.value}))},xs=F=>{D(F.target.value)},Ms=()=>{c(F=>{const _e=Number(F[F.length-1].id),de=String(_e+1);return[...F,{...e[0],id:de}]})},$i=F=>{c(_e=>_e.filter(({id:de})=>F!==de))},Ri=(F,_e)=>{var Ne,Fe,He;const de=(He=(Fe=(Ne=F==null?void 0:F.children)==null?void 0:Ne[_e])==null?void 0:Fe.data)==null?void 0:He.children;return de?de.map(({name:pt,attributes:tt,children:yt})=>({attributes:tt,children:yt,name:pt})):[]},tn=F=>{var _e;return T?(_e=l==null?void 0:l.filter((de,Ne)=>!K(Ne)))==null?void 0:_e.map(({message:de,value:Ne,label:Fe},He)=>{const pt=`${d}:${Ne}`,tt=Ri(r,He);return{attributes:{depth:F+1,label:Fe,value:Ne,...de&&{message:de},...tt.length===0&&{isLeaf:!0}},children:tt,name:pt}}):[]},ws=F=>F.map(({message:_e,...de})=>({...de,..._e&&{message:_e}})),Li=(F,_e,de)=>{var Ne;return F&&(!_e||de)?J():F&&_e&&!de?{data:{workflow:(Ne=r==null?void 0:r.data.attributes)==null?void 0:Ne.tree},isError:null}:{data:null,isError:null}},Pi=async F=>{var j,P,H,se;F.preventDefault();const{on:_e,off:de}=N,Ne=((j=r==null?void 0:r.data)==null?void 0:j.name)||"",Fe=(r==null?void 0:r.depth)||0,He=i==="edit",pt=Fe+(He||r===null?0:1),tt=tn(pt),yt=(P=o==null?void 0:o.at(-1))==null?void 0:P.path,$n=o.length?`${yt}/${d}`:`/${d}`,Rn=((se=(H=r==null?void 0:r.data.attributes)==null?void 0:H.tree)==null?void 0:se.treeId)!==I,{data:Bt,isError:Ln}=await Li(A,He,Rn);if(Ln)return;const _={attributes:{depth:pt,label:p,type:y,...E&&{helperText:E},...(de||_e)&&{messages:{...de&&{off:de},..._e&&{on:_e}}},...A&&{tree:{...Bt==null?void 0:Bt.workflow,treeId:I},treePath:$n},...T&&{isDecision:T},...B&&!T&&{values:ws(l)},...x&&{required:x},...z&&{step:z},...R&&{repeatable:R},...$&&{hiddenValue:h}},children:tt,name:d};n(He?mx(yt||"",Ne,_):gx(yt||null,Ne,_)),a(null)};return W.useEffect(()=>{var F,_e,de,Ne,Fe,He,pt,tt,yt,$n,Rn,Bt,Ln,_,j,P,H,se,be;if(i==="edit"){const re=((_e=(F=r==null?void 0:r.data)==null?void 0:F.attributes)==null?void 0:_e.values)||((Fe=(Ne=(de=r==null?void 0:r.data)==null?void 0:de.children)==null?void 0:Ne.filter(({attributes:Ae})=>!(Ae!=null&&Ae.type)))==null?void 0:Fe.map(({attributes:Ae},Ee)=>{const{label:Ce,value:nt,message:zt}=Ae||{};return{id:String(Ee),label:String(Ce),value:String(nt),...zt&&{message:String(zt)}}}));f((r==null?void 0:r.data.name)||""),C(((He=r==null?void 0:r.data.attributes)==null?void 0:He.type)||"text"),D(((pt=r==null?void 0:r.data.attributes)==null?void 0:pt.helperText)||""),w(((tt=r==null?void 0:r.data.attributes)==null?void 0:tt.required)||!1),m(((yt=r==null?void 0:r.data.attributes)==null?void 0:yt.step)||""),g((($n=r==null?void 0:r.data.attributes)==null?void 0:$n.label)||""),b(((Rn=r==null?void 0:r.data.attributes)==null?void 0:Rn.isDecision)||!1),c(re!=null&&re.length?re:e),k({off:((Ln=(Bt=r==null?void 0:r.data.attributes)==null?void 0:Bt.messages)==null?void 0:Ln.off)||"",on:((j=(_=r==null?void 0:r.data.attributes)==null?void 0:_.messages)==null?void 0:j.on)||""}),O(((H=(P=r==null?void 0:r.data.attributes)==null?void 0:P.tree)==null?void 0:H.treeId)||""),L(((se=r==null?void 0:r.data.attributes)==null?void 0:se.repeatable)||!1),v(((be=r==null?void 0:r.data.attributes)==null?void 0:be.hiddenValue)||"")}},[(Fi=(In=r==null?void 0:r.data.attributes)==null?void 0:In.tree)==null?void 0:Fi.treeId,(Ui=r==null?void 0:r.data.attributes)==null?void 0:Ui.messages,(Yi=r==null?void 0:r.data.attributes)==null?void 0:Yi.helperText,(qi=r==null?void 0:r.data.attributes)==null?void 0:qi.isDecision,(Vi=r==null?void 0:r.data.attributes)==null?void 0:Vi.label,(Bi=r==null?void 0:r.data.attributes)==null?void 0:Bi.required,(Qi=r==null?void 0:r.data.attributes)==null?void 0:Qi.step,(kn=r==null?void 0:r.data.attributes)==null?void 0:kn.type,(xr=r==null?void 0:r.data.attributes)==null?void 0:xr.values,(kt=r==null?void 0:r.data)==null?void 0:kt.children,r==null?void 0:r.data.name,(zn=r==null?void 0:r.data.attributes)==null?void 0:zn.repeatable,(jn=r==null?void 0:r.data.attributes)==null?void 0:jn.hiddenValue,e,i]),{getDisabledValueField:K,handleAddValue:Ms,handleChangeHelperText:xs,handleChangeHiddenValue:te,handleChangeIsDecisionField:ji,handleChangeLabel:ke,handleChangeMessage:br,handleChangeName:vt,handleChangeOptionLabel:Y,handleChangeOptionMessage:Q,handleChangeOptionValue:Ke,handleChangeRepeatable:An,handleChangeRequired:en,handleChangeStep:lt,handleChangeTreeSelect:bs,handleChangeType:_s,handleDeleteValue:$i,handleSubmit:Pi,helperText:E,hiddenValue:h,isBooleanField:G,isDecision:T,isDecisionField:B,isHiddenField:$,isRepeatableDisabled:X,isRequiredDisabled:U,isTreeField:A,isWorkflowLoading:Z,label:p,messages:N,name:d,repeatable:R,required:x,step:z,treeSelected:I,type:y,uniqueNameErrorMessage:V,values:l}},zf={marginRight:"-20px !important",minWidth:"auto !important"},jf={iconButton:zf,iconButtonDelete:{...zf,"&:before":{borderRadius:"50%",content:'""',height:20,position:"absolute",width:20,zIndex:-1},backgroundColor:xe.background,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"}},Ux=({onClose:e})=>{const{t}=Je.useTranslation(["translation","form"]),{values:n,required:r,name:i,uniqueNameErrorMessage:o,type:a,helperText:s,label:u,hiddenValue:l,isBooleanField:c,isDecision:d,isDecisionField:f,isHiddenField:h,isRequiredDisabled:v,isRepeatableDisabled:p,isTreeField:g,treeSelected:x,isWorkflowLoading:w,repeatable:T,messages:{on:b,off:y},handleChangeTreeSelect:C,handleChangeHelperText:I,handleChangeOptionMessage:O,handleChangeRequired:E,handleChangeName:D,handleChangeType:z,handleChangeIsDecisionField:m,handleChangeOptionLabel:N,handleDeleteValue:k,handleChangeOptionValue:R,handleChangeMessage:L,handleSubmit:V,handleAddValue:q,handleChangeLabel:ee,handleChangeRepeatable:A,handleChangeHiddenValue:$}=Fx();return oe("form",{onSubmit:V,children:[oe(S.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[M(S.TextField,{sx:{flex:1},label:t("label",{ns:"form"}),onChange:ee,value:u,required:!0}),M(S.TextField,{label:t("name"),sx:{flex:1},onChange:D,value:i,error:!!o,helperText:o,required:!0})]}),oe(S.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[M(Ax,{value:a,onChange:z}),M(Lx,{helperText:s,hiddenValue:l,isHiddenField:h,isTreeField:g,treeSelected:x,handleChangeTreeSelect:C,handleChangeHelperText:I,handleChangeHiddenValue:$})]}),c&&oe(S.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[M(S.TextField,{sx:{flex:1},label:t("onMessage",{ns:"form"}),onChange:L("on"),value:b}),M(S.TextField,{sx:{flex:1},label:t("offMessage",{ns:"form"}),onChange:L("off"),value:y})]}),oe(S.Stack,{paddingY:1,children:[M(S.FormGroup,{children:M(S.FormControlLabel,{disabled:p,control:M(S.Checkbox,{checked:T,onChange:A}),label:t("repeatable",{ns:"form"})})}),M(S.FormGroup,{children:M(S.FormControlLabel,{disabled:v,control:M(S.Checkbox,{checked:r,onChange:E}),label:t("required")})}),M(S.FormGroup,{children:M(S.FormControlLabel,{disabled:!f,control:M(S.Checkbox,{checked:d,onChange:m}),label:t("decisionField",{ns:"form"})})})]}),f&&oe(wr,{children:[M("h4",{children:t("values")}),n==null?void 0:n.map(({value:G,label:B,id:U,message:X})=>oe(S.Stack,{direction:{sm:"row",xs:"column"},spacing:1,paddingY:1,position:"relative",children:[M(S.TextField,{label:t("label",{ns:"form"}),sx:{flex:1},onChange:N,value:B,inputProps:{"data-id":U},required:!0}),M(S.TextField,{label:t("value",{ns:"form"}),sx:{flex:1},onChange:R,value:G,inputProps:{"data-id":U},required:!0}),M(S.TextField,{label:"Message",sx:{flex:1},onChange:O,value:X,inputProps:{"data-id":U}}),n.length>1&&M(S.Button,{color:"warning",sx:jf.iconButtonDelete,"data-id":U,onClick:()=>k(U),children:M(Of,{})})]},U))]}),f&&M(S.Box,{justifyContent:"flex-end",display:"flex",children:M(S.Button,{color:"success",sx:jf.iconButton,onClick:q,children:M(Df,{})})}),oe(S.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",paddingTop:3,children:[M(S.Button,{variant:"text",onClick:e,children:t("cancel")}),M(S.Button,{variant:"contained",type:"submit",disabled:!!o||w,children:w?M(S.CircularProgress,{size:14}):t("validate")})]})]})};var ls={},Yx=Se.exports;Object.defineProperty(ls,"__esModule",{value:!0});var $f=ls.default=void 0,qx=Yx(Le()),Vx=Pe,Bx=(0,qx.default)((0,Vx.jsx)("path",{d:"M17 11h3c1.11 0 2-.9 2-2V5c0-1.11-.9-2-2-2h-3c-1.11 0-2 .9-2 2v1H9.01V5c0-1.11-.9-2-2-2H4c-1.1 0-2 .9-2 2v4c0 1.11.9 2 2 2h3c1.11 0 2-.9 2-2V8h2v7.01c0 1.65 1.34 2.99 2.99 2.99H15v1c0 1.11.9 2 2 2h3c1.11 0 2-.9 2-2v-4c0-1.11-.9-2-2-2h-3c-1.11 0-2 .9-2 2v1h-1.01c-.54 0-.99-.45-.99-.99V8h2v1c0 1.1.9 2 2 2z"}),"AccountTreeRounded");$f=ls.default=Bx;var cs={},Qx=Se.exports;Object.defineProperty(cs,"__esModule",{value:!0});var Rf=cs.default=void 0,Wx=Qx(Le()),Gx=Pe,Kx=(0,Wx.default)((0,Gx.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 10h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddBoxRounded");Rf=cs.default=Kx;var fs={},Hx=Se.exports;Object.defineProperty(fs,"__esModule",{value:!0});var Lf=fs.default=void 0,Xx=Hx(Le()),Jx=Pe,Zx=(0,Xx.default)((0,Jx.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v10zM9 9h6c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H9c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1zm6.5-5-.71-.71c-.18-.18-.44-.29-.7-.29H9.91c-.26 0-.52.11-.7.29L8.5 4H6c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1h-2.5z"}),"DeleteOutlineRounded");Lf=fs.default=Zx;var ds={},e2=Se.exports;Object.defineProperty(ds,"__esModule",{value:!0});var Pf=ds.default=void 0,t2=e2(Le()),n2=Pe,r2=(0,t2.default)((0,n2.jsx)("path",{d:"M3 17.46v3.04c0 .28.22.5.5.5h3.04c.13 0 .26-.05.35-.15L17.81 9.94l-3.75-3.75L3.15 17.1c-.1.1-.15.22-.15.36zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"EditRounded");Pf=ds.default=r2;var hs={},i2=Se.exports;Object.defineProperty(hs,"__esModule",{value:!0});var Ff=hs.default=void 0,o2=i2(Le()),a2=Pe,s2=(0,o2.default)((0,a2.jsx)("path",{d:"M12 3c-4.8 0-9 3.86-9 9 0 2.12.74 4.07 1.97 5.61l-1.68 1.68c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l1.68-1.68C7.93 20.26 9.88 21 12 21c2.3 0 4.61-.88 6.36-2.64C20.12 16.61 21 14.3 21 12V5c0-1.1-.9-2-2-2h-7zm3.83 9.26-5.16 4.63c-.16.15-.41.14-.56-.01-.14-.14-.16-.36-.04-.52l2.44-3.33-4.05-.4c-.44-.04-.63-.59-.3-.89l5.16-4.63c.16-.15.41-.14.56.01.14.14.16.36.04.52l-2.44 3.33 4.05.4c.45.04.63.59.3.89z"}),"EnergySavingsLeafRounded");Ff=hs.default=s2;var ps={},u2=Se.exports;Object.defineProperty(ps,"__esModule",{value:!0});var Uf=ps.default=void 0,l2=u2(Le()),Yf=Pe,c2=(0,l2.default)([(0,Yf.jsx)("path",{d:"M14.14 12h-.06c.81 0 1.28-.91.82-1.57L9.82 3.17c-.4-.57-1.24-.57-1.64 0L3.1 10.43c-.46.66.01 1.57.82 1.57h-.06L.99 16.46c-.43.66.05 1.54.84 1.54H7v2c0 1.1.9 2 2 2s2-.9 2-2v-2h5.17c.79 0 1.27-.88.84-1.54L14.14 12z"},"0"),(0,Yf.jsx)("path",{d:"M23.01 16.46 20.14 12h-.06c.81 0 1.28-.91.82-1.57l-5.08-7.26c-.4-.57-1.24-.57-1.64 0l-1.57 2.24 3.11 4.44c.43.61.48 1.41.14 2.07-.08.16-.18.3-.3.43l2.29 3.57c.4.62.42 1.4.07 2.04-.01.02-.02.03-.03.04h4.28c.79 0 1.27-.88.84-1.54zM13 20c0 1.1.9 2 2 2s2-.9 2-2v-1h-4v1z"},"1")],"ForestRounded");Uf=ps.default=c2;var gs={},f2=Se.exports;Object.defineProperty(gs,"__esModule",{value:!0});var qf=gs.default=void 0,d2=f2(Le()),h2=Pe,p2=(0,d2.default)((0,h2.jsx)("path",{d:"M12 4V2.21c0-.45-.54-.67-.85-.35l-2.8 2.79c-.2.2-.2.51 0 .71l2.79 2.79c.32.31.86.09.86-.36V6c3.31 0 6 2.69 6 6 0 .79-.15 1.56-.44 2.25-.15.36-.04.77.23 1.04.51.51 1.37.33 1.64-.34.37-.91.57-1.91.57-2.95 0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-.79.15-1.56.44-2.25.15-.36.04-.77-.23-1.04-.51-.51-1.37-.33-1.64.34C4.2 9.96 4 10.96 4 12c0 4.42 3.58 8 8 8v1.79c0 .45.54.67.85.35l2.79-2.79c.2-.2.2-.51 0-.71l-2.79-2.79c-.31-.31-.85-.09-.85.36V18z"}),"LoopRounded");qf=gs.default=p2;var ms={},g2=Se.exports;Object.defineProperty(ms,"__esModule",{value:!0});var Vf=ms.default=void 0,m2=g2(Le()),v2=Pe,y2=(0,m2.default)((0,v2.jsx)("path",{d:"M16.96 12h.08c.81 0 1.28-.91.82-1.57l-5.08-7.25c-.4-.57-1.24-.57-1.64 0L6.1 10.43c-.46.66.02 1.57.83 1.57h.04l-2.9 4.46c-.44.66.04 1.54.84 1.54h5.08v2.02c0 1.09.89 1.98 1.98 1.98 1.09 0 1.98-.89 1.98-1.98V18h5.15c.8 0 1.28-.89.83-1.55L16.96 12z"}),"ParkRounded");Vf=ms.default=y2;var vs={},_2=Se.exports;Object.defineProperty(vs,"__esModule",{value:!0});var Bf=vs.default=void 0,b2=_2(Le()),x2=Pe,M2=(0,b2.default)((0,x2.jsx)("path",{d:"M12 6.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24zM2.71 3.16c-.39.39-.39 1.02 0 1.41l1.97 1.97C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.97-.3 4.31-.82l2.72 2.72c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L4.13 3.16c-.39-.39-1.03-.39-1.42 0zM12 16.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5zm2.97-5.33c-.15-1.4-1.25-2.49-2.64-2.64l2.64 2.64z"}),"VisibilityOffRounded");Bf=vs.default=M2;var ys={},w2=Se.exports;Object.defineProperty(ys,"__esModule",{value:!0});var Qf=ys.default=void 0,T2=w2(Le()),N2=Pe,E2=(0,T2.default)((0,N2.jsx)("path",{d:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"VisibilityRounded");Qf=ys.default=E2;const je={actionButton:{minWidth:"auto !important"},container:{background:xe.background,borderRadius:"1rem"},containerField:{background:xe.background,border:`solid 1px ${xe.primary}`,borderRadius:"1rem"},containerHidden:{background:xe.background,border:`solid 1px ${xe.borderGrey}`,borderRadius:"1rem"},containerTree:{background:xe.tertiary,border:`solid 1px ${xe.primary}`,borderRadius:"1rem"},containerValue:{background:xe.background,border:`solid 1px ${xe.secondary}`,borderRadius:"1rem"},icon:{color:xe.grey500},nodeSvg:{stroke:"transparent !important"},stepChip:{fontSize:".7rem !important",fontWeight:"bold",height:"20px !important"},title:{display:"-webkit-box",margin:0,overflow:"hidden",textAlign:"right",textOverflow:"ellipsis",webkitBoxOrient:"vertical",webkitLineClamp:2}},D2=e=>{const t=!!e,n=e==="tree";return e==="hidden"?je.containerHidden:n?je.containerTree:t?je.containerField:je.containerValue},O2=({nodeDatum:e,onAddChildren:t,onEditChildren:n,onDeleteChildren:r,onOpenTreeModal:i,hierarchyPointNode:o,size:a=220})=>{var y;const{t:s}=Je.useTranslation(["translation","form"]),{attributes:u}=e||{},{isRoot:l,isLeaf:c,required:d,step:f,type:h,label:v,repeatable:p}=u||{},g=!!h,x=h==="tree",w=h==="hidden",T=!g,b=!l&&!c;return oe("g",{children:[M(S.GlobalStyles,{styles:{".rd3t-node svg":je.nodeSvg}}),M(S.Box,{component:"foreignObject",height:a,width:a,x:`-${a/2}`,y:`-${a/2}`,sx:D2(h),children:oe(S.Box,{flex:1,display:"flex",p:2,height:"100%",flexDirection:"column",justifyContent:"space-between",children:[oe(S.Stack,{alignItems:"flex-end",spacing:.5,children:[g&&oe(S.Stack,{direction:"row",spacing:1,alignItems:"center",children:[f&&M(S.Tooltip,{title:`${s("step",{ns:"form"})} ${(y=e==null?void 0:e.attributes)==null?void 0:y.step}`,placement:"left",arrow:!0,children:M(S.Chip,{color:"primary",size:"small",label:f,sx:je.stepChip})}),M(S.Typography,{variant:"subtitle2",sx:je.title,children:M("strong",{children:v})})]}),g&&M(S.Chip,{color:"info",size:"small",label:s(`type.${h}`,{ns:"form"})}),d&&M(S.Stack,{direction:"row",spacing:.5,children:d&&M(S.Chip,{color:"warning",size:"small",variant:"outlined",label:`${s("required")}`})}),M(S.Stack,{spacing:.5,alignItems:"flex-end",children:T&&M(S.Typography,{variant:"subtitle2",sx:je.title,children:M("strong",{children:v})})}),oe(S.Stack,{paddingTop:.5,spacing:.5,direction:"row",children:[p&&M(S.Tooltip,{title:s("isARepeatable"),placement:"bottom",arrow:!0,children:M(qf,{style:je.icon})}),c&&M(S.Tooltip,{title:s("isALeaf"),placement:"bottom",arrow:!0,children:M(Ff,{style:je.icon})}),w&&M(S.Tooltip,{title:s("isAHidden"),placement:"bottom",arrow:!0,children:M(Bf,{style:je.icon})}),l&&M(S.Tooltip,{title:s("isTheRoot"),placement:"bottom",arrow:!0,children:M(Vf,{style:je.icon})}),b&&M(S.Tooltip,{title:s("isABranch"),placement:"bottom",arrow:!0,children:M($f,{style:je.icon})}),x&&M(S.Tooltip,{title:s("isATree"),placement:"bottom",arrow:!0,children:M(Uf,{style:je.icon})})]})]}),oe(S.Stack,{direction:"row",justifyContent:"flex-end",spacing:0,alignSelf:"flex-end",children:[!l&&M(S.Tooltip,{title:s("remove"),arrow:!0,children:M(S.Button,{variant:"text",sx:je.actionButton,size:"small",color:"error",onClick:()=>r==null?void 0:r(o),children:M(Lf,{})})}),!T&&M(S.Tooltip,{title:s("edit"),arrow:!0,children:M(S.Button,{variant:"text",color:"secondary",sx:je.actionButton,size:"small",onClick:()=>n==null?void 0:n(o),children:M(Pf,{})})}),c&&M(S.Tooltip,{title:s("add"),arrow:!0,children:M(S.Button,{variant:"text",color:"success",sx:je.actionButton,size:"small",onClick:()=>t==null?void 0:t(o),children:M(Rf,{})})}),x&&M(S.Tooltip,{title:s("show"),arrow:!0,children:M(S.Button,{variant:"text",color:"info",sx:je.actionButton,size:"small",onClick:()=>i==null?void 0:i(o),children:M(Qf,{})})})]})]})})]})},C2=W.memo(O2),Wf=()=>{const{setModalOpen:e,setCurrentHierarchyPointNode:t,setTreeModalOpen:n,setTreePath:r}=at();return{handleAddChildren:l=>{t(l),e("add")},handleCloseTreeModal:()=>{r([]),n(!1)},handleDeleteChildren:l=>{t(l),e("delete")},handleEditChildren:l=>{t(l),e("edit")},handleOpenTreeModal:l=>{var d,f;const c={label:l==null?void 0:l.data.attributes.label,path:((f=(d=l==null?void 0:l.data)==null?void 0:d.attributes)==null?void 0:f.treePath)||""};r(h=>[...h,c]),n(!0)}}},S2=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>{const{handleDeleteChildren:a,handleEditChildren:s,handleAddChildren:u,handleOpenTreeModal:l}=Wf();return M(C2,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o,onAddChildren:u,onOpenTreeModal:l,onDeleteChildren:a,onEditChildren:s})},Gf=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>M(S2,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o}),A2=()=>{const{currentHierarchyPointNode:e,modalOpen:t,setModalOpen:n}=at(),{t:r}=Je.useTranslation(["modal","snackMessage"]),i=t==="edit";return{closeModal:()=>n(null),getTitleModalDelete:()=>{var f,h;const d=(h=(f=e==null?void 0:e.data)==null?void 0:f.attributes)==null?void 0:h.label;return r("deleteTitle",{name:d,ns:"modal"})},getTitleModalMutation:()=>{var h;const d=(h=e==null?void 0:e.data)==null?void 0:h.attributes.label;return d?r(i?"editTitle":"addTitle",{name:d,ns:"modal"}):r("addFirstTitle",{name:d,ns:"modal"})},isDeleteModal:t==="delete",isModalMutationOpen:i||t==="add"}},I2=()=>{const{currentTree:e,setCurrentTree:t,tree:n}=at(),{name:r,errorName:i,id:o}=e;return{disabled:!!e.id&&!n,errorName:i,handleChangeName:u=>{const{value:l}=u.target;if(!l){t(c=>({...c,errorName:"Champs requis",name:u.target.value}));return}t(c=>({...c,errorName:"",name:u.target.value}))},id:o,name:r}},k2=()=>{const{t:e}=Je.useTranslation("form"),{name:t,handleChangeName:n,errorName:r,disabled:i}=I2();return M(S.TextField,{required:!0,label:e("treeName"),size:"small",onChange:n,value:t,error:!!r,disabled:i})},z2=()=>{var h,v;const{tree:e,treeModalOpen:t,treePath:n,endPoint:r}=at(),{handleCloseTreeModal:i}=Wf(),{getTitleModalMutation:o,closeModal:a,getTitleModalDelete:s,isModalMutationOpen:u,isDeleteModal:l}=A2(),c=(h=n==null?void 0:n.at(-1))==null?void 0:h.path,d=(v=n==null?void 0:n.at(-1))==null?void 0:v.label,f=e&&Sn(e,c);return oe(wr,{children:[oe(ox,{children:[M(nx,{children:oe(S.Stack,{justifyContent:"space-between",direction:"row",alignItems:"center",children:[M(xd,{}),!!r&&oe(S.Stack,{direction:"row",alignItems:"center",spacing:2,children:[M(k2,{}),M(If,{size:"small",arrowOnly:!0,showBtnAddNewTree:!0})]})]})}),M(ix,{children:M(ac,{data:e,renderCustomNodeElement:Gf})}),M(sx,{children:M(tv,{value:e})}),M(ex,{children:M(Vb,{value:e})})]}),M(bf,{open:u,onClose:a,title:o(),children:M(Ux,{onClose:a})}),M(bf,{open:l,onClose:a,title:s(),children:M(xx,{onClose:a})}),M(Jb,{open:t,onClose:i,title:d,children:f&&M(ac,{data:f,renderCustomNodeElement:Gf})})]})},j2="0.6.4",$2=({children:e,endPoint:t,initialTree:n,initialTreeId:r})=>{const[i,o]=W.useState(qt.currentHierarchyPointNode),[a,s]=W.useState(qt.modalOpen),[u,l]=W.useState(qt.treeModalOpen),[c,d]=W.useState(qt.treePath),[f,h]=W.useReducer(_x,n||qt.tree),[v,p]=W.useState(r?{...qt.currentTree,id:r}:qt.currentTree),g=W.useMemo(()=>({currentHierarchyPointNode:i,currentTree:v,dispatchTree:h,endPoint:t,modalOpen:a,setCurrentHierarchyPointNode:o,setCurrentTree:p,setModalOpen:s,setTreeModalOpen:l,setTreePath:d,tree:f,treeModalOpen:u,treePath:c,version:j2}),[i,a,u,c,f,v,t]);return us(v.id,{enabled:!!r,onSuccess:async x=>{!x||(p({id:x==null?void 0:x.id,name:x==null?void 0:x.label}),h(Ef((x==null?void 0:x.workflow)||null)))}}),M(ic.Provider,{value:g,children:e})},R2={createTree:"Create Tree",downloadJSONFile:"Download JSON File",save:"Save",update:"Update"},L2={decisionFields:"Decision fields",helperText:"Helper text",hiddenValue:"Hidden value",label:"Label",mustBeUnique:"Must be unique",newTree:"Nouvel arbre",offMessage:"Message (disable)",onMessage:"Message (enable)",repeatable:"Repeatable",staticFields:"Static fields",step:"Step",tree:"Tree",treeName:"Tree name",type:{address:"Address",checkbox:"Checkbox",date:"Date",email:"Email",file:"File",number:"Number",password:"Password",radio:"Radio",select:"Select",switch:"Switch",tel:"Tel",time:"Time",text:"Text",hidden:"Hidden field",tree:"Tree",url:"URL"},value:"Value",values:"Values"},P2={saveTree:"Save a Tree",addFirstTitle:"Add a field",addTitle:"Add a field to \xAB {{name}} \xBB",deleteTitle:"Are you sure to delete \xAB {{name}} \xBB",editTitle:"Edit field \xAB {{name}} \xBB"},F2={error:{saveTree:"An error has occurred. Please try again",updateTree:"An error has occurred. Please try again",fetchTree:"An error has occurred. Please try again"},success:{saveTree:"Tree registered",updateTree:"Tree updated"}},U2={add:"Add",cancel:"Cancel",disabled:"Disabled",edit:"Edit",isALeaf:"Is a leaf",isAHidden:"Is a hidden field",isARepeatable:"Is a repeatable",isABranch:"Is a branch",isATree:"Is a tree",isTheRoot:"Is the root",label:"Label",name:"Name",remove:"Remove",required:"Required",save:"Save",show:"Show",type:"Type",validate:"Validate",value:"Value",values:"Values"},Y2={createTree:"Cr\xE9er un arbre",downloadJSONFile:"T\xE9l\xE9charger le fichier JSON",save:"Enregistrer",update:"Modifier"},q2={decisionField:"Champs de d\xE9cision",helperText:"Texte d'information",hiddenValue:"Valeur cach\xE9",label:"Label",mustBeUnique:"Doit \xEAtre unique",newTree:"Nouvel arbre",offMessage:"Message (d\xE9sactiver)",onMessage:"Message (activer)",repeatable:"R\xE9p\xE9table",staticFields:"Champs statiques",step:"\xC9tape",tree:"Arbre",treeName:"Nom de l'arbre",type:{address:"Adresse",checkbox:"Case \xE0 cocher",date:"Date",email:"Email",file:"Fichier",number:"Nombre",password:"Mot de passe",radio:"Radio",select:"Select",switch:"Switch",tel:"T\xE9l\xE9phone",time:"Temps",text:"Texte",hidden:"Champs cach\xE9",tree:"Arbre",url:"URL"},value:"Valeur",values:"Valeurs"},V2={saveTree:"Enregistrer l'arbre",addFirstTitle:"Ajouter un champ",addTitle:"Ajouter un champ \xE0 \xAB {{name}} \xBB",deleteTitle:"Voulez vraiment supprimer \xAB {{name}} \xBB",editTitle:"\xC9diter le champ \xAB {{name}} \xBB"},B2={error:{saveTree:"Une erreur est survenue veuillez r\xE9essayer",updateTree:"Une erreur est survenue veuillez r\xE9essayer",fetchTree:"Une erreur est survenue veuillez r\xE9essayer"},success:{saveTree:"Arbre enregistr\xE9",updateTree:"Arbre mis \xE0 jour"}},Q2={add:"Ajouter",cancel:"Annuler",disabled:"D\xE9sactiv\xE9",edit:"\xC9diter",isALeaf:"Est une feuille",isAHidden:"Est un champs cach\xE9",isARepeatable:"Est r\xE9p\xE9table",isABranch:"Est une branche",isATree:"Est un arbre",isTheRoot:"Est la racine",label:"Label",name:"Nom",remove:"Supprimer",required:"Requis",save:"Enregistrer",show:"Afficher",type:"Type",validate:"Valider",value:"Valeur",values:"Valeurs"};od.default.use(ad.default).use(Je.initReactI18next).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!1},resources:{en:{button:R2,form:L2,modal:P2,snackMessage:F2,translation:U2},fr:{button:Y2,form:q2,modal:V2,snackMessage:B2,translation:Q2}}}).then();const W2=({authToken:e,endPoint:t,initialTree:n,initialTreeId:r})=>(W.useLayoutEffect(()=>{on.default.defaults.baseURL=t,on.default.defaults.headers.common.Authorization=`Bearer ${e}`},[t,e]),M(nn.QueryClientProvider,{client:dd,children:M(gd,{authToken:e,children:M($2,{endPoint:t,initialTree:n,initialTreeId:r,children:M(fd,{children:M(_d,{children:M(z2,{})})})})})}));ze.TreePlusIcon=rc,ze.Treege=W2,Object.defineProperties(ze,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});